/* Octovel — الموقع، النسخة 2.6 (7 ت1 2026): الجمعيات (قسم في الرئيسية، بطاقة ثالثة، اختيار ثالث)، وتصحيحات تدقيق المواءمة.
   البنية: واجهة تكتمل في أول شاشة، عنوان في سطرين، والأعمدة الثمانية عنصراً بصرياً واضحاً بجانب النص.
   الهوية ثابتة: أخضر داكن، كريمي، ذهبي، وخط Zain مستضافاً مع الموقع. */

@font-face { font-family: "Zain"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/zain-400.woff2") format("woff2"); }
@font-face { font-family: "Zain"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/zain-700.woff2") format("woff2"); }
@font-face { font-family: "Zain"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/zain-800.woff2") format("woff2"); }


:root {
  --ground: #0F2B25;
  --deep: #0A201B;
  --paper: #EEF1EC;
  --muted: #9DB3A8;
  --rule: #2A473F;
  --paper-rule: #C9D3CC;
  --octave: #D2A23A;
  --octave-hi: #E0B552;
  --octave-deep: #A47A1F;
  --ink-soft: #3F5A52;
  --bad: #9C2B1E;

  /* سلّم الخط: ثمانية أحجام */
  --fs-1: clamp(2.125rem, 5.4vw, 4.625rem);   /* 34 → 74: عنوان الواجهة ورؤوس الصفحات */
  --fs-2: clamp(1.875rem, 4.1vw, 3.5rem);     /* 30 → 56: عناوين الأقسام */
  --fs-3: clamp(1.625rem, 2.9vw, 2.5rem);     /* 26 → 40: الجملة الكبيرة والأرقام */
  --fs-4: clamp(1.5rem, 2.05vw, 1.75rem);     /* 24 → 28: عناوين الصفوف */
  --fs-5: clamp(1.25rem, 1.6vw, 1.375rem);    /* 20 → 22: الفقرة الأولى */
  --fs-6: 1.1875rem;                          /* 19: النص */
  --fs-7: 1.0625rem;                          /* 17: الثانوي */
  --fs-8: .875rem;                            /* 14: التسميات */

  --font: "Zain", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  --edge: clamp(20px, 5vw, 72px);
  --head-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 20px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--font);
  font-size: var(--fs-6);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--octave); text-decoration-thickness: 2px; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--octave); outline-offset: 3px;
}
.band--paper a:focus-visible, .band--paper button:focus-visible,
.band--paper input:focus-visible, .band--paper textarea:focus-visible { outline-color: var(--ground); }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 800; text-wrap: balance; }
h3 { font-size: var(--fs-5); }
p { margin: 0; }
p, li, dd { text-wrap: pretty; }

