@charset "UTF-8";
/* ============================================================================
   مكتب عبدالرحمن النحيلي للمحاماة — «الرواق الوثائقي»
   الألوان والخطوط الفاصلة والإطار المزدوج مستخرجة حرفياً من بطاقة الأعمال
   وورق المراسلات في مجلد «المطبوعات».

   قواعد ملزمة:
     · صفر box-shadow في الملف كلّه.
     · تدرّج واحد فقط: المسطرة الذهبية (موجودة أصلاً في المطبوعة).
     · border-radius: 2px في الموقع كلّه.
     · خصائص منطقية حصراً (inline-start/end، block) — لا left/right.
     · لا letter-spacing على العربية إلا .08em للكلمة التعريفية.
     · لا شيء يُوسَّط إلا شريط عسير ٠٤.
     · لا بطاقات — الفصل خطوط 1px أو gap:1px فوق خلفية ذهبية.
   ========================================================================= */

/* ═══ ١ · الرموز ═══════════════════════════════════════════════════════════ */
:root {
  /* ألوان الهوية الخام — من المطبوعة، لا تُعدَّل */
  --navy-900: #0D0F1E;
  --navy-800: #14172E;
  --navy-700: #1B2244;
  --gold-500: #C99237;
  --gold-400: #E5A23C;
  --gold-600: #B98A2F;
  --gold-700: #8A6A24;

  /* الأسطح — ورق دافئ لا أبيض نقي */
  --paper:   #FBFAF7;
  --paper-2: #F4F1EA;
  --white:   #FFFFFF;

  /* الحبر — كلّه محسوب التباين */
  --ink:      #0D0F1E;            /* 17.6:1 على الورق */
  --ink-2:    #4A5058;            /*  7.9:1 ✓AAA */
  --ink-3:    #5F656E;            /*  5.6:1 ✓AA  */
  --on-navy:  #F2F0EB;            /* 16.4:1 على الكحلي */
  --on-navy-2: rgba(242, 240, 235, .72);
  --on-navy-3: rgba(242, 240, 235, .55);
  --on-navy-4: rgba(242, 240, 235, .45);

  /* أدوار الذهبي منضبطة بالتباين — غير قابلة للخلط */
  --gold-on-dark:  #E5A23C;       /* نص/رابط على الكحلي — 8.1:1 ✓ */
  --gold-on-light: #8A6A24;       /* نص/رابط على الورق  — 5.0:1 ✓ */
  --gold-display:  #B98A2F;       /* الورق: عناوين ≥24px وأيقونات فقط */
  /* ⛔ #C99237 نصاً على الورق = 2.75:1 — للخطوط والإطارات فقط */

  /* خطوط الهوية */
  --hair-light:   rgba(201, 146, 55, .28);
  --hair-dark:    rgba(201, 146, 55, .45);
  --hair-grid:    rgba(201, 146, 55, .22);
  --hair-neutral: #E2DCCF;
  --frame-offset: 8px;
  --rule-gold: linear-gradient(90deg, #8A6A24, #E5A23C);  /* التدرّج الوحيد */

  /* الشبكة والقياس */
  --container:   1320px;
  --pad-inline:  clamp(20px, 5vw, 72px);
  --grid-gap:    24px;
  --rail:        120px;
  --measure:     62ch;
  --measure-lead: 34em;

  /* الطباعة */
  --font-ar:  "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-lat: "Marcellus", Georgia, "Times New Roman", serif;

  --fs-h1:      clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --fs-h1-name: clamp(1rem, .9rem + .5vw, 1.375rem);
  --fs-h2:      clamp(1.75rem, 1.15rem + 2.6vw, 2.875rem);
  --fs-h3:      clamp(1.125rem, .98rem + .6vw, 1.375rem);
  --fs-lead:    clamp(1.0625rem, .98rem + .42vw, 1.3125rem);
  --fs-body:    clamp(.9375rem, .90rem + .22vw, 1.0625rem);
  --fs-small:   .8125rem;
  --fs-label:   .75rem;
  --fs-num:     clamp(1.25rem, .9rem + 1.4vw, 2rem);
  --fs-lat:     clamp(.6875rem, .62rem + .28vw, .8125rem);

  --lh-h1: 1.14;  --lh-h2: 1.25;  --lh-h3: 1.45;
  --lh-lead: 1.85; --lh-body: 1.9; --lh-lat: 1.3;

  --ls-lat: .26em;
  --ls-label: .08em;

  /* المسافات — أساس 4، إيقاع 8 */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;  --s-5: 20px;
  --s-6: 28px; --s-7: 36px;  --s-8: 48px;  --s-9: 64px;  --s-10: 88px;
  --s-11: 120px;
  --panel-pad:  clamp(88px, 11vw, 168px);
  --plate-inset: clamp(16px, 3vw, 40px);

  /* الحدود والتحكّمات */
  --radius: 2px;
  --ctl-h:  52px;
  --tap:    44px;
  --header-h: 76px;
  --header-h-sm: 64px;

  /* الحركة */
  --dur-ui: 220ms;
  --dur-reveal: 480ms;
  --dur-rule: 700ms;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* التركيز والاتجاه */
  --ring: #8A6A24;
  --flip: 1;
}

[dir="rtl"] { --flip: -1; }
.panel--navy { --ring: #E5A23C; }

/* ═══ ٢ · التصفير ═════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h-sm) + 24px);
  overflow-x: clip;                    /* شبكة أمان: يمنع الفيضان بلا إنشاء حاوية تمرير */
}

body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;              /* تزييف العريض يشوّه وصلات العربية */
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: var(--lh-h3); }
p, figure, figcaption, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* العزل الاتجاهي — بلا هذا تهاجر الشرطة والنقطة إلى الطرف الخطأ */
.lat, bdi.num {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}
.lat {
  font-family: var(--font-lat);
  letter-spacing: var(--ls-lat);
  line-height: var(--lh-lat);
}

