/* =============================================================
   THE REEL RECIPE — styles.css
   Dark editorial agency. Barlow Condensed + Figtree + Cairo.
   Brand: deep indigo-navy bg + teal accent (from logo icon).
============================================================= */

@font-face {
  font-family: 'VIP Hala';
  src: url('./fonts/vip-hala-bold.woff2') format('woff2'),
       url('./fonts/vip-hala-bold.otf') format('opentype');
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: 'Cairo';
  src: url('./fonts/Cairo-Regular.woff2') format('woff2'),
       url('./fonts/Cairo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('./fonts/Cairo-Medium.woff2') format('woff2'),
       url('./fonts/Cairo-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('./fonts/Cairo-SemiBold.woff2') format('woff2'),
       url('./fonts/Cairo-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('./fonts/Cairo-Bold.woff2') format('woff2'),
       url('./fonts/Cairo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('./fonts/Cairo-ExtraBold.woff2') format('woff2'),
       url('./fonts/Cairo-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('./fonts/Cairo-Black.woff2') format('woff2'),
       url('./fonts/Cairo-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

/* ── Variables ── */
:root {
  /* Deep indigo-navy — the logo's book body */
  --bg:          oklch(20%  0.062 278);
  --surface:     oklch(17%  0.058 278);
  --surface-2:   oklch(21%  0.055 278);
  --border:      oklch(28%  0.05  278);
  --border-2:    oklch(39%  0.05  278);
  /* Teal — the logo's bookmark accent */
  --accent:      oklch(74%  0.17  168);
  --accent-dim:  oklch(74%  0.17  168 / 0.24);
  --accent-hi:   oklch(79%  0.16  168);
  /* Near-white text, indigo-tinted */
  --text:        oklch(96%  0.004 278);
  --text-2:      oklch(96%  0.004 278);
  --text-3:      oklch(96%  0.004 278);

  --fd: 'Barlow Condensed', sans-serif;
  --fb: 'Figtree', sans-serif;

  --wrap: 1280px;
  --wrap-sm: 720px;
  --r: 6px;
  --r-lg: 12px;
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--accent); color: oklch(9% 0.065 278);
  font-size: 14px; font-weight: 700;
  padding: 8px 16px; border-radius: var(--r);
  z-index: 9999;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

/* ── Focus styles ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r);
}
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.btn-dark:focus-visible,
.btn-outline-dark:focus-visible,
.nb-cta:focus-visible,
.mobile-cta:focus-visible,
.modal-cta-link:focus-visible { outline-offset: 2px; }
.svc-row:focus-visible { outline-offset: -2px; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
figure { margin: 0; }

/* ── Arabic overrides ── */
[dir="rtl"],
[dir="rtl"] body {
  font-family: 'Cairo', sans-serif;
}
[dir="rtl"] .hero-headline,
[dir="rtl"] .section-title,
[dir="rtl"] .about-hl,
[dir="rtl"] .cta-hl,
[dir="rtl"] .svc-name,
[dir="rtl"] .work-ttl,
[dir="rtl"] .mobile-link {
  font-family: 'VIP Hala', 'Cairo', sans-serif;
  letter-spacing: 0;
}
/* Stat numbers stay on Latin font so digits/suffixes render correctly */
[dir="rtl"] .stat-num {
  font-family: var(--fd), sans-serif;
  direction: ltr;
}

/* ── Layout ── */
.container    { width: 100%; max-width: var(--wrap);    margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); }
.container-sm { width: 100%; max-width: var(--wrap-sm); margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); }
.section { padding: clamp(80px, 10vw, 136px) 0; }

/* ── Suppress all motion during language switch ── */
.lang-switching *, .lang-switching *::before, .lang-switching *::after {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}

/* ── Scroll reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s var(--expo), transform 0.72s var(--expo);
}
.scroll-reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}
.fade-up { opacity: 0; animation: fadeUp 0.82s var(--expo) forwards; }

@keyframes fadeUpViral {
  from { opacity: 0; transform: translateY(56px) scale(0.86); }
  to   { opacity: 1; transform: none; }
}
.hl-viral.fade-up {
  animation-name: fadeUpViral;
  animation-duration: 1.05s;
}

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

/* ── Scroll-reveal direction variants ── */
.scroll-reveal--left  { transform: translateX(-32px); }
.scroll-reveal--scale { transform: scale(0.93) translateY(10px); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: oklch(9% 0.065 278);
  font-family: inherit; font-size: 15px; font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--r);
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-primary:hover  { background: var(--accent-hi); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--accent);
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 13px 26px;
  border: 1.5px solid var(--accent-dim);
  border-radius: var(--r);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover  { border-color: var(--accent); color: var(--accent-hi); background: oklch(74% 0.17 168 / 0.06); }
.btn-ghost:active { transform: scale(0.97); }

.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: oklch(9% 0.065 278);
  color: oklch(96% 0.004 278);
  font-family: inherit; font-size: 15px; font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--r);
  transition: background 0.2s ease;
}
.btn-dark:hover { background: oklch(13% 0.062 278); }

/* ═════════════════════════════════════════
   UNIFIED CTA BUTTONS
   High-contrast, pill-shaped, consistent across the page.
   Shared: shape (pill), hover lift, glass-rim inset shadows, transitions.
   Variants:
     1. Primary teal  — on dark surfaces (hero, nav, mobile menu, modal)
     2. Ghost         — transparent secondary action
     3. Inverted dark — on the teal cta-section background
═════════════════════════════════════════ */
.btn-primary,
.btn-ghost,
.btn-dark,
.nb-cta,
.mobile-cta,
.modal-cta-link {
  position: relative;
  overflow: hidden;                /* clips the shine sweep to the pill curve */
  isolation: isolate;
  border-radius: 999px;
  transition: transform 0.2s cubic-bezier(.16,1,.3,1),
              box-shadow 0.25s ease,
              background 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease;
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-dark:hover,
.nb-cta:hover,
.mobile-cta:hover,
.modal-cta-link:hover {
  transform: translateY(-1.5px) scale(1.012);
}

.btn-primary:active,
.btn-ghost:active,
.btn-dark:active,
.nb-cta:active,
.mobile-cta:active,
.modal-cta-link:active {
  transform: translateY(0) scale(0.985);
}

/* ── Variant 1: Primary teal (dark surfaces) ── */
.btn-primary,
.nb-cta,
.mobile-cta,
.modal-cta-link {
  background: var(--accent);
  color: oklch(9% 0.065 278);
  border: none;
  box-shadow:
    inset 0 1px 0 oklch(96% 0.004 278 / 0.55),
    inset 0 -1px 0 oklch(9% 0.065 278 / 0.18),
    0 4px 14px oklch(74% 0.17 168 / 0.28),
    0 1px 3px oklch(9% 0.065 278 / 0.2);
}
.btn-primary:hover,
.nb-cta:hover,
.mobile-cta:hover,
.modal-cta-link:hover {
  background: var(--accent-hi);
  box-shadow:
    inset 0 1px 0 oklch(96% 0.004 278 / 0.7),
    inset 0 -1px 0 oklch(9% 0.065 278 / 0.22),
    0 10px 28px oklch(74% 0.17 168 / 0.42),
    0 2px 6px oklch(9% 0.065 278 / 0.25);
}

/* ── Variant 2: Ghost (frosted dark secondary) ──
   Sits over the hero video — a translucent indigo glass panel keeps the
   label legible on any frame, with a strong teal rim for brand contrast */
.btn-ghost {
  background: oklch(12% 0.05 278 / 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  border: 1.5px solid oklch(74% 0.17 168 / 0.6);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 oklch(96% 0.004 278 / 0.12),
    0 4px 14px oklch(9% 0.065 278 / 0.3);
}
.btn-ghost:hover {
  background: oklch(16% 0.055 278 / 0.7);
  border-color: var(--accent);
  color: var(--accent-hi);
  box-shadow:
    inset 0 1px 0 oklch(96% 0.004 278 / 0.18),
    0 6px 20px oklch(74% 0.17 168 / 0.22);
}

/* ── Variant 3: Inverted dark (on teal cta-section bg) ── */
.btn-dark {
  background: oklch(9% 0.065 278);
  color: oklch(96% 0.004 278);
  border: none;
  box-shadow:
    inset 0 1px 0 oklch(96% 0.004 278 / 0.18),
    inset 0 -1px 0 oklch(9% 0.065 278 / 0.5),
    0 4px 14px oklch(9% 0.065 278 / 0.4),
    0 1px 3px oklch(9% 0.065 278 / 0.3);
}
.btn-dark:hover {
  background: oklch(15% 0.065 278);
  box-shadow:
    inset 0 1px 0 oklch(96% 0.004 278 / 0.25),
    inset 0 -1px 0 oklch(9% 0.065 278 / 0.55),
    0 10px 28px oklch(9% 0.065 278 / 0.5),
    0 2px 6px oklch(9% 0.065 278 / 0.35);
}

/* ── Shine sweep — periodic translucent band crosses the button ── */
.btn-primary::after,
.btn-dark::after,
.nb-cta::after,
.mobile-cta::after,
.modal-cta-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    oklch(96% 0.004 278 / 0.38) 50%,
    transparent 70%
  );
  transform: translateX(-150%);
  animation: btnShine 5s cubic-bezier(.4, 0, .2, 1) 0.6s infinite;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

@keyframes btnShine {
  0%   { transform: translateX(-150%); }
  30%  { transform: translateX(150%); }
  100% { transform: translateX(150%); }   /* rest off-screen for ~70% of the loop */
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .btn-ghost,
  .btn-dark,
  .nb-cta,
  .mobile-cta,
  .modal-cta-link { transition: none; }
  .btn-primary:hover,
  .btn-ghost:hover,
  .btn-dark:hover,
  .nb-cta:hover,
  .mobile-cta:hover,
  .modal-cta-link:hover { transform: none; }
  .btn-primary::after,
  .btn-dark::after,
  .nb-cta::after,
  .mobile-cta::after,
  .modal-cta-link::after { animation: none; opacity: 0; }
}

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: oklch(9% 0.065 278);
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 12px 26px;
  border: 1.5px solid oklch(9% 0.065 278 / 0.45);
  border-radius: var(--r);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-outline-dark:hover { border-color: oklch(9% 0.065 278 / 0.8); background: oklch(9% 0.065 278 / 0.07); }

/* ── Section header ── */
.section-head { margin-bottom: clamp(48px, 7vw, 80px); }

.section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  /* Editorial accent bar that wipes in when the section heading enters viewport */
  display: inline-flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.9s 0.15s cubic-bezier(.16,1,.3,1);
}
.scroll-reveal.visible .section-label::before,
.section-head.scroll-reveal.visible .section-label::before { width: 36px; }

.section-label--lg {
  font-size: clamp(16px, 2.2vw, 22px);
  letter-spacing: 0.06em;
}
.section-label--lg::before { height: 2px; }
.scroll-reveal.visible .section-label--lg::before { width: 52px; }

.section-title {
  font-family: var(--fd);
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-sub {
  margin-top: 20px;
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--text-2);
  max-width: 58ch;
  line-height: 1.7;
}

.section-sub--lg {
  font-size: clamp(17px, 2vw, 21px);
}

/* ── Language switcher (mobile drawer uses two-button; desktop uses single cycle) ── */
.lang-switcher {
  display: flex; gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 3px;
}
.lang-btn {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--text-3);
  padding: 4px 10px; min-height: 36px;
  border-radius: calc(var(--r) - 2px);
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn.active { background: var(--accent); color: var(--bg); }
.lang-btn:hover:not(.active) { background: var(--surface-2); color: var(--text); }

/* Single-button lang cycle (desktop nav only) */
.lang-cycle {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  color: var(--accent);
  padding: 5px 12px; min-height: 36px;
  border-radius: var(--r);
  border: 1.5px solid var(--accent-dim);
  background: transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.lang-cycle:hover { color: var(--text); border-color: var(--accent); background: oklch(74% 0.17 168 / 0.1); }

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
.navbar-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding-top: env(safe-area-inset-top); }

.navbar {
  position: relative;
  border: 1px solid transparent;
  border-radius: 0;
  isolation: isolate;
  transition:
    background 0.45s var(--quart),
    border-color 0.45s var(--quart),
    border-radius 0.45s var(--quart),
    margin 0.45s var(--quart),
    box-shadow 0.45s var(--quart);
}

/* Teal specular sweep — brand-native highlight, not generic white */
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    155deg,
    oklch(74% 0.17 168 / 0.11) 0%,
    oklch(96% 0.004 278 / 0.04) 28%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.45s var(--quart);
}

.navbar.scrolled::before { opacity: 1; }

.navbar > * { position: relative; z-index: 1; }

.navbar.scrolled {
  background: oklch(9% 0.065 278 / 0.62);
  backdrop-filter: blur(28px) saturate(165%) brightness(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(165%) brightness(1.05);
  border-color: oklch(74% 0.17 168 / 0.16);
  border-radius: 999px;
  margin: 10px clamp(16px, 2.5vw, 44px);
  overflow: hidden;
  box-shadow:
    0 16px 48px oklch(4% 0.04 278 / 0.58),
    0 4px 14px  oklch(4% 0.04 278 / 0.38),
    inset 0 1px 0 oklch(74% 0.17 168 / 0.20),
    inset 0 -1px 0 oklch(28% 0.05 278 / 0.45);
}

@media (prefers-reduced-transparency: reduce) {
  .navbar.scrolled {
    background: oklch(10% 0.062 278 / 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: var(--border);
    box-shadow: 0 2px 8px oklch(4% 0.04 278 / 0.5);
  }
}

.nb-content {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}

.nb-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; transition: opacity 0.2s ease; }
.nb-logo:hover { opacity: 0.8; }
.nb-logo-icon    { height: 44px; width: auto; filter: drop-shadow(0 0 4px oklch(96% 0.004 278 / 0.95)) drop-shadow(0 0 14px oklch(96% 0.004 278 / 0.65)) drop-shadow(0 0 32px oklch(96% 0.004 278 / 0.35)); }
/* picture wrapper clips the empty canvas padding baked into the image file */
.nb-logo picture:last-of-type {
  display: block;
  height: 18px;
  overflow: hidden;
}
/* image is scaled tall enough so the text content = 18px, top gap offset */
.nb-logo-wordmark {
  height: 40px;
  width: auto;
  display: block;
  margin-top: -4px;
}

.nb-links { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); }

.nb-link { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: 0.01em; transition: color 0.2s ease; position: relative; }
.nb-link:hover { color: var(--accent); }
.nb-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.26s var(--quart);
}
.nb-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nb-link.active { color: var(--accent); }
.nb-link.active::after { transform: scaleX(1); transform-origin: left; }
.nb-link--courses { color: var(--accent); }
.nb-link--courses:hover { color: var(--accent-hi); }

.nb-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: oklch(9% 0.065 278);
  font-size: 14px; font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--r);
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.nb-cta:hover  { background: var(--accent-hi); transform: translateY(-1px); }
.nb-cta:active { transform: scale(0.97); }

