/* =====================================================
   عبدالله رجب · بورتفوليو سينمائي بـ scroll-driven 3D
   ===================================================== */

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --bg-0: #111828;
  --bg-1: #161e32;
  --bg-2: #1c2640;
  --bg-3: #243250;
  --surface: rgba(237, 229, 213, 0.03);
  --border: rgba(237, 229, 213, 0.08);
  --border-strong: rgba(237, 229, 213, 0.18);

  --text-0: #e5e7eb;
  --text-1: #9ca3af;
  --text-2: #6b7280;

  --acc: #46b4d0;
  --acc-soft: #6bc8df;
  --acc-deep: #2e8fa8;

  --ff-base: 'Almarai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-display: 'Almarai', sans-serif;
  --ff-num: 'Reem Kufi', 'Almarai', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 22px;

  --max: 1320px;
  --pad: clamp(1.25rem, 3vw, 2.5rem);
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: calc(5.35rem + env(safe-area-inset-top, 0px));
}
/* Lenis handles smooth scroll — no native smooth */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  font-family: var(--ff-base);
  font-weight: 400;
  background-color: var(--bg-0);
  background-image:
    linear-gradient(rgba(17, 24, 40, 0.78), rgba(17, 24, 40, 0.78)),
    url("/assets/img/site-bg.png");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--text-0);
  line-height: 1.65;
  overflow-x: clip;
  cursor: auto;
}

body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

::selection { background: var(--acc); color: var(--bg-0); }
::-webkit-scrollbar { width: 0; height: 0; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
}

/* ====== كانفس 3D خلفي ثابت ====== */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

/* خلفية صورة/فيديو من لوحة التحكم — تحت مشهد Three.js */
.cms-hero-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-0);
}
.cms-hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
body.has-hero-media .bg-canvas {
  opacity: 0.42;
}

/* كل المحتوى فوق الكانفس */
.nav, .hero, .about, .featured, .work, .letters,
.testi, .clients, .contact, .footer {
  position: relative;
  z-index: 2;
}

.about,
.featured,
.work,
.letters,
.testi,
.clients,
.contact,
.services,
.blog-index,
.blog-post,
.work-catalog,
.page-work-intro {
  border-radius: var(--radius);
  margin-inline: var(--pad);
}

/* ====== حبيبات سينمائية ====== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(8) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(8%, -3%); }
  60% { transform: translate(-4%, -7%); }
  80% { transform: translate(5%, 6%); }
}

/* ====== الشريط العلوي ====== */
/* لون ثابت من أول تحميل الصفحة — بدون شفافية يظهر من خلالها الهيرو */
.nav {
  position: fixed; top: 0; right: 0; left: 0;
  z-index: 100;
  padding: 1.5rem var(--pad);
  padding-top: max(1.5rem, env(safe-area-inset-top, 0px));
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
  border-bottom: 1px solid var(--border);
  background: rgba(17, 24, 40, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav.scrolled {
  padding: 1rem var(--pad);
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  background: rgba(17, 24, 40, 0.88);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.lang-toggle {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--acc);
  border: 1px solid rgba(70, 180, 208, 0.45);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  flex-shrink: 0;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-toggle:hover {
  background: rgba(70, 180, 208, 0.12);
  color: var(--acc-soft);
}
html[dir="ltr"] .nav-links { flex-direction: row; }
html[dir="ltr"] .nav-link::after {
  right: auto;
  left: 0;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--acc); color: var(--acc);
  font-family: var(--ff-display);
  font-weight: 800; font-size: 1.2rem;
  transition: all 0.4s var(--ease);
}
.nav-logo:hover .logo-mark:not(.logo-mark--img) { background: var(--acc); color: var(--bg-0); }
.logo-mark--img {
  padding: 0;
  border: none;
  background: transparent;
  object-fit: contain;
}
.nav-logo:hover .logo-mark--img { opacity: 0.88; }
.logo-text { font-weight: 700; font-size: 0.95rem; }
.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-link.is-active,
.nav-link.is-active i { color: var(--acc); }
.page-inner { padding-top: 6.5rem; }
.page-work-intro { padding-top: 6.5rem; padding-bottom: 1rem; }
.page-inner-hero { padding-top: 6.5rem; }
.nav-link {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-1);
  transition: color 0.3s ease;
  display: flex; align-items: center; gap: 0.55rem;
}
.nav-link i {
  font-family: var(--ff-num);
  font-style: normal;
  font-size: 0.7rem;
  color: var(--acc); font-weight: 500;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: -6px; right: 0;
  width: 0; height: 1px;
  background: var(--acc);
  transition: width 0.4s var(--ease);
}
.nav-link:hover { color: var(--text-0); }
.nav-link:hover::after { width: 100%; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 0.5rem;
}
.nav-toggle span {
  display: block; width: 24px; height: 1px; background: var(--text-0);
  transition: all 0.4s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ====================================================
   1. البطل — Pinned Scrollytell
   ==================================================== */
.hero {
  position: relative;
  height: 300vh; /* مساحة سكرول للـ pin */
  background: transparent;
}
.hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  padding: 7rem var(--pad) 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
}
.hero-top { display: flex; justify-content: flex-end; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.85rem; color: var(--text-1);
  background: rgba(17, 24, 40, 0.4);
  backdrop-filter: blur(8px);
}
.hero-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 12px var(--acc);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-stage {
  position: relative;
  width: 100%;
  min-height: 0;
  align-self: stretch;
  isolation: isolate;
}
.hero-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px);
  will-change: transform, opacity;
  pointer-events: none;
}
.hero-frame[data-frame="0"] { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; }
.frame-eyebrow {
  font-family: var(--ff-num);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--acc);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 11vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text-0);
  text-shadow: 0 4px 60px rgba(0,0,0,0.5);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.4s var(--ease-out);
  transition-delay: 0.6s;
}
.hero-title .line:nth-child(2) > span { transition-delay: 0.85s; }
.loaded .hero-title .line > span { transform: translateY(0); }

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-1); font-weight: 300;
}

