@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&family=Noto+Naskh+Arabic:wght@400;600;700&display=swap');

:root{
  --sky:#b9dcf5;
  --sky-light:#e8f5ff;
  --sky-deep:#79add3;
  --blush:#f5c8d8;
  --blush-light:#fff0f5;
  --rose:#d889a7;
  --pearl:#fffdfc;
  --ink:#31475d;
  --muted:#6d8294;
  --line:rgba(77,112,143,.20);
  --glass:rgba(255,255,255,.68);
  --shadow:0 28px 80px rgba(64,99,129,.16);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  overflow-x:hidden;
  color:var(--ink);
  background:var(--pearl);
  font-family:"Noto Naskh Arabic",serif;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(circle at 10% 18%,rgba(185,220,245,.26),transparent 28%),
    radial-gradient(circle at 92% 72%,rgba(245,200,216,.22),transparent 26%),
    var(--pearl);
}
.hidden{display:none!important}
.section{
  position:relative;
  min-height:76svh;
  padding:110px max(24px,6vw);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.reveal{
  opacity:0;
  transform:translateY(42px) scale(.985);
  transition:opacity .95s ease,transform .95s cubic-bezier(.2,.75,.2,1);
}
.reveal.visible{opacity:1;transform:none}
.eyebrow{
  margin:0;
  color:var(--rose);
  font-weight:700;
  letter-spacing:.08em;
}
a[x-apple-data-detectors],.event-date{
  color:inherit!important;
  text-decoration:none!important;
  font:inherit!important;
}
.event-date{display:inline-block;white-space:nowrap;unicode-bidi:isolate;font-weight:700}

/* One-time opening film */
.opening{
  position:fixed;
  inset:0;
  z-index:100;
  min-height:100svh;
  display:grid;
  place-items:center;
  overflow:hidden;
  cursor:pointer;
  background:
    linear-gradient(135deg,var(--sky-light),var(--blush-light));
}
.intro-video{
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  background:linear-gradient(135deg,var(--sky-light),var(--blush-light));
}
.opening-video-tint{
  position:absolute;
  inset:0;
  z-index:2;
  opacity:0;
  pointer-events:none;
  background:
    linear-gradient(180deg,rgba(37,65,91,.08),rgba(255,255,255,.04) 40%,rgba(37,65,91,.22)),
    radial-gradient(circle at 50% 52%,rgba(255,255,255,.08),rgba(185,220,245,.24));
  transition:opacity .9s ease;
}
.open-tip{
  position:absolute;
  z-index:5;
  bottom:max(24px,env(safe-area-inset-bottom));
  margin:0;
  padding:11px 22px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:999px;
  color:var(--ink);
  background:rgba(255,255,255,.72);
  box-shadow:0 12px 35px rgba(49,71,93,.16);
  font-weight:700;
  backdrop-filter:blur(14px);
  transition:opacity .35s ease,transform .35s ease;
  animation:tipFloat 2.4s ease-in-out infinite;
}
.opening.playing .open-tip{opacity:0;transform:translateY(12px);pointer-events:none}
.opening.playing{cursor:default}
.opening.completed{
  position:relative;
  inset:auto;
  z-index:1;
  width:100%;
  min-height:100svh;
  cursor:default;
}
.opening.completed .opening-video-tint{opacity:1}
.opening.completed .open-tip{display:none}

/* Couture invitation reveal */
.hero-card{
  position:relative;
  z-index:3;
  width:min(760px,88vw);
  padding:44px clamp(22px,5vw,58px);
  text-align:center;
  color:var(--ink);
  background:
    linear-gradient(145deg,rgba(255,255,255,.82),rgba(232,245,255,.58));
  border:1px solid rgba(255,255,255,.88);
  border-radius:48px 48px 120px 120px;
  box-shadow:
    0 30px 90px rgba(39,72,102,.20),
    inset 0 0 0 1px rgba(121,173,211,.18);
  backdrop-filter:blur(16px) saturate(1.15);
}
.hero-card:before,.hero-card:after{
  content:"";
  position:absolute;
  pointer-events:none;
}
.hero-card:before{
  inset:12px;
  border:1px solid rgba(216,137,167,.34);
  border-radius:38px 38px 108px 108px;
}
.hero-card:after{
  left:50%;
  bottom:-13px;
  width:94px;
  height:26px;
  transform:translateX(-50%);
  border-radius:0 0 50% 50%;
  background:linear-gradient(90deg,var(--sky),var(--blush),var(--sky));
  box-shadow:0 8px 24px rgba(89,126,157,.17);
}
.opening-card{
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  transform:translateY(18px) scale(.96);
  transition:opacity .45s ease,transform .65s ease;
}
.opening.completed .opening-card{
  visibility:visible;
  opacity:1;
  transform:none;
}
.couture-monogram{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:118px;
  height:52px;
  margin:-69px auto 22px;
  border:1px solid rgba(255,255,255,.92);
  border-radius:999px;
  color:var(--ink);
  background:linear-gradient(110deg,var(--sky),var(--blush));
  box-shadow:0 14px 36px rgba(67,103,134,.18);
  font:700 24px "Aref Ruqaa",serif;
}
.couture-monogram i{font-size:10px;font-style:normal;color:white}
.basmala{
  margin:0 0 6px;
  color:var(--ink);
  font-size:clamp(15px,2.2vw,21px);
  font-weight:700;
}
.hero-card .eyebrow{color:#a75f7c;font-size:clamp(13px,1.9vw,17px);letter-spacing:0}
.guest-name{
  margin:12px auto 0;
  color:#517896;
  font-size:clamp(19px,3vw,29px);
  font-weight:700;
  opacity:0;
  transform:translateY(12px);
}
.hero-card h1{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  margin:10px 0 12px;
  color:var(--ink);
  font:700 clamp(48px,9vw,88px)/1 "Aref Ruqaa",serif;
  text-shadow:0 5px 22px rgba(121,173,211,.28);
}
.hero-card h1 i{
  color:var(--rose);
  font-size:.42em;
  font-style:normal;
}
.ornament-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:8px auto;
  color:var(--rose);
}
.ornament-divider b{
  width:min(150px,28vw);
  height:1px;
  background:linear-gradient(90deg,transparent,var(--sky-deep),transparent);
}
.invitation{
  max-width:650px;
  margin:10px auto 16px;
  font-size:clamp(17px,2.5vw,23px);
  font-weight:600;
  line-height:1.85;
}
.details{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.details>span{
  padding:9px 17px;
  border:1px solid rgba(121,173,211,.25);
  border-radius:999px;
  background:rgba(255,255,255,.68);
  box-shadow:0 9px 24px rgba(68,104,135,.08);
  font-size:15px;
}
.hero-card .basmala,.hero-card .eyebrow,.hero-card .invitation,.hero-card .details{
  opacity:0;
  transform:translateY(15px);
}
.hero-card.visible .basmala{animation:softRise .7s .08s forwards}
.hero-card.visible .eyebrow{animation:softRise .7s .20s forwards}
.hero-card.visible .guest-name{animation:softRise .75s .34s forwards}
.hero-card.visible h1{animation:nameReveal 1s .48s both}
.hero-card.visible .ornament-divider{animation:softRise .7s .76s both}
.hero-card.visible .invitation{animation:softRise .8s .92s forwards}
.hero-card.visible .details{animation:softRise .8s 1.08s forwards}

/* Quran pearl arch */
.verse{
  min-height:78svh;
  color:var(--ink);
  background:
    radial-gradient(circle at 15% 25%,rgba(255,255,255,.72) 0 3px,transparent 4px),
    radial-gradient(circle at 85% 70%,rgba(255,255,255,.68) 0 4px,transparent 5px),
    linear-gradient(135deg,var(--sky),var(--sky-light) 52%,var(--blush-light));
  background-size:70px 70px,95px 95px,auto;
}
.verse:before,.verse:after{
  content:"";
  position:absolute;
  pointer-events:none;
}
.verse:before{
  width:min(780px,88vw);
  height:min(620px,70svh);
  border:1px solid rgba(255,255,255,.72);
  border-radius:50% 50% 34px 34px / 38% 38% 10% 10%;
  box-shadow:inset 0 0 0 12px rgba(255,255,255,.12);
}
.verse:after{
  top:0;
  left:8%;
  width:180px;
  height:100%;
  opacity:.45;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent);
  transform:skewX(-12deg);
}
.verse-card{
  position:relative;
  z-index:2;
  width:min(690px,82vw);
  padding:70px clamp(28px,6vw,72px) 56px;
  text-align:center;
  border:1px solid rgba(255,255,255,.92);
  border-radius:45% 45% 28px 28px / 25% 25% 8% 8%;
  background:rgba(255,255,255,.58);
  box-shadow:var(--shadow);
  backdrop-filter:blur(16px);
}
.quote-mark{
  position:absolute;
  top:-48px;
  left:50%;
  width:96px;
  height:96px;
  transform:translateX(-50%);
  display:grid;
  place-items:center;
  border-radius:50%;
  color:white;
  background:linear-gradient(145deg,var(--rose),var(--sky-deep));
  box-shadow:0 18px 45px rgba(75,110,140,.20);
  font:90px/1 Georgia,serif;
}
.verse-card p{margin:0;font-size:clamp(23px,4vw,39px);line-height:2}
.verse-card small{
  display:inline-block;
  margin-top:18px;
  padding:7px 18px;
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,.62);
  font-size:16px;
}

