/* =====================================================================
   Syed Rehan — Luxury Muslim Wedding Invitation (single page)
   Dark emerald + champagne gold
   ===================================================================== */

/* ============ 1. DESIGN TOKENS ============ */
:root {
  --emerald: #0B3D32;
  --deep-green: #062C24;
  --deeper-green: #04211B;
  --gold: #D4AF65;
  --gold-bright: #E7C878;
  --champagne: #E8D6A8;
  --ivory: #FAF7F0;
  --cream: #F3EBDD;

  --gold-grad: linear-gradient(135deg, #B8860B 0%, #D4AF65 25%, #F4E3B0 50%, #D4AF65 75%, #B8860B 100%);
  --green-grad: radial-gradient(120% 120% at 50% 0%, #0B3D32 0%, #062C24 55%, #04211B 100%);

  --font-display: "Cormorant Garamond", serif;
  --font-title: "Cinzel", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-ar: "Amiri", serif;
  --font-ur: "Noto Nastaliq Urdu", "Amiri", serif;
  --font-script: "Great Vibes", cursive;

  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 10px 40px -12px rgba(212, 175, 101, 0.45);

  --radius: 18px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ 2. BASE / RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-body);
  color: var(--ivory);
  background: var(--deep-green);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed;
  top: -60px; left: 12px;
  z-index: 2000;
  background: var(--gold);
  color: var(--deep-green);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Gold text helper (with shimmer) */
.section__title,
.hero__name {
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: goldShimmer 6s ease-in-out infinite;
}
@keyframes goldShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ============ 3. BACKGROUNDS / PARTICLES / CURSOR ============ */
.bg-layers {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;   /* fallback */
  height: 100lvh;  /* stable on mobile — ignores URL-bar show/hide so the photo doesn't jump */
  z-index: -1;
  background: var(--green-grad);
  overflow: hidden;
  transform: translateZ(0);   /* own stable GPU layer so the hero flip can't recomposite the background into a blue flash */
}

/* Layered background photos — a garden scene behind, the couple in front */
.bg-photos {
  position: absolute; inset: 0; overflow: hidden;
  background-repeat: no-repeat;
  background-position: center, center 22%;
  background-size: 100% 100%, cover;
}
@media (min-width: 760px) {
  /* portrait couple photo: show it whole (centred) instead of a zoomed crop */
  .bg-photos { background-size: 100% 100%, contain; background-position: center, center; }
}
.bg-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
}
.bg-photo--back {
  z-index: 0;
  opacity: var(--bg-back-op, .3);
  background-position: center bottom;
}
.bg-photo--front {
  z-index: 1;
  opacity: var(--bg-op, .5);
  background-position: center 30%;
  /* soft-fade the couple's edges so it blends into the scene behind */
  -webkit-mask-image: radial-gradient(125% 125% at 50% 45%, #000 56%, transparent 100%);
  mask-image: radial-gradient(125% 125% at 50% 45%, #000 56%, transparent 100%);
}
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.18) translate3d(-2%, -3%, 0); }
}
/* Back layer keeps its bottom edge anchored (no vertical drift) */
@keyframes kenburnsBack {
  from { transform: scale(1.04) translateX(0); }
  to   { transform: scale(1.12) translateX(-1.5%); }
}
/* On wide screens show the whole (portrait) couple, garden fills behind */
@media (min-width: 900px) {
  .bg-photo--front {
    background-size: contain;
    background-position: center;
  }
}
@keyframes kenburnsWide {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.07) translate3d(0, -1.5%, 0); }
}
/* Emerald scrim keeps text legible over the photo */
.bg-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 100% at 50% 26%, rgba(4,33,27,.12), rgba(4,33,27,.62) 78%),
    linear-gradient(180deg, rgba(6,44,36,.5), rgba(4,33,27,.34) 45%, rgba(4,33,27,.78));
}
.bg-pattern {
  position: absolute;
  inset: -20%;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23D4AF65' stroke-width='1.2'%3E%3Cpath d='M60 5l55 55-55 55L5 60z'/%3E%3Cpath d='M60 25l35 35-35 35-35-35z'/%3E%3Ccircle cx='60' cy='60' r='16'/%3E%3Cpath d='M60 44l16 16-16 16-16-16z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  animation: patternDrift 60s linear infinite;
}
@keyframes patternDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(120px, 120px); }
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  /* No mix-blend-mode: on mobile it recomposites into a full-screen teal veil during 3D flips */
}
.bg-glow--1 {
  width: 55vmax; height: 55vmax;
  top: -20%; left: -10%;
  background: radial-gradient(circle, rgba(212,175,101,.35), transparent 70%);
  animation: floatGlow 18s ease-in-out infinite;
}
.bg-glow--2 {
  width: 45vmax; height: 45vmax;
  bottom: -20%; right: -10%;
  background: radial-gradient(circle, rgba(20,120,90,.5), transparent 70%);
  animation: floatGlow 22s ease-in-out infinite reverse;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, 6%) scale(1.08); }
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 900;
  background: radial-gradient(circle, rgba(212,175,101,.16), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  will-change: transform;
}