.frame-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7.5vw, 6.5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}
.frame-title em {
  font-style: normal;
  color: var(--acc);
  font-weight: 700;
}
.frame-text {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--text-1);
  font-weight: 300;
  line-height: 1.7;
}

.frame-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: flex-end;
}
.stat-big b {
  display: block;
  font-family: var(--ff-num);
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.9;
  color: var(--acc);
  margin-bottom: 0.5rem;
}
.stat-big b em {
  font-style: normal;
  font-size: 0.55em;
  color: var(--acc-soft);
}
.stat-big span {
  font-size: 0.95rem;
  color: var(--text-1);
  font-weight: 300;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-scroll {
  display: inline-flex; align-items: center;
  gap: 0.85rem;
  font-size: 0.85rem; color: var(--text-2);
}
.scroll-line {
  width: 60px; height: 1px;
  background: var(--text-2);
  position: relative; overflow: hidden;
}
.scroll-line span {
  position: absolute; inset: 0;
  background: var(--acc);
  transform: translateX(100%);
  animation: scrollGo 2.4s ease-in-out infinite;
}
@keyframes scrollGo {
  0%,100% { transform: translateX(100%); }
  50% { transform: translateX(-100%); }
}

.hero-progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  min-width: 200px;
}
.progress-num {
  font-family: var(--ff-num);
  font-size: 0.95rem;
  color: var(--text-1);
}
.progress-num i { color: var(--acc); font-style: normal; font-weight: 600; }
.progress-num em { color: var(--text-2); font-style: normal; margin: 0 0.4rem; }
.progress-bar {
  width: 200px; height: 1px;
  background: var(--bg-3);
  position: relative; overflow: hidden;
}
.progress-bar span {
  display: block; height: 100%;
  background: var(--acc);
  width: 0;
  transition: width 0.1s linear;
}

@media (max-width: 700px) {
  .hero-pin {
    padding: max(6.25rem, calc(5.25rem + env(safe-area-inset-top, 0px))) var(--pad) 2rem;
  }
  .hero-foot { gap: 1.5rem; }
  .progress-bar { width: 140px; }
}

/* ====================================================
   علامة القسم
   ==================================================== */
.section-marker {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.section-num {
  font-family: var(--ff-num);
  font-weight: 500;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.85;
  color: var(--bg-3);
  flex-shrink: 0;
}
.section-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
}
.section-label {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  color: var(--text-0);
}
.section-desc {
  font-size: 1rem;
  color: var(--text-1);
  max-width: 480px;
}
@media (max-width: 700px) {
  .section-marker { gap: 1rem; margin-bottom: 2.5rem; }
}

/* ====================================================
   2. عنّي
   ==================================================== */
.about {
  padding: 5.5rem 0 3.5rem;
  background: linear-gradient(180deg, rgba(17,24,40,0.25), rgba(17,24,40,0.55) 60%);
}
.page-home > .about:first-of-type {
  padding-top: calc(6.5rem + env(safe-area-inset-top, 0px));
  padding-bottom: 1.25rem;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid--solo {
  grid-template-columns: 1fr;
  max-width: 720px;
}
.about-photo {
  position: relative;
  margin-top: 2rem;
  overflow: visible;
  width: 100%;
  max-width: 320px;
}
@media (max-width: 900px) {
  .about-photo { max-width: 260px; margin-inline: auto; }
}
.about-photo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 108%;
  aspect-ratio: 1;
  border: 1px solid rgba(237, 229, 213, 0.5);
  border-radius: var(--radius);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: about-frame-spin 28s linear infinite;
}
.about-photo-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-2);
  border: 2px solid rgba(237, 229, 213, 0.72);
  border-radius: var(--radius);
}
@keyframes about-frame-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .about-photo::before {
    animation: none;
    transform: translate(-50%, -50%) rotate(12deg);
  }
}
.about-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 0 14px rgba(17, 24, 40, 0.92);
}
.about-photo-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(237, 229, 213, 0.78);
  border-radius: 12px;
}
.about-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  border-radius: var(--radius);
}
.about-photo-frame video,
.about-photo-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
}
.about-photo-frame--video {
  background: #000;
}
.photo-corner {
  display: none;
}
.about-text { padding-top: 1rem; }
.about-lede {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.4;
  margin-bottom: 2rem;
  color: var(--text-0);
}
.about-body {
  font-size: 1.05rem; color: var(--text-1);
  line-height: 1.95; margin-bottom: 2.5rem;
}
.about-skills {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  list-style: none; margin-bottom: 2.5rem;
}
.about-skills li {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  color: var(--text-1);
  transition: all 0.3s ease;
}
.about-skills li:hover {
  border-color: var(--acc);
  color: var(--acc);
  transform: translateY(-2px);
}
.about-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }


/* ====================================================
   أزرار
   ==================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  font-size: 0.95rem; font-weight: 700;
  position: relative; overflow: hidden;
  transition: all 0.4s var(--ease);
}
.btn svg { transition: transform 0.4s var(--ease); transform: scaleX(-1); }
.btn:hover svg { transform: scaleX(-1) translateX(4px); }
.btn-primary {
  background: var(--acc); color: var(--bg-0); border: 1px solid var(--acc);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--text-0);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
  z-index: 0;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text-0);
}
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); }
.btn-block { width: 100%; justify-content: center; }

/* ====================================================
   3. أعمال مختارة — Carousel (بدون scroll أفقي مثبت)
   ==================================================== */
.featured {
  position: relative;
  overflow-x: clip;
  background: linear-gradient(180deg, rgba(17,24,40,0.35) 0%, rgba(22,30,50,0.55) 50%, rgba(17,24,40,0.4) 100%);
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--border);
}
.featured-carousel__layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.featured-carousel__layout .featured-carousel__shell {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}
.featured-warm {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(70,180,208,0.06), transparent 60%),
    linear-gradient(180deg, rgba(17,24,40,0.35) 0%, rgba(22,30,50,0.55) 50%, rgba(17,24,40,0.4) 100%);
}
.featured-cool {
  background:
    radial-gradient(ellipse at 80% 70%, rgba(74,106,138,0.08), transparent 60%),
    linear-gradient(180deg, rgba(17,24,40,0.35) 0%, rgba(22,30,50,0.55) 50%, rgba(17,24,40,0.4) 100%);
}
.featured-intro {
  flex-shrink: 0;
  width: 100%;
  max-width: 720px;
  padding-bottom: 0;
  border-bottom: none;
}

.featured-carousel__shell {
  position: relative;
  --carousel-gap: 1.25rem;
  --carousel-card-w: 280px;
}

.featured-carousel__viewport {
  position: relative;
  overflow: hidden;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 0.35rem;
  min-width: 0;
  cursor: grab;
  touch-action: none;
  direction: ltr;
}
.featured-carousel__viewport a.proj-card__link {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.featured-carousel__viewport.is-dragging {
  cursor: grabbing;
}
.featured-carousel__viewport::-webkit-scrollbar { display: none; }

.featured-carousel__track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--carousel-gap);
  width: max-content;
  min-height: 0;
  padding-inline: 2px;
  will-change: transform;
  transition: none;
  direction: ltr;
}

.featured-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.featured-carousel__nav svg {
  width: 11px;
  height: 20px;
  pointer-events: none;
}
.featured-carousel__nav--prev {
  left: 10px;
  right: auto;
}
.featured-carousel__nav--next {
  right: 10px;
  left: auto;
}
.featured-carousel__nav:hover {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}
.featured-carousel__nav:disabled {
  opacity: 0.35;
  cursor: auto;
  pointer-events: none;
}
@media (max-width: 768px) {
  .featured-carousel__nav {
    width: 40px;
    height: 40px;
  }
  .featured-carousel__nav svg {
    width: 9px;
    height: 16px;
  }
  .featured-carousel__nav--prev {
    left: 5px;
  }
  .featured-carousel__nav--next {
    right: 5px;
  }
}

.featured-carousel__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.featured-num {
  font-family: var(--ff-num);
  font-weight: 500;
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--bg-3);
  line-height: 0.85;
  display: block;
  margin-bottom: 1rem;
}
.featured-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.featured-desc {
  font-size: 1.1rem;
  color: var(--text-1);
  line-height: 1.7;
  margin-bottom: 3rem;
}
.featured-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-1);
  font-size: 0.9rem;
}
.featured-hint svg { color: var(--acc); transform: scaleX(-1); }