.nb-right-mobile { display: none; align-items: center; gap: 12px; }
.nb-menu-btn { color: var(--text); padding: 4px; display: flex; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 101;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: calc(24px + env(safe-area-inset-top)) clamp(20px, 6vw, 56px) calc(24px + env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform 0.38s var(--quart);
}
.mobile-menu.open { transform: none; }

.mm-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px;
}

.mm-logo-icon {
  height: 44px; width: auto; display: block;
  filter: drop-shadow(0 0 4px oklch(96% 0.004 278 / 0.95)) drop-shadow(0 0 14px oklch(96% 0.004 278 / 0.65)) drop-shadow(0 0 32px oklch(96% 0.004 278 / 0.35));
}

.mobile-close {
  color: var(--text-2); padding: 8px; display: flex;
}

.mobile-links { display: flex; flex-direction: column; gap: 2px; }

.mobile-link {
  font-family: var(--fd);
  font-size: clamp(36px, 10vw, 58px);
  font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--text-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}
.mobile-link:hover { color: var(--text); }
.mobile-link--courses { color: var(--accent); }
.mobile-link--courses:hover { color: var(--accent-hi); }

.mobile-cta {
  margin-top: 32px; align-self: flex-start;
  display: inline-flex;
  background: var(--accent);
  color: oklch(9% 0.065 278);
  font-size: 16px; font-weight: 700;
  padding: 14px 32px; border-radius: var(--r);
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 68px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.038;
  mix-blend-mode: overlay;
}
.hero::after {
  content: '';
  position: absolute; bottom: -15%; left: -5%; z-index: 0; pointer-events: none;
  width: 65%; height: 55%;
  background: radial-gradient(ellipse at center, oklch(74% 0.17 168 / 0.055) 0%, transparent 65%);
}

