/* ===========================================
   رائد الحربي · بورتفوليو (v2)
   Dark Luxury · Kaan Identity · خط Camel
   ملاحظة: الأجزاء «المشتركة» (الخطوط، المتغيرات، الأساس، الأزرار، eyebrow، الفوتر)
   تستخدمها صفحات المشاريع و ai-gallery.html أيضاً — عدّلها بحذر.
   =========================================== */

/* ===== Custom Fonts: Camel · WOFF2 (300/400/700/800 — 500 يطلع Regular، 600 يطلع Bold) ===== */
@font-face { font-family: "Camel"; src: url("../fonts/Camel-Light.woff2") format("woff2");     font-weight: 100 300; font-display: swap; }
@font-face { font-family: "Camel"; src: url("../fonts/Camel-Regular.woff2") format("woff2");   font-weight: 400; font-display: swap; }
@font-face { font-family: "Camel"; src: url("../fonts/Camel-Bold.woff2") format("woff2");      font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Camel"; src: url("../fonts/Camel-ExtraBold.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }

/* ===== Tokens · Dark Luxury (مشتركة) ===== */
:root {
  /* Brand · Kaan accents */
  --kaan-soft: #91AC8F;
  --kaan-mid:  #66785F;
  --kaan-dark: #4B5945;

  /* Dark Surfaces */
  --bg:        #0A0C0A;
  --bg-alt:    #0E1210;
  --surface:   #131815;
  --surface-2: #1A201C;
  --line:      rgba(200,210,200,0.08);
  --line-2:    rgba(200,210,200,0.16);

  /* Text */
  --ink:       #F2EFE8;
  --ink-2:     #C9CFC4;
  --muted:     #8E948A;
  --muted-2:   #5C625C;

  /* Luxury accents */
  --gold:      #C8B98A;
  --silver:    #D8DCD3;
  --shimmer:   linear-gradient(135deg, #D8DCD3 0%, #91AC8F 40%, #4B5945 70%, #1A201C 100%);

  /* Typography */
  --font-sans: "Camel", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: "Camel", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-script: "Camel", serif;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 72px;
  --section-pad: clamp(48px, 8vh, 96px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 12px 36px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 60px rgba(145,172,143,0.15);

  /* Motion */
  --easing: cubic-bezier(.22,.61,.36,1);
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
}

/* ===== Base (مشترك) ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--easing), opacity .25s var(--easing); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--kaan-soft); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  top: 10px; inset-inline-start: 10px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform .2s var(--easing);
}
.skip-link:focus-visible { transform: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section { padding: var(--section-pad) 0; position: relative; }
/* الروابط الداخلية تنزل تحت الهيدر الثابت */
.home main > section { scroll-margin-top: var(--header-h); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  background: rgba(10,12,10,0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--easing), background .3s var(--easing);
}
.site-header.scrolled {
  background: rgba(10,12,10,0.88);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.logo { display: flex; align-items: center; }
.logo-img {
  height: 34px;
  width: auto;
  display: block;
  transition: transform .3s var(--easing), opacity .3s var(--easing);
  opacity: 0.9;
}
.logo:hover .logo-img { transform: scale(1.04); opacity: 1; }
.nav {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav a {
  color: var(--ink-2);
  position: relative;
  padding: 6px 2px;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 1px;
  background: var(--kaan-soft);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--easing);
}
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  border-radius: 10px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--easing), opacity .3s var(--easing);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons (مشترك) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  transition: transform .35s var(--easing), box-shadow .35s var(--easing), background .35s var(--easing), border-color .35s var(--easing), color .35s var(--easing);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--silver), var(--kaan-soft));
  transform: translateX(100%);
  transition: transform .5s var(--easing);
  z-index: 0;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-arrow { font-size: 14px; transition: transform .3s var(--easing); }
.btn-primary:hover .btn-arrow { transform: rotate(45deg); }
.home .btn-primary:hover .btn-arrow { transform: translateY(2px); }
.home .btn-ghost:hover .btn-arrow { transform: translateX(-3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--kaan-soft);
  color: var(--ink);
  background: rgba(145,172,143,0.06);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 18px; font-size: 13.5px; white-space: nowrap; }
