/* موقع مكتب السعودي — Saudy Law Firm
   النسخة الثانية (طلب محمد: «احترافي جدا… انميشن… قوي جدا وعصري»):
   أسود سينمائي وفضي مصقول من هوية المكتب نفسها، حروف كبيرة، وحركة بتمشي مع السكرول (assets/js/site.js).
   من غير JavaScript أو مع «حركة أقل» الصفحة كاملة وثابتة. */

:root {
  --black: #0a0b0d;
  --ink: #0f1115;
  --char: #16191e;
  --char-2: #1d2229;
  --panel: #20262e;
  --slate: #2c3a47;
  --silver: #a4adbc;
  --silver-2: #d3d8df;
  --line-dark: rgba(196, 204, 216, .14);
  --line-dark-2: rgba(196, 204, 216, .26);
  --paper: #f2f3f5;
  --white: #ffffff;
  --text: #111317;
  --text-2: #4b5563;
  --line: #dde1e6;
  --focus: #8ea2bd;
  --metal: linear-gradient(110deg, #7d8694 0%, #c9d0d9 22%, #ffffff 34%, #b4bcc7 46%, #7a8391 62%, #dfe3e9 82%, #9aa3b0 100%);
  --display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --pad: 28px;
  --r: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 400 1.0625rem/1.95 var(--body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: #c9d0d9; color: var(--black); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: #fff; color: var(--black); padding: 8px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); position: relative; }

/* ---------- الحالة الأولى قبل الحركة (بتتشال من site.js، أو بعد 4.5 ثانية لو السكريبت ماوصلش) ---------- */
.anim-pending [data-reveal], .anim-pending [data-split]:not([data-css-in]), .anim-pending [data-toast] { opacity: 0; }

/* الواجهة بتتحرك بـ CSS بس — بتبدأ أول ما الصفحة تفتح، من غير ما تستنى أي سكريبت (محمد: «الموقع حاسه بطيئ») */
@media (prefers-reduced-motion: no-preference) {
  [data-css-in] .wi { animation: wordUp 1.05s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(60ms + var(--d, 0) * 65ms); }
  [data-hero-in] { animation: fadeUp .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--in, .3s); }
  [data-hero-emblem] { animation: emblemIn 1.5s cubic-bezier(.2, .7, .2, 1) .1s both; }
}
@keyframes wordUp { from { transform: translateY(118%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes emblemIn { from { opacity: 0; transform: scale(.93); } to { opacity: 1; transform: none; } }

/* كلمات بتطلع من ورا خط (العربي بيتقسم كلمات بس، عشان الحروف تفضل متصلة) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .1em .26em; margin-block: -.1em -.26em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- الفضي المصقول: شعار المكتب بلمعة بتعدّي عليه ---------- */
.metal-mark {
  display: block; aspect-ratio: 1;
  background: var(--metal); background-size: 260% 100%; background-position: 100% 0;
  -webkit-mask: url(/img/emblem-light.webp) center / contain no-repeat;
  mask: url(/img/emblem-light.webp) center / contain no-repeat;
}
/* اللمعة على الشعار الكبير بس — مش على كل نسخة منه في الصفحة */
@media (prefers-reduced-motion: no-preference) {
  .hero-emblem .metal-mark { animation: sheen 7s var(--ease) infinite; }
}
@keyframes sheen { 0%, 18% { background-position: 100% 0; } 55%, 100% { background-position: 0% 0; } }

/* ---------- أزرار ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .65rem 1.45rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.4 var(--body); cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), background-position .9s var(--ease);
}
.btn-lg { min-height: 56px; padding-inline: 1.9rem; font-size: 1.05rem; }
.btn-xl { min-height: 68px; padding-inline: 2.6rem; font-size: 1.2rem; }
.btn-metal { background: var(--metal); background-size: 260% 100%; background-position: 100% 0; color: var(--black); }
.btn-metal:hover { background-position: 0% 0; }
.btn-ghost { color: #fff; border-color: var(--line-dark-2); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--silver); background: rgba(255, 255, 255, .06); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: var(--slate); }
.btn:active { transform: translateY(1px); }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--slate); }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(-6px); }

/* ---------- الرأس: شفاف فوق الواجهة، وزجاج غامق بعد السكرول ---------- */
.top { position: fixed; inset-inline: 0; top: 0; z-index: 100; transition: background-color .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
.top.scrolled, .page-inner .top { background: rgba(10, 11, 13, .95); border-bottom-color: var(--line-dark); }
.top-row { display: flex; align-items: center; gap: 1.6rem; min-height: 82px; }
.brand { display: flex; align-items: center; gap: .9rem; color: #fff; flex: none; }
.brand-mark { width: 46px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.35; padding-inline-start: .9rem; border-inline-start: 1px solid var(--line-dark-2); }
.brand-name { direction: ltr; font: 500 .95rem/1.3 var(--body); letter-spacing: .32em; color: #fff; }
.brand-ar { font-size: .72rem; color: var(--silver); }
.nav { display: flex; align-items: center; gap: 1.9rem; margin-inline-start: auto; }
.nav a { position: relative; color: var(--silver-2); font-size: .96rem; font-weight: 500; padding-block: .35rem; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.top-portal, .top-lang { display: inline-flex; align-items: center; gap: .4rem; color: var(--silver-2); font-size: .93rem; }
.top-portal:hover, .top-lang:hover { color: #fff; }
.top-lang { padding-inline: .75rem; border-inline: 1px solid var(--line-dark-2); }
.top-cta { flex: none; min-height: 44px; }
.menu-btn { display: none; margin-inline-start: auto; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark-2); background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; inset-inline: 14px; height: 1.5px; background: #fff; transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-btn span:first-child { top: 19px; }
.menu-btn span:last-child { top: 27px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

/* قايمة الموبايل: لو أطول من الشاشة بتتسكرل جواها (الـ margin: auto بيوسّطها لما يكون فيه مكان بس —
   justify-content: center كان بيزق أولها تحت الهيدر من غير ما يتوصله) */
.sheet {
  position: fixed; inset: 0; z-index: 90; background: var(--black); color: #fff;
  display: flex; flex-direction: column; gap: 1.6rem; padding: 104px var(--pad) 36px;
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet[hidden] { display: none; }
body:has(.sheet:not([hidden])) .top { background: var(--black); border-bottom-color: var(--line-dark); }
.sheet-nav { display: flex; flex-direction: column; margin-top: auto; }
.sheet-nav a { overflow: hidden; border-bottom: 1px solid var(--line-dark); }
.sheet-nav span { display: block; font: 700 clamp(1.3rem, 5.4vw, 1.85rem)/1.55 var(--display); padding-block: .55rem; }
.sheet-cta { align-self: flex-start; margin-bottom: auto; }

/* ---------- الواجهة ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  background: var(--black); color: #fff; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(45, 57, 71, .9) 0%, rgba(10, 11, 13, 0) 60%),
    linear-gradient(180deg, #0a0b0d 0%, #111419 60%, #171c22 100%);
}
.hero-light {
  position: absolute; width: 70vmax; height: 70vmax; left: 0; top: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 216, 223, .13) 0%, rgba(211, 216, 223, .04) 35%, rgba(0, 0, 0, 0) 65%);
  transform: translate(35vw, -10vh); will-change: transform;
}
.grain {
  position: absolute; inset: 0; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-word {
  position: absolute; bottom: 4vh; right: -2vw; z-index: -1; direction: ltr; white-space: nowrap; pointer-events: none;
  font: 600 clamp(5rem, 15vw, 15rem)/1 var(--body); letter-spacing: .12em;
  color: transparent; -webkit-text-stroke: 1px rgba(196, 204, 216, .14);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 4rem; align-items: center; padding-block: 140px 110px; }
.hero-sign { display: flex; align-items: center; gap: .85rem; color: var(--silver); font-size: .95rem; margin-bottom: 1.6rem; }
.hero-sign span { width: 46px; height: 1px; background: var(--silver); }
/* سطرين بالظبط (طلب محمد): كل سطر مايتكسرش، والحجم على قد عرض العمود — السطر التاني (الأطول) ≈ 16.7em.
   على الموبايل بس السطر التاني بيتقسم لسطرين متوازنين بدل ما الخط يصغر لحد ما يبقى أصغر من الفقرة */
.hero-title { font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.5; font-weight: 800; text-wrap: nowrap; }
.hero-title .line { display: block; white-space: nowrap; }
@media (max-width: 960px) { .hero-title { font-size: min(3rem, calc((100vw - 2 * var(--pad)) / 17.2)); } }
@media (max-width: 600px) {
  .hero-title { font-size: min(2.2rem, calc((100vw - 2 * var(--pad)) / 12.5)); text-wrap: balance; }
  .hero-title .line { white-space: normal; text-wrap: balance; }
}
.hero-title .line:last-child .wi, .hero-title .line:last-child:not(:has(.wi)) {
  color: transparent; background: var(--metal); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;
}
.hero-lead { color: var(--silver-2); font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 2; margin-top: 1.8rem; max-width: 44ch; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.hero-emblem { justify-self: center; width: min(400px, 100%); }
.hero-emblem .metal-mark { width: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; width: 26px; height: 44px; margin-left: -13px; border: 1px solid var(--line-dark-2); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 2px; height: 8px; margin-left: -1px; border-radius: 2px; background: var(--silver-2); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue span { animation: cue 2s var(--ease) infinite; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- شريط المجالات ---------- */
.marquee { background: var(--black); border-block: 1px solid var(--line-dark); overflow: hidden; padding-block: 1.5rem; direction: ltr; }
.marquee-track { display: flex; width: max-content; }
.marquee-track > div { display: flex; align-items: center; flex: none; direction: rtl; }
.marquee span { font: 700 clamp(1.4rem, 2.6vw, 2.3rem)/1.4 var(--display); color: var(--silver-2); white-space: nowrap; padding-inline: 1.6rem; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(211, 216, 223, .55); }
.marquee i { width: 10px; height: 10px; flex: none; transform: rotate(45deg); border: 1px solid var(--silver); }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marquee 80s linear infinite; } }
@keyframes marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- الجملة الكبيرة (بتنوّر كلمة كلمة مع السكرول) ---------- */
.statement { background: var(--paper); padding-block: clamp(5rem, 12vw, 10rem); }
.statement-text { font: 700 clamp(1.55rem, 3vw, 2.6rem)/1.65 var(--display); color: var(--text); max-width: 30ch; }
/* عن المكتب: سطر المكتب فوق الجملة الكبيرة، وفقرتين تحتها */
.statement-tag { display: flex; align-items: center; gap: .85rem; color: var(--slate); font-weight: 600; margin-bottom: 1.6rem; }
.statement-tag::before { content: ""; width: 46px; height: 1px; background: currentColor; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .8fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: center; }
.about-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-top: clamp(2.6rem, 5vw, 4rem); }
/* صاحب المكتب — الاسم والصورة بس لحد ما كلام فريق العمل يتصاغ */
.founder { margin: 0; width: 100%; max-width: 400px; justify-self: end; }
.founder img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; box-shadow: 0 50px 80px -45px rgba(10, 11, 13, .55); }
.founder figcaption { display: grid; gap: .15rem; margin-top: 1.1rem; padding-inline-start: 1rem; border-inline-start: 2px solid var(--black); }
.founder b { font: 800 1.2rem/1.6 var(--display); color: var(--text); }
.founder span { color: var(--text-2); font-size: .95rem; }
.about-cols p { color: var(--text-2); font-size: 1.08rem; line-height: 2; border-top: 1px solid var(--line); padding-top: 1.2rem; }

/* ---------- عناوين الأقسام ---------- */
.sec-head { max-width: 780px; margin-bottom: 3.2rem; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.4; font-weight: 800; }
.sec-head .lead { color: var(--text-2); font-size: 1.12rem; margin-top: 1rem; max-width: 58ch; }
.sec-head.on-dark h2 { color: #fff; }
.sec-head.on-dark .lead { color: var(--silver-2); }

/* ---------- الخدمات: كروت بتتراكب ---------- */
.practice { background: var(--paper); padding-block: 2rem 7rem; }
.practice-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.practice-head .sec-head { margin-bottom: 2.4rem; }
.practice-head .link-arrow { margin-bottom: 3rem; }
.stack { display: flex; flex-direction: column; gap: 2.2rem; }
.stack-card { position: sticky; top: calc(108px + var(--i) * 22px); }
.stack-inner {
  display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 3.5rem;
  padding: clamp(2rem, 4vw, 3.6rem); border-radius: 22px; color: #fff; transform-origin: 50% 0;
  background: linear-gradient(160deg, #1b2027 0%, #0e1014 100%); border: 1px solid var(--line-dark);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .6); min-height: min(72vh, 640px); position: relative;
}
/* الكارت اللي بيتغطى بيغمق بطبقة سودا (أخف على المتصفح من filter) — --dim من site.js */
.stack-inner::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.stack-card:nth-child(2) .stack-inner { background: linear-gradient(160deg, #222a33 0%, #12161b 100%); }
.stack-card:nth-child(3) .stack-inner { background: linear-gradient(160deg, #2a3440 0%, #161b21 100%); }
.stack-count { display: inline-block; color: var(--silver); font-size: .9rem; border: 1px solid var(--line-dark-2); border-radius: 999px; padding: .15rem .8rem; }
.stack-side h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.45; margin-top: 1.3rem; }
.stack-side p { color: var(--silver-2); margin-top: .9rem; line-height: 1.95; }
.stack-list { list-style: none; margin: 0; padding: 0; align-self: center; }
.stack-list li { border-bottom: 1px solid var(--line-dark); }
.stack-list li:first-child { border-top: 1px solid var(--line-dark); }
.stack-list a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 26px; gap: 1.5rem; align-items: center; padding: 1.05rem .25rem; }
.sl-name { font: 600 1.1rem/1.6 var(--display); color: var(--silver-2); transition: color .3s; }
.sl-short { color: var(--silver); font-size: .95rem; line-height: 1.75; }
.sl-go { color: var(--silver); transition: transform .35s var(--ease), color .35s; }
.stack-list a:hover .sl-go { transform: translateX(-8px); color: #fff; }
.stack-list a:hover .sl-name { color: #fff; }

/* ---------- خريطة الفروع ---------- */
.network { background: var(--black); color: #fff; padding-block: clamp(5rem, 10vw, 8rem); position: relative; overflow: hidden; }
.network-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4rem; align-items: center; }
.network-map { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; }
.network-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit { fill: none; stroke: var(--line-dark-2); stroke-width: 1; stroke-dasharray: 2 6; }
.wire { stroke: rgba(196, 204, 216, .35); stroke-width: 1; }
.pulse { fill: #fff; opacity: 0; }
.node {
  position: absolute; transform: translate(-50%, -50%); width: 9.5rem; text-align: center;
  background: rgba(22, 25, 30, .94); border: 1px solid var(--line-dark-2); border-radius: 14px; padding: .7rem .8rem;
}
.node b { display: block; font: 600 .98rem/1.5 var(--display); }
.node span { display: block; color: var(--silver); font-size: .76rem; line-height: 1.6; margin-top: .25rem; }
.node-center { left: 50%; top: 50%; width: 8.5rem; padding: 1rem; border-radius: 50%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; background: radial-gradient(circle at 50% 30%, #2a323c, #111418); }
.node-center .metal-mark { width: 52px; }
.node-center b { font-size: 1.05rem; }

/* ---------- بوابة الموكل ---------- */
.portal-sec { background: var(--paper); padding-block: clamp(5rem, 10vw, 8rem); overflow: hidden; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.ticks { list-style: none; margin: 0 0 2.4rem; padding: 0; }
.ticks li { position: relative; padding-inline-start: 1.9rem; margin-bottom: .85rem; line-height: 1.85; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .78em; width: 9px; height: 9px; transform: rotate(45deg); border: 1.5px solid var(--slate); }
.fine { color: var(--text-2); font-size: .88rem; margin-top: 1rem; }
.portal-stage { position: relative; display: flex; justify-content: center; padding-block: 2rem; }
.phone { margin: 0; width: min(310px, 72vw); text-align: center; position: relative; z-index: 1; }
.phone img { border: 10px solid #0b0c0e; border-radius: 48px; width: 100%; box-shadow: 0 50px 90px -40px rgba(10, 11, 13, .55), 0 0 0 1px rgba(10, 11, 13, .2); }
.phone figcaption { color: var(--text-2); font-size: .8rem; margin-top: .9rem; }
.toast {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .75rem; width: min(330px, 82vw);
  background: #fff;
  border: 1px solid rgba(17, 19, 23, .08); border-radius: 18px; padding: .85rem 1rem;
  box-shadow: 0 24px 50px -24px rgba(10, 11, 13, .45); color: var(--text); line-height: 1.6;
}
.toast b { display: block; font: 600 .95rem/1.5 var(--display); }
.toast small { display: block; color: var(--text-2); font-size: .82rem; }
.toast-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--black); color: #fff; }
.toast-1 { top: 14%; inset-inline-end: -4%; }
.toast-2 { top: 44%; inset-inline-start: -6%; }
.toast-3 { top: 72%; inset-inline-end: 0; }

/* ---------- طريقة العمل ---------- */
.process { background: #fff; padding-block: clamp(5rem, 10vw, 8rem); }
.timeline { position: relative; }
.tl-rail { position: absolute; inset-inline: 0; top: 19px; height: 1px; background: var(--line); }
.tl-rail span { position: absolute; inset: 0; background: var(--black); transform-origin: right; }
.tl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem; position: relative; }
.tl-dot { display: block; width: 39px; height: 39px; border-radius: 50%; background: #fff; border: 1px solid var(--text); position: relative; }
.tl-dot::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--text); }
.tl-n { display: block; font: 800 3.4rem/1.2 var(--display); margin-top: 1.4rem; color: transparent; -webkit-text-stroke: 1px var(--text); }
.tl-steps h3 { font-size: 1.25rem; line-height: 1.6; margin-top: .6rem; }
.tl-steps p { color: var(--text-2); font-size: .98rem; margin-top: .5rem; line-height: 1.9; }

/* ---------- الدعوة الكبيرة ---------- */
.big-cta { position: relative; isolation: isolate; color: #fff; overflow: hidden; padding-block: clamp(6rem, 13vw, 11rem); }
.big-cta-in { display: flex; flex-direction: column; align-items: flex-start; gap: 2.6rem; position: relative; }
.big-cta-mark { position: absolute; left: var(--pad); top: 50%; width: min(360px, 30vw); transform: translateY(-50%); opacity: .5; pointer-events: none; }
@media (max-width: 960px) { .big-cta-mark { display: none; } }
.big-cta h2 { font-size: clamp(2.2rem, 5.6vw, 4.8rem); line-height: 1.35; font-weight: 800; max-width: 16ch; }

/* ---------- التواصل ---------- */
.contact-sec { background: var(--paper); padding-block: clamp(5rem, 10vw, 8rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: .9rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.contact-list svg { color: var(--slate); flex: none; }
.contact-list a { color: var(--slate); font-weight: 600; }
.form { display: grid; gap: 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: 0 40px 80px -50px rgba(10, 11, 13, .35); }
.form label { display: grid; gap: .45rem; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea {
  font: 400 1rem/1.6 var(--body); color: var(--text); background: var(--paper);
  border: 1px solid transparent; border-radius: 12px; padding: .8rem .95rem; width: 100%;
  transition: border-color .2s, background-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--slate); background: #fff; }
.form [aria-invalid="true"] { border-color: #b42318; }
.form .btn { width: 100%; }
.form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form { position: relative; }
.form.sent { text-align: center; }
.form-note { color: var(--text-2); font-size: .88rem; }
.form-note.warn { color: #9a3412; }

/* بيان لسه ناقص من المكتب — باين في المسودة بس */
.missing { display: inline-block; padding: 0 .55rem; border: 1px dashed #c2410c; border-radius: 6px; background: #fff7ed; color: #9a3412; font-size: .88em; line-height: 1.8; }

/* ---------- الصفحات الداخلية ---------- */
.page-hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; padding-block: 170px 90px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.4; font-weight: 800; }
.page-hero .hero-lead { margin-top: 1.1rem; }
.crumbs { display: flex; gap: .6rem; color: var(--silver); font-size: .92rem; margin-bottom: 1.2rem; }
.crumbs a { color: var(--silver-2); }
.crumbs a:hover { color: #fff; }
.sec { background: #fff; padding-block: clamp(4rem, 8vw, 6.5rem); }
.sec-paper { background: var(--paper); }
.stack-list-wide { max-width: 1000px; }
.sec .stack-list li { border-color: var(--line); }
.sec .stack-list .sl-name { color: var(--text); }
.sec .stack-list .sl-short { color: var(--text-2); }
.sec .stack-list .sl-go { color: var(--slate); }
.sec .stack-list a:hover .sl-name { color: var(--slate); }
.sec .stack-list a:hover .sl-go { color: var(--black); }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 5rem; }
.doc-body { max-width: 760px; }
.doc-intro { font: 500 clamp(1.15rem, 1.8vw, 1.4rem)/2 var(--body); margin-bottom: 3rem; }
.doc-intro:has(+ .doc-intro) { margin-bottom: 1.2rem; }
.doc-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1.4rem; }
.ticks-light li { font-size: 1.05rem; }
.doc-aside { border-top: 2px solid var(--black); padding-top: 1.1rem; align-self: start; position: sticky; top: 110px; }
.aside-h { font-size: 1.02rem; margin-bottom: .6rem; }
.aside-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.aside-list li { border-bottom: 1px solid var(--line); }
.aside-list a { display: block; padding: .7rem 0; font-size: .98rem; transition: color .2s, padding .3s var(--ease); }
.aside-list a:hover { color: var(--slate); padding-inline-start: .4rem; }
.cta-band { background: var(--black); color: #fff; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta-row h2 { font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.45; font-weight: 800; }

/* ---------- التذييل ---------- */
.foot { background: var(--black); color: var(--silver); padding-top: 5rem; font-size: .95rem; overflow: hidden; border-top: 1px solid var(--line-dark); }
.foot-grid { display: grid; grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr)); gap: 2.6rem; padding-bottom: 3rem; }
.foot-brand img { width: 150px; }
.foot-h { font: 600 1rem/1.5 var(--display); color: #fff; margin-bottom: 1rem; }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: .5rem; line-height: 1.7; }
.foot-list a { color: var(--silver-2); transition: color .2s; }
.foot-list a:hover { color: #fff; }
.foot-contact li { display: flex; align-items: center; gap: .55rem; }
.foot-social { list-style: none; display: flex; gap: .6rem; margin: 1.2rem 0 0; padding: 0; }
.foot-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark-2); color: var(--silver-2); transition: color .2s, border-color .2s; }
.foot-social a:hover { color: #fff; border-color: var(--silver); }
.foot-word {
  direction: ltr; white-space: nowrap; text-align: center; line-height: 1; padding-block: 1rem 1.6rem;
  font: 600 clamp(2.6rem, 9.4vw, 9rem)/1 var(--body); letter-spacing: .14em; padding-inline-start: .14em;
  color: transparent; -webkit-text-stroke: 1px rgba(196, 204, 216, .22);
}
.foot-base { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; border-top: 1px solid var(--line-dark); padding-block: 1.4rem 1.8rem; font-size: .88rem; }
.foot-base a { color: var(--silver-2); }
.foot-credit { margin-inline-start: auto; }

.wa-float { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }

/* ---------- علامة المكتب: البحث العقاري قبل الشراء ----------
   قسم غامق بخط كبير، وجنبه «كشف» أبيض بالحاجات اللي بتتفحص وختم المكتب الفضي عليه */
.spotlight { position: relative; isolation: isolate; color: #fff; overflow: hidden; padding-block: clamp(5.5rem, 11vw, 9rem); }
.spot-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.spot-label { display: flex; align-items: center; gap: .85rem; color: var(--silver); font-weight: 600; margin-bottom: 1.4rem; }
.spot-label span { width: 46px; height: 1px; background: var(--silver); flex: none; }
.spot-copy h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.45; font-weight: 800; max-width: 18ch; margin-bottom: 1.8rem; }
.spot-p { color: var(--silver-2); font-size: 1.08rem; line-height: 2; max-width: 56ch; margin-bottom: 1rem; }
.spot-goal { color: #fff; font-weight: 600; line-height: 1.9; max-width: 56ch; margin-top: 1.4rem; padding-inline-start: 1.1rem; border-inline-start: 2px solid var(--silver); }
.spot-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: 2.4rem; }
.spotlight .link-arrow { color: var(--silver-2); }
.spotlight .link-arrow:hover { color: #fff; }
.spot-card { position: relative; background: #fff; color: var(--text); border-radius: 22px; padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7); }
.spot-seal { position: absolute; top: -34px; inset-inline-end: 26px; width: 74px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.spot-card h3 { font-size: 1.3rem; line-height: 1.5; margin-bottom: 1.2rem; padding-inline-end: 80px; }
.spot-card ul { list-style: none; margin: 0; padding: 0; }
.spot-card li { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 0; border-top: 1px solid var(--line); line-height: 1.75; }
.spot-card li svg { flex: none; margin-top: .25em; color: var(--slate); }
.spot-note { color: var(--text-2); font-size: .85rem; line-height: 1.85; margin-top: 1.1rem; padding-top: 1rem; border-top: 2px solid var(--black); }

/* ---------- لماذا تختار مكتب السعودي؟ ---------- */
.why { background: #fff; padding-block: clamp(5rem, 10vw, 8rem); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 3.2rem; }
.why-item { border-top: 2px solid var(--black); padding-top: 1.3rem; }
.why-item h3 { font-size: 1.22rem; line-height: 1.55; margin-bottom: .7rem; }
.why-item p { color: var(--text-2); line-height: 1.95; }

/* صفحة الخدمة: المجالات وتنبيه النطاق */
.tags { list-style: none; margin: -1.4rem 0 3rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .95rem; font-size: .92rem; font-weight: 600; color: var(--slate); background: var(--paper); }
.doc-note { color: var(--text-2); font-size: .92rem; line-height: 1.9; border-inline-start: 2px solid var(--slate); padding-inline-start: 1rem; margin-top: -.6rem; }

/* ---------- الوظائف ---------- */
.careers-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.careers-h { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.4; margin-bottom: 1.4rem; }
.jobs-state { color: var(--text-2); }
.job { border-top: 2px solid var(--black); padding-block: 1.4rem 1.8rem; scroll-margin-top: 100px; }
.job + .job { margin-top: .6rem; }
.job h3 { font-size: 1.35rem; line-height: 1.5; }
.job-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 1rem; padding: 0; list-style: none; }
.job-meta li { border: 1px solid var(--line); border-radius: 999px; padding: .2rem .8rem; font-size: .85rem; font-weight: 600; color: var(--slate); }
.job-desc p { color: var(--text-2); line-height: 1.95; margin-bottom: .6rem; }
.job-desc ul { margin: 0 0 .8rem; padding-inline-start: 1.2rem; color: var(--text-2); line-height: 1.95; }
.job .btn { margin-top: .8rem; }
.job.is-target { background: var(--paper); border-radius: 0 0 14px 14px; padding-inline: 1rem; }
.jobs-none { text-align: center; border: 1px dashed var(--line); border-radius: 22px; padding: 3rem 1.5rem; background: var(--paper); }
.jobs-none .metal-mark { width: 64px; margin-inline: auto; margin-bottom: 1.2rem; background: linear-gradient(110deg, #2c3a47, #7a8391 50%, #2c3a47); }
.jobs-none h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.jobs-none p { color: var(--text-2); }
.apply-form { position: sticky; top: 100px; }
.careers-grid:has(> .apply-form[hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.form[hidden] { display: none; } /* .form بتاخد display: grid — فالـ hidden لوحده مكانش بيخفيها */
.apply-form .careers-h { margin-bottom: .2rem; }
.apply-form input[type=file] { padding: .7rem; background: var(--paper); cursor: pointer; }

/* ---------- الشاشات الأصغر ---------- */
@media (max-width: 1180px) {
  .nav { gap: 1.3rem; }
  .top-portal { display: none; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav, .top-cta { display: none; }
  .menu-btn { display: inline-block; }
  .hero-grid, .network-grid, .portal-grid, .contact-grid, .doc, .spot-grid, .careers-grid, .about-layout { grid-template-columns: minmax(0, 1fr); }
  .founder { justify-self: start; max-width: 360px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apply-form { position: static; }
  .spot-card { margin-top: 1.5rem; }
  .hero-grid { padding-block: 120px 90px; gap: 2.5rem; }
  .hero-emblem { width: 190px; justify-self: start; order: -1; }
  .stack-card { position: static; }
  .stack-inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; min-height: 0; }
  .tl-steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .tl-rail { display: none; }
  .doc { gap: 3rem; }
  .doc-aside { position: static; }
  .network-map { max-width: 520px; }
}
@media (max-width: 640px) {
  :root { --pad: 18px; }
  body { font-size: 1rem; }
  .brand-ar { display: none; }
  .brand-name { font-size: .8rem; letter-spacing: .24em; }
  .brand-mark { width: 40px; }
  .hero-emblem { width: 140px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stack-list a { grid-template-columns: minmax(0, 1fr) 22px; gap: .2rem 1rem; }
  .sl-short { grid-column: 1; grid-row: 2; }
  .sl-go { grid-column: 2; grid-row: 1 / span 2; }
  /* الخريطة على الموبايل: قايمة رأسية بخط على الجنب */
  .network-map { aspect-ratio: auto; max-width: none; display: flex; flex-direction: column; gap: .8rem; padding-inline-start: 1.6rem; border-inline-start: 1px solid var(--line-dark-2); }
  .network-map svg { display: none; }
  .node, .node-center { position: static; transform: none; width: auto; text-align: start; }
  .node-center { flex-direction: row; justify-content: flex-start; aspect-ratio: auto; border-radius: 14px; padding: .8rem; }
  .node-center .metal-mark { width: 34px; }
  .tl-steps { grid-template-columns: 1fr; }
  .about-cols, .why-grid { grid-template-columns: minmax(0, 1fr); }
  .founder { max-width: none; }
  .spot-actions .btn { width: 100%; }
  .toast { position: relative; inset: auto; width: 100%; margin-top: .8rem; }
  .portal-stage { flex-direction: column; align-items: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-credit { margin-inline-start: 0; }
  .cta-row .btn, .big-cta .btn { width: 100%; }
}

/* ---------- النسخة الإنجليزي (/en/ — dir=ltr) ----------
   IBM Plex Sans من نفس عيلة خط العربي، والاتجاه كله بيتقلب: الخطوط بتتملي من الشمال، والشريط بيمشي للشمال،
   والأسهم بتشاور يمين (الأيقونة نفسها بتتبني بالاتجاه في build.js). */
html[lang="en"] {
  --display: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="en"] body { line-height: 1.7; }
html[lang="en"] .hero-lead, html[lang="en"] .sec-head .lead, html[lang="en"] .stack-side p, html[lang="en"] .sl-short,
html[lang="en"] .tl-steps p, html[lang="en"] .ticks li, html[lang="en"] .coverage dd, html[lang="en"] .node span { line-height: 1.6; }
html[lang="en"] .doc-intro { line-height: 1.65; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-weight: 600; letter-spacing: -.022em; }
html[lang="en"] .hero-title { font-size: clamp(2.3rem, 4.3vw, 4.1rem); line-height: 1.1; font-weight: 600; letter-spacing: -.032em; text-wrap: balance; }
html[lang="en"] .hero-title .line { white-space: normal; display: inline; }
html[lang="en"] .hero-title .line:first-child::after { content: " "; }
html[lang="en"] .sec-head h2, html[lang="en"] .big-cta h2, html[lang="en"] .page-hero h1, html[lang="en"] .cta-row h2 { line-height: 1.12; font-weight: 600; }
html[lang="en"] .stack-side h3 { line-height: 1.15; }
html[lang="en"] .statement-text { font-weight: 500; line-height: 1.32; letter-spacing: -.02em; max-width: 32ch; }
html[lang="en"] .spot-copy h2 { line-height: 1.15; font-weight: 600; max-width: 22ch; }
html[lang="en"] .founder b { font-weight: 600; }
html[lang="en"] .about-cols p, html[lang="en"] .spot-p, html[lang="en"] .spot-goal, html[lang="en"] .why-item p, html[lang="en"] .job-desc p, html[lang="en"] .spot-card li { line-height: 1.65; }
html[lang="en"] .big-cta h2 { max-width: 20ch; }
html[lang="en"] .brand-ar { text-transform: uppercase; letter-spacing: .2em; font-size: .6rem; }
html[lang="en"] .sl-name, html[lang="en"] .node b, html[lang="en"] .toast b { letter-spacing: -.01em; }
html[lang="en"] .tl-n { font-weight: 600; }
html[lang="en"] .sheet-nav span { font-weight: 600; letter-spacing: -.02em; }
[dir="ltr"] .nav a::after, [dir="ltr"] .tl-rail span { transform-origin: left; }
[dir="ltr"] .hero-word { right: auto; left: -2vw; }
[dir="ltr"] .marquee-track > div { direction: ltr; }
[dir="ltr"] .marquee-track { animation-direction: reverse; }
[dir="ltr"] .big-cta-mark { left: auto; right: var(--pad); }
[dir="ltr"] .link-arrow:hover svg { transform: translateX(6px); }
[dir="ltr"] .stack-list a:hover .sl-go { transform: translateX(8px); }
/* الإنجليزي كلامه أطول — القائمة فوق مابتتكسرش، و«Client login» فوق بيستخبى على الشاشات المتوسطة (موجود في الواجهة والقائمة) */
.nav a, .top-portal, .top-lang, .top-cta { white-space: nowrap; }
html[lang="en"] .nav { gap: 1.45rem; }
html[lang="en"] .top-row { gap: 1.3rem; }
@media (max-width: 1480px) { html[lang="en"] .top-portal { display: none; } }
@media (min-width: 961px) and (max-width: 1120px) { html[lang="en"] .brand-word { display: none; } }
/* مع «الوظائف» القايمة بقت 6 لينكات — على اللابتوب الضيق المسافات بتقل عشان زرار الحجز يفضل جوه الشاشة */
@media (min-width: 961px) and (max-width: 1060px) { .nav { gap: .95rem; } .top-row { gap: 1.1rem; } .top-lang { padding-inline: .55rem; } }
@media (max-width: 640px) { .top-lang { display: none; } }