/* ── Hero background: cinematic Vimeo videos ── */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* Soft fade at the bottom so videos blend into the partners band */
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.hero-videos {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3vw;
  padding: 2vh 0;
}

/* Frame clips the oversized iframe so 16:9 content covers the slot */
.hero-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  flex-shrink: 0;
}

/* Loading skeleton: lifted brand panel with a teal shimmer sweep.
   Sits under the video (z-index 0 vs 1), so the video crossfades over it
   when playback starts; on a slow connection the user sees a clearly
   "loading" branded panel instead of an empty black one.
   Strengths are calibrated to read through the hero vignette overlay. */
/* The pseudos use z-index 2/3: .hero-video-frame creates no stacking
   context, so they escape above the hero vignette (z-index 1 on
   .hero-bg::before) and keep full contrast, while the videos (z-index 1)
   stay under the vignette's cinematic grade. */
.hero-video-frame::before,
.hero-video-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.7s var(--expo); /* fades out in sync with the video fading in */
}
.hero-video-frame::before {
  z-index: 2;
  background: linear-gradient(180deg, oklch(31% 0.06 278), oklch(21% 0.058 278));
  box-shadow: inset 0 0 0 1px oklch(74% 0.17 168 / 0.18);
  animation: heroSkeletonPulse 2.4s ease-in-out infinite;
}
.hero-video-frame::after {
  z-index: 3;
  background: linear-gradient(100deg, transparent 22%, oklch(74% 0.17 168 / 0.22) 50%, transparent 78%);
  transform: translateX(-100%);
  animation: heroShimmer 1.9s ease-in-out infinite;
}
@keyframes heroShimmer {
  to { transform: translateX(100%); }
}
@keyframes heroSkeletonPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.68; }
}
/* Hide the skeleton once its video is playing */
.hero-video-frame:has(.hero-video--in)::before,
.hero-video-frame:has(.hero-video--in)::after {
  animation: none;
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-frame::before,
  .hero-video-frame::after { animation: none; }
}

.hero-video {
  position: relative;
  z-index: 1;
  border: none;
  pointer-events: none;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.7s var(--expo);
}
.hero-video.hero-video--in { opacity: 1; }