.proj-card {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.featured-carousel .proj-card {
  flex: 0 0 var(--carousel-card-w);
  width: var(--carousel-card-w);
  min-width: 0;
  max-width: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  gap: 0;
}
.featured-carousel .proj-card--reel,
.featured-carousel .proj-card--reel .proj-card__link,
.featured-carousel .proj-card--reel .proj-card__inner {
  display: block;
  height: 100%;
}
.featured-carousel .proj-card--reel {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.featured-carousel .proj-card--reel:hover {
  transform: translateY(-4px);
  border-color: rgba(70, 180, 208, 0.35);
}
.featured-carousel .proj-card--reel .proj-img {
  aspect-ratio: 9 / 16;
  width: 100%;
  margin: 0;
  background: #000;
}
.featured-carousel[data-media-type="video"] .proj-card--reel .proj-img,
.featured-carousel[data-media-type="photo"] .proj-card--reel .proj-img,
.featured-carousel[data-media-type="drone"] .proj-card--reel .proj-img {
  aspect-ratio: 16 / 9;
}
.featured-carousel[data-media-type="reels"] .proj-card--reel .proj-img {
  aspect-ratio: 9 / 16;
}
.featured-carousel .proj-card--reel .proj-img img {
  object-fit: cover;
  filter: none;
  transition: transform 0.6s var(--ease);
}
.featured-carousel .proj-card--reel:hover .proj-img img {
  transform: scale(1.04);
}
.proj-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 1;
  transition: background 0.3s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.featured-carousel .proj-card--reel:hover .proj-play-overlay {
  background: rgba(0, 0, 0, 0.45);
}
.proj-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 40, 0.55);
  border: 1.5px solid rgba(237, 229, 213, 0.35);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.featured-carousel .proj-card--reel:hover .proj-play-btn {
  transform: scale(1.08);
  background: var(--acc);
  border-color: var(--acc);
  color: var(--bg-0);
}
.proj-play-btn svg {
  margin-inline-start: 3px;
}
.proj-reel-info {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  padding: 3.5rem 1rem 1.1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 70%);
  pointer-events: none;
}
.proj-reel-info h3 {
  font-family: var(--ff-display);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proj-reel-info .proj-tags {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: rgba(237, 229, 213, 0.7);
}
.featured-carousel .proj-img {
  aspect-ratio: 4 / 5;
}
.featured-carousel .proj-open-hint {
  opacity: 1;
  font-size: 0.75rem;
}
.featured-carousel .proj-meta h3 {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.25;
}
.proj-card--linked .proj-card__link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}
.proj-card--reel.proj-card--linked .proj-card__link {
  display: block;
  gap: 0;
}
.proj-card--linked:hover .proj-img img { transform: scale(1.03); }
.proj-lock { font-size: 0.85rem; opacity: 0.85; }
.proj-open-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--acc);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.proj-card--linked:hover .proj-open-hint { opacity: 1; }
.work-catalog { padding: 2rem 0 5rem; }
.page-work .work-catalog { padding-top: 0; }
.work-catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.work-catalog__filter {
  padding: 0.45rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  font-size: 0.88rem;
  color: var(--text-1);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.work-catalog__filter.is-active,
.work-catalog__filter:hover {
  border-color: var(--acc);
  color: var(--acc);
  background: rgba(70, 180, 208, 0.1);
}
.work-catalog__subfilters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
}
.work-catalog__subfilter {
  font-size: 0.9rem;
  color: var(--text-2);
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}
.work-catalog__subfilter:hover,
.work-catalog__subfilter.is-active {
  color: var(--text-0);
  opacity: 1;
}
.work-catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}
.work-catalog__grid--reels {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
  align-items: start;
}
.work-catalog__grid--reels .proj-card--reel {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.work-catalog__grid--reels .proj-card--reel:hover {
  transform: translateY(-4px);
  border-color: rgba(70, 180, 208, 0.35);
}
.work-catalog__grid--reels .proj-card--reel .proj-img {
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0;
  background: #000;
}
.work-catalog__grid--reels .proj-card--reel[data-media-type="reels"] .proj-img {
  aspect-ratio: 9 / 16;
}
.work-catalog__grid--reels .proj-card--reel[data-media-type="photo"] .proj-img {
  aspect-ratio: 4 / 5;
}
.work-catalog__grid--reels .proj-card--reel[data-media-type="drone"] .proj-img {
  aspect-ratio: 16 / 9;
}
.work-catalog__grid--reels .proj-card--reel .proj-img img {
  object-fit: cover;
  filter: none;
  transition: transform 0.6s var(--ease);
}
.work-catalog__grid--reels .proj-card--reel:hover .proj-img img {
  transform: scale(1.04);
}
.work-catalog__grid .proj-card { width: 100%; }
.work-catalog__empty { padding: 2rem 0; }
.proj-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--ff-num);
  color: var(--text-2);
}
.proj-num {
  font-size: 1.1rem;
  color: var(--acc);
  font-weight: 600;
}
.proj-year {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.proj-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
  border-radius: var(--radius);
}
.proj-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.9);
  transition: all 0.9s var(--ease);
}
.proj-card:hover .proj-img img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.06);
}
.proj-img--embed .proj-embed-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.proj-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(17, 24, 40, 0.72);
  border: 1px solid rgba(237, 229, 213, 0.35);
  color: var(--text-0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-inline-start: 0.2rem;
  pointer-events: none;
}
.proj-meta { display: flex; flex-direction: column; gap: 0.35rem; }
.proj-type {
  font-size: 0.82rem;
  color: var(--acc);
}
.proj-meta h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-0);
  transition: color 0.3s ease;
}
.proj-card:hover .proj-meta h3 { color: var(--acc); }
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-family: var(--ff-num);
  font-size: 0.78rem;
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.proj-tags span:not(:nth-child(2n)) {
  color: var(--text-1);
}

