/* ============ Design Tokens: "Sacred Garden" palette ============ */
:root {
  --ivory: #faf7ef;
  --ivory-deep: #f2ecdc;
  --cream: #efe6d0;
  --sage: #5b6b4f;
  --sage-deep: #3f4c37;
  --sage-light: #93a37f;
  --gold: #a6813c;
  --gold-light: #cbab6b;
  --blush: #d9b8a3;
  --wax: #6f1f2b;
  --wax-deep: #4a141c;
  --wax-light: #8f3244;
  --champagne: #f6e6d2;
  --champagne-deep: #f0d7b8;
  --champagne-text: #9c6b3e;
  --ink: #2e2b23;
  --ink-soft: #6b6455;
  --white: #ffffff;

  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  --font-display: 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;

  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-serif);
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ============ Scroll lock (while preloader / envelope are up) ============ */
body.no-scroll { overflow: hidden; height: 100vh; }

/* ============ Preloader ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__wreath {
  width: 140px;
  height: 140px;
  color: var(--sage-light);
  fill: currentColor;
  opacity: 0.5;
  animation: spin 12s linear infinite;
}
.preloader__monogram {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.preloader__monogram span { color: var(--sage); margin: 0 0.25rem; }
.preloader__label {
  margin-top: 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Envelope gate ============ */
.envelope-gate {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--ivory);
  perspective: 1400px;
  transition: opacity 0.8s ease 0.35s, visibility 0.8s ease 0.35s;
}
.envelope-gate.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Once the real video finishes, the gate stops being a fixed overlay and becomes
   the page's actual hero section — the video (frozen on its last frame) stays as
   the background, with the wedding text fading in on top of it. */
.envelope-gate.has-video-mode { padding: 0; }
.envelope-gate.is-video-hero {
  position: relative;
  inset: auto;
  min-height: 100svh;
  padding: 0;
  background: var(--ink);
}

.envelope {
  position: relative;
  width: min(84vw, 340px);
  aspect-ratio: 340 / 500;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.6, 0.05, 0.22, 1);
}
.envelope.is-open { transform: scale(1.18); }
.envelope-gate.is-video-hero .envelope.is-open { transform: none; }

.envelope__vector { position: absolute; inset: 0; }

/* Real video (assets/video/envelope-open.mp4): hidden until it loads successfully.
   Fills the full screen, both before opening and as the hero afterward. */
.envelope__video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 26px 60px rgba(46, 43, 35, 0.18);
}
.envelope.has-video {
  width: 100vw;
  height: 100svh;
  max-width: 100vw;
  aspect-ratio: unset;
}
.envelope.has-video .envelope__vector { display: none; }
.envelope.has-video .envelope__video {
  display: block;
  border-radius: 0;
  box-shadow: none;
}
.envelope.has-video .envelope__cta {
  bottom: 8%;
  color: var(--ink);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.4);
}

/* The video's final frame is a bright, light scene -- a soft text-shadow alone
   isn't enough contrast for the hero text sitting on top of it, so darken the
   center of the frame (where the text sits) with a vignette, fading out
   toward the edges so the video itself still reads clearly around it. */
.envelope-gate.is-video-hero .envelope::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  background: radial-gradient(ellipse at center, rgba(20, 15, 8, 0.5) 0%, rgba(20, 15, 8, 0.22) 45%, rgba(20, 15, 8, 0) 75%);
  pointer-events: none;
}