.wrap { width: 100%; max-width: 82rem; margin-inline: auto; padding-inline: var(--edge); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.nb { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.en { direction: ltr; text-align: end; font-weight: 400; color: var(--muted); font-size: var(--fs-7); line-height: 1.6; }
[dir="rtl"] .en { text-align: right; }
.band--paper .en { color: var(--ink-soft); }
.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 60;
  background: var(--paper); color: var(--ground); padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* الأسهم مرسومة: خط Zain لا يحويها */
.arr { display: inline-block; width: .85em; height: .85em; margin-inline: .28em; vertical-align: -.08em; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.arr--ltr { transform: scaleX(-1); }

/* نِسَب الأوكتاف للأعمدة الثمانية أينما رُسمت */
.art span:nth-child(1), .octave li:nth-child(1), .foot-ghost span:nth-child(1) { --r: 1; }
.art span:nth-child(2), .octave li:nth-child(2), .foot-ghost span:nth-child(2) { --r: 1.125; }
.art span:nth-child(3), .octave li:nth-child(3), .foot-ghost span:nth-child(3) { --r: 1.25; }
.art span:nth-child(4), .octave li:nth-child(4), .foot-ghost span:nth-child(4) { --r: 1.3333; }
.art span:nth-child(5), .octave li:nth-child(5), .foot-ghost span:nth-child(5) { --r: 1.5; }
.art span:nth-child(6), .octave li:nth-child(6), .foot-ghost span:nth-child(6) { --r: 1.6667; }
.art span:nth-child(7), .octave li:nth-child(7), .foot-ghost span:nth-child(7) { --r: 1.875; }
.art span:nth-child(8), .octave li:nth-child(8), .foot-ghost span:nth-child(8) { --r: 2; }
.art span:nth-child(1) { --i: 0; } .art span:nth-child(2) { --i: 1; } .art span:nth-child(3) { --i: 2; } .art span:nth-child(4) { --i: 3; }
.art span:nth-child(5) { --i: 4; } .art span:nth-child(6) { --i: 5; } .art span:nth-child(7) { --i: 6; } .art span:nth-child(8) { --i: 7; }

/* ---------- الرأس ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-head.is-stuck { background: rgba(15, 43, 37, .96); border-bottom-color: var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 16px 28px; height: var(--head-h); }
.brand { display: flex; align-items: center; width: 132px; min-height: 44px; flex: none; direction: ltr; position: relative; z-index: 2; }
.nav { display: flex; gap: 4px 26px; margin-inline: auto; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-weight: 700; font-size: var(--fs-7);
  color: rgba(238, 241, 236, .8); white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; inset: auto 0 6px 0; height: 2px; background: var(--octave);
  transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-cta { display: none; }
.head-cta { flex: none; }
.head-wa {
  display: none; position: relative; z-index: 2; flex: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; background: var(--paper); margin-inline-start: auto;
  transition: box-shadow .2s;
}
.head-wa img { width: 30px; height: 30px; }
.head-wa:hover { box-shadow: 0 0 0 3px var(--octave); }
.nav-toggle {
  display: none; position: relative; z-index: 2; align-items: center; justify-content: center;
  min-height: 44px; min-width: 88px; font: inherit; font-weight: 700; font-size: var(--fs-7);
  color: var(--paper); background: transparent; border: 1.5px solid rgba(238, 241, 236, .5);
  border-radius: 999px; padding: 0 1.1em; cursor: pointer;
}

/* ---------- الأزرار ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px;
  font: inherit; font-weight: 700; font-size: var(--fs-6); line-height: 1.35; text-decoration: none; cursor: pointer; text-align: center;
  padding: .55em 1.6em; border: 1.5px solid var(--paper); border-radius: 999px;
  background: var(--paper); color: var(--ground);
  transition: background-color .2s, border-color .2s, color .2s, transform .12s;
}
.btn::after {
  content: ""; flex: none; width: .95em; height: .95em; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform .25s var(--ease);
}
.btn:hover::after { transform: translateX(-5px); }
.btn:hover { background: var(--octave); border-color: var(--octave); color: var(--ground); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: progress; }
.btn--line { background: transparent; border-color: rgba(238, 241, 236, .55); color: var(--paper); }
.btn--line:hover { background: var(--octave); border-color: var(--octave); color: var(--ground); }
.btn--sm { min-height: 44px; padding: .3em 1.25em; font-size: var(--fs-7); }
.btn--sm::after { content: none; }
.band--paper .btn { background: var(--ground); border-color: var(--ground); color: var(--paper); }
.band--paper .btn:hover { background: var(--octave); border-color: var(--octave); color: var(--ground); }
.band--paper .btn--line { background: transparent; border-color: var(--ground); color: var(--ground); }
.band--paper .btn--line:hover { background: var(--octave); border-color: var(--octave); color: var(--ground); }
/* زرّ الرأس مفرَّغ فوق الواجهة، ويمتلئ بالكريمي بعد أول تمرير؛ الذهبي للمرور وحده */
.site-head:not(.is-stuck) .head-cta { background: transparent; border-color: rgba(238, 241, 236, .55); color: var(--paper); }
.site-head:not(.is-stuck) .head-cta:hover { background: var(--octave); border-color: var(--octave); color: var(--ground); }

/* ---------- الأعمدة الثمانية عنصراً بصرياً ---------- */
.art {
  direction: ltr; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2.6%;
  align-items: end; height: clamp(150px, 32vh, 290px); pointer-events: none;
}
.art span { height: calc(50% * var(--r)); background: var(--paper); transform-origin: bottom; }
.art span:nth-child(8) {
  background: linear-gradient(to top, var(--octave) 62%, transparent 62%);
  box-shadow: inset 0 0 0 3px var(--octave);
}
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- واجهة الرئيسية ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: var(--head-h);
}
.hero-in { position: relative; z-index: 1; margin-block: auto; padding-block: clamp(10px, 2vh, 28px) clamp(18px, 3.4vh, 44px); }
.promise { font-size: var(--fs-1); line-height: 1.2; }
.promise .line { display: block; overflow: hidden; padding-block: .1em; margin-block: -.1em; }
.promise .line > span { display: block; }
.promise .gold { color: var(--octave); }
.hero-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34%); gap: 24px clamp(28px, 4vw, 64px); align-items: end; margin-top: clamp(14px, 2.4vh, 28px); }
.sub { max-width: 40rem; font-size: var(--fs-5); line-height: 1.6; color: rgba(238, 241, 236, .9); }
.hero .actions { margin-top: clamp(16px, 2.6vh, 28px); }
.hero-en { margin-top: clamp(10px, 1.8vh, 18px); }
.hero-steps {
  position: relative; z-index: 1; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule);
}
.hero-steps li { display: flex; align-items: baseline; gap: 12px; padding: 14px 0 18px; font-weight: 700; font-size: var(--fs-6); }
.hero-steps li + li { border-inline-start: 1px solid var(--rule); padding-inline-start: 22px; }
.hero-steps .n { direction: ltr; color: var(--muted); font-size: var(--fs-8); font-weight: 800; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  .art span { animation: grow 1s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
  .promise .line > span { animation: lift .8s var(--ease) both; }
  .promise .line:nth-child(2) > span { animation-delay: .1s; }
  .hero .sub, .hero .actions, .hero-en, .hero-steps { animation: fade .8s var(--ease) .3s both; }
}
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes lift { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- الشريط الذهبي ---------- */
.marquee { position: relative; background: var(--octave); color: var(--ground); }
.marquee-view { overflow: hidden; padding-block: 14px; margin-inline-start: 52px; }
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.marquee li {
  display: flex; align-items: center; gap: 36px; padding-inline-start: 36px;
  font-weight: 800; font-size: var(--fs-5); line-height: 1.5; white-space: nowrap;
}
.marquee li::after { content: ""; width: 7px; height: 7px; background: currentColor; }
.marquee-toggle {
  position: absolute; z-index: 2; inset-block: 0; inset-inline-start: 0; width: 52px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--octave); color: var(--ground); border: 0; border-inline-end: 1px solid rgba(15, 43, 37, .25);
}
.marquee-toggle::before { content: ""; box-sizing: border-box; width: 13px; height: 15px; border-inline: 4px solid currentColor; }
.marquee-toggle[aria-pressed="true"]::before { width: 0; height: 0; border: 8px solid transparent; border-inline-end: 12px solid currentColor; border-inline-start-width: 0; }
.marquee-toggle:focus-visible { outline-color: var(--ground); outline-offset: -5px; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 55s linear infinite; }
  .marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-toggle { display: none; }
  .marquee-view { margin-inline-start: 0; }
  .marquee-track { display: block; width: auto; }
  .marquee ul { flex: initial; flex-wrap: wrap; justify-content: center; row-gap: 4px; padding-inline: var(--edge); }
  .marquee li { white-space: normal; }
  .marquee ul + ul { display: none; }
  .marquee li { padding-inline-start: 0; gap: 18px; margin-inline: 9px; }
  .marquee li:last-child::after { content: none; }
}
@keyframes slide { to { transform: translateX(50%); } }