.btn-lg { padding: 17px 36px; font-size: 16px; }

/* ===== Section heads ===== */
.section-head {
  margin-bottom: clamp(20px, 3.5vh, 36px);
  max-width: 680px;
}
.section-head.center { margin-inline: auto; text-align: center; }
/* بدون letter-spacing على العربي — يكسر اتصال الحروف */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--kaan-soft);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--kaan-soft);
}
.section-head h2,
.about-text h2,
.contact h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.35;
  color: var(--ink);
}
.lead,
.section-head .lead {
  margin-top: 10px;
  font-size: clamp(15px, 1.3vw, 17.5px);
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
}
.section-cta { display: flex; justify-content: center; margin-top: clamp(20px, 3.5vh, 32px); }

/* ===== 1. Hero ===== */
.hero {
  min-height: min(82vh, 860px);
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + clamp(20px, 4vh, 48px)) clamp(28px, 5vh, 56px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(75,89,69,0.20) 0%, transparent 60%),
    var(--bg);
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.palm-svg {
  position: absolute;
  top: 50%;
  inset-inline-end: -4%;
  width: min(92vh, 860px);
  height: min(92vh, 860px);
  margin-top: calc(min(92vh, 860px) / -2);
  opacity: 0.55;
  filter: drop-shadow(0 0 60px rgba(145,172,143,0.18));
}
.palm-svg .frond { transform-origin: 0 0; }

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--kaan-soft);
  margin-bottom: 14px;
}
.hero-kicker .dot {
  width: 7px; height: 7px;
  flex: none;
  background: var(--kaan-soft);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(145,172,143,0.6);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 58px);
  /* العربي يحتاج تباعد أسطر أوسع، وأي letter-spacing يكسر اتصال الحروف */
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title .accent {
  background: linear-gradient(180deg, var(--silver) 0%, var(--kaan-soft) 60%, var(--kaan-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.hero-sub {
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.85;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 26px;
  font-weight: 300;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hero-shots a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.hero-shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--easing);
}
.hero-shots a:hover img { transform: scale(1.05); }
.hero-shot-cap {
  position: absolute;
  inset-inline-start: 10px;
  bottom: 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10,12,10,0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ===== 2. التصوير والفيديو ===== */
.shoots { background: var(--bg-alt); }
.shots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.shots-grid.has-video { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.shot {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--easing);
}
.shot:hover img { transform: scale(1.05); }
.shot-cap {
  position: absolute;
  inset-inline-start: 8px;
  bottom: 8px;
  z-index: 2;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10,12,10,0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* بطاقة الفيديو (قبل ← بعد) */
.shot-video {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
  border-color: rgba(200,185,138,0.35);
}
.shot-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10,12,10,0.8) 0%, rgba(10,12,10,0.1) 45%, transparent 70%);
  pointer-events: none;
}
.shot-video .ba-before { clip-path: inset(0 0 0 50%); }
.shot-video .ba-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  z-index: 2;
  background: rgba(242,239,232,0.85);
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
}
.shot-video .ba-line::after {
  content: "⇆";
  position: absolute;
  top: 50%; left: 50%;
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 17px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.ba-label {
  position: absolute;
  top: 10px;
  z-index: 2;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(10,12,10,0.62);
}
.ba-label.is-before { right: 10px; }
.ba-label.is-after  { left: 10px; }
.ba-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold);
}
.shot-video-cap {
  position: absolute;
  inset-inline: 14px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
}
.shot-video-cap strong { font-size: clamp(15px, 1.4vw, 18px); font-weight: 700; line-height: 1.4; }
.shot-video-cap span { font-size: 12.5px; color: var(--ink-2); }