/* ============ 4. CURTAIN + CONFETTI ============ */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
  perspective: 1700px;
  perspective-origin: 50% 40%;
}
/* ---- Side drapes ---- */
.curtain__panel {
  position: absolute;
  top: 0; bottom: 0;
  width: 51%;
  background:
    /* fine thread sheen riding over the drape */
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px,
      transparent 2px, transparent 30px),
    /* deep velvet pleats — light ridges into dark valleys */
    repeating-linear-gradient(90deg,
      #10553f 0, #0d4636 14px, #0a3a2d 28px,
      #05261e 44px, #0a3a2d 60px, #0d4636 74px);
  box-shadow: inset 0 0 120px rgba(0,0,0,.5);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.curtain__panel--left  { left: 0;  transform-origin: left center;  box-shadow: inset -20px 0 55px rgba(0,0,0,.55); }
.curtain__panel--right { right: 0; transform-origin: right center; box-shadow: inset 20px 0 55px rgba(0,0,0,.55); }
.curtain__panel--left::after,
.curtain__panel--right::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(212,175,101,.75), transparent);
}
.curtain__panel--left::after { right: 0; }
.curtain__panel--right::after { left: 0; }

/* ---- Swagged valance across the top ---- */
.curtain__valance {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: clamp(96px, 17vh, 188px);
  z-index: 2;
  will-change: transform;
}
.curtain__valance::after {
  /* thin gold rod/trim along the very top */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(180deg, var(--gold-bright), #8a6b25);
  box-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.swag {
  position: absolute;
  top: -2%;
  left: calc(var(--i) * 14.8%);
  width: 26%;
  height: 104%;
  border-radius: 0 0 46% 46% / 0 0 78% 78%;
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.22) 0 6px,
      rgba(255,255,255,.05) 6px 9px,
      transparent 9px 20px),
    radial-gradient(75% 130% at 50% -8%, #135e49 0%, #0d4636 40%, #072f26 72%, #04211b 100%);
  border: 1px solid rgba(212,175,101,.3);
  border-top: 0;
  box-shadow:
    inset 0 -16px 30px rgba(0,0,0,.5),
    inset 12px 0 24px rgba(0,0,0,.28),
    inset -12px 0 24px rgba(0,0,0,.28);
}
.tassel {
  position: absolute;
  top: 4px;
  left: calc(var(--t) * 14.8%);
  width: 2px;
  height: clamp(74px, 13vh, 150px);
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(212,175,101,.15), var(--gold));
  z-index: 3;
}
.tassel::after {
  content: "";
  position: absolute;
  bottom: -13px; left: 50%;
  width: 12px; height: 17px;
  transform: translateX(-50%);
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  background: radial-gradient(circle at 50% 28%, var(--gold-bright), #9c7b2e);
  box-shadow: 0 0 9px rgba(212,175,101,.6);
}

.curtain__crest {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  font-size: 2.3rem;
  color: var(--gold);
  filter: drop-shadow(0 0 16px rgba(212,175,101,.6));
}
.curtain__crest .fa-moon { transform: rotate(-20deg); animation: floatY 4s ease-in-out infinite; }
.curtain__ring {
  position: absolute; inset: 0;
  border: 1.5px solid rgba(212,175,101,.35);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Theatrical opening: drapes gather to each side, the valance lifts away */
.curtain.is-open .curtain__panel--left  { animation: curtainOpenLeft 1.5s cubic-bezier(.6,.02,.12,1) forwards; }
.curtain.is-open .curtain__panel--right { animation: curtainOpenRight 1.5s cubic-bezier(.6,.02,.12,1) forwards; }
.curtain.is-open .curtain__valance      { animation: valanceUp 1.15s cubic-bezier(.6,.02,.12,1) .12s forwards; }
.curtain.is-open .curtain__crest        { animation: crestOut .45s ease forwards; }
@keyframes curtainOpenLeft {
  0%   { transform: translateX(0) scaleX(1) rotateY(0deg); }
  16%  { transform: translateX(1.5%) scaleX(1.03) rotateY(-3deg); }
  100% { transform: translateX(-100%) scaleX(.46) rotateY(24deg); }
}
@keyframes curtainOpenRight {
  0%   { transform: translateX(0) scaleX(1) rotateY(0deg); }
  16%  { transform: translateX(-1.5%) scaleX(1.03) rotateY(3deg); }
  100% { transform: translateX(100%) scaleX(.46) rotateY(-24deg); }
}
@keyframes valanceUp { to { transform: translateY(-104%); opacity: .9; } }
@keyframes crestOut { to { opacity: 0; transform: scale(.55); } }
.curtain.is-done { display: none; }

#confetti {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 3500;
  pointer-events: none;
}

/* ============ 5. SHARED ORNAMENTS ============ */
.eyebrow {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .7rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 0;
  color: var(--gold);
}
.ornament span { height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament i { font-size: 1rem; }
.ornament__emoji { font-size: 1.4rem; line-height: 1; }

.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
  margin-bottom: 18px;
}
.flourish span { height: 1px; width: 44px; background: linear-gradient(90deg, transparent, var(--gold)); }
.flourish span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.flourish i { font-size: .95rem; filter: drop-shadow(0 0 6px rgba(212,175,101,.5)); }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px auto;
  color: var(--gold);
  max-width: 240px;
}
.divider span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.divider i { font-size: .7rem; }

