/* ================================================================
   CENTROM — Design System CSS
   "The Center of Every Experience"
   Cinematic Minimalism + Glassmorphism
   ================================================================ */

/* ── FONTS ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&family=Noto+Kufi+Arabic:wght@400;500;600;700;800&display=swap');

/* ── DESIGN TOKENS ──────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --surface-void: #050508;
  --surface-base: #0a0a0f;
  --surface-elevated: #12121a;
  --surface-glass: rgba(255, 255, 255, 0.04);
  --surface-glass-hover: rgba(255, 255, 255, 0.08);
  --surface-glass-border: rgba(255, 255, 255, 0.10);

  /* Text */
  --text-primary: #f0ece4;
  --text-secondary: rgba(240, 236, 228, 0.60);
  --text-tertiary: rgba(240, 236, 228, 0.36);

  /* Accents */
  --accent-gold: #c9a84c;
  --accent-gold-light: #e4cc7a;
  --accent-gold-dim: rgba(201, 168, 76, 0.20);
  --accent-purple: #7c5cbf;
  --accent-purple-light: #a78bfa;
  --accent-purple-dim: rgba(124, 92, 191, 0.15);

  /* Gradients */
  --gradient-signature: linear-gradient(135deg, #7c5cbf 0%, #c9a84c 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(124, 92, 191, 0.10) 0%, transparent 70%);
  --gradient-gold-line: linear-gradient(90deg, transparent 0%, #c9a84c 50%, transparent 100%);

  /* Scrim */
  --scrim-hero: linear-gradient(to bottom, rgba(5, 5, 8, 0.25) 0%, rgba(5, 5, 8, 0.85) 100%);

  /* Shadows */
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-glow-gold: 0 0 40px rgba(201, 168, 76, 0.15), 0 0 80px rgba(201, 168, 76, 0.05);
  --shadow-glow-purple: 0 0 40px rgba(124, 92, 191, 0.15), 0 0 80px rgba(124, 92, 191, 0.05);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Layout */
  --container-max: 1440px;
  --container-narrow: 960px;
  --gutter: clamp(20px, 4vw, 80px);
  --nav-height: 72px;

  /* Z-index */
  --z-base: 0;
  --z-card: 10;
  --z-sticky: 20;
  --z-nav: 40;
  --z-overlay: 60;
  --z-modal: 80;

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;
  --dur-reveal: 800ms;

  /* Logo filter (none for dark mode since logos are white) */
  --logo-filter: none;
}

/* ── LIGHT MODE TOKENS ─────────────────────────────────────────── */
:root[data-theme="light"] {
  /* Surfaces */
  --surface-void: #f5f2ed;
  --surface-base: #faf8f5;
  --surface-elevated: #ffffff;
  --surface-glass: rgba(0, 0, 0, 0.03);
  --surface-glass-hover: rgba(0, 0, 0, 0.06);
  --surface-glass-border: rgba(0, 0, 0, 0.08);

  /* Text */
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.65);
  --text-tertiary: rgba(26, 26, 46, 0.40);

  /* Accents (slightly richer for light backgrounds) */
  --accent-gold: #a8872e;
  --accent-gold-light: #c9a84c;
  --accent-gold-dim: rgba(168, 135, 46, 0.12);
  --accent-purple: #6a4fa8;
  --accent-purple-light: #7c5cbf;
  --accent-purple-dim: rgba(106, 79, 168, 0.10);

  /* Gradients */
  --gradient-signature: linear-gradient(135deg, #6a4fa8 0%, #a8872e 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(106, 79, 168, 0.06) 0%, transparent 70%);
  --gradient-gold-line: linear-gradient(90deg, transparent 0%, #a8872e 50%, transparent 100%);

  /* Scrim */
  --scrim-hero: linear-gradient(to bottom, rgba(245, 242, 237, 0.15) 0%, rgba(245, 242, 237, 0.80) 100%);

  /* Shadows */
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-glow-gold: 0 0 40px rgba(168, 135, 46, 0.10), 0 0 80px rgba(168, 135, 46, 0.04);
  --shadow-glow-purple: 0 0 40px rgba(106, 79, 168, 0.10), 0 0 80px rgba(106, 79, 168, 0.04);

  /* Logo needs inversion since SVGs are white-on-transparent */
  --logo-filter: brightness(0) saturate(100%) invert(10%) sepia(15%) saturate(800%) hue-rotate(200deg);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-void);
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ─────────────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--accent-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.3s var(--ease-spring),
    height 0.3s var(--ease-spring),
    border-color 0.3s,
    background 0.3s;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor--hover {
  width: 48px;
  height: 48px;
  border-color: var(--accent-gold-light);
  background: rgba(201, 168, 76, 0.08);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: opacity 0.4s;
  opacity: 0;
}

.cursor-glow--active {
  opacity: 1;
}

/* ── SCROLL PROGRESS BAR ───────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-signature);
  z-index: 9998;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
  transition: none;
}

/* ── PARTICLES CANVAS ──────────────────────────────────────────── */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

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

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

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

ul,
ol {
  list-style: none;
}

/* ── SKIP LINK (a11y) ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--accent-gold);
  color: var(--surface-void);
  padding: var(--space-2) var(--space-4);
  border-radius: 4px;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--dur-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ── UTILITY ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.label-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.section-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent-gold);
}

/* ── GLASSMORPHISM COMPONENTS ───────────────────────────────────── */
.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid var(--surface-glass-border);
}

.glass--nav {
  background: rgba(10, 10, 15, 0.50);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass--card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out);
}

