/* ========== Fonts ========== */
/* Swissra يرسم الأرقام 0-9 هندية (٤، ٢٠٠) — نستثنوها من الخط باش تطلع بخط Inter الإنجليزي */
@font-face {
  font-family: "Swissra";
  src: url("assets/fonts/swissra-normal.woff2") format("woff2");
  font-weight: 400 500; font-display: swap;
  unicode-range: U+0000-002F, U+003A-10FFFF;
}
@font-face {
  font-family: "Swissra";
  src: url("assets/fonts/swissra-bold.woff2") format("woff2");
  font-weight: 600 900; font-display: swap;
  unicode-range: U+0000-002F, U+003A-10FFFF;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

/* ========== Tokens ========== */
:root {
  /* هوية لقطون: أزرق السما + أسود + أبيض */
  --bg: #fafcfd;
  --bg-alt: #eef7fc;
  --surface: #ffffff;
  --text: #0d0f12;
  --muted: #5f6870;
  --line: #e1e8ee;
  --accent: #28b6f6;       /* أزرق اللوقو — للخلفيات والأشكال */
  --accent-ink: #0a7bb3;   /* أزرق أغمق — للنصوص باش تنقرا مزبوط */
  --accent-soft: #dff3fd;
  --ink: #0b0f13;          /* خلفية الأقسام السينمائية */
  --whatsapp: #25d366;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(22, 21, 26, .04), 0 8px 24px rgba(22, 21, 26, .06);
  --shadow-lg: 0 20px 50px rgba(22, 21, 26, .14);

  --font-ar: "Swissra", "Inter", system-ui, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
  --header-h: 72px;
}

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.accent { color: var(--accent-ink); }
/* نصوص لاتينية كاملة (الإيميل، السنة) — خط Inter واتجاه من اليسار لليمين */
.latin { font-family: var(--font-en); direction: ltr; unicode-bidi: isolate; }
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; line-height: 1;
  padding: 8px 12px; border-radius: 999px;
}
.chip--dark { background: rgba(11, 15, 19, .62); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chip--accent { background: var(--accent); color: var(--ink); }

.arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 16px;
  border: 1.5px solid transparent;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--primary { background: var(--text); color: #fff; }
.btn--primary:hover { background: var(--accent); color: var(--text); box-shadow: 0 10px 24px rgba(40, 182, 246, .35); }
.btn--ghost { border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--text); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); box-shadow: 0 10px 30px rgba(40, 182, 246, .4); }
.btn--glass { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { border-color: #fff; background: rgba(255, 255, 255, .16); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp svg { width: 22px; height: 22px; }
.btn--whatsapp:hover { box-shadow: 0 10px 24px rgba(37, 211, 102, .35); }

/* ========== Header ========== */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(250, 252, 253, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; }
.logo__img { height: 40px; width: auto; transition: transform .3s; }
.logo:hover .logo__img { transform: rotate(-8deg); }

.nav { display: flex; gap: 32px; }
.nav a { font-weight: 500; color: var(--muted); transition: color .2s; position: relative; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -6px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.header__actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface);
  font: 700 14px var(--font-en); cursor: pointer; color: var(--text);
  transition: border-color .2s;
}
.lang-toggle:hover { border-color: var(--text); }
html[lang="en"] .lang-toggle { font-family: var(--font-ar); font-size: 15px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ========== 1. Hero — Cinematic Showreel ========== */
.hero { padding: 12px 0 0; }
.hero__stage {
  position: relative; isolation: isolate; overflow: hidden;
  width: min(1440px, 100% - 24px); margin-inline: auto;
  height: clamp(540px, calc(100svh - var(--header-h) - 24px), 880px);
  border-radius: var(--radius-lg);
  background: var(--ink) center / cover no-repeat;
  color: #fff;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* الشوريل فيه كتابة محروقة (Match Cut، VFX) — التظليل يغطي جهة العنوان.
   انترو "Cinematic video Editor" مقصوص من showreel-loop.mp4 لأنه كان يطيح على العنوان */
.hero__stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(5, 8, 11, .92) 0%, rgba(5, 8, 11, .7) 38%, rgba(5, 8, 11, .25) 70%, rgba(5, 8, 11, .4) 100%),
    linear-gradient(to left, rgba(5, 8, 11, .75) 0%, rgba(5, 8, 11, .4) 45%, rgba(5, 8, 11, 0) 75%);
}
html[dir="ltr"] .hero__stage::after {
  background:
    linear-gradient(to top, rgba(5, 8, 11, .92) 0%, rgba(5, 8, 11, .7) 38%, rgba(5, 8, 11, .25) 70%, rgba(5, 8, 11, .4) 100%),
    linear-gradient(to right, rgba(5, 8, 11, .75) 0%, rgba(5, 8, 11, .4) 45%, rgba(5, 8, 11, 0) 75%);
}
.hero__content {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: clamp(24px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  max-width: 820px;
}
.reel-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 700 13px var(--font-ar); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
html[lang="ar"] .reel-tag { letter-spacing: .02em; }
.reel-tag__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(40, 182, 246, .6); animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(40, 182, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(40, 182, 246, 0); } }
.hero__title { font-size: clamp(46px, 8vw, 104px); line-height: 1.02; text-shadow: 0 2px 28px rgba(5, 8, 11, .5); }
html[lang="ar"] .hero__title { line-height: 1.3; padding-bottom: .22em; } /* مساحة لذيل الياء في Swissra */
.hero__title .accent { color: var(--accent); }
.hero__lead { font-size: clamp(16px, 1.8vw, 20px); color: rgba(255, 255, 255, .78); max-width: 560px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ========== Sections ========== */
.section { padding: 110px 0; }
.section--tight { padding-top: 88px; }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 44px; max-width: 640px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 32px; }
.section__title { font-size: clamp(32px, 4.5vw, 52px); }

/* ========== 2. Services ========== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.svc:hover, .svc:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.svc__media { position: relative; aspect-ratio: 4 / 5; background: var(--ink); overflow: hidden; }
.svc__media .chip { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; }
.svc__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc__body h3 { font-size: 22px; }
.svc__body p { color: var(--muted); font-size: 15.5px; flex: 1; }
.svc__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; color: var(--accent-ink); }
.svc:hover .svc__cta .arrow { transform: translateX(4px); }
html[dir="rtl"] .svc:hover .svc__cta .arrow { transform: scaleX(-1) translateX(4px); }

/* غلاف + معاينة الفيديو (مشترك بين الخدمات والأعمال) */
[data-preview] > img, [data-preview] > video,
.svc__media > img, .svc__media > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .4s, transform .8s cubic-bezier(.2, .7, .2, 1);
}
[data-preview] video, .svc__media video { opacity: 0; }
.is-playing video { opacity: 1; }
.svc:hover .svc__media > *:not(.chip), .vcard:hover > img, .vcard:hover > video { transform: scale(1.04); }

