/* «نظرة» — نظرةٌ من خلف الستارة، ثم ليلةٌ على الشرفة تضيئها المصابيح والفوانيس.
   ورقٌ عاجيّ بلون الستارة ونورها الدافئ، وعنّابيّ فستان العروس، وذهبُ الشموع (طلب كرار 2026-11-20 بعد
   النسخة الليلية: «لون الباكراوند لم يعجبني… الوان القالب لم تعجبني»). اللوحة حيّة: كل مصباح وشمعة يومض
   على موضعه منها، وأسفلها يذوب في الورق. والموعد خلف ستارةٍ صغيرة يزيحها الضيف كما أزاحتها العروس. */
:root {
  --ivory: #fbf5ec;
  --paper: #fffdf8;
  --cream: #f3e6d1;
  --gold: #b8894a;
  --gold-dp: #8c6331;
  --gold-lt: #e8cd96;
  --wine: #8c2433;
  --wine-dp: #5e1622;
  --ink: #3d2a22;
  --ink-sf: #8a7564;
  --line: rgba(var(--gold-rgb, 184, 137, 74), 0.34);
  --title: "Aref Ruqaa", "Amiri", serif;
  --body: "Amiri", serif;
  --num: "Cormorant Garamond", "Amiri", serif;
  --latin: "Pinyon Script", "Cormorant Garamond", cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bar: 0px; /* ارتفاع شريط «اطلبه» في الديمو — يضبطه script.js */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ivory); }
html, body { margin: 0; }
body {
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  /* ورقٌ عاجيّ محبّب بنورٍ دافئ كنور الستارة */
  background:
    radial-gradient(110% 50% at 50% 0%, rgba(255, 236, 200, .55), rgba(255, 236, 200, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--ivory);
}
body.is-gate { overflow: hidden; height: 100%; }
img, video, canvas, svg { display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ═══════════════ الستارة (الدخولية) ═══════════════ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  background: #d9b77e url("assets/gate-poster.jpg") center / cover no-repeat;
  cursor: pointer;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
/* المسرح بنسبة الفيلم (9:16) يغطّي الشاشة، فتبقى الهالة على الستارة في كل شاشة */
.gate__stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 56.25vh);
  height: max(100vh, 177.78vw);
  transform: translate(-50%, -50%);
}
.gate__film { width: 100%; height: 100%; object-fit: cover; }
/* نورٌ يتنفّس خلف الستارة قبل اللمسة */
.gate__shine {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 90%;
  aspect-ratio: .7;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 238, 196, .55), rgba(255, 226, 170, .18) 60%, rgba(255, 226, 170, 0));
  mix-blend-mode: screen;
  animation: shine 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine { 50% { opacity: .45; transform: translate(-50%, -50%) scale(1.06); } }
.gate__halo {
  position: absolute;
  left: 52%;
  top: 52%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255, 249, 232, .95);
  box-shadow: 0 0 26px 6px rgba(255, 222, 150, .5), inset 0 0 20px rgba(255, 236, 190, .5);
  animation: halo 2.6s var(--ease) infinite;
  pointer-events: none;
}
.gate__halo--late { animation-delay: 1.3s; }
@keyframes halo {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.45); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
}
.gate__hint {
  position: absolute;
  left: 50%;
  top: min(64%, calc(50% + 50vh - 96px - var(--bar)));
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 10px 26px;
  border: 0;
  background: none;
  cursor: pointer;
  animation: hint-in 1.4s var(--ease) .5s backwards;
  transition: opacity .6s ease;
}
@keyframes hint-in { from { opacity: 0; transform: translate(-50%, 10px); } }
.gate__line {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #9a6a2c, transparent);
  box-shadow: 0 0 8px rgba(255, 250, 236, .9);
}
.gate__label {
  font-family: var(--title);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #5a3a1a;
  text-shadow: 0 0 2px #fff6e2, 0 0 12px #fff6e2, 0 0 24px rgba(255, 246, 226, .95);
  animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .55; } }