/* The relocated hero text/scroll cue, once living inside the video hero. */
.envelope-gate.is-video-hero .hero__text {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10vh 2rem 2rem;
  opacity: 0;
  animation: heroTextFadeIn 1.2s ease 0.3s forwards;
}
.envelope-gate.is-video-hero .hero__eyebrow,
.envelope-gate.is-video-hero .hero__date-line {
  color: var(--ivory);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.envelope-gate.is-video-hero .hero__amp { color: var(--gold-light); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.envelope-gate.is-video-hero .hero__names { color: var(--ivory); text-shadow: 0 3px 14px rgba(0, 0, 0, 0.4); }

.envelope-gate.is-video-hero .hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  opacity: 0;
  animation: heroTextFadeIn 1.2s ease 0.6s forwards;
}
.envelope-gate.is-video-hero .hero__scroll-label,
.envelope-gate.is-video-hero .hero__scroll-chevron {
  color: var(--ivory);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
@keyframes heroTextFadeIn { to { opacity: 1; } }

.envelope__base,
.envelope__pocket-bottom,
.envelope__flap-top {
  position: absolute;
  inset: 0;
  border-radius: 6px;
}
.envelope__base {
  background: var(--cream);
  box-shadow: 0 26px 60px rgba(46, 43, 35, 0.18);
}
.envelope__pocket-bottom {
  z-index: 1;
  clip-path: polygon(0 100%, 100% 100%, 50% 46%);
  background: linear-gradient(200deg, var(--ivory-deep), var(--cream));
}
.envelope__flap-top {
  z-index: 3;
  height: 52%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(160deg, var(--ivory) 0%, var(--cream) 100%);
  transform-origin: top center;
  transition: transform 0.9s cubic-bezier(0.6, 0.05, 0.22, 1) 0.55s, opacity 0.7s ease 0.85s, box-shadow 0.6s ease;
}
.envelope.is-glowing .envelope__flap-top {
  box-shadow: 0 0 40px 6px rgba(203, 171, 107, 0.55);
}
.envelope.is-open .envelope__flap-top {
  transform: rotateX(-155deg) translateY(-1%);
  opacity: 0;
}

/* Warm light glow that builds behind the seal, then beams out as the flap lifts */
.envelope__glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 130%;
  height: 90%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gold-light) 0%, rgba(203, 171, 107, 0.4) 40%, transparent 70%);
  filter: blur(18px);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 1s ease;
}
.envelope.is-glowing .envelope__glow { opacity: 0.85; }
.envelope.is-open .envelope__glow { opacity: 0; transition: opacity 0.6s ease 0.6s; }

/* A larger, softer secondary glow that blooms out beyond the card for a more magical aura. */
.envelope__glow--wide {
  width: 220%;
  height: 170%;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 1.3s ease;
}
.envelope.is-glowing .envelope__glow--wide { opacity: 0.5; }
.envelope.is-open .envelope__glow--wide { opacity: 0; transition: opacity 0.8s ease 0.6s; }

/* A bright flash that bursts outward the instant the flap starts to lift. */
.envelope__burst {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf5 0%, var(--gold-light) 35%, transparent 72%);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
}
.envelope.is-open .envelope__burst {
  animation: envelopeBurst 0.9s ease-out 0.55s forwards;
}
@keyframes envelopeBurst {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.95; }
  55% { opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(9); opacity: 0; }
}

/* Twinkling sparkle particles, positioned by JS, animating while the seal glows. */
.envelope__sparkles {
  position: absolute;
  inset: -8%;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}
.envelope__sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 6px 1px rgba(203, 171, 107, 0.9);
  opacity: 0;
}
.envelope.is-glowing .envelope__sparkle { animation: sparkleTwinkle 1.6s ease-in-out infinite; }
.envelope.is-open .envelope__sparkle { animation: sparkleFadeOut 0.6s ease forwards; }
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 1; transform: scale(1.3); }
}
@keyframes sparkleFadeOut {
  to { opacity: 0; transform: scale(0); }
}

.envelope__beam {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 10%;
  height: 0%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--gold-light), transparent 85%);
  filter: blur(5px);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.5s ease 0.55s, height 0.9s ease 0.55s;
}
.envelope.is-glowing .envelope__beam { opacity: 0.9; height: 88%; }
.envelope.is-open .envelope__beam { opacity: 0; transition: opacity 0.5s ease; }

.envelope__vine {
  position: absolute;
  width: 21%;
  height: 88%;
  top: 6%;
  color: var(--gold);
  opacity: 0.4;
  z-index: 2;
  pointer-events: none;
}
.envelope__vine--l { left: 3%; }
.envelope__vine--r { right: 3%; transform: scaleX(-1); }

