/* ============================================================
   Minfolio — Hala Alazzeh (DARK theme, bilingual / RTL)
   Rebuilt to match the live site screenshots
   ============================================================ */

@font-face{
  font-family:'The Year of The Camel';
  src:url('fonts/TheYearOfTheCamel-Regular.otf') format('opentype');
  font-weight:400;font-style:normal;font-display:swap;
}

:root{
  --bg:#0f0f0f;            /* page background (near-black) */
  --surface:#171717;       /* pills / tiles */
  --border:#2a2a2a;        /* subtle borders */
  --ink:#f5f5f5;           /* headings / strong */
  --ink-soft:#a4a4a4;      /* body text */
  --muted:#7a7a7a;         /* meta text + icons */
  --pill-active:#272727;   /* active nav */
  --light:#efeeec;         /* light CTA card + see-all button */
  --light-ink:#141414;     /* text on light surfaces */
  --btn-dark:#171717;      /* dark button on light card */
  --hover:#202020;         /* subtle hover bg (chrome) */
  --feature:#ffffff;       /* بطاقات See all + CTA — دارك مود: أبيض */
  --feature-ink:#141414;   /* النص فوقهن */
  --feature-btn:#171717;   /* زر داخل بطاقة CTA */
  --feature-btn-ink:#ffffff;
  --radius-card:22px; --radius-img:20px; --radius-tile:14px;
  --maxw:1920px;
  --font:'Inter', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-ar:'The Year of The Camel', 'Noto Kufi Arabic', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- LIGHT theme (white) ---------- */
/* نقلب «كروم» الصفحة فقط؛ الكروت الكريمية (CTA/see-all/info) تبقى كما هي */
:root.light{
  --bg:#ffffff;            /* صفحة بيضاء */
  --surface:#f3f3f4;       /* pills / tiles */
  --border:#e5e5e8;        /* حدود فاتحة */
  --ink:#101012;           /* عناوين / نص قوي */
  --ink-soft:#4f4f57;      /* نص الفقرات */
  --muted:#8a8a90;         /* نص ميتا + أيقونات */
  --pill-active:#ececee;   /* nav النشط */
  --hover:#ececee;         /* hover فاتح */
  --feature:#333333;       /* بطاقات See all + CTA — لايت مود: رمادي غامق */
  --feature-ink:#f5f5f5;   /* نص فاتح فوق الرمادي */
  --feature-btn:#ffffff;   /* زر داخل CTA */
  --feature-btn-ink:#1a1a1a;
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;scroll-behavior:smooth}
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--ink);
  min-height:100vh;
  transition:background .3s ease,color .3s ease;
}

.wrap{max-width:var(--maxw);margin:0 auto;padding:44px 48px}

.grid{display:grid;grid-template-columns:360px 1fr;gap:160px;align-items:start}

/* ---------- sidebar (sticky rail) ---------- */
.col-left{
  position:sticky;top:44px;align-self:start;
  min-height:calc(100vh - 88px);
  display:flex;flex-direction:column;
}
.nav{display:flex;align-items:center;gap:4px;font-family:'Fraunces',Georgia,serif;font-size:16px;font-weight:500}
.nav a{
  text-decoration:none;color:var(--ink);
  padding:6px 13px;border-radius:9px;transition:background .18s ease;
}
.nav a:hover,.nav a.active{background:var(--pill-active)}

.intro{
  margin-top:34px;
  font-family:'Fraunces',Georgia,serif;
  font-size:clamp(40px,3vw,54px);
  font-weight:600;line-height:1.04;letter-spacing:-.02em;color:var(--ink);
}
.intro-ar{
  margin-top:14px;
  font-family:var(--font-ar);
  font-size:clamp(18px,1.6vw,23px);
  font-weight:400;line-height:1.7;color:var(--ink-soft);
  direction:rtl;text-align:left;
}

/* identity (bottom of rail) */
.identity{margin-top:auto;padding-top:36px}
.photo{
  width:100%;max-width:200px;aspect-ratio:1/1;border-radius:16px;display:block;overflow:hidden;
  background:radial-gradient(120% 120% at 35% 25%,#3a3a3a,#1b1b1b);
  border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
}
.photo img{width:100%;height:100%;object-fit:cover;display:block}
.photo .hint{color:rgba(255,255,255,.4);font-size:13px;border:1px dashed rgba(255,255,255,.25);padding:8px 14px;border-radius:10px}

.socials{display:flex;align-items:center;gap:11px;margin-top:22px}
.socials a{
  width:40px;height:40px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--muted);background:var(--surface);border:1px solid var(--border);
  transition:color .2s ease,background .2s ease,transform .2s ease,border-color .2s ease;
}
.socials a:hover{color:var(--ink);background:var(--hover);border-color:var(--border);transform:translateY(-3px)}
.socials svg{width:17px;height:17px;display:block}