/* ═══ ٣ · الوصول ══════════════════════════════════════════════════════════ */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip {
  position: fixed;
  inset-block-start: -100%;
  inset-inline-start: 1rem;
  z-index: 300;
  padding: 14px 22px;
  background: var(--navy-900);
  color: var(--on-navy);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: inset-block-start var(--dur-ui) var(--ease);
}
.skip:focus { inset-block-start: 1rem; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ═══ ٤ · أوليّات التخطيط ═════════════════════════════════════════════════ */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

/* overflow:hidden ليس تزيّناً: العلامة المائية تُقصّ عند حافة اللوح،
   وبدونه تُحدث فيضاناً أفقياً في الصفحة كلها على الشاشات الضيّقة. */
.panel {
  position: relative;
  padding-block: var(--panel-pad);
  overflow: hidden;
}
.panel--navy  { background: var(--navy-900); color: var(--on-navy); }
.panel--paper { background: var(--paper); }
.panel--paper2{ background: var(--paper-2); }

/* الرَّقَف — الخط الأفقي الذي يعبر الشاشة عند حدّ كل لوح */
.panel::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: var(--hair-neutral);
}
.panel--navy::before { background: var(--hair-dark); }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
}

/* ═══ ٥ · العناصر التوقيعية ═══════════════════════════════════════════════ */

/* المسطرة الذهبية — منقولة من .rule في بطاقة الأعمال */
.rule {
  inline-size: 64px;
  block-size: 1px;
  background: var(--rule-gold);
  border: 0;
  margin: var(--s-6) 0;
  transform-origin: 100% 50%;
}
[dir="ltr"] .rule { transform-origin: 0 50%; }

/* الكلمة التعريفية */
.eyebrow {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  color: var(--gold-on-light);
  margin: 0 0 var(--s-5);
}
.eyebrow::before {
  content: "";
  display: block;
  inline-size: 56px;
  block-size: 1px;
  background: var(--gold-500);
  margin-block-end: var(--s-3);
}
.panel--navy .eyebrow { color: var(--gold-on-dark); }

/* عنوان القسم */
.sec-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 600;
  color: var(--navy-800);
  max-inline-size: 18ch;
  text-wrap: balance;
}
.panel--navy .sec-title { color: var(--on-navy); }

.sec-lead {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
  max-inline-size: var(--measure-lead);
}
.panel--navy .sec-lead { color: var(--on-navy-2); }

/* اللوحة المؤطّرة — الإطار الناقص ضلعاً للصور النازفة */
.plate { position: relative; overflow: hidden; }
.plate picture { display: block; inline-size: 100%; block-size: 100%; }
.plate img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.04);
}
/* اللوحة النازفة: تلامس الحافة البعيدة عن النص (اليسرى في RTL = inline-end)،
   فيُحذف ضلعها الملامس وحده ويبقى الإطار على الأضلاع الثلاثة. */
.plate--bleed {
  border: 1px solid var(--gold-500);
  border-inline-end: 0;
}
.plate--bleed::after {
  content: "";
  position: absolute;
  inset: var(--frame-offset);
  inset-inline-end: 0;
  border: 1px solid rgba(201, 146, 55, .32);
  border-inline-end: 0;
  pointer-events: none;
  z-index: 2;
}
.plate--full {
  border: 1px solid var(--gold-500);
}
.plate--full::after {
  content: "";
  position: absolute;
  inset: var(--frame-offset);
  border: 1px solid rgba(201, 146, 55, .32);
  pointer-events: none;
}

/* تسمية اللوحة — آخر ما يجوز حذفه على الجوال */
.plate-cap {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--on-navy-3);
  padding-block: var(--s-4);
  padding-inline: var(--s-2);
}
.panel--paper .plate-cap,
.panel--paper2 .plate-cap { color: var(--ink-3); }

/* العلامة المائية — ثلاثة مواضع لا رابع */
.watermark {
  position: absolute;
  inline-size: 460px;
  max-inline-size: 60vw;
  opacity: .045;
  pointer-events: none;
  user-select: none;
}

