/* قالب «حرير» — ظرفٌ موفيّ منقوش بورق الجنكة وختم شمعٍ سادة بلا أحرف، يُفتح على ساتانٍ بفيونكة ينفكّ عن بطاقةٍ
   منقوشة بالورد. الرسوم كلها مولّدة (Higgsfield) بلونٍ واحد: موفٌ مغبرّ نقشاً بلا حبر، وحبرٌ برقوقي للكتابة، وشريطٌ
   رماديّ بنفسجي للعدّاد، وصدفٌ لؤلؤي للبيضوي. متغيّراته بـ--hr- فتتبع «ألوان القالب» وحدها. */
/* شهرزاد للآية والبسملة من ملفّ المنصّة نفسه الذي يرفعه حارس الحركات (marks-font.ts): من جوجل كان يُجلب مرّتين */
@font-face { font-family: "Scheherazade New"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/scheherazade-new/scheherazade-new-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Scheherazade New"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/scheherazade-new/scheherazade-new-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
:root {
  --hr-paper: #bc9ca6;
  --hr-paper-deep: #a4848f;
  --hr-paper-lt: #e8dce2;
  --hr-plum: #4b2e3c;
  --hr-plum-soft: #6e4f5e;
  --hr-wax: #955e6d;
  --hr-band: #8a86a3;
  --hr-band-deep: #6c6886;
  --hr-pearl: #f6f0f2;
  --hr-names: "Aref Ruqaa", "Amiri", serif;
  --hr-text: "Amiri", "Noto Naskh Arabic", serif;
  --hr-w: min(100vw, 500px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--hr-paper-deep); }
body {
  margin: 0;
  font-family: var(--hr-text);
  font-size: 21px;
  line-height: 1.7;
  color: var(--hr-plum);
  text-align: center;
  background: var(--hr-paper-deep);
  -webkit-font-smoothing: antialiased;
}
body.hr-locked { overflow: hidden; height: 100svh; }
img, video, canvas { display: block; max-width: 100%; }
p, h1, h2, ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
a { color: inherit; }

/* ═══ الدخول ═══ */
.hr-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  cursor: pointer;
  background: var(--hr-paper-deep);
  outline: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .6s ease;
}
/* عمودٌ بنسبة الفيلم على الشاشة العريضة، وملء الشاشة على الجوال. الختم يُقاس بعرض الفيلم المعروض (cover) */
.hr-stage {
  position: absolute;
  inset: 0 auto 0 50%;
  width: min(100%, 56.25vh);
  transform: translateX(-50%);
  overflow: hidden;
  container-type: size;
}
/* الملصق خلفية الغلاف لا سمة الفيديو وحدها: سفاري يُسقط poster لحظة التشغيل قبل أول إطار فتومض الصفحة */
.hr-film {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: url("assets/envelope.webp") center / cover no-repeat;
}
.hr-film video { width: 100%; height: 100%; object-fit: cover; }
/* هالةٌ تتنفّس حول الختم تدعو للمسه — في موضعه من الظرف */
.hr-seal {
  position: absolute;
  left: 50%;
  top: var(--hr-seal-y, 51.2%);
  width: calc(max(100cqw, 56.25cqh) * var(--hr-seal-d, .31));
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1.5px rgba(255, 244, 248, .75);
  animation: hr-halo 2.4s ease-out infinite;
}
.hr-seal::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 244, 248, .5);
  animation: hr-halo 2.4s ease-out .8s infinite;
}
@keyframes hr-halo {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.32); }
}
.hr-seal::after { animation-name: hr-halo-in; }
@keyframes hr-halo-in {
  0% { opacity: 0; transform: scale(.92); }
  25% { opacity: .8; }
  100% { opacity: 0; transform: scale(1.3); }
}
.hr-veil {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgba(255, 248, 251, .9), rgba(236, 222, 229, .6) 60%, transparent);
}
.hr-gate.is-tapped .hr-veil { animation: hr-flash .9s ease-out; }
@keyframes hr-flash {
  0% { opacity: 0; }
  30% { opacity: .55; }
  100% { opacity: 0; }
}
.hr-hint {
  position: absolute;
  inset-inline: 0;
  bottom: calc(env(safe-area-inset-bottom) + 6vh + var(--bar, 0px));
  width: max-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  padding: 6px 24px 8px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: #fbf4f7;
  pointer-events: none;
  background: rgba(90, 58, 74, .82);
  box-shadow: 0 0 0 1px rgba(246, 230, 237, .6), 0 8px 22px rgba(60, 34, 48, .3);
  transition: opacity .4s;
}
.hr-gate.is-opening .hr-hint, .hr-gate.is-opening .hr-seal { opacity: 0; animation: none; }
.hr-gate.is-opening .hr-seal::after { animation: none; }
body.is-landed .hr-gate { opacity: 0; pointer-events: none; }
.hr-gate:focus-visible .hr-hint { outline: 2px solid #fbf4f7; outline-offset: 3px; }

/* ═══ الصفحة ═══ */
#invite {
  position: relative;
  width: var(--hr-w);
  margin-inline: auto;
  overflow: hidden;
  overflow-wrap: anywhere;
  background: var(--hr-paper-lt);
  box-shadow: 0 0 60px rgba(60, 34, 48, .35);
}

