/* ============================================================
   «أعمدة روما» — أعمدة رومانية ورخام عاجي وياسمين شامي أبيض
   الألوان على :root (ألوان القالب في المحرر تبدّلها)، والزخارف SVG مضمّنة
   ============================================================ */
:root {
  --marble: #f7f1e6;
  --marble-deep: #ece2d0;
  --ivory: #fffdf8;
  --card: #fffbf3;
  --sand: #e6d8bf;
  --gold: #b8955a;
  --gold-deep: #8d703b;
  --gold-light: #e8d4a6;
  --olive: #6f7a45;
  --olive-deep: #4e5731;
  --ink: #483c29;
  --ink-soft: #7a6b53;
  --sun: #fff3d4;
  --line: rgba(var(--gold-rgb, 184, 149, 90), 0.36);
  --accent: var(--gold);
  --accent-ink: #fffdf8;
  --font-display: "Aref Ruqaa", serif;
  --font-serif: "Amiri", serif;
  --font-body: "Tajawal", sans-serif;
  --font-roman: "Cinzel", "Times New Roman", serif;
  --jasmine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cdefs%3E%3CradialGradient id='p' cx='50%' cy='92%' r='96%'%3E%3Cstop offset='0' stop-color='%23fff0c9'/%3E%3Cstop offset='.42' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23f1e9d8'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg fill='url(%23p)' stroke='%23d9cba8' stroke-width='1.4'%3E%3Cpath d='M0-4C10-10 14-32 4-44C1-47-3-47-6-43C-14-30-9-10 0-4Z'/%3E%3Cpath transform='rotate(72)' d='M0-4C10-10 14-32 4-44C1-47-3-47-6-43C-14-30-9-10 0-4Z'/%3E%3Cpath transform='rotate(144)' d='M0-4C10-10 14-32 4-44C1-47-3-47-6-43C-14-30-9-10 0-4Z'/%3E%3Cpath transform='rotate(216)' d='M0-4C10-10 14-32 4-44C1-47-3-47-6-43C-14-30-9-10 0-4Z'/%3E%3Cpath transform='rotate(288)' d='M0-4C10-10 14-32 4-44C1-47-3-47-6-43C-14-30-9-10 0-4Z'/%3E%3C/g%3E%3Ccircle r='6.5' fill='%23f1cd72'/%3E%3Ccircle r='2.8' fill='%23c1923a'/%3E%3C/svg%3E");
  --petal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -26 24 52'%3E%3Cpath d='M0 22C9 14 12-6 3-22C1-25-2-25-4-21C-12-6-9 14 0 22Z' fill='%23fffdf6' stroke='%23e3d6b9' stroke-width='1.2'/%3E%3C/svg%3E");
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='18' viewBox='0 0 22 18'%3E%3Cpath d='M0 16.5H22M0 1.5H22M4 16.5V5H17V13H9V9H13' fill='none' stroke='%23b8955a' stroke-width='1.3'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; }
/* مساحة شريط التمرير محجوزة دائماً: فكّ قفل التمرير عند نهاية الدخول كان يُظهره فجأة
   على الحاسوب فتنزاح الواجهة جانباً لحظة الانتقال */
html { background: var(--marble-deep); scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0, rgba(255, 248, 232, .85), transparent 36rem), var(--marble-deep);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
button, a, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* ============================================================
   طبقات مشتركة: ذرّات النور، والياسمين المتساقط
   ============================================================ */
.motes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.motes i {
  position: absolute;
  width: var(--s, 3px);
  height: var(--s, 3px);
  border-radius: 50%;
  background: radial-gradient(circle, #fffaf0 0, rgba(255, 233, 180, .9) 38%, rgba(232, 200, 130, 0) 72%);
  box-shadow: 0 0 8px 2px rgba(255, 236, 190, .5);
  opacity: 0;
  animation: moteFloat var(--t, 6s) ease-in-out var(--delay, 0s) infinite;
}

.jasmine-rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.jasmine-rain i,
.jasmine-drift i {
  position: absolute;
  top: -8%;
  left: var(--x, 50%);
  width: var(--w, 16px);
  height: var(--w, 16px);
  background: var(--jasmine) center / contain no-repeat;
  filter: drop-shadow(0 0 .6px rgba(120, 95, 50, .55)) drop-shadow(0 2px 3px rgba(110, 90, 50, .3));
  opacity: 0;
  animation: jasmineFall var(--t, 14s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}
.jasmine-rain i.is-petal,
.jasmine-drift i.is-petal { background-image: var(--petal); width: calc(var(--w, 16px) * .55); }
.jasmine-drift {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s ease;
}
body.is-open .jasmine-drift { opacity: .78; }

/* ============================================================
   البوّابة: أبواب الرخام المغلقة — والفيديو ينفتح عليها
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  /* ملصق الفيديو خلفيةً للبوّابة، فلا يُرى سوادٌ بين الضغطة وأول إطار */
  background: #efe6d6 url("/templates/yasmin/assets/entrance-poster.jpg") center / cover no-repeat;
  color: var(--ivory);
  isolation: isolate;
}
/* الانتقال «نحو النور»: الكاميرا تتقدّم نحو المدخل المتوهّج ونورٌ عاجيّ يملأ الشاشة،
   ثم يتلاشى النور عن الرواق — بلا تعريضٍ مزدوج لمشهدين مختلفين */
.gate.is-ending { opacity: 0; transition: opacity 1.1s ease .85s; }
.gate.is-ending .gate__video { transform: scale(1.16); transform-origin: 50% 46%; transition: opacity .35s ease, transform 1.3s cubic-bezier(.45, 0, .8, .35); }
.gate.is-finished { visibility: hidden; pointer-events: none; transition: none; }
.gate__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
  opacity: 0; transition: opacity .35s ease; }