.featured-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--ff-num);
  font-size: 0.85rem;
  color: var(--text-1);
}
.featured-progress i { color: var(--acc); font-style: normal; font-weight: 600; }
.featured-bar {
  width: 180px; height: 1px;
  background: var(--bg-3);
  position: relative; overflow: hidden;
}
.featured-bar span {
  display: block; height: 100%; width: 0;
  background: var(--acc);
}

/* الموبايل: الـ horizontal scroll معطّل (الـ class is-horizontal مش بيتطبّق) */
@media (max-width: 900px) {
  .featured-intro { padding: 0 0 1.5rem 0; }
}

/* ====================================================
   4 + 5. كاروسيلات (صور + درون)
   ==================================================== */
.work {
  padding: 6rem 0;
  background: rgba(17, 24, 40, 0.92);
}
.work-alt {
  background: linear-gradient(180deg, rgba(17,24,40,0.92), rgba(22,30,50,0.92) 50%, rgba(17,24,40,0.92));
}

.carousel { position: relative; }
.car-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0 2rem;
  scrollbar-width: none;
  perspective: 1200px;
}
.car-track::-webkit-scrollbar { display: none; }
.car-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  scroll-snap-align: start;
  cursor: none;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
@media (max-width: 900px) { .car-card { flex: 0 0 calc((100% - 1.5rem) / 2); } }
@media (max-width: 600px) { .car-card { flex: 0 0 82%; } }

