/* ============================================================
   BOMA Studio — site styles
   لو عايز تغيّر لون أو مقاس، غيّر من المتغيرات اللي تحت مباشرة.
   ============================================================ */

/* الخط العربي الرسمي للبراند — KO Sans */
@font-face {
  font-family: "KO Sans"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/KOSans-Light.otf") format("opentype");
}
@font-face {
  font-family: "KO Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/KOSans-Regular.otf") format("opentype");
}
@font-face {
  font-family: "KO Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/KOSans-SemiBold.otf") format("opentype");
}
/* التقيل كله بيتربط على Bold زي ما السبيك بيقول */
@font-face {
  font-family: "KO Sans"; font-style: normal; font-weight: 700 900; font-display: swap;
  src: url("../fonts/KOSans-Bold.otf") format("opentype");
}

:root {
  --bg:        #08080a;
  --ink:       #f4f1ee;
  --accent:    #dd1543;
  --accent-dk: #c00f39;
  --card:      #100f13;
  --card-line: #34222e;
  --line:      rgba(255, 255, 255, .102);
  --line-soft: rgba(255, 255, 255, .078);
  --muted:     rgba(244, 241, 238, .671);
  --muted-2:   rgba(244, 241, 238, .62);
  --muted-3:   rgba(244, 241, 238, .478);
  --shell:     1560px;
  --pad:       clamp(16px, 2.4vw, 34px);
  --font:      Montserrat, "KO Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar:   "KO Sans", Cairo, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body[dir="rtl"] { font-family: var(--font-ar); }

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid #fbc02d; outline-offset: 3px; border-radius: 4px; }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--pad); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* لو العنصر مالوش صورة، بنخفيه بدل ما يبان مكسور */
img[data-missing="1"] { opacity: 0; }
.slot[data-missing="1"] {
  background:
    linear-gradient(135deg, rgba(221, 21, 67, .09), transparent 60%),
    var(--card);
}
.slot[data-missing="1"]::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(244, 241, 238, .28); text-align: center; padding: 12px;
}

/* ------------------------------------------------------------ Header */

.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 28px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease;
}
.hdr.is-stuck {
  background: rgba(8, 8, 10, .76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line-soft);
}
.hdr__logo { flex: none; display: flex; align-items: center; }
.hdr__logo img { height: 34px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 7px; }
.nav a {
  display: block; padding: 11px 14px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .122);
  background: rgba(8, 8, 10, .6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--ink); font-weight: 600; font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
body[dir="rtl"] .nav a { letter-spacing: 0; font-size: 12px; }
.nav a:hover { color: var(--accent); background: rgba(8, 8, 10, .78); }
.nav a.is-active { background: var(--ink); color: var(--accent); font-weight: 700; }

.hdr__side { flex: none; display: flex; align-items: center; gap: 10px; }
.langbtn {
  display: flex; align-items: center; justify-content: center;
  min-width: 52px; padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, .149); border-radius: 10px;
  background: rgba(8, 8, 10, .6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--ink); font-family: var(--font); font-weight: 800;
  font-size: 10.5px; letter-spacing: .14em; cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.langbtn:hover { border-color: var(--accent); color: var(--accent); }
.langbtn img { height: 13px; width: auto; display: block; }

.burger { display: none; }

/* ------------------------------------------------------------ قائمة الموبايل */