/* Jewel countdown */
.countdown{
  min-height:72svh;
  text-align:center;
  background:
    linear-gradient(180deg,var(--pearl),var(--blush-light));
}
.countdown:before{
  content:"";
  position:absolute;
  top:-120px;
  right:-80px;
  width:360px;
  height:360px;
  border:70px solid rgba(185,220,245,.24);
  border-radius:50%;
}
.countdown:after{
  content:"";
  position:absolute;
  bottom:-100px;
  left:-70px;
  width:300px;
  height:300px;
  border-radius:38% 62% 58% 42%;
  background:rgba(245,200,216,.28);
  filter:blur(2px);
}
.countdown h2,.gallery-section h2,.schedule h2,.location h2,.rsvp h2{
  position:relative;
  z-index:1;
  margin:8px 0 36px;
  color:var(--ink);
  font:700 clamp(40px,6vw,68px)/1.25 "Aref Ruqaa",serif;
}
.count-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  width:min(900px,92vw);
  direction:ltr;
}
.count-grid div{
  position:relative;
  padding:33px 12px 27px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.94);
  border-radius:70px 70px 22px 22px;
  background:linear-gradient(160deg,rgba(255,255,255,.88),rgba(232,245,255,.75));
  box-shadow:0 18px 45px rgba(66,102,133,.11);
}
.count-grid div:nth-child(even){
  transform:translateY(24px);
  background:linear-gradient(160deg,rgba(255,255,255,.9),rgba(255,240,245,.82));
}
.count-grid div:before{
  content:"";
  position:absolute;
  top:9px;
  left:50%;
  width:9px;
  height:9px;
  transform:translateX(-50%);
  border-radius:50%;
  background:white;
  box-shadow:0 0 0 5px rgba(185,220,245,.35);
}
.count-grid strong{
  display:block;
  color:var(--ink);
  font:700 clamp(40px,6vw,68px)/1 "Aref Ruqaa",serif;
}
.count-grid span{display:block;margin-top:8px;color:var(--muted);font-weight:700}