/* ═══ ٦ · الهامش المرقّم ═══════════════════════════════════════════════════ */
/* الهامش المرقّم ملتصق بالحافة اليمنى (inline-start في RTL) */
.rail {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: var(--rail);
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.rail__line {
  position: absolute;
  inset-block: 18vh;
  inset-inline-start: calc(var(--rail) / 2);
  inline-size: 1px;
  background: var(--hair-light);
}
.rail__prog {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: calc(var(--rail) / 2 - 1px);
  inline-size: 3px;
  block-size: 34px;
  background: var(--gold-500);
  opacity: 0;                          /* لا تظهر قبل أن يُعلَّم قسم */
  transition: inset-block-start var(--dur-ui) linear, opacity var(--dur-ui) var(--ease);
}
.rail__list {
  position: relative;
  display: grid;
  gap: var(--s-5);
  pointer-events: auto;
}
.rail__item {
  display: block;
  font-family: var(--font-lat);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  color: var(--gold-600);
  opacity: .45;
  padding: 6px 10px;
  text-align: center;
  transition: opacity var(--dur-ui) var(--ease);
}
.rail__item:hover,
.rail__item[aria-current="true"] { opacity: 1; }

@media (min-width: 1280px) {
  .rail { display: flex; }
}

/* الرقم المدمج — البديل تحت 1280px */
.sec-num {
  display: block;
  font-family: var(--font-lat);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
  color: var(--gold-display);
  border-block-end: 1px solid var(--hair-light);
  padding-block-end: var(--s-2);
  margin-block-end: var(--s-5);
  inline-size: 56px;
}
.panel--navy .sec-num { color: var(--gold-on-dark); border-block-end-color: var(--hair-dark); }
@media (min-width: 1280px) { .sec-num { display: none; } }

/* ═══ ٧ · الأزرار ═════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: var(--ctl-h);
  padding-inline: var(--s-6);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1;
  transition: background-color var(--dur-ui) var(--ease),
              color var(--dur-ui) var(--ease),
              border-color var(--dur-ui) var(--ease);
}
.btn--solid {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
  font-weight: 600;
}
.btn--solid:hover { background: var(--gold-400); border-color: var(--gold-400); }

.btn--wire {
  border-color: rgba(201, 146, 55, .55);
  color: var(--on-navy);
}
.btn--wire:hover { border-color: var(--gold-500); background: var(--navy-800); }

.btn--gold-wire {
  border-color: var(--gold-500);
  color: var(--gold-on-dark);
}
.btn--gold-wire:hover { background: var(--navy-800); }

.btn--block { inline-size: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ═══ ٨ · ٠٠ الترويسة ═════════════════════════════════════════════════════ */
.hdr {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  block-size: var(--header-h);
  background: transparent;
  transition: background-color var(--dur-ui) var(--ease),
              block-size var(--dur-ui) var(--ease);
}
.hdr::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 1px;
  background: var(--hair-dark);
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease);
}
.hdr[data-stuck="true"] {
  background: var(--navy-900);
  block-size: var(--header-h-sm);
}
.hdr[data-stuck="true"]::after { opacity: 1; }

.hdr__in {
  block-size: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
/* ── الشعار الأفقي: الرمز يميناً والنص يساراً ──
   يستبدل التركيب العمودي (الرمز فوق النص) الذي كان يُثقل ترويسة بارتفاع 76px. */
.lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.lockup__mark {
  inline-size: 40px;
  block-size: auto;
  transition: inline-size var(--dur-ui) var(--ease);
}
.lockup__words {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.lockup__name { inline-size: 132px; block-size: auto; transition: inline-size var(--dur-ui) var(--ease); }
.lockup__tag  { inline-size: 118px; block-size: auto; transition: inline-size var(--dur-ui) var(--ease); }

.hdr[data-stuck="true"] .lockup__mark { inline-size: 34px; }
.hdr[data-stuck="true"] .lockup__name { inline-size: 116px; }
.hdr[data-stuck="true"] .lockup__tag  { inline-size: 104px; }

.lockup--lg { gap: 16px; }
.lockup--lg .lockup__mark { inline-size: 56px; }
.lockup--lg .lockup__name { inline-size: 186px; }
.lockup--lg .lockup__tag  { inline-size: 166px; }

@media (max-width: 420px) {
  .lockup__mark { inline-size: 34px; }
  .lockup__name { inline-size: 112px; }
  .lockup__tag  { inline-size: 100px; }
}

.nav { display: flex; align-items: center; gap: var(--s-8); }
.nav a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--on-navy-2);
  padding-block: var(--s-2);
  border-block-end: 1px solid transparent;
  transition: color var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
.nav a:hover { color: var(--on-navy); }
.nav a[aria-current="true"] { color: var(--on-navy); border-block-end-color: var(--gold-500); }

.hdr__actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }

.hdr__cta,
.hdr__login {
  min-block-size: 40px;
  padding-inline: var(--s-5);
  font-size: var(--fs-small);
}
.hdr__login { gap: var(--s-2); }
.hdr__login svg { inline-size: 15px; block-size: 15px; fill: currentColor; flex: none; }

.burger {
  display: none;
  inline-size: var(--tap);
  block-size: var(--tap);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 146, 55, .55);
  border-radius: var(--radius);
}
.burger span {
  display: block;
  inline-size: 18px;
  block-size: 1px;
  background: var(--on-navy);
  position: relative;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  block-size: 1px;
  background: var(--on-navy);
}
.burger span::before { inset-block-start: -6px; }
.burger span::after  { inset-block-start:  6px; }