.gate.is-playing { cursor: default; }
.gate.is-playing .gate__hint,
.gate.is-playing .gate__halo,
.gate.is-playing .gate__shine { opacity: 0; animation: none; pointer-events: none; transition: opacity .5s; }
.gate.is-loading .gate__hint { opacity: 1; }
body.is-open .gate { opacity: 0; visibility: hidden; pointer-events: none; }

/* ═══════════════ الأجواء: أضواء شموعٍ بعيدة تطفو، وغبارٌ ذهبيّ (كانفاس) ═══════════════ */
.bokeh { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 2s ease 1s; }
body.is-open .bokeh { opacity: 1; }
.bokeh i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 196, 130, .2) 0, rgba(232, 196, 130, .14) 52%, rgba(226, 186, 120, .28) 60%, rgba(226, 186, 120, 0) 68%);
  scale: .55;
  animation: drift var(--t) ease-in-out var(--d) infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); opacity: .5; }
  50% { opacity: 1; }
  100% { transform: translate(18px, -46px) scale(1.15); opacity: .65; }
}
.fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  pointer-events: none;
}
#page { position: relative; z-index: 1; }

/* ═══════════════ اللوحة الحيّة ═══════════════ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}
/* الإطار: حاويةٌ بالتدفّق العادي (المنصّة تحقن صورة الخلفية داخله وتضبطه position:relative) */
.hero__frame { position: relative; height: 100%; background: #2a2236; }
.hero__art, .hero__lights { position: absolute; inset: 0; overflow: hidden; }
.hero__lights { pointer-events: none; }
/* اللوحة بنسبتها (9:16) تغطّي الواجهة: الأضواء بالنسب المئوية على مواضعها من اللوحة */
.hero__stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, calc(max(100svh, 560px) * 9 / 16));
  aspect-ratio: 9 / 16;
  transform: translate(-50%, -50%);
}
@media (min-aspect-ratio: 9/16) {
  .hero__stage { top: 0; transform: translate(-50%, -8%); }
}
.hero__img { width: 100%; height: 100%; object-fit: cover; }
/* اللوحة والأضواء تتنفّس معاً (المسرحان بالحجم نفسه فتبقى الأضواء على مواضعها) */
body.is-open .hero__stage { animation: breathe-img 22s ease-in-out 1.2s infinite alternate; }
@keyframes breathe-img { from { scale: 1; } to { scale: 1.045; } }