/* Editorial story */
.story{
  min-height:82svh;
  padding-block:90px;
  background:linear-gradient(110deg,var(--sky-light) 0 48%,var(--blush-light) 48% 100%);
}
.story:before{
  content:"";
  position:absolute;
  inset:28px;
  border:1px solid rgba(255,255,255,.86);
  border-radius:44px;
}
.story-copy{
  position:relative;
  z-index:2;
  width:min(900px,88vw);
  padding:82px clamp(30px,9vw,120px);
  overflow:hidden;
  text-align:center;
  border:1px solid rgba(255,255,255,.9);
  border-radius:46px 140px 46px 140px;
  background:rgba(255,255,255,.68);
  box-shadow:var(--shadow);
  backdrop-filter:blur(15px);
}
.story-copy:before{
  content:"";
  position:absolute;
  top:-80px;
  left:-70px;
  width:240px;
  height:240px;
  border:45px solid rgba(185,220,245,.35);
  border-radius:50%;
}
.section-number{
  position:absolute;
  top:18px;
  right:32px;
  color:rgba(49,71,93,.09);
  font:700 96px/1 Georgia,serif;
}
.story h2{
  position:relative;
  margin:0 0 12px;
  color:var(--ink);
  font:700 clamp(42px,6vw,70px)/1.2 "Aref Ruqaa",serif;
}
.story-copy>p:last-child{
  position:relative;
  max-width:680px;
  margin:18px auto 0;
  color:var(--ink);
  font-size:clamp(19px,2.6vw,26px);
  line-height:2;
  text-wrap:pretty;
}
.story-decor{
  position:absolute;
  z-index:3;
  right:max(2vw,12px);
  bottom:5%;
  width:clamp(90px,13vw,170px);
  filter:drop-shadow(0 18px 18px rgba(77,112,143,.16));
  transform:rotate(9deg);
}

/* Layered couture gallery */
.gallery-section{
  min-height:92svh;
  text-align:center;
  background:
    linear-gradient(165deg,var(--blush) 0 35%,var(--pearl) 35% 66%,var(--sky) 66% 100%);
}
.gallery-section:before{
  content:"";
  position:absolute;
  inset:24px;
  border:1px solid rgba(255,255,255,.84);
  border-radius:52px;
}
.gallery-section h2{margin-bottom:46px}
.gallery{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  gap:18px;
  width:min(1000px,92vw);
  direction:ltr;
}
.gallery figure{
  position:relative;
  margin:0;
  padding:10px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.92);
  border-radius:170px 170px 30px 30px;
  background:rgba(255,255,255,.74);
  box-shadow:0 26px 60px rgba(51,83,111,.18);
  transition:transform .45s ease,box-shadow .45s ease;
}
.gallery figure:first-child{transform:rotate(-4deg) translateY(20px)}
.gallery figure:nth-child(2){z-index:2;transform:scale(1.06)}
.gallery figure:last-child{transform:rotate(4deg) translateY(20px)}
.gallery figure:after{
  content:"";
  position:absolute;
  inset:10px;
  border:1px solid rgba(255,255,255,.65);
  border-radius:160px 160px 22px 22px;
  pointer-events:none;
}
.gallery figure:hover{z-index:4;transform:translateY(-10px) scale(1.03);box-shadow:0 34px 75px rgba(51,83,111,.23)}
.gallery img{
  display:block;
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  object-position:center;
  border-radius:160px 160px 22px 22px;
}

/* Ribbon itinerary */
.schedule{
  min-height:96svh;
  text-align:center;
  background:linear-gradient(145deg,var(--sky-light),var(--pearl) 44%,var(--blush-light));
}
.schedule:before{
  content:"";
  position:absolute;
  top:0;
  right:12%;
  width:120px;
  height:100%;
  opacity:.32;
  background:linear-gradient(90deg,transparent,var(--sky),transparent);
  transform:skewX(-8deg);
}
.timeline{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
  width:min(1120px,94vw);
  direction:ltr;
}
.timeline-line{display:none}
.timeline-item{
  position:relative;
  display:flex;
  min-height:240px;
  padding:28px 16px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  direction:rtl;
  border:1px solid rgba(255,255,255,.94);
  border-radius:90px 90px 24px 24px;
  background:rgba(255,255,255,.72);
  box-shadow:0 18px 45px rgba(65,99,129,.10);
}
.timeline-item:nth-of-type(even){
  margin-top:48px;
  background:linear-gradient(160deg,rgba(255,255,255,.84),rgba(245,200,216,.32));
}
.timeline-item:before{
  content:"";
  position:absolute;
  top:16px;
  width:26px;
  height:26px;
  border:7px solid white;
  border-radius:50%;
  background:var(--sky-deep);
  box-shadow:0 0 0 1px rgba(121,173,211,.30);
}
.timeline-text{color:var(--ink);font-size:clamp(17px,2vw,22px);font-weight:700}
.timeline time{
  order:-1;
  color:var(--rose);
  font:700 24px "Aref Ruqaa",serif;
}
.moving-fruit{
  position:absolute;
  top:-5px;
  left:0;
  z-index:5;
  width:52px;
  height:52px;
  pointer-events:none;
}
.moving-fruit img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 10px rgba(77,112,143,.15))}
.schedule-flowers{
  position:absolute;
  left:-20px;
  bottom:-35px;
  width:min(31vw,410px);
  max-height:68%;
  object-fit:contain;
  opacity:.42;
  filter:hue-rotate(305deg) saturate(.62) drop-shadow(0 18px 20px rgba(77,112,143,.13));
}

/* Split wish composition */
.sweet-dreams{
  min-height:80svh;
  grid-template-columns:minmax(240px,460px) minmax(300px,640px);
  gap:clamp(30px,7vw,100px);
  background:
    linear-gradient(100deg,var(--sky) 0 44%,var(--blush-light) 44% 100%);
}
.sweet-dreams:before{
  content:"";
  position:absolute;
  inset:30px;
  border:1px solid rgba(255,255,255,.8);
  border-radius:50px;
}
.dream-candle{
  position:relative;
  z-index:2;
  width:min(470px,86vw);
  max-height:500px;
  object-fit:contain;
  filter:drop-shadow(0 28px 26px rgba(68,104,135,.16));
  transform:rotate(-6deg);
}
.dream-copy{
  position:relative;
  z-index:2;
  padding:64px clamp(24px,5vw,60px);
  text-align:center;
  border:1px solid rgba(255,255,255,.9);
  border-radius:140px 36px 140px 36px;
  background:rgba(255,255,255,.64);
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
}
.wish-kurdish{
  margin:0;
  color:var(--ink);
  font:700 clamp(34px,5vw,64px)/1.65 "Aref Ruqaa",serif;
  text-wrap:balance;
}