.gate__video.is-live { opacity: 1; }
.gate__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(58, 44, 24, .66) 0%, rgba(58, 44, 24, .34) 22%, rgba(58, 44, 24, 0) 40%, rgba(58, 44, 24, 0) 64%, rgba(58, 44, 24, .36) 86%, rgba(58, 44, 24, .55) 100%);
  transition: opacity .8s ease;
  pointer-events: none;
}
.gate.is-playing .gate__shade { opacity: .25; }
/* خيط النور بين مصراعَي الباب: وعدٌ بما خلفه */
.gate__seam {
  position: absolute;
  top: 19%;
  bottom: 22%;
  left: 50%;
  z-index: 2;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: linear-gradient(180deg, transparent, #fff3cf 14%, #fffdf6 50%, #fff3cf 86%, transparent);
  box-shadow: 0 0 10px 3px rgba(255, 226, 150, .85), 0 0 34px 12px rgba(255, 214, 120, .45), 0 0 80px 26px rgba(255, 226, 160, .3);
  animation: seamGlow 3.2s ease-in-out infinite;
  transition: opacity .5s ease;
  pointer-events: none;
}
.gate__motes { z-index: 2; transition: opacity .6s ease; }
.gate__petals { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; transition: opacity .5s ease; }
.gate__petals i {
  position: absolute;
  top: -6%;
  left: var(--x, 50%);
  width: var(--w, 9px);
  height: calc(var(--w, 9px) * 2.1);
  background: var(--petal) center / contain no-repeat;
  opacity: 0;
  animation: jasmineFall var(--t, 12s) linear var(--delay, 0s) infinite;
}
/* للخيط حركةٌ تتحكّم بشفافيته، فلا يكفي ضبطها — نوقف الحركة نفسها */
.gate.is-loading .gate__seam,
.gate.is-playing .gate__seam { animation: none; opacity: 0; }
.gate.is-playing .gate__petals,
.gate.is-playing .gate__motes { opacity: 0; }
.gate__ui {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: max(2.1rem, calc(env(safe-area-inset-top) + 1.1rem)) 1.2rem max(1.8rem, calc(env(safe-area-inset-bottom) + 1rem));
  text-align: center;
  transition: opacity .5s ease;
}
.gate.is-playing .gate__ui { opacity: 0; pointer-events: none; }
.gate__top { display: grid; justify-items: center; gap: .35rem; text-shadow: 0 2px 14px rgba(40, 28, 12, .45); }
.gate__bismillah { margin: 0 0 .25rem; font-family: var(--font-serif); font-size: 1.08rem; color: #fbf1d8; }
.gate__kicker {
  margin: 0;
  font-size: .86rem;
  font-weight: 700;
  word-spacing: .12em;
  color: var(--gold-light);
}
.gate__names {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 .55rem;
  /* التدرّج يُقصّ على صندوق العنصر (background-clip: text)، وذيول الرقعة (س ن ي)
     تنزل تحته فتختفي — الحشوة توسّع مساحة التدرّج، والهامش السالب يردّ التخطيط كما كان */
  margin: calc(.1rem - .12em) -.3em -.38em;
  padding: .12em .3em .38em;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 10.5vw, 3.3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff8e6;
  background: linear-gradient(100deg, #fff8e6 30%, #f3dca4 45%, #fffaf0 52%, #f3dca4 60%, #fff8e6 75%) 0 0 / 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(40, 28, 12, .55));
}
.gate__amp { font-family: var(--font-roman); font-size: .52em; font-weight: 600; -webkit-text-fill-color: var(--gold-light); }
/* الاسمان لا يتّسعان بسطر واحد (stackGateNames): كل اسم بسطره و«&» بينهما بالوسط
   كما بالواجهة — بدل أن تعلق «&» بطرف السطر الأول */
.gate__names.is-stacked { flex-direction: column; align-items: center; }
.gate__names.is-stacked .gate__amp { line-height: 1.1; }
.gate__date { margin: .2rem 0 0; font-size: .95rem; font-weight: 500; color: #fbf0d6; }
/* — الدقّات الثلاث (كباب الفرح): البوّابة كلّها تُدقّ — */
.gate { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; transition: transform .16s ease; }
/* ارتجاجة الدقّة — والخيال ينتقل إلى الخشب قبل أن يُسمع */
.gate.is-knocked { transform: scale(1.012); }
.gate.is-loading, .gate.is-playing { cursor: default; }
.gate__action { display: grid; justify-items: center; gap: .75rem; width: min(100%, 330px); }
.gate__hint {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.06rem, 4vw, 1.24rem);
  font-weight: 700;
  line-height: 1.6;
  color: #fdf6e3;
  text-shadow: 0 2px 12px rgba(40, 28, 12, .85), 0 0 3px rgba(40, 28, 12, .6);
}
.knocks { display: flex; justify-content: center; gap: 1rem; }
/* ثلاث زهرات مطويّة تتفتّح زهرةً مع كل دقّة */
.knocks__dot {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  opacity: .5;
  transform: scale(.66) rotate(-24deg);
  filter: grayscale(.55) drop-shadow(0 1px 4px rgba(40, 28, 12, .6));
  transition: opacity .3s ease, transform .45s cubic-bezier(.3, 1.6, .5, 1), filter .3s ease;
}
.knocks__dot svg { width: 100%; height: 100%; }
.knocks__dot.is-hit { opacity: 1; transform: scale(1.12) rotate(36deg); filter: grayscale(0) drop-shadow(0 0 10px rgba(255, 226, 150, .95)); }
/* زرٌّ لمن يدقّ بلوحة المفاتيح أو قارئ الشاشة — مخفيّ عن العين، ويظهر حين يُركَّز عليه */
.gate__knock {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
}
.gate__knock:focus-visible {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  padding: .5rem 1.1rem;
  border: 1px solid rgba(var(--gold-light-rgb, 232, 212, 166), 0.9);
  border-radius: 999px;
  background: rgba(255, 252, 244, .92);
  color: var(--ink);
  font: 700 .95rem var(--font-body);
}
/* نورٌ يتسرّب من بين المصراعين مع كل دقّة — يشتدّ دقّةً بعد دقّة (--k) */
.gate__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 22% 40% at 50% 47%, rgba(255, 246, 214, .95), rgba(255, 226, 150, .45) 45%, rgba(255, 226, 150, 0) 100%);
  opacity: 0;
  pointer-events: none;
}
.gate__glow.is-on { animation: knockGlow .75s ease-out; }
@keyframes knockGlow { 0% { opacity: 0; } 18% { opacity: calc(.32 + var(--k, 1) * .2); } 100% { opacity: 0; } }
.gate__taps { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.gate__taps i {
  position: absolute;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid rgba(255, 238, 196, .95);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 226, 150, .7);
  animation: tapRing .7s ease-out forwards;
}
@keyframes tapRing { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(3.4); } }
.gate__progress { width: 46%; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255, 248, 230, .35); }
.gate__progress span { display: block; width: 8%; height: 100%; background: linear-gradient(90deg, var(--gold-light), #fff); transition: width .4s ease; }
.gate.is-ready .gate__progress { opacity: 0; transition: opacity .6s ease .4s; }
/* النور طبقتان بملء الشاشة بلا تحجيم (طبقةٌ مصغّرة تُظهر حوافها مستطيلاً وسط الانتقال):
   وهجُ المدخل يشتدّ أولاً، ثم يغمر العاجيّ الشاشة كلّها */
.gate__flash {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: radial-gradient(ellipse 62% 44% at 50% 46%, #fffdf7 0, rgba(255, 250, 239, .92) 42%, rgba(255, 248, 234, 0) 100%);
  opacity: 0;
  pointer-events: none;
}
.gate__flash::after { content: ""; position: absolute; inset: 0; background: #fffaef; opacity: 0; }
.gate.is-ending .gate__flash { animation: glowIn .55s ease-in forwards; }
.gate.is-ending .gate__flash::after { animation: bloomIn .75s cubic-bezier(.4, 0, .6, 1) .25s forwards; }
@media (prefers-reduced-motion: no-preference) {
  .gate-in { opacity: 0; transform: translateY(10px); animation: gateIn .9s ease forwards; }
  .gate__top .gate-in:nth-child(1) { animation-delay: .15s; }
  .gate__top .gate-in:nth-child(2) { animation-delay: .32s; }
  .gate__names.gate-in { animation: gateIn .9s ease .48s forwards, shimmer 6.5s linear 1.4s infinite; }
  .gate__top .gate-in:nth-child(4) { animation-delay: .66s; }
  .gate__action.gate-in { animation-delay: 1s; }
}

/* ============================================================
   جسم الدعوة
   ============================================================ */
.invite {
  position: relative;
  width: min(100%, 580px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  background: linear-gradient(180deg, var(--marble), #f3ebdd 60%, var(--marble));
  box-shadow: 0 0 80px rgba(80, 62, 32, .22);
  transition: opacity .35s ease;
}
/* «مُجهَّزة»: الدعوة تُرسم تحت البوّابة المعتمة من لحظة الضغطة، فلا يقع رسمها الأول
   (الرخام، الكرمة، الأقسام) في منتصف الانتقال */
.invite.is-staged,
.invite.visible { visibility: visible; opacity: 1; }
/* عروق الرخام وحبيباته — خفيفة كي لا تنافس النص */
.invite::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='v' x='0' y='0'%3E%3CfeTurbulence type='turbulence' baseFrequency='.0035 .011' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .55 0 0 0 0 .47 0 0 0 0 .36 -3 0 0 0 1.32'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23v)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  background-size: 520px 520px, 240px 240px;
  mix-blend-mode: multiply;
  opacity: .12;
  pointer-events: none;
}
.invite > * { position: relative; z-index: 1; }

/* ============================================================
   الواجهة: الرواق نفسه
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: #f3eadb;
  color: var(--ink);
}
.hero__bg { position: absolute; inset: -14px; }
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  transform: scale(1.06);
}
/* الفيديو فوق الصورة بالإطار نفسه والتنفّس نفسه؛ يظهر عند أول إطار معروض فقط —
   والصورة أول إطاراته، فلا قفزة بينهما */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  transform: scale(1.06);
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.hero__video.is-live { opacity: 1; }
.invite.visible .hero__image,
.invite.visible .hero__video { animation: heroBreath 20s cubic-bezier(.2, .7, .2, 1) both; }
/* أشعّة الشمس تنساب بين الأعمدة */
.hero__rays { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; mix-blend-mode: soft-light; }
.hero__rays i {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 34%;
  height: 120%;
  background: linear-gradient(180deg, rgba(255, 248, 225, .95), rgba(255, 240, 200, .35) 55%, transparent 85%);
  filter: blur(14px);
  transform-origin: 50% 0;
  opacity: .7;
  animation: raySway 11s ease-in-out infinite alternate;
}
.hero__rays i:nth-child(1) { transform: translateX(-120%) rotate(16deg); animation-delay: -2s; }
.hero__rays i:nth-child(2) { width: 22%; transform: translateX(-50%) rotate(2deg); animation-duration: 13s; }
.hero__rays i:nth-child(3) { transform: translateX(22%) rotate(-14deg); animation-delay: -6s; animation-duration: 9s; }
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 56% 36% at 50% 33%, rgba(255, 251, 240, .72), rgba(255, 251, 240, .28) 62%, transparent 82%),
    linear-gradient(180deg, rgba(255, 250, 238, .18), transparent 40%, transparent 84%, var(--marble) 100%);
  pointer-events: none;
}
.hero__scent { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.hero__scent svg { position: absolute; width: 70px; height: 150px; overflow: visible; }
.hero__scent path {
  fill: none;
  stroke: rgba(255, 253, 245, .85);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(255, 245, 220, .9));
  stroke-dasharray: 60 260;
  stroke-dashoffset: 300;
  opacity: 0;
  animation: scentRise var(--t, 7s) ease-in-out var(--delay, 0s) infinite;
}
.hero__motes { z-index: 3; }
.hero .jasmine-rain { z-index: 4; transition: opacity 1.2s ease; }
.hero.has-live-video .jasmine-rain { opacity: 0; }
.hero__burst { position: absolute; inset: 0; z-index: 7; overflow: hidden; pointer-events: none; }
.hero__burst i {
  position: absolute;
  width: var(--w, 18px);
  height: var(--w, 18px);
  margin: calc(var(--w, 18px) / -2) 0 0 calc(var(--w, 18px) / -2);
  background: var(--jasmine) center / contain no-repeat;
  /* حدٌّ دافئ رفيع: الياسمين الأبيض يذوب في سماء الرواق الفاتحة بدونه */
  filter: drop-shadow(0 0 .8px rgba(110, 85, 40, .7)) drop-shadow(0 4px 6px rgba(90, 70, 30, .38));
  animation: burstFly var(--t, 2.4s) cubic-bezier(.2, .7, .3, 1) forwards;
}
.hero__burst i.is-petal { background-image: var(--petal); width: calc(var(--w, 18px) * .5); }
.hero__burst b {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe8 0, #f0c25e 42%, rgba(224, 170, 70, 0) 72%);
  animation: sparkFly .9s ease-out forwards;
}
.hero__copy {
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: center;
  width: min(84%, 380px);
  padding: max(4.3rem, calc(env(safe-area-inset-top) + 3rem)) 0 0;
  text-align: center;
}
.hero__bismillah { margin: 0; font-family: var(--font-serif); font-size: 1.05rem; color: var(--gold-deep); text-shadow: 0 0 10px #fffbf0, 0 0 18px rgba(255, 251, 240, .95), 0 0 3px #fffbf0; }
.hero__kicker { margin: .55rem 0 0; font-size: .84rem; font-weight: 700; word-spacing: .12em; color: var(--olive-deep); text-shadow: 0 0 10px rgba(255, 251, 240, .95); }
.laurel { display: block; width: 190px; margin: .45rem 0 .1rem; }
.laurel svg { display: block; width: 100%; height: auto; overflow: visible; }
.laurel__stem { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; }
.hero__names { display: grid; justify-items: center; }
.hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 15.5vw, 4.7rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(255, 252, 242, .98), 0 0 4px rgba(255, 252, 242, .95), 0 2px 1px rgba(255, 255, 255, .6);
}
.hero__amp {
  margin: -.1rem 0 -.2rem;
  font-family: var(--font-roman);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255, 251, 240, .95);
}
/* «أسماء أنعم» (content.namesSoft — دعوات بعينها بلا خانة بالمحرر): الرقعة بوزنها
   الرفيع وحجم أصغر، فالأسماء الطويلة بالألقاب (د.فلان فلان) تأخذ سطراً لكلٍّ بدل أربعة */
.names-soft .hero__name { font-size: clamp(2.1rem, 9.6vw, 3.1rem); font-weight: 400; line-height: 1.3; }
.names-soft .gate__names { font-size: clamp(1.9rem, 8.6vw, 2.7rem); font-weight: 400; }
.hero__sub { max-width: 30ch; margin: .75rem 0 0; font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.7; color: var(--ink); text-shadow: 0 0 12px rgba(255, 251, 240, .98), 0 0 3px rgba(255, 251, 240, .9); }
/* أصحاب الدعوة سطرٌ واحد بعرض الواجهة يصغر خطّه حتى يتّسع (fitHosts)، و«يتشرّفان …» تحته */
.hero__sub.has-hosts { width: 100%; min-width: 0; max-width: none; }
.hero__hosts { display: block; white-space: nowrap; }
.hero__hosts.is-wrapped { white-space: normal; text-wrap: balance; }
.hero__honor { display: block; max-width: 30ch; margin-inline: auto; text-wrap: balance; }
.hero__date { margin: .5rem 0 0; font-size: 1rem; font-weight: 700; color: var(--gold-deep); text-shadow: 0 0 12px rgba(255, 251, 240, .98); }
/* ⚠️ لا letter-spacing على نصّ عربي أو كردي أبداً: يفصل الحروف المتّصلة فتظهر الكلمة
   مقطّعة (شكوى كرار). التسميات الصغيرة تكتفي بالحجم والوزن، والتباعد للإنكليزية وحدها */
html[lang="en"] .gate__kicker,
html[lang="en"] .hero__kicker,
html[lang="en"] .section-eyebrow,
html[lang="en"] .family__label,
html[lang="en"] .detail-row small { letter-spacing: .16em; }
.roman {
  margin: .3rem 0 0;
  font-family: var(--font-roman);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .34em;
  color: var(--gold);
}
.hero__roman { text-shadow: 0 0 10px rgba(255, 251, 240, .98); }
/* «نص الواجهة فاتح» (content.heroTextLight — دعوات بعينها بلا خانة بالمحرر): صورة زبون
   عتّمها بالداكن من «استوديو الصورة» يصير خلفها رمادياً فلا يُقرأ النص الداكن — النص
   يصير كريمياً بظلّ بنّي، وتسقط غلالة الكريم الوسطى التي تعكّر الصورة خلفه (يبقى
   تلاشي الأسفل إلى الرخام) */
.hero-text-light .hero__veil { background: linear-gradient(180deg, transparent 84%, var(--marble) 100%); }
.hero-text-light .hero__name { color: #fff7e6; text-shadow: 0 2px 14px rgba(28, 18, 6, .8), 0 0 3px rgba(28, 18, 6, .6); }
.hero-text-light .hero__amp { color: #f3dca4; text-shadow: 0 0 10px rgba(28, 18, 6, .75); }
.hero-text-light .hero__sub { color: #f8eed8; text-shadow: 0 1px 8px rgba(28, 18, 6, .9), 0 0 2px rgba(28, 18, 6, .8); }
.hero-text-light .hero__date,
.hero-text-light .hero__bismillah { color: #f1d58f; text-shadow: 0 1px 8px rgba(28, 18, 6, .85), 0 0 2px rgba(28, 18, 6, .7); }
.hero-text-light .hero__roman { color: #ecd59c; text-shadow: 0 1px 8px rgba(28, 18, 6, .85); }
.hero-text-light .hero__kicker { color: #f8eed8; text-shadow: 0 1px 8px rgba(28, 18, 6, .85); }
.hero__hint {
  position: absolute;
  bottom: max(5.4rem, calc(env(safe-area-inset-bottom) + 4.6rem));
  left: 50%;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding-block: .3rem;
  padding-inline: .3rem 1.15rem;
  border: 1px solid rgba(var(--gold-rgb, 184, 149, 90), 0.55);
  border-radius: 999px;
  background: rgba(255, 252, 244, .9);
  box-shadow: 0 8px 22px rgba(80, 60, 30, .18);
  color: var(--ink);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
}
.hero__hint.hero-reveal { transform: translate(-50%, 14px); }
.hero__hint.hero-reveal.is-visible { transform: translateX(-50%); }
/* خانة الوردة: دائرة ذهبية بياسمينة بيضاء، تنبض بحلقةٍ تتّسع حتى أول لمسة */
.hero__hint-bloom {
  position: relative;
  flex: none;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  background: var(--jasmine) center / 70% no-repeat, radial-gradient(circle at 34% 28%, var(--gold-light), var(--gold) 62%, var(--gold-deep));
  box-shadow: inset 0 0 0 1.5px rgba(var(--ivory-rgb, 255, 253, 248), 0.7), 0 3px 10px rgba(80, 60, 30, .3);
  transition: scale .18s ease;
  animation: bloomNudge 2.8s ease-in-out 2.4s infinite;
}
.hero__hint-bloom::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid rgba(var(--gold-rgb, 184, 149, 90), .75);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: bloomRing 2.8s ease-out 2.4s infinite;
}
.hero__hint:active .hero__hint-bloom { scale: .88; }
.hero__hint.is-done .hero__hint-bloom,
.hero__hint.is-done .hero__hint-bloom::after { animation: none; }
.hero__scroll {
  position: absolute;
  bottom: max(1.2rem, calc(env(safe-area-inset-bottom) + .7rem));
  left: 50%;
  z-index: 6;
  display: grid;
  justify-items: center;
  gap: .3rem;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 500;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__scroll.hero-reveal { transform: translate(-50%, 14px); }
.hero__scroll.hero-reveal.is-visible { transform: translateX(-50%); }
.hero__scroll-line { display: block; width: 1px; height: 26px; background: linear-gradient(180deg, var(--gold), transparent); animation: scrollLine 2.2s ease-in-out infinite; }

/* ظهور الواجهة بالتدريج بعد الذوبان */
.hero-reveal { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 1.1s ease, transform 1.1s ease, filter 1.1s ease; }
.hero-reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ============================================================
   الأقسام
   ============================================================ */
.page {
  position: relative;
  padding: 4.4rem 1.4rem;
  text-align: center;
}
/* إفريز «المفتاح الإغريقي» بين الأقسام — توقيع العمارة الرومانية */
.page + .page::before,
.sundial-sec + .page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(74%, 380px);
  height: 18px;
  background: var(--meander) center / 22px 18px repeat-x;
  opacity: .55;
  transform: translate(-50%, -50%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.section-heading { position: relative; z-index: 2; margin-bottom: 2rem; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .4rem;
  font-size: .84rem;
  font-weight: 700;
  word-spacing: .1em;
  color: var(--gold-deep);
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--jasmine) center / contain no-repeat;
  opacity: .95;
}
.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--olive-deep);
}
.orn { position: absolute; z-index: 0; pointer-events: none; user-select: none; }
.orn--sprig { top: -.6rem; inset-inline-start: -2.2rem; width: 150px; opacity: .92; transform-origin: 30% 0; animation: sway 7s ease-in-out infinite alternate; }
.orn--bush { bottom: -2.4rem; inset-inline-end: -1.2rem; width: 92px; opacity: .95; transform-origin: 70% 100%; animation: sway 8s ease-in-out -3s infinite alternate; }

/* — القوس: آية الدعوة ونصّها تحت قنطرة تتسلّقها كرمة الياسمين — */
.arch {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 1.4rem auto 0;
  padding-top: 1.2rem;
}
.arch__vine {
  position: absolute;
  top: .15rem;
  left: -6%;
  z-index: 3;
  width: 112%;
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.arch__inner {
  position: relative;
  padding: 5.6rem 2rem 2.3rem;
  border: 1px solid var(--line);
  border-radius: 200px 200px 20px 20px / 160px 160px 20px 20px;
  background: linear-gradient(180deg, rgba(255, 253, 247, .96), rgba(250, 244, 233, .96));
  box-shadow: inset 0 0 0 7px rgba(255, 253, 247, .9), inset 0 0 0 8px var(--line), 0 18px 40px rgba(90, 70, 35, .12);
}
.vine__stem { fill: none; stroke: var(--olive); stroke-width: 2.2; stroke-linecap: round; }
.vine .vine__stem { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.vine .vine__leaf, .vine .vine__flower { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; }
.vine.is-grown .vine__stem { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s cubic-bezier(.4, .1, .3, 1); }
.vine.is-grown .vine__leaf { opacity: 1; transform: scale(1); transition: opacity .5s ease var(--d, 0s), transform .7s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0s); }
.vine.is-grown .vine__flower { opacity: 1; transform: scale(1) rotate(var(--rot, 0deg)); transition: opacity .5s ease var(--d, 0s), transform 1s cubic-bezier(.3, 1.7, .5, 1) var(--d, 0s); }
.portrait {
  width: min(62%, 210px);
  margin: 0 auto 1.5rem;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px 999px 18px 18px;
  background: var(--ivory);
  box-shadow: 0 12px 28px rgba(90, 70, 35, .16);
}
.portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 13px 13px; }
.verse { margin: 0; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; line-height: 1.95; color: var(--olive-deep); }
.divider { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 1.1rem auto; }
.divider i { width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider i:last-child { transform: scaleX(-1); }
.divider svg { width: 26px; height: 26px; animation: slowSpin 22s linear infinite; }
.invitation-text { margin: 0; font-family: var(--font-serif); font-size: 1.14rem; line-height: 2.05; color: var(--ink); text-wrap: pretty; }

/* — أعمدة البيت: الأهل بين عمودين — */
.families { padding-inline: 4.6rem; }
.families .section-heading { margin-inline: -3.4rem; }
/* العمودان يبدآن تحت العنوان كي لا يزاحماه */
.families__column {
  position: absolute;
  top: 8.2rem;
  z-index: 0;
  width: auto;
  height: calc(100% - 9rem);
  aspect-ratio: 170 / 801;
  object-fit: contain;
  opacity: .95;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 90%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 90%, transparent);
}
.families__column--start { inset-inline-start: -.2rem; }
.families__column--end { inset-inline-end: -.2rem; transform: scaleX(-1); }
.families__grid { position: relative; z-index: 1; display: grid; justify-items: center; gap: .9rem; max-width: 360px; margin: 0 auto; }
.family {
  position: relative;
  width: 100%;
  padding: 2.4rem 1.2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px 6px 16px 16px;
  background:
    repeating-linear-gradient(90deg, rgba(var(--gold-rgb, 184, 149, 90), 0.06) 0 2px, transparent 2px 15px),
    linear-gradient(180deg, var(--ivory), #f8f1e3);
  box-shadow: 0 14px 30px rgba(90, 70, 35, .1), inset 0 0 0 5px rgba(255, 253, 247, .8), inset 0 0 0 6px rgba(var(--gold-rgb, 184, 149, 90), 0.2);
}
.family__capital {
  position: absolute;
  top: -1.05rem;
  left: 50%;
  width: 132px;
  height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 36'%3E%3Cg fill='none' stroke='%23b8955a' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='6' y='3' width='128' height='6' rx='2' fill='%23f6eedf'/%3E%3Cpath d='M22 9H118'/%3E%3Cpath d='M30 13Q70 30 110 13'/%3E%3Ccircle cx='20' cy='20' r='11' fill='%23fbf6ec'/%3E%3Cpath d='M20 20m-6 0a6 6 0 1 1 6 6a3 3 0 1 1 -3-3'/%3E%3Ccircle cx='120' cy='20' r='11' fill='%23fbf6ec'/%3E%3Cpath d='M120 20m6 0a6 6 0 1 0 -6 6a3 3 0 1 0 3-3'/%3E%3Cpath d='M48 18q3 6 6 0M64 21q3 6 6 0M80 18q3 6 6 0' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateX(-50%);
}
.family__label { display: block; margin-bottom: .45rem; font-size: .84rem; font-weight: 700; color: var(--gold-deep); }
/* كل سطرٍ من الأهل كتلة، وما يطول منه يُوزَّن فلا تسقط كلمة وحدها في سطر */
.family__names { margin: 0; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; line-height: 1.75; color: var(--ink); text-wrap: balance; }
.family__line { display: block; }
/* سطر النسخ الواسع محسوبٌ لتشكيل العربية وذيولها؛ اللاتينية فيه تتبعثر أسطراً متباعدة */
html[lang="en"] .verse { line-height: 1.55; }
html[lang="en"] .invitation-text { line-height: 1.75; }
html[lang="en"] .family__names { line-height: 1.45; }
.families__heart { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: radial-gradient(circle, #fffdf6, rgba(255, 249, 234, 0) 70%); }
.families__heart svg { width: 34px; height: 34px; animation: slowSpin 18s linear infinite; filter: drop-shadow(0 2px 4px rgba(110, 90, 50, .2)); }

/* — المِزولة: الشمس تعدّ لنا الأيام — */
.sundial-sec {
  position: relative;
  padding: 4.6rem 1.3rem 4.4rem;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 30%, rgba(255, 246, 220, .95), transparent 70%),
    linear-gradient(180deg, #f5ecdc, #f1e5cf 50%, #f5ecdc);
}
.sundial-sec__light {
  position: absolute;
  inset: -30% -40%;
  background: conic-gradient(from 200deg at 50% 0, transparent 0 8deg, rgba(255, 248, 225, .7) 12deg, transparent 18deg 26deg, rgba(255, 248, 225, .55) 30deg, transparent 36deg 360deg);
  filter: blur(10px);
  opacity: .8;
  animation: raySway 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.sundial { position: relative; z-index: 1; width: min(64vw, 236px); margin: -.4rem auto 1.4rem; filter: drop-shadow(0 16px 26px rgba(90, 70, 35, .2)); }
.sundial svg { display: block; width: 100%; height: auto; overflow: visible; }
.sundial__numerals text { font-family: var(--font-roman); font-size: 12px; font-weight: 600; fill: var(--gold-deep); text-anchor: middle; dominant-baseline: central; }
.sundial__shadow { transform-origin: 0 0; transition: transform .8s cubic-bezier(.4, 1.6, .5, 1); }
.countdown { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; max-width: 380px; margin: 0 auto; }
.countdown div {
  display: grid;
  gap: .15rem;
  padding: .85rem .2rem .7rem;
  border: 1px solid var(--line);
  border-radius: 60px 60px 8px 8px;
  background: linear-gradient(180deg, var(--ivory), #f1e8d6);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .9), inset 0 -3px 8px rgba(140, 110, 60, .1), 0 10px 22px rgba(90, 70, 35, .12);
}
.countdown strong { font-family: var(--font-roman); font-size: 1.65rem; font-weight: 600; line-height: 1.1; color: var(--olive-deep); text-shadow: 0 1px 0 #fff; }
.countdown span { font-size: .76rem; font-weight: 700; color: var(--gold-deep); }
.countdown__arrived { position: relative; z-index: 1; margin: 0; font-family: var(--font-display); font-size: 1.7rem; color: var(--olive-deep); }
.sundial-sec__roman { position: relative; z-index: 1; margin-top: 1.4rem; font-size: .9rem; }
.sundial-sec__motes { z-index: 0; }

/* — لوح الرخام: الموعد والمكان — */
.tablet {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 1.9rem 1.4rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--ivory), #f6eee0);
  box-shadow: 0 18px 40px rgba(90, 70, 35, .12), inset 0 0 0 6px rgba(255, 253, 247, .85), inset 0 0 0 7px rgba(var(--gold-rgb, 184, 149, 90), 0.22);
  text-align: start;
}
.tablet__nail { position: absolute; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6e2ad, var(--gold) 60%, var(--gold-deep)); }
.tablet__nail--a { inset-inline-start: 12px; }
.tablet__nail--b { inset-inline-end: 12px; }
.detail-row { display: flex; align-items: flex-start; gap: .9rem; }
.detail-row__icon { display: grid; flex: none; width: 2.7rem; height: 2.7rem; place-items: center; border-radius: 50%; background: rgba(var(--gold-rgb, 184, 149, 90), 0.12); box-shadow: inset 0 0 0 1px var(--line); }
.detail-row__icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--gold-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.detail-row small { display: block; font-size: .8rem; font-weight: 700; color: var(--gold-deep); }
.detail-row strong { display: block; margin-top: .15rem; font-family: var(--font-serif); font-size: 1.18rem; color: var(--ink); }
.detail-row p { margin: .15rem 0 0; font-size: .92rem; color: var(--ink-soft); }
.tablet__rule { display: block; height: 1px; margin: 1.2rem 0; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.gold-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.4rem;
  padding: .85rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #cfb276, var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 10px 22px rgba(var(--gold-deep-rgb, 141, 112, 59), 0.3), inset 0 1px 0 rgba(255, 255, 255, .45);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

/* — البرنامج: كرمة ياسمين تتسلّق مع التمرير — */
.timeline-wrap { position: relative; z-index: 1; max-width: 440px; margin: 0 auto; }
.timeline__vine { position: absolute; top: 0; bottom: 0; inset-inline-start: calc(5.3rem + 1.25rem - 22px); width: 44px; height: 100%; overflow: visible; pointer-events: none; }
.timeline__vine .vine__leaf, .timeline__vine .vine__flower { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: opacity .4s ease, transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.timeline__vine .is-on { opacity: 1; transform: scale(1) rotate(var(--rot, 0deg)); }
.timeline__track-bg { fill: none; stroke: rgba(var(--gold-rgb, 184, 149, 90), 0.28); stroke-width: 1.2; stroke-dasharray: 2 6; }
.timeline { position: relative; display: grid; gap: 1.15rem; margin: 0; padding: .4rem 0; list-style: none; }
.timeline__item { display: grid; grid-template-columns: 5.3rem 2.5rem minmax(0, 1fr); align-items: center; }
.timeline__time { font-size: .92rem; font-weight: 700; color: var(--gold-deep); text-align: center; }
.timeline__dot { position: relative; z-index: 2; display: grid; width: 2.5rem; height: 2.5rem; place-items: center; }
.timeline__dot::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--gold); border-radius: 50%; background: var(--ivory); transition: transform .5s ease, opacity .4s ease; }
.timeline__dot svg { position: absolute; width: 2.3rem; height: 2.3rem; transform: scale(0) rotate(-90deg); transition: transform .8s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 2px 4px rgba(110, 90, 50, .25)); }
.timeline__item.is-passed .timeline__dot::before { transform: scale(0); opacity: 0; }
.timeline__item.is-passed .timeline__dot svg { transform: scale(1) rotate(0deg); }
.timeline__card {
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--ivory), #f8f0e2);
  box-shadow: 0 10px 22px rgba(90, 70, 35, .09);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-align: start;
  transition: transform .5s ease, box-shadow .5s ease;
}
.timeline__item.is-passed .timeline__card { box-shadow: 0 12px 26px rgba(90, 70, 35, .14), inset 3px 0 0 var(--gold-light); }

/* — التنويهات — */
.notes__list { position: relative; z-index: 1; display: grid; gap: .75rem; max-width: 420px; margin: 0 auto; padding: 0; list-style: none; }
.notes__item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, .9);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.8;
  text-align: start;
}
.notes__mark { flex: none; width: 20px; height: 20px; margin-top: .3rem; background: var(--jasmine) center / contain no-repeat; }

/* — البرعم: اضغطوا مطوّلاً حتى يتفتّح السرّ — */
.bud { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1rem; }
.bud__button {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf7 0, #f6eddc 60%, #efe3cc 100%);
  box-shadow: 0 18px 40px rgba(90, 70, 35, .18), inset 0 0 0 1px var(--line);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.bud__button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.bud__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.bud__ring circle { fill: none; stroke-width: 3; }
.bud__ring-track { stroke: rgba(var(--gold-rgb, 184, 149, 90), 0.18); }
.bud__ring-fill { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: calc(339.3 * (1 - var(--open, 0))); }
.bud__flower { width: 112px; height: 112px; overflow: visible; filter: drop-shadow(0 4px 6px rgba(110, 90, 50, .22)); }
.bud__petal {
  transform-box: view-box;
  transform-origin: 0 0;
  transform: rotate(calc(var(--r) * var(--open, 0) + 6deg * (1 - var(--open, 0)))) scale(calc(.62 + .38 * var(--open, 0)), calc(.92 + .08 * var(--open, 0)));
}
.bud__calyx { opacity: calc(1 - var(--open, 0)); transform-box: view-box; transform-origin: 0 0; transform: scale(calc(1 - .4 * var(--open, 0))); }
.bud__blush { opacity: calc((1 - var(--open, 0)) * .7); }
.bud__heart { transform-box: view-box; transform-origin: 0 0; transform: scale(var(--open, 0)); }
.bud:not(.is-open) .bud__button { animation: budBreath 2.6s ease-in-out infinite; }
.bud__message { max-width: 320px; opacity: 0; transform: translateY(8px); filter: blur(5px); transition: opacity .9s ease .2s, transform .9s ease .2s, filter .9s ease .2s; }
.bud.is-open .bud__message { opacity: 1; transform: none; filter: none; }
.bud__whisper { margin: 0; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; line-height: 1.8; color: var(--olive-deep); }
.bud__names { margin: .3rem 0 0; font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-deep); }
.bud__caption { position: relative; z-index: 1; margin: 0; font-size: .86rem; font-weight: 500; color: var(--ink-soft); }

/* احتفال بعد تأكيد الحضور: زخّة ياسمين */
.celebrate { position: fixed; inset: 0; z-index: 2000; overflow: hidden; pointer-events: none; }
.celebrate i {
  position: absolute;
  top: -6%;
  left: var(--x, 50%);
  width: var(--w, 18px);
  height: var(--w, 18px);
  background: var(--jasmine) center / contain no-repeat;
  animation: celebrateFall var(--t, 3s) cubic-bezier(.3, .2, .5, 1) var(--delay, 0s) forwards;
}
.celebrate i.is-petal { background-image: var(--petal); width: calc(var(--w, 18px) * .5); }

.music-button {
  position: fixed;
  right: max(15px, env(safe-area-inset-right));
  bottom: max(15px, calc(env(safe-area-inset-bottom) + 8px));
  z-index: 80;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(var(--gold-rgb, 184, 149, 90), 0.45);
  border-radius: 50%;
  background: rgba(255, 252, 244, .92);
  box-shadow: 0 10px 28px rgba(60, 45, 20, .22);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.15rem;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

/* ظهور الأقسام */
.reveal-section { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .9s ease, transform .9s ease, filter .9s ease; }
.reveal-section.is-visible { opacity: 1; transform: none; filter: none; }

/* الأقسام المحقونة من المنصّة (تأكيد الحضور، التقويم، الذكريات) */
#da3wa-music { display: none !important; }
.invite > section[dir="rtl"], .invite > section[dir="ltr"] { position: relative; z-index: 4; }

@keyframes moteFloat { 0%, 100% { opacity: 0; transform: translateY(10px) scale(.6); } 45% { opacity: .95; transform: translateY(-8px) scale(1.15); } 70% { opacity: .5; } }
@keyframes jasmineFall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) rotateY(0deg); opacity: 0; }
  7% { opacity: .95; }
  50% { transform: translate3d(var(--drift, 30px), 56vh, 0) rotate(200deg) rotateY(160deg); }
  92% { opacity: .85; }
  100% { transform: translate3d(calc(var(--drift, 30px) * -.6), 112vh, 0) rotate(420deg) rotateY(340deg); opacity: 0; }
}
@keyframes burstFly {
  0% { transform: translate(0, 0) scale(.2) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  45% { transform: translate(var(--dx, 0px), var(--dy, -60px)) scale(1) rotate(calc(var(--r, 180deg) * .5)); }
  100% { transform: translate(calc(var(--dx, 0px) * 1.25), calc(var(--dy, -60px) + var(--fall, 220px))) scale(.9) rotate(var(--r, 180deg)); opacity: 0; }
}
@keyframes sparkFly { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(.2); opacity: 0; } }
@keyframes scentRise { 0% { stroke-dashoffset: 300; opacity: 0; transform: translateY(10px); } 20% { opacity: .9; } 75% { opacity: .55; } 100% { stroke-dashoffset: 60; opacity: 0; transform: translateY(-40px); } }
@keyframes seamGlow { 0%, 100% { opacity: .55; transform: translateX(-50%) scaleY(.94); } 50% { opacity: 1; transform: translateX(-50%) scaleY(1); } }
@keyframes raySway { from { opacity: .45; translate: -3% 0; } to { opacity: .85; translate: 3% 0; } }
@keyframes gateIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 110% 0; } to { background-position: -110% 0; } }
@keyframes glowIn { to { opacity: 1; } }
@keyframes bloomIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroBreath { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes scrollLine { 0%, 100% { opacity: .3; transform: scaleY(.45); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes bloomRing { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.55); } }
@keyframes bloomNudge { 0%, 62%, 100% { transform: scale(1) rotate(0deg); } 8% { transform: scale(.9) rotate(-10deg); } 18% { transform: scale(1.08) rotate(14deg); } 30% { transform: scale(1) rotate(0deg); } }
@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes budBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes celebrateFall { to { transform: translateY(112vh) rotate(var(--r, 360deg)); opacity: .6; } }

/* الشاشات العريضة: الدعوة عمود أوسط، والرواق نفسه ضبابياً على الجانبين */
@media (min-width: 640px) {
  body::before {
    content: "";
    position: fixed;
    inset: -40px;
    z-index: -1;
    background: url("/templates/yasmin/assets/hero.webp") center / cover no-repeat;
    filter: blur(28px) saturate(1.05);
    opacity: .55;
  }
  .families { padding-inline: 6.4rem; }
}
@media (min-aspect-ratio: 1/1) {
  .gate { background: url("/templates/yasmin/assets/entrance-poster.jpg") center / contain no-repeat, radial-gradient(circle at 50% 42%, #fbf6ec, #e6d9c2 70%); }
  .gate__video { object-fit: contain; }
  .gate__names { font-size: clamp(2rem, 3.6vw, 2.8rem); }
}
@media (max-width: 370px) {
  .families { padding-inline: 3.9rem; }
  .countdown { gap: .38rem; }
  .countdown strong { font-size: 1.4rem; }
  .timeline__item { grid-template-columns: 4.5rem 2.3rem minmax(0, 1fr); }
  .timeline__vine { inset-inline-start: calc(4.5rem + 1.15rem - 22px); }
}
@media (max-height: 680px) {
  .hero__copy { padding-top: max(2.2rem, calc(env(safe-area-inset-top) + 1.2rem)); }
  .hero__name { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hero__sub { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__image { transform: none !important; }
  .hero__video { display: none; }
  .reveal-section, .hero-reveal { opacity: 1; transform: none; filter: none; }
  .motes, .jasmine-rain, .jasmine-drift, .hero__rays, .hero__scent, .hero__burst, .gate__seam, .gate__petals, .sundial-sec__light, .celebrate { display: none; }
  .vine .vine__stem { stroke-dashoffset: 0; }
  .vine .vine__leaf, .vine .vine__flower, .timeline__vine .vine__leaf, .timeline__vine .vine__flower { opacity: 1; transform: none; }
}

/* الملاحظة البارزة بلا تنويهات تُنقل خارج القسم المخفي — تأخذ هامش الصفحة الجانبي نفسه */
main > #da3wa-note { padding-inline: 1.4rem; }