/* ── الأضواء: كلٌّ على موضعه، تُضاء تباعاً بعد الستارة ثم تومض بطبعها ── */
.lt {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--z, 1) * 7.5%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: 0;
}
body.is-lit .lt { animation: ignite 1.4s ease calc(var(--i, 0) * .14s) forwards; }
@keyframes ignite { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 1; } }
.lt::before, .lt::after { content: ""; position: absolute; border-radius: 50%; }
.lt::before { inset: 0; }
/* مصابيح الحبل: فتيلٌ قديم يرتعش أحياناً */
.lt--bulb::before {
  background: radial-gradient(circle, rgba(255, 236, 186, .95) 0, rgba(255, 208, 124, .55) 20%, rgba(255, 190, 100, .16) 44%, rgba(255, 190, 100, 0) 68%);
  animation: filament var(--dur, 5s) linear var(--d, 0s) infinite;
}
.lt--bulb::after {
  inset: 40%;
  background: radial-gradient(circle, #fffaf0 0, rgba(255, 244, 214, .7) 50%, rgba(255, 236, 190, 0) 100%);
  animation: filament var(--dur, 5s) linear var(--d, 0s) infinite;
}
@keyframes filament {
  0%, 100% { opacity: 1; transform: scale(1); }
  12% { opacity: .9; transform: scale(.98); }
  30% { opacity: 1; transform: scale(1.04); }
  46% { opacity: .5; transform: scale(.94); }
  48% { opacity: .95; }
  51% { opacity: .62; }
  54% { opacity: 1; transform: scale(1.02); }
  78% { opacity: .86; transform: scale(.99); }
}
/* شموع الفوانيس: لهبٌ يرقص */
.lt--flame { width: calc(var(--z, 1) * 6.4%); aspect-ratio: .78; }
.lt--flame::before {
  background: radial-gradient(ellipse at 50% 56%, rgba(255, 232, 170, .95) 0, rgba(255, 178, 84, .5) 26%, rgba(255, 150, 60, .14) 50%, rgba(255, 150, 60, 0) 70%);
  transform-origin: 50% 70%;
  animation: candle 2.1s ease-in-out var(--d, 0s) infinite;
}
.lt--flame::after {
  left: 38%; right: 38%; top: 30%; bottom: 46%;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 70%, #fffbea 0, rgba(255, 226, 150, .8) 45%, rgba(255, 200, 110, 0) 100%);
  transform-origin: 50% 100%;
  animation: tongue 1.3s ease-in-out var(--d, 0s) infinite;
}
@keyframes candle {
  0%, 100% { opacity: .82; transform: scale(1) translateY(0); }
  18% { opacity: 1; transform: scale(1.08, 1.13) translateY(-2%); }
  33% { opacity: .7; transform: scale(.95) translateY(1%); }
  52% { opacity: .97; transform: scale(1.05, 1.1) translateY(-2%); }
  68% { opacity: .78; transform: scale(.97); }
  84% { opacity: 1; transform: scale(1.04, 1.06) translateY(-1%); }
}
@keyframes tongue {
  0%, 100% { transform: scale(1) skewX(0); }
  30% { transform: scale(.92, 1.12) skewX(3deg); }
  60% { transform: scale(1.06, .94) skewX(-2deg); }
}
/* نور الستارة يتنفّس، وبركُ الضوء على الأرض المبتلّة تترقرق */
.lt--wash { width: 64%; aspect-ratio: .62; }
.lt--wash::before {
  background: radial-gradient(closest-side, rgba(255, 226, 168, .3), rgba(255, 214, 150, .1) 55%, rgba(255, 214, 150, 0));
  animation: wash 8s ease-in-out var(--d, 0s) infinite;
}
@keyframes wash { 50% { opacity: .45; transform: scale(1.05); } }
.lt--pool { width: calc(var(--z, 1) * 5%); aspect-ratio: .42; }
.lt--pool::before {
  background: radial-gradient(closest-side, rgba(255, 214, 140, .42), rgba(255, 200, 120, .12) 60%, rgba(255, 200, 120, 0));
  animation: pool 4.6s ease-in-out var(--d, 0s) infinite;
}
@keyframes pool {
  0%, 100% { opacity: .55; transform: scale(1, 1); }
  35% { opacity: 1; transform: scale(1.12, .94); }
  70% { opacity: .7; transform: scale(.94, 1.06); }
}
/* أضواء المدينة البعيدة تومض، ونجماتٌ تبرق في السماء */
.lt--twinkle { width: 2.2%; }
.lt--twinkle::before {
  background: radial-gradient(circle, rgba(255, 238, 196, 1) 0, rgba(255, 220, 150, .5) 30%, rgba(255, 220, 150, 0) 70%);
  animation: twinkle 3.2s ease-in-out var(--d, 0s) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .15; } 45% { opacity: 1; } 60% { opacity: .5; } }
.lt--star { width: 3.4%; }
.lt--star::before {
  background:
    radial-gradient(circle, #fff 0, rgba(255, 255, 255, 0) 30%),
    linear-gradient(90deg, transparent 46%, rgba(255, 250, 230, .9) 50%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(255, 250, 230, .9) 50%, transparent 54%);
  border-radius: 0;
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%);
  mask: radial-gradient(circle, #000 20%, transparent 70%);
  animation: sparkle 4.4s ease-in-out var(--d, 0s) infinite;
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(45deg); }
}

/* الاسمان والنصّ أعلى اللوحة في سماء الشرفة (طلب كرار: «الاسماء تكون فوق هي والنص»): ظلّ ليلٍ دافئ
   خفيف أعلاها يُقرأ عليه الذهب، والمصابيح فوقه تبقى تلمع. وأسفلها يذوب في الورق العاجيّ */
