/* ==========================================================================
   the task — Production House
   Main Stylesheet
   ========================================================================== */

/* ============ RESET & BASE ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font: inherit;
  background: none;
  border: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

input, textarea, select, button {
  font: inherit;
  color: inherit;
}

::selection {
  background: #EC008C;
  color: #fff;
}

/* ============ DESIGN TOKENS ============ */
:root {
  /* Colors */
  --c-black: #0a0a0a;
  --c-charcoal: #111111;
  --c-surface: #161616;
  --c-surface-2: #1c1c1c;
  --c-line: #2a2a2a;
  --c-line-2: #3a3a3a;
  --c-gray: #8F8F8F;
  --c-gray-2: #6a6a6a;
  --c-off-white: #f5f5f5;
  --c-white: #ffffff;
  --c-magenta: #EC008C;
  --c-magenta-glow: rgba(236, 0, 140, 0.35);
  --c-magenta-dark: #b3006a;
  --c-blueprint: #4a7a8c;

  /* Typography */
  --f-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --f-body: 'Poppins', system-ui, -apple-system, sans-serif;
  --f-arabic: 'Cairo', 'Poppins', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* Type scale */
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 17px;
  --fs-lg: 20px;
  --fs-xl: 24px;
  --fs-2xl: 32px;
  --fs-3xl: 40px;
  --fs-4xl: clamp(2rem, 4vw, 3.5rem);
  --fs-5xl: clamp(2.5rem, 5vw, 4.5rem);
  --fs-6xl: clamp(3rem, 7vw, 6rem);

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* Layout */
  --max-w: 1440px;
  --pad-x: clamp(20px, 4vw, 72px);

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-full: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.4s;
  --dur-slow: 0.7s;
}

/* ============ BODY ============ */
body {
  background: var(--c-charcoal);
  color: var(--c-off-white);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: var(--fs-base);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

body[dir="rtl"] {
  font-family: var(--f-arabic);
  line-height: 1.75;
}

body[dir="rtl"] .mono {
  font-family: var(--f-arabic);
  letter-spacing: 0.05em;
}

/* ============ UTILITY ============ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.mono {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-magenta);
  font-weight: 500;
}

.accent { color: var(--c-magenta); }

.divider {
  height: 1px;
  background: var(--c-line);
  border: 0;
  margin: 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;
}

/* Language visibility */
[data-en] { display: block; }
[data-ar] { display: none; }
body[dir="rtl"] [data-en] { display: none; }
body[dir="rtl"] [data-ar] { display: block; }

[data-en-inline] { display: inline-block; }
[data-ar-inline] { display: none; }
body[dir="rtl"] [data-en-inline] { display: none; }
body[dir="rtl"] [data-ar-inline] { display: inline-block; }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--c-line);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity var(--dur-fast);
}
.nav-logo:hover { opacity: 0.85; }

.nav-logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

.nav-logo-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--c-off-white);
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav-logo-name b {
  color: var(--c-magenta);
  font-weight: 700;
}

