/* ======================================================================
   Yasir & Saira — Wedding Invitation
   Palette: warm ivory / cream · champagne gold · soft sage green
   ====================================================================== */

:root {
  --cream:      #f7f1e4;   /* page background (warm ivory) */
  --cream-2:    #eee1c9;
  --paper:      #fdf9ef;   /* envelope + cards */
  --sage:       #9aab86;   /* soft sage green */
  --sage-deep:  #6f8062;
  --gold:       #c2a05a;   /* champagne gold */
  --gold-light: #e4cd8f;
  --gold-deep:  #9c7c3f;
  --taupe:      #7a6a52;   /* secondary text */
  --ink:        #5f4f3a;   /* body text */
  --heading:    #8a6a37;   /* bronze heading */

  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --script: 'Great Vibes', cursive;
  --seal:   'Pinyon Script', cursive;
  --arabic: 'Amiri', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--serif);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill='none' stroke='%239aab86' stroke-width='1.2' opacity='0.13'%3E%3Ccircle cx='36' cy='18' r='7'/%3E%3Ccircle cx='36' cy='54' r='7'/%3E%3Ccircle cx='18' cy='36' r='7'/%3E%3Ccircle cx='54' cy='36' r='7'/%3E%3Ccircle cx='36' cy='36' r='2.6' fill='%23c2a05a'/%3E%3C/g%3E%3C/svg%3E"),
    var(--cream);
}
body.opened { overflow-y: auto; overflow-x: hidden; }