.name{margin-top:18px;font-family:'Fraunces',Georgia,serif;font-size:22px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
.role,.spec{font-size:15px;color:var(--ink-soft);line-height:1.5}
.role{margin-top:6px}

/* ---------- main column ---------- */
.col-right{display:flex;flex-direction:column;min-width:0}
.eyebrow{font-family:'Fraunces',Georgia,serif;font-size:22px;font-weight:600;color:var(--ink);margin-bottom:22px}
section{margin-top:60px}
section.first{margin-top:0}
/* full-width sections sit flush together — no inter-section gap
   (the gap showed as black "separators" in dark mode) */
.svc-stack-sec,.closing,.tst,.leadmag,.finalcta{margin-top:0}

/* featured work — full-width stacked cards */
.work-list{display:flex;flex-direction:column;gap:22px}
.work-card{display:block;border-radius:var(--radius-img);overflow:hidden;text-decoration:none;position:relative}
.work-thumb{
  aspect-ratio:16/9;overflow:hidden;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#e9e9ec,#cfd2d8);
}
.work-thumb img{width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.work-card:hover .work-thumb img{transform:scale(1.04)}
.work-thumb .mock{
  width:62%;height:64%;border-radius:14px 14px 0 0;background:#15151a;align-self:flex-end;margin-bottom:0;
  box-shadow:0 24px 50px -18px rgba(0,0,0,.5);
  display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.55);font-size:15px;font-weight:500;
  transition:transform .4s cubic-bezier(.2,.7,.2,1);
}
.work-card:hover .mock{transform:scale(1.03) translateY(-4px)}

/* see all projects — light full-width button */
.see-all{
  display:block;width:100%;text-align:center;margin-top:22px;
  background:var(--feature);color:var(--feature-ink);text-decoration:none;
  font-size:15px;font-weight:600;padding:16px;border-radius:12px;
  transition:opacity .18s ease;
}
.see-all:hover{opacity:.88}

/* marquees (skills) */
.marquee{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.mrow{display:flex;gap:12px;width:max-content;margin-bottom:12px}
.mrow.a{animation:scrollx 32s linear infinite}
.mrow.b{animation:scrollx 38s linear infinite reverse}
.mrow.c{animation:scrollx 28s linear infinite}
.marquee:hover .mrow{animation-play-state:paused}
@keyframes scrollx{from{transform:translateX(0)}to{transform:translateX(-50%)}}

.pill{
  flex:0 0 auto;padding:10px 18px;border-radius:999px;
  background:var(--surface);border:1px solid var(--border);
  font-size:15px;font-weight:500;color:var(--ink-soft);white-space:nowrap;
}

/* tech stack */
.tech-row{display:flex;flex-wrap:wrap;gap:12px}
.tech{
  display:inline-flex;align-items:center;gap:9px;
  padding:10px 16px;border-radius:999px;
  background:var(--surface);border:1px solid var(--border);
  font-size:15px;font-weight:500;color:var(--ink);
  transition:background .18s ease,transform .18s ease;
}
.tech:hover{background:var(--hover);transform:translateY(-2px)}
.tech .ic{width:22px;height:22px;border-radius:5px;background:transparent;flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;overflow:hidden}
.tech .ic img{width:100%;height:100%;object-fit:contain;display:block}
.tech .ic.lib{background:#fff;padding:3px}   /* شعارات مسطّحة من المكتبة (Figma/Claude) */

/* experience — RTL arabic */
.xp-text{
  font-family:var(--font);direction:ltr;text-align:left;
  font-size:17px;line-height:1.9;color:var(--ink-soft);
}
.xp-text + .xp-text{margin-top:16px}   /* مسافة بين فقرات النبذة */

/* ---------- hero quick-action buttons (CTAs) ---------- */
.hero-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.hero-btn{display:inline-flex;align-items:center;justify-content:center;
  padding:11px 18px;border-radius:999px;font-size:15px;font-weight:600;
  font-family:'Fraunces',Georgia,serif;
  text-decoration:none;cursor:pointer;
  transition:transform .18s ease,opacity .18s ease,background .18s ease}
.hero-btn:hover{transform:translateY(-2px)}
.hero-btn.primary{background:var(--ink);color:var(--bg)}
.hero-btn.primary:hover{opacity:.9}
.hero-btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--border)}
.hero-btn.ghost:hover{background:var(--hover)}

/* smooth scroll to in-page sections, with offset so they don't hide under the top toggles */
html{scroll-behavior:smooth}
#services,#freebie{scroll-margin-top:90px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ---------- testimonials slider (fixed soft-black band) ---------- */
.tst{background:#161616;color:#f2f2f2;padding:clamp(64px,11vh,130px) 0}
.tst-inner{max-width:1200px;margin:0 auto;padding:0 clamp(24px,6vw,72px);text-align:center}
.tst-eyebrow{font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:#8a8a8a;margin-bottom:34px}
.tst-slider{position:relative;min-height:170px}
.tst-slide{position:absolute;inset:0;margin:auto;display:flex;align-items:center;justify-content:center;
  font-family:'Fraunces',Georgia,serif;font-weight:500;font-size:clamp(20px,2.6vw,30px);line-height:1.5;
  color:#f2f2f2;opacity:0;visibility:hidden;transition:opacity .6s ease;pointer-events:none}
.tst-slide.is-active{position:relative;opacity:1;visibility:visible;pointer-events:auto}
.tst-dots{display:flex;gap:9px;justify-content:center;margin-top:30px}
.tst-dots button{width:9px;height:9px;border-radius:50%;border:none;cursor:pointer;padding:0;
  background:#4a4a4a;transition:background .2s ease,transform .2s ease}
.tst-dots button.is-active{background:#f2f2f2;transform:scale(1.25)}
@media (prefers-reduced-motion:reduce){.tst-slide{transition:none}}

/* ---------- keyboard focus visibility (accessibility) ---------- */
:focus-visible{outline:2px solid #5fa8d6;outline-offset:3px;border-radius:4px}

/* homepage "About me": full on desktop; collapsed with "Read more" on mobile */
.about-toggle{display:none;margin-top:18px;background:transparent;border:1px solid var(--border);
  color:var(--ink);font-family:var(--font);font-size:14px;font-weight:600;
  padding:9px 18px;border-radius:999px;cursor:pointer;transition:background .18s ease}
.about-toggle:hover{background:var(--hover)}
@media (max-width:620px){
  body.home .about-home .about-toggle{display:inline-block}
  /* collapsed: show only the first paragraph, clamped to ~4 lines */
  body.home .about-home .xp-text{display:none}
  body.home .about-home .xp-text:first-of-type{
    display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
  /* expanded: reveal everything */
  body.home .about-home.expanded .xp-text{display:block}
  body.home .about-home.expanded .xp-text:first-of-type{-webkit-line-clamp:unset;overflow:visible}
}

/* بانر صورة أعلى صفحة About */
.about-banner{width:100%;border-radius:var(--radius-img);overflow:hidden;margin-bottom:30px}
.about-banner img{width:100%;height:auto;display:block}

/* about bio */
.portrait{
  width:100%;aspect-ratio:7/5;border-radius:var(--radius-img);overflow:hidden;
  background:radial-gradient(140% 110% at 60% 18%,#3a3a3a,#181818);
  display:flex;align-items:center;justify-content:center;
}
.portrait img{width:100%;height:100%;object-fit:cover;display:block}
.bio{margin-top:30px;display:flex;flex-direction:column;gap:20px}
.bio p{font-size:16.5px;line-height:1.62;color:var(--ink-soft);max-width:62ch}
.bio p strong{color:var(--ink);font-weight:600}

/* projects page header */
.page-head{font-size:clamp(34px,4vw,54px);font-weight:700;letter-spacing:-.03em;line-height:1.05;color:var(--ink)}

/* CTA — light card */
.cta{margin-top:64px;background:var(--feature);border-radius:var(--radius-card);padding:44px}
.cta h2{color:var(--feature-ink);font-size:clamp(28px,2.6vw,40px);font-weight:700;letter-spacing:-.02em}
.cta a{
  display:inline-flex;align-items:center;margin-top:24px;
  background:var(--feature-btn);color:var(--feature-btn-ink);text-decoration:none;
  font-size:15px;font-weight:500;padding:13px 22px;border-radius:999px;
  transition:transform .18s ease,opacity .18s ease;
}
.cta a:hover{transform:translateY(-2px);opacity:.92}

/* footer */
.foot{margin-top:34px;display:flex;flex-direction:column;gap:8px}
.foot a{color:var(--ink-soft);text-decoration:none;font-size:15px;width:max-content;transition:color .18s ease}
.foot a:hover{color:var(--ink)}

/* entrance animation */
@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
.anim{opacity:0;animation:rise .7s cubic-bezier(.2,.7,.2,1) forwards}
.d1{animation-delay:.05s}.d2{animation-delay:.13s}.d3{animation-delay:.21s}
.d4{animation-delay:.29s}.d5{animation-delay:.37s}.d6{animation-delay:.45s}
.d7{animation-delay:.53s}.d8{animation-delay:.61s}
@media (prefers-reduced-motion:reduce){.anim{animation:none;opacity:1}.mrow{animation:none}}

/* responsive */
@media (max-width:860px){
  .wrap{padding:18px}
  .grid{display:flex;flex-direction:column;gap:30px}
  .col-left{position:static;min-height:0;display:contents}
  .nav{order:1}.intro{order:2;margin-top:16px}.intro-ar{order:3}
  .col-right{order:5}.identity{order:4;margin-top:18px;padding-top:18px}
  .photo{max-width:160px}
  .cta{padding:30px}
  section{margin-top:46px}
}

/* ---------- scroll-reveal + page transitions (added per brief §7و) ---------- */
[data-reveal]{opacity:0;transform:translateY(22px);
  transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1)}
[data-reveal].is-visible{opacity:1;transform:none}

body.page-enter{opacity:0}
body.page-enter.page-enter-active{opacity:1;transition:opacity .35s ease}
body.page-leave{opacity:0;transition:opacity .24s ease}

@media (prefers-reduced-motion:reduce){
  [data-reveal]{opacity:1;transform:none;transition:none}
  body.page-enter,body.page-leave{opacity:1;transition:none}
}

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
.proj-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:24px;
  color:var(--ink-soft);font-size:14px;font-weight:500;text-decoration:none;
  transition:gap .22s ease,color .22s ease}
.proj-back:hover{gap:13px;color:var(--ink)}
.proj-back svg{width:18px;height:18px;flex:0 0 auto}
html.ar .proj-back svg{transform:scaleX(-1)}
.proj-title{font-size:clamp(30px,3vw,42px);font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.proj-intro{margin-top:18px;font-size:18px;line-height:1.65;color:var(--ink-soft);max-width:72ch}

.proj-figure{
  margin-top:30px;width:100%;border-radius:var(--radius-img);overflow:hidden;
  background:linear-gradient(135deg,#cfe6f0,#eaf3f7);
  display:flex;align-items:center;justify-content:center;
}
.proj-figure.banner{aspect-ratio:16/10}
.proj-figure.wide{aspect-ratio:16/9}
.proj-figure img{width:100%;height:100%;object-fit:cover;display:block}
.proj-figure .hint{color:#5b7a88;font-size:14px;border:1px dashed #9fbcca;padding:9px 16px;border-radius:10px}

/* ROLE / PROBLEM / RESULTS */
.meta-block{margin-top:44px}
.meta-label{font-size:12px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.meta-value{font-size:17px;line-height:1.6;color:var(--ink)}
.meta-list{display:flex;flex-direction:column;gap:6px}

/* content sections */
.proj-section{margin-top:60px}
.proj-h{font-size:clamp(24px,2.4vw,34px);font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.proj-p{margin-top:16px;font-size:17px;line-height:1.7;color:var(--ink);font-weight:500;max-width:78ch}
.proj-p + .proj-p{margin-top:18px}

/* conclusion + collaboration credit */
.collab{margin-top:22px;font-size:16px;color:var(--ink-soft)}
.collab a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;transition:opacity .18s ease}
.collab a:hover{opacity:.7}

/* ---- light info card ---- */
.info-card{margin-top:60px;background:var(--light);color:var(--light-ink);border-radius:26px;padding:38px;
  --ic-hl1:#3aa0e0;--ic-hl2:#86cbf0;          /* gradient البطاقة المميّزة */
  --ic-line1:#bfe8c2;--ic-line2:#5cc0e6;      /* تعبئة التايملاين */
  --ic-dot:#7bd07e;                            /* النقطة الحالية */
  --ic-glow:rgba(190,230,90,.55);              /* وهج «We're here» */
  --ic-glow-soft:rgba(190,230,90,.45);
  --ic-glow-ink:#3a6b1f}
.info-top{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.info-pills{display:flex;flex-direction:column;gap:14px}
.info-pill{background:#e3e2df;border-radius:999px;padding:15px 24px;font-size:16px;font-weight:500;color:#262626}
.info-pill.hl{background:linear-gradient(90deg,var(--ic-hl1),var(--ic-hl2));color:#fff}
.info-desc{direction:rtl;text-align:right;font-family:var(--font-ar);font-size:16px;line-height:1.95;color:#3a3a3a}
.tag-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;direction:rtl}
.tag{border:1px solid #c9c8c4;border-radius:999px;padding:8px 17px;font-size:14px;color:#2a2a2a;background:transparent}

/* ---- process timeline (desktop horizontal) ---- */
.timeline{margin-top:52px}
.tl-row{display:flex;justify-content:space-between;position:relative}
.tl-row::before{content:"";position:absolute;left:6%;right:6%;top:4px;height:2px;background:#d4d3d0}
.tl-row::after{content:"";position:absolute;left:6%;top:4px;height:2px;width:var(--fill,50%);
  background:linear-gradient(90deg,var(--ic-line1),var(--ic-line2));border-radius:2px}
.tl-step{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;z-index:1}
.tl-dot{width:9px;height:9px;border-radius:50%;background:#b7b6b2;border:2px solid var(--light);box-sizing:content-box}
.tl-stick{width:1px;height:48px;background:#cfceca;margin:8px 0 10px}
.tl-lbl{font-size:13px;color:#5a5a5a;text-align:center;line-height:1.35;max-width:140px}
.tl-step.current .tl-dot{background:var(--ic-dot)}
.tl-marker{
  position:absolute;top:-44px;left:50%;transform:translateX(-50%);
  width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  text-align:center;font-size:11px;font-weight:600;color:var(--ic-glow-ink);line-height:1.15;
  background:radial-gradient(circle,var(--ic-glow),transparent 70%);
}

/* extra arabic brand card */
.brand-card{margin-top:24px;background:var(--light);color:var(--light-ink);border-radius:26px;padding:38px}
.brand-card .ar{direction:rtl;text-align:right;font-family:var(--font-ar);font-size:16px;line-height:2;color:#3a3a3a}

/* ============================================================
   MOBILE — homepage + project page (≤860 / ≤620)
   ============================================================ */
@media (max-width:860px){
  /* hero a touch smaller so it doesn't dominate the small screen */
  .intro{font-size:clamp(30px,8.5vw,40px)}
  .intro-ar{font-size:clamp(17px,4.6vw,21px)}

  /* identity sits under the hero like a profile header, nicely spaced */
  .identity{margin-top:22px;padding-top:22px;border-top:1px solid var(--border)}
  .photo{max-width:160px}
  .name{font-size:20px}

  /* project page: stack info card, ease paddings */
  .proj-intro{font-size:16.5px}
  .info-card{padding:26px 22px;border-radius:22px}
  .info-top{grid-template-columns:1fr;gap:26px}
  .info-desc{text-align:right}
  .meta-block{margin-top:34px}
  .proj-section{margin-top:46px}
  .proj-figure.banner{aspect-ratio:16/11}

  /* timeline becomes a clean vertical list on phones */
  .timeline{margin-top:38px}
  .tl-row{flex-direction:column;align-items:stretch}
  .tl-row::before{left:5px;right:auto;top:6px;bottom:6px;width:2px;height:auto}
  .tl-row::after{left:5px;right:auto;top:6px;width:2px;height:var(--fill,50%);
    background:linear-gradient(180deg,var(--ic-line1),var(--ic-line2))}
  .tl-step{flex-direction:row;align-items:flex-start;gap:16px;padding:11px 0;width:auto}
  .tl-dot{margin-top:5px}
  .tl-stick{display:none}
  .tl-lbl{text-align:left;max-width:none;font-size:14.5px;color:#3a3a3a;font-weight:500}
  .tl-step.current .tl-lbl{font-weight:700;color:#1f1f1f}
  .tl-marker{
    position:static;transform:none;width:auto;height:auto;border-radius:999px;
    margin-left:10px;padding:3px 12px;font-size:11px;color:var(--ic-glow-ink);white-space:nowrap;
    background:var(--ic-glow-soft);
  }
  .tl-marker br{display:none}
}

@media (max-width:620px){
  .wrap{padding:66px 16px 16px}   /* مسافة فوق ليبدأ الكلام تحت أزرار الهامبرغر/الثيم */
  .intro{font-size:clamp(28px,9vw,36px)}
  .cta{padding:26px 22px}
  .cta h2{font-size:clamp(24px,7vw,30px)}
  .work-list{gap:16px}
  .proj-title{font-size:clamp(26px,8vw,34px)}
}

/* identity block (photo + socials + name) shows ONLY on the homepage */
.identity{display:none}
body.home .identity{display:block}

/* ---- mobile hardening: kill horizontal overflow + safe hero wrap ---- */
@media (max-width:860px){
  html,body{overflow-x:clip}   /* clip بدل hidden عشان ما يكسر position:sticky على الموبايل */
  .grid,.col-left,.col-right{min-width:0;max-width:100%}
  .marquee{max-width:100%}
  .intro{font-size:clamp(28px,7.2vw,38px);overflow-wrap:break-word;word-break:normal}
  .work-thumb img,.proj-figure img{max-width:100%}
}

/* ---- mobile: sidebar becomes a normal stacked column (fixes hero overflow) ---- */
@media (max-width:860px){
  .col-left{display:flex;flex-direction:column;position:static;min-height:0;width:100%}
  .intro{margin-top:14px}
  .intro-ar{margin-top:10px}
}

/* ---- mobile: bulletproof block stacking (no flex width quirks) ---- */
@media (max-width:860px){
  .grid{display:block}
  .col-left{display:block;width:auto}
  .col-right{display:block;width:auto;margin-top:34px}
  .intro{max-width:100%}
}

/* ============================================================
   TOGGLE BAR (language + theme) — fixed top-right
   ============================================================ */
.toggles{
  position:absolute;top:40px;right:48px;z-index:50;
  display:flex;align-items:center;gap:8px;
}
.tg{
  height:40px;min-width:40px;padding:0 14px;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  background:var(--surface);border:1px solid var(--border);border-radius:999px;
  color:var(--ink);font-family:var(--font);font-size:14px;font-weight:600;
  cursor:pointer;transition:background .18s ease,transform .18s ease,border-color .18s ease;
}
.tg:hover{background:var(--hover);transform:translateY(-2px)}
.tg svg{width:18px;height:18px;display:block}
/* theme button: show sun in dark mode, moon in light mode */
.tg .ic-moon{display:none}
:root.light .tg .ic-sun{display:none}
:root.light .tg .ic-moon{display:block}
@media (max-width:860px){
  .toggles{top:16px;right:16px;gap:6px}
  .tg{height:36px;min-width:36px;padding:0 11px;font-size:13px}
}

/* ---- project card caption (Projects page) ---- */
.work-cap{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:15px 6px 4px}
.work-title{font-size:17px;font-weight:600;color:var(--ink);letter-spacing:-.01em}
.work-cat{font-size:13px;color:var(--muted);text-align:right;white-space:nowrap}
@media (max-width:620px){
  .work-cap{flex-direction:column;gap:2px;padding:12px 4px 2px}
  .work-cat{text-align:left}
}

/* ============================================================
   MOBILE HERO — مطابق للسكرين شوت المرجعي (أحجام/أبعاد)
   آخر بلوك بالملف ليغلب القواعد السابقة (cascade)
   ============================================================ */
@media (max-width:620px){
  /* العنوان الإنجليزي: كبير، bold، أسطر متقاربة — بخط Inter على الموبايل */
  .intro{
    font-family:var(--font);
    font-size:52px;line-height:1.06;letter-spacing:-.02em;font-weight:700;
    margin-top:16px;color:var(--ink);
  }
  /* السطر العربي تحته: أصغر، رمادي ناعم */
  .intro-ar{
    font-size:23px;line-height:1.65;margin-top:14px;color:var(--ink-soft);
  }
  /* الصورة أصغر (~70% من العرض) مربّعة */
  .identity{margin-top:26px;padding-top:0;border-top:0}
  .photo{max-width:none;width:70%;aspect-ratio:1/1;border-radius:18px}
  /* السوشال + الاسم + الصفة */
  .socials{gap:18px;margin-top:22px}
  .name{font-size:22px;margin-top:20px}
  .role{font-size:13.5px}
  /* زر "Browse services" على الموبايل فقط: أزرق البراند + سهم خفيف (بالويب يضل أسود) */
  .hero-btn.primary{background:#5fa8d6;color:#fff}
  .hero-btn.primary::after{content:"\2192";margin-inline-start:8px;font-weight:400;opacity:.9}
  html.ar .hero-btn.primary::after{content:"\2190"}
}

/* ============================================================
   MOBILE MENU (hamburger) — موبايل فقط
   ============================================================ */
.nav-toggle{display:none}            /* مخفي على الديسكتوب */
.nav-toggle svg{width:20px;height:20px}

@media (max-width:620px){
  .nav-toggle{display:inline-flex}   /* يظهر على الجوّال فقط */
  .nav{display:none}                 /* التنقّل المضمّن يختفي */

  /* عند فتح الهامبرغر: منيو منسدل بخلفية بيضا وكلام أسود */
  body.menu-open .nav{
    display:flex;flex-direction:column;gap:4px;opacity:1;
    position:fixed;inset:0;z-index:40;          /* كامل الشاشة */
    padding:96px 28px 28px;                      /* مساحة فوق لأزرار التبديل */
    background:#fff;
    animation:drawerIn .28s cubic-bezier(.2,.7,.2,1) forwards;
  }
  body.menu-open .nav a{
    color:#141414;background:transparent;
    font-size:15px;font-weight:600;width:100%;
    padding:14px 4px;border-radius:0;border-bottom:1px solid #ececec;
  }
  /* الهوفر/النشط = الأزرق تبعنا */
  body.menu-open .nav a:hover,
  body.menu-open .nav a.active{background:transparent;color:#72c6ef}
}
/* ينزلق من يمين الصفحة */
@keyframes drawerIn{from{transform:translateX(100%)}to{transform:translateX(0)}}

/* محاذاة التنقّل مع العنوان على الويب (تعويض padding أول رابط) */
@media (min-width:621px){ .nav{margin-left:-13px} }

/* ============================================================
   SECTION TWO: Services (full-screen stacking panels)
   ============================================================ */
.svc-stack-sec{position:relative}
.svc-card{
  position:sticky;top:0;min-height:100svh;
  display:flex;align-items:center;padding:clamp(60px,10vh,120px) 0;color:#141414;
}
.svc-card-inner{max-width:1240px;width:100%;margin:0 auto;padding:0 clamp(24px,6vw,88px)}
.svc-title{margin:0;font-family:'Fraunces',Georgia,serif;font-weight:600;
  font-size:clamp(44px,7vw,104px);line-height:.98;letter-spacing:-.01em;color:#141414}
.svc-eyebrow{display:block;margin-top:18px;font-size:14px;font-weight:600;
  letter-spacing:.18em;text-transform:uppercase;color:rgba(20,20,20,.5)}
.svc-desc{margin-top:24px;font-size:clamp(16px,1.3vw,19px);line-height:1.8;color:#3a3a3a;max-width:560px}
/* ألوان البراند بالتتابع — كل خدمة لون يملأ القسم كامل */
.svc-card.c1{background:#bfdaed}   /* أزرق باستيل ناعم (درجة الصورة) */
.svc-card.c2{background:#e7ded0}
.svc-card.c3{background:#f1ece1}
.svc-card.c4{background:#fbfaf7}
/* رقم الخدمة — كبير وناعم بالزاوية العليا (ثابت لكل خدمة) */
.svc-num{position:absolute;top:clamp(34px,6vh,72px);right:clamp(24px,5vw,80px);
  font-family:'Fraunces',Georgia,serif;font-weight:500;line-height:1;
  font-size:clamp(72px,12vw,200px);color:rgba(20,20,20,.16);pointer-events:none}
@media (max-width:860px){
  .svc-num{font-size:64px;top:26px;right:18px}
}
/* تسمية القسم الثابتة بالزاوية (يسار فوق) */
.svc-tag{position:absolute;top:clamp(40px,6.5vh,76px);left:clamp(24px,5vw,80px);z-index:1;
  font-size:13px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:rgba(20,20,20,.55)}
@media (max-width:860px){
  .svc-tag{top:30px;left:18px;font-size:10.5px;letter-spacing:.16em}
}
@media (max-width:860px){
  .svc-card{padding:88px 0}
  .svc-card-inner{padding:0 22px}
  .svc-title{font-size:clamp(40px,12vw,68px)}
}
@media (prefers-reduced-motion:reduce){
  .svc-card{position:static;min-height:auto;padding:72px 0}
}



/* فقرة قسم الدعوة داخل بطاقة الـCTA */
.cta p{margin-top:14px;font-size:16px;line-height:1.75;color:var(--feature-ink);opacity:.85;max-width:62ch}
.cta.invite a{margin-top:22px}

/* ============================================================
   CLOSING — قسم تموضع + دعوة، خلفية بيضاء صافية + شكل أزرق
   ============================================================ */
.closing{position:relative;background:#ffffff;color:#141414;overflow:hidden;
  padding:clamp(80px,13vh,170px) 0}
.closing-inner{position:relative;z-index:1;max-width:1240px;margin:0 auto;padding:0 clamp(24px,6vw,88px);
  display:flex;justify-content:flex-end}
.closing-copy{max-width:580px}
.closing-title{margin:0;font-family:'Fraunces',Georgia,serif;font-weight:600;
  font-size:clamp(32px,5vw,66px);line-height:1.08;letter-spacing:-.01em;color:#141414;max-width:18ch}
.closing-text{margin-top:24px;font-size:clamp(16px,1.35vw,19px);line-height:1.8;color:#3a3a3a;max-width:64ch}
.closing-cta{display:inline-flex;align-items:center;margin-top:32px;
  background:#141414;color:#fff;text-decoration:none;font-weight:600;
  padding:15px 28px;border-radius:999px;transition:transform .18s ease,opacity .18s ease}
.closing-cta:hover{transform:translateY(-2px);opacity:.92}
.closing-shape{position:absolute;top:50%;left:clamp(16px,5vw,90px);transform:translateY(-50%);
  width:clamp(270px,34vw,540px);height:auto;opacity:.9;pointer-events:none;z-index:0}
@media (max-width:860px){
  .closing{padding:19px 0 26px}
  .closing-inner{justify-content:flex-start}
  .closing-copy{max-width:none}
  /* على الموبايل: النجمة عنصر عادي في أعلى القسم، قبل النص مباشرةً
     (وليست خلف الزر). position:static يعيدها إلى التدفق الطبيعي. */
  .closing-shape{
    position:static;display:block;
    width:168px;margin:0 0 4px clamp(20px,6vw,88px);
    transform:none;opacity:.95;
  }
}

/* ============================================================
   FINAL CTA — خلفية فيديو + دعوة ختامية
   ============================================================ */
.finalcta{position:relative;min-height:82vh;display:flex;align-items:center;justify-content:center;
  text-align:center;color:#fff;overflow:hidden;padding:clamp(80px,12vh,150px) 24px}
.finalcta-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.finalcta-overlay{position:absolute;inset:0;z-index:1;
  background:linear-gradient(150deg,rgba(34,82,126,.7),rgba(95,168,214,.52))}
.finalcta-inner{position:relative;z-index:2;max-width:800px}
.finalcta h2{margin:0;font-family:'Fraunces',Georgia,serif;font-weight:600;
  font-size:clamp(34px,5.5vw,72px);line-height:1.08;letter-spacing:-.01em;color:#fff}
.finalcta p{margin:22px auto 0;font-size:clamp(16px,1.6vw,20px);line-height:1.7;color:rgba(255,255,255,.9);max-width:58ch}
.finalcta-btn{display:inline-flex;margin-top:34px;background:#fff;color:#141414;font-weight:700;font-size:16px;
  text-decoration:none;padding:16px 36px;border-radius:999px;transition:transform .18s ease,opacity .18s ease}
.finalcta-btn:hover{transform:translateY(-2px);opacity:.92}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{background:#0c0c0c;color:#a4a4a4;text-align:center;padding:54px 24px 40px}
.f-nav{display:flex;gap:24px;justify-content:center;flex-wrap:wrap}
.f-nav a{color:#d4d4d4;text-decoration:none;font-size:15px;font-weight:500;transition:color .18s ease}
.f-nav a:hover{color:#fff}
.f-social{display:flex;gap:14px;justify-content:center;margin-top:26px}
.f-social a{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  color:#9a9a9a;background:#171717;border:1px solid #2a2a2a;transition:color .2s,background .2s,transform .2s}
.f-social a:hover{color:#fff;background:#202020;transform:translateY(-3px)}
.f-social svg{width:17px;height:17px}
.f-name{margin-top:26px;color:#e9e9e9;font-weight:700;font-size:16px}
.f-copy{margin-top:8px;font-size:13px;color:#6a6a6a}

/* ============================================================
   LEAD MAGNET — كتيب مجاني + فورم إيميل (خلفية بيضاء)
   ============================================================ */
.leadmag{position:relative;background:#ffffff;color:#141414;overflow:hidden;
  padding:clamp(80px,12vh,150px) 24px}
.lm-inner{position:relative;z-index:1;max-width:1180px;margin:0 auto;
  display:grid;grid-template-columns:1.05fr .95fr;gap:64px;align-items:center}
.lm-eyebrow{display:inline-block;font-size:13px;font-weight:600;letter-spacing:.18em;
  text-transform:uppercase;color:#5a86a0}
.lm-title{margin:14px 0 0;font-family:'Fraunces',Georgia,serif;font-weight:600;
  font-size:clamp(30px,3.8vw,52px);line-height:1.08;letter-spacing:-.01em;color:#141414;max-width:16ch}
.lm-text{margin-top:18px;font-size:clamp(15px,1.25vw,18px);line-height:1.75;color:#3a3a3a;max-width:48ch}
.lm-form{display:flex;align-items:center;gap:0;margin-top:28px;max-width:520px;flex-wrap:nowrap;
  border:1px solid #d8d8d8;border-radius:999px;background:#fff;padding:5px;
  transition:border-color .18s,box-shadow .18s}
.lm-form:focus-within{border-color:#72c6ef;box-shadow:0 0 0 3px rgba(114,198,239,.25)}
.lm-form input{flex:1 1 auto;min-width:0;padding:11px 18px;border:0;background:transparent;
  font-family:var(--font);font-size:15px;color:#141414}
.lm-form input:focus{outline:none}
.lm-form button{flex:0 0 auto;padding:13px 26px;border:0;border-radius:999px;background:#141414;color:#fff;
  font-family:var(--font);font-weight:600;font-size:15px;cursor:pointer;transition:opacity .18s}
.lm-form button:hover{opacity:.9}
.lm-note{margin-top:16px;font-size:15px;font-weight:500;color:#2a7a4a}

/* الكتيب الافتراضي (mockup) */
.lm-visual{display:flex;justify-content:center;align-items:center}
.booklet{
  width:min(330px,72vw);aspect-ratio:3/4;border-radius:6px 14px 14px 6px;
  background:linear-gradient(135deg,#cfe6f4,#eaf3f8 60%,#ffffff);
  border:1px solid #e3e3e3;box-shadow:0 40px 80px -30px rgba(20,40,60,.5),inset 7px 0 0 rgba(0,0,0,.06);
  padding:38px 34px;display:flex;flex-direction:column;
  transform:rotate(-4deg);transition:transform .4s ease;
}
.lm-visual:hover .booklet{transform:rotate(-1deg) translateY(-4px)}
.booklet-kicker{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#5a86a0}
.booklet-title{margin:auto 0;font-family:'Fraunces',Georgia,serif;font-weight:600;
  font-size:clamp(26px,2.4vw,34px);line-height:1.12;color:#1a2e3a}
.booklet-by{font-size:13px;color:#5a6b76}
.lm-shape{position:absolute;top:-6%;right:-4%;width:clamp(160px,26vw,420px);height:auto;
  opacity:.55;pointer-events:none}
@media (max-width:860px){
  .leadmag{padding:70px 18px}
  .lm-inner{grid-template-columns:1fr;gap:40px}
  .lm-visual{order:-1}
  .lm-shape{width:200px;top:-20px;right:-30px;opacity:.45}
}

/* ============================================================
   نافذة التأكيد (pop-up) بعد تسجيل الإيميل
   ============================================================ */
.lm-modal{
  position:fixed;inset:0;z-index:300;                 /* فوق كل شيء */
  display:flex;align-items:center;justify-content:center;padding:24px;
  background:rgba(0,0,0,.62);                          /* تعتيم الخلفية */
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  opacity:0;transition:opacity .25s ease;             /* ظهور ناعم */
}
/* مهم: عندما تكون النافذة مخفية، نُلغي عرضها تماماً حتى لا تغطّي
   الصفحة وتمنع الضغط على باقي العناصر. */
.lm-modal[hidden]{display:none}
.lm-modal.open{opacity:1}                              /* نضيف .open من الـ JS */
.lm-modal-card{
  position:relative;width:min(420px,100%);
  background:var(--surface);border:1px solid var(--border);
  border-radius:20px;padding:40px 32px 32px;text-align:center;
  font-family:var(--font);color:var(--ink);
  box-shadow:0 40px 90px -30px rgba(0,0,0,.6);
  transform:translateY(12px) scale(.98);transition:transform .25s ease;
}
.lm-modal.open .lm-modal-card{transform:translateY(0) scale(1)}
.lm-modal-close{
  position:absolute;top:14px;right:14px;               /* close button top-right (LTR) */
  width:34px;height:34px;display:grid;place-items:center;
  background:transparent;border:none;border-radius:9px;cursor:pointer;
  color:var(--muted);transition:background .2s,color .2s;
}
.lm-modal-close:hover{background:var(--hover);color:var(--ink)}
.lm-modal-close svg{width:18px;height:18px}
.lm-modal-icon{
  width:62px;height:62px;margin:0 auto 18px;
  display:grid;place-items:center;border-radius:50%;
  background:var(--hover);color:var(--ink);
}
.lm-modal-icon svg{width:28px;height:28px}
.lm-modal-title{font-size:24px;font-weight:700;margin-bottom:12px}
.lm-modal-text{font-size:15px;line-height:1.85;color:var(--ink-soft);margin-bottom:26px}
.lm-modal-text strong{color:var(--ink);font-weight:700}
.lm-modal-btn{
  display:block;width:100%;padding:14px;border:none;border-radius:12px;cursor:pointer;
  font-family:var(--font);font-size:15px;font-weight:600;text-align:center;text-decoration:none;
  background:var(--ink);color:var(--bg);transition:opacity .2s;
}
.lm-modal-btn:hover{opacity:.88}
.lm-modal-close-link{display:block;width:100%;margin-top:10px;background:transparent;border:none;
  color:var(--muted);font-family:var(--font);font-size:14px;cursor:pointer;transition:color .2s}
.lm-modal-close-link:hover{color:var(--ink)}

/* ============================================================
   صفحة المشروع: عمود محتوى أوسع (الصور تطلع أكبر على الويب)
   ============================================================ */
@media (min-width:861px){
  /* صفحة المشروع: عمود واحد — روابط التنقّل فوق، والمحتوى يبدأ من أقصى حافة
     البداية (يمين في العربية، يسار في الإنجليزية) ويستغل العرض بدل العمود الجانبي الفارغ. */
  .proj-page .grid{display:block}
  .proj-page .col-left{position:static;min-height:0;display:block;margin-bottom:30px}
  .proj-page .col-right{max-width:1100px}
}

/* ============================================================
   LIGHTBOX — نقر على صور المشروع لتكبيرها (ويب + موبايل)
   ============================================================ */
.proj-figure img{cursor:zoom-in}
.lightbox{
  position:fixed;inset:0;z-index:200;display:none;
  background:rgba(0,0,0,.93);overflow:auto;cursor:zoom-out;
  -webkit-overflow-scrolling:touch;
}
.lightbox.open{display:block}
.lightbox img{
  display:block;width:auto;max-width:95vw;height:auto;
  margin:24px auto;border-radius:8px;
}
@media (max-width:620px){
  /* أكبر من الشاشة ليُقرأ النص الصغير، مع تمرير */
  .lightbox img{max-width:none;width:180vw;margin:0;border-radius:0}
}

/* ============================================================
   UI معاد بناؤه — يستبدل البوردات النصّية على الموبايل فقط
   (صورة على الويب، UI حقيقي responsive على الموبايل)
   ============================================================ */
.fig-mobile{display:none}
@media (max-width:620px){
  .fig-desktop{display:none}
  .fig-mobile{display:block;margin-top:30px}
}

.mui{
  background:#fff;border-radius:20px;padding:22px 16px;text-align:right;
  font-family:'Tajawal','Noto Kufi Arabic',var(--font);color:#1a1a1a;
  box-shadow:0 14px 44px -18px rgba(0,0,0,.4);
}
.mui-title{font-size:18px;font-weight:700;color:#1f1f1f;line-height:1.45}
.mui-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;direction:ltr;justify-content:flex-end}
.mui-tags span{border:1px solid #d6d6d6;border-radius:999px;padding:5px 12px;font-size:12px;color:#555}

/* Problem / Solution */
.ps-block{margin-top:16px}
.ps-label{
  display:flex;align-items:center;justify-content:space-between;gap:10px;direction:ltr;
  background:#f4f4f5;border-radius:14px;padding:13px 16px;font-size:16px;font-weight:600;color:#1f1f1f;
}
.ps-label.sol{background:linear-gradient(90deg,#3aa0e0,#86cbf0);color:#fff}
.ps-ic{width:24px;height:24px;border-radius:50%;flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}
.ps-ic.warn{color:#6f9a09;background:radial-gradient(circle,rgba(190,230,90,.75),rgba(190,230,90,0) 72%)}
.ps-ic.ok{border:1.6px solid #fff;color:#fff;font-size:12px}
.ps-card{background:#f4f4f5;border-radius:14px;padding:16px;margin-top:10px;
  font-size:14px;line-height:1.95;color:#3f3f3f;text-align:justify}

/* Design Language: 01/02/03 -> Results */
.dl-cards{display:flex;flex-direction:column;gap:14px}
.dl-card{background:#f4f4f5;border-radius:16px;padding:16px}
.dl-num{display:block;font-size:26px;font-weight:700;color:#7ec8ee;direction:ltr;text-align:right;line-height:1}
.dl-card h4{font-size:16px;font-weight:700;color:#1f1f1f;margin-top:8px}
.dl-card p{font-size:13.5px;line-height:1.9;color:#555;margin-top:8px;text-align:justify}
.dl-results{width:88px;height:88px;margin:24px auto 0;border-radius:50%;direction:ltr;
  display:flex;align-items:center;justify-content:center;font-size:14px;color:#5a7a10;font-weight:600;
  background:radial-gradient(circle,rgba(190,230,90,.6),rgba(190,230,90,0) 70%)}
.dl-cap{margin-top:16px;font-size:13.5px;line-height:1.95;color:#444;text-align:center}

/* ============================================================
   الموبايل: Tech Stack شبكة 3 أعمدة أصغر + Skills بنفس الحجم
   ============================================================ */
@media (max-width:620px){
  .tech-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
  .tech{
    padding:8px;font-size:11px;gap:6px;min-width:0;
    justify-content:center;text-align:center;
  }
  .tech .ic{width:16px;height:16px}
  /* المهارات بنفس الحجم تقريباً عشان ما يبيّن فرق واضح */
  .pill{padding:7px 13px;font-size:11px}
}

/* ============================================================
   ARABIC VERSION — The Year of The Camel font + RTL
   activated by <html class="ar" dir="rtl"> via i18n.js
   ============================================================ */
.lang-label{font-size:14px;font-weight:700;line-height:1}
html.ar,html.ar body{font-family:'The Year of The Camel','Inter',system-ui,sans-serif}
/* Latin serif headings → Arabic font when in Arabic */
html.ar .intro,html.ar .svc-title,html.ar .closing-title,html.ar .lm-title,
html.ar .tst-slide,html.ar .booklet-title,html.ar .eyebrow,html.ar .name,
html.ar .hero-btn,html.ar .nav,html.ar .finalcta h2{font-family:'The Year of The Camel',sans-serif}
/* toggles bar moves to the left edge in RTL */
html.ar .toggles{right:auto;left:48px}
@media (max-width:860px){html.ar .toggles{right:auto;left:16px}}
/* text that was force-aligned left should read right in Arabic */
html.ar .xp-text,html.ar .intro-ar{text-align:right}
html.ar .tst-inner{text-align:center}
/* flip the absolutely-positioned service labels for RTL */
html.ar .svc-num{right:auto;left:clamp(24px,5vw,80px)}
html.ar .svc-tag{left:auto;right:clamp(24px,5vw,80px)}

/* --- RTL polish (Arabic) --- */
/* skills marquee always scrolls LTR (skill names are Latin) — keeps it from
   breaking/scattering in RTL and lets it fill the row under the heading */
.marquee,.marquee .mrow{direction:ltr}
html.ar .nav{margin-left:0;margin-right:-13px}
/* Arabic hero: more line spacing (diacritics need room) */
html.ar .intro{line-height:1.5}
html.ar .lm-shape{right:auto;left:-4%}
html.ar .closing-shape{left:auto;right:clamp(16px,5vw,90px)}
@media (max-width:860px){ html.ar .closing-shape{right:12px;left:auto} }

/* ---------- "Does this sound like you?" (empathy) section ---------- */
.relate-title{font-family:'Fraunces',Georgia,serif;font-weight:600;
  font-size:clamp(22px,2.8vw,34px);line-height:1.3;margin-bottom:32px;max-width:760px;margin-inline:auto}
.relate-intro{color:#c9c9c9;font-size:clamp(16px,1.5vw,19px);line-height:1.8;margin-bottom:28px}
.relate-list{list-style:none;display:flex;flex-direction:column;gap:13px;
  margin:0 auto 28px;max-width:680px;text-align:start}
.relate-list li{background:rgba(255,255,255,.04);border:1px solid #2a2a2a;border-radius:14px;
  padding:15px 20px;line-height:1.75;color:#e6e6e6;font-size:clamp(15px,1.35vw,17px)}
.relate-close{color:#f2f2f2;font-size:clamp(16px,1.55vw,19px);line-height:1.9;max-width:660px;margin:34px auto 0}
/* أربع نقاط كمربعات شفافة بـ stroke أزرق، الرقم واترمارك كبير أبيض فاهي ورا الكلام */
.relate-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;
  width:100%;margin-inline:auto;text-align:start}
.relate-box{position:relative;overflow:hidden;margin:0;background:transparent;
  border:1.5px solid #3aa0e0;border-radius:18px;padding:30px 28px;min-height:210px;
  display:flex;align-items:flex-end;justify-content:flex-start;text-align:start;line-height:1.75;
  color:#eaeaea;font-size:clamp(15px,1.1vw,17px);transition:transform .25s ease,box-shadow .25s ease}
.relate-box:hover{transform:translateY(-3px);box-shadow:0 10px 30px rgba(58,160,224,.18)}
.relate-num{position:absolute;top:22px;inset-inline-end:26px;z-index:0;pointer-events:none;
  font-family:'Fraunces',Georgia,serif;font-weight:700;font-size:clamp(70px,7vw,100px);line-height:1;
  color:rgba(255,255,255,.10)}
.relate-box-text{position:relative;z-index:1;display:block}
@media (max-width:880px){.relate-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.relate-grid{grid-template-columns:1fr}}
/* الموبايل: نكبّر العنوان والأرقام وخط البوكس ليتوافقوا مع باقي عناوين الموبايل */
@media (max-width:620px){
  .relate-title{font-size:33px;line-height:1.25}
  .relate-num{font-size:clamp(91px,16vw,108px)}
  .relate-box-text{font-size:18px}
}
html.ar .relate-title{font-family:'The Year of The Camel',sans-serif}