.envelope__seal {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 4;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  border-radius: 46% 54% 52% 48% / 54% 46% 56% 44%;
  border: none;
  background: radial-gradient(circle at 33% 28%, var(--wax-light) 0%, var(--wax) 55%, var(--wax-deep) 100%);
  box-shadow: 0 8px 18px rgba(46, 43, 35, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.2), inset 0 -4px 8px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.envelope__seal::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(203, 171, 107, 0.5);
  border-radius: inherit;
}
.envelope__seal:hover { transform: translate(-50%, -50%) scale(1.05); }
.envelope.is-glowing .envelope__seal {
  box-shadow: 0 0 26px 8px rgba(203, 171, 107, 0.6), 0 8px 18px rgba(46, 43, 35, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.2), inset 0 -4px 8px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.9s ease;
}
.envelope.is-open .envelope__seal {
  transform: translate(-50%, -50%) scale(0.35) rotate(20deg);
  opacity: 0;
}
.envelope__seal-monogram {
  position: relative;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.envelope__seal-monogram span { opacity: 0.85; margin: 0 0.02em; }

.envelope__cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3.2rem;
  z-index: 3;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  transition: opacity 0.25s ease;
}
.envelope.is-glowing .envelope__cta,
.envelope.is-open .envelope__cta { opacity: 0; }
.envelope__chevron {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  animation: chevronBounce 1.6s ease-in-out infinite;
}
@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ============ Botanical ornaments ============ */
/* .leaf / .branch__stem use currentColor so each context tints via its own `color`. */
.leaf { fill: currentColor; opacity: 0.85; }
.leaf__vein { stroke: var(--sage-deep); stroke-width: 0.6; opacity: 0.5; }
.branch__stem { stroke: currentColor; stroke-width: 1.4; opacity: 0.6; }

.bloom__center { fill: var(--gold-light); }
.bouquet__leaf { opacity: 0.85; }
.bouquet__bloom { fill: var(--ivory); opacity: 0.92; }
.bouquet__bloom--sm { opacity: 0.8; }

.rosevine__stem { fill: none; stroke: currentColor; stroke-width: 2; opacity: 0.65; }
.rosevine__bloom { fill: currentColor; opacity: 0.92; }
.rosevine__bloom--sm { opacity: 0.82; }
.envelope__vine .leaf__vein { stroke: rgba(58, 51, 44, 0.15); }

.couple__figure { fill: var(--sage-deep); }

