/* DOPPIA — الرئيسية والمنيو
   ──────────────────────────
   لبّ الهوية: «doppia» بالإيطالي «مزدوجة». واللوقو يقولها بلا كلام:
   شخصيتان، والاسم مرتين على كل نظارة، والثريا في المحل حلقتان.

   عنصر التوقيع: القوس المشقوق. قوس كاونتر المحل مقسوم نصفين، في كل
   نصف شخصية، وتحتهما قاعدة واحدة تجمعهما بالوردمارك.

   نظام الأشكال: القوس وحده.
   - كل إطار صورة = ربع دائرة في زاويته العليا اليسرى، نصف قطرها عرض
     الإطار، كما هو قوس الكاونتر في الصورة (يساراً فعلاً لا منطقياً).
   - الرأس وحده قوسان متقابلان، لأنه النصفان معاً.
   - الأزرار والشرائح = حبّة كاملة.
   - لا استدارة ثالثة في الصفحة.

   الألوان مقيسة من اللوقو بالبكسل (README المشروع). والأكسنت البرتقالي
   لا يُكتب به نص على الكريمي (٢٫٩٦:١)، فعلى الكريمي السعر أسود.

   الحركة: شخصية Playful مضبوطة. النصفان يدخلان من جهتين ويلتقيان،
   والوردمارك يستقر بتجاوز خفيف. وكل تفاعل واجهة أقل من 300ms. */

/* ─── الخطوط ─── */
@font-face {
  font-family: "Aref Ruqaa";
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/aref-ruqaa-arabic-700-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Aref Ruqaa";
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/aref-ruqaa-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Readex Pro";
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/readex-pro-arabic-400-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Readex Pro";
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/readex-pro-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Readex Pro";
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/readex-pro-arabic-500-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Readex Pro";
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/readex-pro-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Readex Pro";
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/readex-pro-arabic-700-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Readex Pro";
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/readex-pro-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ─── التوكنز ─── */
:root {
  --ink: #0A0A0A;          /* أرضية اللوقو، البدلة، الصديري */
  --ink-2: #161413;        /* أسود مرفوع درجة: الشرائح والنوافذ */
  --cream: #F8ECE4;        /* بياض القمصان في اللوقو */
  --orange: #F65200;       /* الأكسنت الوحيد */

  --on-ink-soft: #B3A9A2;  /* ٨٫٥٩:١ على الأسود */
  --on-cream-soft: #5E544D;/* ٦٫٣٥:١ على الكريمي */
  --line-ink: rgba(248, 236, 228, 0.14);
  --line-cream: rgba(10, 10, 10, 0.14);

  --terrazzo: url(../img/terrazzo.svg);

  --f-head: "Aref Ruqaa", "Readex Pro", serif;
  --f-body: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-pop: cubic-bezier(0.34, 1.32, 0.64, 1);
  --t-press: 140ms;
  --t-ui: 240ms;
  --t-stage: 640ms;

  --pad: clamp(18px, 5vw, 48px);
  --nav-h: 62px;
  --top-h: 68px;
}

/* ─── الأساس ─── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--cream);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
main section[id] { scroll-margin-top: var(--nav-h); }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
  z-index: 50;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-ui) var(--ease-out);
}
.skip:focus-visible { transform: none; }

/* ═══ الهيدر: مشترك بين الصفحتين (partials/header.html) ═══
   يطفو فوق رأس الصفحة الكريمي بلا خلفية خاصة، فلا ينقطع التيرازو عند
   حدّه. والوردمارك فيه يغيب في الرئيسية لأن القوس تحته يحمله كبيراً. */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  color: var(--ink);
}
.top__in {
  max-width: 1216px;
  height: var(--top-h);
  margin-inline: auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 16px;
}
.top__mark { display: block; padding: 6px 0; }
.top__mark img { width: 104px; height: auto; }
.page-home .top__mark { display: none; }
.top__nav { display: flex; gap: 4px; margin-inline-start: auto; }
.top__nav a,
.foot__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color var(--t-ui) var(--ease-out),
    color var(--t-ui) var(--ease-out),
    transform var(--t-press) var(--ease-out);
}
.top__nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.top__nav a:active,
.foot__nav a:active { transform: scale(0.97); }
@media (hover: hover) {
  .top__nav a:not([aria-current]):hover { background: rgba(10, 10, 10, 0.07); }
  .foot__nav a:not([aria-current]):hover { background: rgba(248, 236, 228, 0.1); }
}