/* Luxury ticket location */
.location{
  min-height:82svh;
  background:
    radial-gradient(circle at 12% 16%,rgba(255,255,255,.85) 0 5px,transparent 6px),
    radial-gradient(circle at 88% 84%,rgba(255,255,255,.75) 0 4px,transparent 5px),
    linear-gradient(140deg,var(--blush),var(--sky));
  background-size:90px 90px,75px 75px,auto;
}
.location-card{
  position:relative;
  z-index:2;
  isolation:isolate;
  width:min(720px,88vw);
  padding:95px clamp(30px,7vw,80px) 62px;
  overflow:hidden;
  text-align:center;
  border:1px solid rgba(255,255,255,.94);
  border-radius:50px;
  background:rgba(255,255,255,.72);
  box-shadow:0 32px 90px rgba(55,89,118,.19);
  backdrop-filter:blur(17px);
}
.location-card:before{
  content:"";
  position:absolute;
  top:-58px;
  left:50%;
  z-index:-1;
  width:150px;
  height:150px;
  transform:translateX(-50%);
  border:22px solid rgba(185,220,245,.55);
  border-radius:50%;
  background:rgba(255,255,255,.72);
}
.location-card:after{
  content:"";
  position:absolute;
  left:34px;
  right:34px;
  bottom:28px;
  height:1px;
  background:repeating-linear-gradient(90deg,var(--sky-deep) 0 7px,transparent 7px 14px);
  opacity:.35;
}
.location-card .pin{display:none}
.location-card h2{margin:8px 0 10px}
.location-card p{margin:8px auto 24px;color:var(--muted);font-size:20px}
.location-card a,.rsvp button{
  display:inline-flex;
  min-height:50px;
  padding:13px 30px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.9);
  border-radius:999px;
  color:var(--ink);
  background:linear-gradient(100deg,var(--sky),var(--blush));
  box-shadow:0 14px 35px rgba(68,104,135,.16);
  font:700 17px "Noto Naskh Arabic",serif;
  text-decoration:none;
  cursor:pointer;
  transition:transform .3s ease,box-shadow .3s ease;
}
.location-card a:hover,.rsvp button:hover{transform:translateY(-3px);box-shadow:0 19px 40px rgba(68,104,135,.22)}

/* Glass RSVP salon */
.rsvp{
  min-height:100svh;
  isolation:isolate;
  text-align:center;
  background:linear-gradient(155deg,var(--sky-light),var(--blush-light));
}
.rsvp:before{
  content:"";
  position:absolute;
  width:min(800px,92vw);
  height:min(800px,80svh);
  border:1px solid rgba(255,255,255,.88);
  border-radius:50%;
  background:rgba(255,255,255,.22);
  box-shadow:inset 0 0 0 24px rgba(255,255,255,.08);
}
.rsvp>*{position:relative;z-index:2}
.rsvp form{
  display:grid;
  gap:13px;
  width:min(680px,88vw);
  padding:30px;
  border:1px solid rgba(255,255,255,.92);
  border-radius:42px;
  background:rgba(255,255,255,.64);
  box-shadow:var(--shadow);
  backdrop-filter:blur(16px);
}
.rsvp input,.rsvp select,.rsvp textarea{
  width:100%;
  padding:16px 18px;
  border:1px solid rgba(121,173,211,.25);
  border-radius:18px;
  color:var(--ink);
  background:rgba(255,255,255,.76);
  outline:none;
  font:18px "Noto Naskh Arabic",serif;
  transition:border-color .25s ease,box-shadow .25s ease;
}
.rsvp input:focus,.rsvp select:focus,.rsvp textarea:focus{border-color:var(--rose);box-shadow:0 0 0 4px rgba(245,200,216,.25)}
.rsvp textarea{min-height:125px;resize:vertical}
.rsvp button{width:100%;border:0}

.petal-shower{
  position:absolute;
  inset:0;
  z-index:1;
  overflow:hidden;
  pointer-events:none;
}
.petal-shower i{
  --x:5%;
  --duration:18s;
  --delay:0s;
  position:absolute;
  top:-40px;
  left:var(--x);
  width:14px;
  height:22px;
  border-radius:85% 18% 78% 22%;
  background:linear-gradient(145deg,var(--blush),white);
  box-shadow:inset -2px -2px 4px rgba(121,173,211,.18);
  opacity:.75;
  animation:petalFall var(--duration) linear var(--delay) infinite;
}
.petal-shower i:nth-child(1){--x:4%;--duration:19s;--delay:-8s}
.petal-shower i:nth-child(2){--x:13%;--duration:15s;--delay:-2s}
.petal-shower i:nth-child(3){--x:24%;--duration:22s;--delay:-15s}
.petal-shower i:nth-child(4){--x:34%;--duration:17s;--delay:-6s}
.petal-shower i:nth-child(5){--x:43%;--duration:21s;--delay:-12s}
.petal-shower i:nth-child(6){--x:52%;--duration:16s;--delay:-4s}
.petal-shower i:nth-child(7){--x:61%;--duration:23s;--delay:-18s}
.petal-shower i:nth-child(8){--x:69%;--duration:18s;--delay:-9s}
.petal-shower i:nth-child(9){--x:77%;--duration:20s;--delay:-14s}
.petal-shower i:nth-child(10){--x:84%;--duration:16s;--delay:-7s}
.petal-shower i:nth-child(11){--x:91%;--duration:24s;--delay:-20s}
.petal-shower i:nth-child(12){--x:97%;--duration:19s;--delay:-11s}