/* ============ Decorative petals ============ */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.petals span {
  position: absolute;
  top: -10%;
  width: 10px;
  height: 10px;
  background: var(--blush);
  border-radius: 0 100% 0 100%;
  opacity: 0.7;
  animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.8; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 2rem;
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(250, 247, 239, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.8rem 2rem;
  box-shadow: 0 4px 20px rgba(46,43,35,0.06);
}
.nav__logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.nav__logo span { color: var(--sage); margin: 0 0.15rem; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav__links a { position: relative; padding: 0.3rem 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn--solid {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--ivory);
  box-shadow: 0 10px 26px rgba(166, 129, 60, 0.35);
}
.btn--solid:hover {
  background: linear-gradient(135deg, var(--wax) 0%, var(--gold) 100%);
  box-shadow: 0 14px 32px rgba(166, 129, 60, 0.45);
  transform: translateY(-1px);
}
.btn__icon {
  width: 14px;
  height: 14px;
  fill: var(--ivory);
  opacity: 0.9;
}

/* ============ Hero ============ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(166,129,60,0.14), transparent 55%),
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory-deep) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(166,129,60,0.35);
  pointer-events: none;
}
.hero__arch-wrap {
  position: relative;
  width: min(88vw, 440px);
  aspect-ratio: 420 / 700;
  animation: fadeUp 1.2s ease both;
}
.hero__arch { width: 100%; height: auto; display: block; }

/* Real hero photo (assets/img/hero-scene.jpg): hidden until it loads successfully. */
.hero__photo {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  z-index: 0;
}
.hero-arch-wrap--has-photo .hero__photo { display: block; }
.hero-arch-wrap--has-photo .hero__arch,
.hero-arch-wrap--has-photo .hero__bouquet { display: none; }

.arch__column, .arch__capital {
  fill: var(--ivory-deep);
  stroke: var(--gold);
  stroke-width: 1.2;
  opacity: 0.9;
}
.arch__outline {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  opacity: 0.85;
}
.arch__outline--inner { stroke-width: 1.2; opacity: 0.55; }
.arch__finial { fill: var(--gold); }
.arch__finial-line { stroke: var(--gold); stroke-width: 1.5; }
.arch__vine { color: var(--sage); }
.arch__water-line { fill: none; stroke: var(--gold-light); stroke-width: 1; opacity: 0.5; }

.hero__mosque {
  color: var(--gold);
  opacity: 0.55;
}
.hero__mosque .mosque__wall,
.hero__mosque .mosque__minaret,
.hero__mosque .mosque__dome,
.hero__mosque .mosque__dome-small,
.hero__mosque .mosque__arch,
.hero__mosque .mosque__window { fill: var(--ivory); stroke: currentColor; }

.hero__couple { fill: var(--sage-deep); opacity: 0.9; }
.hero__couple-reflect { fill: var(--sage-deep); opacity: 0.15; }

.hero__lantern { color: var(--gold); }
.lantern__chain, .lantern__cap, .lantern__body, .lantern__tip, .lantern__rib {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.3;
}
.lantern__cap, .lantern__body, .lantern__tip { fill: var(--ivory); opacity: 0.9; }
.lantern__glow { fill: var(--gold-light); opacity: 0.7; }

.chandelier__chain, .chandelier__arm, .chandelier__ring, .chandelier__drop {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.3;
}
.chandelier__bulb { fill: currentColor; }

.closing { background: var(--champagne); max-width: none; padding: 5rem 1.5rem; }
.closing__chandelier {
  width: min(50vw, 170px);
  height: auto;
  color: var(--gold);
  opacity: 0.85;
  margin: 0 auto 1.5rem;
  display: block;
}
.closing__message {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  color: var(--champagne-text);
}

.hero__bouquet {
  position: absolute;
  width: 22%;
  height: auto;
  color: var(--sage);
  z-index: 2;
  pointer-events: none;
}
.hero__bouquet--tl { top: -2%; left: -6%; }
.hero__bouquet--tr { top: -2%; right: -6%; transform: scaleX(-1); }
.hero__bouquet--bl { bottom: -2%; left: -6%; transform: scaleY(-1); }
.hero__bouquet--br { bottom: -2%; right: -6%; transform: scale(-1, -1); }

.hero__text {
  position: absolute;
  top: 14%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  letter-spacing: 0.03em;
  color: var(--gold);
  margin-bottom: 1.1rem;
  text-align: center;
}
.hero__date-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-top: 1rem;
  font-variant-numeric: tabular-nums;
}
.hero__names {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  color: var(--sage-deep);
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero__amp {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 0.45em;
  margin: 0.1em 0;
}

.hero__scroll {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}
.hero__scroll-label {
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--gold);
}
.hero__scroll-chevron {
  color: var(--gold);
  font-size: 1rem;
  animation: chevronBounce 1.6s ease-in-out infinite;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Intro / Bismillah ============ */
/* Themed to match the champagne/peach palace video (chandelier, curtains, gold) rather
   than the site's sage-green default, so it flows visually out of the hero video. */
.intro {
  max-width: none;
  background: linear-gradient(180deg, var(--champagne) 0%, var(--ivory) 100%);
}
.intro .torn-card { max-width: 720px; margin: 0 auto; }
.torn-card {
  position: relative;
  background: linear-gradient(165deg, var(--ivory) 0%, var(--champagne-deep) 55%, var(--champagne) 100%);
  padding: 3.5rem 2.5rem;
  border-radius: 6px;
  box-shadow: 0 30px 70px -30px rgba(156, 107, 62, 0.35), 0 6px 18px -10px rgba(156, 107, 62, 0.2);
}
.torn-card::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(166, 129, 60, 0.35);
  border-radius: 3px;
  pointer-events: none;
}
.intro__bismillah {
  font-family: 'Aref Ruqaa', serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: var(--gold);
  margin-bottom: 1.6rem;
}
/* One consistent size/family per language across the whole letter — opening
   lines, body paragraphs, and the date/venue line all read as a single voice. */
.intro__poem,
.intro__message,
.intro__details {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--champagne-text);
  line-height: 1.85;
  margin-bottom: 1.4rem;
}
[dir="rtl"] .intro__poem,
[dir="rtl"] .intro__message,
[dir="rtl"] .intro__details {
  font-family: 'Aref Ruqaa', serif;
  font-style: normal;
  font-size: clamp(1.2rem, 2.6vw, 1.4rem);
  line-height: 2.1;
}
/* The whole English translation, weighted to match how bold the Arabic
   (Aref Ruqaa) reads next to it -- Cormorant Garamond needs an explicit
   bold weight to carry the same presence throughout, not just the opening
   lines. */