.glass--card {
  perspective: 800px;
  transform-style: preserve-3d;
}

.glass--card:hover {
  background: var(--surface-glass-hover);
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-gold);
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 36px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  min-height: 48px;
}

.btn--glass {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary);
  border: 1px solid var(--surface-glass-border);
}

.btn--glass:hover {
  background: var(--surface-glass-hover);
  border-color: rgba(201, 168, 76, 0.3);
  box-shadow: var(--shadow-glow-gold);
}

.btn--glass:active {
  transform: scale(0.97);
}

.btn--glass:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--gradient-signature);
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn--primary:hover {
  box-shadow: var(--shadow-glow-purple);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: scale(0.97) translateY(0);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

.btn--large {
  padding: 18px 52px;
  font-size: 0.875rem;
  min-height: 60px;
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ── NAVIGATION ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-nav);
  transition: background var(--dur-slow) var(--ease-out),
    backdrop-filter var(--dur-slow);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: 100px;
  padding: 3px;
  margin-left: var(--space-3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-toggle__btn {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: all var(--dur-base) var(--ease-out);
  min-height: 32px;
  display: flex;
  align-items: center;
}

.lang-toggle__btn.active {
  background: rgba(201, 168, 76, 0.15);
  color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.1);
}

.lang-toggle__btn:hover:not(.active) {
  color: var(--text-primary);
}

.lang-toggle__btn:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Mobile lang toggle */
.lang-toggle--mobile {
  margin-left: 0;
  margin-top: var(--space-5);
}

.nav__link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-2) 0;
  transition: color var(--dur-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width var(--dur-base) var(--ease-out);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav__cta {
  padding: 10px 24px;
  font-size: 0.6875rem;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile overlay */
.nav__mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: var(--z-overlay);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-7);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}

.nav__mobile-overlay.active {
  display: flex;
  opacity: 1;
}

.nav__mobile-overlay .nav__link {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.nav__mobile-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.nav__mobile-close svg {
  width: 24px;
  height: 24px;
}

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim-hero);
  z-index: 1;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: 0 var(--gutter);
}

.hero__logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__tagline {
  font-size: clamp(0.6875rem, 1.2vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  max-width: 500px;
}

.hero__cta {
  margin-top: var(--space-4);
}

.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-7);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-tertiary);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-cue svg {
  width: 20px;
  height: 20px;
  animation: scrollBounce 2s var(--ease-out) infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(8px);
    opacity: 0.5;
  }
}

/* ── REVEAL ANIMATIONS (Enhanced) ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out),
    filter var(--dur-reveal) var(--ease-out);
  filter: blur(4px);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal--delay-1 {
  transition-delay: 100ms;
}

.reveal--delay-2 {
  transition-delay: 200ms;
}

.reveal--delay-3 {
  transition-delay: 300ms;
}

.reveal--delay-4 {
  transition-delay: 400ms;
}

.reveal--delay-5 {
  transition-delay: 500ms;
}

.reveal--delay-6 {
  transition-delay: 600ms;
}

/* Scale-up reveal variant */
.reveal--scale {
  transform: scale(0.92) translateY(30px);
}

.reveal--scale.in-view {
  transform: scale(1) translateY(0);
}

/* Clip reveal variant (wipe from bottom) */
.reveal--clip {
  clip-path: inset(100% 0 0 0);
  transform: none;
  filter: none;
  transition: clip-path 1s var(--ease-out), opacity 0.6s var(--ease-out);
}

.reveal--clip.in-view {
  clip-path: inset(0 0 0 0);
}

/* Slide-in from left */
.reveal--left {
  transform: translateX(-60px) translateY(0);
}

.reveal--left.in-view {
  transform: translateX(0) translateY(0);
}

/* Slide-in from right */
.reveal--right {
  transform: translateX(60px) translateY(0);
}

.reveal--right.in-view {
  transform: translateX(0) translateY(0);
}