.nav-logo-slogan {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 10px;
  color: var(--c-gray);
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}
body[dir="rtl"] .nav-logo-slogan {
  font-family: var(--f-arabic);
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* Footer logo variant — slightly larger */
.footer-brand .nav-logo-mark {
  width: 48px;
  height: 48px;
}
.footer-brand .nav-logo-name {
  font-size: 24px;
}
.footer-brand .nav-logo-slogan {
  font-size: 11px;
}

/* Hide slogan on very small screens to save space in nav */
@media (max-width: 480px) {
  .nav .nav-logo-slogan { display: none; }
  .nav .nav-logo-mark { width: 36px; height: 36px; }
  .nav .nav-logo-name { font-size: 20px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-off-white);
  transition: color var(--dur-fast);
  position: relative;
  padding: 8px 0;
}
.nav-links a:hover { color: var(--c-magenta); }
.nav-links a.active {
  color: var(--c-magenta);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -18px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-magenta);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  border: 1px solid var(--c-line);
  color: var(--c-off-white);
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all var(--dur-fast);
  font-family: var(--f-mono);
}
.lang-toggle:hover {
  border-color: var(--c-magenta);
  color: var(--c-magenta);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-magenta);
  color: white;
  padding: 10px 20px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--c-magenta-glow);
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  padding: 80px var(--pad-x) 40px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
}
body[dir="rtl"] .mobile-menu-close { right: auto; left: 20px; }
.mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}
.mobile-menu-list a {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
body[dir="rtl"] .mobile-menu-list a { font-family: var(--f-arabic); }
.mobile-menu-list a:hover { color: var(--c-magenta); }
.mobile-menu-footer {
  position: absolute;
  bottom: 30px; left: var(--pad-x); right: var(--pad-x);
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--dur-fast);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--c-magenta);
  color: white;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--c-magenta-glow);
}
.btn-ghost {
  border-color: var(--c-line);
  color: var(--c-off-white);
}
.btn-ghost:hover {
  border-color: var(--c-magenta);
  color: var(--c-magenta);
}
.btn-outline {
  border-color: var(--c-magenta);
  color: var(--c-magenta);
}
.btn-outline:hover {
  background: var(--c-magenta);
  color: white;
}
.btn svg {
  width: 14px; height: 14px;
  transition: transform var(--dur-fast);
}
.btn:hover svg { transform: translateX(3px); }
body[dir="rtl"] .btn:hover svg { transform: translateX(-3px); }
body[dir="rtl"] .btn svg { transform: rotate(180deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 100px var(--pad-x) 60px;
  overflow: hidden;
  background: var(--c-black);
  display: flex;
  align-items: center;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video-wrap video,
.hero-video-wrap .video-fallback {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto; height: auto;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
}
.video-fallback {
  width: 100%; height: 100%;
  background-image:
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(236, 0, 140, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.85) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
  padding: 40px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--s-8);
  opacity: 0;
  animation: rise 0.8s var(--ease-out) 0.2s forwards;
}
.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--c-magenta);
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-6xl);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-8);
  max-width: 1100px;
}
body[dir="rtl"] .hero-title {
  font-family: var(--f-arabic);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span {
  display: inline-block;
  transform: translateY(100%);
  animation: rise-in 0.9s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.5s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.7s; }

.hero-sub {
  font-size: var(--fs-md);
  color: rgba(245, 245, 245, 0.75);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: var(--s-10);
  opacity: 0;
  animation: rise 0.9s var(--ease-out) 0.9s forwards;
}
body[dir="rtl"] .hero-sub { line-height: 1.9; font-size: 18px; }

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.9s var(--ease-out) 1.1s forwards;
}

.hero-marquee {
  position: absolute;
  bottom: 40px; left: 0; right: 0;
  z-index: 2;
  opacity: 0;
  animation: rise 1s var(--ease-out) 1.4s forwards;
}
.hero-meta {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 0 var(--pad-x);
  color: var(--c-gray);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-meta-item {
  display: flex; align-items: center; gap: 8px;
}
.hero-meta-item::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-magenta);
}
body[dir="rtl"] .hero-meta-item { font-family: var(--f-arabic); font-size: 11px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ============ TICKER (marquee strip) ============ */
.ticker {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 20px 0;
  overflow: hidden;
  background: var(--c-black);
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker 45s linear infinite;
  will-change: transform;
  width: max-content;
}
body[dir="rtl"] .ticker-track {
  animation-direction: reverse;
}
.ticker-item {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--c-off-white);
  display: flex;
  align-items: center;
  gap: 60px;
  flex-shrink: 0;
}
body[dir="rtl"] .ticker-item {
  font-family: var(--f-arabic);
  font-weight: 700;
}
.ticker-item::after {
  content: '/';
  color: var(--c-magenta);
  font-weight: 300;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ SECTION HEADERS ============ */
.section {
  padding: var(--s-24) var(--pad-x);
}
.section-inner {
  max-width: var(--max-w);
  margin-inline: auto;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 2fr;
  gap: var(--s-16);
  margin-bottom: var(--s-16);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--c-line);
  align-items: end;
}
.section-eyebrow {
  margin-bottom: var(--s-4);
}
.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-5xl);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
body[dir="rtl"] .section-title {
  font-family: var(--f-arabic);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section-lead {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--c-gray);
  max-width: 560px;
}
body[dir="rtl"] .section-lead {
  line-height: 1.9;
}