/* Crescent */
.crescent {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 66px; height: 66px;
  margin: 4px auto 18px;
  color: var(--gold);
  font-size: 1.9rem;
  filter: drop-shadow(0 0 12px rgba(212,175,101,.55));
  animation: floatY 5s ease-in-out infinite;
}
.crescent .fa-moon { transform: rotate(-20deg); }
.crescent__star { position: absolute; font-size: .5rem; color: var(--champagne); animation: twinkle 2.4s ease-in-out infinite; }
.crescent__star--a { top: 2px; right: 2px; }
.crescent__star--b { bottom: 6px; left: 0; animation-delay: 1s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes twinkle { 0%,100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }

/* ============ 6. SECTIONS ============ */
.main { position: relative; z-index: 4; }
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(38px, 6.5vw, 68px) 22px;
}
.section__head { text-align: center; margin-bottom: 30px; }
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 7vw, 3.2rem);
  line-height: 1.1;
}

/* ============ 7. HERO ============ */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: clamp(50px, 10vw, 90px);
}
.arch {
  position: relative;
  width: min(560px, 92vw);
  perspective: 1900px;
  cursor: pointer;
}
.arch__inner {
  display: grid;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform 1s var(--ease);
}
.arch.is-flipped .arch__inner { transform: rotateY(180deg); }
.arch__face {
  grid-area: 1 / 1;
  position: relative;
  padding: clamp(56px, 9vw, 84px) clamp(26px, 5vw, 46px) clamp(54px, 8vw, 74px);
  border-radius: 260px 260px 24px 24px;
  border: 1.5px solid rgba(212,175,101,.4);
  background: linear-gradient(180deg, rgba(11,61,50,.6), rgba(4,33,27,.35));
  box-shadow: inset 0 0 80px rgba(212,175,101,.06), var(--shadow-soft);
  backdrop-filter: blur(3px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.arch__face::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212,175,101,.22);
  border-radius: 250px 250px 16px 16px;
  pointer-events: none;
}
.arch__face--back { transform: rotateY(180deg); }
.arch:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; border-radius: 260px 260px 24px 24px; }