/* ═══ ما يتساقط: طبقةٌ ثابتة بعرض الدعوة فوق أقسامها، لا تلتقط لمساً ═══ */
.hr-fall {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 50%;
  width: var(--hr-w);
  height: 100vh;
  pointer-events: none;
  transform: translateX(-50%);
}

/* ═══ الواجهة: البطاقة تملأ الشاشة الأولى بنسبة الفيلم نفسها (cover)، فآخر إطارٍ منه هو هي ═══ */
.hr-hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--hr-paper);
}
.hr-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, calc(max(100svh, 560px) * 1536 / 2752));
  aspect-ratio: 1536 / 2752;
  transform: translate(-50%, -50%);
  container-type: inline-size;
}
.hr-card img { width: 100%; height: 100%; object-fit: cover; }
/* لمعة لؤلؤية تعبر الورق ببطء — تتحرّك بـtransform وحده بلا مزج طبقات (كرار «ثقيل»): كانت background-position مع
   mix-blend-mode تعيد رسم البطاقة كلّها ومزجها في كل إطار على الجوال */
.hr-sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hr-sheen::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 60%;
  background: linear-gradient(105deg, transparent, rgba(255, 248, 252, .2) 42%, rgba(232, 238, 255, .14) 58%, transparent);
  transform: translateX(-110%);
  will-change: transform;
  animation: hr-sheen 9s ease-in-out infinite;
}
@keyframes hr-sheen {
  0% { transform: translateX(-110%); }
  60%, 100% { transform: translateX(280%); }
}
/* الكتابة داخل الإطار المقوّس: مواضعها بنسبة البطاقة، وحجمها بعرضها (cqw)، فتبقى في الإطار على كل شاشة */
.hero__content {
  position: absolute;
  z-index: 2;
  /* داخل القوس المقيس على hero.webp: أعرضه بين ٢٥٪ و٧٥٪ من العرض، ويضيق تحت ٦٨٪ من الطول */
  inset: 25% 27% 31%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4cqw;
  color: var(--hr-plum);
  /* حبرٌ مطبوع على ورقٍ منقوش: ضوءٌ رقيق تحت الحرف */
  text-shadow: 0 1px 0 rgba(255, 238, 245, .42);
}
/* البسملة كاملةً فوق الأسماء بالرقعة نفسها، أصغر منها وفي سطرٍ واحد (طلب كرار بدل «بحضور عائلتيهما») */
.hr-kicker { margin-bottom: 2.4cqw; font: 400 calc(var(--hr-k, 1) * 5.4cqw)/1.6 var(--hr-names); white-space: nowrap; }
.hr-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1cqw 0 .6cqw;
  font: 400 var(--hr-fs, calc(var(--hr-k, 1) * 12.6cqw))/1.42 var(--hr-names);
  white-space: nowrap;
}
.hr-name { display: block; }
.hr-names .hr-amp { font: 400 .5em/1.2 var(--hr-text); }
.hr-sub { margin-top: 1.2cqw; font-size: calc(var(--hr-k, 1) * 4.2cqw); line-height: 1.55; text-wrap: balance; }