.intro__translation .intro__poem,
.intro__translation .intro__message,
.intro__translation .intro__details {
  font-weight: 700;
}
.intro__divider {
  width: 34px;
  height: 34px;
  fill: var(--gold);
  opacity: 0.8;
  margin: 0 auto 1.8rem;
  display: block;
}
.intro__divider--mid { margin: 2.4rem auto; opacity: 0.5; }
.intro__translation {
  padding-top: 0.2rem;
  opacity: 0.92;
}
.intro__details {
  margin-top: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(156, 107, 62, 0.25);
  margin-bottom: 0;
}

/* ============ Mosque illustration ============ */
.mosque-illustration {
  width: min(60vw, 220px);
  height: auto;
  margin: 0 auto 2.5rem;
  color: var(--sage-deep);
  display: block;
}
.mosque__wall, .mosque__minaret { fill: var(--ivory-deep); stroke: var(--gold); stroke-width: 1.4; }
.mosque__dome, .mosque__dome-small, .mosque__arch, .mosque__window { fill: var(--ivory-deep); stroke: var(--gold); stroke-width: 1.4; }
.mosque__finial { fill: var(--gold); }
.mosque__finial-line, .mosque__minaret-line, .mosque__ledge { stroke: var(--gold); stroke-width: 1.2; }

/* ============ Sections (shared) ============ */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
}
.section__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ink);
  margin-bottom: 1.5rem;
  position: relative;
}
.section__title::after {
  content: "";
  display: block;
  width: 70px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Countdown ============ */
.countdown {
  background: linear-gradient(180deg, var(--champagne) 0%, var(--champagne-deep) 100%);
  color: var(--champagne-text);
  max-width: none;
  padding: 4.5rem 1.5rem;
}
.countdown .section__eyebrow { color: var(--gold); font-family: var(--font-script); font-size: 1.5rem; letter-spacing: 0; text-transform: none; }
.countdown__grid {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  flex-wrap: wrap;
  margin-top: 1rem;
}
.countdown__unit { display: flex; flex-direction: column; align-items: center; }
.countdown__value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--champagne-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(156, 107, 62, 0.7);
}
.countdown__colon {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold);
  opacity: 0.6;
  align-self: flex-start;
  margin-top: 0.1em;
}

/* ============ Details ============ */
.details { background: var(--ivory); max-width: none; }
.details__venue {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.details__venue [lang="ar"] {
  font-family: 'Aref Ruqaa', serif;
  font-size: 1.2em;
  margin-inline-start: 0.4rem;
}
.details__time {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}
.map-frame {
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(58, 51, 44, 0.08);
  aspect-ratio: 16 / 10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-card {
  max-width: 480px;
  margin: 3rem auto 0;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(58, 51, 44, 0.08);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.map-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(58, 51, 44, 0.12);
}
.map-card__icon { font-size: 1.6rem; flex-shrink: 0; }
.map-card__text { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.map-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.map-card__sub {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.map-card__arrow {
  font-size: 1.3rem;
  color: var(--sage);
  transition: transform 0.25s ease;
}
.map-card:hover .map-card__arrow { transform: translateX(4px); }

.details__calendar { margin-top: 3rem; }

/* ============ Footer ============ */
.footer {
  position: relative;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: linear-gradient(180deg, var(--champagne-deep) 0%, var(--champagne) 100%);
  color: var(--champagne-text);
  overflow: hidden;
}
.footer__wreath {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  color: rgba(156, 107, 62, 0.15);
  fill: currentColor;
}
.footer__names {
  position: relative;
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--gold);
}
.footer__names span { color: var(--champagne-text); margin: 0 0.3rem; }
.footer__date {
  position: relative;
  font-family: var(--font-sans);
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: rgba(156, 107, 62, 0.75);
  margin: 0.8rem 0 1.5rem;
}
.footer__thanks {
  position: relative;
  font-style: italic;
  color: rgba(156, 107, 62, 0.85);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============ Music toggle ============ */
.music-toggle {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(58,51,44,0.15);
}
.music-toggle__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}
.music-toggle__bars i {
  display: block;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
  height: 6px;
  animation: none;
}
.music-toggle[aria-pressed="true"] .music-toggle__bars i { animation: bar 0.9s ease-in-out infinite; }
.music-toggle__bars i:nth-child(2) { animation-delay: 0.15s; }
.music-toggle__bars i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bar {
  0%, 100% { height: 5px; }
  50% { height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .envelope,
  .envelope__flap-top,
  .envelope__seal,
  .preloader,
  .envelope-gate { transition-duration: 0.01ms !important; }
}