/* ---------- الأقسام ---------- */
.band { position: relative; padding-block: clamp(64px, 10vw, 136px); }
.band--paper { background: var(--paper); color: var(--ground); color-scheme: light; }
.band--line { border-top: 1px solid var(--rule); }
.band--tight { padding-block: clamp(40px, 6vw, 84px); }
.band--join { padding-top: 0; }
/* قسم الجمعيات في الرئيسية: أرضية أغمق وخطّ ذهبي فوقه، ليتميّز عن جارَيه */
.band--deep { background: var(--deep); border-top: 3px solid var(--octave); border-bottom: 1px solid var(--rule); }
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 88px); align-items: start; }
.feature h2 { font-size: var(--fs-2); line-height: 1.2; }
.tag { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: var(--fs-7); font-weight: 800; color: var(--octave); }
.tag::before { content: ""; flex: none; width: 56px; height: 3px; background: var(--octave); }
.feature .lead { color: rgba(238, 241, 236, .92); }
.feature .actions { margin-top: 1.6rem; }
.feature .en { margin-top: 1.1rem; }
.lead { font-size: var(--fs-5); line-height: 1.65; }
.sec-head { margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head h2 { font-size: var(--fs-2); line-height: 1.2; max-width: 22em; }
.sec-head h2::before { content: ""; display: block; width: 56px; height: 3px; background: var(--octave); margin-bottom: 22px; }
.sec-head .en { margin-top: 14px; }
.foot-note { margin-top: 2rem; }

/* ---------- لماذا Octovel ---------- */
.compare { width: 100%; border-collapse: collapse; }
.compare th { width: 50%; text-align: start; font-size: var(--fs-7); font-weight: 700; color: var(--ink-soft); padding: 0 0 14px; }
.compare th:last-child { color: var(--ground); padding-inline-start: 28px; }
.compare td { vertical-align: top; padding: 22px 0; border-top: 1px solid var(--paper-rule); }
.compare td:first-child { color: var(--ink-soft); font-size: var(--fs-5); padding-inline-end: 28px; }
.compare td:last-child { font-weight: 800; font-size: var(--fs-4); line-height: 1.4; padding-inline-start: 28px; border-inline-start: 3px solid var(--octave); }

/* ---------- المسارات: لوح ثابت بجانب قائمة مرقّمة ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: clamp(32px, 6vw, 104px); align-items: start; }
.split-visual { position: sticky; top: calc(var(--head-h) + 36px); }
.octave {
  list-style: none; margin: 0; padding: 0; direction: ltr;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2.4%; align-items: end;
  border-bottom: 1px solid var(--rule);
}
.octave li {
  height: calc(10rem * var(--r)); background: var(--paper); color: var(--ground);
  box-shadow: inset 0 0 0 1.5px var(--paper);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px;
  font-weight: 800; font-size: var(--fs-7); line-height: 1; transition: background-color .35s, color .35s;
}
.octave li:nth-child(8) { background: linear-gradient(to top, var(--octave) 62%, transparent 62%); box-shadow: inset 0 0 0 3px var(--octave); }
/* غير المضاء إطار رفيع بلا امتلاء؛ المضاء ممتلئ */
.js .octave.is-live li:not(.is-on):not(:nth-child(8)) { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px rgba(238, 241, 236, .38); }
.octave li { position: relative; overflow: hidden; cursor: pointer; }
.octave li:nth-child(8)::after {
  content: ""; position: absolute; inset: 38% 0 34px 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .75) 50%, transparent 70%); background-size: 260% 100%; background-position: 130% 0;
}
.js .octave.is-live li:nth-child(8) { transition: box-shadow .4s, filter .4s; }
.js .octave.is-live li:nth-child(8).is-on {
  background: linear-gradient(to top, var(--octave-hi) 62%, rgba(224, 181, 82, .14) 62%);
  box-shadow: inset 0 0 0 3px var(--octave-hi), 0 0 26px rgba(224, 181, 82, .75), 0 0 64px rgba(210, 162, 58, .4);
}
.js .octave.is-live li:nth-child(8).is-on::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .octave.is-live li:nth-child(8).is-on::after { animation: sheen 1.8s ease-in-out infinite; }
}
@keyframes sheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.split-visual .actions { margin-top: 1.4rem; }
.rows .n, .rows h3 { transition: color .25s; }
.rows li.is-hot { background: #1A352F; box-shadow: 16px 0 0 #1A352F, -16px 0 0 #1A352F; }
.rows li.is-hot .n, .rows li.is-hot h3 { color: var(--octave); }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 14px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.rows .n { direction: ltr; text-align: end; font-weight: 800; font-size: var(--fs-8); color: var(--muted); padding-top: .85em; font-variant-numeric: tabular-nums; }
[dir="rtl"] .rows .n, [dir="rtl"] .stations .n, [dir="rtl"] .tl .n { text-align: right; }
.rows h3 { font-size: var(--fs-4); font-weight: 800; line-height: 1.35; }
.rows p { margin-top: 6px; color: var(--muted); max-width: 38rem; }
.rows li:nth-child(8) .n, .rows li:nth-child(8) h3 { color: var(--octave); }
/* فراغ قبل الصف الأول وبعد الأخير (يحسبه السكربت) يتيح توسيطهما عند الأعمدة حين يُضغط عموداهما */
@media (min-width: 901px) { .rows { margin-block: var(--row-lead, 0px) var(--row-tail, 0px); } }

/* ---------- خلايا مرقّمة ---------- */
.cells {
  list-style: none; margin: 0; padding: 1px; counter-reset: cell;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule);
}
.cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cells li { counter-increment: cell; background: var(--ground); padding: clamp(22px, 2.6vw, 34px); }
.cells li::before {
  content: counter(cell, decimal-leading-zero); display: block; direction: ltr; text-align: right;
  font-weight: 800; font-size: var(--fs-3); line-height: 1; color: var(--octave);
  margin-bottom: 18px; font-variant-numeric: tabular-nums;
}
.cells b, .cells strong { display: block; font-size: var(--fs-5); font-weight: 800; line-height: 1.35; margin-bottom: 6px; }
.band--paper .cells { background: var(--paper-rule); }
.band--paper .cells li { background: var(--paper); }
.band--paper .cells li::before { color: var(--octave-deep); }
/* المحطّات الأربع: الخانة تتلوّن وترتفع عند مرور الفأرة، وعند اللمس على الهاتف */
.cells--steps li { position: relative; transition: background-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.cells--steps li::before { transition: color .25s; }
.cells--steps li:hover, .cells--steps li.is-on {
  background: var(--paper); color: var(--ground); z-index: 1;
  transform: translateY(-8px); box-shadow: 0 18px 36px rgba(0, 0, 0, .28);
}
.cells--steps li:hover::before, .cells--steps li.is-on::before { color: var(--octave-deep); }
.band--paper .cells--steps li:hover, .band--paper .cells--steps li.is-on {
  background: var(--ground); color: var(--paper); box-shadow: 0 18px 36px rgba(15, 43, 37, .22);
}
.band--paper .cells--steps li:hover::before, .band--paper .cells--steps li.is-on::before { color: var(--octave); }
@media (prefers-reduced-motion: reduce) { .cells--steps li:hover, .cells--steps li.is-on { transform: none; } }

/* ---------- الجملة الكبيرة ---------- */
.statement { font-size: var(--fs-3); line-height: 1.5; font-weight: 700; max-width: 26em; }
.js .statement.is-live .w { opacity: .45; transition: opacity .3s; }
.js .statement.is-live .w.on { opacity: 1; }

/* ---------- الدعوة الختامية ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.cta h2 { font-size: var(--fs-2); line-height: 1.2; }
.cta h2::before { content: ""; display: block; width: 56px; height: 3px; background: var(--octave); margin-bottom: 22px; }
.cta .actions { margin-top: 0; flex-direction: column; align-items: stretch; }
.cta .en { margin-top: .9rem; }
[dir="rtl"] .cta .en { text-align: left; }
.cta .cta-en { font-size: var(--fs-5); font-weight: 800; line-height: 1.5; color: var(--octave-deep); }

/* ---------- رأس الصفحات الداخلية ---------- */
.pagehead {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--rule);
  padding-top: calc(var(--head-h) + clamp(28px, 6vh, 64px)); padding-bottom: clamp(32px, 5vw, 64px);
}
.ph { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34%); gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.ph-text { display: flex; flex-direction: column; align-items: flex-start; }
.pagehead h1 { font-size: var(--fs-1); line-height: 1.2; }
.pagehead .en {
  order: -1; display: flex; flex-direction: row-reverse; align-items: center; gap: 14px; margin-bottom: .8rem;
  text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-8); font-weight: 700; color: var(--octave);
}
.pagehead .en::before { content: ""; flex: none; width: 44px; height: 2px; background: var(--octave); }
.pagehead .lead { margin-top: 1.2rem; max-width: 44rem; color: rgba(238, 241, 236, .92); }
.pagehead .art { height: clamp(140px, 24vh, 230px); }
.note { font-weight: 700; }
/* كلمة Octovel في عنوان «حكاية Octovel»: ذهبي متدرّج يمرّ عليه لمعان */
.shine { color: var(--octave); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .shine {
    background: linear-gradient(100deg, var(--octave-deep) 0%, var(--octave) 28%, #F8E7B0 50%, var(--octave) 72%, var(--octave-deep) 100%);
    background-size: 240% 100%; background-position: 50% 0;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  }
  @media (prefers-reduced-motion: no-preference) { .shine { animation: shine 3.6s linear infinite; } }
}
@keyframes shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- من نخدم ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--rule); }
.duo > div { background: var(--ground); padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; }
@supports (grid-template-rows: subgrid) {
  .duo > div { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-content: start; }
  .duo .actions { align-self: end; }
}
.duo h2 { font-size: var(--fs-3); margin-bottom: 1rem; }
.duo h2::before { content: ""; display: block; width: 44px; height: 3px; background: var(--octave); margin-bottom: 18px; }
.duo h3 { margin-top: 1.8rem; color: var(--octave); }
.duo p + p { margin-top: .9rem; }
.duo .actions { margin-top: auto; padding-top: 2rem; }
.duo > div { position: relative; transition: background-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.duo h3, .start li, .start li::before { transition: color .25s, border-color .25s; }
.duo > div:hover, .duo > div.is-on { background: var(--paper); color: var(--ground); z-index: 1; transform: translateY(-8px); box-shadow: 0 18px 36px rgba(0, 0, 0, .28); }
.duo > div:hover h3, .duo > div.is-on h3 { color: var(--octave-deep); }
.duo > div:hover .start li, .duo > div.is-on .start li { border-top-color: var(--paper-rule); }
.duo > div:hover .start li::before, .duo > div.is-on .start li::before { color: var(--ink-soft); }
.duo > div:hover .btn, .duo > div.is-on .btn { background: var(--ground); border-color: var(--ground); color: var(--paper); }
.duo > div:hover .btn:hover, .duo > div.is-on .btn:hover { background: var(--octave); border-color: var(--octave); color: var(--ground); }
.duo > div:hover a:focus-visible { outline-color: var(--ground); }
@media (prefers-reduced-motion: reduce) { .duo > div:hover, .duo > div.is-on { transform: none; } }
/* ثلاث بطاقات: حشو أضيق وعنوان أصغر، وعمود واحد دون 1100 */
.duo--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.duo--3 > div { padding: clamp(22px, 2.6vw, 40px); }
.duo--3 h2 { font-size: var(--fs-4); }
.duo--3 .lead { font-size: var(--fs-6); }
.duo--3 .actions .btn { width: 100%; font-size: var(--fs-7); padding-inline: 1em; }
@media (max-width: 1100px) { .duo--3 { grid-template-columns: minmax(0, 1fr); } .duo--3 .actions .btn { width: auto; } }
.start { list-style: none; margin: .8rem 0 0; padding: 0; counter-reset: start; }
.start li { counter-increment: start; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); padding: 12px 0; border-top: 1px solid var(--rule); }
.start li::before {
  content: counter(start, decimal-leading-zero); direction: ltr; text-align: right;
  font-weight: 800; font-size: var(--fs-8); color: var(--muted); padding-top: .45em; font-variant-numeric: tabular-nums;
}