/* Urdu back face typography */
.arch__face--back .eyebrow,
.arch__face--back .hero__blessing,
.arch__face--back .hero__parents,
.arch__face--back .hero__lead,
.arch__face--back .hero__name,
.arch__face--back .hero__profession,
.arch__face--back .hero__with,
.arch__face--back .hero__with2,
.arch__face--back .hero__with-name {
  font-family: var(--font-ur);
  font-style: normal;
}
.arch__face--back .eyebrow { text-transform: none; letter-spacing: normal; line-height: 1.9; }
.arch__face--back .hero__blessing { line-height: 1.9; }
.arch__face--back .hero__parents { line-height: 1.95; }
.arch__face--back .hero__lead { line-height: 2.35; max-width: 34ch; }
.arch__face--back .hero__name { font-size: clamp(2.1rem, 7.6vw, 3rem); line-height: 2; }
.arch__face--back .hero__with { line-height: 1.8; margin-top: 6px; }
.arch__face--back .hero__with2 { font-size: clamp(1.7rem, 6vw, 2.45rem); line-height: 1.95; margin-top: 12px; }
.arch__face--back .hero__with-name { line-height: 1.95; margin-top: 6px; }
.arch__face--back .hero__profession {
  position: static;
  display: block;
  right: auto; bottom: auto;
  margin-top: 10px;
  white-space: normal;
}
.arch__face--back .hero__namewrap { margin-bottom: clamp(18px, 4vw, 28px); }

/* Flip hint */
.flip-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 3vw, 20px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-title);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .55;
  white-space: nowrap;
  pointer-events: none;
}
.flip-hint i { font-size: .78em; }
.flip-hint--card { bottom: 14px; }

/* ===== Unify Urdu typography: every section's Urdu uses the same font ===== */
.arch__face--back,
.verse__face--back,
.closing__face--back,
.event-card__face--back,
.dua-card__face--back { font-family: var(--font-ur); }
/* Scoped under the Urdu (back) faces so they always win over the Latin base
   rules, and drop letter/word-spacing + uppercase that break the Nastaliq join */
.verse__face--back .verse__en,
.verse__face--back .verse__ref,
.closing__face--back .closing__text,
.closing__face--back .closing__sign,
.event-card__face--back .event-card__name,
.event-card__face--back .event-card__date,
.event-card__face--back .event-card__time,
.event-card__face--back .event-card__venue,
.event-card__face--back .event-card__isa,
.event-card__face--back .event-card__map,
.dua-card__face--back .dua-card__text {
  font-family: var(--font-ur);
  font-style: normal;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
}
/* Nastaliq slopes steeply — force extra leading so wrapped lines never collide
   (these win over the tighter Latin base line-heights) */