/* بعد الفيلم: الأسماء تُكتب من اليمين كأن قلماً يخطّها، والبقية تظهر بهدوء */
body:not(.is-landed) .hero__content > * { opacity: 0; }
.hero__content > * { transition: opacity .9s ease .2s; }
.hero__content .hr-names { transition: none; }
body.is-landed .hr-name { animation: hr-write 1.5s cubic-bezier(.45, .1, .25, 1) .25s both; }
body.is-landed .hr-name + .hr-amp + .hr-name { animation-delay: 1.15s; }
body.is-landed .hr-amp { animation: hr-fade .8s ease .9s both; }
body.is-landed .hr-sub { transition-delay: 1.9s; }
@keyframes hr-write {
  from { clip-path: inset(-20% 0 -20% 100%); }
  to { clip-path: inset(-20% 0 -20% 0); }
}
@keyframes hr-fade { from { opacity: 0; } to { opacity: 1; } }

.hr-scroll {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  bottom: calc(env(safe-area-inset-bottom) + 18px + var(--bar, 0px));
  width: max-content;
  margin-inline: auto;
  padding: 3px 20px 5px;
  border: 0;
  border-radius: 999px;
  font: 700 17px/1.5 var(--hr-text);
  color: #fbf4f7;
  cursor: pointer;
  background: rgba(90, 58, 74, .72);
  box-shadow: inset 0 0 0 1px rgba(246, 230, 237, .55);
  transition: opacity .6s ease 2.4s;
  animation: hr-rise 1.9s ease-in-out infinite alternate;
}
body:not(.is-landed) .hr-scroll { opacity: 0; }
@keyframes hr-rise {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}
.hr-scroll:focus-visible, .hr-map:focus-visible, .hr-contact a:focus-visible { outline: 2px solid var(--hr-plum); outline-offset: 3px; }