/* ── Hero-specific reveals (enhanced cinematic) ──────────────── */
.hero__content .hero__logo {
  /* Initial hidden state */
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  filter: blur(8px);
  /* Reveal image */
  animation: heroLogoReveal 1.2s var(--ease-out) 0.3s forwards;
}

.hero__content .hero__tagline {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  animation: heroFadeReveal 0.9s var(--ease-out) 0.7s forwards;
}

.hero__content .hero__cta {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  filter: blur(3px);
  animation: heroFadeReveal 0.9s var(--ease-out) 1.1s forwards;
}

.hero__scroll-cue {
  opacity: 0;
  animation: heroFadeReveal 0.6s var(--ease-out) 1.6s forwards;
}

@keyframes heroLogoReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroFadeReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes textShimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* ── Glowing border pulse (service cards) ──────────────────────── */
.service-card.glass--card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg,
      transparent 40%,
      rgba(201, 168, 76, 0.15) 50%,
      transparent 60%);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  animation: borderGlow 4s linear infinite;
}

.service-card.glass--card {
  position: relative;
  overflow: visible;
}

.service-card.glass--card:hover::after {
  opacity: 1;
}

@keyframes borderGlow {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 100%;
  }

  100% {
    background-position: 0% 0%;
  }
}

/* ── Magnetic button effect ─────────────────────────────────────── */
.btn--magnetic {
  transition: all var(--dur-base) var(--ease-spring);
}

/* ── Counter number glow on complete ────────────────────────────── */
.metric-card__number.counted {
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.25),
    0 0 80px rgba(201, 168, 76, 0.1);
  transition: text-shadow 0.6s var(--ease-out);
}

/* ── Ambient section glow (scroll-linked) ─────────────────────── */
.section-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
  filter: blur(80px);
}

.section-glow--gold {
  background: rgba(201, 168, 76, 0.08);
}

.section-glow--purple {
  background: rgba(124, 92, 191, 0.08);
}

.section-glow.in-view {
  opacity: 1;
}

/* ── Split-letter animation container ──────────────────────────── */
.letter-wrap {
  display: inline-block;
  overflow: hidden;
}

.letter-wrap .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotateX(-80deg);
  animation: letterDrop 0.6s var(--ease-out) forwards;
}

@keyframes letterDrop {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

/* ── Case study image hover zoom + glow ────────────────────────── */
.case-study__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.case-study__panel:hover::before {
  opacity: 1;
}

/* ── Testimonial quote reveal line ─────────────────────────────── */
.testimonial__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--gradient-signature);
  transition: height 1.2s var(--ease-out) 0.3s;
}

.testimonial__content {
  position: relative;
  padding-left: var(--space-6);
}

.reveal.in-view .testimonial__content::before {
  height: 100%;
}

/* RTL: flip testimonial line to right side */
html[dir="rtl"] .testimonial__content::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .testimonial__content {
  padding-left: 0;
  padding-right: var(--space-6);
}

/* ── Footer link stagger ────────────────────────────────────────── */
.footer__link {
  opacity: 0;
  transform: translateY(10px);
  transition: color var(--dur-fast),
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}

.footer.in-view .footer__link {
  opacity: 1;
  transform: translateY(0);
}

.footer.in-view .footer__link:nth-child(1) {
  transition-delay: 0.1s;
}

.footer.in-view .footer__link:nth-child(2) {
  transition-delay: 0.15s;
}

.footer.in-view .footer__link:nth-child(3) {
  transition-delay: 0.2s;
}

.footer.in-view .footer__link:nth-child(4) {
  transition-delay: 0.25s;
}

.footer.in-view .footer__link:nth-child(5) {
  transition-delay: 0.3s;
}

.footer.in-view .footer__link:nth-child(6) {
  transition-delay: 0.35s;
}

/* ── CTA pulsing glow ──────────────────────────────────────────── */
.final-cta .btn--primary {
  animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(124, 92, 191, 0.2), 0 0 60px rgba(124, 92, 191, 0.05);
  }

  50% {
    box-shadow: 0 0 30px rgba(124, 92, 191, 0.35), 0 0 80px rgba(124, 92, 191, 0.1);
  }
}

/* ── METRICS SECTION ────────────────────────────────────────────── */
.metrics {
  padding: var(--space-10) 0 var(--space-9);
  position: relative;
  overflow: hidden;
}

.metrics::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: var(--gradient-glow);
  pointer-events: none;
}

.metrics__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.metrics__header .section-tag {
  justify-content: center;
}

.metrics__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  color: var(--text-primary);
  max-width: 600px;
  margin: 0 auto;
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  position: relative;
  z-index: 1;
}