.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(26, 18, 30, .62) 0%, rgba(26, 18, 30, .4) 14%, rgba(26, 18, 30, .14) 26%, rgba(26, 18, 30, 0) 36%),
    linear-gradient(to top, var(--ivory) 0%, rgba(var(--ivory-rgb, 251, 245, 236), 0.7) 7%, rgba(251, 245, 236, 0) 20%);
}

.hero__text {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(env(safe-area-inset-top, 0px) + max(3.6svh, 22px));
  padding: 0 20px;
  text-align: center;
  z-index: 2;
}
/* الآية بخطٍّ نسخيّ يضبط الحركات (أميري يزيحها في سفاري وكروم — درس #1117) */
.hero__verse {
  margin: 0 auto 2px;
  max-width: 17em;
  font-family: "Scheherazade New", "Amiri", serif;
  font-weight: 500;
  font-size: clamp(1.02rem, 4.5vw, 1.2rem);
  line-height: 1.95;
  color: #fbf0d8;
  white-space: pre-line;
  opacity: 0;
  text-shadow: 0 1px 3px rgba(20, 12, 20, .85), 0 0 16px rgba(20, 12, 20, .7);
}
.hero__verse:empty { display: none; }
body.is-open .hero__verse { animation: fade-up 1.4s var(--ease) 1.4s forwards; }
.hero__names {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: .26em;
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(2.6rem, 13vw, 4.4rem);
  line-height: 1.6;
}
.hero__name {
  padding: .05em .12em .18em;
  background: linear-gradient(100deg, #d6a45a 0%, #f2d496 32%, #fff6dc 46%, #f2d496 60%, #d6a45a 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(20, 12, 20, .75)) drop-shadow(0 0 14px rgba(20, 12, 20, .45)) drop-shadow(0 0 18px rgba(255, 206, 120, .3));
  clip-path: inset(-30% -10% -30% 110%);
  white-space: nowrap;
}
/* اسمان لا يتّسعان معاً: كلٌّ بسطره و«&» بينهما (script.js يقيس بعد تحميل الخط) */
.hero__names.is-stacked { flex-direction: column; align-items: center; line-height: 1.35; }
.hero__names.is-stacked > * { font-size: .84em; }
.hero__names.is-stacked .hero__amp { margin: -.2em 0 -.15em; }
body.is-open .hero__name { animation: write 1.9s cubic-bezier(.6, .1, .3, 1) 1.8s forwards, shimmer 7s linear 4s infinite; }
body.is-open .hero__name + .hero__amp + .hero__name { animation-delay: 2.6s, 4.8s; }
@keyframes write { to { clip-path: inset(-30% -10% -30% -10%); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -160% 0; } }
.hero__amp {
  font-family: var(--num);
  font-style: italic;
  font-weight: 500;
  font-size: .62em;
  line-height: 1;
  color: var(--gold-lt);
  opacity: 0;
  text-shadow: 0 1px 3px rgba(20, 12, 20, .8), 0 0 14px rgba(255, 206, 120, .45);
}
body.is-open .hero__amp { animation: fade-in 1.2s ease 2.4s forwards; }
.hero__couple { display: none; white-space: normal; text-align: center; }
.hero__names.is-couple > :not(.hero__couple) { display: none; }
.hero__names.is-couple .hero__couple { display: block; }

@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }

.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: calc(18px + var(--bar) + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-rgb, 184, 137, 74), 0.5);
  background: rgba(255, 252, 244, .86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(120, 80, 40, .16);
  color: var(--wine);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.scroll-cue svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
body.is-open .scroll-cue { opacity: 1; visibility: visible; transition-delay: 4s, 0s; }
body.is-open.scrolled .scroll-cue { opacity: 0; visibility: hidden; transition-delay: 0s, .5s; }

.sec-title {
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  line-height: 1.8;
  color: var(--wine);
}

/* ── حبل مصابيح صغير يتدلّى فوق بطاقة الدعوة ── */
.garland {
  position: relative;
  width: min(86vw, 360px);
  height: 64px;
  margin: 0 auto -18px;
  z-index: 2;
}
.garland svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.garland path { fill: none; stroke: #4a3526; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.garland i {
  position: absolute;
  left: var(--p);
  top: var(--y);
  width: 11px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
  background: radial-gradient(circle at 50% 60%, #fffaf0 0, #ffe7ad 45%, #f2bd5c 100%);
  box-shadow: 0 0 9px 3px rgba(255, 196, 100, .55), 0 0 26px 8px rgba(255, 190, 100, .2);
  animation: filament 5.4s linear var(--d, 0s) infinite;
}
.garland i::before { content: ""; position: absolute; left: 3px; right: 3px; top: -5px; height: 6px; border-radius: 1px; background: #3a2a1e; }

/* ═══════════════ الدعوة ═══════════════ */
.vow { position: relative; padding: 30px 16px 40px; text-align: center; }
/* بطاقة الدعوة: ورقٌ أبيض بإطارٍ ذهبيّ مزدوج وظلٍّ دافئ */
.vow__card {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: 42px 22px 38px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffefb, var(--paper));
  box-shadow: 0 30px 60px rgba(120, 80, 40, .13), inset 0 0 0 9px var(--paper), inset 0 0 0 10px var(--gold-lt), inset 0 0 0 14px var(--paper), inset 0 0 0 14.8px rgba(var(--gold-rgb, 184, 137, 74), 0.45);
}
/* إكليل وردٍ أبيض على ملتقى اللوحة بالورق */
.vow__garland {
  position: relative;
  z-index: 3;
  display: block;
  width: min(96vw, 460px);
  height: auto;
  margin: -78px auto 0;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(90, 60, 30, .2));
}
/* ورودٌ بيضاء على زاوية البطاقة (طلب كرار: «اضف بالتصميم ورود بيضاء جميلة») */
.vow__roses {
  position: absolute;
  top: -34px;
  right: -26px;
  z-index: 3;
  width: 50%;
  height: auto;
  transform: scaleX(-1);
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(90, 60, 30, .18));
}
.vow__sub {
  margin: 0 auto 10px;
  max-width: 26ch;
  font-family: var(--title);
  font-size: clamp(1.12rem, 5vw, 1.4rem);
  line-height: 1.8;
  color: var(--gold-dp);
  white-space: pre-line;
}
.vow__sub:empty { display: none; }
.filigree { width: min(72vw, 280px); margin: 0 auto 18px; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; overflow: visible; }
.filigree .fill { fill: var(--wine); stroke: none; }
.lead {
  max-width: 24em;
  margin: 0 auto 30px;
  font-size: clamp(1.14rem, 4.9vw, 1.32rem);
  line-height: 2.15;
  color: var(--ink);
  white-space: pre-line;
}
.families {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}
.family { display: grid; gap: 2px; }
.family__label { font-size: .84rem; font-weight: 700; color: var(--gold); letter-spacing: .03em; line-height: 1.6; }
.family__name { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.85; }
.families__knot { display: grid; justify-items: center; gap: 6px; align-self: stretch; padding: 4px 0; }
.families__knot i { width: 1px; min-height: 26px; background: linear-gradient(to bottom, transparent, var(--gold), transparent); }
.families__knot b { width: 9px; height: 9px; transform: rotate(45deg); background: var(--wine); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold-lt); }