/* ═══ العناوين ═══ */
.hr-title { font: 400 34px/1.8 var(--hr-names); color: var(--hr-plum); }
.hr-title--light { color: #f7f1f6; }
.hr-script { font: 400 28px/1.6 var(--hr-names); color: #f3e9ef; }

/* ═══ العدّاد: شريطٌ رماديّ بنفسجي وتذكرةٌ ورقية بحوافٍ ممزّقة ═══ */
.hr-band {
  padding: 30px 18px 26px;
  background: linear-gradient(176deg, var(--hr-band), var(--hr-band-deep));
  box-shadow: inset 0 10px 18px -12px rgba(30, 20, 40, .45);
}
.hr-ticket {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 380px;
  margin: 6px auto 8px;
  padding: 20px 14px 22px;
  color: var(--hr-plum);
  background: linear-gradient(170deg, #fbf8f9, #ece5ea);
  filter: drop-shadow(0 6px 10px rgba(40, 28, 52, .35));
  clip-path: polygon(0 6%, 4% 0, 9% 5%, 15% 1%, 21% 4%, 27% 0, 33% 5%, 40% 2%, 46% 6%, 52% 1%, 58% 4%, 64% 0, 70% 5%, 76% 2%, 82% 6%, 88% 1%, 94% 4%, 100% 0, 99% 22%, 100% 45%, 98% 70%, 100% 100%, 95% 95%, 89% 100%, 83% 96%, 77% 100%, 71% 95%, 64% 99%, 58% 95%, 52% 100%, 46% 96%, 40% 100%, 34% 95%, 27% 99%, 21% 95%, 15% 100%, 9% 96%, 4% 100%, 0 95%, 1% 72%, 0 48%, 2% 24%);
}
.hr-cell { display: flex; flex-direction: column; align-items: center; }
.hr-cell + .hr-cell { border-inline-start: 1px solid rgba(90, 58, 74, .18); }
.hr-cell b { font-size: clamp(30px, 9vw, 40px); font-weight: 700; line-height: 1.15; }
.hr-cell span { font-size: 17px; line-height: 1.3; color: var(--hr-plum-soft); }

/* ═══ الصدف: صورة العروسين في بيضويٍّ مؤطّر باللؤلؤ ═══ */
.hr-nacre {
  position: relative;
  padding: 44px 20px 48px;
  background: #b8a7b6 center / cover;
}
.hr-nacre::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, transparent 40%, rgba(70, 50, 72, .28));
}
.hr-oval {
  position: relative;
  width: min(66%, 270px);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
}
/* عقد اللؤلؤ: ٥٦ حبّة متساوية على محيط البيضوي (pathLength) وظلّها تحتها */
.hr-oval::before, .hr-oval::after {
  content: "";
  position: absolute;
  inset: -7%;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400'%3E%3Cellipse cx='151' cy='203' rx='136' ry='185' fill='none' stroke='%23614a60' stroke-opacity='.35' stroke-width='15' stroke-linecap='round' pathLength='56' stroke-dasharray='0 1'/%3E%3Cellipse cx='150' cy='200' rx='136' ry='185' fill='none' stroke='%23f4eef1' stroke-width='14' stroke-linecap='round' pathLength='56' stroke-dasharray='0 1'/%3E%3Cellipse cx='148' cy='197' rx='136' ry='185' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round' pathLength='56' stroke-dasharray='0 1'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hr-oval::after { inset: -2.5%; background: none; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 250, 252, .8), 0 10px 26px rgba(50, 30, 52, .35); }
.hr-oval-in {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--hr-pearl);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
/* الوجهان في الثلث الأعلى من الصورة: الإطار البيضوي يقصّ الزوايا لا الرأسين */
.hr-oval-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }

/* ═══ الورق الفاتح ═══ */
.hr-paper {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, .55), transparent 60%),
    var(--hr-paper-lt);
}
.hr-letter { padding: 18px 22px 46px; }
/* ورق الغصن أفتح من ورق الصفحة بدرجة: حوافّه تذوب بقناعٍ بيضوي فلا يظهر مستطيله */
.hr-sprig {
  width: min(74%, 320px);
  height: auto;
  margin: 6px auto 10px;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
}
/* الآية في محرابٍ مقوّس يردّ قوس البطاقة: إطاران رفيعان، والبسملة أعلاه، وزخرفةٌ بينهما، والآية بشهرزاد
   (أميري يزيح الحركات عن حروفها على سفاري) بين قوسين مزخرفين بلون الشمع */