/* ===== 3. الأعمال ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.chip {
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-2);
  background: transparent;
  white-space: nowrap;
  flex: none;
  transition: color .25s var(--easing), background .25s var(--easing), border-color .25s var(--easing);
}
.chip:hover {
  color: var(--ink);
  border-color: var(--kaan-soft);
  background: rgba(145,172,143,0.06);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.chip-short { display: none; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.wcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--easing), border-color .35s var(--easing), box-shadow .35s var(--easing), opacity .22s var(--easing);
}
.wcard[hidden] { display: none; }
.wcard:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.work-grid.is-switching .wcard { opacity: 0; transform: translateY(8px); }
.wcard-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.wcard-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) brightness(0.94);
  transition: transform .6s var(--easing), filter .5s var(--easing);
}
.wcard:hover .wcard-media img { transform: scale(1.05); filter: none; }
/* لوحات العرض بخلفية بيضاء (مثل شخصيات دافور): تظهر كاملة بدون قص */
.wcard-media img.is-board { object-fit: contain; background: #fff; }
.wcard-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bg);
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.wcard-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
}
.wcard-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
}
.wcard-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 300;
}
.wcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.wcard-tags span {
  font-size: 12px;
  line-height: 1.5;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  transition: color .25s var(--easing), border-color .25s var(--easing), background .25s var(--easing);
}
.wcard-tags span.is-on {
  color: var(--kaan-soft);
  border-color: rgba(145,172,143,0.55);
  background: rgba(145,172,143,0.10);
}
/* بطاقة مميزة (مشروع كبير): بعرض الشبكة كاملة في «الكل» على الديسكتوب — صورة كبيرة ونص جنبها */
@media (min-width: 1025px) {
  .work-grid:not(:has(.wcard[hidden])) .wcard.is-feature { grid-column: 1 / -1; flex-direction: row; }
  .work-grid:not(:has(.wcard[hidden])) .wcard.is-feature .wcard-media {
    flex: 0 0 62%; aspect-ratio: auto; min-height: 380px;
    border-bottom: 0; border-inline-end: 1px solid var(--line);
  }
  .work-grid:not(:has(.wcard[hidden])) .wcard.is-feature .wcard-body { justify-content: center; gap: 10px; padding: 36px clamp(28px, 3.5vw, 52px); }
  .work-grid:not(:has(.wcard[hidden])) .wcard.is-feature .wcard-body h3 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.25; }
  .work-grid:not(:has(.wcard[hidden])) .wcard.is-feature .wcard-body p { font-size: 16px; line-height: 1.85; max-width: 34ch; }
  .work-grid:not(:has(.wcard[hidden])) .wcard.is-feature .wcard-tags { margin-top: 10px; }
  .work-grid:not(:has(.wcard[hidden])) .wcard.is-feature .wcard-badge { font-size: 13px; padding: 4px 13px; top: 14px; inset-inline-start: 14px; }
}

/* ===== 4. شعارات العملاء — شريط رفيع ===== */
.clients {
  padding: 18px 0;
  border-block: 1px solid var(--line);
}
.clients-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.clients-label {
  flex: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.clients-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.clients-track {
  display: flex;
  width: max-content;
  animation: clientsScroll 70s linear infinite;
}
/* يوقف بالمرور أو بالتركيز (كيبورد) أو باللمس — WCAG 2.2.2 */
.clients-marquee:hover .clients-track,
.clients-marquee:focus-within .clients-track,
.clients-marquee:active .clients-track { animation-play-state: paused; }
.clients-set {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline-end: 10px;
}
.clients-set li {
  flex: none;
  height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  background: #F4F1EA;
  border-radius: 999px;
}
.clients-set img {
  height: 26px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}
@keyframes clientsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== 5. عن رائد ===== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.about-text h2 { margin-bottom: 12px; }
.about-text p {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.9;
  color: var(--ink-2);
  font-weight: 300;
  max-width: 560px;
}
.about-text .about-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}
.about-stats bdi { color: var(--gold); font-weight: 700; font-size: 18px; }
.about-stats .sep { color: var(--muted-2); }
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.services li {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.services h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 4px;
}
.services p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 300;
}

/* ===== 6. تواصل ===== */
.contact {
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(145,172,143,0.09) 0%, transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}
.contact-inner { max-width: 760px; }
.contact .lead { max-width: 560px; margin-inline: auto; }
.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 14px;
}
.contact-mail {
  display: inline-block;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}
.contact-mail:hover { color: var(--ink); border-color: var(--kaan-soft); }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; }