/* ========== 3. Work ========== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 9px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 15px; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: all .2s;
}
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--text); border-color: var(--text); color: #fff; }

.work-group { animation: fadeUp .5s both; }
.work-group + .work-group { margin-top: 72px; }
.work-group__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.work-group__head h3 { font-size: clamp(24px, 3vw, 32px); }
.work-group__count { color: var(--muted); font-size: 15px; font-weight: 500; }

.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vcard {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 3 / 4; border-radius: var(--radius-lg);
  background: var(--ink); color: #fff;
  transition: transform .35s, box-shadow .35s;
}
.vcard:hover, .vcard:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vcard:focus-visible, .svc:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.vcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(5, 8, 11, .75), transparent 45%);
}
.vcard__title { position: absolute; z-index: 2; inset-inline: 22px; bottom: 18px; font-size: 19px; }
.vcard__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.vcard__play span {
  width: 64px; height: 64px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 255, 255, .18);
  transition: transform .3s;
}
.vcard__play svg { width: 24px; height: 24px; fill: var(--ink); margin-left: 3px; } /* تعويض بصري للمثلث */
.vcard:hover .vcard__play, .vcard__play.is-visible { opacity: 1; }
.vcard:hover .vcard__play span { transform: scale(1.08); }

/* كروت الموشن: عريضة 16:10، والطولي منها يتعرض كامل في النص بدل ما يتقص */
.vgrid--wide { grid-template-columns: repeat(3, 1fr); }
.vgrid--tall + .vgrid--wide { margin-top: 22px; }
.vgrid--4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.vcard--wide { aspect-ratio: 16 / 10; }
.vcard--fit > img, .vcard--fit > video { object-fit: contain; }
.vcard__chip { position: absolute; z-index: 3; top: 14px; inset-inline-start: 14px; font-family: var(--font-en); letter-spacing: .04em; }
.work-more { display: flex; margin: 28px auto 0; }