/* Desktop: 3-panel vertical videos */
@media (min-width: 769px) {
  .hero-video-frame--side,
  .hero-video-frame--center {
    width: 24vw;
    height: 85vh;
  }

  /* Iframe is forced to 16:9 and oversized beyond the frame in both dimensions,
     then scaled +10% to crop any Vimeo letterbox padding. */
  .hero-video-frame .hero-video {
    position: absolute;
    top: 50%; left: 50%;
    height: 95vh;                          /* 10vh taller than frame for vertical crop */
    width: calc(95vh * 16 / 9);            /* 16:9 aspect, derived from height */
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.hero-video-frame--side { display: none; }

@media (min-width: 769px) {
  .hero-video-frame--side { display: block; }
}

/* Mobile: single center video covers full bg, no letterbox */
@media (max-width: 768px) {
  .hero-videos {
    gap: 0;
    padding: 0;
  }

  .hero-video-frame--center {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .hero-video-frame--center .hero-video {
    position: absolute;
    top: 50%; left: 50%;
    /* Cover viewport in both axes while staying 16:9, then crop +15% */
    height: max(110svh, calc(110vw * 9 / 16));
    width:  max(calc(110svh * 16 / 9), 110vw);
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* Cinematic vignette + brand-tinted overlay over videos */
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 25%, oklch(15% 0.062 278 / 0.55) 75%, oklch(10% 0.06 278 / 0.85) 100%),
    oklch(20% 0.062 278 / 0.5);
  pointer-events: none;
}

/* Subtle teal accent wash from bottom-left, matches existing brand */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -8%;
  width: 70%; height: 60%;
  z-index: 1;
  background: radial-gradient(ellipse at center, oklch(74% 0.17 168 / 0.10) 0%, transparent 65%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { opacity: 1; transition: none; }
}

.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(28px, 3.5vw, 48px) clamp(20px, 5vw, 80px) clamp(16px, 2vw, 28px);
  flex: 1; display: flex; flex-direction: column; justify-content: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-brand-tag {
  font-family: var(--fd);
  font-size: 13px; font-weight: 900; letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}
.hero-eyebrow-dot {
  color: var(--accent); font-size: 7px; opacity: 0.7;
}
.hero-accent-line {
  width: clamp(44px, 7vw, 72px); height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.hero-views-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: clamp(13px, 1.5vw, 16px); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(14px, 2vw, 22px);
}

.hero-headline {
  display: flex; flex-direction: column;
  font-family: var(--fd);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.87;
  letter-spacing: -0.025em;
  margin-bottom: clamp(18px, 2.5vw, 28px);
}

.hl-row { display: block; }

.hl-sm {
  font-size: clamp(42px, 7vw, 92px);
  color: var(--text-2);
}

.hl-xl {
  font-size: clamp(80px, 13vw, 172px);
  color: var(--text);
}

.hl-lg {
  font-size: clamp(60px, 10vw, 136px);
  color: var(--text);
}

.hl-viral {
  font-style: italic;
  color: var(--accent);
}

.hero-foot {
  display: flex; flex-direction: column; gap: 18px;
  max-width: 560px;
}

.hero-sub {
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--text-2);
  line-height: 1.68;
  max-width: 56ch;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Social proof bar */
.hero-proof {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px) clamp(20px, 3vw, 36px);
  display: flex; align-items: center; gap: 40px;
}

.proof-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  color: var(--text-2);
  transition: color 0.2s ease; text-decoration: none;
}
.proof-item:hover .proof-platform { color: var(--text); }

.proof-item strong {
  font-family: var(--fd);
  font-size: clamp(52px, 6.5vw, 82px);
  font-weight: 900; line-height: 0.88; letter-spacing: -0.03em;
  color: var(--text);
}

.proof-platform {
  display: flex; align-items: center; gap: 7px;
  color: var(--text-3); font-size: 15px; font-weight: 500;
  transition: color 0.2s ease;
}

.proof-div { width: 1px; height: 80px; background: var(--border); }

/* ─────────────────────────────────────────
   PARTNERS BANNER
   Speed: change the duration value on .marquee-track below
───────────────────────────────────────── */
.partners-wrap {
  border-top: 1px solid oklch(28% 0.05 278 / 0.35);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--bg) 0%, var(--surface) 22%);
  padding: 28px 0 32px;
  position: relative;
}

.partners-label {
  text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 22px;
}

/* ── Marquee ── */
.marquee-outer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(20px, 5vw, 56px);
}

.marquee-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.marquee-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-2);
}

.marquee-overflow {
  overflow: hidden;
  position: relative;
}

/* edge fades */
.marquee-overflow::before,
.marquee-overflow::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}
.marquee-overflow::before {
  left: 0;
  background: linear-gradient(to right, var(--surface) 20%, transparent);
}
.marquee-overflow::after {
  right: 0;
  background: linear-gradient(to left, var(--surface) 20%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  cursor: grab;
  user-select: none;
  will-change: transform;
}

.marquee-track.is-dragging { cursor: grabbing; }

.marquee-set {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px; /* must equal gap for seamless loop */
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.partner-logo img {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: center;
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.35s var(--quart);
}

@media (min-width: 769px) {
  .partner-logo img { height: 64px; max-width: 200px; }
}

.partner-logo:hover img { opacity: 1; transform: scale(1.07); }

@media (max-width: 768px) {
  .marquee-set { gap: 48px; padding-right: 48px; }
  .marquee-btn { display: none; }
}

/* ─────────────────────────────────────────
   SERVICES
───────────────────────────────────────── */
.svc-list { display: flex; flex-direction: column; }

/* ── Service accordion ── */
.svc-item { position: relative; }

.svc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.44s var(--expo);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.svc-panel.open { grid-template-rows: 1fr; }

.svc-panel-inner {
  overflow: hidden;
  padding: 0 clamp(16px, 4vw, 80px);
  transition: padding 0.44s var(--expo);
}
.svc-panel.open .svc-panel-inner {
  padding: 28px clamp(16px, 4vw, 80px) 36px;
}

.svc-panel-desc {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--text-2); line-height: 1.72;
  max-width: 58ch;
  margin-bottom: 24px;
}
.svc-panel-includes-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.svc-panel-includes { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.svc-panel-include-item { display: flex; gap: 10px; align-items: flex-start; }
.svc-panel-check { flex-shrink: 0; margin-top: 2px; }
.svc-panel-include-text { font-size: 14px; color: var(--text-2); line-height: 1.5; }

.svc-panel-video {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
  max-width: 380px; width: 100%;
}
.svc-panel-video:hover { border-color: var(--border-2); background: var(--surface-2); }
.svc-panel-video-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r);
}
.svc-panel-video-label { font-size: 13px; font-weight: 600; color: var(--text); display: block; }
.svc-panel-video-sub { font-size: 11px; color: var(--text-3); display: block; }