.verse__face--back .verse__en { line-height: 2.3; }
.closing__face--back .closing__text { line-height: 2.55; }
.event-card__face--back .event-card__venue { line-height: 2.3; }
.dua-card__face--back .dua-card__text { line-height: 2.6; }
.hero__bismillah {
  font-family: var(--font-ar);
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  color: var(--champagne);
  margin-bottom: 18px;
  line-height: 1.8;
}
.hero__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 3.8vw, 1.25rem);
  color: var(--cream);
  margin-bottom: 12px;
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.hero__blessing {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 5vw, 1.95rem);
  color: var(--gold-bright);
  margin-top: 2px;
}
.hero__parents {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 6.2vw, 2.3rem);
  color: var(--gold-bright);
  margin-bottom: 8px;
}
.hero__with2 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.72rem, 11.05vw, 4.42rem);
  line-height: 1.3;
  color: var(--gold-bright);
  margin-top: 6px;
}
.hero__namewrap {
  position: relative;
  display: inline-block;
  margin: 0 auto clamp(28px, 5vw, 40px);
}
.hero__name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.2rem, 13vw, 5.2rem);
  line-height: 1.3;
  padding-bottom: .18em;
}
.hero__profession {
  position: absolute;
  right: .12em;
  bottom: -1.65em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(.82rem, 3.2vw, 1.05rem);
  letter-spacing: .05em;
  color: var(--gold-bright);
  white-space: nowrap;
}
.hero__parent {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  color: var(--champagne);
}
.hero__parent span { color: var(--gold-bright); }
.hero__with {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 5.2vw, 1.8rem);
  color: var(--cream);
}
.hero__with-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  color: var(--gold-bright);
  margin-top: 2px;
}
.hero__date {
  font-family: var(--font-title);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--gold);
  margin-top: 24px;
  padding-top: 22px;
  position: relative;
}
.hero__date::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 46px; height: 1px;
  background: rgba(212,175,101,.5);
  transform: translateX(-50%);
}
.hero__isa {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(.95rem, 3.6vw, 1.15rem);
  color: var(--gold-bright);
  letter-spacing: .04em;
  margin-top: 8px;
}
.lantern {
  position: absolute;
  top: -6px;
  font-size: 1.5rem;
  color: var(--gold);
  opacity: .8;
  filter: drop-shadow(0 0 10px rgba(212,175,101,.5));
  animation: swing 4s ease-in-out infinite;
  transform-origin: top center;
}
.lantern::before {
  content: "";
  position: absolute;
  top: -16px; left: 50%;
  width: 1px; height: 16px;
  background: rgba(212,175,101,.5);
  transform: translateX(-50%);
}
.lantern--left { left: 7%; }
.lantern--right { right: 7%; animation-delay: 1.2s; }
@keyframes swing { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.scrollcue {
  display: block;
  width: 1px; height: 40px;
  margin: 30px auto 0;
  background: linear-gradient(rgba(212,175,101,.6), transparent);
  position: relative;
  overflow: hidden;
}
.scrollcue::after {
  content: "";
  position: absolute;
  top: -12px; left: 0;
  width: 1px; height: 12px;
  background: var(--gold-bright);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { top: -12px; } 60%,100% { top: 40px; } }

/* Prominent scroll indicator (fixed, fades out once scrolling starts) */
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 3vh, 28px);
  transform: translateX(-50%);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 40px;
  border: 1px solid rgba(212,175,101,.42);
  background: rgba(4,20,15,.82);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  color: var(--gold-bright);
  cursor: pointer;
  opacity: 0;
  animation: hintIn .8s var(--ease) 1.7s forwards;
  transition: opacity .5s ease, visibility .5s ease, border-color .3s, background .3s;
  box-shadow: 0 6px 20px -6px rgba(0,0,0,.6);
}
.scroll-hint:hover { border-color: var(--gold); background: rgba(6,28,21,.9); }
.scroll-hint.is-hidden { opacity: 0 !important; visibility: hidden; pointer-events: none; }
.scroll-hint__text {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .62rem;
  color: var(--gold);
}
.scroll-hint__chev {
  font-size: .72rem;
  color: var(--gold-bright);
  animation: chevBounce 1.6s ease-in-out infinite;
}
@keyframes chevBounce { 0%, 100% { transform: translateY(-1px); opacity: .6; } 50% { transform: translateY(3px); opacity: 1; } }
@keyframes hintIn { to { opacity: 1; } }

/* ============ 8. VERSE ============ */
.verse { text-align: center; }
.verse__arch {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  perspective: 1900px;
  cursor: pointer;
}
.verse__inner { display: grid; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.verse__arch.is-flipped .verse__inner { transform: rotateY(180deg); }
.verse__face {
  grid-area: 1 / 1;
  position: relative;
  padding: clamp(40px, 8vw, 70px) clamp(24px, 6vw, 60px) clamp(54px, 8vw, 78px);
  border-radius: 220px 220px 20px 20px;
  border: 1px solid rgba(212,175,101,.3);
  background: linear-gradient(180deg, rgba(212,175,101,.05), transparent);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.verse__face--back { transform: rotateY(180deg); }
.verse__arch:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; border-radius: 220px 220px 20px 20px; }
.verse__en--ur { font-family: var(--font-ur); font-style: normal; line-height: 2.3; }
.verse__ref--ur { font-family: var(--font-ur); letter-spacing: normal; word-spacing: normal; }
.verse__mark { font-family: var(--font-ar); font-size: 3rem; color: rgba(212,175,101,.5); line-height: 0; }
.verse__ar {
  font-family: var(--font-ar);
  font-size: clamp(1.8rem, 8vw, 2.9rem);
  color: var(--gold-bright);
  margin: 26px 0;
  line-height: 1.7;
}
.verse__en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  color: var(--cream);
}
.verse__ref {
  font-family: var(--font-title);
  letter-spacing: .18em;
  word-spacing: .5em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--gold);
  margin-top: 16px;
}
.verse__mark--end { display: block; margin-top: 10px; }