@media (max-width: 900px) {
  .section { padding: var(--s-16) var(--pad-x); }
  .section-head {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}

/* ============ DIVISIONS SECTION ============ */
.divisions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.division-card {
  padding: var(--s-10) var(--s-8);
  border-right: 1px solid var(--c-line);
  background: var(--c-surface);
  position: relative;
  transition: background var(--dur-med), transform var(--dur-med);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.division-card:last-child { border-right: none; }
body[dir="rtl"] .division-card {
  border-right: none;
  border-left: 1px solid var(--c-line);
}
body[dir="rtl"] .division-card:last-child { border-left: none; }

.division-card:hover {
  background: var(--c-surface-2);
}
.division-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--c-magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
body[dir="rtl"] .division-card::before {
  transform-origin: right;
}
.division-card:hover::before { transform: scaleX(1); }

.division-num {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-gray);
  letter-spacing: 0.15em;
  margin-bottom: var(--s-6);
}
.division-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
}
body[dir="rtl"] .division-title {
  font-family: var(--f-arabic);
  font-weight: 700;
  line-height: 1.4;
}
.division-desc {
  color: var(--c-gray);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: var(--s-6);
}
body[dir="rtl"] .division-desc { line-height: 1.9; }

.division-list {
  border-top: 1px solid var(--c-line);
  padding-top: var(--s-5);
  margin-top: auto;
}
.division-list li {
  padding: 6px 0;
  font-size: var(--fs-sm);
  color: var(--c-off-white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.division-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-magenta);
  flex-shrink: 0;
}
.division-cta {
  margin-top: var(--s-6);
  color: var(--c-magenta);
  font-size: var(--fs-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur-fast);
}
.division-cta:hover { gap: 10px; }

@media (max-width: 900px) {
  .divisions-grid {
    grid-template-columns: 1fr;
  }
  .division-card {
    border-right: none;
    border-bottom: 1px solid var(--c-line);
    min-height: auto;
  }
  body[dir="rtl"] .division-card {
    border-left: none;
    border-bottom: 1px solid var(--c-line);
  }
  .division-card:last-child { border-bottom: none; }
}

/* ============ WORK GRID ============ */
.work-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--s-10);
}
.work-filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-off-white);
  transition: all var(--dur-fast);
  font-family: var(--f-mono);
  letter-spacing: 0.05em;
}
body[dir="rtl"] .work-filter-btn { font-family: var(--f-arabic); }
.work-filter-btn:hover,
.work-filter-btn.is-active {
  border-color: var(--c-magenta);
  color: var(--c-magenta);
}
.work-filter-btn.is-active {
  background: rgba(236, 0, 140, 0.08);
}

/* Empty state for filters without projects yet */
.work-empty {
  padding: 80px 40px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  text-align: center;
  margin-bottom: var(--s-8);
  position: relative;
  overflow: hidden;
}
.work-empty::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--c-magenta-glow) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}
.work-empty-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-inline: auto;
}
.work-empty-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-4);
}
body[dir="rtl"] .work-empty-title {
  font-family: var(--f-arabic);
  font-weight: 900;
  line-height: 1.35;
}
.work-empty-desc {
  color: var(--c-gray);
  font-size: var(--fs-base);
  line-height: 1.75;
  margin-bottom: var(--s-6);
}
body[dir="rtl"] .work-empty-desc { line-height: 1.95; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.work-item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  cursor: pointer;
  transition: transform var(--dur-med) var(--ease-out);
}
.work-item:hover { transform: translateY(-4px); }

.work-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter var(--dur-med);
}
.work-item:hover .work-img {
  transform: scale(1.08);
  filter: brightness(0.6);
}