.hr-ayah {
  position: relative;
  max-width: 380px;
  margin: 2px auto 0;
  padding: 40px 24px 30px;
  border-radius: 50% 50% 14px 14px / 92px 92px 14px 14px;
  background: radial-gradient(ellipse 80% 60% at 50% 0, rgba(255, 255, 255, .75), rgba(255, 255, 255, .22) 70%, rgba(255, 255, 255, .12));
  box-shadow:
    inset 0 0 0 1px rgba(var(--hr-plum-soft-rgb, 110, 79, 94), 0.5),
    inset 0 0 0 6px var(--hr-paper-lt),
    inset 0 0 0 7px rgba(var(--hr-plum-soft-rgb, 110, 79, 94), 0.28),
    0 14px 30px rgba(var(--hr-plum-rgb, 75, 46, 60), 0.1);
}
.hr-basmala {
  font: 700 27px/1.9 "Scheherazade New", var(--hr-text);
  color: var(--hr-plum);
}
.hr-ayah-orn {
  display: block;
  width: 190px;
  height: 18px;
  margin: 2px auto 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 18'%3E%3Cg fill='none' stroke='%236e4f5e' stroke-width='1'%3E%3Cpath d='M4 9h66M120 9h66'/%3E%3Cpath d='M70 9c8-7 14-7 18 0-4 7-10 7-18 0zM120 9c-8-7-14-7-18 0 4 7 10 7 18 0z'/%3E%3C/g%3E%3Cpath d='M95 2l7 7-7 7-7-7z' fill='%23955e6d'/%3E%3Ccircle cx='4' cy='9' r='2' fill='%236e4f5e'/%3E%3Ccircle cx='186' cy='9' r='2' fill='%236e4f5e'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hr-verse {
  font: 700 25px/2.05 "Scheherazade New", var(--hr-text);
  color: var(--hr-plum);
  text-wrap: balance;
}
.hr-verse .hr-br { font-size: 1.3em; font-weight: 400; line-height: 0; color: var(--hr-wax); }
.hr-poem { margin-top: 22px; font-size: 22px; line-height: 1.7; text-wrap: pretty; }
.hr-poem p + p { margin-top: 10px; }
.hr-couple { margin-top: 22px; }
.hr-person b { display: block; font: 400 clamp(40px, 12vw, 50px)/1.6 var(--hr-names); color: var(--hr-plum); }
.hr-person small { display: block; font-size: 19px; line-height: 1.5; color: var(--hr-plum-soft); }
.hr-couple-amp { display: block; margin: 4px 0; font: 400 24px/1 var(--hr-text); color: var(--hr-plum-soft); }

.hr-details { padding: 30px 22px 40px; border-top: 1px solid rgba(90, 58, 74, .12); }
.hr-line { font-size: 23px; line-height: 1.55; }
.hr-strong { font-weight: 700; }
.hr-soft { font-size: 20px; line-height: 1.5; color: var(--hr-plum-soft); }
.hr-where { margin-top: 36px; }
.hr-venue { font: 400 32px/1.6 var(--hr-names); color: var(--hr-plum); text-wrap: balance; }
.hr-etching { width: min(92%, 380px); height: auto; margin: 14px auto 0; mix-blend-mode: multiply; opacity: .92; }
.hr-venue-photo {
  width: min(80%, 300px);
  aspect-ratio: 4 / 3;
  margin: 14px auto 0;
  object-fit: cover;
  border: 6px solid #f8f3f6;
  box-shadow: 0 0 0 1px rgba(90, 58, 74, .25), 0 10px 22px rgba(60, 34, 48, .15);
}
.hr-venue-photo:not([hidden]) + .hr-etching { display: none; }
.hr-mapframe {
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  margin: 16px auto 0;
  border: 6px solid #f8f3f6;
  box-shadow: 0 0 0 1px rgba(90, 58, 74, .25);
}
.hr-mapframe iframe { display: block; width: 100%; height: calc(100% + 64px); margin-top: -64px; border: 0; }
.hr-map {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 26px 7px;
  border: 1px solid var(--hr-plum);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--hr-plum);
  text-decoration: none;
  background: rgba(255, 255, 255, .35);
  box-shadow: inset 0 0 0 3px var(--hr-paper-lt), inset 0 0 0 4px rgba(90, 58, 74, .35);
}

/* ═══ البرنامج: مسرحٌ بستارتين منقوشتين ═══
   مغلقتان حتى يصل الضيف (ملصق الفيلم)، ثم ينفتح الفيلم على صورة الخلفية المفتوحة نفسها. الضوء يشتدّ وسط المسرح،
   والعنوان ينزل، وكل فقرةٍ تصعد بعد أختها وزخرفتها تُرسم.
   كرار: «البرنامج فوق الستارة» — فتحة المسرح بين الستارتين ٤٢٪ من عرض الصورة فقط، فالمسرح مكبَّر ١٣٢٪ (الستارتان
   تخرجان إلى الحافّتين) والبرنامج عمودٌ في الوسط بعرض ٥٢٪ لا يلمسهما، بلا خطٍّ جانبي */