.svc-panel-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: oklch(9% 0.065 278);
  font-size: 14px; font-weight: 700;
  padding: 12px 22px; border-radius: var(--r);
  transition: background 0.2s ease, transform 0.15s ease;
  min-height: 44px;
}
.svc-panel-cta:hover { background: var(--accent-hi); transform: translateY(-1px); }

/* Active service row state */
.svc-row.active { background: var(--accent-dim); }
.svc-row.active .svc-n { color: var(--accent); }
.svc-row.active .svc-name { color: var(--accent); }
.svc-row.active .svc-arr {
  border-color: var(--accent); color: var(--accent); background: var(--accent-dim);
  transform: rotate(135deg);
}
.svc-row:hover:not(.active) .svc-arr {
  border-color: var(--accent); color: var(--accent); background: var(--accent-dim); transform: rotate(45deg);
}

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr 1fr 48px;
  align-items: center;
  gap: 20px;
  padding: 28px 16px;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.22s ease, transform 0.18s var(--expo);
  border-radius: var(--r);
}
.svc-item:last-child .svc-panel { border-bottom: 1px solid var(--border); }
.svc-row:hover { background: var(--accent-dim); }
/* Tap feedback — mobile-first; subtle press-in so taps feel responsive */
.svc-row:active { transform: scale(0.992); }

.svc-n {
  font-family: var(--fd);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800; line-height: 1;
  color: var(--border-2);
  transition: color 0.22s ease;
  user-select: none;
}
.svc-row:hover .svc-n { color: var(--accent); }

.svc-meta { display: flex; flex-direction: column; gap: 3px; }

.svc-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

.svc-name {
  font-family: var(--fd);
  font-size: clamp(22px, 3.2vw, 42px);
  font-weight: 800; text-transform: uppercase;
  line-height: 1; letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.22s ease;
}
.svc-row:hover .svc-name { color: var(--accent); }

.svc-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; max-width: 36ch; }

.svc-arr {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-3);
  flex-shrink: 0;
  transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}
/* hover handled by .svc-row:hover:not(.active) .svc-arr above */

/* ─────────────────────────────────────────
   WORK
───────────────────────────────────────── */
.work-section { background: var(--surface); }