.mobmenu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(8, 8, 10, .969);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column;
  padding: 14px 18px 26px;
}
.mobmenu[hidden] { display: none; }
.mobmenu__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mobmenu__top img { height: 32px; width: auto; display: block; }
.mobmenu__close {
  width: 46px; height: 46px; flex: none;
  border: 1px solid rgba(255, 255, 255, .149); border-radius: 10px;
  background: transparent; color: var(--ink);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.mobmenu__close:hover { border-color: var(--accent); color: var(--accent); }
.mobmenu__nav { display: flex; flex-direction: column; margin-top: 38px; }
.mobmenu__nav a {
  display: block; padding: 16px 2px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink); font-weight: 900; font-size: 30px;
  letter-spacing: -.02em; text-transform: uppercase;
}
.mobmenu__nav a:hover { color: var(--accent); }
body[dir="rtl"] .mobmenu__nav a { letter-spacing: 0; }
.mobmenu__cta {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 20px 24px; border-radius: 12px;
  background: var(--accent); color: #fff;
  font-weight: 900; font-size: 20px; letter-spacing: .06em; text-transform: uppercase;
}
.mobmenu__cta:hover { background: var(--accent-dk); color: #fff; }
.mobmenu__cta img { width: 24px; height: 20px; display: block; }
body[dir="rtl"] .mobmenu__cta { letter-spacing: 0; }
body[dir="rtl"] .mobmenu__cta img { transform: scaleX(-1); }
body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------ Hero */

.hero {
  position: relative; min-height: 100vh; overflow: hidden; isolation: isolate;
}
.hero__wash {
  position: absolute; inset: 0 0 auto 0; height: 66vh; z-index: 0;
  background: linear-gradient(to bottom, rgba(221, 21, 67, .51), rgba(221, 21, 67, .18) 44%, rgba(221, 21, 67, 0) 78%);
}
.hero__glow {
  position: absolute; top: -16%; left: 50%; transform: translateX(-50%);
  width: min(1500px, 102vw); height: 88vh; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(221, 21, 67, .4), rgba(221, 21, 67, 0) 74%);
  filter: blur(12px);
  animation: glow 9s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { opacity: .5 } 50% { opacity: .9 } }

.hero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: .32;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 44%, #000, transparent);
          mask-image: radial-gradient(closest-side at 50% 44%, #000, transparent);
}

.strip {
  position: absolute; inset: 16vh 0 auto 0; z-index: 1;
  display: flex; flex-direction: column; gap: 16px;
  max-width: 100vw; perspective: 1000px; perspective-origin: 50% 50%;
}
.strip__track { display: flex; width: max-content; transform-style: preserve-3d; will-change: transform; }
.strip__card {
  flex: none;
  width: clamp(168px, 20.4vw, 294px);
  aspect-ratio: 3 / 4; height: auto;
  margin-inline-end: 6px;
  border-radius: 14px; overflow: hidden; position: relative;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .122);
  transform-origin: 50% 50%;
}
.strip__card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero__char {
  position: absolute; inset: auto 0 0 0; height: calc(var(--char-h, 150vh) * .66);
  z-index: 3; pointer-events: none; display: flex; justify-content: center;
}
.hero__char > div {
  position: relative; height: 100%; width: min(1020px, 94vw);
  display: flex; justify-content: center; overflow: hidden;
}
.hero__char img {
  position: absolute; top: 0; height: var(--char-h, 150vh); width: auto; max-width: none;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, .6)) contrast(1.04);
}