.metric-card {
  padding: var(--space-7) var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--gradient-signature);
  border-radius: 2px;
}

.metric-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-5);
  color: var(--text-tertiary);
}

.metric-card__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.metric-card__number {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: var(--accent-gold);
  margin-bottom: var(--space-3);
  font-variant-numeric: tabular-nums;
}

.metric-card__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* ── NARRATIVE SECTION ──────────────────────────────────────────── */
.narrative {
  padding: var(--space-10) 0 calc(var(--space-10) + var(--space-4));
  position: relative;
  overflow: hidden;
}
.narrative__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.narrative__bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: orbPulse 8s ease-in-out infinite alternate;
}
.narrative__bg-orb--1 {
  width: 700px; height: 700px;
  top: -10%; right: -15%;
  background: radial-gradient(circle, rgba(124,92,191,0.12) 0%, transparent 65%);
  opacity: 0.5;
}
.narrative__bg-orb--2 {
  width: 500px; height: 500px;
  bottom: 5%; left: -10%;
  background: radial-gradient(circle, rgba(201,168,76,0.09) 0%, transparent 65%);
  opacity: 0.4;
  animation-delay: 3s;
}
@keyframes orbPulse {
  from { transform: scale(1);    opacity: 0.4; }
  to   { transform: scale(1.12); opacity: 0.9; }
}
.narrative__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.narrative__wrap { position: relative; z-index: 1; }

/* Header */
.narrative__header {
  text-align: center;
  margin-bottom: var(--space-8);
}
.narrative__header .section-tag { justify-content: center; }
.narrative__super-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin-top: var(--space-4);
  max-width: 700px;
  margin-inline: auto;
}

/* Tabs */
.narrative__tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.narrative__tab {
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--surface-glass);
  border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.3s var(--ease-out);
  min-height: 46px;
  display: inline-flex;
  align-items: center;
}
.narrative__tab:hover {
  color: var(--text-primary);
  border-color: rgba(201,168,76,0.3);
  background: var(--surface-glass-hover);
}
.narrative__tab.active {
  color: var(--text-primary);
  border-color: var(--accent-gold);
  background: rgba(201,168,76,0.08);
  box-shadow: 0 0 24px rgba(201,168,76,0.18), inset 0 0 20px rgba(201,168,76,0.06);
}
.narrative__tab:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

/* Panels */
.narrative__panel { display: none; }
.narrative__panel.active {
  display: block;
  animation: panelFadeIn 0.45s var(--ease-out) forwards;
}
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.narrative__panel-inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-7);
  align-items: start;
  background: var(--surface-glass);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  padding: var(--space-8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}
.narrative__panel-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 2px;
  background: var(--gradient-signature);
  border-radius: 2px;
  opacity: 0.55;
}
.narrative__panel-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.15);
  flex-shrink: 0;
  margin-top: var(--space-1);
  color: var(--accent-gold);
}
.narrative__panel-icon svg { width: 30px; height: 30px; }
.narrative__panel-body {
  display: flex; flex-direction: column; gap: var(--space-4);
}
.narrative__panel-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  background: var(--gradient-signature);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.narrative__panel-lead {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-primary);
}
.narrative__panel-text {
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.85;
}
.narrative__panel-text--accent {
  color: var(--accent-gold-light);
  font-style: italic;
  border-left: 2px solid rgba(201,168,76,0.4);
  padding-left: var(--space-4);
}
html[dir="rtl"] .narrative__panel-text--accent {
  border-left: none;
  border-right: 2px solid rgba(201,168,76,0.4);
  padding-left: 0;
  padding-right: var(--space-4);
}
.narrative__panel-divider {
  width: 48px; height: 2px;
  background: var(--gradient-signature);
  border-radius: 2px;
}

/* Pillars */
.narrative__why-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-2);
}
.narrative__pillar {
  display: flex; flex-direction: column;
  align-items: center; gap: var(--space-3);
  padding: var(--space-5) var(--space-4);
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s var(--ease-out);
}
.narrative__pillar:hover {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
}
.narrative__pillar-icon {
  font-size: 1.25rem;
  color: var(--accent-gold);
  line-height: 1;
}
.narrative__pillar-label {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .narrative__panel-inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-6);
    border-radius: 20px;
  }
  .narrative__panel-icon { width: 52px; height: 52px; }
  .narrative__why-pillars { grid-template-columns: repeat(2, 1fr); }
  .narrative__tab { padding: 10px 20px; font-size: 0.75rem; }
}
@media (max-width: 560px) {
  .narrative__tabs { gap: var(--space-2); }
  .narrative__why-pillars { grid-template-columns: 1fr 1fr; }
}

/* ── SERVICES SECTION ───────────────────────────────────────────── */
.services {
  padding: var(--space-9) 0 var(--space-10);
  position: relative;
}