/* ============ 9. THE COUPLE ============ */
.couple__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 50px);
}
.person { text-align: center; }
.person__emblem {
  position: relative;
  width: clamp(150px, 34vw, 220px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--gold-grad);
  padding: 3px;
  box-shadow: var(--shadow-gold);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.person__emblem::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: radial-gradient(120% 120% at 50% 0%, #0B3D32, #04211B);
}
.person:hover .person__emblem {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px -18px rgba(212,175,101,.6);
}
.person__ring {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(212,175,101,.4);
  border-radius: inherit;
  animation: spinSlow 24s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.person__mono {
  position: relative;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  letter-spacing: .06em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.person__floral {
  position: relative;
  font-size: clamp(2.2rem, 9vw, 3rem);
  color: var(--gold-bright);
  filter: drop-shadow(0 0 10px rgba(212,175,101,.4));
}
.person__role {
  font-family: var(--font-title);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.person__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  color: var(--ivory);
}
.person__name--soft {
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  color: var(--cream);
}
.person__name span { color: var(--gold-bright); }
.person__parent {
  font-size: .88rem;
  color: var(--champagne);
  opacity: .85;
  margin-top: 4px;
}
.person__parent span { color: var(--gold-bright); }
.person__socials { margin-top: 12px; color: var(--gold); font-size: 1rem; }
.couple__amp {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 3.6rem);
  align-self: center;
  text-align: center;
  animation: floatY 5s ease-in-out infinite;
}
.couple__amp span {
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 5s ease-in-out infinite;
}

/* ============ 10. COUNTDOWN ============ */
.countdown { text-align: center; }
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 3vw, 26px);
  max-width: 700px;
  margin: 0 auto;
}
.count {
  position: relative;
  padding: clamp(18px, 4vw, 32px) 8px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(11,61,50,.65), rgba(4,33,27,.55));
  border: 1px solid rgba(212,175,101,.28);
  box-shadow: inset 0 0 40px rgba(212,175,101,.05);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s;
}
.count::before {
  content: "";
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.count:hover { transform: translateY(-4px); border-color: rgba(212,175,101,.5); }
.count__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 9vw, 3.4rem);
  line-height: 1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  transition: transform .35s var(--ease);
}
.count__num.is-tick { animation: numPop .4s var(--ease); }
@keyframes numPop {
  0% { transform: translateY(-30%); opacity: .3; }
  60% { transform: translateY(4%); opacity: 1; }
  100% { transform: none; }
}
.count__label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-title);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .6rem;
  color: var(--champagne);
}
.countdown__done {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  color: var(--gold-bright);
  margin-top: 10px;
}

/* ============ 11. EVENTS ============ */
.events__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  max-width: 760px;
  margin: 0 auto;
}
.event-card {
  position: relative;
  perspective: 1600px;
  cursor: pointer;
}
.event-card__inner {
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
}
.event-card.is-flipped .event-card__inner { transform: rotateY(180deg); }
.event-card__face {
  grid-area: 1 / 1;
  position: relative;
  padding: 40px 28px 46px;
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(160deg, rgba(11,61,50,.7), rgba(4,33,27,.6));
  border: 1px solid rgba(212,175,101,.24);
  overflow: hidden;
  transition: border-color .4s, box-shadow .4s;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.event-card__face::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-grad);
  opacity: .85;
}
.event-card__face--back { transform: rotateY(180deg); }
.event-card:hover .event-card__face { border-color: rgba(212,175,101,.55); box-shadow: var(--shadow-soft); }
.event-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--radius); }
.event-card__name--ur { font-family: var(--font-ur); line-height: 1.9; }
.event-card__venue--ur { font-family: var(--font-ur); line-height: 2.1; }
.event-card__isa--ur { font-family: var(--font-ur); font-style: normal; }
.event-card__icon {
  width: 66px; height: 66px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--gold-bright);
  background: rgba(212,175,101,.1);
  border: 1px solid rgba(212,175,101,.3);
}
.event-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--ivory);
  margin-bottom: 8px;
}
.event-card__date {
  font-family: var(--font-title);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .74rem;
  color: var(--gold);
}
.event-card__time { font-size: 1rem; color: var(--champagne); margin-top: 4px; }
.event-card__venue {
  font-size: .84rem;
  color: var(--cream);
  opacity: .85;
  margin: 12px auto 0;
  max-width: 24ch;
  line-height: 1.5;
}
.event-card__venue i { color: var(--gold); margin-right: 4px; }
.event-card__isa {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .95rem;
  color: var(--gold-bright);
  margin-top: 6px;
}
.event-card__map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 11px 24px;
  border-radius: 100px;
  font-family: var(--font-title);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(212,175,101,.45);
  transition: background .3s, border-color .3s, transform .3s;
}
.event-card__map:hover { background: rgba(212,175,101,.14); border-color: var(--gold); transform: translateY(-2px); }