.hero__veil { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hero__veil--sides { background: linear-gradient(90deg, var(--bg) 0, rgba(8, 8, 10, 0) 24%, rgba(8, 8, 10, 0) 76%, var(--bg) 100%); }
.hero__veil--mid {
  inset: 12vh 0 auto 0; height: 64vh; z-index: 2;
  background: linear-gradient(to bottom, rgba(8, 8, 10, 0), rgba(8, 8, 10, .25) 18%, rgba(8, 8, 10, .35) 78%, rgba(8, 8, 10, 0));
}
.hero__veil--foot {
  inset: auto 0 0 0; height: 38vh;
  background: linear-gradient(to bottom, rgba(8, 8, 10, 0), rgba(8, 8, 10, .7) 44%, var(--bg) 86%);
}

.hero__content { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hero__row {
  position: absolute; inset: auto 42px 7vh 42px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 4vw;
}
.hero__left { pointer-events: auto; position: relative; display: flex; flex-direction: column; align-items: flex-start; }
body[dir="rtl"] .hero__left { align-items: flex-start; }

.hero__lead {
  position: absolute; bottom: 100%; inset-inline-start: 0; margin: 0 0 24px;
  width: max-content; max-width: min(540px, 58vw);
  padding: 16px 22px; border-radius: 14px;
  background: rgba(8, 8, 10, .3);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  font-size: 15.5px; line-height: 1.62; color: rgba(244, 241, 238, .84);
  text-wrap: pretty;
}
.hero__lead b { display: block; color: var(--ink); font-weight: 400; }
.hero__lead span { display: block; margin-top: 14px; }

.hero__ctas { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: max-content; }

.btn-primary {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 40px; border-radius: 12px;
  background: var(--accent); border: 0; color: #fff;
  font-weight: 900; font-size: 28px; letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s ease;
}
.btn-primary:hover { background: var(--accent-dk); color: #fff; }
.btn-primary img { width: 28px; height: 23px; display: block; }
body[dir="rtl"] .btn-primary { letter-spacing: 0; font-size: 26px; }
body[dir="rtl"] .btn-primary img { transform: scaleX(-1); }

.btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 13px;
  padding: 13px 22px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .149); color: var(--ink);
  font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .2s ease, color .2s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost img { width: 16px; height: 22px; display: block; transform: rotate(90deg); transition: filter .25s ease; }
.btn-ghost:hover img { filter: brightness(0) invert(1); }
body[dir="rtl"] .btn-ghost { letter-spacing: 0; }

.hero__title {
  flex: none; width: min(470px, 33vw); container-type: inline-size;
  pointer-events: auto; padding: 26px 22px; margin: -26px -22px;
  background: radial-gradient(ellipse at 50% 50%, rgba(8, 8, 10, .9) 0%, rgba(8, 8, 10, .72) 52%, rgba(8, 8, 10, 0) 76%);
}
.hero__title h1 {
  margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .01em;
  text-shadow: 0 6px 34px rgba(8, 8, 10, .95), 0 2px 10px rgba(8, 8, 10, .88);
  font-weight: 900; line-height: .84; letter-spacing: -.035em;
  text-transform: uppercase; white-space: nowrap;
}
.hero__title h1 .l1 { font-size: 19cqw; }
.hero__title h1 .l2,
.hero__title h1 .l3 { font-size: 23.4cqw; }
.hero__title h1 em { font-style: normal; color: var(--accent); }
/* الحروف العربية أعرض، فالعناوين بتصغّر شوية عشان تفضل جوّه الإطار */
body[dir="rtl"] .hero__title h1 { letter-spacing: 0; line-height: 1.06; }
body[dir="rtl"] .hero__title h1 .l1 { font-size: 15cqw; }
body[dir="rtl"] .hero__title h1 .l2,
body[dir="rtl"] .hero__title h1 .l3 { font-size: 18.5cqw; }

/* ------------------------------------------------------------ Section furniture */

.sect { position: relative; z-index: 5; padding-block: clamp(52px, 6.4vw, 96px); }
.sect--tight { padding-block: clamp(44px, 5.4vw, 82px); }

.sect__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 34px;
}
.h2 {
  margin: 0; font-weight: 900; font-size: clamp(30px, 4.4vw, 60px);
  line-height: .9; letter-spacing: -.03em; text-transform: uppercase;
}
body[dir="rtl"] .h2 { letter-spacing: 0; line-height: 1.15; }
.sect__note { margin: 0 0 4px; max-width: 420px; font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: balance; }
.sect__meta { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 241, 238, .478); }

/* ------------------------------------------------------------ Clients */

/* الشعارات: ورا بعض أفقي، متمركزة، وبحد أقصى ٧ في الصف.
   عرض الحاوية محسوب على ٧ خانات بالظبط، فالتامن بينزل لسطر جديد لوحده. */
.clients {
  /* عدد الشعارات في الصف — بيتغيّر حسب المقاس تحت */
  --per-row: 7;
  --logo-gap: clamp(10px, 1vw, 14px);
  --logo-max: 184px;              /* نفس مقاس التصميم الأصلي */
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: var(--logo-gap);
  max-width: calc(var(--per-row) * var(--logo-max) + (var(--per-row) - 1) * var(--logo-gap));
  margin-inline: auto;
}
.clients__cell {
  /* العرض نسبة من الحاوية، فالعدد في الصف مضمون مهما كان شريط التمرير */
  flex: 0 0 calc((100% - (var(--per-row) - 1) * var(--logo-gap)) / var(--per-row));
  height: clamp(56px, 6.7vw, 96px);
  min-width: 0; position: relative; overflow: hidden;
  background: transparent; mix-blend-mode: screen;
}
.clients__cell img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ------------------------------------------------------------ Work */