.services__header {
  text-align: center;
  margin-bottom: var(--space-9);
}

.services__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  color: var(--text-primary);
  max-width: 500px;
  margin: 0 auto;
  margin-top: var(--space-4);
}

.services__subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: var(--space-4) auto 0;
}

/* Intro paragraph */
.services__intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 800px;
  margin: var(--space-5) auto 0;
  line-height: 1.8;
}

/* Grid layout */
.services__grid {
  position: relative;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.service-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: default;
}

.service-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card__media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}

.service-card__media-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.service-card__content {
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent-gold);
}
.service-card__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.service-card__title {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── METHODOLOGY SECTION ───────────────────────────────────────── */
.methodology {
  padding: var(--space-10) 0;
  position: relative;
}

.methodology__interactive {
  max-width: 900px;
  margin: var(--space-8) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* Timeline */
.methodology__progress-container {
  position: relative;
  padding: var(--space-4) 0;
}

.methodology__progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  border-radius: 2px;
}

.methodology__progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--gradient-signature);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
}

html[dir="rtl"] .methodology__progress-fill {
  left: auto;
  right: 0;
}

.methodology__nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.methodology__node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-base);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.methodology__node:hover {
  border-color: rgba(201, 168, 76, 0.5);
  color: var(--text-primary);
}

.methodology__node.active {
  background: var(--surface-glass);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

/* Showcase */
.methodology__showcase {
  position: relative;
  padding: var(--space-8);
  border-radius: 24px;
  min-height: 300px;
  display: grid;
  overflow: hidden;
}

.methodology__panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.98);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.methodology__panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: 0.1s;
}

.methodology__step-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.methodology__step-title::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--gradient-signature);
}

html[dir="rtl"] .methodology__step-title {
  font-family: 'Noto Kufi Arabic', 'Syne', sans-serif;
}

/* List styling */
.methodology__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0;
  list-style: none;
}

.methodology__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.methodology__list li::before {
  content: '✦';
  color: var(--accent-gold);
  font-size: 0.8rem;
  margin-top: 4px;
}

html[dir="rtl"] .methodology__list li::before {
  content: '✦';
}

/* Mobile responsive */
@media (max-width: 768px) {
  .methodology__nodes {
    overflow-x: auto;
    padding-bottom: var(--space-3);
    gap: var(--space-6);
  }
  .methodology__progress-line {
    display: none;
  }
  .methodology__showcase {
    padding: var(--space-5);
    min-height: 420px;
  }
}

/* ── CASE STUDIES SECTION ───────────────────────────────────────── */
.cases {
  padding: var(--space-9) 0 var(--space-10);
  position: relative;
}

.cases__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.cases__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  color: var(--text-primary);
  max-width: 600px;
  margin: var(--space-4) auto 0;
}

/* Tabs */
.cases__tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.case-tab {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--surface-glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--dur-base) var(--ease-out);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.case-tab:hover,
.case-tab.active {
  color: var(--text-primary);
  background: var(--surface-glass-hover);
  border-color: var(--accent-gold);
}

.case-tab:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

/* Case study card */
.case-study {
  display: none;
}

.case-study.active {
  display: block;
}

.case-study__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.case-study__panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.case-study__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.case-study__panel:hover img {
  transform: scale(1.03);
}

.case-study__panel-label {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Case study info bar */
.case-study__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  border-radius: 16px;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.case-study__name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.case-study__badges {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.case-study__badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-gold-light);
}

.case-study__badge-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ── TESTIMONIAL SECTION ────────────────────────────────────────── */
.testimonial {
  padding: var(--space-10) 0;
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.testimonial__inner {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: var(--space-8);
  align-items: center;
  position: relative;
  z-index: 1;
}

.testimonial__portrait {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}

.testimonial__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(5, 5, 8, 0.4) 100%);
}

.testimonial__content {
  padding: var(--space-6);
}

.testimonial__quote-mark {
  font-family: 'Syne', sans-serif;
  font-size: 6rem;
  line-height: 0.5;
  color: var(--accent-gold);
  opacity: 0.3;
  display: block;
  margin-bottom: var(--space-5);
}

.testimonial__quote {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.testimonial__author-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent-gold);
}

.testimonial__author-role {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ── Testimonial Draggable Carousel ──────────────────────────── */
.testi-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding: var(--space-4) 0;
  margin: var(--space-4) calc(-1 * var(--space-4));
  padding-inline: var(--space-4);
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.testi-carousel::-webkit-scrollbar {
  display: none;
}

.testi-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.testi-carousel__track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
  align-items: stretch;
}