.car-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: var(--radius);
}
.car-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(25%) brightness(0.88);
  transition: all 0.9s var(--ease);
}
.car-card:hover .car-media img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.07);
}
.car-meta { padding-top: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.car-tag { font-size: 0.78rem; color: var(--acc); }
.car-meta h3 {
  font-family: var(--ff-display);
  font-weight: 700; font-size: 1.1rem;
  color: var(--text-0);
  transition: color 0.3s ease;
}
.car-card:hover .car-meta h3 { color: var(--acc); }

.car-arrow {
  position: absolute; top: 38%;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(17,24,40,0.7);
  backdrop-filter: blur(8px);
  color: var(--text-0);
  z-index: 10;
  transition: all 0.4s var(--ease);
}
.car-arrow svg { width: 22px; height: 22px; }
.car-arrow:hover {
  border-color: var(--acc); color: var(--acc);
  background: rgba(17,24,40,0.92);
}
.car-arrow-prev { right: -24px; }
.car-arrow-next { left: -24px; }
@media (max-width: 900px) {
  .car-arrow-prev { right: 0; }
  .car-arrow-next { left: 0; }
}

/* ====================================================
   6. حروف ضخمة — "حكاية"
   ==================================================== */
.letters {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem var(--pad);
  background: transparent;
  position: relative;
}
.letters-stage {
  display: flex;
  flex-direction: row-reverse;
  gap: 0;
  align-items: center;
  perspective: 1200px;
}
.big-letter {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(6rem, 22vw, 18rem);
  line-height: 0.85;
  color: var(--text-0);
  display: inline-block;
  letter-spacing: -0.08em;
  margin-inline: -0.04em;
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(40px) rotateX(35deg);
  text-shadow:
    0 4px 40px rgba(0,0,0,0.5),
    0 0 80px rgba(70, 180, 208, 0.15);
}
.big-letter:nth-child(odd) { color: var(--acc); }
.letters-caption {
  margin-top: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.letters-caption.in { opacity: 1; transform: translateY(0); }
.letters-caption span {
  font-size: 0.85rem; color: var(--text-2);
  letter-spacing: 0.05em;
}
.letters-caption strong {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--text-0);
}

/* ====================================================
   7. آراء العملاء
   ==================================================== */
.testi {
  padding: 7rem 0;
  background: rgba(22,30,50,0.45);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.testi-card {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  background: var(--bg-2);
  border: 2px solid rgba(237, 229, 213, 0.72);
  border-radius: var(--radius);
  transition: all 0.5s var(--ease);
}
.testi-card:nth-child(1) { grid-column: span 7; }
.testi-card:nth-child(2) { grid-column: span 5; }
.testi-card:nth-child(3) { grid-column: span 5; }
.testi-card:nth-child(4) { grid-column: span 7; }
@media (max-width: 900px) {
  .testi-card { grid-column: span 12 !important; }
}
.testi-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 100%; height: 1px;
  background: linear-gradient(to left, transparent, var(--acc), transparent);
  transform: scaleX(0);
  transition: transform 0.6s var(--ease);
}
.testi-card:hover { background: var(--bg-3); transform: translateY(-4px); }
.testi-card:hover::before { transform: scaleX(1); }
.testi-quote {
  font-family: var(--ff-display);
  font-size: 4.5rem;
  color: var(--acc);
  line-height: 0.5;
  margin-bottom: 1rem; height: 30px;
}
.testi-card p {
  font-size: 1.05rem; color: var(--text-0);
  line-height: 1.85; margin-bottom: 2rem;
}
.testi-card footer { display: flex; flex-direction: column; gap: 0.2rem; }
.testi-card footer strong {
  font-weight: 700; color: var(--text-0); font-size: 0.95rem;
}
.testi-card footer span { font-size: 0.85rem; color: var(--text-2); }

/* ====================================================
   8. عملاء — شعارات (كاروسيل يدوي)
   ==================================================== */
.clients {
  padding: 6rem 0;
  background: rgba(17,24,40,0.4);
}
.clients-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  padding: 1.5rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
  min-width: 0;
}
html[dir="rtl"] .clients-carousel__viewport {
  direction: ltr;
}
.clients-carousel__viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.clients-carousel__viewport::-webkit-scrollbar {
  display: none;
}
.clients-carousel__track {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  padding-inline: 0.75rem;
}
html[dir="rtl"] .clients-carousel__track {
  direction: rtl;
}
.clients-carousel__slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
}
.clients-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  padding: 0.5rem;
  text-decoration: none;
  box-sizing: border-box;
}
.clients-logo img {
  width: 100%;
  height: 100%;
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  filter: grayscale(30%) brightness(1.05);
  opacity: 0.88;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s var(--ease);
}
.clients-logo:hover img,
.clients-logo:focus-visible img {
  filter: grayscale(0%) brightness(1.1);
  opacity: 1;
  transform: scale(1.04);
}
.clients-carousel__nav {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 40, 0.55);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.clients-carousel__nav:hover {
  border-color: var(--acc);
  color: var(--acc);
}
.clients-carousel__nav:disabled {
  opacity: 0.35;
  pointer-events: none;
}
@media (max-width: 640px) {
  .clients-carousel {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .clients-carousel__nav {
    display: none;
  }
  .clients-logo {
    width: 100px;
    height: 100px;
  }
  .clients-carousel__track {
    gap: 0.85rem;
  }
}

/* ====================================================
   9. تواصل
   ==================================================== */
.contact {
  padding: 7rem 0;
  background: rgba(17,24,40,0.55);
  position: relative; overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(70,180,208,0.08), transparent 70%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800; line-height: 0.95;
  letter-spacing: -0.02em; margin-bottom: 1.5rem;
}
.contact-sub {
  font-size: 1.05rem; color: var(--text-1);
  margin-bottom: 3rem; max-width: 400px;
}
.contact-info {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.contact-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
a.contact-row:hover {
  padding-right: 0.5rem; border-bottom-color: var(--acc);
}
.contact-label { font-size: 0.85rem; color: var(--text-2); }
.contact-value {
  font-size: 1rem; color: var(--text-0); font-weight: 700;
}
.contact-form {
  background: var(--bg-2); padding: 2.5rem;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 1.25rem;
  position: relative;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.8rem; color: var(--text-2); }
.field input, .field textarea {
  background: transparent; border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  color: var(--text-0);
  font: inherit; font-family: var(--ff-base); font-size: 0.95rem;
  transition: border-color 0.3s ease;
  outline: none; resize: vertical;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--acc); }
.form-msg {
  position: absolute;
  inset-inline-start: 2.5rem;
  inset-inline-end: 2.5rem;
  bottom: -3rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--acc);
  background: rgba(70,180,208,0.08);
  color: var(--acc);
  font-size: 0.9rem; text-align: center;
  opacity: 0;
  transition: all 0.4s var(--ease);
  pointer-events: none;
}
.form-msg.show { opacity: 1; bottom: -3.5rem; }

/* ====================================================
   التذييل
   ==================================================== */
.footer {
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: rgba(22,30,50,0.6);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 0;
}
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}
html[dir="rtl"] .footer-socials { justify-content: flex-start; }
html[dir="ltr"] .footer-socials { justify-content: flex-end; }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  color: var(--text-1);
  border: 1px solid var(--border-strong);
  background: rgba(237, 229, 213, 0.03);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.social-icon__svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
.social-icon:hover,
.social-icon:focus-visible {
  color: var(--acc);
  border-color: var(--acc);
  background: rgba(70, 180, 208, 0.12);
  transform: translateY(-2px);
}
.social-icon:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