/* ---------- صفوف مرقّمة كبيرة ---------- */
.stations { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.stations > li {
  display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 2fr); gap: 0 clamp(20px, 3.5vw, 56px);
  padding-block: clamp(28px, 4vw, 52px); border-bottom: 1px solid var(--rule); align-items: start;
}
.stations .n, .tl .n { direction: ltr; font-weight: 800; font-size: var(--fs-3); line-height: 1.15; color: var(--muted); font-variant-numeric: tabular-nums; }
.stations .n { color: var(--octave); }
.stations h2, .tl h2 { font-size: var(--fs-4); line-height: 1.3; }
.pair { margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(24px, 3vw, 48px); }
.pair > div { border-top: 1px solid var(--rule); padding-top: 12px; }
.pair dt, .qa dt { font-weight: 800; color: var(--paper); }
.pair dd, .qa dd { margin: 0; }
.qa { margin: 0; }
.qa dt { margin-top: 1rem; }
.qa dt:first-child { margin-top: 0; }
.stations ul { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.stations ul li { position: relative; padding: 10px 0; padding-inline-start: 1.4rem; border-top: 1px solid var(--rule); }
.stations ul li:first-child { border-top: 0; padding-top: 0; }
.stations ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1.25em; width: 8px; height: 8px; background: var(--muted); }
.stations ul li:first-child::before { top: .65em; }
.stations .qa { max-width: 46rem; }