/* ═══════════════ الموعد: صفحة تقويمٍ معلّقة ═══════════════ */
.when { position: relative; padding: 26px 18px 34px; text-align: center; }
.script-line {
  margin: 0 0 4px;
  font-family: var(--latin);
  font-size: clamp(2.2rem, 10vw, 2.8rem);
  line-height: 1.4;
  color: var(--gold);
  direction: ltr;
}
.calendar {
  position: relative;
  width: min(88vw, 350px);
  margin: 34px auto 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffefb, var(--paper));
  box-shadow: 0 26px 50px rgba(120, 80, 40, .16), 0 2px 0 rgba(255, 255, 255, .8) inset, 0 0 0 1px rgba(var(--gold-rgb, 184, 137, 74), 0.28);
}
/* ورقةٌ ثانية خلف الصفحة كتقويمٍ حقيقيّ */
.calendar::before {
  content: "";
  position: absolute;
  inset: 8px -6px -8px 6px;
  z-index: -1;
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 14px 30px rgba(120, 80, 40, .12);
  transform: rotate(-2deg);
}
.calendar__ring {
  position: absolute;
  top: -15px;
  z-index: 3;
  width: 13px;
  height: 32px;
  border-radius: 8px;
  border: 3px solid #b88b48;
  border-color: #f2d697 #9c7238 #7a5428 #e6c27e;
  box-shadow: 0 3px 6px rgba(80, 50, 20, .3);
}
.calendar__ring--r { right: 30%; }
.calendar__ring--l { left: 30%; }
.calendar__roses {
  position: absolute;
  top: -40px;
  left: -30px;
  z-index: 4;
  width: 54%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(90, 60, 30, .18));
}
.calendar__head {
  position: relative;
  padding: 26px 18px 14px;
  border-radius: 20px 20px 0 0;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(255, 220, 160, .28), rgba(255, 220, 160, 0) 60%),
    linear-gradient(160deg, #a8384a, var(--wine) 50%, var(--wine-dp));
  color: var(--gold-lt);
}
/* ثقبا الحلقتين في رأس الصفحة */
.calendar__head::before, .calendar__head::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3e1018;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5);
}
.calendar__head::before { right: calc(30% + 2px); }
.calendar__head::after { left: calc(30% + 2px); }
.date__kicker { display: block; font-size: .86rem; font-weight: 700; color: rgba(var(--gold-lt-rgb, 232, 205, 150), 0.85); line-height: 1.5; letter-spacing: .04em; }
.calendar__month {
  margin: 0;
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(1.55rem, 7vw, 1.9rem);
  line-height: 1.55;
  color: #fbe9c2;
  text-shadow: 0 1px 2px rgba(40, 8, 14, .4);
}
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 2px;
  padding: 14px 12px 8px;
  direction: rtl;
}
.cal__wd {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(.6rem, 2.7vw, .72rem);
  font-weight: 700;
  color: var(--gold-dp);
  line-height: 1.6;
}
.cal__day {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font-family: var(--num);
  font-weight: 600;
  font-size: clamp(1rem, 4.6vw, 1.15rem);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
  line-height: 1;
}
.cal__day--fri { color: var(--wine); }
.cal__day--pad { visibility: hidden; }
/* يوم الحفل: دائرةٌ عنّابية بإطارٍ ذهبيّ وقلبٌ صغير فوقها */
.cal__day--event {
  z-index: 1;
  color: #fffaf3;
  font-weight: 700;
}
.cal__day--event::before {
  content: "";
  position: absolute;
  inset: 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #b3475a, var(--wine) 55%, var(--wine-dp));
  box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 4px var(--gold-lt), 0 8px 18px rgba(var(--wine-dp-rgb, 94, 22, 34), 0.35);
}
.cal__day--event::after {
  content: "♥";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-family: system-ui, sans-serif;
  font-size: .62rem;
  color: var(--gold);
}
.calendar__foot { padding: 6px 16px 20px; }
.calendar__line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.7;
}
.calendar__dot { width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.calendar__btns { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.calendar__btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-rgb, 184, 137, 74), 0.5);
  background: var(--ivory);
  color: var(--wine);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
/* بطاقة «احفظ الموعد» من المنصّة: صفحة التقويم تحلّ محلّها وتأخذ زرّيها */
#page #da3wa-cal { display: none !important; }

