@font-face{font-family:ARB;font-style:normal;font-weight:700;font-display:swap;src:url('fonts/arb.woff2') format('woff2')}
@font-face{font-family:AMB;font-style:normal;font-weight:700;font-display:swap;src:url('fonts/amb.woff2') format('woff2')}

html,body{margin:0;padding:0;background:#F6F2E8}
body{min-height:100svh;display:grid;place-items:center;overflow-x:hidden;-webkit-text-size-adjust:100%}

/* ---------- invitation stage ---------- */
.wed-stage{
  position: relative;
  width: 100%;
  max-width: min(460px, calc(100svh * 900 / 2100));
  margin: 0 auto;
  aspect-ratio: 900 / 2100;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 10px;
  background: #F6F2E8;
  isolation: isolate;
}
.wed-bg{
  position: absolute; inset: 0; z-index: 0;
  background-image: url('photos/page-bg.jpg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: wedBreathe 28s ease-in-out infinite alternate;
  transform-origin: 50% 42%;
  will-change: transform;
}
@keyframes wedBreathe{ from{ transform: scale(1) } to{ transform: scale(1.022) } }

.wed-pos{ position: absolute; left: 0; right: 0; z-index: 2; transform: translateY(-50%); text-align: center; padding: 0 5%; margin: 0; }
.wed-in{ opacity: 0; animation: wedDrop .95s cubic-bezier(.2,.7,.25,1) both; will-change: opacity, transform; }
@keyframes wedDrop{ from{ opacity: 0; transform: translateY(-24px) } to{ opacity: 1; transform: translateY(0) } }

.wed-title{ font-family: ARB; font-size: 13.2cqw; color: #B8912F; line-height: 1; margin: 0;
  background: linear-gradient(180deg,#A9801F 0%,#F1DCA4 22%,#CBA43C 45%,#FBEFC9 62%,#C29B33 82%,#9C7620 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(14,23,48,.28)); }
.wed-basmala{ font-family: AMB; font-size: 4.4cqw; color: #1C2B5E; margin: 0; line-height: 1.3; }
.wed-body{ font-family: AMB; font-size: 3.3cqw; color: #1C2B5E; line-height: 1.5; margin: 0; }
.wed-father{ font-family: ARB; font-size: 3.5cqw; color: #1C2B5E; line-height: 1.1; margin: 0; }
.wed-father-sub{ font-family: AMB; font-size: 2.5cqw; color: #B8912F; margin: 0; line-height: 1.2; }
.wed-names{ font-family: ARB; font-size: 10.4cqw; color: #1C2B5E; line-height: 1; margin: 0; white-space: nowrap; }
.wed-heart{ display: inline-block; width: 4.6cqw; height: 4.2cqw; vertical-align: middle; margin: 0 1.6cqw; transform: translateY(-0.6cqw); }
.wed-icon{ display: block; width: 3.4cqw; height: 3.4cqw; margin: 0 auto 0.8cqw; }
.wed-label{ font-family: AMB; font-size: 3.3cqw; color: #5A6480; margin: 0; line-height: 1.2; }
.wed-value{ font-family: AMB; font-size: 5.1cqw; color: #1C2B5E; margin: 0; line-height: 1.15; }
.wed-venue{ font-family: AMB; font-size: 3.9cqw; color: #1C2B5E; margin: 0; line-height: 1.35; }
.wed-qr{ position: absolute; left: 50%; transform: translate(-50%,-50%); width: 24cqw; background: #fff; padding: 1.2cqw; border-radius: 1.6cqw; box-shadow: 0 0 0 .22cqw #C9A227; }
.wed-qr img{ display: block; width: 100%; height: auto; }
.wed-qr-wrap{ position: absolute; left: 0; right: 0; z-index: 2; top: 81%; transform: translateY(-50%); text-align: center; }
.wed-cta{ display: inline-block; margin-top: 2.2cqw; font-family: AMB; font-size: 3.2cqw; color: #1C2B5E;
  border: .25cqw solid #C9A227; border-radius: 99px; padding: 1.6cqw 4.2cqw; text-decoration: none; background: rgba(255,255,255,.55); }
.wed-closing{ font-family: ARB; font-size: 4.7cqw; color: #1C2B5E; margin: 0; line-height: 1.2; }
.wed-a{ text-decoration: none; color: inherit; }

/* petals: steady continuous drift, behind the text */
.wed-petals{ position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.wed-petal{ position: absolute; top: -8%; width: calc(3.0cqw * var(--s)); height: calc(4.6cqw * var(--s));
  opacity: 0;
  animation-name: wedFall; animation-timing-function: linear; animation-iteration-count: infinite; will-change: transform, opacity; }
@keyframes wedFall{
  0%{ transform: translate3d(0,0,0) rotate(0deg); opacity: 0 }
  6%{ opacity: .8 }
  50%{ transform: translate3d(-2.6cqw, 56cqw, 0) rotate(150deg); opacity: .72 }
  88%{ opacity: .6 }
  100%{ transform: translate3d(3.2cqw, 112cqw, 0) rotate(260deg); opacity: 0 }
}


/* quiet wedding motifs: sparkles, hearts, a pair of rings - all behind the text */
.wed-deco{ position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.wed-spark{ position: absolute; width: 2.6cqw; height: 2.6cqw; opacity: 0;
  animation-name: wedTwinkle; animation-timing-function: ease-in-out; animation-iteration-count: infinite; will-change: transform, opacity; }
@keyframes wedTwinkle{
  0%,100%{ opacity: 0; transform: scale(.5) rotate(0deg) }
  45%{ opacity: .78; transform: scale(1) rotate(22deg) }
  70%{ opacity: .22; transform: scale(.85) rotate(38deg) }
}
.wed-deco-heart{ position: absolute; width: 2.9cqw; height: 2.7cqw; opacity: 0;
  animation-name: wedRise; animation-timing-function: ease-in-out; animation-iteration-count: infinite; will-change: transform, opacity; }
@keyframes wedRise{
  0%{ opacity: 0; transform: translate3d(0,0,0) scale(.85) }
  12%{ opacity: .5 }
  50%{ opacity: .42; transform: translate3d(-1.6cqw,-34cqw,0) scale(1) }
  88%{ opacity: .3 }
  100%{ opacity: 0; transform: translate3d(1.4cqw,-70cqw,0) scale(1.05) }
}
.wed-rings{ position: absolute; width: 9cqw; height: auto; opacity: .26;
  animation: wedDrift 26s ease-in-out infinite; will-change: transform; }
@keyframes wedDrift{
  0%,100%{ transform: translate3d(0,0,0) rotate(-5deg) }
  50%{ transform: translate3d(1.4cqw,2.4cqw,0) rotate(5deg) }
}
@media (prefers-reduced-motion: reduce){ .wed-deco{ display: none } }

@media (prefers-reduced-motion: reduce){
  .wed-in{ animation: none; opacity: 1; }
  .wed-bg{ animation: none; }
  .wed-petal{ display: none; }
}

/* ---------- loader ---------- */
.wed-loader{ position: absolute; inset: 0; z-index: 6; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 44%, #FCF9F3 0%, #F6F2E8 72%);
  animation: wedLoaderOut .5s ease 1.72s forwards; }
.wed-loader-ring, .wed-loader-rot{ position: absolute; width: 27%; height: auto; }
.wed-loader-arc{ transform-origin: 60px 60px; animation: wedSpin 1.1s linear infinite; }
.wed-loader-rot{ animation: wedSpin 2.6s linear infinite; }
@keyframes wedSpin{ to{ transform: rotate(360deg) } }
@keyframes wedLoaderOut{ to{ opacity: 0; visibility: hidden } }
@media (prefers-reduced-motion: reduce){ .wed-loader{ display: none } }

.wed-topfade{ position: absolute; left: 0; right: 0; top: 0; height: 34px; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, #F6F2E8 0%, rgba(246,242,232,.82) 26%, rgba(246,242,232,0) 100%); }