/* المشروع المميز (الإعلان) */
.feature {
  display: grid; grid-template-columns: minmax(0, 380px) 1fr; align-items: center;
  gap: clamp(28px, 5vw, 72px);
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(18px, 3.5vw, 44px);
  position: relative; overflow: hidden; isolation: isolate;
}
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 85% 20%, rgba(40, 182, 246, .28), transparent 55%);
}
html[dir="rtl"] .feature::before { background: radial-gradient(circle at 15% 20%, rgba(40, 182, 246, .28), transparent 55%); }
.feature__media { aspect-ratio: 9 / 16; border-radius: var(--radius); }
.feature__media::after { display: none; }
.feature__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 520px; }
.feature__kicker { color: var(--accent); font-weight: 700; font-size: 15px; margin-bottom: -10px; }
.feature__title { font-size: clamp(34px, 5vw, 60px); }
.feature__body p { color: rgba(255, 255, 255, .72); font-size: 18px; }
.feature__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ========== Clients ========== */
/* شعارات بدون خلفية ولا إطارات، بألوانها، وكلها بنفس الحجم للعين (الحجم من --w/--h في script.js) */
.clients__grid {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 44px 64px;
}
.client { display: flex; align-items: center; justify-content: center; height: 96px; }
.client img {
  width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); object-fit: contain;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.client:hover img { transform: scale(1.06); }
.client--creators { flex-direction: column; gap: 8px; height: auto; }
.creators { display: flex; }
.creators img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line);
}
.creators img + img { margin-inline-start: -10px; }
.client--creators span { font-size: 13px; color: var(--muted); }