/* visible floral border that dissolves into the cream (blended, not a flat bg) */
.floral-band {
  position: absolute; left: 0; right: 0; top: 0; height: 250px; z-index: 0;
  background: url("flowers/flower.jpg") center top / 120% auto no-repeat;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, #000 16%, transparent 60%);
  mask-image: linear-gradient(to bottom, #000 16%, transparent 60%);
  pointer-events: none;
}
.floral-band.bottom {
  top: auto; bottom: 0; background-position: center bottom;
  -webkit-mask-image: linear-gradient(to top, #000 16%, transparent 60%);
  mask-image: linear-gradient(to top, #000 16%, transparent 60%);
}

/* ---- falling petals ---- */
.petals { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.petals i {
  position: absolute; top: -6%; width: 14px; height: 14px;
  background: radial-gradient(120% 120% at 30% 20%, #fbf3df, #e4cd8f 72%);
  border-radius: 100% 0 100% 0;
  opacity: 0;
  animation: petal-fall 13s linear infinite;
  will-change: transform;
}
@keyframes petal-fall  { 0%{opacity:0; transform: translate3d(0,-10vh,0) rotate(0)} 8%{opacity:.82} 100%{opacity:.5; transform: translate3d(30px,110vh,0) rotate(400deg)} }
@keyframes petal-fall2 { 0%{opacity:0; transform: translate3d(0,-10vh,0) rotate(0)} 8%{opacity:.82} 100%{opacity:.5; transform: translate3d(-34px,110vh,0) rotate(-380deg)} }

/* sage + ivory accent petals */
.petals i:nth-child(3n)   { background: radial-gradient(120% 120% at 30% 20%, #cdd7ba, #9aab86 75%); }
.petals i:nth-child(4n+1) { background: radial-gradient(120% 120% at 30% 20%, #fdf7ea, #efe3c9 75%); }

.petals i:nth-child(1)  { left: 3%;  width: 12px; height: 12px; animation-duration: 15s; animation-delay: 0s; }
.petals i:nth-child(2)  { left: 8%;  width: 16px; height: 16px; animation-duration: 11s; animation-delay: 3.5s; animation-name: petal-fall2; }
.petals i:nth-child(3)  { left: 14%; width: 10px; height: 10px; animation-duration: 17s; animation-delay: 1.2s; }
.petals i:nth-child(4)  { left: 20%; width: 15px; height: 15px; animation-duration: 12.5s; animation-delay: 6s; animation-name: petal-fall2; }
.petals i:nth-child(5)  { left: 26%; width: 13px; height: 13px; animation-duration: 14s; animation-delay: 2.4s; }
.petals i:nth-child(6)  { left: 32%; width: 18px; height: 18px; animation-duration: 10.5s; animation-delay: 5s; animation-name: petal-fall2; }
.petals i:nth-child(7)  { left: 38%; width: 11px; height: 11px; animation-duration: 16s; animation-delay: 0.6s; }
.petals i:nth-child(8)  { left: 44%; width: 15px; height: 15px; animation-duration: 12s; animation-delay: 4.2s; animation-name: petal-fall2; }
.petals i:nth-child(9)  { left: 50%; width: 13px; height: 13px; animation-duration: 15.5s; animation-delay: 2s; }
.petals i:nth-child(10) { left: 56%; width: 17px; height: 17px; animation-duration: 11.5s; animation-delay: 6.5s; animation-name: petal-fall2; }
.petals i:nth-child(11) { left: 62%; width: 10px; height: 10px; animation-duration: 18s; animation-delay: 1.8s; }
.petals i:nth-child(12) { left: 68%; width: 14px; height: 14px; animation-duration: 13.5s; animation-delay: 3s; animation-name: petal-fall2; }
.petals i:nth-child(13) { left: 74%; width: 16px; height: 16px; animation-duration: 12.8s; animation-delay: 7.5s; }
.petals i:nth-child(14) { left: 80%; width: 11px; height: 11px; animation-duration: 16.5s; animation-delay: 8.5s; animation-name: petal-fall2; }
.petals i:nth-child(15) { left: 86%; width: 15px; height: 15px; animation-duration: 12.2s; animation-delay: 1s; }
.petals i:nth-child(16) { left: 92%; width: 12px; height: 12px; animation-duration: 17.5s; animation-delay: 4.8s; animation-name: petal-fall2; }
.petals i:nth-child(17) { left: 6%;  width: 14px; height: 14px; animation-duration: 13.8s; animation-delay: 9s; }
.petals i:nth-child(18) { left: 17%; width: 12px; height: 12px; animation-duration: 15.2s; animation-delay: 5.6s; animation-name: petal-fall2; }
.petals i:nth-child(19) { left: 35%; width: 16px; height: 16px; animation-duration: 11.8s; animation-delay: 7s; }
.petals i:nth-child(20) { left: 47%; width: 10px; height: 10px; animation-duration: 18.5s; animation-delay: 2.8s; animation-name: petal-fall2; }
.petals i:nth-child(21) { left: 59%; width: 14px; height: 14px; animation-duration: 13s; animation-delay: 9.5s; }
.petals i:nth-child(22) { left: 71%; width: 13px; height: 13px; animation-duration: 16.8s; animation-delay: 3.8s; animation-name: petal-fall2; }
.petals i:nth-child(23) { left: 83%; width: 17px; height: 17px; animation-duration: 12.6s; animation-delay: 6.2s; }
.petals i:nth-child(24) { left: 95%; width: 11px; height: 11px; animation-duration: 15.8s; animation-delay: 0.4s; animation-name: petal-fall2; }
.petals i:nth-child(25) { left: 10%; width: 13px; height: 13px; animation-duration: 14.5s; animation-delay: 5.2s; }
.petals i:nth-child(26) { left: 24%; width: 11px; height: 11px; animation-duration: 16.2s; animation-delay: 8s; animation-name: petal-fall2; }
.petals i:nth-child(27) { left: 41%; width: 15px; height: 15px; animation-duration: 12.4s; animation-delay: 3.3s; }
.petals i:nth-child(28) { left: 52%; width: 12px; height: 12px; animation-duration: 17.2s; animation-delay: 6.8s; animation-name: petal-fall2; }
.petals i:nth-child(29) { left: 64%; width: 16px; height: 16px; animation-duration: 11.6s; animation-delay: 1.4s; }
.petals i:nth-child(30) { left: 76%; width: 12px; height: 12px; animation-duration: 15.4s; animation-delay: 9.2s; animation-name: petal-fall2; }
.petals i:nth-child(31) { left: 88%; width: 14px; height: 14px; animation-duration: 13.2s; animation-delay: 4.4s; }
.petals i:nth-child(32) { left: 30%; width: 10px; height: 10px; animation-duration: 18.2s; animation-delay: 7.7s; animation-name: petal-fall2; }

@media (prefers-reduced-motion: reduce) { .petals { display: none; } }

/* ======================================================================
   COVER · ENVELOPE
   ====================================================================== */
.cover {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px; text-align: center;
  background: radial-gradient(120% 85% at 50% 0%, #fdf8ee 0%, #f3e7cd 55%, #ece0c4 100%);
  transition: opacity 1.1s ease, visibility 1.1s ease, transform 1.1s ease;
}
.cover::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(255,255,255,.5), transparent 70%) 50% 20% / 70% 45% no-repeat,
    radial-gradient(closest-side, rgba(194,160,90,.16), transparent 70%) 50% 92% / 90% 35% no-repeat;
}
.cover.hidden { opacity: 0; visibility: hidden; transform: scale(1.15); }

.cover-inner { position: relative; z-index: 2; width: 100%; max-width: 360px; margin-top: 2vh; }

/* watercolor floral arch framing the cover.  The source art is a SQUARE wreath,
   so instead of stretching one square into a tall box (which distorts every
   flower) we render it as two natural-proportion pieces — a garland across the
   top and florals across the bottom — that hug the content column. */
.cover-frame {
  position: absolute; left: 0; right: 0; margin-inline: auto;
  top: calc(50% - min(36vh, 280px));   /* vertical centre WITHOUT transform — a transform would
                                          create an isolated stacking context and kill multiply */
  width: min(94%, 600px); height: min(72vh, 560px);
  pointer-events: none;                /* and no z-index, for the same reason.  The FRAME is the
                                          wide element (reliably centred since its width < viewport);
                                          the floral pieces just fill it, so they never overflow. */
}
.cover-frame::before,
.cover-frame::after {
  content: ""; position: absolute; left: 0; right: 0; width: 100%;
  background-image: url("flowers/flower.jpg");
  background-repeat: no-repeat;
  background-size: 100% auto;          /* full width, proportional height → no stretch */
  mix-blend-mode: multiply;            /* drop the white paper behind the flowers */
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;   mask-size: 100% 100%;
}
.cover-frame::before {                 /* garland across the top (top ~46% of the wreath) */
  top: -4%; aspect-ratio: 1 / 0.46; background-position: top center;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}
.cover-frame::after {                  /* florals across the bottom (bottom ~30% of the wreath) */
  bottom: -2%; aspect-ratio: 1 / 0.30; background-position: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 65%, transparent 100%);
          mask-image: linear-gradient(to top, #000 65%, transparent 100%);
}
/* soft cream halo so text stays readable inside the arch */
.cover-inner::before {
  content: ""; position: absolute; z-index: -1;
  left: -12%; right: -12%; top: -6%; bottom: -6%;
  background: radial-gradient(ellipse 76% 92% at 50% 50%, rgba(250,245,234,.95) 44%, rgba(250,245,234,.74) 70%, transparent 90%);
}

.cover-bismillah { font-family: var(--arabic); font-size: clamp(20px, 5vw, 30px); line-height: 1; margin-bottom: 18px; max-width: 100%; white-space: nowrap; }
.cover-eyebrow { font-size: clamp(12px, 3.6vw, 15px); letter-spacing: 3px; text-transform: uppercase; color: var(--taupe); opacity: .95; }
.cover-couple {
  font-family: var(--script); font-weight: 400; font-size: clamp(34px, 11vw, 62px); line-height: 1.05; margin: 6px 0 30px;
  max-width: 100%; overflow-wrap: break-word;
  background: linear-gradient(180deg, #e4cd8f, var(--gold) 58%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cover-couple span { font-family: var(--serif); font-style: italic; font-size: 42px; }

/* ---- the envelope ---- */
.env-stage { width: 300px; max-width: 100%; margin: 30px auto 28px; perspective: 1600px; animation: floaty 4.5s ease-in-out infinite; }
@media (max-width: 360px){ .env-stage { width: 264px; } }

.envelope {
  position: relative; width: 300px; height: 200px; margin: 0 auto;
  transform-style: preserve-3d; transform: rotateX(6deg);
  cursor: pointer; touch-action: manipulation; outline: none;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
@media (max-width: 360px){ .envelope { width: 264px; height: 176px; } }

.env-back {
  position: absolute; inset: 0; z-index: 1; border-radius: 8px;
  background: linear-gradient(150deg, #fdf7ea, var(--paper) 60%, #f0e6cf);
  border: 1px solid rgba(194,160,90,.55);
  box-shadow: 0 22px 38px rgba(150,120,70,.35);
}

/* florals peek out the top, then rise on open */
.env-florals {
  position: absolute; left: 50%; top: -84px; width: 300px; height: 172px; z-index: 2;
  transform: translateX(-50%) translateY(4px); transform-origin: center bottom;
  opacity: .96;
  transition: transform 1.25s cubic-bezier(.22,1,.3,1) .35s, opacity .95s ease .35s;
}
.env-florals svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 4px rgba(150,120,70,.22)); }
.envelope.opened .env-florals { transform: translateX(-50%) translateY(-46px) scale(1.05); opacity: 1; }

/* the card inside */
.env-letter {
  position: absolute; left: 9%; top: 9%; width: 82%; height: 82%; z-index: 3;
  background: linear-gradient(180deg, #fffdf7, var(--cream));
  border: 1px solid #e6d7b8; border-radius: 4px;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 18px;
  box-shadow: 0 4px 14px rgba(120,100,60,.12);
  transition: transform 1s cubic-bezier(.22,1,.3,1) .5s;
}
.env-letter span { font-family: var(--script); font-size: 25px; color: var(--heading); }
.envelope.opened .env-letter { transform: translateY(-14%); }

/* front pocket — champagne rim + ivory inset (emboss on the ivory) */
.env-front {
  position: absolute; inset: 0; z-index: 4; border-radius: 8px;
  background: linear-gradient(160deg, #e4cd8f, var(--gold) 50%, #a9863f);
  clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 100%, 0 100%);
}
.env-front::after {
  content: ""; position: absolute; inset: 0; border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cg fill='none' stroke='%23d9c294' stroke-width='1' opacity='0.55'%3E%3Ccircle cx='15' cy='8' r='3.3'/%3E%3Ccircle cx='15' cy='22' r='3.3'/%3E%3Ccircle cx='8' cy='15' r='3.3'/%3E%3Ccircle cx='22' cy='15' r='3.3'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #fbf5e8, #efe3c9);
  clip-path: polygon(1.8% 1.5%, 50% 55%, 98.2% 1.5%, 98.2% 98%, 1.8% 98%);
}

/* flap — champagne rim + ivory inset, opens in 3D */
.env-flap {
  position: absolute; left: 0; top: 0; width: 100%; height: 66%; z-index: 6;
  transform-origin: top center; transform: rotateX(0deg);
  transition: transform 1.05s cubic-bezier(.6,.04,.3,1) .1s;
  background: linear-gradient(160deg, #e4cd8f, var(--gold) 50%, #a9863f);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.env-flap::after {
  content: ""; position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cg fill='none' stroke='%23d9c294' stroke-width='1' opacity='0.55'%3E%3Ccircle cx='15' cy='8' r='3.3'/%3E%3Ccircle cx='15' cy='22' r='3.3'/%3E%3Ccircle cx='8' cy='15' r='3.3'/%3E%3Ccircle cx='22' cy='15' r='3.3'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #fdf8ec, #f2e8d0 65%, #efe3c9);
  clip-path: polygon(1.8% 1.6%, 98.2% 1.6%, 50% 96%);
}

/* wax-seal stamp */
.wax-seal {
  position: absolute; top: 54%; left: 50%; z-index: 7;
  width: 82px; height: 82px; transform: translate(-50%, -50%);
  transition: transform .5s ease, opacity .5s ease;
  filter: drop-shadow(0 6px 9px rgba(140,110,50,.42));
}
@media (max-width: 360px){ .wax-seal { width: 70px; height: 70px; } }
.wax-seal svg { width: 100%; height: 100%; display: block; }

/* interactive — gentle seal lift on desktop hover (no flap movement) */
@media (hover: hover) {
  .envelope:not(.opened):hover .wax-seal { transform: translate(-50%, -50%) scale(1.05); }
}
.envelope:focus-visible .wax-seal { transform: translate(-50%, -50%) scale(1.05); }

/* loading spin — seal spins like a loader while it's opening */
.envelope.loading { cursor: progress; }
.envelope.loading .wax-seal { animation: seal-spin .85s linear infinite; }
@keyframes seal-spin {
  0%   { transform: translate(-50%,-50%) rotate(0deg)   scale(1); }
  50%  { transform: translate(-50%,-50%) rotate(180deg) scale(1.09); }
  100% { transform: translate(-50%,-50%) rotate(360deg) scale(1); }
}

/* opened state */
.envelope.opened .env-flap { transform: rotateX(172deg); z-index: 1; }
.envelope.opened .wax-seal { transform: translate(-50%, -50%) scale(0) rotate(70deg); opacity: 0; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.cover-hint { font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--taupe); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.5} 50%{opacity:1} }

/* ======================================================================
   INVITATION
   ====================================================================== */
.invite {
  display: none; position: relative; z-index: 1; background: transparent;
  max-width: 620px; margin: 0 auto; padding: 0 18px 60px;
}
.invite.show { display: block; }

.section { position: relative; padding: 62px 20px; text-align: center; border-bottom: 1px solid rgba(194,160,90,.22); }
.section:last-of-type { border-bottom: none; }

/* watercolor floral corners on each section (arch-style, subtle) */
.section::before, .section::after {
  content: ""; position: absolute; top: -6px; width: 128px; height: 128px; z-index: -1;
  background: url("flowers/flower.jpg") 7% 9% / 250% auto no-repeat;
  mix-blend-mode: multiply; opacity: .62; pointer-events: none;
  -webkit-mask-image: radial-gradient(155% 155% at 8% 8%, #000 34%, transparent 70%);
  mask-image: radial-gradient(155% 155% at 8% 8%, #000 34%, transparent 70%);
}
.section::before { left: -6px; }
.section::after { right: -6px; transform: scaleX(-1); }
@media (max-width: 480px){ .section::before, .section::after { width: 94px; height: 94px; } }

/* four floral corners (used on the hero / main page) */
.floral-corner {
  position: absolute; width: 138px; height: 138px; z-index: -1; pointer-events: none;
  background: url("flowers/flower.jpg") 6% 8% / 260% auto no-repeat;
  mix-blend-mode: multiply; opacity: .72;
  -webkit-mask-image: radial-gradient(150% 150% at 8% 8%, #000 34%, transparent 72%);
  mask-image: radial-gradient(150% 150% at 8% 8%, #000 34%, transparent 72%);
}
.floral-corner.tl { top: -8px; left: -8px; }
.floral-corner.tr { top: -8px; right: -8px; transform: scaleX(-1); }
.floral-corner.bl { bottom: -8px; left: -8px; transform: scaleY(-1); }
.floral-corner.br { bottom: -8px; right: -8px; transform: scale(-1, -1); }
.hero::before, .hero::after { content: none; }   /* hero uses its own 4 corners */
@media (max-width: 480px){ .floral-corner { width: 104px; height: 104px; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Shared type */
.eyebrow { font-size: 15px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-deep); }
.script-title { font-family: var(--script); font-weight: 400; font-size: 42px; color: var(--heading); margin-bottom: 0; }
.script-title::after {
  content: ""; display: block; width: 180px; max-width: 70%; height: 22px; margin: 12px auto 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='22' viewBox='0 0 180 22'%3E%3Cg stroke='%23c2a05a' stroke-width='1.2' fill='none'%3E%3Cpath d='M22 11 H74'/%3E%3Cpath d='M106 11 H158'/%3E%3C/g%3E%3Cg fill='%239aab86'%3E%3Cpath d='M74 11 C 79 5 86 6 90 11 C 86 16 79 17 74 11 Z'/%3E%3Cpath d='M106 11 C 101 5 94 6 90 11 C 94 16 101 17 106 11 Z'/%3E%3C/g%3E%3Cg fill='%23c2a05a'%3E%3Ccircle cx='90' cy='11' r='2.4'/%3E%3Ccircle cx='20' cy='11' r='1.8'/%3E%3Ccircle cx='160' cy='11' r='1.8'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.bismillah { font-family: var(--arabic); direction: rtl; color: var(--gold-deep); margin-bottom: 22px; }
.cover .bismillah { color: var(--gold-deep); }

.divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 22px 0; font-size: 20px; }
.divider span { height: 1px; width: 64px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.divider.light { color: var(--sage); }
.divider.light span { background: linear-gradient(90deg, transparent, var(--sage)); }
.divider.light span:last-child { background: linear-gradient(90deg, var(--sage), transparent); }

/* ---- Hero ---- */
.hero { padding-top: 96px; }
/* keep hero/footer text above their floral corners/bands */
.hero > *:not(.floral-corner), .foot > *:not(.floral-band) { position: relative; z-index: 1; }
.hero-sprig { position: absolute; width: 96px; height: 96px; opacity: .9; pointer-events: none; }
.hero-sprig.tl { top: 8px; left: 6px; }
.hero-sprig.tr { top: 8px; right: 6px; transform: scaleX(-1); }
.hero-sprig.bl { bottom: 8px; left: 6px; transform: scaleY(-1); }
.hero-sprig.br { bottom: 8px; right: 6px; transform: scale(-1, -1); }
@media (max-width: 480px){ .hero-sprig { width: 68px; height: 68px; } }

/* photographic floral corners (hero) */
.hero-floral { position: absolute; width: 150px; height: auto; pointer-events: none; opacity: .96; z-index: 0;
  filter: drop-shadow(0 4px 6px rgba(120,100,60,.15)); }
.hero-floral.tl { top: -12px; left: -14px; }
.hero-floral.tr { top: -12px; right: -14px; transform: scaleX(-1); }
.hero-floral.bl { bottom: -12px; left: -14px; transform: scaleY(-1); }
.hero-floral.br { bottom: -12px; right: -14px; transform: scale(-1, -1); }
@media (max-width: 480px){ .hero-floral { width: 108px; } }

/* section corner sprigs — florals framing every section */
.sec-sprig { position: absolute; top: 8px; width: 62px; height: 62px; opacity: .8; pointer-events: none; z-index: 0; }
.sec-sprig.l { left: 2px; }
.sec-sprig.r { right: 2px; transform: scaleX(-1); }
@media (max-width: 480px){ .sec-sprig { width: 46px; height: 46px; } }

.names {
  font-family: var(--script); font-weight: 400; font-size: clamp(40px, 12.5vw, 74px); line-height: 1.02; margin: 8px 0 10px;
  max-width: 100%; overflow-wrap: break-word;
  background: linear-gradient(180deg, #e4cd8f, var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.names .amp { font-family: var(--serif); font-style: italic; font-size: 46px; }
.parents { font-size: 18px; color: var(--taupe); line-height: 1.7; }
.parents .dot { margin: 0 8px; color: var(--gold); }

.verse-ar { font-family: var(--arabic); direction: rtl; font-size: 23px; line-height: 2; color: var(--heading); max-width: 520px; margin: 0 auto 14px; }
.verse-en { font-style: italic; font-size: 18px; line-height: 1.7; color: var(--ink); max-width: 480px; margin: 0 auto 26px; }
.verse-en span { display: inline-block; margin-top: 6px; font-style: normal; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; color: var(--gold-deep); }

.lead { font-size: 20px; line-height: 1.7; color: var(--ink); }
.hero-date { margin-top: 18px; font-size: 20px; letter-spacing: 3px; text-transform: uppercase; color: var(--heading); font-weight: 600; }

/* ---- Countdown ---- */
.count { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.count-cell {
  min-width: 78px; padding: 18px 10px;
  background: linear-gradient(160deg, #fdf8ec, #f3e8cf);
  border: 1px solid var(--gold); border-radius: 10px;
  box-shadow: 0 10px 22px rgba(150,120,70,.18);
}
.count-cell b { display: block; font-family: var(--serif); font-weight: 600; font-size: 38px; color: var(--heading); line-height: 1; }
.count-cell span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--taupe); }

/* ---- Gallery (portrait, no crop) ---- */
.slideshow {
  position: relative; width: 100%; max-width: 380px; margin: 0 auto;
  aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  border: 3px solid var(--gold); box-shadow: 0 16px 34px rgba(150,120,70,.28);
  background: linear-gradient(160deg, #f3e8cf, #ece0c4);
}
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.1s ease; }
.slideshow img.active { opacity: 1; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(194,160,90,.35); transition: background .3s, transform .3s; cursor: pointer; }
.dots i.on { background: var(--gold); transform: scale(1.3); }

/* The couple — their own band: a warm line on the left, couple on the right,
   balanced + centered with room to breathe (blended onto the cream). */
.couple-showcase { padding-top: 46px; padding-bottom: 46px; }
.cs-inner {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  max-width: 560px; margin: 0 auto;
}
.cs-line {
  flex: 1; text-align: left; margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(20px, 5.2vw, 31px); line-height: 1.34; color: var(--heading);
}
.cs-img {
  flex: 0 0 46%; width: 46%; max-width: 225px; display: block; margin: 0;
  filter: drop-shadow(0 16px 24px rgba(150,120,70,.22));
}
@media (max-width: 460px) { .cs-inner { gap: 14px; } .cs-line { font-size: 18px; } }

/* ---- Events ---- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.detail-card {
  padding: 30px 20px; border-radius: 14px; background: var(--paper);
  border: 1px solid rgba(194,160,90,.5);
  box-shadow: 0 10px 26px rgba(150,120,70,.12);
  position: relative;
}
.detail-card.highlight { background: linear-gradient(180deg,#fdf8ec,#f4ecd6); border-color: var(--gold); box-shadow: 0 14px 30px rgba(150,120,70,.2); }
.dc-emblem { font-size: 30px; color: var(--gold); margin-bottom: 8px; }
.detail-card h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--heading); letter-spacing: 1px; margin-bottom: 12px; }
.dc-day  { font-size: 17px; color: var(--gold-deep); letter-spacing: 2px; text-transform: uppercase; }
.dc-date { font-size: 20px; color: var(--ink); font-weight: 600; margin: 2px 0 8px; }
.dc-time { font-size: 17px; color: var(--ink); }
.dc-venue{ font-size: 18px; color: var(--sage-deep); margin-top: 6px; font-style: italic; }

.dc-actions { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.dc-map, .dc-cal { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.dc-map { color: var(--gold-deep); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.dc-map:hover { color: var(--heading); }
.dc-cal { color: var(--sage-deep); border: 1px solid var(--sage); border-radius: 20px; padding: 5px 14px; transition: background .2s, color .2s; }
.dc-cal:hover { background: var(--sage); color: #fff; }

/* ---- Venue showcase ---- */
.venue-photo {
  width: 100%; max-width: 460px; margin: 0 auto 16px;
  border-radius: 12px; overflow: hidden; border: 3px solid var(--gold);
  box-shadow: 0 16px 34px rgba(150,120,70,.28);
}
.venue-photo img { width: 100%; height: auto; display: block; }
.venue-name { font-family: var(--serif); font-weight: 600; font-size: 25px; color: var(--heading); letter-spacing: 1px; margin-bottom: 4px; }
.venue-when { font-size: 16px; color: var(--ink); letter-spacing: 1.5px; text-transform: uppercase; }

/* ---- Save all dates button ---- */
.save-all {
  display: inline-block; margin: 0 auto 30px; padding: 14px 30px; border-radius: 40px;
  background: linear-gradient(160deg, #c2a05a, #9c7c3f); color: #fdf8ec;
  font-size: 15px; letter-spacing: 1.5px; text-decoration: none;
  border: 1px solid var(--gold-deep); box-shadow: 0 10px 24px rgba(140,110,50,.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.save-all:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(140,110,50,.42); }

/* ---- Footer ---- */
.foot { position: relative; text-align: center; padding: 66px 20px 190px; }
.foot-sprig { position: absolute; width: 84px; height: 84px; opacity: .85; pointer-events: none; }
.foot-sprig.fl { top: 12px; left: 4px; }
.foot-sprig.fr { top: 12px; right: 4px; transform: scaleX(-1); }
@media (max-width: 480px){ .foot-sprig { width: 60px; height: 60px; } }
.foot-dua { font-style: italic; font-size: 18px; color: var(--ink); max-width: 440px; margin: 0 auto 22px; }
.foot-names { font-family: var(--script); font-size: clamp(34px, 11vw, 50px); color: var(--heading); line-height: 1; }
.foot-tag { margin-top: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-deep); font-size: 15px; }

/* ---- Music toggle ---- */
.music-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 120;
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--gold);
  background: linear-gradient(160deg, #c2a05a, #9c7c3f);
  color: #fdf8ec; font-size: 20px; cursor: pointer;
  box-shadow: 0 8px 18px rgba(140,110,50,.35);
  display: none; align-items: center; justify-content: center;
}
.music-toggle.show { display: flex; }
.music-toggle .note { animation: spin 4s linear infinite; }
.music-toggle.paused .note { animation-play-state: paused; opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .script-title { font-size: clamp(30px, 9vw, 42px); }
  .section { padding: 50px 14px; }
  .hero { padding-top: 84px; }
  .count { gap: 9px; }
  .count-cell { min-width: 60px; padding: 14px 6px; }
  .count-cell b { font-size: 28px; }
  .verse-ar { font-size: 20px; }
}