.work-info {
  position: absolute;
  inset: 0;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.5) 40%, transparent 70%);
  transition: opacity var(--dur-med);
}
.work-cat {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-magenta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
body[dir="rtl"] .work-cat { font-family: var(--f-arabic); font-size: 11px; }
.work-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
body[dir="rtl"] .work-title {
  font-family: var(--f-arabic);
  font-weight: 700;
  line-height: 1.4;
}
.work-client {
  color: var(--c-gray);
  font-size: var(--fs-xs);
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ============ PROCESS / STEPS ============ */
.process {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: var(--s-10);
}
.step {
  padding: var(--s-6) var(--s-6) var(--s-6) 0;
  border-left: 1px solid var(--c-line);
  padding-left: var(--s-6);
}
.step:first-child {
  border-left: none;
  padding-left: 0;
}
body[dir="rtl"] .step {
  border-left: none;
  border-right: 1px solid var(--c-line);
  padding-left: 0;
  padding-right: var(--s-6);
}
body[dir="rtl"] .step:first-child {
  border-right: none;
  padding-right: 0;
}

.step-num {
  font-family: var(--f-mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--c-magenta);
  line-height: 1;
  margin-bottom: var(--s-6);
  display: block;
}
.step-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}
body[dir="rtl"] .step-title { font-family: var(--f-arabic); }
.step-desc {
  color: var(--c-gray);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
body[dir="rtl"] .step-desc { line-height: 1.9; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .step, .step:first-child { border: none; padding: 0; }
}
@media (max-width: 500px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============ CTA SECTION ============ */
.cta-section {
  padding: var(--s-32) var(--pad-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--c-magenta-glow) 0%, transparent 65%);
  opacity: 0.35;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-inline: auto;
}
.cta-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-6xl);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: var(--s-6) 0 var(--s-6);
}
body[dir="rtl"] .cta-title {
  font-family: var(--f-arabic);
  font-weight: 900;
  line-height: 1.2;
}
.cta-sub {
  font-size: var(--fs-md);
  color: var(--c-gray);
  line-height: 1.7;
  margin-bottom: var(--s-10);
  max-width: 620px;
  margin-inline: auto;
}
body[dir="rtl"] .cta-sub { line-height: 1.9; }
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ ABOUT / STORY SECTIONS ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}
.split-content h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-4xl);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-6);
}
body[dir="rtl"] .split-content h3 { font-family: var(--f-arabic); font-weight: 900; line-height: 1.25; }
.split-content p {
  color: var(--c-gray);
  line-height: 1.75;
  margin-bottom: var(--s-4);
  font-size: var(--fs-md);
}
body[dir="rtl"] .split-content p { line-height: 1.95; }

.split-image {
  aspect-ratio: 4/5;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-line);
}
.split-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--s-10); }
  .split-image { aspect-ratio: 4/3; }
}

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  margin: var(--s-16) 0;
}
.stat {
  padding: var(--s-8);
  border-left: 1px solid var(--c-line);
  text-align: center;
}
.stat:first-child { border-left: none; }
body[dir="rtl"] .stat {
  border-left: none;
  border-right: 1px solid var(--c-line);
}
body[dir="rtl"] .stat:first-child { border-right: none; }

.stat-value {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 48px;
  color: var(--c-magenta);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 8px;
}
body[dir="rtl"] .stat-value { font-family: var(--f-arabic); font-weight: 900; }
.stat-label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-gray);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
body[dir="rtl"] .stat-label { font-family: var(--f-arabic); }

@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border: none; padding: var(--s-6); border-bottom: 1px solid var(--c-line); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============ SERVICES DETAIL ============ */
.service-section {
  padding: var(--s-24) var(--pad-x);
  border-top: 1px solid var(--c-line);
}
.service-section:first-of-type { border-top: none; }
.service-inner {
  max-width: var(--max-w);
  margin-inline: auto;
}
.service-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s-12);
  margin-bottom: var(--s-12);
  align-items: start;
}
.service-index {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--c-magenta);
  letter-spacing: 0.2em;
  padding-top: 24px;
  border-top: 2px solid var(--c-magenta);
  display: inline-block;
}
.service-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-5xl);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-6);
}
body[dir="rtl"] .service-title { font-family: var(--f-arabic); font-weight: 900; line-height: 1.2; }
.service-lead {
  font-size: var(--fs-md);
  color: var(--c-gray);
  line-height: 1.75;
  max-width: 720px;
}
body[dir="rtl"] .service-lead { line-height: 1.95; }