/* ===== Footer (مشترك) ===== */
.site-footer {
  padding: 28px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-mark-img {
  height: 26px;
  width: auto;
  display: block;
  opacity: 0.85;
}
.footer-tag {
  font-family: var(--font-script);
  font-size: 16px;
  color: var(--ink-2);
}
.footer-meta {
  text-align: end;
  font-size: 13px;
  color: var(--muted);
}
.footer-meta .muted { font-size: 11px; opacity: 0.7; margin-top: 2px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .palm-svg { opacity: 0.4; }

  /* الفلاتر تلصق تحت الهيدر على الجوال والتابلت */
  .filters {
    position: sticky;
    top: var(--header-h);
    z-index: 30;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding: 10px var(--gutter);
    background: rgba(10,12,10,0.9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .filters::-webkit-scrollbar { display: none; }
}

@media (max-width: 1024px) and (min-width: 721px) {
  /* التابلت: ٤ أعمدة — الفيديو ٢×٢ والصور حوله */
  .shots-grid.has-video { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .logo-img { height: 30px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px var(--gutter) 18px;
    background: rgba(10,12,10,0.97);
    border-block: 1px solid var(--line);
    font-size: 16px;
  }
  .nav.is-open a { padding: 10px 2px; }
  .btn-sm { padding: 8px 14px; font-size: 13px; }

  /* الهيرو */
  .hero { min-height: 0; padding-block: calc(var(--header-h) + 28px) 28px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-sub { margin-bottom: 22px; }
  .hero-cta .btn { flex: 1 1 0; padding: 14px 18px; }
  .hero-shots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .hero-shots a { aspect-ratio: 1 / 1; border-radius: 10px; }
  .hero-shot-cap { display: none; }
  .palm-svg {
    width: 120vw; height: 120vw;
    margin-top: -60vw;
    top: 38%;
    inset-inline-end: -45vw;
    opacity: 0.3;
  }

  /* التصوير والفيديو: ٤ صور + بطاقة الفيديو بعرض كامل */
  .shots-grid,
  .shots-grid.has-video { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .shot.is-extra { display: none; }
  .shot-video { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }

  /* الأعمال: عمودين */
  .work-grid { gap: 10px; }
  .chip { padding: 8px 15px; font-size: 13.5px; }
  .chip-full { display: none; }
  .chip-short { display: inline; }
  .wcard { border-radius: 12px; }
  .wcard-media { aspect-ratio: 4 / 3; }
  .wcard-badge { top: 7px; inset-inline-start: 7px; font-size: 11px; padding: 2px 9px; }
  .wcard-body { padding: 10px 11px 12px; gap: 2px; }
  .wcard-body h3 { font-size: 15px; line-height: 1.4; }
  .wcard-body p {
    font-size: 12.5px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .wcard-tags { gap: 4px; padding-top: 6px; }
  .wcard-tags span { font-size: 11px; padding: 1px 8px; }

  /* الشعارات */
  .clients { padding: 14px 0; }
  .clients-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .clients-label { text-align: center; font-size: 12.5px; }
  .clients-set li { height: 38px; padding: 0 14px; }
  .clients-set img { height: 22px; max-width: 92px; }

  /* عن رائد */
  .services { gap: 8px; }
  .services li { padding: 12px 13px; border-radius: 12px; }
  .services h3 { font-size: 14.5px; }
  .services p { font-size: 12.5px; }

  /* تواصل + الفوتر */
  .contact-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-meta { text-align: start; }
}

/* ===== الحركة — فقط لمن ما طلب تقليلها ===== */
@media (prefers-reduced-motion: no-preference) {
  .palm-svg { animation: palmRotate 90s linear infinite; }
  .palm-svg .frond { animation: frondPulse 8s ease-in-out infinite; }
  .palm-svg .frond:nth-child(even) { animation-delay: 4s; }
  .hero-kicker .dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes palmRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes frondPulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 0.45; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  /* الشعارات: بدل الحركة، شريط يتمرر يدوياً */
  .clients-track { animation: none !important; }
  .clients-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .clients-set[aria-hidden="true"] { display: none; }
}