/* ═══════════════ الفوانيس ═══════════════ */
.count { padding: 40px 14px 34px; overflow: hidden; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.lanterns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: clamp(6px, 2.6vw, 14px);
  max-width: 380px;
  margin: 6px auto 0;
}
.lantern { position: relative; display: grid; justify-items: center; cursor: pointer; }
.lantern::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  width: 180%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 206, 130, .38), rgba(255, 206, 130, 0));
  opacity: 0;
  transition: opacity 1.6s ease;
  transition-delay: calc(var(--n) * .45s + .3s);
  pointer-events: none;
  z-index: -1;
}
.count.in .lantern::before { opacity: 1; }
.lantern__box { position: relative; width: 84%; aspect-ratio: 80 / 150; }
.lantern:nth-child(2) .lantern__box, .lantern:nth-child(3) .lantern__box { width: 100%; }
.lantern__box::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -5px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 60, 30, .3), rgba(90, 60, 30, 0));
}
.lantern__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lantern__glow {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 70%;
  aspect-ratio: .62;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 214, 140, .9), rgba(255, 196, 110, .32) 55%, rgba(255, 196, 110, 0));
  opacity: 0;
  transition: opacity 1.4s ease;
  transition-delay: calc(var(--n) * .45s + .3s);
}
.count.in .lantern__glow { opacity: 1; animation: lantern-breath 3.2s ease-in-out calc(var(--n) * .45s + 1.6s) infinite; }
@keyframes lantern-breath { 50% { opacity: .72; } }
.flame {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 14%;
  aspect-ratio: .5;
  margin-top: -1px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 74%, #fff 0, #fff6cf 22%, #ffcc6a 52%, rgba(255, 150, 50, 0) 76%);
  box-shadow: 0 0 10px 4px rgba(255, 200, 100, .42), 0 0 30px 12px rgba(255, 210, 130, .2);
  transform: translate(-50%, -100%) scale(0);
  transform-origin: 50% 100%;
  opacity: 0;
}
.flame::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 34%;
  height: 30%;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(120, 160, 255, .55), rgba(120, 160, 255, 0) 70%);
}
.count.in .flame { animation: ignite-flame .9s var(--ease) forwards, flame 2.2s ease-in-out .9s infinite; animation-delay: calc(var(--n) * .45s), calc(var(--n) * .45s + .9s); }
.count.in .flame.flare { animation: flare 1s var(--ease), flame 2.2s ease-in-out 1s infinite; opacity: 1; transform: translate(-50%, -100%) scale(1); }
@keyframes ignite-flame { 0% { opacity: 0; transform: translate(-50%, -100%) scale(0); } 60% { opacity: 1; transform: translate(-50%, -100%) scale(1.25, 1.35); } 100% { opacity: 1; transform: translate(-50%, -100%) scale(1); } }
@keyframes flame {
  0%, 100% { opacity: 1; transform: translate(-50%, -100%) scale(1) skewX(0); }
  25% { opacity: 1; transform: translate(-50%, -100%) scale(.96, 1.06) skewX(2deg); }
  50% { opacity: 1; transform: translate(-50%, -100%) scale(1.04, .95) skewX(-1.5deg); }
  75% { opacity: 1; transform: translate(-50%, -100%) scale(.98, 1.04) skewX(1deg); }
}
@keyframes flare { 0% { opacity: 1; transform: translate(-50%, -100%) scale(1); } 30% { opacity: 1; transform: translate(-50%, -100%) scale(1.5, 1.8); } 100% { opacity: 1; transform: translate(-50%, -100%) scale(1); } }
.num { display: grid; justify-items: center; margin-top: 12px; }
.num b {
  font-family: var(--num);
  font-weight: 600;
  font-size: clamp(1.2rem, 5.8vw, 1.55rem);
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
  color: var(--wine);
}
.num small { margin-top: 3px; font-size: clamp(.6rem, 2.7vw, .72rem); font-weight: 700; color: var(--ink-sf); line-height: 1.2; }