.testi-card {
  min-width: 480px;
  max-width: 560px;
  padding: var(--space-7) var(--space-6);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  flex-shrink: 0;
  scroll-snap-align: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.testi-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testi-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201, 168, 76, 0.25);
  flex-shrink: 0;
}

.testi-card__avatar--empty {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.testi-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testi-card__name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.testi-card__role {
  font-size: 0.875rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.testi-card__quote {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  position: relative;
}

.testi-card__quote-mark {
  color: var(--accent-gold);
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  line-height: 1;
  vertical-align: text-top;
  margin-right: 0.15rem;
  opacity: 0.6;
}

.testi-carousel__hint {
  text-align: center;
  margin-top: var(--space-4);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  animation: hintPulse 2.5s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@media (max-width: 768px) {
  .testi-card {
    min-width: 320px;
    max-width: 85vw;
    padding: var(--space-5) var(--space-4);
  }

  .testi-card__avatar {
    width: 56px;
    height: 56px;
  }

  .testi-card__name {
    font-size: 1.1rem;
  }

  .testi-card__quote {
    font-size: 1rem;
  }
}

/* ── FINAL CTA SECTION ──────────────────────────────────────────── */
.final-cta {
  padding: var(--space-10) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124, 92, 191, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta__heading {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto var(--space-5);
  position: relative;
  z-index: 1;
}

.final-cta__sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--space-7);
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.final-cta .btn {
  position: relative;
  z-index: 1;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
.footer {
  padding: var(--space-8) 0 var(--space-6);
  background: var(--surface-void);
  position: relative;
}

.footer__divider {
  width: 100%;
  height: 1px;
  background: var(--gradient-gold-line);
  margin-bottom: var(--space-8);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}

.footer__divider.in-view {
  opacity: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-8);
}

.footer__brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.footer__brand-desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.65;
  max-width: 280px;
}

.footer__col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  padding: var(--space-1) 0;
}

.footer__link:hover {
  color: var(--accent-gold);
}

.footer__link:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer__socials {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.footer__social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  transition: all var(--dur-fast);
}

.footer__social:hover {
  color: var(--accent-gold);
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.08);
}