/* درج الجوال */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: var(--navy-900);
  padding: var(--s-10) var(--pad-inline) var(--s-8);
  overflow-y: auto;
}
.drawer[data-open="true"] { display: block; }
.drawer__close {
  position: absolute;
  inset-block-start: var(--s-5);
  inset-inline-end: var(--pad-inline);
  inline-size: var(--tap);
  block-size: var(--tap);
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 146, 55, .55);
  border-radius: var(--radius);
  color: var(--on-navy);
  font-size: 20px;
  line-height: 1;
}
.drawer nav { display: grid; gap: 0; margin-block-start: var(--s-8); }
.drawer nav a {
  display: block;
  padding-block: var(--s-5);
  border-block-start: 1px solid rgba(201, 146, 55, .28);
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--on-navy);
}
.drawer nav a:last-child { border-block-end: 1px solid rgba(201, 146, 55, .28); }
.drawer__contact { margin-block-start: var(--s-8); display: grid; gap: var(--s-3); }

@media (max-width: 1099px) {
  .nav, .hdr__actions { display: none; }
  .burger { display: flex; }
}

/* ═══ ٨ب · نافذة الدخول إلى النظام ════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  overflow-y: auto;
}
.modal[data-open="true"] { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 6, 14, .82); }

.modal__panel {
  position: relative;
  inline-size: min(100%, 440px);
  margin-block: auto;
  padding: clamp(28px, 5vw, 44px);
  background: var(--navy-900);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius);
}
/* الإطار الداخلي — الوجه نفسه المنقول من بطاقة العمل */
.modal__panel::after {
  content: "";
  position: absolute;
  inset: var(--frame-offset);
  border: 1px solid rgba(201, 146, 55, .3);
  pointer-events: none;
}
.modal__close {
  position: absolute;
  inset-block-start: var(--s-3);
  inset-inline-end: var(--s-3);
  inline-size: var(--tap);
  block-size: var(--tap);
  display: grid;
  place-items: center;
  color: var(--on-navy-2);
  font-size: 22px;
  line-height: 1;
  z-index: 2;
}
.modal__close:hover { color: var(--on-navy); }

/* الرمز والعنوان على سطر واحد — الترتيب العمودي كان يترك فراغاً أعلى النافذة */
.modal__head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding-inline-end: var(--s-8);   /* مكان زرّ الإغلاق */
}
.modal__mark { inline-size: 40px; block-size: auto; flex: none; }
.modal__title { font-size: var(--fs-h3); font-weight: 600; color: var(--on-navy); }
.modal__lede {
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--on-navy-2);
  margin-block-start: var(--s-3);
}
.modal__panel .rule { margin: var(--s-5) 0 var(--s-6); }
.modal__note {
  font-size: var(--fs-label);
  line-height: 1.8;
  color: var(--on-navy-3);
  margin-block-start: var(--s-5);
  padding-block-start: var(--s-5);
  border-block-start: 1px solid rgba(242, 240, 235, .1);
}
.modal__note a { color: var(--gold-on-dark); border-block-end: 1px solid rgba(201, 146, 55, .5); }

/* الحقول */
.field { margin-block-end: var(--s-5); }
.field__label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--on-navy-2);
  margin-block-end: var(--s-2);
}
.field__wrap { position: relative; display: block; }
.field__input {
  display: block;
  inline-size: 100%;
  min-block-size: var(--ctl-h);
  padding-inline: var(--s-4);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(242, 240, 235, .22);
  border-radius: var(--radius);
  color: var(--on-navy);
  font-size: var(--fs-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  /* الحقل dir=ltr كي تُرتَّب الأرقام والمحارف اللاتينية ترتيباً صحيحاً،
     لكنّ محاذاته تُقسر يميناً ليبدأ الإدخال من حيث تبدأ عين القارئ العربي.
     المنطقي (start) يعطي هنا اليسار لأن اتجاه العنصر نفسه ltr. */
  text-align: right;
  transition: border-color var(--dur-ui) var(--ease), background-color var(--dur-ui) var(--ease);
}
[dir="ltr"] .field__input { text-align: left; }
.field__input::placeholder { color: rgba(242, 240, 235, .35); }
.field__input:hover { border-color: rgba(242, 240, 235, .38); }
.field__input:focus { border-color: var(--gold-500); background: rgba(255, 255, 255, .07); }
.field__input[aria-invalid="true"] { border-color: #E5A23C; background: rgba(229, 162, 60, .07); }

.field__wrap .field__input { padding-inline-end: 74px; }
.field__toggle {
  position: absolute;
  inset-block: 1px;
  inset-inline-end: 1px;
  inline-size: 68px;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--gold-on-dark);
  border-inline-start: 1px solid rgba(242, 240, 235, .18);
}
.field__hint { font-size: var(--fs-label); color: var(--on-navy-3); margin-block-start: var(--s-2); }
.field__err {
  font-size: var(--fs-label);
  color: #F0B461;
  margin-block-start: var(--s-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
/* الخطأ لا يُعرَّف باللون وحده */
.field__err::before { content: "!"; font-weight: 600; }
/* display:flex أعلاه يتغلّب على [hidden] فتظهر علامة التعجّب وحدها بلا خطأ */
.field__err[hidden] { display: none; }

.form__status {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--on-navy-2);
  margin-block-start: var(--s-4);
  min-block-size: 1.7em;
}
.form__status[data-tone="warn"] { color: #F0B461; }

/* ═══ ٩ · ٠١ الهيرو ═══════════════════════════════════════════════════════ */
/* صورة المقرّ بكامل الشاشة، والنصّ راسٍ في أسفلها، ثم يُمرَّر لبقية الموقع. */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--on-navy);
  min-block-size: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--header-h) + var(--s-8)) clamp(88px, 12vh, 132px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  filter: saturate(.78) contrast(1.03);
}
/* قشرة أحادية اللون (كحلي واحد يشتدّ نحو الأسفل) — لتُقرأ الكتلة النصّية،
   لا لتُحدث أثراً لونياً. لا لون ثانياً فيها ولا حدّ حادّاً. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
              rgba(13, 15, 30, .95) 0%,
              rgba(13, 15, 30, .89) 32%,
              rgba(13, 15, 30, .76) 62%,
              rgba(13, 15, 30, .66) 84%,
              rgba(13, 15, 30, .82) 100%);   /* يشتدّ أعلاه أيضاً لأجل الترويسة الشفافة */
}
.hero__in {
  position: relative;
  z-index: 2;
  max-inline-size: 62ch;
}