/* ---------- المسارات: خطّ زمني عمودي، يتناوب العنوان والتفاصيل على جانبيه ---------- */
.tl { list-style: none; margin: 0; padding: 0; position: relative; --p: 1; }
.tl::before, .tl::after { content: ""; position: absolute; top: 0; inset-inline-start: calc(50% - 1px); width: 2px; }
.tl::before { bottom: 0; background: var(--rule); }
.tl::after { height: calc(100% * var(--p)); background: var(--octave); }
.tl-item {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  align-items: start; padding-block: clamp(28px, 4vw, 56px);
}
.tl-head { grid-column: 1; grid-row: 1; }
.tl-node {
  grid-column: 2; grid-row: 1; justify-self: center; margin-top: 12px; width: 18px; height: 18px;
  background: var(--octave); box-shadow: 0 0 0 8px var(--ground); transition: background-color .4s;
}
.tl-body { grid-column: 3; grid-row: 1; padding-top: 10px; }
.tl-item:nth-child(even) .tl-head { grid-column: 3; }
.tl-item:nth-child(even) .tl-body { grid-column: 1; }
.tl .n { display: block; color: var(--muted); margin-bottom: 6px; }
.tl-item--eighth .n { color: var(--octave); }
.tl .en { margin-top: .3rem; }
.tl .line { margin-top: .9rem; font-size: var(--fs-5); line-height: 1.6; }
.tl .pair { margin: 0; grid-template-columns: minmax(0, 1fr); }
.tl .extra { margin-top: 1rem; color: var(--muted); }
.tl-item--eighth h2 { color: var(--octave); }
.tl-item--eighth .tl-node { width: 28px; height: 28px; margin-top: 7px; }
.gates { display: grid; gap: 18px; margin-top: 1.75rem; max-width: 30rem; }
.gates p { display: grid; gap: 6px; }
.gate-who { font-size: var(--fs-7); font-weight: 700; color: var(--muted); }
.gates .btn { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .js .tl.is-live::after { transition: height .2s linear; }
  .js .tl.is-live .tl-item .tl-head, .js .tl.is-live .tl-item .tl-body { transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .tl.is-live .tl-item:not(.is-on) .tl-head, .js .tl.is-live .tl-item:not(.is-on) .tl-body { opacity: 0; transform: translateY(28px); }
  .js .tl.is-live .tl-item:not(.is-on) .tl-node { background: var(--rule); }
}
/* المسار الذي عليه الفأرة بكامل وضوحه، وما فوقه وتحته أخفّ (60%: يبقى نصّه مقروءاً). لا تعتيم على اللمس.
   السطور الرمادية تأخذ لون النص الأساسي حين تخفّ، حتى لا ينزل تباينها عن الحدّ. */
.tl-head, .tl-body, .tl-node { transition: opacity .3s; }
@media (hover: hover) {
  .tl:hover .tl-item.is-on:not(:hover) .tl-head, .tl:hover .tl-item.is-on:not(:hover) .tl-body,
  html:not(.js) .tl:hover .tl-item:not(:hover) .tl-head, html:not(.js) .tl:hover .tl-item:not(:hover) .tl-body { opacity: .6; }
  .tl:hover .tl-item:not(:hover) .en, .tl:hover .tl-item:not(:hover) .extra,
  .tl:hover .tl-item:not(:hover) .n, .tl:hover .tl-item:not(:hover) .gate-who { color: var(--paper); }
  .tl:hover .tl-item:not(:hover) .tl-node { opacity: .6; }
}

/* ---------- عن Octovel ---------- */
.name-grid { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.name-story { margin: 0; border-inline-start: 3px solid var(--octave); padding-inline-start: clamp(18px, 3vw, 36px); }
.name-story p + p { margin-top: 1.2rem; }
.name-story p { font-size: var(--fs-6); line-height: 1.9; }
.name-story .name-lead { font-weight: 700; }
/* طلب المؤسس (7 ت1): هذا القسم محاذى من الطرفين. العمود وُسّع ليبقى الفراغ بين الكلمات صغيراً */
@media (min-width: 1201px) { .name-story p { text-align: justify; } }
/* دون 1200: عمود الشعار أعرض حتى لا ينزل الشعار بعبارته عن 320 بكسل (دليل الشعار) */
@media (max-width: 1200px) { .name-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.name-story strong { color: var(--octave); }
.name-logo { direction: ltr; }
.name-logo img { width: 100%; min-width: min(320px, 100%); }
.glossary { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.glossary > div { padding: 20px 0; border-top: 1px solid var(--paper-rule); }
.glossary dt { font-weight: 800; font-size: var(--fs-5); }
.glossary dd { margin: 0; color: var(--ink-soft); }
/* القسم الإنجليزي: لوح فاتح، الجملة الأولى كبيرة مع الأعمدة، والفقرة بجانبها */
.en-block { direction: ltr; text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.en-tag { display: flex; align-items: center; gap: 14px; margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-8); font-weight: 800; color: var(--muted); }
.en-tag::before { content: ""; flex: none; width: 44px; height: 3px; background: var(--octave); }
.band--paper .en-tag { color: var(--ink-soft); }
.band--paper .en-tag::before { background: var(--octave-deep); }
/* السطر الإنجليزي في ختام الصفحة: إطار مرتّب محاذى لليسار */
.en-note {
  direction: ltr; text-align: left; margin-top: clamp(40px, 6vw, 72px); max-width: 46rem; margin-inline-end: auto;
  padding: clamp(18px, 2.4vw, 28px) clamp(20px, 3vw, 36px); border: 1px solid var(--rule); border-inline-start: 3px solid var(--octave);
}
.en-note .en-tag { margin-bottom: .7rem; }
.en-note p:last-child { font-size: var(--fs-6); line-height: 1.7; color: rgba(238, 241, 236, .88); }
.band--paper .en-note { border-color: var(--paper-rule); border-inline-start-color: var(--octave-deep); }
.band--paper .en-note p:last-child { color: var(--ink-soft); }
.en-lead { font-size: var(--fs-3); font-weight: 800; line-height: 1.3; text-wrap: balance; }
.en-body { font-size: var(--fs-5); line-height: 1.7; color: var(--ink-soft); padding-inline-start: clamp(18px, 3vw, 36px); border-inline-start: 3px solid var(--octave-deep); }
.en-block .art { height: clamp(90px, 14vw, 150px); max-width: 300px; margin-top: 2rem; }
.band--paper .art span { background: var(--ground); }
.band--paper .art span:nth-child(8) { background: linear-gradient(to top, var(--octave) 62%, transparent 62%); }

/* ---------- النماذج: طبقتان ---------- */
.forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(24px, 3vw, 40px); align-items: start; }
/* شريط المراحل والبطاقات يظهران حين يعمل JavaScript؛ بلا JavaScript تبقى البطاقات روابط والنماذج معاً */
.req-steps {
  list-style: none; margin: 0 0 clamp(24px, 4vw, 44px); padding: 0; display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px;
}
.js .req-steps { display: grid; }
.req-steps li {
  display: flex; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 3px solid var(--paper-rule);
  font-weight: 700; font-size: var(--fs-7); color: var(--ink-soft);
}
.req-steps .n { direction: ltr; font-size: var(--fs-8); font-weight: 800; font-variant-numeric: tabular-nums; }
.req-steps li.is-done, .req-steps li.is-current { border-top-color: var(--octave-deep); color: var(--ground); }
.req-steps li.is-current { font-weight: 800; }
.req-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-bottom: clamp(24px, 3vw, 40px); }
.req-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .req-cards--3 { grid-template-columns: minmax(0, 1fr); } }
.req-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 44px;
  background: #fff; color: var(--ground); border: 1.5px solid var(--ink-soft); text-decoration: none;
  padding: clamp(22px, 3vw, 40px); padding-bottom: clamp(56px, 6vw, 76px);
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.req-card b { font-size: var(--fs-4); font-weight: 800; line-height: 1.3; }
.req-who { font-size: var(--fs-7); font-weight: 700; color: var(--ink-soft); }
.req-note { color: var(--ink-soft); }
.req-card::after {
  content: ""; position: absolute; inset-block-end: clamp(20px, 2.6vw, 32px); inset-inline-start: clamp(22px, 3vw, 40px);
  width: 1.3em; height: 1.3em; background: var(--octave-deep);
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .25s var(--ease), background-color .25s;
}
.req-card:hover { background: var(--ground); color: var(--paper); border-color: var(--ground); transform: translateY(-6px); box-shadow: 0 18px 36px rgba(15, 43, 37, .22); }
.req-card:hover .req-who, .req-card:hover .req-note { color: var(--muted); }
.req-card:hover::after { background: var(--octave); transform: translateX(-6px); }
.req-back {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px; margin-bottom: 1rem; padding: 0;
  font: inherit; font-weight: 700; font-size: var(--fs-7); color: var(--ink-soft); background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--octave-deep); text-underline-offset: 5px;
}
.req-back::before {
  content: ""; width: .95em; height: .95em; background: currentColor; transform: scaleX(-1);
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
}
.req-back:hover { color: var(--ground); }
.req-back[hidden] { display: none; }
.js [data-req] .forms { grid-template-columns: minmax(0, 1fr); max-width: 46rem; margin-inline: auto; }
.js [data-req]:not([data-state]) .form:not(:target),
.js [data-req][data-state="choose"] .forms,
.js [data-req][data-state]:not([data-state="choose"]) .req-cards,
.js [data-req][data-state="visit"] .form:not(#visit),
.js [data-req][data-state="project"] .form:not(#project),
.js [data-req][data-state="ngo"] .form:not(#ngo) { display: none; }
.form.is-sent > :not(h2):not(.form-msg) { display: none; }
.form-msg:focus { outline: none; }
.form h2:focus { outline: none; }
.form { background: #fff; border: 1px solid var(--paper-rule); padding: clamp(22px, 3.4vw, 44px); }
.form h2 { font-size: var(--fs-4); margin-bottom: .4rem; }
.form h2::before { content: ""; display: block; width: 44px; height: 3px; background: var(--octave); margin-bottom: 16px; }
.form .hint { color: var(--ink-soft); margin-bottom: 1.6rem; }
.field { margin-bottom: 1.1rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .25rem; padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 48px; font: inherit; color: var(--ground); background: #fff;
  border: 1.5px solid var(--ink-soft); border-radius: 0; padding: .45em .75em; transition: border-color .2s, box-shadow .2s;
}
.field input:hover, .field textarea:hover { border-color: var(--ground); }
.field input:focus, .field textarea:focus { border-color: var(--ground); box-shadow: inset 0 0 0 1px var(--ground); }
.field textarea { min-height: 6.5em; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin-inline: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 0 1.6rem; }
.radios label { font-weight: 400; display: flex; align-items: center; gap: .5rem; margin: 0; min-height: 44px; cursor: pointer; }
.radios input { width: 22px; height: 22px; margin: 0; accent-color: var(--ground); }
.trap { position: absolute; inset-inline-start: -9999px; }
/* فحص «إنسان لا روبوت» (Turnstile): لا يأخذ مكاناً إلا إن طلب من الزائر تفاعلاً */
.human { max-width: 100%; }
.human:empty { display: none; }
.human iframe { max-width: 100%; }
.nojs-note { margin-block: 1rem; font-weight: 700; padding: .8em 1em; border-inline-start: 4px solid var(--bad); background: var(--paper); }
.form .btn { margin-top: .6rem; }
.privacy { margin-top: 1rem; font-size: var(--fs-7); color: var(--ink-soft); }
.form-msg { margin-block: 1rem; font-weight: 700; padding: .8em 1em; border-inline-start: 4px solid var(--octave); background: var(--paper); }
.form-msg--bad { border-inline-start-color: var(--bad); }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 48rem; }
.contact-list li { padding: 8px 0; min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 .4em; border-bottom: 1px solid var(--rule); font-size: var(--fs-5); }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-list b { font-weight: 800; color: var(--octave); }

/* ---------- زرّ واتساب: دائرة في هامش الصفحة ---------- */
.wa {
  position: fixed; z-index: 45; inset-block-end: calc(14px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 10px;
  display: inline-flex; align-items: center; height: 52px; min-width: 52px; border-radius: 999px;
  background: var(--paper); color: var(--ground); border: 1.5px solid var(--octave);
  font-weight: 700; font-size: var(--fs-7); text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .3); transition: background-color .2s;
}
.wa svg { flex: none; width: 26px; height: 26px; margin: 0 11.5px; }
.wa img { flex: none; width: 34px; height: 34px; margin: 0 7.5px; }
.wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wa:hover { background: #fff; }
@media (max-width: 1149px) { .wa { display: none; } .head-wa { display: inline-flex; } }
html:not(.js) .head-wa { margin-inline-start: auto; }
@media (hover: hover) and (min-width: 1150px) {
  .wa:hover .wa-label, .wa:focus-visible .wa-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; padding-inline-end: 18px; }
}

/* ---------- التذييل: الأيقونات والبريد والحقوق ---------- */
.site-foot { position: relative; background: var(--deep); border-top: 3px solid var(--octave); padding-block: clamp(28px, 4vw, 44px) 22px; }
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 32px; }
.site-foot a { text-decoration: none; color: rgba(238, 241, 236, .9); }
.foot-mail { display: inline-flex; align-items: center; min-height: 46px; font-weight: 700; font-size: var(--fs-6); }
.foot-mail:hover { color: var(--octave); }
.foot-base { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--fs-8); text-align: right; }
/* الأيقونات بألوانها كما سُلّمت، كل واحدة على قرص كريمي لتُرى على الأرضية الداكنة */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.soc {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px;
  background: var(--paper); box-shadow: 0 0 0 0 rgba(210, 162, 58, 0); transition: transform .2s var(--ease), box-shadow .2s;
}
.soc img { width: 30px; height: 30px; }
.soc:hover { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--octave); }
.soc--text { width: auto; padding-inline: 16px; background: transparent; color: var(--paper); border: 1.5px solid rgba(238, 241, 236, .5); font-weight: 700; font-size: var(--fs-7); }
.site-foot .soc--text { color: var(--paper); }
.soc--text:hover { border-color: var(--octave); color: var(--octave); box-shadow: none; }
.contact-list .social { margin: 0; display: inline-flex; }
.contact-list .social li { border: 0; padding: 0; min-height: 0; }
.contact-list .soc { text-decoration: none; min-height: 0; }
@media (prefers-reduced-motion: reduce) { .soc:hover { transform: none; } }

