/* أفئدة رحيمة — زيتوني داكن، عاجي، ليموني */
:root {
  --ink: #245C40;
  --ink-2: #353A2A;
  --bone: #F8F4ED;
  --stone: #EAE2D6;
  --moss: #B45931;
  --lime: #B45931;
  --glow: #DDCCAA;
  --on-lime: #F8F4ED;
  --sans: "Alexandria", "Segoe UI", Tahoma, sans-serif;
  --ruqaa: "Aref Ruqaa", "Traditional Arabic", serif;
  --pad: clamp(16px, 4vw, 56px);
  --sec: clamp(72px, 12vw, 168px);
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, dl, dd, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; top: -100px; inset-inline-start: 16px; z-index: 100; background: var(--lime); color: var(--on-lime); padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 16px; }
.wrap { width: min(100%, 1440px); margin-inline: auto; padding-inline: var(--pad); position: relative; }
.ruqaa { font-family: var(--ruqaa); font-weight: 400; color: var(--moss); }

/* الخطوط الكنتورية */
#heart { vector-effect: non-scaling-stroke; }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); opacity: .13; pointer-events: none; }

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: var(--r);
  font-weight: 700; font-size: 16px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s, background-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn--lime { background: var(--lime); color: var(--on-lime); }
.btn--lime:hover { background: var(--bone); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { background: var(--lime); color: var(--on-lime); }
.btn--line { border: 1.5px solid currentColor; }
.btn--line:hover { background: var(--ink); color: var(--bone); }
.btn--xl { min-height: 62px; padding-inline: 32px; font-size: 18px; font-weight: 800; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* الترويسة */
.brand, .nav, .actions { position: fixed; top: 18px; z-index: 50; }
.brand {
  inset-inline-start: var(--pad);
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--ink); transition: color .25s;
}
.brand img { height: 56px; width: auto; max-width: 180px; object-fit: contain; }
.brand__txt { display: grid; line-height: .95; }
.brand__a { font-family: var(--ruqaa); font-size: 26px; }
.brand__b { font-weight: 900; font-size: 22px; }
.on-dark .brand, .on-dark .nav { color: var(--bone); }
.brand.brand--static { position: static; color: var(--bone); width: max-content; }
.nav {
  inset-inline: 0; margin-inline: auto; width: max-content;
  display: flex; gap: 28px; padding-top: 14px;
  color: var(--ink); transition: color .25s;
  font-size: 15px; font-weight: 600;
}
.nav a { text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: currentColor; }
.actions { inset-inline-end: var(--pad); display: flex; gap: 10px; }
.menu-btn {
  width: 52px; height: 52px; border-radius: var(--r);
  background: var(--bone); border: 1.5px solid var(--ink);
  display: none; place-content: center; gap: 6px;
}
.menu-btn i { display: block; height: 2px; background: var(--ink); transition: transform .25s, width .25s; }
.menu-btn i:first-child { width: 20px; }
.menu-btn i:last-child { width: 12px; }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { width: 20px; transform: translateY(-4px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--bone); display: grid; align-items: end; padding: 120px var(--pad) 48px; }
.menu[hidden] { display: none; }
.menu .contours { color: var(--glow); opacity: .18; }
.menu nav { position: relative; display: grid; gap: 4px; }
.menu a, .menu nav button { font-weight: 900; font-size: clamp(26px, 7.4vw, 46px); line-height: 1.35; text-decoration: none; text-align: start; }
.menu a:hover, .menu nav button:hover { color: var(--glow); }

/* 1. الواجهة */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding: 110px var(--pad) 84px;
  background: var(--bone);
}
.hero__stage { --hw: min(76vh, 92vw); position: relative; display: grid; place-items: center; container-type: inline-size; }
/* نسخة فاتحة من العنوان تظهر داخل حدود القلب فقط */
.hero__over { position: absolute; top: 50%; left: 50%; width: var(--hw); aspect-ratio: 100 / 90; transform: translate(-50%, -50%); clip-path: url(#heart-box); pointer-events: none; }
.hero__over .hero__title { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100cqw; color: var(--bone); }
.hero__heart {
  position: absolute; z-index: -1;
  width: var(--hw); top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero__fill { fill: var(--ink); }
.hero__shade { fill: var(--ink); opacity: .55; }
.hero__rings { fill: none; stroke: var(--glow); stroke-width: 1; opacity: .5; }
.hero__title {
  align-self: center; text-align: center;
  display: grid;
  color: var(--ink);
  font-weight: 900; font-size: clamp(38px, 7.4vw, 124px); line-height: 1.2;
}
.hero__title .ruqaa { color: inherit; font-size: 1.05em; line-height: 1.25; }
.hero__scribble {
  position: absolute; z-index: 2; pointer-events: none;
  width: min(84vh, 98vw); top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  fill: none; stroke: var(--lime); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
}
.hero__scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s .5s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__foot { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.campaign {
  width: 190px; padding: 14px; text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: var(--r);
  background: color-mix(in srgb, var(--bone) 80%, transparent);
  display: grid; gap: 6px; line-height: 1.5;
  transition: background-color .2s;
}
.campaign:hover { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.campaign small { font-size: 12px; font-weight: 600; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.campaign svg { width: 56px; margin: 8px auto; fill: none; stroke: currentColor; stroke-width: 2.5; }
.campaign strong { font-family: var(--ruqaa); font-size: 26px; line-height: 1.2; text-align: center; }
.campaign span { font-size: 12px; text-align: center; }
.hero__lede { max-width: 34ch; font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; }

/* 2. التبرع السريع */
.quick { background: var(--ink); color: var(--bone); padding-block: clamp(40px, 6vw, 72px); }
.quick__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 40px; }
.quick h2 { font-family: var(--ruqaa); font-weight: 400; color: var(--glow); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.25; }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
.chip {
  min-height: 68px; border-radius: var(--r);
  border: 1.5px solid color-mix(in srgb, var(--bone) 35%, transparent);
  font-weight: 800; font-size: 19px;
  display: grid; place-items: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--lime); }
.chip.is-on { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.chip--other { padding: 0; }
.chip--other input { width: 100%; height: 100%; min-height: 64px; background: none; border: 0; text-align: center; font-size: 16px; font-weight: 600; border-radius: var(--r); }
.chip--other input::placeholder { color: var(--stone); }

/* الشريط المتحرك */
.marquee { background: var(--ink); color: var(--bone); padding-block: 8px clamp(40px, 6vw, 80px); overflow: hidden; direction: ltr; }
.marquee__row > div { display: flex; width: max-content; animation: slide 40s linear infinite; }
.marquee__row--rev > div { animation-direction: reverse; }
.marquee span { direction: rtl; font-weight: 900; font-size: clamp(42px, 7.6vw, 120px); line-height: 1.3; padding-inline: .28em; white-space: nowrap; }
.marquee span.ruqaa { font-weight: 400; }
.marquee .ruqaa, .products .ruqaa { color: var(--glow); }
@keyframes slide { to { transform: translateX(-50%); } }

/* عناوين الأقسام */
.display { font-weight: 900; font-size: clamp(34px, 6.4vw, 100px); line-height: 1.2; text-align: center; margin-bottom: clamp(40px, 6vw, 96px); }
.display .ruqaa { font-size: 1.08em; }

/* بلاطات الصور */
.tile { aspect-ratio: 1; background: var(--ink); color: var(--glow); display: grid; place-items: center; overflow: hidden; }
.tile svg { width: 46%; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--moss { background: var(--stone); color: var(--ink); }
.tile--lime { background: var(--lime); color: var(--on-lime); }

/* 3. الحالات العاجلة */
.cases { position: relative; background: var(--stone); padding-block: var(--sec); overflow: hidden; }
.cases .display, .cases .display .ruqaa { color: var(--ink); }
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.case { display: grid; gap: 14px; }
.case:nth-child(2) { margin-top: clamp(0px, 8vw, 120px); }
.case:nth-child(3) { margin-top: clamp(0px, 3vw, 44px); }
.case__cap, .shot__cap { font-size: 12px; font-weight: 700; }
.case__cap::before, .shot__cap::before { content: ""; display: block; width: 56px; height: 8px; background: var(--lime); margin-bottom: 10px; }
.case:hover .tile svg, .shot:hover .tile svg { transform: scale(1.12) rotate(-4deg); }
.case h3 { font-weight: 800; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; }
.bar { height: 10px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.bar i { display: block; height: 100%; width: var(--p); background: var(--lime); }
.case__nums { font-size: 14px; }
.case__nums b { font-weight: 800; font-size: 18px; }
.case .btn { justify-self: start; }

/* 4. المجالات */
.fields { padding-block: var(--sec); }
.fields__list { border-top: 1.5px solid var(--ink); }
.fields__list li { border-bottom: 1.5px solid var(--ink); }
.fields__list button {
  width: 100%; text-align: start;
  display: grid; grid-template-columns: clamp(40px, 6vw, 88px) minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(14px, 3vw, 48px);
  padding: clamp(18px, 2.6vw, 40px) clamp(8px, 2vw, 32px);
  transition: background-color .25s, padding .25s;
}
.fields__list button:hover, .fields__list button:focus-visible { background: var(--lime); color: var(--on-lime); padding-inline-start: clamp(16px, 4vw, 64px); }
.fields__list svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 2; }
.fields__list strong { font-weight: 900; font-size: clamp(22px, 3.8vw, 58px); line-height: 1.3; }
.fields__list span { font-size: clamp(14px, 1.3vw, 18px); max-width: 38ch; }

/* 5. منتجات التبرع */
.products { position: relative; background: var(--ink); color: var(--bone); padding-block: var(--sec); overflow: hidden; }
.products .contours { color: var(--glow); opacity: .16; }
.products .display { margin-bottom: 16px; }
.products__lede { text-align: center; max-width: 44ch; margin: 0 auto clamp(40px, 5vw, 72px); color: var(--stone); font-size: 17px; }
.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product {
  display: grid; gap: 14px; justify-items: start; align-content: start;
  padding: 24px; border: 1.5px solid color-mix(in srgb, var(--bone) 28%, transparent); border-radius: var(--r);
  background: var(--ink);
}
.product > svg { width: 72px; fill: none; stroke: var(--glow); stroke-width: 2; margin-bottom: 20px; }
.product__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.product h3 { font-weight: 800; font-size: 22px; line-height: 1.4; }
.product__price { color: var(--stone); }
.product__price b { font-weight: 900; font-size: 32px; color: var(--bone); line-height: 1.2; }
.stepper { display: inline-grid; grid-template-columns: 48px 48px 48px; align-items: center; border: 1.5px solid color-mix(in srgb, var(--bone) 35%, transparent); border-radius: var(--r); }
.stepper button { height: 48px; font-size: 22px; }
.stepper button:hover { color: var(--glow); }
.stepper output { text-align: center; font-weight: 800; font-size: 18px; }
.product .btn { width: 100%; }

/* 6. الأخبار */
.news { position: relative; padding-block: var(--sec); overflow: hidden; }
.news .contours { opacity: .1; }
.news__collage { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 3vw, 48px); align-items: start; }
.shot { display: grid; gap: 12px; }
.shot > a { display: grid; gap: 12px; text-decoration: none; }
.shot > a:hover h3 { text-decoration: underline; text-decoration-color: var(--moss); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.shot h3 { font-weight: 700; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.6; }
.shot--a { grid-column: 1 / span 5; }
.shot--b { grid-column: 7 / span 3; margin-top: clamp(24px, 10vw, 160px); }
.shot--c { grid-column: 10 / span 3; }
.shot--q { grid-column: 7 / span 6; font-family: var(--ruqaa); font-size: clamp(24px, 3.1vw, 44px); line-height: 1.55; padding-top: 16px; border-top: 8px solid var(--lime); width: fit-content; }
.news__more { margin-top: clamp(40px, 6vw, 80px); text-align: center; font-size: 17px; }
.news__more a { font-weight: 800; text-decoration-color: var(--moss); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* التذييل */
.footer { background: var(--ink); color: var(--bone); }
.footer__cta { background: var(--lime); color: var(--on-lime); padding-block: clamp(48px, 8vw, 120px); text-align: center; }
.footer__cta p { font-weight: 900; font-size: clamp(28px, 5.4vw, 84px); line-height: 1.3; margin-bottom: 32px; }
.footer__cta .ruqaa { color: inherit; font-size: 1.1em; }
.footer__cta .btn--ink:hover { background: var(--bone); color: var(--ink); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: clamp(48px, 6vw, 88px); }
.footer__about p { margin-top: 20px; max-width: 40ch; color: var(--stone); font-size: 15px; }
.footer h2 { font-size: 15px; font-weight: 700; color: var(--glow); margin-bottom: 14px; }
.footer li { padding-block: 4px; }
.footer li a, .footer li button { text-decoration: none; }
.footer li a:hover, .footer li button:hover { color: var(--glow); }
.footer__legal { padding-block: 22px; border-top: 1px solid color-mix(in srgb, var(--bone) 18%, transparent); font-size: 13px; color: var(--stone); }

/* زر عائم */
.floaters { position: fixed; bottom: 18px; inset-inline-end: var(--pad); z-index: 30; }
.floaters button { background: var(--ink); color: var(--bone); border: 1.5px solid var(--bone); border-radius: var(--r); padding: 0 16px; min-height: 46px; font-weight: 700; font-size: 14px; }
.floaters button:hover { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }

/* النوافذ */
.dlg { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 14px; padding: 32px; background: var(--bone); color: var(--ink); }
.dlg::backdrop { background: color-mix(in srgb, var(--ink) 78%, transparent); }
.dlg[open] { animation: pop .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dlg h2 { font-family: var(--ruqaa); font-weight: 400; font-size: 40px; line-height: 1.3; margin-bottom: 16px; }
.dlg__x { position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; font-size: 28px; line-height: 1; border-radius: var(--r); }
.dlg__x:hover { background: var(--ink); color: var(--bone); }
.dlg__sum { border-block: 1.5px solid var(--ink); margin-bottom: 16px; }
.dlg__sum div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 12px; }
.dlg__sum div + div { border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.dlg__sum dt { font-size: 14px; }
.dlg__sum dd { font-weight: 800; text-align: end; }
.dlg input { border: 1.5px solid var(--ink); border-radius: 8px; background: #fff; padding: 8px 12px; min-height: 44px; }
.dlg__sum input { width: 120px; text-align: center; font-weight: 800; }
.dlg__go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dlg__go .btn { flex: 1 1 200px; }
.dlg .btn--lime:hover { background: var(--ink); color: var(--bone); }
.dlg__note { margin-top: 16px; font-size: 13px; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.zakat { display: grid; gap: 12px; }
.zakat label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.zakat__out { margin-top: 16px; padding: 14px 16px; background: var(--ink); color: var(--bone); border-radius: var(--r); font-weight: 600; }
.zakat__out b { color: var(--glow); font-size: 22px; font-weight: 900; }

/* الشاشات المتوسطة والصغيرة */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .quick__in { grid-template-columns: 1fr; }
  .quick h2 { text-align: center; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hero { padding-top: 96px; }
  .hero__stage { min-height: 92vw; margin-bottom: 24px; }
  .hero__stage { --hw: 90vw; }
  .hero__scribble { width: 100vw; }
  .hero__foot { flex-direction: column-reverse; align-items: stretch; }
  .hero__lede { max-width: none; }
  .campaign { width: 100%; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
  .campaign small { grid-column: 1 / -1; }
  .campaign svg { grid-row: 2 / span 2; width: 44px; margin: 0; }
  .campaign strong, .campaign span { text-align: start; }
  .chips { grid-template-columns: repeat(3, 1fr); }
  .chip { min-height: 58px; }
  .btn--xl { width: 100%; }
  .cases__grid { grid-template-columns: 1fr; gap: 56px; }
  .case:nth-child(n) { margin-top: 0; }
  .case:nth-child(even) { padding-inline-start: 18%; }
  .case:nth-child(odd) { padding-inline-end: 18%; }
  .fields__list button { grid-template-columns: 40px 1fr; }
  .fields__list span { grid-column: 2; }
  .products__grid { grid-template-columns: 1fr; }
  .news__collage { grid-template-columns: repeat(6, 1fr); }
  .shot--a { grid-column: 1 / span 5; }
  .shot--b { grid-column: 3 / span 4; margin-top: 0; }
  .shot--c { grid-column: 1 / span 3; }
  .shot--q { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr; }
  .floaters { bottom: 12px; }
  .dlg { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__scribble path { stroke-dashoffset: 0; }
  .marquee__row > div { flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee span:nth-child(n+5) { display: none; }
}


.actions .btn--lime { box-shadow: 0 0 0 1.5px var(--bone); }

.hero__stage > .hero__title { width: 100%; }

.footer__seal { width: 132px; height: auto; margin-top: 20px; }

/* =====================================================================
   العرض الجديد: الحكاية، لوحة المجالات، الفيلم، الشركاء، المروحة، السلة
   ===================================================================== */

/* زر أيقونة (السلة، أسهم المروحة) */
.icon-btn {
  position: relative; width: 52px; height: 52px; border-radius: var(--r); flex: none;
  background: var(--bone); color: var(--ink); border: 1.5px solid var(--ink);
  display: grid; place-items: center; font-size: 26px; line-height: 1;
  transition: background-color .2s, color .2s;
}
.icon-btn:hover:not([disabled]) { background: var(--ink); color: var(--bone); }
.icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.icon-btn svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn b { position: absolute; top: -8px; inset-inline-start: -8px; min-width: 24px; height: 24px; padding-inline: 6px; border-radius: 12px; background: var(--lime); color: var(--on-lime); font-size: 13px; font-weight: 800; display: grid; place-items: center; }

/* ---------- 1. الحكاية ---------- */
.story { position: relative; height: calc(var(--n, 6) * 85vh + 170vh); background: var(--ink); }
.story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.story__media, .story__shade, .story__cut { position: absolute; inset: 0; width: 100%; height: 100%; }
.story__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: opacity, transform; }
.story__media > div { background: var(--ink); }
.story__media > :not(:first-child) { opacity: 0; }
.story__shade {
  opacity: 0; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--ink) 90%, transparent) 0%, color-mix(in srgb, var(--ink) 30%, transparent) 55%, color-mix(in srgb, var(--ink) 50%, transparent) 100%);
}
.story__cut { pointer-events: none; }
.story__paper { fill: var(--bone); }
.story__rings { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .16; }

.story__intro {
  position: absolute; inset: 0; padding: 0 var(--pad) 28px;
  display: grid; grid-template-rows: 59vh auto auto 1fr; justify-items: center;
  will-change: opacity, transform;
}
.story__intro .hero__title { font-size: clamp(32px, 5.4vw, 88px); line-height: 1.2; grid-row: 2; }
.story__intro .hero__title .ruqaa { color: var(--moss); }
.story__hint { grid-row: 3; margin-top: 10px; font-size: 13px; font-weight: 600; display: grid; justify-items: center; gap: 8px; }
.story__hint i { width: 2px; height: 34px; background: var(--ink); transform-origin: top; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.story__intro .hero__foot { grid-row: 4; align-self: end; width: 100%; }

.story__cap {
  position: absolute; inset-inline: var(--pad); bottom: clamp(48px, 11vh, 110px);
  color: var(--bone); opacity: 0; will-change: opacity, transform;
}
.story__cap b { display: block; font-size: 13px; font-weight: 600; color: var(--glow); margin-bottom: 12px; }
.story__cap b::before { content: ""; display: block; width: 56px; height: 8px; background: var(--lime); margin-bottom: 10px; }
.story__cap h2 { font-weight: 900; font-size: clamp(34px, 6vw, 96px); line-height: 1.2; }
.story__cap p { font-size: clamp(16px, 1.5vw, 21px); max-width: 38ch; margin-top: 8px; }
.story__bar { position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: color-mix(in srgb, var(--bone) 22%, transparent); }
.story__bar i { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: right; }

/* ---------- 4. المجالات: لوحة صور ---------- */
.svcs { position: relative; padding-block: var(--sec); overflow: hidden; }
.svcs .contours { opacity: .1; }
.svcs__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 3vw, 48px); row-gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc { display: grid; gap: 12px; text-decoration: none; grid-column: span 3; }
.svc:nth-child(5n+1) { grid-column: 1 / span 3; }
.svc:nth-child(5n+2) { grid-column: 5 / span 5; margin-top: clamp(0px, 7vw, 110px); }
.svc:nth-child(5n+3) { grid-column: 11 / span 2; margin-top: clamp(0px, 2vw, 30px); }
.svc:nth-child(5n+4) { grid-column: 2 / span 3; margin-top: clamp(-90px, -5vw, 0px); }
.svc:nth-child(5n+5) { grid-column: 8 / span 4; }
.svc .tile { aspect-ratio: 4 / 5; }
.svc:nth-child(5n+2) .tile { aspect-ratio: 1; }
.svc:nth-child(5n+5) .tile { aspect-ratio: 4 / 3; }
.svc .tile img { filter: grayscale(.55) sepia(.18); transition: filter .5s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.svc:hover .tile img, .svc:focus-visible .tile img, .svc:nth-child(5n+2) .tile img { filter: none; }
.svc:hover .tile img { transform: scale(1.05); }
.svc:hover .tile svg { transform: scale(1.12) rotate(-4deg); }
.svc .shot__cap { font-size: clamp(15px, 1.5vw, 22px); font-weight: 800; }
.svc__text { font-size: 15px; max-width: 36ch; }
.svc__more { font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- الفيلم ---------- */
.film { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; background: var(--ink); color: var(--bone); overflow: hidden; text-align: center; }
.film__poster, .film__shade, .film__player { position: absolute; inset: 0; width: 100%; height: 100%; }
.film__poster { object-fit: cover; }
.film__shade { background: color-mix(in srgb, var(--ink) 62%, transparent); }
.film__in { position: relative; padding: 120px var(--pad); display: grid; justify-items: center; gap: 16px; }
.film__in .display { margin: 0; }
.film__in .ruqaa { color: var(--glow); }
.film__in > p { font-size: 17px; max-width: 40ch; }
.film__play {
  margin-top: 20px; width: clamp(130px, 14vw, 180px); aspect-ratio: 1; border-radius: 50%;
  background: var(--lime); color: var(--on-lime); display: grid; place-content: center; justify-items: center; gap: 6px;
  font-weight: 800; font-size: 15px; transition: transform .3s cubic-bezier(.2, .8, .2, 1), background-color .2s, color .2s;
}
.film__play svg { width: 40px; fill: currentColor; }
.film__play:hover:not([disabled]) { transform: scale(1.08); background: var(--bone); color: var(--ink); }
.film__play[disabled] { background: transparent; color: var(--bone); border: 1.5px solid var(--bone); cursor: default; }
.film__play[disabled] svg { display: none; }
.film__player { background: #000; z-index: 2; }
.film__player iframe, .film__player video { width: 100%; height: 100%; border: 0; }
.film__close { position: absolute; top: 84px; inset-inline-end: var(--pad); background: var(--bone); color: var(--ink); border-radius: var(--r); padding: 0 16px; min-height: 44px; font-weight: 700; }

/* ---------- المنتجات والسلة ---------- */
.product__text { font-size: 14px; color: var(--stone); }
.line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding-block: 12px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.line__name { font-weight: 700; display: grid; line-height: 1.5; }
.line__name small { font-weight: 400; font-size: 13px; }
.line > b { min-width: 64px; text-align: end; font-weight: 800; }
.dlg .stepper { grid-template-columns: 40px 36px 40px; border-color: var(--ink); }
.dlg .stepper button { height: 40px; }
.dlg .stepper button:hover { color: var(--moss); }
.line--total { grid-template-columns: 1fr auto; border-bottom: 0; font-weight: 800; font-size: 18px; }
.cart__empty { padding-block: 12px; }

/* ---------- الشركاء ---------- */
.partners { position: relative; padding-block: var(--sec) clamp(56px, 8vw, 120px); overflow: hidden; }
.partners__scribble { position: absolute; inset-inline-start: -8%; top: -12%; width: min(980px, 110vw); height: auto; aspect-ratio: 600 / 420; color: var(--lime); opacity: .9; pointer-events: none; }
.partners__scribble use { stroke-width: 34; }
.partners__head { display: grid; grid-template-columns: auto minmax(0, 36ch); justify-content: space-between; align-items: start; gap: 24px; }
.partners__head .display { text-align: start; margin: 0; }
.partners__head p { font-size: clamp(15px, 1.4vw, 19px); padding-top: 12px; }
.partners__row { position: relative; margin-top: clamp(48px, 7vw, 110px); overflow: hidden; direction: ltr; }
.partners__row > div { display: flex; align-items: center; width: max-content; animation: slide 36s linear infinite; }
.partners__row:hover > div { animation-play-state: paused; }
.partner { direction: rtl; flex: none; padding-inline: clamp(28px, 4.5vw, 72px); display: grid; place-items: center; text-decoration: none; }
.partner img { height: clamp(40px, 5vw, 64px); width: auto; max-width: 200px; object-fit: contain; filter: grayscale(1); transition: filter .3s; }
.partner:hover img { filter: none; }
.partner span { font-weight: 800; font-size: clamp(20px, 2.4vw, 32px); white-space: nowrap; }

/* ---------- 6. الأخبار: مروحة ---------- */
.fan { --cw: clamp(180px, 21vw, 310px); position: relative; height: calc(var(--cw) * 1.55 + 70px); margin-top: 10px; touch-action: pan-y; user-select: none; }
.fan__card {
  position: absolute; top: 30px; left: 50%; width: var(--cw); height: calc(var(--cw) * 1.55);
  border-radius: clamp(18px, 2.4vw, 32px); overflow: hidden; background: var(--ink);
  transform-origin: 50% 260%;
  transform: translateX(-50%) rotate(calc(var(--o, 0) * -8deg)) scale(calc(1 - var(--d, 0) * .035));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s;
  filter: brightness(.72) saturate(.8);
}
.fan__card.is-on { filter: none; transform: translateX(-50%) scale(1.07); }
.fan__card .tile { width: 100%; height: 100%; aspect-ratio: auto; }
.fan__card span { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 16px 16px; color: var(--bone); font-weight: 700; font-size: 14px; text-align: start; background: linear-gradient(to top, color-mix(in srgb, var(--ink) 92%, transparent), transparent); }
.fan__info { display: grid; grid-template-columns: auto minmax(0, 620px) auto; justify-content: center; align-items: center; gap: clamp(12px, 3vw, 40px); margin-top: 12px; }
.fan__text { display: grid; justify-items: center; gap: 12px; text-align: center; min-height: 190px; align-content: start; }
.fan__text .shot__cap::before { margin-inline: auto; }
.fan__text h3 { font-weight: 800; font-size: clamp(19px, 2vw, 28px); line-height: 1.5; }
.news__quote { font-family: var(--ruqaa); font-size: clamp(24px, 3.1vw, 44px); line-height: 1.55; text-align: center; max-width: 24ch; margin: clamp(48px, 7vw, 96px) auto 0; padding-top: 18px; border-top: 8px solid var(--lime); }
.news__quote:empty { display: none; }

/* ---------- صفحات التفاصيل ---------- */
.page { background: var(--bone); }
.page__top { display: flex; align-items: center; gap: 12px; padding: 18px var(--pad); }
.page__top .brand { position: static; color: var(--ink); margin-inline-end: auto; }
.page__hero { padding: clamp(24px, 5vw, 72px) var(--pad) 0; display: grid; gap: 18px; justify-items: start; max-width: 1440px; margin-inline: auto; }
.page__hero h1 { font-weight: 900; font-size: clamp(34px, 6.4vw, 100px); line-height: 1.2; max-width: 16ch; }
.page__lede { font-size: clamp(17px, 1.6vw, 22px); max-width: 44ch; }
.page__img { width: 100%; max-height: 72vh; object-fit: cover; margin-top: clamp(20px, 3vw, 44px); }
.page__body { padding: clamp(32px, 5vw, 72px) var(--pad); max-width: calc(68ch + 2 * var(--pad)); margin-inline: auto; }
.page__body p { font-size: 18px; line-height: 2; margin-bottom: 1.2em; }
.page__cta { background: var(--lime); color: var(--on-lime); padding: clamp(40px, 6vw, 88px) var(--pad); text-align: center; display: grid; justify-items: center; gap: 20px; }
.page__cta p { font-weight: 900; font-size: clamp(26px, 4.4vw, 64px); line-height: 1.3; }
.page__cta .btn--ink:hover { background: var(--bone); color: var(--ink); }
.page__more { padding: clamp(40px, 6vw, 88px) var(--pad); max-width: 1440px; margin-inline: auto; }
.page__more h2 { font-family: var(--ruqaa); font-weight: 400; color: var(--moss); font-size: clamp(28px, 3vw, 42px); margin-bottom: 20px; }
.page__more ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.page__more a { display: grid; gap: 10px; text-decoration: none; font-weight: 700; line-height: 1.6; }
.page__more .tile { aspect-ratio: 4 / 3; }
.page__more a:hover .tile img { transform: scale(1.05); }
.page__more .tile img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.page__missing { padding: 18vh var(--pad); text-align: center; display: grid; gap: 20px; justify-items: center; }
.page__missing h1 { font-weight: 900; font-size: clamp(28px, 4vw, 52px); }

/* الخبر على هيئة نشرة */
.page--letter { background: var(--stone); }
.letter { background: var(--bone); max-width: 720px; margin: clamp(8px, 3vw, 40px) auto clamp(32px, 5vw, 72px); border-top: 10px solid var(--ink); }
.letter__head { display: grid; justify-items: center; gap: 6px; padding: 32px 24px 22px; border-bottom: 1.5px solid var(--ink); margin-inline: clamp(20px, 5vw, 48px); text-align: center; }
.letter__head img { width: 76px; height: auto; }
.letter__head strong { font-family: var(--ruqaa); font-weight: 400; font-size: 30px; line-height: 1.3; color: var(--moss); }
.letter__head span { font-size: 13px; font-weight: 600; }
.letter__in { padding: 28px clamp(20px, 5vw, 48px) 8px; }
.letter__in h1 { font-weight: 900; font-size: clamp(26px, 4vw, 40px); line-height: 1.45; margin-top: 14px; }
.letter__in > img { width: 100%; max-height: 460px; object-fit: cover; margin-block: 24px; }
.letter__in p { font-size: 17px; line-height: 2; margin-bottom: 1.2em; }
.letter__foot { margin: 8px clamp(20px, 5vw, 48px) 0; padding-block: 24px 32px; border-top: 1.5px solid var(--ink); display: grid; gap: 16px; justify-items: center; text-align: center; font-size: 14px; }
.letter__foot a:not(.btn) { font-weight: 700; }

@media (max-width: 1100px) {
  .partners__head { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .actions .btn--lime { padding-inline: 14px; }
  .story__intro .campaign { display: none; }
  .story__intro .hero__lede { text-align: center; font-size: 14px; }
  .svcs__grid { grid-template-columns: repeat(6, 1fr); row-gap: 44px; }
  .svc:nth-child(n) { margin-top: 0; }
  .svc:nth-child(odd) { grid-column: 1 / span 5; }
  .svc:nth-child(even) { grid-column: 2 / span 5; }
  .svc:nth-child(n) .tile { aspect-ratio: 4 / 3; }
  .svc .tile img { filter: none; }
  .fan { --cw: 54vw; }
  .fan__info { grid-template-columns: auto 1fr auto; }
  .fan__text { min-height: 210px; }
  .partners__scribble { width: 150vw; top: -4%; }
  .film__close { top: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  .partners__row > div { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 24px; }
  .story__hint i { animation: none; }
}

.partners__scribble { color: var(--glow); }
.partners .display .ruqaa { color: var(--moss); }

@media (max-width: 720px) {
  body > .brand .brand__txt { display: none; }
  .story__intro { padding-bottom: 76px; }
}

/* =====================================================================
   الخلفية المتحركة: الخطوط تتموّج ببطء وتنزاح مع الماوس
   ===================================================================== */
.contours {
  transform: translate(calc(var(--mx, 0) * -30px), calc(var(--my, 0) * -30px)) scale(1.12);
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
  animation: drift 36s ease-in-out infinite alternate;
  will-change: transform; /* تُرسم الخطوط مرة واحدة ثم تتحرك كطبقة، فلا تُعاد حسابات الفلتر كل إطار */
}
@keyframes drift { from { rotate: -1.6deg; scale: 1; } to { rotate: 1.6deg; scale: 1.07; } }
.story__contours { opacity: .13; transition: opacity .5s, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.story.is-open .story__contours { opacity: 0; }

/* ---------- المقالات ---------- */
.arts { padding-block: var(--sec); }
.arts__list { border-top: 1.5px solid var(--ink); }
.art { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(16px, 4vw, 56px); align-items: center; padding-block: clamp(20px, 3vw, 36px); border-bottom: 1.5px solid var(--ink); text-decoration: none; }
.art .tile { aspect-ratio: 4 / 3; }
.art .tile img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.art:hover .tile img { transform: scale(1.05); }
.art > div { display: grid; gap: 10px; justify-items: start; }
.art h3 { font-weight: 900; font-size: clamp(22px, 3vw, 44px); line-height: 1.35; }
.art p:not(.shot__cap) { max-width: 52ch; }
.arts__all { margin-top: 32px; text-align: center; }

/* ---------- الأسئلة الشائعة ---------- */
.faq { position: relative; background: var(--ink); color: var(--bone); padding-block: var(--sec); overflow: hidden; }
.faq .contours { color: var(--glow); opacity: .14; }
.faq .ruqaa { color: var(--glow); }
.faq__list { position: relative; max-width: 900px; margin-inline: auto; border-top: 1.5px solid color-mix(in srgb, var(--bone) 35%, transparent); }
.faq details { border-bottom: 1.5px solid color-mix(in srgb, var(--bone) 35%, transparent); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; cursor: pointer; list-style: none; font-weight: 800; font-size: clamp(17px, 1.8vw, 24px); line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 400; font-size: 30px; line-height: 1; color: var(--glow); transition: rotate .25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:hover { color: var(--glow); }
.faq details p { padding-bottom: 24px; max-width: 68ch; font-size: 17px; line-height: 2; }

/* ---------- تواصل معنا ---------- */
.contact { padding-block: var(--sec); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.contact__info { display: grid; gap: 28px; }
.contact__lines li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding-block: 12px; border-bottom: 1.5px solid var(--ink); font-size: 17px; }
.contact__lines b { font-size: 13px; font-weight: 700; align-self: center; }
.contact__lines a { text-decoration: none; justify-self: start; }
.contact__lines a:hover { text-decoration: underline; }
.contact__social { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__social a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 23px; font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s; }
.contact__social a:hover { background: var(--ink); color: var(--bone); }
.notify { display: grid; gap: 12px; justify-items: start; padding: 20px; background: var(--stone); border-radius: var(--r); }
.notify__msg { font-size: 14px; font-weight: 600; }
.notify__msg:empty { display: none; }
.contact__map { aspect-ratio: 4 / 3; min-height: 320px; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--stone); }
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- النافذة المنبثقة ---------- */
.dlg--promo { padding: 0; width: min(460px, calc(100vw - 32px)); overflow: hidden; }
.dlg--promo > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.dlg--promo .dlg__x { background: var(--bone); z-index: 1; }
.promo__in { padding: 24px 28px 28px; display: grid; gap: 12px; justify-items: start; }
.promo__in h2 { margin: 0; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .art { grid-template-columns: 1fr; }
  .contact__lines li { grid-template-columns: 70px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .contours { transform: none; }
}

/* الخطوط الكنتورية صورة تُرسم مرة واحدة ثم تُستخدم قناعًا، فتحريكها لا يكلّف المتصفح شيئًا */
.contours {
  visibility: hidden; background: currentColor;
  -webkit-mask: var(--contour-img, none) center / cover no-repeat;
  mask: var(--contour-img, none) center / cover no-repeat;
}
.has-contours .contours { visibility: visible; }

@media (max-width: 900px) {
  .contact__map { aspect-ratio: auto; min-height: 0; height: 320px; }
  .contact__grid > * { min-width: 0; }
}