.hero h1 { margin: 0; }
.hero__name {
  display: block;
  font-size: var(--fs-h1-name);
  font-weight: 500;
  color: var(--on-navy-2);
  line-height: 1.5;
  margin-block-end: var(--s-3);
}
.hero__claim {
  display: block;
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: var(--lh-h1);
  color: var(--on-navy);
  max-inline-size: 30ch;
  text-wrap: balance;
}
.hero__lat {
  font-size: var(--fs-lat);
  color: rgba(229, 162, 60, .92);
  margin-block-start: var(--s-5);
}
.hero__lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--on-navy-2);
  max-inline-size: var(--measure-lead);
  margin-block-start: var(--s-6);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-block-start: var(--s-7);
}

/* مؤشّر التمرير — خط ذهبي رفيع ينبض ببطء عند قاع الهيرو */
.hero__cue {
  position: absolute;
  inset-block-end: clamp(24px, 4vh, 44px);
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 3;
  inline-size: var(--tap);
  block-size: var(--tap);
  display: grid;
  place-items: center;
}
[dir="ltr"] .hero__cue { transform: translateX(-50%); }
.hero__cue-line {
  inline-size: 1px;
  block-size: 34px;
  background: var(--gold-500);
  transform-origin: 50% 0;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.4); opacity: .45; }
  50%      { transform: scaleY(1);  opacity: 1; }
}

@media (max-width: 899px) {
  .hero {
    min-block-size: 100svh;
    padding-block: calc(var(--header-h) + var(--s-7)) clamp(72px, 14vh, 108px);
  }
  .hero__claim { font-size: clamp(1.75rem, 7vw, 2.375rem); max-inline-size: none; }
  .hero__actions .btn { inline-size: 100%; }
  .hero__bg { object-position: 62% 58%; }
}

/* ═══ ١٠ · ٠٢ البيان والفهرس ══════════════════════════════════════════════ */
.about__grid { row-gap: var(--s-10); }
.about__statement { grid-column: 1 / span 5; }
.about__index     { grid-column: 7 / span 6; }

.about__body { display: grid; gap: var(--s-5); }
.about__body p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
  max-inline-size: var(--measure);
}
.about__body p:first-child { font-size: var(--fs-lead); }

.toc__title {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--ink-3);
  font-weight: 600;
  padding-block-end: var(--s-3);
  border-block-end: 1px solid var(--hair-neutral);
}
.toc__row {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  min-block-size: 56px;
  border-block-end: 1px dotted rgba(201, 146, 55, .45);
  transition: border-color var(--dur-ui) var(--ease);
}
.toc__row:hover { border-block-end-color: rgba(201, 146, 55, .8); }
.toc__name {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--navy-800);
  transition: transform var(--dur-ui) var(--ease);
}
.toc__row:hover .toc__name { transform: translateX(calc(4px * var(--flip))); }
.toc__dots { flex: 1; }
.toc__num {
  font-family: var(--font-lat);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  color: var(--gold-display);
}

/* العلامة المائية بعيدة عن كتلة المتن كي لا تُقرأ أثراً في الطباعة */
.about .watermark { inset-block-end: -70px; inset-inline-end: -90px; inline-size: 460px; }

@media (max-width: 1023px) {
  .about__statement, .about__index { grid-column: 1 / -1; }
}

/* ═══ ١١ · ٠٣ مجالات الممارسة ═════════════════════════════════════════════ */
.practice__head { grid-column: 1 / span 6; margin-block-end: var(--s-9); }