/* ═══ الزر ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);             /* ٥٫٧٧:١، الأبيض على البرتقالي يسقط */
  font: 700 17px/1 var(--f-body);
  text-decoration: none;
  transition: transform var(--t-press) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t-ui) var(--ease-out); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) {
  .btn:hover svg { transform: translateX(-4px); }
}

/* ═══ القوس المشقوق ═══
   اتجاه الرسم يسار-يمين داخل القوس وحده: الرجل يساراً والمرأة يميناً
   كما هما في اللوقو، والصفحة كلها تبقى RTL. */
.duo {
  direction: ltr;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(6px, 1.8vw, 10px);
}
.duo__half {
  position: relative;
  margin: 0;
  aspect-ratio: 173 / 250;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  align-items: flex-end;
}
/* ربع دائرة نصف قطرها عرض النصف: ٦٩٫٢٪ = 173 ÷ 250 من الارتفاع.
   والنصفان معاً يرسمان قوساً واحداً كاملاً، يشقّه خط الكريمي. */
.duo__half--him { border-top-left-radius: 100% 69.2%; }
.duo__half--her { border-top-right-radius: 100% 69.2%; }
.duo__half img { width: 100%; height: auto; }
.duo__base {
  grid-column: 1 / -1;
  background: var(--ink);
  padding: clamp(8px, 2vw, 14px) clamp(16px, 5vw, 30px) clamp(16px, 4vw, 26px);
}
.duo__base h1 { margin: 0; }
.duo__base img { width: 100%; height: auto; }

/* ═══ الرئيسية: الرأس ═══ */
.hero {
  background: var(--cream) var(--terrazzo) 0 0 / 240px 240px;
  color: var(--ink);
  padding: var(--top-h) var(--pad) clamp(30px, 7vw, 72px);
}
.hero__in {
  max-width: 1216px;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 3vw, 22px);
}
.hero .duo { width: min(72vw, 296px); }
.hero__say {
  margin: 0;
  text-align: center;
  font: 700 clamp(24px, 6.4vw, 32px)/1.4 var(--f-head);
}
.hero__say br { display: none; }
.hero__l { display: inline-block; }

/* ═══ الرئيسية: فهرس المنيو ═══ */
.ixs {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(56px, 13vw, 128px) var(--pad);
}
.ixs__in { max-width: 1120px; margin-inline: auto; }
.ixs__h {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(16px, 4vw, 32px);
}
.ixs__h h2 {
  margin: 0;
  font: 700 clamp(44px, 12vw, 88px)/1.1 var(--f-head);
}
.ix {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-ink);
}
.ix__row { border-bottom: 1px solid var(--line-ink); }
.ix__a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "g n go" ". m m";
  align-items: center;
  column-gap: 14px;
  row-gap: 4px;
  padding: 20px 0 22px;
  text-decoration: none;
}
.ix__arch { grid-area: g; width: 20px; height: 23px; }
.ix__arch path { stroke: var(--orange); stroke-width: 2; stroke-linejoin: round; }
.ix__arch .a1 { fill: var(--orange); }
.ix__arch .a2 { fill: none; }
.ix__row:nth-child(even) .ix__arch .a1 { fill: none; }
.ix__row:nth-child(even) .ix__arch .a2 { fill: var(--orange); }
.ix__n {
  grid-area: n;
  font: 700 clamp(28px, 7.8vw, 48px)/1.3 var(--f-head);
  transition: color var(--t-ui) var(--ease-out);
}
.ix__m {
  grid-area: m;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 15px;
  line-height: 1.6;
}
.ix__c { color: var(--orange); font-weight: 500; }   /* ٥٫٧٧:١ على الأسود */
.ix__s { color: var(--on-ink-soft); }
.ix__go {
  grid-area: go;
  width: 24px;
  height: 24px;
  color: var(--on-ink-soft);
  transition:
    transform var(--t-ui) var(--ease-out),
    color var(--t-ui) var(--ease-out);
}
@media (hover: hover) {
  .ix__a:hover .ix__n { color: var(--orange); }
  .ix__a:hover .ix__go { color: var(--orange); transform: translateX(-6px); }
}
.ixs__go { margin-top: clamp(28px, 6vw, 44px); }