/* ========== Steps ========== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font: 800 15px var(--font-en); color: var(--accent-ink); margin-bottom: 10px;
}
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 16px; }

/* ========== About ========== */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
/* لقطات حقيقية من الأعمال (media/about-*.jpg) — الصف الثاني نازل شوية زي شريط فيلم */
.about__stills { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about__stills img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); background: var(--ink);
}
.about__stills img:nth-child(even) { transform: translateY(32px); }
.about__stills figcaption { grid-column: 1 / -1; margin-top: 40px; color: var(--muted); font-size: 14px; }
.about__body > p { color: var(--muted); font-size: 18px; margin: 20px 0 28px; }
.stats { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font: 800 clamp(30px, 4vw, 42px) / 1.1 var(--font-en); }
.stats span { color: var(--muted); font-size: 15px; }
.tools { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tools li {
  font: 600 14px var(--font-en);
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}

/* ========== Contact ========== */
.contact__inner { text-align: center; max-width: 760px; }
.contact__title { font-size: clamp(36px, 6vw, 68px); margin-bottom: 16px; }
.contact__lead { color: var(--muted); font-size: 19px; margin-bottom: 36px; }
.contact__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.contact__phone { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; }
.contact__phone a { font: 600 17px var(--font-en); color: var(--text); letter-spacing: .02em; }
.contact__copy {
  font: 600 13px var(--font-ar); color: var(--accent-ink); cursor: pointer;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.contact__copy:hover { border-color: var(--accent-ink); }
.contact__hint { margin: 12px auto 0; max-width: 420px; color: var(--muted); font-size: 14px; }
.socials { list-style: none; padding: 0; margin: 40px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; }
.socials a { font: 600 15px var(--font-en); color: var(--muted); transition: color .2s; }
.socials a:hover { color: var(--accent-ink); }

/* ========== Footer ========== */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ========== Modal ========== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; }
.modal.is-open { display: grid; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 10, 13, .9); backdrop-filter: blur(6px); }
.modal__box { position: relative; width: min(1100px, 100%, calc((100svh - 120px) * 16 / 9)); animation: fadeUp .3s both; }
.modal__frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.modal__frame iframe, .modal__frame video { width: 100%; height: 100%; border: 0; display: block; }
.modal.is-vertical .modal__box { width: min(440px, 100%, calc((100svh - 120px) * 9 / 16)); }
.modal.is-vertical .modal__frame { aspect-ratio: 9 / 16; }
.modal__empty { height: 100%; display: grid; place-items: center; color: #fff; text-align: center; padding: 24px; }
.modal__close {
  position: absolute; top: -52px; inset-inline-end: 0;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: #fff; color: var(--text); font-size: 18px; cursor: pointer;
}

/* ========== Reveal on scroll ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }
.svc.reveal.is-visible:hover { transform: translateY(-6px); }

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

@media (max-width: 960px) {
  .vgrid--wide { grid-template-columns: repeat(2, 1fr); }
  .vgrid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__stills { max-width: 480px; order: 1; } /* في الشاشات الصغيرة النص قبل اللقطات */
  .feature { grid-template-columns: minmax(0, 300px) 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .hide-mobile { display: none; }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); inset-inline: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .3s, opacity .3s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav a.is-active::after { display: none; }

  .hero__stage { width: calc(100% - 16px); height: calc(100svh - var(--header-h) - 16px); min-height: 520px; border-radius: 22px; }
  /* في الموبايل النص ياخذ أغلب الشاشة، فالتظليل يطلع لفوق أكثر */
  .hero__stage::after, html[dir="ltr"] .hero__stage::after {
    background: linear-gradient(to top, rgba(5, 8, 11, .94) 0%, rgba(5, 8, 11, .82) 50%, rgba(5, 8, 11, .55) 75%, rgba(5, 8, 11, .35) 100%);
  }
  .hero__content { padding: 24px 20px 28px; }
  .hero__cta .btn { flex: 1 1 auto; }

  .section { padding: 76px 0; }
  .section--tight { padding-top: 64px; }
  .steps { grid-template-columns: 1fr; }

  /* الكروت تتمرر بالعرض على الموبايل بدل ما تتكدس */
  .svc-grid, .vgrid {
    display: grid; grid-auto-flow: column; grid-template-columns: none;
    grid-auto-columns: 78%; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: 4px 16px 12px; scroll-padding-inline: 16px;
    scrollbar-width: none;
  }
  .svc-grid::-webkit-scrollbar, .vgrid::-webkit-scrollbar { display: none; }
  .svc, .vcard { scroll-snap-align: start; }
  .vgrid { grid-auto-columns: 64%; }
  .vgrid--wide { grid-auto-columns: 86%; }
  .vgrid--tall + .vgrid--wide { margin-top: 14px; }
  .svc__media { aspect-ratio: 4 / 5; }
  .svc:hover, .vcard:hover { transform: none; }

  .feature { grid-template-columns: 1fr; padding: 16px 16px 24px; }
  .feature__media { width: 100%; max-width: 340px; margin-inline: auto; }
  .feature__body { padding-inline: 4px; }
  .work-group + .work-group { margin-top: 56px; }
  .clients__grid { gap: 28px 34px; }
  .client { height: 64px; }
  .client img { width: calc(var(--w) * .62px); height: calc(var(--h) * .62px); }
  .client--creators { height: auto; }
  .creators img { width: 52px; height: 52px; }
}

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