/* ============ 12. DUA / PRAYERS ============ */
.dua { text-align: center; }
.dua__list {
  display: grid;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.dua-card {
  position: relative;
  perspective: 1600px;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
}
.dua-card__inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
}
.dua-card.is-flipped .dua-card__inner { transform: rotateY(180deg); }
.dua-card__face {
  grid-area: 1 / 1;
  position: relative;
  padding: 30px 30px 42px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(11,61,50,.6), rgba(4,33,27,.5));
  border: 1px solid rgba(212,175,101,.24);
  transition: border-color .4s;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.dua-card__face--back { transform: rotateY(180deg); }
.dua-card:hover .dua-card__face { border-color: rgba(212,175,101,.5); }
.dua-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--radius); }
.dua-card__mark {
  display: block;
  font-family: var(--font-ar);
  font-size: 1.9rem;
  color: rgba(212,175,101,.55);
  line-height: 0;
  margin-bottom: 20px;
}
.dua-card__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 4.4vw, 1.4rem);
  color: var(--cream);
  line-height: 1.6;
}
.dua-card__text--ur {
  font-family: var(--font-ur);
  font-style: normal;
  line-height: 2.5;
  font-size: clamp(1.05rem, 4vw, 1.3rem);
}
.dua__ameen {
  max-width: 640px;
  margin: 18px auto 0;
  text-align: right;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 4.2vw, 1.4rem);
  letter-spacing: .04em;
  color: var(--gold-bright);
}

/* ============ 13. CLOSING ============ */
.closing { text-align: center; }
.closing__inner {
  max-width: 620px;
  margin: 0 auto;
  perspective: 1900px;
  cursor: pointer;
}
.closing__flipinner { display: grid; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.closing__inner.is-flipped .closing__flipinner { transform: rotateY(180deg); }
.closing__face {
  grid-area: 1 / 1;
  position: relative;
  padding: clamp(46px, 9vw, 70px) 30px clamp(56px, 9vw, 82px);
  border-radius: var(--radius);
  border: 1px solid rgba(212,175,101,.24);
  background: linear-gradient(160deg, rgba(11,61,50,.55), rgba(4,33,27,.45));
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.closing__face--back { transform: rotateY(180deg); }
.closing__inner:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: var(--radius); }
.closing__text--ur { font-family: var(--font-ur); font-style: normal; line-height: 2.35; max-width: 34ch; }
.closing__sign--ur { font-family: var(--font-ur); line-height: 1.8; }
.closing__crescent { margin: 0 auto 8px; }
.closing__ar {
  font-family: var(--font-ar);
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  color: var(--champagne);
  margin-bottom: 16px;
}
.closing__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 4.6vw, 1.5rem);
  color: var(--cream);
  max-width: 32ch;
  margin: 0 auto 22px;
  line-height: 1.55;
}
.closing__sign {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  color: var(--gold-bright);
}

/* ============ 13. REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ 15. RESPONSIVE ============ */
@media (max-width: 620px) {
  .couple__grid { grid-template-columns: 1fr; gap: 10px; }
  .couple__amp { margin: 6px 0; }
  .countdown__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1400px) { :root { --maxw: 1140px; } }

/* ============ 16. REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  #particles, .bg-glow, .bg-pattern { display: none; }
  .scrollcue::after { display: none; }
}