/* ═══ الرئيسية: الاسم والمحل ═══ */
.nm {
  background: var(--cream) var(--terrazzo) 0 0 / 240px 240px;
  color: var(--ink);
  padding: clamp(56px, 13vw, 128px) var(--pad);
}
.nm__in {
  max-width: 1120px;
  margin-inline: auto;
  display: grid;
  gap: clamp(32px, 7vw, 64px);
}
.nm__tx { display: grid; gap: 18px; align-content: center; }
.nm__tx h2 {
  margin: 0;
  font: 700 clamp(36px, 9.6vw, 66px)/1.3 var(--f-head);
}
.nm__wm {
  width: min(78%, 330px);
  height: auto;
  margin-bottom: clamp(10px, 2vw, 16px);
}
.nm__tx p {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(17px, 4.4vw, 20px);
  line-height: 1.85;
}
.nm__ph {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-top-left-radius: 100% 75%;
  background: var(--ink-2);
}
.nm__ph img { width: 100%; height: 100%; object-fit: cover; }

/* ═══ صفحة المنيو: الرأس ═══
   اسم الصفحة بين نصفي القوس، والقوس مفتوح عليه. */
.phead {
  background: var(--cream) var(--terrazzo) 0 0 / 240px 240px;
  color: var(--ink);
  padding: calc(var(--top-h) + 6px) var(--pad) 0;
}
.phead__in {
  direction: ltr;
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  column-gap: clamp(14px, 4vw, 40px);
}
.phead .duo__half { width: clamp(78px, 23vw, 150px); }
.phead .duo__half--him { justify-self: end; }
.phead .duo__half--her { justify-self: start; }
.phead h1 {
  direction: rtl;
  margin: 0;
  padding-bottom: clamp(14px, 3vw, 26px);
  font: 700 clamp(46px, 13vw, 96px)/1 var(--f-head);
}

/* ═══ صفحة 404 ═══
   رأس المنيو نفسه ورقم الصفحة بين نصفي القوس، وتحته سطر وزر للمنيو. */
.lost {
  padding: clamp(48px, 11vw, 88px) var(--pad) clamp(72px, 14vw, 120px);
  text-align: center;
}
.lost__say {
  margin: 0 0 clamp(22px, 5vw, 30px);
  font: 500 clamp(18px, 4.6vw, 22px)/1.5 var(--f-body);
}

/* ═══ شريط الأقسام ═══ */
.mnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  border-bottom: 1px solid var(--line-ink);
}
.mnav__in {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 10px var(--pad);
  max-width: 1216px;
  margin-inline: auto;
}
.mnav__in::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(248, 236, 228, 0.24);
  border-radius: 999px;
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--t-ui) var(--ease-out),
    border-color var(--t-ui) var(--ease-out),
    color var(--t-ui) var(--ease-out),
    transform var(--t-press) var(--ease-out);
}
.chip[aria-current="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.chip:active { transform: scale(0.97); }
@media (hover: hover) {
  .chip:not([aria-current="true"]):hover { border-color: var(--cream); }
}

/* ═══ الأقسام: منيو مطبوع على أرضية واحدة ═══
   المنيو كله على أسود اللوقو، بهوامش واسعة وخطوط شعرية كمنيو مقهى
   مطبوع. و«الضعف» يُقال بالطباعة لا بالألوان: فوق كل قسم خط مزدوج
   يشقّه القوس المشقوق مصغّراً في وسطه، وفي الديسكتوب تنقسم الأصناف
   عمودين بينهما خط الشقّ نفسه. */
#menu-body {
  background: var(--ink);
  padding-bottom: clamp(24px, 6vw, 56px);
}
.cat {
  --soft: var(--on-ink-soft);
  --rule: rgba(248, 236, 228, 0.26);
  --dots: rgba(248, 236, 228, 0.34);
  padding: clamp(44px, 12vw, 88px) clamp(26px, 8vw, 64px) 0;
  color: var(--cream);
}
.cat__in { max-width: 520px; margin-inline: auto; }