.work-services {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.work-service-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

/* grid child wrapper — must not expand beyond its cell */
.work-service-row > div { min-width: 0; }

.service-info {
  padding-top: 8px;
  position: sticky;
  top: 80px;
}

/* ── 3D Card Stack Carousel ── */
.video-strip {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-width: 280px;
  margin: 0 auto;
  perspective: 1200px;
}

.video-wrap {
  position: absolute;
  inset: 0;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
  will-change: transform, filter, opacity;
  /* Motion (spring physics) drives transform/filter/opacity via inline
     styles when available — only box-shadow and the delayed z-index swap
     stay CSS-driven */
  transition:
    box-shadow 0.65s var(--expo),
    z-index 0s 0.32s;
  /* Default: hidden behind */
  opacity: 0;
  transform: translateX(0) rotateZ(0deg) scale(0.85);
  filter: blur(5px);
  z-index: 0;
  box-shadow: 0 8px 32px oklch(4% 0.04 278 / 0.45);
}

/* Initial load reveal — JS adds .cards-ready once carousel inits */
.video-wrap.cards-ready {
  opacity: 1;
}

/* Fallback: if Motion failed to load (or reduced motion), the class-based
   transforms below still need easing — JS adds .has-motion to <body> only
   when spring animations have taken over */
body:not(.has-motion) .video-wrap {
  transition:
    transform 0.65s var(--expo),
    filter 0.65s var(--expo),
    opacity 0.65s var(--expo),
    box-shadow 0.65s var(--expo),
    z-index 0s 0.32s;
}

/* ── Card positions ── */
.video-wrap.card-active {
  opacity: 1;
  transform: translateX(0) rotateZ(0deg) scale(1);
  filter: blur(0px);
  z-index: 3;
  box-shadow:
    0 12px 40px oklch(4% 0.04 278 / 0.5),
    0 2px 8px oklch(4% 0.04 278 / 0.3);
}

.video-wrap.card-prev {
  opacity: 0.75;
  transform: translateX(-55%) rotateZ(-6deg) scale(0.88);
  filter: blur(4px);
  z-index: 1;
  box-shadow: 0 6px 24px oklch(4% 0.04 278 / 0.35);
  pointer-events: none;
}

.video-wrap.card-next {
  opacity: 0.75;
  transform: translateX(55%) rotateZ(6deg) scale(0.88);
  filter: blur(4px);
  z-index: 1;
  box-shadow: 0 6px 24px oklch(4% 0.04 278 / 0.35);
  pointer-events: none;
}

/* RTL: mirror the prev/next directions */
[dir="rtl"] .video-wrap.card-prev {
  transform: translateX(55%) rotateZ(6deg) scale(0.88);
}
[dir="rtl"] .video-wrap.card-next {
  transform: translateX(-55%) rotateZ(-6deg) scale(0.88);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.work-ttl {
  font-family: var(--fd); font-size: clamp(26px, 3vw, 42px);
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--text); line-height: 1;
  margin-bottom: 10px;
}

.work-dsc { font-size: 13px; color: var(--text-2); line-height: 1.5; }

.video-strip-wrap {
  position: relative;
  /* Extra horizontal padding so fanned cards don't clip */
  padding: 0 16%;
}

/* ── Carousel navigation arrows ── */
.vs-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: oklch(96% 0.004 278 / 0.1);
  border: 1px solid oklch(96% 0.004 278 / 0.15);
  color: var(--text);
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.vs-arrow:hover {
  background: oklch(96% 0.004 278 / 0.18);
  border-color: var(--accent-dim);
  transform: translateY(-50%) scale(1.08);
}
.vs-arrow--prev { left: 0; }
.vs-arrow--next { right: 0; }

/* ── Carousel dots ── */
.video-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.video-dot {
  height: 6px;
  width: 6px;
  border-radius: 3px;
  background: var(--text-2);
  opacity: 0.3;
  transition: width 0.35s var(--expo), opacity 0.35s ease, background 0.35s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.video-dot.active {
  width: 28px;
  opacity: 1;
  background: var(--accent);
}

/* ─────────────────────────────────────────
   RESULTS
───────────────────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.case-item {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.22s ease, transform 0.32s var(--quart);
}
.case-item:hover { border-color: var(--border-2); transform: translateY(-5px); }

.case-img-wrap { overflow: hidden; }
.case-img {
  width: 100%; height: 200px;
  object-fit: cover; display: block;
  transition: transform 0.5s var(--expo);
  will-change: transform;
}
.case-item:hover .case-img { transform: scale(1.04); }

/* Ken Burns drift — only animates while the case-item is in viewport (toggled via .visible).
   Subtle: ~4% scale change over 20s. Pauses out of view to save battery. */
@keyframes kenBurns {
  0%   { transform: scale(1.02) translate(-0.6%, 0.3%); }
  100% { transform: scale(1.06) translate(0.6%, -0.4%); }
}
.case-item.scroll-reveal.visible:not(:hover) .case-img {
  animation: kenBurns 20s ease-out infinite alternate;
}

.case-body { padding: 20px 20px 22px; }

.case-header {
  display: flex; align-items: baseline; gap: 12px; justify-content: space-between;
  margin-bottom: 14px;
}

.case-name {
  font-family: var(--fd); font-size: 22px; font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.01em; color: var(--text);
}

.case-cat { font-size: 12px; font-weight: 600; color: var(--text-3); white-space: nowrap; }

.case-ba {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}

.ba-col { display: flex; flex-direction: column; gap: 3px; }

.ba-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.ba-label.accent { color: var(--accent); }
.ba-val { font-size: 13px; color: var(--text-2); font-weight: 500; }
.ba-val.accent { color: var(--text); font-weight: 600; }

.ba-arr { color: var(--text-3); flex-shrink: 0; }

/* Mini stats */
.mini-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: clamp(40px, 5vw, 56px);
}

.mstat {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.mstat:last-child { border-right: none; }

.mstat-val {
  font-family: var(--fd); font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  color: var(--accent);
}

.mstat-lbl { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.mstat-sub { font-size: 12px; color: var(--text-3); }

.result-cta { display: flex; justify-content: flex-start; }

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about-section { border-top: 1px solid var(--border); }

.about-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about-hl {
  font-family: var(--fd);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 800; text-transform: uppercase;
  line-height: 0.92; letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 8px;
}

.about-hl em {
  font-style: italic;
  color: var(--accent);
}

.about-right { padding-top: 44px; }

.about-body {
  font-size: clamp(16px, 1.9vw, 20px);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 44ch;
}

/* ─────────────────────────────────────────
   STATS
───────────────────────────────────────── */
.stats-section { background: var(--surface); }

.stats-band {
  display: flex; align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 28px;
}

.stat-blk {
  flex: 1;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
  text-align: center;
}

.stat-rule { width: 1px; background: var(--border); flex-shrink: 0; }

.stat-num {
  font-family: var(--fd);
  font-size: clamp(44px, 6.5vw, 84px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.stat-lbl { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-2); text-transform: uppercase; }

.stats-note { font-size: 15px; color: var(--text-2); text-align: center; }
.stats-note-link { color: var(--accent); font-weight: 600; margin-left: 6px; }
.stats-note-link:hover { text-decoration: underline; }

/* ─────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────── */
.cta-section {
  background: var(--accent);
  padding: clamp(72px, 10vw, 120px) 0;
}

.cta-inner { max-width: 720px; }

.cta-hl {
  font-family: var(--fd);
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 800; text-transform: uppercase;
  line-height: 0.9; letter-spacing: -0.025em;
  color: oklch(9% 0.065 278);
  margin-bottom: 24px;
}

.cta-hl em { font-style: italic; color: oklch(9% 0.065 278 / 0.82); }

.cta-sub {
  font-size: clamp(15px, 1.7vw, 17px);
  color: oklch(9% 0.065 278 / 0.7);
  line-height: 1.65; max-width: 52ch;
  margin-bottom: 36px;
}

.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-head { margin-bottom: clamp(32px, 5vw, 48px); }

.contact-list { display: flex; flex-direction: column; }

.contact-btn {
  display: grid;
  grid-template-columns: 64px 1fr 44px;
  align-items: center;
  gap: 20px;
  padding: 28px 16px;
  border-top: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  transition: background 0.22s ease;
}
.contact-btn:last-child { border-bottom: 1px solid var(--border); }
.contact-btn:hover { background: var(--accent-dim); }

.cbtn-num {
  font-family: var(--fd);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; line-height: 1;
  color: var(--border-2);
  transition: color 0.22s ease;
  user-select: none;
}
.contact-btn:hover .cbtn-num { color: var(--accent); }

.cbtn-label {
  font-family: var(--fd);
  font-size: clamp(22px, 3.5vw, 46px);
  font-weight: 800; text-transform: uppercase;
  line-height: 1; letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.22s ease;
}
.contact-btn:hover .cbtn-label { color: var(--accent); }

.cbtn-badge {
  display: inline-block; vertical-align: middle;
  font-family: var(--fb);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid oklch(74% 0.17 168 / 0.4);
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 14px;
  transition: border-color 0.22s ease;
  position: relative; top: -2px;
}
.contact-btn:hover .cbtn-badge { border-color: var(--accent); }

[dir="rtl"] .cbtn-badge { margin-left: 0; margin-right: 14px; }

.cbtn-arr {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-3);
  transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
}
.contact-btn:hover .cbtn-arr {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 3vw, 40px);
  background: var(--bg);
}

.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 10px; transition: opacity 0.2s ease; }
.footer-brand:hover { opacity: 0.8; }
.footer-icon  { height: 28px; width: auto; filter: drop-shadow(0 0 4px oklch(96% 0.004 278 / 0.95)) drop-shadow(0 0 14px oklch(96% 0.004 278 / 0.65)) drop-shadow(0 0 32px oklch(96% 0.004 278 / 0.35)); }
.footer-wm    { height: 17px; width: auto; }

.footer-tag { font-size: 13px; color: var(--text-3); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-link { font-size: 13px; color: var(--text-2); transition: color 0.2s ease; }
.footer-link:hover { color: var(--text); }

.footer-end { display: flex; align-items: center; gap: 20px; }

.footer-socials { display: flex; gap: 4px; }
.fsoc {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: var(--text-2); border-radius: var(--r);
  transition: color 0.2s ease, background 0.2s ease;
}
.fsoc:hover { color: var(--text); background: var(--surface-2); }

.footer-copy { font-size: 12px; color: var(--text-3); }

/* ─────────────────────────────────────────
   MODAL
───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: oklch(5% 0.065 278 / 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: 100%; max-width: 560px;
  max-height: 88vh; overflow-y: auto;
  padding: 32px 32px 28px;
  transform: translateY(16px);
  transition: transform 0.3s var(--expo);
}
.modal-overlay.open .modal-box { transform: none; }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  color: var(--text-2); padding: 6px;
  border-radius: var(--r);
  display: flex;
  transition: color 0.2s ease, background 0.2s ease;
}
.modal-close:hover { color: var(--text); background: var(--surface-2); }

.modal-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; padding-right: 32px; }
.modal-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r);
}
.modal-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; display: block; }
.modal-title { font-family: var(--fd); font-size: 28px; font-weight: 800; text-transform: uppercase; color: var(--text); line-height: 1; }
.modal-divider { height: 2px; border-radius: 2px; margin-bottom: 18px; }
.modal-desc { font-size: 15px; color: var(--text-2); line-height: 1.7; margin-bottom: 24px; }
.modal-includes-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.modal-includes { display: flex; flex-direction: column; gap: 8px; }
.modal-include-item { display: flex; gap: 10px; align-items: flex-start; }
.modal-check { flex-shrink: 0; margin-top: 2px; }
.modal-include-text { font-size: 14px; color: var(--text-2); }
.modal-see-it { margin-top: 20px; margin-bottom: 4px; }
.modal-video-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-top: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.modal-video-link:hover { border-color: var(--border-2); background: var(--surface-2); }
.modal-video-icon { width: 40px; height: 40px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-video-label { font-size: 14px; font-weight: 600; color: var(--text); display: block; }
.modal-video-sub { font-size: 12px; color: var(--text-3); display: block; }
.modal-video-arrow { margin-left: auto; color: var(--text-3); }
.modal-cta-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  background: var(--accent); color: oklch(9% 0.065 278);
  font-size: 15px; font-weight: 700;
  padding: 13px 22px; border-radius: var(--r);
  transition: background 0.2s ease;
}
.modal-cta-link:hover { background: var(--accent-hi); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .svc-row {
    grid-template-columns: 56px 1fr 40px;
    gap: 16px;
  }
  .svc-desc { display: none; }

  .work-service-row { grid-template-columns: 160px 1fr; gap: 20px; }

  .cases-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid .case-item:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nb-links { display: none; }
  .nb-right-mobile { display: flex; }

  .work-service-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-info {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }

.service-info .work-dsc { display: none; }

  /* ── Card carousel — mobile adaptations ── */
  .video-strip {
    max-width: 220px;
  }

  .video-strip-wrap {
    padding: 0 14%;
  }

  .video-wrap.card-prev {
    transform: translateX(-50%) rotateZ(-4deg) scale(0.86);
  }
  .video-wrap.card-next {
    transform: translateX(50%) rotateZ(4deg) scale(0.86);
  }

  [dir="rtl"] .video-wrap.card-prev {
    transform: translateX(50%) rotateZ(4deg) scale(0.86);
  }
  [dir="rtl"] .video-wrap.card-next {
    transform: translateX(-50%) rotateZ(-4deg) scale(0.86);
  }

  .vs-arrow {
    width: 30px; height: 30px;
  }

  .cases-grid { grid-template-columns: 1fr; }
  .cases-grid .case-item:nth-child(3) { grid-column: 1; }

  .mini-stats { grid-template-columns: 1fr 1fr; }
  .mstat:nth-child(2) { border-right: none; }
  .mstat:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .mstat:nth-child(4) { border-top: 1px solid var(--border); }

  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-right { padding-top: 0; }

  .stats-band { flex-direction: column; }
  .stat-rule { width: 100%; height: 1px; }
  .stat-blk { text-align: left; padding: 20px 24px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .video-strip { max-width: 180px; }
  .video-strip-wrap { padding: 0 12%; }

  /* Navbar: shrink wordmark so lang-switcher + hamburger always fit */
  .nb-logo picture:last-of-type { height: 12px; }
  .nb-logo-wordmark { height: 25px; margin-top: -3px; }
  .nb-content { gap: 12px; padding: 0 16px; }
  .nb-right-mobile { gap: 10px; }

  .svc-row { grid-template-columns: 44px 1fr 44px; gap: 12px; padding: 22px 16px; }

  /* Hero shrinks to content height on mobile — removes the empty space below
     the followers counter that pushed the partners banner far down */
  .hero { justify-content: flex-start; min-height: unset; padding-top: 60px; }
  .hero-inner {
    flex: none;
    justify-content: flex-start;
    padding-top: 20px;
    padding-bottom: 12px;
  }
  .hero-proof { padding-bottom: 16px; }

  /* Tighter section spacing on mobile */
  .section { padding: 52px 0; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { justify-content: center; min-height: 52px; font-size: 16px; }

  .proof-item { padding: 6px 0; }

  .mini-stats { grid-template-columns: 1fr; border-radius: var(--r); }
  .mstat { border-right: none !important; border-top: 1px solid var(--border); }
  .mstat:first-child { border-top: none; }

  .contact-btn { grid-template-columns: 44px 1fr 44px; gap: 12px; padding: 22px 16px; }
  .cbtn-num { font-size: 28px; }
}

/* ── Touch: prevent double-tap zoom on interactive elements ── */
.svc-row, .contact-btn, .btn-primary, .btn-ghost, .btn-dark,
.btn-outline-dark, .nb-cta, .mobile-cta, .lang-btn, .lang-cycle,
.fsoc, .footer-link, .nb-link, .proof-item {
  touch-action: manipulation;
}

/* ─────────────────────────────────────────
   RTL
   NOTE: dir="rtl" on <html> already reverses flex-direction:row
   (first child → right, last child → left). Never add
   flex-direction:row-reverse as an RTL override — that double-reverses
   back to LTR. Only use direction:rtl for grids, and handle margins /
   transforms / positioning explicitly where needed.
───────────────────────────────────────── */

/* Mobile menu: hidden to the LEFT so it slides in from the left.
   .open must be re-stated here — this rule ties with .mobile-menu.open
   on specificity and comes later in the file, so it would win otherwise
   and keep the menu off-screen in Arabic. */
[dir="rtl"] .mobile-menu { transform: translateX(-100%); }
[dir="rtl"] .mobile-menu.open { transform: none; }

/* Service row grid: reverse column order via direction */
[dir="rtl"] .svc-row { direction: rtl; }

/* Results — before/after arrow: flip to point left (← toward After on left) */
[dir="rtl"] .ba-arr { transform: scaleX(-1); }

/* About: reverse two-column grid order */
[dir="rtl"] .about-layout { direction: rtl; }

/* Contact: grid reverses column order automatically in RTL; just flip the arrow */
[dir="rtl"] .contact-btn { direction: rtl; }
[dir="rtl"] .cbtn-arr svg { transform: scaleX(-1); }

/* Mini-stats: border separators on the LEFT (between cells in RTL column flow) */
[dir="rtl"] .mstat { border-right: none; border-left: 1px solid var(--border); }
[dir="rtl"] .mstat:last-child { border-left: none; }

/* Stats band: allow shrinking so no block overflows/clips; clean up Arabic label */
[dir="rtl"] .stat-blk { min-width: 0; }
[dir="rtl"] .stat-lbl { letter-spacing: 0; text-transform: none; font-size: 12px; }

/* Stats note */
[dir="rtl"] .stats-note { direction: rtl; }
[dir="rtl"] .stats-note-link { margin-left: 0; margin-right: 6px; }

/* Mobile menu links */
[dir="rtl"] .mobile-links { direction: rtl; }

/* Modal */
[dir="rtl"] .modal-header > div { text-align: right; }
[dir="rtl"] .modal-video-arrow { margin-left: 0; margin-right: auto; transform: scaleX(-1); }
[dir="rtl"] .modal-close { left: 16px; right: auto; }

/* Service accordion panels */
[dir="rtl"] .svc-panel-inner { direction: rtl; }
[dir="rtl"] .svc-panel-video svg:last-child { margin-left: 0; margin-right: auto; transform: scaleX(-1); }

/* Hero accent line: align to reading-start = RIGHT in RTL */
[dir="rtl"] .hero-accent-line { align-self: flex-start; }

/* Font size reduction for Arabic display text (Cairo/VIP Hala wider than Barlow Condensed) */
[dir="rtl"] .hl-xl { font-size: clamp(54px, 9.5vw, 122px); }
[dir="rtl"] .hl-lg { font-size: clamp(42px, 7.5vw, 96px); }
[dir="rtl"] .hl-sm { font-size: clamp(32px, 5vw, 64px); }

[dir="rtl"] .hero-headline { line-height: 1.1; }
[dir="rtl"] .section-title  { line-height: 1.15; }
[dir="rtl"] .about-hl       { line-height: 1.15; }
[dir="rtl"] .cta-hl         { line-height: 1.3; font-size: clamp(34px, 5.5vw, 72px); }

/* ── Partners marquee — RTL fix ──────────────────────────────────────────────
   RTL flex reverses item layout and misaligns the -50% start keyframe.
   Force both wrapper and track to physical LTR so the layout and clip are
   identical to the LTR version, then swap to a right-to-left animation.
   The edge fades (::before left, ::after right) stay correct for RTL scroll.
──────────────────────────────────────────────────────────────────────────── */
[dir="rtl"] .marquee-overflow,
[dir="rtl"] .marquee-track { direction: ltr; }

[dir="rtl"] .marquee-track { animation-name: marquee-scroll-rtl; }

@keyframes marquee-scroll-rtl {
  from { transform: translate3d(0,    0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ═════════════════════════════════════════
   LOGO INTRO OVERLAY
   Falling icon → unfurls wordmark → scales → fades to hero.
   Mirrors new_landing_desgin animation in brand tokens.
═════════════════════════════════════════ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto;
}
.intro.intro--gone { pointer-events: none; }

/* Background fill — fades independently while the lockup flies */
.intro-bg {
  position: absolute; inset: 0;
  background: var(--bg);
  opacity: 1;
  transition: opacity 0.7s var(--expo);
  pointer-events: none;
}
.intro-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.intro-bg.intro-bg--gone { opacity: 0; }

/* Shared white glow — matches nav logo */
.intro-dot,
.intro-lockup-icon {
  filter:
    drop-shadow(0 0 4px  oklch(96% 0.004 278 / 0.95))
    drop-shadow(0 0 14px oklch(96% 0.004 278 / 0.65))
    drop-shadow(0 0 32px oklch(96% 0.004 278 / 0.35));
}

/* Falling icon (the "dot") */
.intro-dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  opacity: 0;
  will-change: top, opacity, transform;
  pointer-events: none;
  z-index: 2;
}
.intro-dot-icon {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

/* Lockup (icon + wordmark) — sits at center, revealed via clip */
.intro-lockup {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  transform: scale(0.7);
  transform-origin: center center;
  opacity: 1;
  will-change: transform;
  z-index: 1;
}
.intro-lockup-icon {
  width: clamp(40px, 5vw, 64px);
  height: clamp(40px, 5vw, 64px);
  object-fit: contain;
  display: block;
  opacity: 0;                    /* fades in when dot lands */
  transition: opacity 0.25s var(--expo);
}
.intro-lockup-icon.intro-lockup-icon--in { opacity: 1; }

/* Clip-wrap masks the wordmark for the wipe-in reveal */
.intro-clip {
  position: relative;
  overflow: hidden;
  width: 0;
  height: clamp(60px, 9vw, 120px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  will-change: width;
}
.intro-clip.intro-clip--done {
  overflow: visible;
  width: auto !important;
}
.intro-wordmark {
  font-family: var(--fd);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(48px, 7vw, 96px);
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
  display: block;
  /* Subtle white halo so the wordmark carries the same glow */
  text-shadow:
    0 0 6px  oklch(96% 0.004 278 / 0.55),
    0 0 18px oklch(96% 0.004 278 / 0.25);
}

@media (max-width: 640px) {
  /* Shrink the lockup so the punch zoom stays on screen */
  .intro-lockup { gap: 8px; max-width: calc(100vw - 32px); }
  .intro-lockup-icon { width: clamp(28px, 7vw, 40px); height: clamp(28px, 7vw, 40px); }
  .intro-wordmark   { font-size: clamp(26px, 8vw, 44px); }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}