/* ---------- الظهور عند التمرير ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
  .rv.is-in { opacity: 1; transform: none; }
}

/* ---------- صفحة غير موجودة ---------- */
.lost { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--head-h) + 40px) 80px; position: relative; overflow: hidden; }
.lost h1 { font-size: var(--fs-1); }
.lost .art { margin-top: 40px; max-width: 420px; }

/* ---------- المحاذاة من الطرفين ----------
   تبقى حيث لا يتجاوز أوسع فراغ بين كلمتين ضعفَي الفراغ العادي (قيس على 1280 إلى 1920): مقدّمتا صفحتَي
   التشخيص والمسارات. ما عداها للبداية: قيس فيه فراغ من 2.4 إلى 6.8 أضعاف (تدقيق 2.4، ش1، وقياس 2.5). */
@media (min-width: 1200px) {
  .pagehead .lead:not(.lead--start) { text-align: justify; }
}

/* ---------- الشاشات المتوسطة والضيّقة ---------- */
/* بين 1150 و 1279: الأقسام تبقى ظاهرة في الرأس، بفراغات أضيق (طلب المؤسس، 7 ت1 17:10) */
@media (min-width: 1150px) and (max-width: 1279px) {
  .site-head .wrap { gap: 16px 14px; }
  .brand { width: 120px; }
  .nav { gap: 4px 14px; }
  .head-cta { padding-inline: .9em; }
  .wa { inset-inline-end: 4px; height: 46px; min-width: 46px; }
  .wa img { width: 32px; height: 32px; margin: 0 6px; }
}
/* القائمة المطويّة دون 1150 */
@media (max-width: 1149px) {
  .nav-toggle { display: inline-flex; }
  .js .nav {
    position: fixed; inset: 0; z-index: 1; margin: 0; background: var(--ground);
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px;
    padding: calc(var(--head-h) + 24px) var(--edge) 40px; overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s;
  }
  .js .nav.is-open { visibility: visible; opacity: 1; }
  .js .nav a { font-size: var(--fs-3); font-weight: 800; min-height: 52px; white-space: normal; }
  .js .nav a::after { inset-block-end: 4px; }
  .js .nav .nav-cta { display: inline-flex; font-size: var(--fs-6); font-weight: 700; margin-top: 24px; min-height: 52px; color: var(--ground); }
  .js .nav .nav-cta::after { content: none; }
  .nav-open, .nav-open body { overflow: hidden; }
  html:not(.js) .site-head { position: static; background: var(--ground); }
  html:not(.js) .site-head .wrap { height: auto; flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .nav { flex-wrap: wrap; flex-basis: 100%; margin: 0; order: 5; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .hero { padding-top: 24px; }
  html:not(.js) .pagehead { padding-top: 40px; }
}
@media (max-width: 1120px) {
  .glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stations > li { grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.7fr); }
  .tl-item { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .cta, .split, .duo, .forms, .name-grid, .en-block, .feature { grid-template-columns: minmax(0, 1fr); }
  /* الخطّ الزمني على الشاشات الضيّقة: الخطّ عند الحافة، والعنوان فوق تفاصيله */
  .tl::before, .tl::after { inset-inline-start: 8px; }
  .tl-item, .tl-item:nth-child(even) { grid-template-columns: 18px minmax(0, 1fr); column-gap: 22px; row-gap: 18px; }
  .tl-item .tl-node, .tl-item:nth-child(even) .tl-node { grid-column: 1; grid-row: 1; }
  .tl-item .tl-head, .tl-item:nth-child(even) .tl-head { grid-column: 2; grid-row: 1; }
  .tl-item .tl-body, .tl-item:nth-child(even) .tl-body { grid-column: 2; grid-row: 2; padding-top: 0; }
  .tl-item--eighth .tl-node { width: 18px; height: 18px; margin-top: 12px; }
  .split-visual { position: static; order: -1; }
  .octave li { height: calc(5.4rem * var(--r)); }
  .js .octave.is-live li:not(.is-on):not(:nth-child(8)) { background: var(--paper); color: var(--ground); box-shadow: none; }
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stations > li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .name-logo { max-width: 420px; }
  .hero-body, .ph { grid-template-columns: minmax(0, 1fr); }
  .hero .art { height: clamp(84px, 13vh, 112px); width: min(100%, 300px); justify-self: start; }
  .pagehead .art { height: 56px; width: min(60%, 190px); margin-top: 6px; }
}
@media (max-width: 640px) {
  :root { --head-h: 66px; --fs-6: 1.125rem; --fs-7: 1rem; }
  .head-cta { display: none; }
  .site-head .wrap { gap: 10px; }
  .brand { width: 120px; }
  .only-wide { display: none; }
  .pagehead .en { gap: 10px; letter-spacing: .08em; }
  .pagehead .en::before { width: 26px; }
  .hero { padding-top: calc(var(--head-h) + 6px); }
  .hero-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-steps li { padding: 10px 0 12px; }
  .hero-steps li + li { border-inline-start: 0; padding-inline-start: 0; }
  .hero-steps li:nth-child(even) { border-inline-start: 1px solid var(--rule); padding-inline-start: 16px; }
  .hero-steps li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .actions .btn { flex: 1 1 100%; }
  .btn { padding-inline: 1.1em; }
  .form .btn { width: 100%; }
  .gates { max-width: none; }
  [dir="rtl"] .hero-en { text-align: left; }
  .hero .actions { gap: 10px; }
  /* ثلاثة أزرار في أول شاشة: حشو أضيق ليبقى كل زرّ في سطر واحد */
  .hero .actions .btn, .cta .actions .btn, .feature .actions .btn { padding-inline: .7em; gap: .4em; font-size: var(--fs-7); text-wrap: balance; }
  /* جدول «لماذا Octovel؟» بطاقات على الهاتف */
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: auto; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tr { padding: 18px 0; border-top: 1px solid var(--paper-rule); }
  .compare td { border: 0; padding: 0; }
  .compare td::before { content: attr(data-label); display: block; font-size: var(--fs-8); font-weight: 700; color: var(--ink-soft); margin-bottom: 2px; }
  .compare td:first-child { padding-inline-end: 0; font-size: var(--fs-6); }
  .compare td:last-child { margin-top: 12px; padding-inline-start: 14px; border-inline-start: 3px solid var(--octave); }
  .cells, .cells--2, .glossary, .pair, .req-cards { grid-template-columns: minmax(0, 1fr); }
  .req-steps li { flex-direction: column; gap: 0; }
  .rows li { grid-template-columns: 2.4rem minmax(0, 1fr); padding: 20px 0; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot-mail { justify-self: start; }
  /* الأيقونات السبع في سطر واحد */
  .site-foot .social { display: grid; grid-template-columns: repeat(7, minmax(0, 44px)); gap: 6px; justify-content: start; }
  .site-foot .soc:not(.soc--text) { width: 100%; height: auto; aspect-ratio: 1; }
  .site-foot .soc img { width: 66%; height: auto; }
  .contact-list .soc:not(.soc--text) { width: 46px; height: 46px; }
  .soc--text { height: 46px; }
}