.cat__h {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 4vw, 20px);
  margin-bottom: clamp(22px, 6vw, 36px);
  text-align: center;
}
.cat__h h2 {
  margin: 0;
  font: 700 clamp(34px, 9.4vw, 52px)/1.3 var(--f-head);
}
/* الخط المزدوج عن يمين القوس ويساره: حدّان شعريان بينهما فراغ */
.cat__o {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cat__o::before,
.cat__o::after {
  content: "";
  flex: 1;
  height: 5px;
  border-block: 1px solid var(--rule);
}
.cat__arch { flex: none; width: 24px; height: 27px; }
.cat__arch path { stroke: var(--orange); stroke-width: 1.5; stroke-linejoin: round; }
.cat__arch .a1 { fill: var(--orange); }
.cat__arch .a2 { fill: none; }
.cat:nth-child(even) .cat__arch .a1 { fill: none; }
.cat:nth-child(even) .cat__arch .a2 { fill: var(--orange); }

/* ─── الأصناف: قائمة ───
   سطر لكل صنف: الاسم، وتحته وصف صغير هادئ إن وُجد، ثم نقاط دليل رفيعة
   تقوده إلى السعر في آخر السطر. والقسم الذي لا سعر فيه بعد تتوسّط
   أسماؤه السطر كما في المنيو المطبوع، فيبدو مكتملاً لا ناقصاً. */
.items { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  break-inside: avoid;
}
.item__tx { flex: 0 1 auto; min-width: 0; display: grid; gap: 2px; }
.item__n {
  font-size: clamp(18px, 4.8vw, 19px);
  font-weight: 500;
  line-height: 1.5;
}
.item__d {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--soft);
}
.item__l {
  flex: 1;
  min-width: 18px;
  border-bottom: 1px dotted var(--dots);
}
.item__p {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.sar { width: 0.74em; height: 0.84em; fill: currentColor; }

/* الصورة مصغّرة في أول السطر بقوس الكاونتر، وتُفتح كبيرة بالضغط */
.item__t {
  flex: none;
  align-self: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  background: var(--ink-2);
  border-top-left-radius: 100%;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform var(--t-press) var(--ease-out);
}
.item__t:active { transform: scale(0.97); }
.item__t img { width: 100%; height: 100%; object-fit: cover; }
.item--img { align-items: center; }
.item--img .item__l { align-self: center; }

/* غير متوفر: الاسم مشطوب بلون النص الثانوي (يجتاز AA) وكلمة هادئة */
.item__off { flex: none; font-size: 14px; line-height: 1.5; color: var(--soft); }
.item--off .item__n { color: var(--soft); text-decoration: line-through; text-decoration-thickness: 1px; }
.item--off .item__p { color: var(--soft); }
.item--off .item__t img { filter: grayscale(1); opacity: 0.6; }

/* قسم بلا أي سعر: الأسماء في الوسط */
.items:not(:has(.item__p)) .item { justify-content: center; text-align: center; }
.items:not(:has(.item__p)) .item__d { margin-inline: auto; }
.items:not(:has(.item__p)) .item__l { display: none; }

/* ═══ الفوتر: مشترك بين الصفحتين (partials/footer.html) ═══ */
.foot {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(48px, 11vw, 96px) var(--pad) 28px;
  border-top: 1px solid var(--line-ink);
}
.foot__in {
  max-width: 1120px;
  margin-inline: auto;
  display: grid;
  gap: clamp(28px, 6vw, 44px);
}
.foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}
.foot__wm { display: block; }
.foot__wm img { width: min(72vw, 320px); height: auto; }
.foot__nav { display: flex; gap: 4px; }
.foot__nav a[aria-current="page"] { background: var(--cream); color: var(--ink); }
.credit {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-ink);
  font-size: 13px;
  color: var(--on-ink-soft);
}
.credit a {
  color: var(--cream);
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}

/* ═══ الحسابات العائمة (partials/footer.html) ═══
   القوس المشقوق مصغّراً في زاوية الشاشة جهة نهاية السطر (اليسار في RTL، حيث
   الفوتر فاضٍ في الجوال): نصفان برتقاليان يشقّهما خط كريمي، كل نصف حساب، وربع
   الدائرة في الزاوية الخارجية لكل نصف كقوس الكاونتر (نصف القطر = عرض النصف،
   ٤٦ ÷ ٦٠ = ٧٦٫٧٪ من الارتفاع). يدخل النصفان من جهتين ويلتقيان كقوس الرأس،
   والنصف تحت المؤشر يرتفع قليلاً كأنه يُسحب من القوس. */