/* ═══════════════ البرنامج: خيطٌ ذهبيّ بمصباحٍ لكل فقرة ═══════════════ */
.program { padding: 26px 18px 18px; }
.program__list {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.program__list::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 19px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
}
.program__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.program__dot {
  position: relative;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 6px 14px rgba(120, 80, 40, .1);
}
.program__dot::after {
  content: "";
  width: 10px;
  height: 13px;
  border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
  background: radial-gradient(circle at 50% 60%, #fffaf0 0, #ffe7ad 45%, #f2bd5c 100%);
  box-shadow: 0 0 9px 3px rgba(255, 196, 100, .5);
  animation: filament 5.6s linear infinite;
}
.program__item:nth-child(2n) .program__dot::after { animation-delay: -2.2s; }
.program__item:nth-child(3n) .program__dot::after { animation-delay: -3.7s; }
.program__time { display: block; font-size: .92rem; font-weight: 700; color: var(--gold); line-height: 1.5; }
.program__title { display: block; font-size: 1.08rem; font-weight: 700; color: var(--ink); line-height: 1.7; }

/* ═══════════════ المكان: قوس الورد كقوس الشرفة ═══════════════ */
.venue { padding: 30px 18px 18px; }
.venue__card {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  padding: 50px 22px 30px;
  text-align: center;
  border-radius: 170px 170px 22px 22px;
  background: linear-gradient(180deg, #fffefa, var(--paper) 40%, #fbf1e2);
  border: 1px solid var(--line);
  box-shadow: 0 22px 40px rgba(120, 80, 40, .12), inset 0 0 0 6px rgba(255, 255, 255, .7), inset 0 0 0 7px rgba(var(--gold-rgb, 184, 137, 74), 0.18);
}
.venue__roses {
  position: absolute;
  right: -24px;
  bottom: -30px;
  z-index: 2;
  width: 46%;
  height: auto;
  transform: rotate(180deg);
  pointer-events: none;
  filter: drop-shadow(0 -6px 10px rgba(90, 60, 30, .16));
}
.venue__arch svg { width: 56px; height: 44px; margin: 0 auto 6px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; }
.venue__arch circle { fill: var(--wine); stroke: none; }
.venue__k { display: block; font-size: .84rem; font-weight: 700; color: var(--gold); line-height: 1.6; }
.venue__name { margin: 2px 0 0; font-family: var(--title); font-weight: 700; font-size: clamp(1.45rem, 6.4vw, 1.75rem); color: var(--ink); line-height: 1.9; }
.venue__addr { margin: 0; font-size: 1rem; color: var(--ink-sf); line-height: 1.8; }
.venue__addr:empty { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a8384a, var(--wine) 55%, var(--wine-dp));
  color: #fffaf3;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(var(--wine-dp-rgb, 94, 22, 34), 0.26), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .18s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn--soft { background: var(--paper); color: var(--wine); border: 1px solid var(--line); box-shadow: 0 8px 18px rgba(120, 80, 40, .1); }

/* ═══════════════ التنويهات: مصباحٌ صغير لكل تنويه ═══════════════ */
.notes { padding: 24px 22px 6px; }
.notes__list { max-width: 380px; margin: 0 auto; padding: 0; list-style: none; }
.note {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.note:last-child { border-bottom: 0; }
.note::before {
  content: "";
  justify-self: center;
  width: 10px;
  height: 13px;
  border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
  background: radial-gradient(circle at 50% 60%, #fffaf0 0, #ffe7ad 45%, #f2bd5c 100%);
  box-shadow: 0 0 9px 3px rgba(255, 196, 100, .45);
}
.note p { margin: 0; font-size: 1.04rem; font-weight: 700; color: var(--ink); line-height: 1.8; }
.contact { padding: 18px 18px 30px; text-align: center; }
.contact__label { display: block; font-size: .86rem; font-weight: 700; color: var(--ink-sf); line-height: 1.6; }
.contact .btn { margin-top: 8px; }

/* أقسام المنصّة المحقونة فوق طبقة الغبار الذهبي */
#da3wa-rsvp, #da3wa-note, #da3wa-cal { position: relative; z-index: 2; }

@media (min-width: 720px) {
  body { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__name { clip-path: none; }
  .lt { opacity: 1; }
  .bokeh { display: none; }
}