/* Scalloped finale */
footer{
  position:relative;
  padding:110px 20px 86px;
  overflow:hidden;
  text-align:center;
  color:var(--ink);
  background:linear-gradient(135deg,var(--sky),var(--blush));
}
footer:before{
  content:"";
  position:absolute;
  top:-38px;
  left:-3%;
  width:106%;
  height:78px;
  background:
    radial-gradient(circle at 38px 0,var(--pearl) 38px,transparent 39px) 0 0/76px 76px repeat-x;
}
footer>*{position:relative}
footer p{margin:8px 0;color:#4d6a82;font-size:19px}
footer h3{
  margin:4px;
  color:var(--ink);
  font:700 clamp(46px,7vw,76px)/1.2 "Aref Ruqaa",serif;
}
.footer-flower{display:flex;justify-content:center;margin-bottom:8px}
.footer-flower svg{display:block;width:74px;height:74px;filter:drop-shadow(0 10px 14px rgba(62,96,126,.13))}
.footer-flower .flower-petals{fill:white;stroke:var(--sky-deep);stroke-width:2}
.footer-flower .flower-center{fill:var(--blush);stroke:white;stroke-width:2}
.footer-flower .flower-detail{fill:var(--sky-deep)}

.music-button{
  position:fixed;
  left:18px;
  bottom:max(18px,env(safe-area-inset-bottom));
  z-index:30;
  width:54px;
  height:54px;
  border:1px solid rgba(255,255,255,.92);
  border-radius:50%;
  color:var(--ink);
  background:linear-gradient(135deg,var(--sky),var(--blush));
  box-shadow:0 12px 34px rgba(51,83,111,.18);
  font-size:22px;
  cursor:pointer;
}
.music-button.playing{animation:spin 4s linear infinite}

@keyframes tipFloat{50%{transform:translateY(-6px)}}
@keyframes softRise{to{opacity:1;transform:none}}
@keyframes nameReveal{
  0%{opacity:0;transform:scale(.88);filter:blur(8px)}
  100%{opacity:1;transform:none;filter:none}
}
@keyframes petalFall{
  0%{transform:translate3d(0,-8vh,0) rotate(0)}
  35%{transform:translate3d(30px,36vh,0) rotate(135deg)}
  70%{transform:translate3d(-22px,76vh,0) rotate(260deg)}
  100%{transform:translate3d(16px,116vh,0) rotate(390deg)}
}
@keyframes spin{to{transform:rotate(360deg)}}

@media(max-width:900px){
  .timeline{grid-template-columns:repeat(3,1fr)}
  .timeline-item:nth-of-type(even){margin-top:24px}
  .sweet-dreams{grid-template-columns:1fr}
  .dream-candle{max-height:350px}
}

@media(max-width:760px){
  .section{min-height:auto;padding:84px 16px}
  .opening,.opening.completed{min-height:100svh}
  .intro-video{object-fit:contain}
  .open-tip{bottom:max(20px,env(safe-area-inset-bottom));max-width:88vw;text-align:center;font-size:14px}
  .hero-card{
    width:min(90vw,calc(56.25svh - 10px));
    max-width:430px;
    padding:32px 15px 28px;
    border-radius:30px 30px 82px 82px;
  }
  .hero-card:before{inset:8px;border-radius:23px 23px 72px 72px}
  .hero-card:after{width:70px;height:18px;bottom:-9px}
  .couture-monogram{width:96px;height:43px;margin:-53px auto 13px;font-size:20px}
  .basmala{font-size:clamp(13px,3.7vw,17px)}
  .hero-card .eyebrow{font-size:clamp(11px,3.2vw,14px)}
  .guest-name{margin-top:6px;font-size:clamp(17px,4.9vw,23px)}
  .hero-card h1{gap:10px;margin:6px 0;font-size:clamp(39px,11vw,56px)}
  .ornament-divider{margin:3px auto;font-size:18px}
  .invitation{margin:6px auto 10px;font-size:clamp(13px,3.8vw,17px);line-height:1.65}
  .details{gap:5px}
  .details>span{padding:6px 10px;font-size:clamp(11px,3.2vw,14px)}

  .verse{padding-block:110px 80px}
  .verse:before{width:92vw;height:72%;border-radius:48% 48% 26px 26px / 24% 24% 8% 8%}
  .verse-card{width:84vw;padding:62px 22px 42px;border-radius:44% 44% 24px 24px / 18% 18% 7% 7%}
  .quote-mark{top:-39px;width:78px;height:78px;font-size:70px}
  .verse-card p{font-size:clamp(20px,5.3vw,27px);line-height:1.9}

  .countdown{padding-bottom:105px}
  .countdown h2,.gallery-section h2,.schedule h2,.location h2,.rsvp h2{font-size:clamp(34px,10vw,49px);margin-bottom:27px}
  .count-grid{grid-template-columns:repeat(2,1fr);gap:12px;width:min(350px,92vw)}
  .count-grid div{padding:27px 10px 21px;border-radius:52px 52px 18px 18px}
  .count-grid div:nth-child(even){transform:translateY(14px)}
  .count-grid strong{font-size:clamp(36px,12vw,52px)}

  .story{padding:60px 14px;background:linear-gradient(150deg,var(--sky-light) 0 50%,var(--blush-light) 50%)}
  .story:before{inset:14px;border-radius:28px}
  .story-copy{width:91vw;padding:66px 24px 58px;border-radius:30px 80px 30px 80px}
  .section-number{right:18px;font-size:70px}
  .story h2{font-size:clamp(37px,11vw,52px)}
  .story-copy>p:last-child{font-size:clamp(17px,4.7vw,21px);line-height:1.9}
  .story-decor{right:3px;bottom:1%;width:84px}

  .gallery-section{padding-block:76px;background:linear-gradient(170deg,var(--blush) 0 22%,var(--pearl) 22% 78%,var(--sky) 78%)}
  .gallery-section:before{inset:13px;border-radius:32px}
  .gallery{grid-template-columns:1fr;width:min(330px,86vw);gap:19px}
  .gallery figure,.gallery figure:first-child,.gallery figure:nth-child(2),.gallery figure:last-child{transform:none}
  .gallery figure{padding:7px;border-radius:110px 110px 22px 22px}
  .gallery figure:after{inset:7px;border-radius:103px 103px 17px 17px}
  .gallery img{aspect-ratio:4/5;border-radius:103px 103px 17px 17px}

  .schedule{padding-bottom:220px}
  .timeline{grid-template-columns:1fr 1fr;width:min(390px,92vw);gap:10px}
  .timeline-item{min-height:170px;padding:22px 10px;border-radius:60px 60px 18px 18px}
  .timeline-item:nth-of-type(even){margin-top:20px}
  .timeline-item:last-child{grid-column:1/-1;width:48%;justify-self:center;margin-top:0}
  .timeline-text{font-size:16px}
  .timeline time{font-size:21px}
  .moving-fruit{width:42px;height:42px}
  .schedule-flowers{left:50%;bottom:0;width:220px;height:200px;transform:translateX(-50%);opacity:.42}

  .sweet-dreams{padding:66px 14px;background:linear-gradient(170deg,var(--sky) 0 42%,var(--blush-light) 42%)}
  .sweet-dreams:before{inset:14px;border-radius:30px}
  .dream-candle{width:min(82vw,350px);max-height:280px}
  .dream-copy{width:90vw;padding:48px 22px;border-radius:80px 24px 80px 24px}
  .wish-kurdish{font-size:clamp(31px,9vw,46px)}

  .location{padding-block:90px}
  .location-card{width:90vw;padding:82px 24px 56px;border-radius:34px}
  .location-card p{font-size:17px}

  .rsvp{padding-block:95px}
  .rsvp:before{width:94vw;height:88%;border-radius:42%}
  .rsvp form{width:91vw;padding:18px;border-radius:28px}
  .rsvp input,.rsvp select,.rsvp textarea{padding:14px;border-radius:14px;font-size:16px}

  footer{padding:96px 18px 72px}
  footer h3{font-size:clamp(42px,12vw,60px)}
  .music-button{left:14px;width:48px;height:48px}
}

/* Guest memories live directly inside the invitation. */
.guest-album{
  padding-block:100px;
  background:
    radial-gradient(circle at 17% 14%,rgba(201,166,107,.2),transparent 28%),
    linear-gradient(145deg,#fffaf1,#f2e4cb);
}
.guest-album-card{
  width:min(760px,90vw);
  margin:auto;
  padding:clamp(32px,7vw,68px);
  text-align:center;
  border:1px solid rgba(201,166,107,.7);
  border-radius:140px 140px 30px 30px;
  background:rgba(255,250,241,.96);
  box-shadow:0 30px 80px rgba(17,36,60,.17);
}
.album-flower{
  width:68px;height:68px;display:grid;place-items:center;margin:0 auto 12px;
  color:#172a46;font-size:34px;border-radius:50%;
  background:linear-gradient(145deg,#ead7ae,#c9a66b);
}
.guest-album-card h2{
  margin:6px 0 12px;color:#172a46;
  font-size:clamp(38px,7vw,62px)
}
.album-intro{
  max-width:600px;margin:0 auto 26px;line-height:1.9;color:#31425a
}
.guest-album-widget{
  width:min(590px,100%);height:455px;display:block;margin:0 auto;
  border:0;background:transparent
}
.guest-album-form{
  display:grid;gap:12px;max-width:590px;margin:0 auto;text-align:right
}
.guest-album-form>label:not(.album-upload-box){font-weight:700;color:#172a46}
.guest-album-form>input{
  width:100%;min-height:54px;padding:12px 16px;color:#172a46;
  border:1px solid rgba(23,42,70,.25);border-radius:14px;outline:none;background:#fff
}
.guest-album-form>input:focus{
  border-color:#c9a66b;box-shadow:0 0 0 4px rgba(201,166,107,.18)
}
.album-upload-box{
  display:block;margin-top:8px;padding:26px 16px;text-align:center;cursor:pointer;
  border:2px dashed rgba(201,166,107,.8);border-radius:20px;
  background:linear-gradient(145deg,rgba(234,215,174,.18),#fff)
}
.album-upload-box strong{display:block;color:#172a46;font-size:21px}
.album-upload-box small{display:block;margin:5px 0 12px;color:#6a7482}
.album-upload-box input{width:100%;color:#172a46}
.guest-album-form button{
  min-height:56px;color:#fffaf1;font-weight:800;cursor:pointer;
  border:1px solid #c9a66b;border-radius:15px;
  background:linear-gradient(110deg,#1d3859,#11243c);
  box-shadow:0 13px 30px rgba(17,36,60,.2)
}
.guest-album-form button:disabled{opacity:.6;cursor:wait}
.album-upload-status{
  display:none;margin:2px 0 0;padding:12px;text-align:center;border-radius:12px
}
.album-upload-status.success{display:block;color:#265c43;background:#e6f5ed}
.album-upload-status.error{display:block;color:#8d2940;background:#fde8ec}
.private-album-link{
  display:inline-block;margin-top:22px;color:#172a46;font-weight:700;
  text-decoration-color:#c9a66b;text-underline-offset:5px
}
@media(max-width:760px){
  .guest-album{padding-block:72px}
  .guest-album-card{padding:32px 18px;border-radius:82px 82px 24px 24px}
  .album-intro{font-size:15px}
}

@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .petal-shower{display:none}
}

/* Final luxury palette: midnight navy, champagne gold and pearl ivory */
:root{
  --sky:#172A46;
  --sky-light:#263F63;
  --sky-deep:#0D1B2D;
  --blush:#C9A66B;
  --blush-light:#F2E4C9;
  --rose:#C9A66B;
  --pearl:#FFF9F0;
  --ink:#172A46;
  --muted:#7A6848;
  --line:rgba(201,166,107,.28);
  --glass:rgba(255,249,240,.74);
  --shadow:0 30px 85px rgba(13,27,45,.22);
}

body{
  color:var(--ink);
  background:var(--pearl);
}
body:before{
  background:
    radial-gradient(circle at 12% 20%,rgba(201,166,107,.12),transparent 28%),
    radial-gradient(circle at 88% 76%,rgba(23,42,70,.10),transparent 30%),
    var(--pearl);
}

.opening,.intro-video{
  background:linear-gradient(135deg,var(--sky-deep),var(--sky));
}
.opening-video-tint{
  background:
    linear-gradient(180deg,rgba(13,27,45,.28),rgba(13,27,45,.08) 38%,rgba(13,27,45,.68)),
    radial-gradient(circle at 50% 51%,rgba(255,249,240,.04),rgba(13,27,45,.22));
}
.open-tip{
  color:var(--pearl);
  border-color:rgba(201,166,107,.72);
  background:rgba(13,27,45,.78);
  box-shadow:0 14px 38px rgba(13,27,45,.35);
}

/* Like the first version: invitation text sits directly on the video */
.hero-card{
  width:min(760px,92vw);
  padding:42px clamp(18px,5vw,58px);
  color:var(--pearl);
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  text-shadow:0 3px 12px rgba(13,27,45,.95),0 0 28px rgba(13,27,45,.75);
}
.hero-card:before{
  display:block;
  inset:-18px -5vw;
  border:0;
  border-radius:50%;
  background:radial-gradient(ellipse,rgba(13,27,45,.58),rgba(13,27,45,.08) 58%,transparent 74%);
  filter:blur(10px);
}
.hero-card:after{display:none}
.couture-monogram{display:none}
.hero-card .basmala,.hero-card .eyebrow,.guest-name,.hero-card h1,.hero-card .invitation{
  color:var(--pearl);
}
.hero-card h1{
  color:var(--blush);
  text-shadow:0 3px 12px rgba(13,27,45,.95),0 0 25px rgba(201,166,107,.28);
}
.hero-card h1 i,.hero-card .eyebrow,.guest-name,.ornament-divider{color:var(--blush)}
.ornament-divider b{background:linear-gradient(90deg,transparent,var(--blush),transparent)}
.details>span{
  color:var(--pearl);
  border-color:rgba(201,166,107,.60);
  background:rgba(13,27,45,.58);
  box-shadow:0 10px 28px rgba(13,27,45,.24);
  backdrop-filter:blur(8px);
}

.verse{
  color:var(--pearl);
  background:
    radial-gradient(circle at 15% 25%,rgba(201,166,107,.50) 0 3px,transparent 4px),
    radial-gradient(circle at 85% 70%,rgba(255,249,240,.34) 0 4px,transparent 5px),
    linear-gradient(140deg,var(--sky-deep),var(--sky) 65%,#26334a);
}
.verse:before{border-color:rgba(201,166,107,.48);box-shadow:inset 0 0 0 12px rgba(201,166,107,.05)}
.verse:after{background:linear-gradient(90deg,transparent,rgba(201,166,107,.18),transparent)}
.verse-card{
  color:var(--pearl);
  border-color:rgba(201,166,107,.64);
  background:rgba(13,27,45,.56);
  box-shadow:0 30px 85px rgba(0,0,0,.30);
}
.quote-mark{color:var(--sky-deep);background:linear-gradient(145deg,var(--blush),#f2d59f)}
.verse-card small{color:var(--blush);background:rgba(255,249,240,.08)}

.countdown{background:linear-gradient(180deg,var(--pearl),#f3ead9)}
.countdown:before{border-color:rgba(23,42,70,.09)}
.countdown:after{background:rgba(201,166,107,.18)}
.countdown h2,.gallery-section h2,.schedule h2,.location h2,.rsvp h2{color:var(--ink)}
.count-grid div{
  border-color:rgba(201,166,107,.52);
  background:linear-gradient(160deg,rgba(255,249,240,.96),rgba(242,228,201,.75));
  box-shadow:0 20px 48px rgba(23,42,70,.12);
}
.count-grid div:nth-child(even){
  background:linear-gradient(160deg,var(--sky),var(--sky-deep));
}
.count-grid div:nth-child(even) strong,.count-grid div:nth-child(even) span{color:var(--pearl)}
.count-grid div:before{background:var(--blush);box-shadow:0 0 0 5px rgba(201,166,107,.22)}
.count-grid strong{color:var(--ink)}

.story{background:linear-gradient(110deg,var(--sky) 0 48%,var(--pearl) 48% 100%)}
.story:before{border-color:rgba(201,166,107,.42)}
.story-copy{
  border-color:rgba(201,166,107,.52);
  background:rgba(255,249,240,.90);
  box-shadow:0 32px 85px rgba(13,27,45,.20);
}
.story-copy:before{border-color:rgba(201,166,107,.24)}
.story h2,.story-copy>p:last-child{color:var(--ink)}
.section-number{color:rgba(23,42,70,.08)}

.gallery-section{
  background:linear-gradient(165deg,var(--sky-deep) 0 35%,var(--pearl) 35% 66%,var(--blush) 66% 100%);
}
.gallery-section:before{border-color:rgba(201,166,107,.58)}
.gallery-section h2{
  padding:8px 28px;
  border-radius:999px;
  color:var(--pearl);
  background:rgba(13,27,45,.72);
  box-shadow:0 13px 35px rgba(13,27,45,.22);
}
.gallery figure{
  border-color:rgba(201,166,107,.72);
  background:var(--pearl);
  box-shadow:0 28px 65px rgba(13,27,45,.28);
}
.gallery figure:after{border-color:rgba(201,166,107,.48)}

.schedule{background:linear-gradient(145deg,var(--pearl),#f2eadb 44%,rgba(201,166,107,.22))}
.schedule:before{background:linear-gradient(90deg,transparent,rgba(201,166,107,.35),transparent)}
.timeline-item{
  border-color:rgba(201,166,107,.52);
  background:rgba(255,249,240,.92);
  box-shadow:0 20px 48px rgba(23,42,70,.12);
}
.timeline-item:nth-of-type(even){
  color:var(--pearl);
  background:linear-gradient(160deg,var(--sky),var(--sky-deep));
}
.timeline-item:nth-of-type(even) .timeline-text{color:var(--pearl)}
.timeline-item:before{border-color:var(--pearl);background:var(--blush);box-shadow:0 0 0 1px rgba(201,166,107,.46)}
.timeline-text{color:var(--ink)}
.timeline time{color:var(--blush)}
.schedule-flowers{filter:sepia(.45) saturate(.72) drop-shadow(0 18px 20px rgba(13,27,45,.15))}

.sweet-dreams{background:linear-gradient(100deg,var(--sky) 0 44%,#efe0c4 44% 100%)}
.sweet-dreams:before{border-color:rgba(201,166,107,.56)}
.dream-copy{
  border-color:rgba(201,166,107,.62);
  background:rgba(255,249,240,.86);
  box-shadow:0 30px 85px rgba(13,27,45,.22);
}
.wish-kurdish{color:var(--ink)}

.location{
  background:
    radial-gradient(circle at 12% 16%,rgba(201,166,107,.62) 0 4px,transparent 5px),
    radial-gradient(circle at 88% 84%,rgba(255,249,240,.42) 0 4px,transparent 5px),
    linear-gradient(140deg,var(--sky-deep),var(--sky));
}
.location-card{
  border-color:rgba(201,166,107,.70);
  background:rgba(255,249,240,.92);
  box-shadow:0 34px 90px rgba(0,0,0,.30);
}
.location-card:before{
  border-color:rgba(201,166,107,.50);
  background:var(--pearl);
}
.location-card:after{background:repeating-linear-gradient(90deg,var(--blush) 0 7px,transparent 7px 14px)}
.location-card a,.rsvp button{
  color:var(--pearl);
  border-color:rgba(201,166,107,.72);
  background:linear-gradient(105deg,var(--sky),var(--sky-deep));
  box-shadow:0 15px 38px rgba(13,27,45,.24);
}

.rsvp{background:linear-gradient(155deg,#f4ead8,var(--pearl))}
.rsvp:before{
  border-color:rgba(201,166,107,.48);
  background:rgba(201,166,107,.06);
  box-shadow:inset 0 0 0 24px rgba(201,166,107,.035);
}
.rsvp form{
  border-color:rgba(201,166,107,.58);
  background:rgba(255,249,240,.92);
  box-shadow:0 30px 85px rgba(23,42,70,.18);
}
.rsvp input,.rsvp select,.rsvp textarea{
  color:var(--ink);
  border-color:rgba(201,166,107,.36);
  background:#fffdf8;
}
.rsvp input:focus,.rsvp select:focus,.rsvp textarea:focus{border-color:var(--blush);box-shadow:0 0 0 4px rgba(201,166,107,.17)}
.petal-shower i{background:linear-gradient(145deg,var(--blush),#f5dfb2)}

footer{
  color:var(--pearl);
  background:linear-gradient(135deg,var(--sky-deep),var(--sky));
}
footer:before{background:radial-gradient(circle at 38px 0,var(--pearl) 38px,transparent 39px) 0 0/76px 76px repeat-x}
footer p,footer h3{color:var(--pearl)}
.footer-flower .flower-petals{fill:var(--pearl);stroke:var(--blush)}
.footer-flower .flower-center{fill:var(--blush);stroke:var(--pearl)}
.footer-flower .flower-detail{fill:var(--sky-deep)}
.music-button{
  color:var(--sky-deep);
  border-color:rgba(201,166,107,.72);
  background:linear-gradient(135deg,#f1d396,var(--blush));
  box-shadow:0 12px 34px rgba(13,27,45,.26);
}

@media(max-width:760px){
  .hero-card{background:transparent;border:0;box-shadow:none}
  .story{background:linear-gradient(150deg,var(--sky) 0 50%,var(--pearl) 50%)}
  .gallery-section{background:linear-gradient(170deg,var(--sky-deep) 0 22%,var(--pearl) 22% 78%,var(--blush) 78%)}
  .sweet-dreams{background:linear-gradient(170deg,var(--sky) 0 42%,#efe0c4 42%)}
}

/* Keep every invitation line inside the visible portrait-video column. */
.hero-card{
  width:min(92vw,calc(56.26svh - 22px),500px);
  max-width:100%;
  padding:34px 12px;
  overflow:hidden;
}
.hero-card .invitation{
  width:100%;
  max-width:100%;
  margin-inline:auto;
  padding-inline:2px;
  font-size:clamp(14px,2.05svh,19px);
  line-height:1.72;
  overflow-wrap:anywhere;
  text-wrap:pretty;
}
.hero-card h1{font-size:clamp(42px,7.2svh,68px)}
.hero-card .basmala{font-size:clamp(13px,1.9svh,18px)}
.hero-card .eyebrow{font-size:clamp(11px,1.55svh,15px)}
.guest-name{font-size:clamp(17px,2.5svh,25px)}
.details>span{
  padding:6px 10px;
  font-size:clamp(11px,1.5svh,14px);
}

/* Two-photo engagement gallery. */
.gallery{
  width:min(760px,88vw);
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:26px;
}
.gallery figure:first-child{transform:rotate(-3deg) translateY(12px)}
.gallery figure:nth-child(2),
.gallery figure:last-child{transform:rotate(3deg) translateY(12px)}

@media(max-width:760px){
  .hero-card{
    width:min(90vw,calc(56.26svh - 14px));
    padding:28px 10px;
  }
  .hero-card .invitation{
    font-size:clamp(13px,2svh,16px);
    line-height:1.65;
  }
  .gallery{
    width:min(330px,86vw);
    grid-template-columns:1fr;
    gap:19px;
  }
  .gallery figure,
  .gallery figure:first-child,
  .gallery figure:nth-child(2),
  .gallery figure:last-child{transform:none}
}