.footer__social:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto !important;
  }

  .cursor,
  .cursor-glow,
  .particles-canvas {
    display: none !important;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .metrics__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .case-study__split {
    grid-template-columns: 1fr;
  }

  .case-study__panel {
    aspect-ratio: 16 / 9;
  }

  .testimonial__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonial__portrait {
    max-width: 300px;
    margin: 0 auto;
    aspect-ratio: 1;
    border-radius: 50%;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

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

  .case-study__badges {
    flex-direction: column;
  }

  .case-study__info {
    flex-direction: column;
    align-items: flex-start;
  }

  .cases__tabs {
    gap: var(--space-2);
  }

  .case-tab {
    padding: 8px 16px;
    font-size: 0.6875rem;
  }
}

/* Reduced motion forcefully ignored by user request */

/* ═══════════════════════════════════════════════════════════════
   RTL / ARABIC SUPPORT
   ═══════════════════════════════════════════════════════════════ */

html[dir="rtl"] body {
  font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

/* Arabic headings */
html[dir="rtl"] .hero__logo,
html[dir="rtl"] .metrics__title,
html[dir="rtl"] .services__title,
html[dir="rtl"] .cases__title,
html[dir="rtl"] .testimonial__quote,
html[dir="rtl"] .final-cta__heading,
html[dir="rtl"] .service-card__title,
html[dir="rtl"] .case-study__name,
html[dir="rtl"] .footer__brand-name,
html[dir="rtl"] .nav__logo {
  font-family: 'Noto Kufi Arabic', 'Syne', sans-serif;
}

/* Arabic body/label text */
html[dir="rtl"] .btn,
html[dir="rtl"] .nav__link,
html[dir="rtl"] .section-tag,
html[dir="rtl"] .label-text,
html[dir="rtl"] .metric-card__label,
html[dir="rtl"] .service-card__desc,
html[dir="rtl"] .hero__tagline,
html[dir="rtl"] .services__intro,
html[dir="rtl"] .services__subtitle,
html[dir="rtl"] .footer__brand-desc,
html[dir="rtl"] .footer__col-title,
html[dir="rtl"] .footer__link,
html[dir="rtl"] .footer__bottom,
html[dir="rtl"] .case-study__panel-label,
html[dir="rtl"] .case-study__badge-label,
html[dir="rtl"] .case-tab,
html[dir="rtl"] .testimonial__author-name,
html[dir="rtl"] .testimonial__author-role,
html[dir="rtl"] .final-cta__sub,
html[dir="rtl"] .lang-toggle__btn {
  font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

/* Reduce letter-spacing for Arabic (Arabic script doesn't use tracking) */
html[dir="rtl"] .nav__link,
html[dir="rtl"] .section-tag,
html[dir="rtl"] .label-text,
html[dir="rtl"] .metric-card__label,
html[dir="rtl"] .hero__tagline,
html[dir="rtl"] .btn,
html[dir="rtl"] .case-tab,
html[dir="rtl"] .case-study__panel-label,
html[dir="rtl"] .case-study__badge-label,
html[dir="rtl"] .footer__col-title,
html[dir="rtl"] .nav__logo,
html[dir="rtl"] .footer__brand-name {
  letter-spacing: 0.02em;
}

/* Flip section-tag decorator line */
html[dir="rtl"] .section-tag::before {
  order: 1;
}

/* Flip arrow icons */
html[dir="rtl"] .btn__arrow {
  transform: scaleX(-1);
}

html[dir="rtl"] .btn:hover .btn__arrow {
  transform: scaleX(-1) translateX(4px);
}

/* Nav underline from right */
html[dir="rtl"] .nav__link::after {
  left: auto;
  right: 0;
}

/* Case study panel label position */
html[dir="rtl"] .case-study__panel-label {
  left: auto;
  right: var(--space-5);
}

/* Mobile nav close button */
html[dir="rtl"] .nav__mobile-close {
  right: auto;
  left: var(--space-5);
}

/* Language toggle margin direction */
html[dir="rtl"] .lang-toggle {
  margin-left: 0;
  margin-right: var(--space-3);
}

/* Footer alignment */
html[dir="rtl"] .footer__brand-desc {
  max-width: 320px;
}

/* Case info alignment on mobile */
@media (max-width: 480px) {
  html[dir="rtl"] .case-study__info {
    align-items: flex-end;
  }
}

/* Slightly bigger body text for Arabic readability */
html[dir="rtl"] .service-card__desc,
html[dir="rtl"] .services__intro,
html[dir="rtl"] .services__subtitle,
html[dir="rtl"] .footer__brand-desc,
html[dir="rtl"] .final-cta__sub {
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* ── Partners Section ──────────────── */
.partners {
  padding-block: var(--space-8);
  overflow: hidden;
  position: relative;
}

.partners__header {
  margin-bottom: var(--space-6);
}

.partners__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.partners__marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  direction: ltr; /* Force LTR on container to anchor track to the left edge in RTL */
  /* subtle mask gradient to fade edges */
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.partners__marquee-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  /* force LTR flow for marquee scroll regardless of language */
  direction: ltr;
  width: max-content;
  animation: marquee 30s linear infinite;
  padding-block: var(--space-2);
  will-change: transform;
  contain: layout style;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.marquee-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4rem;
  padding-right: 4rem; /* match the gap to ensure exact 50% width loop */
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.partner-logo {
  height: 48px;
  width: auto;
  fill: var(--text-primary);
  color: var(--text-primary);
  transition: all var(--ease-out) 0.3s;
}

.partner-logo-img {
  opacity: 0.5;
  transition: opacity 0.3s var(--ease-out);
  will-change: opacity;
  contain: layout style;
}

.partner-logo-img:hover {
  opacity: 1;
}

.partner-logo .brand-shape {
  transition: fill var(--ease-out) 0.3s;
}

.partner-logo:hover {
  color: var(--text-primary);
}

.partner-logo:hover .brand-shape {
  fill: var(--brand);
}

/* ── Logo filter application ───────────────────────────────────── */
[data-logo-img] {
  filter: var(--logo-filter);
  transition: filter 0.4s var(--ease-out);
}

/* ═══════════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
   ═══════════════════════════════════════════════════════════════ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  margin-left: var(--space-2);
  transition: all var(--dur-base) var(--ease-out);
  color: var(--text-secondary);
}

.theme-toggle:hover {
  background: var(--surface-glass-hover);
  color: var(--accent-gold);
  border-color: rgba(201, 168, 76, 0.3);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease-spring);
}

.theme-toggle:hover svg {
  transform: rotate(30deg);
}

/* Sun icon hidden in dark mode, moon icon hidden in light mode */
.theme-toggle__sun {
  display: none;
}

.theme-toggle__moon {
  display: block;
}

[data-theme="light"] .theme-toggle__sun {
  display: block;
}

[data-theme="light"] .theme-toggle__moon {
  display: none;
}

/* RTL: flip margin direction */
html[dir="rtl"] .theme-toggle {
  margin-left: 0;
  margin-right: var(--space-2);
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE — COMPONENT OVERRIDES
   (for hardcoded rgba values that don't use CSS variables)
   ═══════════════════════════════════════════════════════════════ */

/* Nav */
[data-theme="light"] .glass--nav {
  background: rgba(250, 248, 245, 0.60);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nav.scrolled {
  background: rgba(250, 248, 245, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Glass cards */
[data-theme="light"] .glass--card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .glass--card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.10);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .glass {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Service card icon */
[data-theme="light"] .service-card__icon {
  background: rgba(168, 135, 46, 0.08);
}

/* Service card border glow */
[data-theme="light"] .service-card.glass--card::after {
  background: linear-gradient(135deg,
      transparent 40%,
      rgba(168, 135, 46, 0.10) 50%,
      transparent 60%);
}

/* Metric cards */
[data-theme="light"] .metric-card {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .metric-card__number.counted {
  text-shadow: 0 0 40px rgba(168, 135, 46, 0.15),
    0 0 80px rgba(168, 135, 46, 0.05);
}

/* Hero scrim */
[data-theme="light"] .hero__scrim {
  background: var(--scrim-hero);
}

[data-theme="light"] .hero__grain {
  opacity: 0.015;
}

/* Case study panel label */
[data-theme="light"] .case-study__panel-label {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
}

/* Case study badges */
[data-theme="light"] .case-study__badge {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Case study panel hover overlay */
[data-theme="light"] .case-study__panel::before {
  background: linear-gradient(135deg, rgba(168, 135, 46, 0.04) 0%, transparent 50%);
}

/* Case tabs */
[data-theme="light"] .case-tab {
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
}

[data-theme="light"] .case-tab.active {
  background: rgba(168, 135, 46, 0.10);
  border-color: rgba(168, 135, 46, 0.25);
  color: var(--accent-gold);
}

/* Testimonial glow */
[data-theme="light"] .testimonial::before {
  background: radial-gradient(ellipse, rgba(168, 135, 46, 0.04) 0%, transparent 70%);
}

/* CTA glow */
[data-theme="light"] .final-cta::before {
  background: radial-gradient(ellipse, rgba(106, 79, 168, 0.05) 0%, transparent 60%);
}

[data-theme="light"] .final-cta .btn--primary {
  animation: ctaPulseLight 3s ease-in-out infinite;
}

@keyframes ctaPulseLight {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(106, 79, 168, 0.12), 0 0 60px rgba(106, 79, 168, 0.03);
  }

  50% {
    box-shadow: 0 0 30px rgba(106, 79, 168, 0.20), 0 0 80px rgba(106, 79, 168, 0.06);
  }
}

/* Section glows — more subtle in light */
[data-theme="light"] .section-glow--gold {
  background: rgba(168, 135, 46, 0.04);
}

[data-theme="light"] .section-glow--purple {
  background: rgba(106, 79, 168, 0.04);
}

/* Footer */
[data-theme="light"] .footer {
  background: #eae7e1;
}

[data-theme="light"] .footer__social {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer__social:hover {
  border-color: rgba(168, 135, 46, 0.3);
  background: rgba(168, 135, 46, 0.06);
}

[data-theme="light"] .footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Partners */
[data-theme="light"] .partner-logo {
  color: var(--text-primary);
  fill: var(--text-primary);
}

[data-theme="light"] .partner-logo:hover {
  color: var(--text-primary);
}

/* Lang toggle */
[data-theme="light"] .lang-toggle {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .lang-toggle__btn.active {
  background: rgba(168, 135, 46, 0.12);
}

/* Button glass */
[data-theme="light"] .btn--glass {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.10);
  color: var(--text-primary);
}

[data-theme="light"] .btn--glass:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(168, 135, 46, 0.3);
}

/* Primary button */
[data-theme="light"] .btn--primary {
  background: var(--gradient-signature);
  color: #ffffff;
}

/* Scroll progress */
[data-theme="light"] .scroll-progress {
  background: var(--gradient-signature);
}

/* Particles & cursor — hide in light mode for clean look */
[data-theme="light"] .particles-canvas {
  opacity: 0.15;
}

[data-theme="light"] .cursor {
  border-color: var(--accent-purple);
  mix-blend-mode: normal;
}

[data-theme="light"] .cursor--hover {
  border-color: var(--accent-purple-light);
  background: rgba(106, 79, 168, 0.06);
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(106, 79, 168, 0.03) 0%, transparent 70%);
}

/* Mobile nav overlay */
[data-theme="light"] .nav__mobile {
  background: rgba(250, 248, 245, 0.97);
}

[data-theme="light"] .nav__mobile-link {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* Smooth theme transition */
body,
.nav,
.glass--nav,
.glass--card,
.glass,
.footer,
.lang-toggle,
.btn--glass,
.btn--primary,
.case-tab,
.case-study__badge,
.case-study__panel-label,
.service-card__icon,
.footer__social,
.footer__bottom,
.cursor,
.theme-toggle {
  transition: background 0.4s var(--ease-out),
    color 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}