.work { display: flex; flex-direction: column; gap: clamp(10px, 1vw, 14px); }
.work__row { display: grid; gap: clamp(10px, 1vw, 14px); align-items: start; }
.work__row--a { grid-template-columns: 1fr 1fr 2.371fr; }
.work__row--b { grid-template-columns: repeat(4, 1fr); }

.card { display: flex; flex-direction: column; gap: 13px; cursor: pointer; }
.card__frame {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--card); border: 2px solid var(--card-line);
  transition: border-color .3s ease;
}
.card:hover .card__frame { border-color: var(--accent); }
.card__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card__cap {
  position: absolute; inset: auto 0 0 0; padding: 52px 14px 26px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: linear-gradient(to top, rgba(11, 10, 12, .85) 12%, rgba(11, 10, 12, .54) 52%, rgba(11, 10, 12, 0));
  pointer-events: none;
}
.card__meta {
  font-size: clamp(10px, 1.05vw, 16px); letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; text-align: center;
}
.card__title {
  margin: 0; font-weight: 900; font-size: clamp(22px, 2.7vw, 41px); letter-spacing: -.03em;
  text-transform: uppercase; color: #fff; text-align: center; line-height: .78;
}
body[dir="rtl"] .card__meta { letter-spacing: 0; }
body[dir="rtl"] .card__title { letter-spacing: 0; line-height: 1.1; font-size: 34px; }
.card__line { margin: 0; padding: 0 2px; font-size: 14.5px; line-height: 1.35; color: rgba(244, 241, 238, .62); text-wrap: pretty; }

/* ------------------------------------------------------------ Services */

.svc { display: flex; flex-direction: column; position: relative; }
.svc__row {
  display: grid;
  grid-template-columns: clamp(42px, 4.4vw, 70px) 1.1fr 11px 1.4fr;
  gap: clamp(12px, 1.7vw, 26px);
  align-items: center;
  padding: clamp(20px, 2.1vw, 30px) 6px;
  border-top: 1px solid var(--line);
  transition: background .2s ease;
}
.svc__row:first-child { border-top: 0; }
.svc__row:last-child { border-bottom: 1px solid var(--line); }
.svc__row:hover { background: rgba(255, 255, 255, .031); }
.svc__num { font-weight: 900; font-size: 20px; color: var(--accent); letter-spacing: .1em; }
.svc__title { margin: 0; font-weight: 800; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.02em; }
body[dir="rtl"] .svc__title { letter-spacing: 0; }
.svc__body { margin: 0; font-size: 15px; line-height: 1.65; color: rgba(244, 241, 238, .62); max-width: 520px; }

.svc__rail { position: relative; align-self: stretch; display: block; width: 11px; }
.svc__rail::before {
  content: ""; position: absolute; inset: -30px auto -30px 5px;
  width: 1px; background: var(--line);
}
.svc__dot {
  position: absolute; inset-inline-start: 0; top: 50%; margin-top: -6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #211f26; border: 1px solid rgba(255, 255, 255, .169);
  transition: background .3s linear, border-color .3s linear, box-shadow .2s linear, transform .2s ease-out;
}
.svc__fill {
  position: absolute; top: 0; width: 1px; height: 0;
  background: linear-gradient(to bottom, rgba(221, 21, 67, .15), var(--accent));
  opacity: .7; pointer-events: none;
}
.svc__head {
  position: absolute; top: 0; width: 13px; height: 13px; margin: -7px 0 0 -6px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 26px 7px rgba(221, 21, 67, .6), 0 0 6px 1px rgba(255, 180, 196, .8);
  pointer-events: none; opacity: 0; transition: opacity .35s linear;
}

/* ------------------------------------------------------------ Studio */