.fab {
  position: fixed;
  z-index: 30;
  inset-inline-end: max(clamp(16px, 2.4vw, 28px), env(safe-area-inset-left));
  bottom: max(clamp(16px, 2.4vw, 28px), env(safe-area-inset-bottom));
  display: flex;
  gap: 3px;
  filter: drop-shadow(0 10px 16px rgba(10, 10, 10, 0.3)) drop-shadow(0 1px 2px rgba(10, 10, 10, 0.3));
}
/* الشقّ كريمي كما في اللوقو، لا فراغ يظهر منه ما خلف القوس */
.fab::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: calc(50% - 1.5px);
  width: 3px;
  background: var(--cream);
}
.fab a {
  display: grid;
  place-items: end center;
  width: 46px;
  height: 60px;
  padding-bottom: 12px;
  background: var(--orange);
  color: var(--ink);
  transition: transform var(--t-ui) var(--ease-out);
}
.fab a:first-child { border-start-start-radius: 100% 76.7%; }
.fab a:last-child { border-start-end-radius: 100% 76.7%; }
.fab svg { width: 20px; height: 20px; }
.fab a:active { transform: scale(0.97); transition-duration: var(--t-press); }
@media (hover: hover) {
  .fab a:hover { transform: translateY(-4px); }
}
.js .fab a:first-child { animation: fab-from-start var(--t-stage) var(--ease-pop) 700ms backwards; }
.js .fab a:last-child { animation: fab-from-end var(--t-stage) var(--ease-pop) 700ms backwards; }
@keyframes fab-from-start { from { opacity: 0; transform: translateX(14px); } }
@keyframes fab-from-end { from { opacity: 0; transform: translateX(-14px); } }

/* ═══ تكبير صورة الصنف ═══ */
.zoom {
  width: min(92vw, 520px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: var(--ink-2);
  color: var(--cream);
  overflow: hidden;
}
.zoom::backdrop { background: rgba(10, 10, 10, 0.78); }
.zoom[open] { animation: zoom-in var(--t-ui) var(--ease-out); }
@keyframes zoom-in {
  from { opacity: 0; transform: scale(0.95); }
}
.zoom figure { margin: 0; }
.zoom img {
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  background: var(--ink);
}
.zoom figcaption { padding: 14px 18px 18px; font-weight: 500; font-size: 18px; }
.zoom__x {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.7);
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out);
}
.zoom__x:active { transform: scale(0.97); }
.zoom__x svg { width: 20px; height: 20px; }

/* ═══ دخول الرأس ═══
   النصفان من جهتين متقابلتين يلتقيان عند الشقّ، ثم تستقر القاعدة
   بالوردمارك بتجاوز خفيف. القصة في جملة: اثنان يصيران واحداً.
   ونصفا الجملة في الرئيسية يدخلان من جهتيهما أيضاً، بعد الشخصيتين. */
.js .duo__half--him { opacity: 0; transform: translateX(-18px); }
.js .duo__half--her { opacity: 0; transform: translateX(18px); }
.js .duo__base { opacity: 0; transform: translateY(10px) scale(0.96); }
.js .from-r { opacity: 0; transform: translateX(16px); }
.js .from-l { opacity: 0; transform: translateX(-16px); }
.js .rise { opacity: 0; transform: translateY(8px); }
.is-in .duo__half,
.is-in .duo__base,
.is-in .from-r,
.is-in .from-l,
.is-in .rise { opacity: 1; transform: none; }
.is-in .duo__half {
  transition:
    opacity 460ms var(--ease-out),
    transform var(--t-stage) var(--ease-out);
}
.is-in .duo__base {
  transition:
    opacity 420ms var(--ease-out) 200ms,
    transform 560ms var(--ease-pop) 200ms;
}
.is-in .from-r,
.is-in .from-l,
.is-in .rise {
  transition:
    opacity 420ms var(--ease-out) var(--d, 320ms),
    transform 520ms var(--ease-out) var(--d, 320ms);
}
/* زر الرأس يدخل بحركة keyframes لا بانتقال، حتى يبقى انتقاله هو
   لضغطة الإصبع وحدها (140ms) لا لدخوله الطويل. */