.hr-theater {
  --hr-zoom: 1.32;
  position: relative;
  overflow: hidden;
  min-height: calc(var(--hr-w) * 2752 / 1536);
  background: #d6c2cd center top / calc(var(--hr-zoom) * 100%) auto no-repeat;
}
/* صورتا الصدف والمسرح تُجلبان حين يقترب الضيف منهما لا مع الظرف (كرار «ثقيل») */
.hr-nacre.is-near { background-image: url("assets/nacre.webp"); }
.hr-theater.is-near { background-image: url("assets/curtains.webp"); }
.hr-stage-film { position: absolute; inset: 0 calc((var(--hr-zoom) - 1) * -50%); transition: opacity .7s ease; }
.hr-stage-film video { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* بلا فيلم (رفضه المتصفّح أو «تقليل الحركة»): تذوب الستارة المغلقة عن صورة الخلفية المفتوحة */
.hr-theater.no-film .hr-stage-film { opacity: 0; }
.hr-spot {
  position: absolute;
  inset: 18% 20% 10%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 40%, rgba(255, 250, 253, .8), rgba(255, 246, 251, 0) 70%);
  transition: opacity 1.6s ease 1.1s;
}
/* تحت الستارة العلوية المزمومة (١٦٪ من طول الصورة المكبّرة) */
.hr-stage-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 41% 24% 18%;
}
.hr-theater .hr-title { opacity: 0; transform: translateY(-12px); transition: opacity .9s ease 1.2s, transform .9s ease 1.2s; }
.hr-theater.is-open .hr-spot, .hr-theater.is-open .hr-title { opacity: 1; transform: none; }
.hr-program { width: 100%; margin-top: 6px; padding: 0; list-style: none; text-align: center; }
.hr-program li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .3, 1);
  transition-delay: calc(1.6s + var(--i, 0) * .32s);
}
.hr-theater.is-open .hr-program li { opacity: 1; transform: none; }
/* بين فقرةٍ وأختها زخرفةٌ رفيعة تُرسم من وسطها */
.hr-program li + li::before {
  content: "";
  display: block;
  width: 96px;
  height: 12px;
  margin: 8px auto 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 12'%3E%3Cpath d='M2 6h36M58 6h36' stroke='%236e4f5e' stroke-width='1' fill='none'/%3E%3Cpath d='M48 1l5 5-5 5-5-5z' fill='%23955e6d'/%3E%3Ccircle cx='40' cy='6' r='1.6' fill='%236e4f5e'/%3E%3Ccircle cx='56' cy='6' r='1.6' fill='%236e4f5e'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scaleX(0);
  transition: transform .9s cubic-bezier(.45, .1, .25, 1);
  transition-delay: inherit;
}
.hr-theater.is-open .hr-program li + li::before { transform: none; }
/* الوقت في شارةٍ صغيرة بحبرٍ رفيع، والفقرة تحتها بالرقعة كعنوان القسم والأسماء */
.hr-program span {
  display: inline-block;
  padding: 0 11px 1px;
  border: 1px solid rgba(var(--hr-plum-soft-rgb, 110, 79, 94), 0.4);
  border-radius: 999px;
  font: 700 15px/1.6 var(--hr-text);
  color: var(--hr-plum-soft);
  background: rgba(255, 255, 255, .45);
}
.hr-program b { display: block; margin-top: 3px; font: 400 25px/1.55 var(--hr-names); color: var(--hr-plum); text-wrap: balance; }