.studio { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 84px); align-items: start; }
.studio h2 {
  margin: 0; font-weight: 900; font-size: clamp(34px, 4.5vw, 68px);
  line-height: 1.15; text-transform: uppercase; text-wrap: balance; color: #fff;
}
.studio h2 em { font-style: normal; color: var(--accent); }
.studio__body {
  margin: 0; font-weight: 400; font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.62; color: rgba(244, 241, 238, .77); text-wrap: pretty;
}
.studio__body .accent { color: var(--accent); }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
}
.stats b {
  display: block; font-weight: 900; font-size: clamp(38px, 4vw, 54px);
  line-height: .95; letter-spacing: -.03em; color: var(--accent);
}
.stats span {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, .73); margin-top: 10px;
}
body[dir="rtl"] .stats span { letter-spacing: 0; font-size: 12px; }

/* ------------------------------------------------------------ Testimonials */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: right; }
.quote {
  padding: 34px; border-radius: 24px; background: var(--card);
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.quote--featured { background: var(--accent); border-color: var(--accent); color: #fff; }
.quote__text {
  margin: 0; font-family: "KO Sans", var(--font-ar); font-weight: 300; font-size: 15px;
  line-height: 1.75; color: rgba(244, 241, 238, .88); text-wrap: pretty; white-space: pre-line;
}
.quote--featured .quote__text { color: #fff; }
.quote__by { display: flex; align-items: center; gap: 12px; direction: ltr; text-align: left; }
.quote__av {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: #1f1d22; border: 1px solid rgba(255, 255, 255, .122);
}
.quote--featured .quote__av { background: rgba(0, 0, 0, .2); border-color: rgba(255, 255, 255, .24); }
.quote__name { font-family: var(--font); font-weight: 800; font-size: 13px; }
.quote__role { font-family: var(--font); font-weight: 600; font-size: 11px; letter-spacing: .06em; color: rgba(244, 241, 238, .478); margin-top: 3px; }
.quote--featured .quote__role { color: rgba(255, 255, 255, .75); }

/* ------------------------------------------------------------ Team */

.team {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 14px);
}
.team__cell { min-width: 0; }
.team__photo {
  position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-soft);
}
.team__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.team__name { font-weight: 700; font-size: 15px; margin-top: 14px; }
.team__role { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: 5px; }
body[dir="rtl"] .team__role { letter-spacing: 0; font-size: 13px; }

/* ------------------------------------------------------------ Contact */

.contact {
  position: relative; z-index: 5; margin: 34px var(--pad);
  border-radius: 28px; background: var(--accent); color: #fff;
  padding: clamp(48px, 7vw, 96px); overflow: hidden;
}
.contact__mark {
  position: absolute; inset-inline-end: clamp(28px, 4vw, 64px); top: 50%;
  transform: translateY(-50%); width: min(230px, 22%); pointer-events: none;
}
.contact__mark img { width: 100%; height: auto; filter: grayscale(1) contrast(1.25); }
.contact__inner { position: relative; max-width: 920px; }
.contact__kicker {
  font-weight: 700; font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; opacity: .82; margin-bottom: 24px;
}
body[dir="rtl"] .contact__kicker { letter-spacing: 0; font-size: 13px; }
.contact h2 {
  margin: 0; font-weight: 900; font-size: clamp(36px, 5.6vw, 84px);
  line-height: .9; letter-spacing: -.035em; text-transform: uppercase;
}
body[dir="rtl"] .contact h2 { letter-spacing: 0; line-height: 1.1; }
.contact__body {
  margin-top: 28px; max-width: 620px; display: flex; flex-direction: column; gap: 16px;
  font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .84); text-wrap: pretty;
}
.contact__body p { margin: 0; }
.contact__ctas { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin-top: 38px; }
.btn-mail, .btn-call {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 30px; border-radius: 12px;
  font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-mail { background: var(--bg); color: var(--ink); }
.btn-mail:hover { background: #fff; color: var(--accent); }
.btn-call { border: 1.5px solid rgba(255, 255, 255, .36); color: #fff; }
.btn-call:hover { background: #fff; color: var(--accent); border-color: #fff; }
body[dir="rtl"] .btn-mail, body[dir="rtl"] .btn-call { letter-spacing: 0; font-size: 14px; }
body[dir="rtl"] .btn-mail .arr { transform: scaleX(-1); }

/* ------------------------------------------------------------ Footer */

.ftr {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding: 34px;
  border-top: 1px solid var(--line-soft);
}
.ftr img { height: 30px; width: auto; opacity: .9; }
.ftr__links { display: flex; gap: 22px; flex-wrap: wrap; }
.ftr__links a {
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(244, 241, 238, .478);
  transition: color .2s ease;
}
.ftr__links a:hover { color: var(--accent); }
.ftr__copy { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 241, 238, .32); }
body[dir="rtl"] .ftr__links a, body[dir="rtl"] .ftr__copy { letter-spacing: 0; font-size: 13px; }

/* ============================================================
   Responsive
   ============================================================ */

/* على التابلت ٥ شعارات في الصف بدل ٧ عشان يفضلوا واضحين */
@media (max-width: 980px) {
  .clients { --per-row: 5; }
}

/* الشغل: الكارت العريض بيبقى على عرض الصف */
@media (max-width: 1180px) {
  .work__row--a { grid-template-columns: 1fr 1fr; }
  .work__row--a .card--wide { grid-column: span 2; }
}

/* الاستوديو وآراء العملاء */
@media (max-width: 1000px) {
  .studio { grid-template-columns: 1fr; gap: 30px; }
  .quotes { grid-template-columns: 1fr 1fr; }
}

/* الهيرو بيتحوّل لعمود واحد */
@media (max-width: 1000px) {
  .hero__row {
    inset: auto var(--pad) 6vh var(--pad);
    flex-direction: column; align-items: flex-start; gap: clamp(16px, 2.4vw, 24px);
  }
  .hero__title { width: min(430px, 86vw); order: -1; margin: 0; padding: 0; background: none; }
  .hero__title h1 { text-shadow: 0 6px 34px rgba(8, 8, 10, .95); }
  .hero__lead { position: static; margin: 0 0 4px; max-width: min(560px, 92vw); }
}

/* الخدمات: بنحافظ على الخط والنقط لأطول فترة ممكنة */
@media (max-width: 820px) {
  .svc__row { grid-template-columns: 42px 1fr; gap: 10px 16px; }
  .svc__rail { display: none; }
  .svc__body { grid-column: 2; max-width: none; }
  .svc__fill, .svc__head { display: none; }
}

/* الفريق: ٤ في الصف لحد ٨٨٠، وبعدين ٢ — بحد أقصى للعرض عشان الكروت متكبرش */
@media (max-width: 880px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
  .quotes { grid-template-columns: 1fr; max-width: 620px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 46px; height: 46px; padding: 0;
    border: 1px solid rgba(255, 255, 255, .149); border-radius: 10px;
    background: rgba(8, 8, 10, .6);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
  }
  .burger span { display: block; width: 20px; height: 2px; background: var(--ink); }
  .work__row--a, .work__row--b { grid-template-columns: 1fr 1fr; }
  .work__row--a .card--wide { grid-column: span 2; }
  .btn-primary { font-size: clamp(17px, 4.4vw, 22px); padding: 16px 24px; }
  .btn-primary img { width: 20px; height: 17px; }
}

/* الشاشات القصيرة (لابتوب بارتفاع صغير): الهيرو ميطولش أوي */
@media (max-height: 720px) and (min-width: 1000px) {
  .hero__row { bottom: 4vh; }
  .strip { top: 13vh; }
}

/* ============================================================
   الموبايل — ٧٦٠px وتحت
   مطابق لملف mobile-overrides.css اللي في هاندأوف التصميم.
   الفروق الأساسية عن الديسكتوب:
   ١) البومة والتدرّجات الغامقة بتتشال
   ٢) الهيرو بيبقى تدفّق عمودي عادي: شريط ← عنوان ← أزرار
   ٣) القائمة بتبقى ملء الشاشة
   ٤) كل الشبكات بتتجمّع
   ============================================================ */

@media (max-width: 760px) {

  /* --- الهيدر --- */
  .hdr { padding: 12px 14px; }
  .hdr__logo img { height: 34px; }

  /* --- الهيرو: تدفّق عمودي عادي --- */
  .hero { min-height: auto; padding: 76px 0 24px; }
  .hero__char { display: none; }
  .hero__veil { display: none; }
  .hero__wash, .hero__glow { opacity: .4; }

  .strip {
    position: static; inset: auto; transform: none !important;
    perspective: 820px; gap: 16px;
  }
  .strip__card {
    width: 190px; height: 254px; aspect-ratio: auto;
    margin-inline-end: 8px; border-radius: 12px;
    transform: none !important; opacity: 1 !important;
  }

  .hero__content { position: static; inset: auto; padding: 24px 18px 0; }
  .hero__row {
    position: static; inset: auto;
    flex-direction: column; align-items: stretch; gap: 22px;
  }
  .hero__title {
    order: 1; flex: 1 1 auto; width: 100%;
    padding: 0; margin: 0; background: none;
  }
  .hero__title h1 { align-items: flex-start; text-shadow: none; }
  .hero__title h1 > span,
  body[dir="rtl"] .hero__title h1 > span { font-size: 13.4vw; }
  .hero__left { order: 2; width: 100%; }
  .hero__lead { display: none; }
  .hero__ctas { width: 100%; }
  .btn-primary,
  body[dir="rtl"] .btn-primary {
    justify-content: center; font-size: 21px;
    padding: 19px 20px; letter-spacing: .06em;
  }
  body[dir="rtl"] .btn-primary { letter-spacing: 0; }
  .btn-primary img { width: 28px; height: 23px; }
  .btn-ghost { padding: 15px 18px; }

  /* --- إيقاع الأقسام --- */
  .sect, .shell { padding-inline: 18px; }
  .sect { padding-block: 56px; }
  .sect--tight { padding-block: 56px; }

  /* --- العملاء --- */
  .clients { --per-row: 3; --logo-gap: 14px; max-width: none; }
  .clients__cell { height: 70px; }

  /* --- الشغل --- */
  .work { gap: 14px; align-items: stretch; }
  .work__row--a, .work__row--b {
    grid-template-columns: 1fr 1fr; gap: 10px; max-width: none;
  }
  .card--wide { grid-column: 1 / -1; }
  .card__title,
  body[dir="rtl"] .card__title { font-size: 25px; }
  .card--wide .card__title,
  body[dir="rtl"] .card--wide .card__title { font-size: 34px; }
  .card__meta { font-size: 11px; letter-spacing: .12em; }
  body[dir="rtl"] .card__meta { letter-spacing: 0; }
  .card__line { font-size: 12.5px; }
  .card__cap { padding: 34px 10px 16px; }

  /* --- الخدمات: الرقم والعنوان فوق، والخط والشرح تحت --- */
  .svc__row {
    grid-template-columns: 32px 1fr;
    gap: 10px 12px; padding: 22px 2px;
  }
  .svc__num   { grid-column: 1; grid-row: 1; }
  .svc__title { grid-column: 2; grid-row: 1; font-size: 22px; }
  .svc__rail  { display: block; grid-column: 1; grid-row: 2; justify-self: center; }
  .svc__body  { grid-column: 2; grid-row: 2; max-width: none; }
  .svc__fill, .svc__head { display: block; }

  /* --- الاستوديو --- */
  .studio { grid-template-columns: 1fr; gap: 26px; }

  /* --- الآراء --- */
  .quotes { grid-template-columns: 1fr; max-width: none; }
  .quote { padding: 24px; border-radius: 18px; }

  /* --- الفريق --- */
  .team { grid-template-columns: 1fr 1fr; gap: 12px; max-width: none; }
  .team__name { font-size: 15px; }
  .team__role,
  body[dir="rtl"] .team__role { font-size: 11px; }

  /* --- تواصل --- */
  .contact__mark { display: none; }
  .contact { margin: 16px; padding: 40px 22px; border-radius: 20px; }

  /* --- الفوتر --- */
  .ftr { padding: 26px 18px; gap: 16px; }
}