.practice__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair-grid);
  border-block: 1px solid var(--hair-grid);
}
.pcell {
  background: var(--navy-900);
  padding: var(--s-7) 32px;
  min-block-size: 240px;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  border-block-start: 1px solid transparent;
  transition: background-color var(--dur-ui) var(--ease),
              border-color var(--dur-ui) var(--ease);
}
.pcell:hover { background: var(--navy-800); border-block-start-color: var(--gold-500); }
.pcell--wide { grid-column: span 2; }
/* خلية صامتة تُتمّ الصف الأخير — بدونها تظهر فجوة بلون الشبكة كأنها خطأ */
.pcell--filler { min-block-size: 0; padding: 0; pointer-events: none; }

.pcell__num {
  font-family: var(--font-lat);
  font-size: clamp(1.5rem, .9rem + 2.4vw, 2rem);
  font-variant-numeric: tabular-nums;
  color: var(--navy-700);
  line-height: 1;
  margin-block-end: var(--s-5);
}
.pcell h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--on-navy);
  line-height: var(--lh-h3);
}
.pcell p {
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: rgba(242, 240, 235, .66);
  margin-block-start: var(--s-3);
}
.pcell__court {
  margin-block-start: auto;
  padding-block-start: var(--s-5);
  font-size: var(--fs-label);
  line-height: 1.7;
  color: var(--gold-on-dark);
}
.pcell__court::before {
  content: "";
  display: block;
  inline-size: 32px;
  block-size: 1px;
  background: var(--gold-500);
  margin-block-end: var(--s-3);
}
.pcell__court b { color: var(--on-navy-3); font-weight: 400; }

@media (max-width: 1023px) {
  /* عمودان: عشر خلايا = خمسة صفوف تامّة، فلا حاجة للتمديد ولا للخلية الصامتة */
  .practice__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcell--wide { grid-column: span 1; }
  .pcell--filler { display: none; }
}
@media (max-width: 639px) {
  .practice__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    background: none;
    border-block: 0;
  }
  .pcell { border-block-start: 1px solid var(--hair-light); min-block-size: 0; }
  .pcell--wide { grid-column: span 1; }
}

/* ═══ ١٢ · ٠٤ شريط نطاق العمل ═════════════════════════════════════════════ */
.band { background: var(--navy-900); padding-block: 0; }
.band::before { display: none; }
.band__frame {
  position: relative;
  block-size: clamp(300px, 42vh, 460px);
  border: 1px solid var(--gold-500);
  overflow: hidden;
}
.band__frame::after {
  content: "";
  position: absolute;
  inset: var(--frame-offset);
  border: 1px solid rgba(201, 146, 55, .32);
  pointer-events: none;
  z-index: 3;
}
.band__frame img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  filter: saturate(.85);
}
/* القشرة خفيفة لأن سطوع الأصل رُفع في الملف نفسه؛
   مضاعفة الإظلام هنا كانت تُحيل الصورة إلى مستطيل أسود. */
.band__scrim {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 30, .58);   /* لون مسطّح — لا تدرّج */
  z-index: 1;
}
.band__copy {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  z-index: 2;
  padding: var(--s-8);
  max-inline-size: 48ch;
}
.band__copy .eyebrow { color: var(--gold-on-dark); }
.band__copy p {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--on-navy);
}
.band__rafaf {
  position: absolute;
  inset-inline: 0;
  block-size: 1px;
  background: var(--hair-dark);
}
.band .plate-cap { background: var(--navy-900); }

@media (max-width: 639px) {
  .band__frame { block-size: 280px; }
  .band__copy { padding: var(--s-6); }
}

/* ═══ ١٣ · ٠٥ كيف نعمل ════════════════════════════════════════════════════ */
.method__head { grid-column: 1 / span 6; margin-block-end: var(--s-9); }

.step {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: start;
  padding-block: var(--s-7);
  border-block-start: 1px solid var(--hair-light);
  transition: background-color var(--dur-ui) var(--ease),
              border-color var(--dur-ui) var(--ease);
}
.step:hover { background: var(--paper-2); border-block-start-color: var(--gold-500); }
.step:last-child { border-block-end: 1px solid var(--hair-light); }

.step__num {
  grid-column: 1 / span 2;
  font-family: var(--font-lat);
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  color: var(--gold-display);
  line-height: 1.2;
}
.step h3 {
  grid-column: 3 / span 4;
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--navy-800);
}
.step p {
  grid-column: 7 / span 6;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
  max-inline-size: var(--measure);
}

@media (max-width: 899px) {
  .step { grid-template-columns: auto minmax(0, 1fr); row-gap: var(--s-3); }
  .step__num { grid-column: 1; font-size: 24px; }
  .step h3 { grid-column: 2; align-self: center; }
  .step p { grid-column: 1 / -1; }
}

/* ═══ ١٤ · ٠٦ ما نلتزم به ═════════════════════════════════════════════════ */
.values__grid { row-gap: var(--s-9); }
.values__head { grid-column: 1 / span 4; align-self: start; }
.values__cells {
  grid-column: 6 / span 7;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair-grid);
  border: 1px solid var(--hair-grid);
}
.vcell {
  background: var(--paper-2);
  padding: 32px 28px;
  min-inline-size: 0;
}
.vcell::before {
  content: "";
  display: block;
  inline-size: 32px;
  block-size: 1px;
  background: var(--gold-500);
  margin-block-end: var(--s-5);
}
.vcell h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--navy-800);
}
.vcell p {
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--ink-2);
  margin-block-start: var(--s-3);
}