.service-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}
.service-item {
  padding: var(--s-6);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  transition: all var(--dur-med);
  display: flex;
  gap: var(--s-4);
}
.service-item:hover {
  border-color: var(--c-magenta);
  background: var(--c-surface-2);
}
.service-item-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-magenta);
  letter-spacing: 0.15em;
  min-width: 32px;
}
.service-item-content h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
body[dir="rtl"] .service-item-content h4 { font-family: var(--f-arabic); font-weight: 700; line-height: 1.5; }
.service-item-content p {
  color: var(--c-gray);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
body[dir="rtl"] .service-item-content p { line-height: 1.85; }

@media (max-width: 900px) {
  .service-head { grid-template-columns: 1fr; gap: var(--s-4); }
  .service-items { grid-template-columns: 1fr; }
}

/* ============ CONTACT ============ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-16);
}

.contact-info {
  padding: var(--s-10) 0;
}
.contact-block {
  padding: var(--s-6) 0;
  border-top: 1px solid var(--c-line);
}
.contact-block:last-of-type { border-bottom: 1px solid var(--c-line); }
.contact-block-label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-magenta);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
body[dir="rtl"] .contact-block-label { font-family: var(--f-arabic); font-size: 12px; }
.contact-block-value {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-xl);
  color: var(--c-off-white);
  letter-spacing: -0.01em;
  transition: color var(--dur-fast);
  display: inline-block;
}
body[dir="rtl"] .contact-block-value { font-family: var(--f-arabic); font-weight: 600; }
a.contact-block-value:hover { color: var(--c-magenta); }

/* Form */
.contact-form {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--s-10);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
.form-field {
  margin-bottom: var(--s-4);
}
.form-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-gray);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
body[dir="rtl"] .form-label { font-family: var(--f-arabic); font-size: 12px; }
.form-label .req { color: var(--c-magenta); margin-left: 2px; }
body[dir="rtl"] .form-label .req { margin-left: 0; margin-right: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-line);
  padding: 12px 0;
  color: var(--c-off-white);
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast);
  font-family: inherit;
  border-radius: 0;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-magenta);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='none' stroke='%23EC008C' stroke-width='2' d='M2 4l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}
body[dir="rtl"] .form-select {
  background-position: left 4px center;
  padding-right: 0;
  padding-left: 24px;
}
.form-select option {
  background: var(--c-charcoal);
  color: var(--c-off-white);
}

.form-submit {
  width: 100%;
  background: var(--c-magenta);
  color: white;
  padding: 18px 32px;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--dur-fast);
  margin-top: var(--s-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--c-magenta-glow);
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-note {
  margin-top: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--c-gray);
  line-height: 1.6;
}
.form-message {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  margin-top: var(--s-4);
  display: none;
}
.form-message.is-success {
  display: block;
  background: rgba(46, 204, 113, 0.12);
  color: #4dd97d;
  border: 1px solid rgba(46, 204, 113, 0.3);
}
.form-message.is-error {
  display: block;
  background: rgba(231, 76, 60, 0.12);
  color: #ff6b5b;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: var(--s-10); }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: var(--s-6); }
}

/* ============ PAGE HEADER (for inner pages) ============ */
.page-header {
  padding: 160px var(--pad-x) var(--s-16);
  border-bottom: 1px solid var(--c-line);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--c-magenta-glow) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}
body[dir="rtl"] .page-header::before { right: auto; left: -100px; }
.page-header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.breadcrumb {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-gray);
  letter-spacing: 0.15em;
  margin-bottom: var(--s-6);
  display: flex;
  gap: 8px;
  align-items: center;
}
body[dir="rtl"] .breadcrumb { font-family: var(--f-arabic); font-size: 12px; }
.breadcrumb a { color: var(--c-gray); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--c-magenta); }
.breadcrumb-sep { color: var(--c-magenta); }

.page-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-6xl);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 900px;
  margin-bottom: var(--s-6);
}
body[dir="rtl"] .page-title {
  font-family: var(--f-arabic);
  font-weight: 900;
  line-height: 1.2;
}
.page-lead {
  font-size: var(--fs-lg);
  color: var(--c-gray);
  line-height: 1.6;
  max-width: 640px;
}
body[dir="rtl"] .page-lead { line-height: 1.85; }

/* ============ FOOTER ============ */
.footer {
  background: var(--c-black);
  border-top: 1px solid var(--c-line);
  padding: var(--s-16) var(--pad-x) var(--s-8);
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--s-12);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid var(--c-line);
}
.footer-brand-desc {
  color: var(--c-gray);
  font-size: var(--fs-sm);
  line-height: 1.75;
  margin-top: var(--s-4);
  max-width: 380px;
}
body[dir="rtl"] .footer-brand-desc { line-height: 1.95; }