.footer-socials--circle .social-icon { border-radius: 50%; }
.footer-socials--rounded .social-icon { border-radius: 14px; }
.footer-socials--square .social-icon { border-radius: 4px; }
.footer-socials--ghost .social-icon {
  border-color: transparent;
  background: rgba(237, 229, 213, 0.06);
}
.footer-socials--ghost .social-icon:hover {
  background: rgba(70, 180, 208, 0.15);
}

@media (max-width: 600px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-socials {
    justify-content: flex-start;
    width: 100%;
  }
}
.footer-bottom {
  display: flex; justify-content: space-between;
  gap: 1rem; padding-top: 2rem;
  font-size: 0.85rem; color: var(--text-2);
  flex-wrap: wrap;
}
.back-top { color: var(--text-1); transition: color 0.3s ease; }
.back-top:hover { color: var(--acc); }

/* ====== Scroll Reveal ====== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ====== Mobile ====== */
@media (max-width: 768px) {
  html {
    scroll-padding-top: calc(4.85rem + env(safe-area-inset-top, 0px));
  }

  .nav-inner {
    gap: 1rem;
  }
  .logo-text {
    max-width: min(52vw, 14rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    z-index: 99;
    padding-inline: var(--pad);
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
    padding-top: max(7rem, calc(env(safe-area-inset-top, 0px) + 5.75rem));
    background: rgba(17, 24, 40, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.25rem;
    overflow-y: auto;
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.6s var(--ease);
    pointer-events: none;
  }
  html[dir="ltr"] .nav-links {
    flex-direction: column;
    transform: translate3d(-100%, 0, 0);
  }
  html[dir="rtl"] .nav-links {
    transform: translate3d(100%, 0, 0);
  }
  .nav-links.open {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }
  body.nav-open .nav {
    height: 100dvh;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
  }
  .nav-link {
    font-size: 1.35rem;
    min-height: 52px;
    padding-block: 0.65rem;
    padding-inline: 0.75rem;
    margin-inline: calc(var(--pad) * -0.35);
    border-radius: 10px;
  }
  .nav-link:active {
    background: rgba(237, 229, 213, 0.06);
  }
  .nav-toggle {
    display: flex;
    z-index: 101;
    min-width: 46px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
  }
  .lang-toggle {
    min-height: 46px;
    min-width: 46px;
    padding-inline: 0.85rem;
  }
  .nav-toggle,
  .lang-toggle {
    -webkit-tap-highlight-color: rgba(70, 180, 208, 0.2);
  }

  .hero-progress {
    min-width: 0;
    max-width: 100%;
    align-items: flex-end;
  }
  .progress-bar {
    width: min(160px, 46vw);
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 16px;
  }

  .btn {
    min-height: 48px;
    -webkit-tap-highlight-color: rgba(70, 180, 208, 0.25);
  }

  .about { padding: 4rem 0 1.25rem; }
  .page-home > .about:first-of-type {
    padding-bottom: 1rem;
  }
  .work, .testi, .contact { padding: 5rem 0; }
  .letters { height: auto; padding: 5rem var(--pad); }
  .footer {
    padding: 3rem 0 max(1.5rem, env(safe-area-inset-bottom, 0px));
  }
  .contact-form { padding: 1.75rem; }
  .form-msg { inset-inline-start: 1.75rem; inset-inline-end: 1.75rem; }
}

/* ====================================================
   تحسينات سكشن التواصل - رابط واتساب
   ==================================================== */
.contact-row--whatsapp {
  background: linear-gradient(90deg, rgba(37,211,102,0.14), transparent);
  border-color: rgba(37,211,102,0.35) !important;
  transition: background 0.3s ease, transform 0.3s ease;
}
.contact-row--whatsapp:hover {
  background: linear-gradient(90deg, rgba(37,211,102,0.24), rgba(37,211,102,0.05));
  transform: translateX(-4px);
}
.contact-row--whatsapp .contact-value { color: rgb(37,211,102); }

.contact-form select {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: transparent;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

/* ====================================================
   سكشن الخدمات
   ==================================================== */
.services { padding: 2.5rem 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.service-card {
  background: var(--bg-1, transparent);
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--acc); }
.service-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-2, rgba(0,0,0,0.06));
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__body { padding: 1.5rem 1.5rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.service-card__title { margin: 0 0 0.5rem; font-size: 1.2rem; font-weight: 700; }
.service-card__desc { color: var(--text-1, currentColor); opacity: 0.85; line-height: 1.6; margin: 0 0 1rem; flex: 1; }
.service-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.service-card__badge {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  color: var(--text-0);
  border: 1px solid var(--border);
}

/* ====================================================
   المدونة / صفحة blog
   ==================================================== */
.blog-index { padding: 8rem 0 6rem; }
.blog-post  { padding: 8rem 0 6rem; }

.blog-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 2rem 0 0;
  max-width: 640px;
}
.blog-search__input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border-strong, rgba(255,255,255,0.18));
  border-radius: 999px;
  background: rgba(17, 24, 40, 0.45);
  color: var(--text-0);
  font: inherit;
  outline: none;
  transition: border-color 0.25s var(--ease, ease);
}
.blog-search__input::placeholder { color: var(--text-2, rgba(255,255,255,0.45)); }
.blog-search__input:focus { border-color: var(--acc); }
.blog-search__btn {
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--acc);
  background: var(--acc);
  color: var(--bg-0);
  font: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.blog-search__btn:hover { opacity: 0.9; }
