/* قالب «حرير أبيض» — أخو «حرير» بالأبيض (طلب كرار 2026-11-07: «واحد آخر مثله باللون الأبيض… ويكون أجمل وأفضل»):
   ظرفٌ أبيض منقوش بورق الجنكة وختم شمعٍ لؤلؤي سادة، حريرٌ أبيض بشريطٍ عاجي، وبطاقةٌ بيضاء منقوشة بالورد. الحبر فحميّ
   دافئ، والأسماء والبسملة بورقِ ذهبٍ شمبانيا تعبره لمعة، وشريط العدّاد رماديّ دافئ. متغيّراته بـ--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: #e6ddda;
  --hr-paper-deep: #cfc5c0;
  --hr-paper-lt: #f8f5f1;
  --hr-plum: #3d3833;
  --hr-plum-soft: #6f675f;
  --hr-wax: #b0905a;
  --hr-band: #8d847a;
  --hr-band-deep: #6f665d;
  --hr-pearl: #fdfcfa;
  --hr-gold: #a8874d;
  --hr-gold-lt: #e8d3a0;
  --hr-gold-dk: #7d6232;
  --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(var(--hr-wax-rgb, 176, 144, 90), 0.85), 0 0 14px rgba(var(--hr-gold-lt-rgb, 232, 211, 160), 0.5);
  animation: hr-halo 2.4s ease-out infinite;
}
.hr-seal::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 1px solid rgba(var(--hr-wax-rgb, 176, 144, 90), 0.6);
  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, 252, 246, .9), rgba(240, 233, 222, .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: #fffdf8;
  pointer-events: none;
  background: rgba(var(--hr-plum-rgb, 61, 56, 51), 0.82);
  box-shadow: 0 0 0 1px rgba(240, 226, 196, .6), 0 8px 22px rgba(60, 52, 44, .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 #fffdf8; 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, 52, 44, .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) * 1520 / 2688));
  aspect-ratio: 1520 / 2688;
  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, 251, 244, .2) 42%, rgba(255, 244, 214, .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: 26.5% 27% 37.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4cqw;
  color: var(--hr-plum);
  /* حبرٌ مطبوع على ورقٍ منقوش: ضوءٌ رقيق تحت الحرف */
  text-shadow: 0 1px 0 rgba(255, 252, 246, .42);
}
/* البسملة كاملةً فوق الأسماء بالرقعة نفسها، أصغر منها وفي سطرٍ واحد (طلب كرار بدل «بحضور عائلتيهما») */
.hr-kicker { margin-bottom: 2cqw; font: 400 calc(var(--hr-k, 1) * 4.9cqw)/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) * 11.6cqw))/1.38 var(--hr-names);
  white-space: nowrap;
}
.hr-name { display: block; }
.hr-names .hr-amp { font: 400 .5em/1.2 var(--hr-text); color: var(--hr-gold-dk); }
/* ورقُ ذهبٍ شمبانيا على الأسماء والبسملة: تدرّجٌ داخل الحروف تعبره لمعةٌ بطيئة، وضوءٌ رقيق تحتها كالضغط على الورق */
.hr-name, .hr-kicker {
  color: var(--hr-gold-dk);
  background: linear-gradient(100deg, var(--hr-gold-dk) 0%, var(--hr-gold) 28%, var(--hr-gold-lt) 45%, #fff6dc 50%, var(--hr-gold-lt) 55%, var(--hr-gold) 72%, var(--hr-gold-dk) 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .7)) drop-shadow(0 1px 1.5px rgba(110, 84, 40, .28));
  animation: hr-foil 8s ease-in-out infinite;
}
@keyframes hr-foil {
  0%, 15% { background-position: 100% 0; }
  65%, 100% { background-position: 0 0; }
}
.hr-sub { margin-top: 1cqw; font-size: calc(var(--hr-k, 1) * 3.8cqw); line-height: 1.5; 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, hr-foil 8s ease-in-out 2.6s infinite; }
body.is-landed .hr-name + .hr-amp + .hr-name { animation-delay: 1.15s, 3.4s; }
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: #fffdf8;
  cursor: pointer;
  background: rgba(var(--hr-plum-rgb, 61, 56, 51), 0.72);
  box-shadow: inset 0 0 0 1px rgba(240, 226, 196, .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: #fffaf0; }
.hr-script { font: 400 28px/1.6 var(--hr-names); color: #fbf3e1; }

/* ═══ العدّاد: شريطٌ رماديّ دافئ وتذكرةٌ ورقية بحوافٍ ممزّقة ═══ */
.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(40, 34, 28, .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, #fffefc, #f3eee6);
  filter: drop-shadow(0 6px 10px rgba(48, 42, 36, .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(var(--hr-plum-rgb, 61, 56, 51), 0.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: #ebe6df center / cover;
}
.hr-nacre::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, transparent 40%, rgba(90, 80, 66, .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(60, 52, 44, .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;
  /* الغصن نفسه في «حرير» على ورقٍ ليلكي: يُحيَّد هنا إلى أبيضٍ رماديّ */
  filter: grayscale(1) brightness(1.03);
  -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, 111, 103, 95), 0.5),
    inset 0 0 0 6px var(--hr-paper-lt),
    inset 0 0 0 7px rgba(var(--hr-plum-soft-rgb, 111, 103, 95), 0.28),
    0 14px 30px rgba(var(--hr-plum-rgb, 61, 56, 51), 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='%23a88a52' 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='%23b0905a'/%3E%3Ccircle cx='4' cy='9' r='2' fill='%23a88a52'/%3E%3Ccircle cx='186' cy='9' r='2' fill='%23a88a52'/%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 b {
  background: linear-gradient(100deg, var(--hr-gold-dk), var(--hr-gold) 35%, var(--hr-gold-lt) 50%, var(--hr-gold) 65%, var(--hr-gold-dk));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .7));
}
.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(var(--hr-plum-rgb, 61, 56, 51), 0.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: .85; filter: grayscale(1) sepia(.25); }
.hr-venue-photo {
  width: min(80%, 300px);
  aspect-ratio: 4 / 3;
  margin: 14px auto 0;
  object-fit: cover;
  border: 6px solid #fdfbf8;
  box-shadow: 0 0 0 1px rgba(var(--hr-plum-rgb, 61, 56, 51), 0.25), 0 10px 22px rgba(60, 52, 44, .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 #fdfbf8;
  box-shadow: 0 0 0 1px rgba(var(--hr-plum-rgb, 61, 56, 51), 0.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(var(--hr-plum-rgb, 61, 56, 51), 0.35);
}

/* ═══ البرنامج: مسرحٌ بستارتين منقوشتين ═══
   مغلقتان حتى يصل الضيف (ملصق الفيلم)، ثم ينفتح الفيلم على صورة الخلفية المفتوحة نفسها. الضوء يشتدّ وسط المسرح،
   والعنوان ينزل، وكل فقرةٍ تصعد بعد أختها وزخرفتها تُرسم.
   كرار: «البرنامج فوق الستارة» — فتحة المسرح بين الستارتين ٤٢٪ من عرض الصورة فقط، فالمسرح مكبَّر ١٣٢٪ (الستارتان
   تخرجان إلى الحافّتين) والبرنامج عمودٌ في الوسط بعرض ٥٢٪ لا يلمسهما، بلا خطٍّ جانبي */
.hr-theater {
  --hr-zoom: 1.32;
  position: relative;
  overflow: hidden;
  min-height: calc(var(--hr-w) * 2752 / 1536);
  background: #e0d8d3 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, 253, 248, .8), rgba(255, 251, 244, 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='%23a88a52' stroke-width='1' fill='none'/%3E%3Cpath d='M48 1l5 5-5 5-5-5z' fill='%23b0905a'/%3E%3Ccircle cx='40' cy='6' r='1.6' fill='%23a88a52'/%3E%3Ccircle cx='56' cy='6' r='1.6' fill='%23a88a52'/%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, 111, 103, 95), 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(var(--hr-plum-rgb, 61, 56, 51), 0.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(var(--hr-plum-rgb, 61, 56, 51), 0.14); }
.hr-arch-seal {
  position: absolute;
  inset-inline-start: -18px;
  bottom: -26px;
  width: 78px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(60, 52, 44, .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(var(--hr-plum-rgb, 61, 56, 51), 0.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: #fffdf8; 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%}