@media (max-width: 1023px) {
  .values__head, .values__cells { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .values__cells { grid-template-columns: minmax(0, 1fr); }
}

/* ═══ ١٥ · ٠٧ الفريق ══════════════════════════════════════════════════════ */
.team__head { grid-column: 1 / span 6; margin-block-end: var(--s-9); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
}
.member {
  padding: var(--s-7) var(--s-6) 0;
  border-block-start: 1px solid var(--hair-light);
  min-inline-size: 0;
}
.member__mono {
  inline-size: 56px;
  block-size: 56px;
  display: grid;
  place-items: center;
  background: var(--navy-900);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius);
  color: var(--gold-on-dark);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}
.member h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--navy-800);
  margin-block-start: var(--s-5);
}
.member__role {
  font-size: var(--fs-small);
  color: var(--gold-on-light);
  margin-block-start: var(--s-2);
}
/* الحقل المتروك عمداً — إقرار بصري بأن البيانات لم تُخترع */
.member__blank {
  display: block;
  inline-size: 32px;
  block-size: 1px;
  background: rgba(201, 146, 55, .45);
  margin-block-start: var(--s-4);
}

@media (max-width: 899px) { .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .team__grid { grid-template-columns: minmax(0, 1fr); } }

/* ═══ ١٦ · ٠٨ مقرّ المكتب — لوح الضباب ════════════════════════════════════ */
/* القسم مدمج ومختصر عمداً، فارتفاعه أقلّ ممّا كان قبل الدمج */
.office {
  position: relative;
  min-block-size: clamp(400px, 54vh, 560px);
  display: flex;
  align-items: center;
  padding-block: var(--s-9);
  overflow: hidden;
  background: var(--paper);
}
.office::before { background: var(--hair-neutral); z-index: 4; }
.office__bg {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 50% 78%;
  filter: saturate(.72) contrast(1.04);
}
/* قشرة بيضاء مسطّحة — لا تدرّج. القيمة مقيسة على أدكن بقعة في الضباب
   (سفح الجبل ≈ #787E78): بعد القشرة تصير ≈ #BCC0BC، والنص #0D0F1E عليها ≈ 9.4:1 ✓AAA */
.office__scrim {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .52);
}
/* الإطار المزدوج — استنساخ حرفي لإطار بطاقة العمل */
.office__frame {
  position: absolute;
  inset: var(--plate-inset);
  border: 1px solid var(--gold-500);
  pointer-events: none;
}
.office__frame::after {
  content: "";
  position: absolute;
  inset: var(--frame-offset);
  border: 1px solid rgba(201, 146, 55, .35);
}
.office__in { position: relative; z-index: 2; inline-size: 100%; }
.office__grid { align-items: center; row-gap: var(--s-8); }
.office__copy { grid-column: 1 / span 5; }

/* ── صندوق الخريطة ── */
.office__map { grid-column: 7 / span 6; }
.mapbox {
  position: relative;
  border: 1px solid var(--gold-500);
  background: var(--paper-2);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.mapbox::after {
  content: "";
  position: absolute;
  inset: var(--frame-offset);
  border: 1px solid rgba(201, 146, 55, .32);
  pointer-events: none;
  z-index: 2;
}
.mapbox iframe {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  border: 0;
  /* الخرائط تُطبع بألوان صارخة تعادي الكحلي والذهبي؛ يُخفَّض تشبّعها لتنتمي للوحة */
  filter: saturate(.72) contrast(1.02);
}
.mapbox__cap { padding-block-start: var(--s-3); }
.mapbox__cap a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-block-size: var(--tap);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--gold-on-light);
  border-block-end: 1px solid transparent;
  transition: border-color var(--dur-ui) var(--ease);
}
.mapbox__cap a:hover { border-block-end-color: var(--gold-500); }
.mapbox__cap svg { inline-size: 14px; block-size: 14px; fill: currentColor; flex: none; }

@media (max-width: 1023px) {
  .office__map { grid-column: 1 / -1; }
  .mapbox { aspect-ratio: 3 / 2; }
}

/* سطر عنوان واحد بدل سجلّ من خمسة أسطر — القسم مدمج ومختصر عمداً */
.office__addr {
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--ink-2);
  max-inline-size: 56ch;
  margin-block-start: var(--s-2);
}
.office__addr span[lang="en"] { font-family: var(--font-lat); letter-spacing: .12em; color: var(--navy-800); }

.office__contact {
  margin-block-start: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-8);
}
.office__contact a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-block-size: var(--tap);
  font-size: clamp(1.0625rem, .95rem + .5vw, 1.375rem);
  font-weight: 500;
  color: var(--navy-800);
  border-block-end: 1px solid transparent;
  transition: color var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
.office__contact a:hover { color: var(--gold-on-light); border-block-end-color: var(--gold-500); }
.office__contact svg { inline-size: 18px; block-size: 18px; fill: var(--gold-display); flex: none; }