/* ═══ التنويهات: إطارٌ مقوّس رفيع يختم زاويته شمعٌ سادة ═══ */
.hr-end { padding: 40px 22px 44px; }
.hr-arch {
  position: relative;
  max-width: 360px;
  margin: 0 auto 38px;
  padding: 34px 22px 30px;
  border: 1.5px solid var(--hr-plum-soft);
  border-radius: 46% 46% 6px 6px / 15% 15% 6px 6px;
  box-shadow: inset 0 0 0 5px var(--hr-paper-lt), inset 0 0 0 6px rgba(90, 58, 74, .3);
}
.hr-arch ul { list-style: none; }
.hr-arch li { padding-block: 8px; font-size: 21px; line-height: 1.5; text-wrap: balance; }
.hr-arch li + li { border-top: 1px solid rgba(90, 58, 74, .14); }
.hr-arch-seal {
  position: absolute;
  inset-inline-start: -18px;
  bottom: -26px;
  width: 78px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(60, 34, 48, .3));
  transform: rotate(-12deg);
}
.hr-contact { font-size: 22px; line-height: 1.6; }
.hr-contact span:not(:empty)::after { content: ": "; }
.hr-contact a { color: var(--hr-plum); font-weight: 700; text-decoration: none; }

#rsvpSlot { margin-top: 36px; }
#rsvpSlot:empty { display: none; }

/* ═══ الظهور مع التمرير ═══ */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .3, 1); }
[data-reveal].in { opacity: 1; transform: none; }

/* أقسام المنصّة بلغة التصميم */
.hr-save { max-width: 360px; margin: 26px auto 0; padding: 6px 16px 18px; border: 1px solid rgba(90, 58, 74, .3); background: rgba(255, 255, 255, .35); }
#saveDate #da3wa-cal { padding: 0; font-family: var(--hr-text); }
#saveDate #da3wa-cal .cal-title, #saveDate #da3wa-cal .cal-top, #saveDate #da3wa-cal .cal-body { display: none; }
#saveDate #da3wa-cal .cal { max-width: none; overflow: visible; background: none; border: 0; border-radius: 0; box-shadow: none; }
#saveDate #da3wa-cal .cal-foot { padding: 0; border: 0; }
#saveDate #da3wa-cal .cal-cap { margin: 0 0 12px; font-size: 19px; font-weight: 400; color: var(--hr-plum-soft); }
#saveDate #da3wa-cal .cal-btns { flex-wrap: nowrap; gap: 8px; }
#saveDate #da3wa-cal .cal-btns a {
  flex: 1;
  justify-content: center;
  padding: 5px 8px 7px;
  border-color: var(--hr-plum);
  font-size: 19px;
  line-height: 1.5;
  font-family: var(--hr-text);
  color: var(--hr-plum);
}
#saveDate #da3wa-cal .cal-btns a:first-child { color: #fbf4f7; background: var(--hr-plum); }
#rsvpSlot #da3wa-rsvp, #invite > #da3wa-mem { font-family: var(--hr-text); }
#rsvpSlot #da3wa-rsvp { padding-inline: 0; padding-bottom: 12px; }
#rsvpSlot #da3wa-rsvp h3, #invite > #da3wa-mem h2, #invite > #da3wa-mem h3 { font-family: var(--hr-names); font-weight: 400; line-height: 1.8; }
#notes #da3wa-note .hn-kick { font-family: var(--hr-text); font-size: 18px; line-height: 1.4; }
#notes #da3wa-note .hn-text { font-family: var(--hr-text); font-size: clamp(24px, 6.6vw, 28px); font-weight: 700; line-height: 1.4; color: var(--hr-plum); text-wrap: balance; }

/* الشعار من المحرّر فوق الأسماء داخل الإطار */
.hero__content #da3wa-initials-logo { width: min(var(--da3wa-logo-width), 16cqw); height: min(var(--da3wa-logo-width), 16cqw); margin: 0 auto 1cqw; }
.hero__content #da3wa-initials-logo[data-kind="image"] { isolation: isolate; overflow: hidden; border-radius: 50%; }
.hero__content #da3wa-initials-logo[data-kind="image"] > img { mix-blend-mode: multiply; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  body.is-landed .hr-name { clip-path: none; }
  .hr-theater .hr-title, .hr-program li, .hr-spot, .hr-program li + li::before { opacity: 1; transform: none; }
}

/* mobile: keep decorative full-bleed layers from creating a horizontal scrollbar */
html,body{overflow-x:clip;max-width:100%}