.blog-search__clear {
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong, rgba(255,255,255,0.18));
  color: var(--text-1);
  font-size: 0.9rem;
}
.blog-search__clear:hover { border-color: var(--acc); color: var(--acc); }

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
}
.blog-filter {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border-strong, currentColor);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-0);
  transition: all 0.3s ease;
}
.blog-filter:hover { border-color: var(--acc); color: var(--acc); }
.blog-filter.is-active { background: var(--acc); border-color: var(--acc); color: var(--bg-0); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.blog-card {
  background: var(--bg-1, transparent);
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.3s ease;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--acc); }
.blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-2, rgba(0,0,0,0.05));
}
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card__media img { transform: scale(1.05); }
.blog-card__placeholder {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0.14));
}
.blog-card__body { padding: 1.25rem 1.4rem 1.6rem; }
.blog-card__date { font-size: 0.8rem; opacity: 0.65; letter-spacing: 0.04em; }
.blog-card__title { margin: 0.5rem 0 0; font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--acc); }
.blog-card__tags,
.blog-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.blog-card__tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border-strong, rgba(255,255,255,0.18));
  border-radius: 999px;
  color: var(--text-1);
}
.blog-card__tag:hover { border-color: var(--acc); color: var(--acc); }
.blog-filters--tags { margin-top: -0.5rem; }

.blog-post__container { max-width: 760px; }
.blog-post__header { text-align: center; margin-bottom: 2rem; }
.blog-post__date { font-size: 0.85rem; opacity: 0.7; letter-spacing: 0.05em; display: block; margin-bottom: 0.75rem; }
.blog-post__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.blog-post__cover { margin: 2rem 0 2.5rem; border-radius: var(--radius); overflow: hidden; }
.blog-post__cover img { width: 100%; display: block; }
.blog-post__content { line-height: 1.85; font-size: 1.05rem; }
.blog-post__content p { margin: 0 0 1.15rem; }
.blog-post__content h2, .blog-post__content h3 { margin: 2rem 0 0.75rem; font-weight: 700; }
.blog-post__content img { max-width: 100%; height: auto; border-radius: 10px; margin: 1rem 0; }
.blog-post__back { margin-top: 3rem; text-align: center; }

/* ====================================================
   تصنيفات فرعية (chips) لسكشن الأعمال
   ==================================================== */
.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.5rem;
}
.featured-tag {
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-strong, currentColor);
  border-radius: 999px;
  color: var(--text-0);
  transition: all 0.3s ease;
}
.featured-tag:hover { border-color: var(--acc); color: var(--acc); transform: translateY(-1px); }
.featured-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--acc);
  color: var(--bg-0);
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.featured-carousel__footer .featured-explore {
  margin-top: 0;
}
.featured-explore:hover { transform: translateY(-2px); opacity: 0.92; }

/* ====================================================
   عدادات سكشن حكاية (letters)
   ==================================================== */
.letters-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.letters-stat {
  text-align: center;
  min-width: 130px;
}
.letters-stat__num {
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 800;
  color: var(--acc);
  letter-spacing: -0.02em;
  line-height: 1;
}
.letters-stat__label {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.75;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ====================================================
   نموذج إضافة رأي عميل
   ==================================================== */
.testi-add-wrap { text-align: center; margin-top: 2.5rem; }
.testi-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.testi-modal.is-open { display: flex; }
.testi-modal__box {
  width: min(560px, 100%);
  background: var(--bg-1, #111);
  color: var(--text-0);
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  max-height: 90vh;
  overflow-y: auto;
}
.testi-modal__title { font-size: 1.4rem; font-weight: 700; margin: 0 0 1.5rem; }
.testi-modal .form-field { margin-bottom: 1rem; }
.testi-modal label { display: block; font-size: 0.85rem; margin-bottom: 0.35rem; opacity: 0.85; }
.testi-modal input, .testi-modal textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border, rgba(255,255,255,0.15));
  background: transparent;
  color: inherit;
  border-radius: 8px;
  font: inherit;
}
.testi-modal textarea { min-height: 130px; resize: vertical; }
.testi-modal__actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.25rem; }
.testi-flash { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 8px; text-align: center; }
.testi-flash.is-success { background: rgba(46, 174, 106, 0.15); color: rgb(46, 174, 106); }

.wa-float {
  position: fixed;
  z-index: 80;
  right: 1.15rem;
  left: auto;
  bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.wa-float:hover { color: #fff; filter: brightness(1.06); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