/* التسمية على لوح فاتح: حبر داكن — لا اللون الفاتح المخصّص للألواح الكحلية */
.office .plate-cap { position: relative; z-index: 2; color: var(--ink-3); }

@media (max-width: 1023px) { .office__copy { grid-column: 1 / -1; } }
@media (max-width: 639px) {
  .office__scrim { background: rgba(255, 255, 255, .68); }
  .office__frame { inset: 16px; }
}

/* ═══ ١٨ · ١٠ التذييل ═════════════════════════════════════════════════════ */
.ftr {
  position: relative;
  background: var(--navy-900);
  color: var(--on-navy);
  padding-block: 72px 40px;
  overflow: hidden;
}
/* الإطار الذهبي المزدوج علوياً — إغلاق يردّد الافتتاح */
.ftr::before,
.ftr::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  block-size: 1px;
  background: rgba(201, 146, 55, .28);
}
.ftr::before { inset-block-start: 0; }
.ftr::after  { inset-block-start: 5px; }

.ftr__grid { row-gap: var(--s-8); position: relative; z-index: 2; }
.ftr__brand { grid-column: 1 / span 4; }
.ftr__nav   { grid-column: 6 / span 3; }
.ftr__reach { grid-column: 10 / span 3; }

.ftr__brand img { inline-size: 190px; }
.ftr__tag {
  font-size: var(--fs-small);
  color: var(--on-navy-3);
  margin-block-start: var(--s-4);
}
.ftr__lat { font-size: var(--fs-lat); color: var(--on-navy-4); margin-block-start: var(--s-2); }

/* عنوان بمستوى h2 دلالياً (كي لا يُقفَز من h2 إلى h4) وبمقاس تسمية بصرياً */
.ftr__h {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  font-weight: 600;
  line-height: 1.5;
  color: var(--gold-on-dark);
  margin-block-end: var(--s-4);
}
.ftr__nav a, .ftr__reach a {
  display: flex;
  align-items: center;
  min-block-size: var(--tap);
  font-size: var(--fs-small);
  color: var(--on-navy-2);
  transition: color var(--dur-ui) var(--ease);
}
.ftr__nav a:hover, .ftr__reach a:hover { color: var(--on-navy); }
.ftr__reach p { font-size: var(--fs-small); color: var(--on-navy-3); line-height: 1.8; }

.ftr__hr {
  block-size: 1px;
  background: rgba(242, 240, 235, .10);
  margin-block: 40px;
  border: 0;
  position: relative;
  z-index: 2;
}
.ftr__legal {
  position: relative;
  z-index: 2;
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--on-navy-3);
  max-inline-size: 72ch;
}
.ftr__credit {
  position: relative;
  z-index: 2;
  font-size: var(--fs-label);
  line-height: 1.8;
  color: var(--on-navy-4);
  margin-block-start: var(--s-5);
  max-inline-size: 82ch;
}
.ftr__credit a { border-block-end: 1px solid rgba(242, 240, 235, .2); }
.ftr__credit a:hover { color: var(--gold-on-dark); border-block-end-color: var(--gold-500); }

.ftr__end {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-block-start: var(--s-8);
  padding-block-start: var(--s-5);
  border-block-start: 1px solid rgba(242, 240, 235, .10);
  font-size: var(--fs-small);
  color: var(--on-navy-4);
}
.ftr__end .lat { font-size: var(--fs-label); color: rgba(229, 162, 60, .85); }
.ftr__rights {
  margin-inline-start: var(--s-3);
  color: var(--on-navy-3);
  border-block-end: 1px solid rgba(242, 240, 235, .18);
}
.ftr__rights:hover { color: var(--gold-on-dark); border-block-end-color: var(--gold-500); }

.ftr .watermark { inset-block-end: -80px; inset-inline-start: -80px; inline-size: 520px; }

@media (max-width: 899px) {
  .ftr__brand, .ftr__nav, .ftr__reach { grid-column: 1 / -1; }
}

/* ═══ ١٩ · الحركة ═════════════════════════════════════════════════════════ */
/* الإخفاء الابتدائي مشروط بوجود JS — بدونه يظهر كل شيء.
   لا يجوز أن يعتمد ظهور محتوى موقع مكتب محاماة على نجاح سكربت. */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-reveal) var(--ease),
              transform var(--dur-reveal) var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .rule {
  transform: scaleX(0);
  transition: transform var(--dur-rule) var(--ease);
}
.js .rule.is-in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .rule { transform: scaleX(1) !important; }
}

/* ═══ ٢٠ · الأداء ═════════════════════════════════════════════════════════ */
.practice, .method, .values, .team, .office, .contact {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* ═══ ٢١ · الطباعة على الورق ══════════════════════════════════════════════ */
@media print {
  .hdr, .rail, .drawer, .skip, .watermark, .band, .hero__cue,
  .hero__bg, .hero__scrim, .office__bg, .office__scrim { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .panel, .hero { padding-block: 12pt; min-block-size: 0; background: #fff !important; color: #000 !important; }
  .hero__claim, .sec-title, .pcell h3, .step h3, .member h3 { color: #000 !important; }
  .pcell, .vcell { background: #fff !important; border: 1px solid #ccc; }
  .pcell p, .step p, .about__body p { color: #333 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}