.js .hero__go { opacity: 0; }
.is-in .hero__go {
  opacity: 1;
  animation: rise-in 520ms var(--ease-out) 440ms backwards;
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* ═══ الكشف عند التمرير ═══
   القوائم تنكشف عناصرها بتتابع، ويتوقف التأخير عند العاشر حتى لا يطول
   الانتظار. وشبكة الأمان: كل شيء يظهر بعد ٢٫٥ ثانية مهما صار (rv-all
   من السكربت المضمّن في الرأس). */
.items { --step: 30ms; }
.ix { --step: 60ms; }
.js .items > .item,
.js .ix > .ix__row,
.js .rv {
  opacity: 0;
  transform: translateY(12px);
}
/* أصناف المنيو تظهر بهدوء: ارتفاع قصير بلا قفز */
.js .items > .item { transform: translateY(8px); }
.js .items.is-on > .item,
.js .ix.is-on > .ix__row,
.rv-all .items > .item,
.rv-all .ix > .ix__row {
  opacity: 1;
  transform: none;
  transition:
    opacity 420ms var(--ease-out),
    transform 520ms var(--ease-out);
  transition-delay: calc(min(var(--i, 0), 10) * var(--step));
}
.js .rv.is-on,
.rv-all .rv {
  opacity: 1;
  transform: none;
  transition:
    opacity 520ms var(--ease-out),
    transform 640ms var(--ease-out);
}

/* ═══ تابلت ═══ */
@media (min-width: 720px) {
  .hero .duo { width: 380px; }
  .ix__a {
    grid-template-columns: auto minmax(0, 1.05fr) minmax(0, 1fr) auto;
    grid-template-areas: "g n m go";
    column-gap: 22px;
    padding: 28px 0;
  }
  .ix__m { display: grid; gap: 2px; }
  .nm__in {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "tx ph";
    align-items: center;
  }
  .nm__tx { grid-area: tx; }
  .nm__ph { grid-area: ph; justify-self: end; }
}

/* ═══ ديسكتوب ═══ */
@media (min-width: 1080px) {
  /* الرأس: يملأ الشاشة، ونصفا الجملة يحيطان بالقوس، والزر تحته */
  .hero {
    min-height: min(100svh, 1040px);
    display: grid;
    align-content: center;
  }
  .hero__in {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 420px minmax(0, 1fr);
    grid-template-areas:
      "a duo b"
      ". go  .";
    column-gap: clamp(36px, 4vw, 72px);
    row-gap: 30px;
    align-items: center;
  }
  .hero .duo { grid-area: duo; width: 100%; }
  .hero__say { display: contents; }
  .hero__say br { display: inline; }
  .hero__l { font-size: clamp(42px, 3.7vw, 58px); line-height: 1.3; }
  .hero__l--a { grid-area: a; justify-self: end; text-align: end; }
  .hero__l--b { grid-area: b; justify-self: start; text-align: start; }
  .hero__go { grid-area: go; }

  /* الصورة تتراكب على حدّ القسم الأسود */
  .nm__ph { margin-top: -200px; align-self: start; }

  /* المنيو: صفحتان متقابلتان بينهما خط الشقّ */
  .cat__in { max-width: 1000px; }
  .cat__h { margin-bottom: 44px; }
  .cat__o { max-width: 620px; }
  .items {
    columns: 2;
    column-gap: 112px;
    column-rule: 1px solid var(--rule);
  }
  .item { padding: 13px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .items > .item,
  .js .ix > .ix__row,
  .js .rv,
  .js .duo__half,
  .js .duo__base,
  .js .from-r,
  .js .from-l,
  .js .rise,
  .js .hero__go { opacity: 1; transform: none; transition: none; }
  .is-in .hero__go { animation: none; }
  .zoom[open],
  .js .fab a:first-child,
  .js .fab a:last-child { animation: none; }
  .skip, .chip, .item__t, .zoom__x, .btn, .btn svg, .top__nav a, .foot__nav a, .fab a,
  .ix__n, .ix__go { transition: none; }
}