.footer-heading {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-magenta);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--s-5);
  font-weight: 500;
}
body[dir="rtl"] .footer-heading { font-family: var(--f-arabic); font-size: 13px; }

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-list a {
  font-size: var(--fs-sm);
  color: var(--c-off-white);
  transition: color var(--dur-fast);
  display: inline-block;
}
.footer-list a:hover { color: var(--c-magenta); }

.footer-contact-item {
  display: block;
  margin-bottom: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--c-off-white);
  transition: color var(--dur-fast);
}
.footer-contact-item:hover { color: var(--c-magenta); }
.footer-contact-item strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--c-gray);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 500;
}
body[dir="rtl"] .footer-contact-item strong { font-family: var(--f-arabic); font-size: 11px; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: var(--s-6);
}
.social-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-off-white);
  transition: all var(--dur-fast);
}
.social-icon:hover {
  border-color: var(--c-magenta);
  color: var(--c-magenta);
  transform: translateY(-2px);
}
.social-icon svg { width: 16px; height: 16px; }

.footer-bottom {
  padding-top: var(--s-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.footer-copyright {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-gray);
  letter-spacing: 0.05em;
}
body[dir="rtl"] .footer-copyright { font-family: var(--f-arabic); font-size: 13px; }
.footer-tag {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-magenta);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
body[dir="rtl"] .footer-tag { font-family: var(--f-arabic); font-size: 13px; }
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-gray);
  letter-spacing: 0.05em;
  transition: color var(--dur-fast);
}
.footer-legal a:hover { color: var(--c-magenta); }
body[dir="rtl"] .footer-legal a { font-family: var(--f-arabic); font-size: 13px; }

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}
@media (max-width: 600px) {
  .footer-main { grid-template-columns: 1fr; }
}

/* ============ PROSE (privacy/terms pages) ============ */
.prose {
  max-width: 780px;
  margin-inline: auto;
  padding: var(--s-16) var(--pad-x);
  color: var(--c-off-white);
}
.prose h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: var(--s-12) 0 var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-line);
}
body[dir="rtl"] .prose h2 { font-family: var(--f-arabic); font-weight: 900; line-height: 1.4; }
.prose h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-lg);
  line-height: 1.3;
  margin: var(--s-8) 0 var(--s-3);
}
body[dir="rtl"] .prose h3 { font-family: var(--f-arabic); font-weight: 700; }
.prose p {
  color: var(--c-off-white);
  font-size: var(--fs-md);
  line-height: 1.8;
  margin-bottom: var(--s-4);
}
body[dir="rtl"] .prose p { line-height: 2; }
.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: var(--s-4);
  list-style: disc;
}
body[dir="rtl"] .prose ul, body[dir="rtl"] .prose ol {
  padding-left: 0;
  padding-right: 24px;
}
.prose li {
  color: var(--c-off-white);
  font-size: var(--fs-md);
  line-height: 1.8;
  margin-bottom: 8px;
}
body[dir="rtl"] .prose li { line-height: 2; }
.prose a {
  color: var(--c-magenta);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong { color: var(--c-white); }

.prose-meta {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-gray);
  letter-spacing: 0.15em;
  padding: var(--s-4);
  background: var(--c-surface);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--c-magenta);
  margin-bottom: var(--s-8);
}
body[dir="rtl"] .prose-meta {
  border-left: none;
  border-right: 3px solid var(--c-magenta);
  font-family: var(--f-arabic); font-size: 13px;
}

/* ============ 404 ============ */
.error-page {
  min-height: 100vh;
  padding: 120px var(--pad-x) 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-inner { max-width: 640px; }
.error-code {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(120px, 20vw, 240px);
  line-height: 1;
  color: var(--c-magenta);
  letter-spacing: -0.05em;
  margin-bottom: var(--s-8);
}
.error-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-3xl);
  margin-bottom: var(--s-4);
  letter-spacing: -0.02em;
}
body[dir="rtl"] .error-title { font-family: var(--f-arabic); font-weight: 900; }
.error-desc {
  color: var(--c-gray);
  font-size: var(--fs-md);
  line-height: 1.7;
  margin-bottom: var(--s-8);
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--c-black);
}
::-webkit-scrollbar-thumb {
  background: var(--c-line);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-magenta);
}
