/* ===== Brands Wall fonts (Hive-style wordmark variety) ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500;600&family=Italiana&family=Manrope:wght@600;700&family=Playfair+Display:ital,wght@0,600;1,400&family=Sora:wght@400;500;600&family=Space+Grotesk:wght@400;500;600&display=swap');

/* ===== Reset & Variables ===== */
:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  /* Golden yellow: darker base for button contrast (WCAG), brighter hover */
  --color-accent: #c9a227;
  --color-accent-hover: #e6b800;
  --font-display: 'Manrope', -apple-system, sans-serif;
  --font-body: 'Figtree', -apple-system, sans-serif;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Fluid layout rhythm */
  --page-x: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4rem, 7vw, 6.5rem);
  --section-y-sm: clamp(3rem, 5vw, 4.5rem);
  --section-y-lg: clamp(5rem, 9vw, 7.5rem);
  --section-pad: var(--section-y) var(--page-x);
  --section-pad-sm: var(--section-y-sm) var(--page-x);
  --section-pad-lg: var(--section-y-lg) var(--page-x);

  --content-gap: clamp(1rem, 2vw, 1.5rem);
  --content-gap-lg: clamp(1.25rem, 2.5vw, 2rem);
  --stack-sm: var(--space-4);
  --stack-md: var(--space-6);
  --stack-lg: var(--space-10);
  --stack-xl: var(--space-16);
  --title-gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --title-gap-lg: clamp(1.25rem, 2.5vw, 2rem);

  /* Typography — fluid, readable scale */
  --text-xs: 0.8125rem;   /* 13px captions */
  --text-sm: 0.875rem;    /* 14px labels */
  --text-base: clamp(1rem, 0.2vw + 0.95rem, 1.0625rem);     /* 16–17px body */
  --text-md: clamp(1.0625rem, 0.35vw + 0.98rem, 1.125rem);  /* 17–18px lead */
  --text-lg: clamp(1.125rem, 0.45vw + 1.02rem, 1.25rem);   /* 18–20px */
  --text-xl: clamp(1.2rem, 0.6vw + 1.05rem, 1.375rem);     /* card titles */

  --heading-sm: clamp(1.375rem, 1.5vw + 1.1rem, 1.75rem);
  --heading-md: clamp(1.5rem, 2vw + 1.15rem, 2rem);
  --heading-lg: clamp(1.75rem, 2.5vw + 1.2rem, 2.375rem);
  --heading-xl: clamp(2.125rem, 3.5vw + 1.25rem, 3.25rem);
  --display-stat: clamp(2rem, 3.5vw + 1rem, 2.75rem);
  --text-label: clamp(0.8125rem, 0.15vw + 0.78rem, 0.875rem);

  --line-tight: 1.2;
  --line-snug: 1.4;
  --line-normal: 1.65;
  --line-relaxed: 1.75;

  /* Header logo (wordmark aspect 97:88) */
  --logo-height: clamp(38px, 3vw + 28px, 58px);
  --logo-ratio: 1.102;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: var(--line-normal);
  overflow-x: hidden;
  padding-bottom: var(--space-16);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Arabic: readable body + headings */
[dir="rtl"] body,
[dir="rtl"] .section-desc,
[dir="rtl"] .home-intro-eyebrow,
[dir="rtl"] .home-intro-card strong,
[dir="rtl"] .service-content p,
[dir="rtl"] .testimonial blockquote,
[dir="rtl"] .contact-form,
[dir="rtl"] .blog-post-body {
  font-family: 'Noto Kufi Arabic', var(--font-body);
}

[dir="rtl"] .hero-title,
[dir="rtl"] .home-intro-title,
[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle,
[dir="rtl"] .brands-wall-headline,
[dir="rtl"] .nav-links a,
[dir="rtl"] .service-content h3,
[dir="rtl"] .phase-header h3,
[dir="rtl"] .footer h3,
[dir="rtl"] .cta-btn {
  font-family: 'Noto Kufi Arabic', var(--font-display);
}

[dir="rtl"] body,
[dir="rtl"] .section-desc,
[dir="rtl"] .testimonial blockquote,
[dir="rtl"] .service-content p {
  line-height: 1.75;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  opacity: 0.85;
}

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

/* ===== Header & Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-3) var(--page-x);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition), border-color var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: 1400px;
  min-height: var(--logo-height);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo:hover {
  opacity: 1;
}

.logo picture,
.logo img {
  display: block;
  height: var(--logo-height);
  width: auto;
  max-width: min(calc(var(--logo-height) * var(--logo-ratio)), 12.5rem);
  aspect-ratio: 97 / 88;
  object-fit: contain;
  object-position: left center;
}

[dir="rtl"] .logo picture,
[dir="rtl"] .logo img {
  object-position: right center;
}

.nav-links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-sm);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(7rem, 12vw, 8.5rem) var(--page-x) clamp(3.5rem, 8vw, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-bg-svg:nth-child(1) { animation: float1 20s ease-in-out infinite; }
.hero-bg-svg:nth-child(2) { animation: float2 25s ease-in-out infinite; opacity: 0.3; }
.hero-bg-svg:nth-child(3) { animation: float3 18s ease-in-out infinite; opacity: 0.25; }
.hero-bg-svg:nth-child(4) { animation: float1 22s ease-in-out infinite reverse; opacity: 0.2; }

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, 2%) scale(1.02); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-1%, -1%) rotate(1deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(1%, -2%); }
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
}

.hero-tagline {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--stack-sm);
  line-height: var(--line-snug);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--heading-xl);
  font-weight: 700;
  line-height: var(--line-tight);
  margin-bottom: var(--title-gap);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: var(--line-relaxed);
  margin-bottom: var(--stack-lg);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.cta-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* ===== Performance: content-visibility for below-fold sections ===== */
.stats,
.partners,
.brands-wall-section,
.testimonials,
.services,
.footer {
  content-visibility: auto;
}

/* ===== Trust bar (visual density + social proof) ===== */
.trust-bar {
  padding: var(--space-4) var(--page-x);
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  font-size: var(--text-sm);
  line-height: var(--line-snug);
  color: var(--color-text-muted);
}

.trust-bar strong { color: var(--color-text); }

/* ===== Home intro — split + bento (2026) ===== */
.home-intro {
  padding: var(--section-pad-sm) var(--page-x);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(201, 162, 39, 0.07) 0%, transparent 55%),
    var(--color-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-intro-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.home-intro-copy {
  text-align: start;
}

[dir="rtl"] .home-intro {
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(201, 162, 39, 0.07) 0%, transparent 55%),
    var(--color-bg);
}

[dir="rtl"] .home-intro-shell {
  direction: rtl;
}

[dir="rtl"] .home-intro-copy {
  text-align: right;
}

[dir="rtl"] .home-intro-eyebrow {
  text-transform: none;
  letter-spacing: 0;
}

[dir="rtl"] .home-intro-title {
  letter-spacing: 0;
  line-height: 1.35;
}

[dir="rtl"] .home-intro-bento {
  direction: rtl;
}

[dir="rtl"] .home-intro-card {
  text-align: right;
  align-items: flex-end;
}

[dir="rtl"] .home-intro-card--wide {
  align-items: flex-start;
  text-align: right;
}

.home-intro-eyebrow {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.home-intro-title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3.2vw, 2.375rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.home-intro-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-relaxed);
  margin: 0;
}

.home-intro-tagline:is(:has(span)) {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.home-intro-tagline span {
  white-space: nowrap;
}

.home-intro-tagline span:not(:last-child)::after {
  content: '·';
  margin-inline-start: var(--space-4);
  opacity: 0.35;
}

.home-intro-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-intro-card {
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-height: 5.5rem;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.home-intro-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.home-intro-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.home-intro-card:hover::before {
  opacity: 1;
}

.home-intro-card--wide {
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  min-height: auto;
  padding: var(--space-4) var(--space-5);
  text-align: start;
}

.home-intro-card-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(201, 162, 39, 0.75);
}

.home-intro-card strong {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--line-snug);
  color: var(--color-text);
}

.home-intro-card-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--line-snug);
}

@media (max-width: 900px) {
  .home-intro-shell {
    grid-template-columns: 1fr;
    gap: var(--stack-lg);
  }

  .home-intro-copy {
    text-align: center;
  }

  [dir="rtl"] .home-intro-copy {
    text-align: center;
  }

  .home-intro-tagline {
    justify-content: center;
  }

}

@media (max-width: 520px) {
  .home-intro-bento {
    grid-template-columns: 1fr;
  }

  .home-intro-card--wide {
    grid-template-columns: auto 1fr;
  }
}

/* ===== Stats ===== */
.stats {
  padding: var(--section-pad-lg);
  background: var(--color-bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--content-gap-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: var(--space-6) var(--space-4);
}

.stat-number,
.stat-suffix {
  font-family: var(--font-display);
  font-size: var(--display-stat);
  font-weight: 700;
  display: inline;
  line-height: var(--line-tight);
}

.stat-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  line-height: var(--line-snug);
}

/* ===== Partners & Milestones ===== */
.partners {
  padding: var(--section-pad-lg);
}

.partners-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--heading-md);
  font-weight: 700;
  margin-bottom: var(--title-gap);
  line-height: var(--line-snug);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--text-md);
  line-height: var(--line-relaxed);
  color: var(--color-text-muted);
  margin-bottom: var(--stack-lg);
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--content-gap-lg);
  margin-bottom: var(--stack-lg);
}

.milestone {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.milestone-value {
  font-family: var(--font-display);
  font-size: var(--display-stat);
  font-weight: 700;
  display: block;
  line-height: var(--line-tight);
}

.milestone-label {
  font-size: var(--text-sm);
  line-height: var(--line-snug);
  color: var(--color-text-muted);
}

/* ===== Brands Wall — standalone typographic section (Hive-style) ===== */
.text-accent {
  color: var(--color-accent);
}

.brands-wall-section {
  padding: var(--section-pad);
  background: #050505;
  overflow: hidden;
}

.brands-wall-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* Modern reveal — headline: fade + slide + scale */
.brands-wall-section .reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(4px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 800ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brands-wall-section .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
}

.brands-wall-headline {
  font-family: var(--font-display);
  font-size: var(--heading-sm);
  font-weight: 600;
  line-height: var(--line-snug);
  text-align: center;
  max-width: 22em;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.95);
}

/* Wordmark cloud grid — 5 cols for wider cells, no mid-word breaks */
.brands-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  place-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
  perspective: 800px;
}

/* Brand items: typography driven by CSS variables (set by JS per preset) */
.brands-wall-item {
  --ff: 'DM Sans', -apple-system, sans-serif;
  --fw: 500;
  --fs: 1;
  --ls: 0.12em;
  --tt: uppercase;
  --op: 0.45;
  --style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff);
  font-weight: var(--fw);
  font-size: calc(clamp(1.0625rem, 1.5vw, 1.5rem) * var(--fs));
  letter-spacing: var(--ls);
  text-transform: var(--tt);
  font-style: var(--style);
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  white-space: normal;
  min-width: 0;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  text-align: center;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  line-height: 1.35;
  min-height: 2.5em;
  cursor: default;
}

.brands-wall-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .brands-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 2rem;
    padding: 0 1rem;
  }
  .brands-wall-item {
    font-size: calc(clamp(0.9375rem, 1.2vw, 1.125rem) * var(--fs, 1));
    padding: 0.5rem 0.5rem;
    min-height: 2.25em;
  }
}

@media (max-width: 600px) {
  .brands-wall-section {
    padding: var(--section-pad-sm);
  }
  .brands-wall-headline {
    margin-bottom: 0;
  }
  .brands-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .brands-wall-item {
    font-size: calc(0.9375rem * var(--fs, 1));
    padding: 0.5rem 0.4rem;
    min-height: 2.25em;
  }
}

/* Milestones section (below Brands Wall) */
.milestones-section {
  padding: var(--section-pad-lg);
}

.milestones-section .section-subtitle {
  font-size: var(--heading-sm);
  font-weight: 600;
  line-height: var(--line-snug);
  color: var(--color-text);
}

/* Legacy logo marquee (kept for about page if needed) */
.clients-logos-band {
  margin: 2rem 0;
  background: #000;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.clients-section-band {
  margin-inline: -1.5rem;
  padding-inline: 1.5rem;
}

.clients-logos-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 0;
}

.clients-marquee-row {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.clients-marquee-row:hover {
  animation-play-state: paused;
}

.clients-marquee-2 {
  animation-direction: reverse;
  animation-duration: 45s;
}

.clients-marquee-3 {
  animation-duration: 38s;
}

.clients-marquee-row .clients-marquee-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 0 2rem;
  flex-shrink: 0;
}

.clients-logos-band .client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 48px;
  flex-shrink: 0;
  transition: transform var(--transition), filter var(--transition);
}

.clients-logos-band .client-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.3);
  opacity: 0.8;
  transition: filter var(--transition), opacity var(--transition);
}

.clients-logos-band .client-logo:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

.clients-logos-band .client-logo:hover {
  transform: scale(1.08);
}

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

.clients-marquee-rtl {
  animation-name: marquee-rtl;
}

.clients-marquee-2.clients-marquee-rtl {
  animation-name: marquee-rtl;
}

.clients-marquee-2.clients-marquee-rtl {
  animation-direction: normal;
}

@keyframes marquee-rtl {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Legacy clients-section (about page) */
.clients-section {
  padding: var(--section-pad-lg);
  background: var(--color-bg-alt);
  text-align: center;
  overflow: hidden;
}

.clients-section.brands-wall-section {
  background: #080808;
}

.clients-marquee-wrapper {
  margin-top: 2rem;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.clients-marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.clients-marquee:hover {
  animation-play-state: paused;
}

.clients-marquee-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding: 0 2rem;
  flex-shrink: 0;
}

.client-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

.client-name:hover {
  color: rgba(255, 255, 255, 0.95);
  transform: scale(1.04);
}

/* ===== About ===== */
.about {
  padding: var(--section-pad);
  text-align: center;
}

.about .section-title {
  font-size: var(--heading-lg);
  margin-bottom: var(--title-gap);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.about .section-desc {
  font-size: var(--text-md);
  line-height: var(--line-relaxed);
  max-width: 600px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: var(--section-pad-lg);
  overflow: hidden;
}

.testimonials .section-title {
  text-align: center;
  margin-bottom: var(--title-gap-lg);
}

.testimonials-slider {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: var(--space-4);
  padding-inline: var(--page-x);
  margin-inline: calc(-1 * var(--page-x));
  -webkit-overflow-scrolling: touch;
}

.testimonials-slider::-webkit-scrollbar {
  height: 6px;
}

.testimonials-slider::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.testimonials-slider::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.testimonial-track {
  display: flex;
  gap: var(--content-gap-lg);
  padding: var(--space-2) 0;
  min-width: max-content;
}

.testimonial {
  flex: 0 0 min(340px, 85vw);
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.testimonial blockquote {
  font-size: var(--text-md);
  line-height: var(--line-relaxed);
  margin-bottom: var(--stack-lg);
  padding-inline-end: var(--space-12);
  font-style: italic;
}

.testimonial cite {
  font-style: normal;
  font-size: var(--text-sm);
  line-height: var(--line-snug);
  color: var(--color-text-muted);
}

.testimonial-avatar {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Services ===== */
.services {
  padding: var(--section-pad-lg);
  background: var(--color-bg-alt);
  text-align: center;
}

.services .section-title {
  font-size: var(--heading-md);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--title-gap);
}

.services .section-desc {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--text-md);
  line-height: var(--line-relaxed);
}

.section-desc {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--title-gap-lg);
  color: var(--color-text-muted);
  font-size: var(--text-md);
  line-height: var(--line-relaxed);
}

.services-eyebrow {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 auto var(--space-4);
  max-width: 1320px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--content-gap);
  max-width: 1320px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

/* Legacy: service-image for pages that still use it */
.service-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

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

.service-image--brand {
  background: var(--color-bg-alt);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image--brand .service-brand {
  --ff: 'DM Sans', -apple-system, sans-serif;
  --fw: 600;
  --fs: 1;
  --ls: 0.08em;
  --tt: uppercase;
  --op: 1;
  --style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff);
  font-weight: var(--fw);
  font-size: calc(clamp(1.5rem, 3.5vw, 2.25rem) * var(--fs));
  letter-spacing: var(--ls);
  text-transform: var(--tt);
  font-style: var(--style);
  color: #fff;
  padding: 1rem;
  text-align: center;
  line-height: 1.2;
}

.service-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  padding: var(--space-6);
  min-height: 240px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: auto 0 0;
  padding: var(--space-4) 0 0;
  list-style: none;
}

.service-tags li {
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.15);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: var(--stack-md);
  color: var(--color-accent);
}

.service-icon svg {
  flex-shrink: 0;
}

.service-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  line-height: var(--line-snug);
}

.service-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-relaxed);
  margin: 0 0 var(--space-3);
  flex: 1;
}

.service-content a {
  font-weight: 600;
  color: var(--color-accent);
}

/* ===== Process ===== */
.process {
  padding: var(--section-pad-lg);
  text-align: center;
}

.process .section-title {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-2);
}

.process .section-desc {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.process-phases {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap-lg);
  max-width: 1200px;
  margin: var(--title-gap-lg) auto 0;
}

.phase {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.phase-header {
  display: flex;
  align-items: flex-start;
  gap: var(--stack-md);
  padding: var(--space-8) var(--space-8) var(--space-4);
}

.phase-num {
  font-family: var(--font-display);
  font-size: var(--heading-sm);
  font-weight: 700;
  color: var(--color-accent);
  line-height: var(--line-tight);
  flex-shrink: 0;
}

.phase-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 0.15rem;
  line-height: var(--line-snug);
}

.phase-tag {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: var(--line-snug);
}

.phase-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--content-gap);
  padding: 0 var(--space-8) var(--space-8);
}

.phase-block {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition), border-color var(--transition);
}

.phase-block:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

.phase-block h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: var(--line-snug);
}

.phase-block p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-normal);
}

/* ===== Form ===== */
/* ===== Sticky CTA bar (conversion) ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: var(--space-3) var(--page-x);
  background: rgba(10, 10, 10, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--stack-md);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-text {
  font-size: var(--text-sm);
  line-height: var(--line-snug);
  color: var(--color-text-muted);
}

.sticky-cta .cta-btn {
  padding: 0.6rem 1.25rem;
  font-size: var(--text-sm);
}

/* ===== Form trust strip ===== */
.form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--stack-lg);
  flex-wrap: wrap;
  padding: var(--space-4) 0;
  margin-bottom: var(--stack-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
  line-height: var(--line-snug);
  color: var(--color-text-muted);
}

.form-trust span { display: flex; align-items: center; gap: 0.4rem; }

.form-section {
  padding: var(--section-pad-lg);
  background: var(--color-bg-alt);
}

/* Form section with light team background */
.form-section--bg {
  position: relative;
  overflow: hidden;
}

/* Light team photo as section background – set via inline style on section */
.form-section--bg {
  background-color: var(--color-bg-alt);
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.form-section--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

.form-section--bg .form-container {
  position: relative;
  z-index: 1;
}

.form-container {
  max-width: 640px;
  margin: 0 auto;
}

.form-container .section-desc {
  margin-bottom: var(--stack-md);
}

.form-cta-line {
  display: inline-block;
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: 0.5rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--content-gap);
  margin-top: var(--stack-md);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-row.full {
  grid-column: 1 / -1;
}

.contact-form label {
  font-size: var(--text-sm);
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: var(--space-4) var(--space-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--text-base);
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-form .cta-btn {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

/* ===== Newsletter ===== */
.newsletter {
  padding: var(--section-pad-sm);
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin: var(--stack-lg) auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--text-base);
}

.newsletter-form input::placeholder {
  color: var(--color-text-muted);
}

.newsletter-form button {
  padding: 1rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}

/* ===== Footer ===== */
.footer {
  padding: var(--section-y) var(--page-x) var(--space-8);
  background: var(--color-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--stack-xl);
  margin-bottom: var(--stack-xl);
}

.footer h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--stack-md);
  color: var(--color-text-muted);
}

.footer-contact a {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-contact address {
  font-style: normal;
  font-size: var(--text-sm);
  line-height: var(--line-normal);
  color: var(--color-text-muted);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}

/* ===== Blog ===== */
.blog-hero {
  min-height: 40vh;
  padding: clamp(6.5rem, 14vw, 9rem) var(--page-x) var(--section-y-sm);
}

.blog-listing {
  padding: var(--section-pad-sm);
  max-width: 1200px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--content-gap-lg);
}

.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), border-color var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: var(--space-8);
}

.blog-meta {
  font-size: var(--text-xs);
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.blog-card-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: var(--line-snug);
  margin-bottom: 0.75rem;
}

.blog-card-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-normal);
}

/* Blog post single */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(6.5rem, 14vw, 9rem) var(--page-x) var(--section-y);
}

.breadcrumb {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.blog-post-header {
  margin-bottom: 2.5rem;
}

.blog-post-header h1 {
  font-family: var(--font-display);
  font-size: var(--heading-lg);
  line-height: var(--line-tight);
  margin: 0.5rem 0 1rem;
}

.blog-lead {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: var(--line-relaxed);
}

.blog-post-body {
  font-size: var(--text-base);
  line-height: var(--line-relaxed);
}

.blog-post-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--line-snug);
  margin: 2rem 0 1rem;
}

.blog-post-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: var(--line-snug);
  margin: 1.5rem 0 0.75rem;
}

.blog-post-body p {
  margin-bottom: 1rem;
}

.blog-post-body ul,
.blog-post-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.blog-post-body li {
  margin-bottom: 0.5rem;
}

.blog-post-body a {
  color: var(--color-accent);
}

.blog-post-body a:hover {
  text-decoration: underline;
}

.blog-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-related h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: 1rem;
}

.blog-related ul {
  list-style: none;
}

.blog-related li {
  margin-bottom: 0.5rem;
}

.blog-related a {
  color: var(--color-accent);
}

/* ===== Page-specific (Services, About, Contact) ===== */
.page-hero {
  min-height: 60vh;
}

.service-link {
  text-decoration: none;
  color: inherit;
}

.service-link .service-cta {
  color: var(--color-accent);
  font-weight: 600;
}

.about-detail,
.partners-badges,
.values-section,
.cta-section {
  padding: var(--section-pad);
  max-width: 1000px;
  margin: 0 auto;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--content-gap-lg);
  margin-top: var(--title-gap-lg);
}

.badge-card {
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.badge-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}

.badge-type {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--content-gap-lg);
  margin-top: var(--title-gap-lg);
}

.value-card {
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.value-card h4 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: var(--text-base);
  line-height: var(--line-normal);
  color: var(--color-text-muted);
}

.cta-section {
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--stack-xl);
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--section-pad);
}

.contact-grid--bg {
  position: relative;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.contact-grid--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.6) 100%);
  pointer-events: none;
  z-index: 0;
}

.contact-grid--bg .contact-info,
.contact-grid--bg .contact-form-wrap {
  position: relative;
  z-index: 1;
}

.contact-info h2,
.contact-form-wrap h2 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
}

.contact-info address {
  font-style: normal;
  color: var(--color-text-muted);
  margin: 1rem 0;
}

.working-hours h3 {
  font-size: var(--text-sm);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  font-size: var(--text-sm);
  color: var(--color-accent);
}

/* Breadcrumb navigation (SEO + UX) */
.breadcrumb {
  padding: var(--space-sm) var(--page-x) 0;
  max-width: var(--content-max, 1200px);
  margin: 0 auto;
  width: 100%;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  opacity: 0.45;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb [aria-current='page'] {
  color: rgba(255, 255, 255, 0.9);
}

html[dir='rtl'] .breadcrumb li + li::before {
  margin-right: 0;
  margin-left: 0.5rem;
}

.social-links a.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.form-status {
  margin-top: 1rem;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.form-status.is-success {
  color: var(--color-accent);
}

.form-status.is-error {
  color: #f87171;
}

/* ===== Funnel pages ===== */
.funnel-hero {
  min-height: 55vh;
  padding: clamp(6rem, 12vw, 8rem) var(--page-x) var(--section-y-sm);
}

.funnel-hero .hero-title { font-size: var(--heading-lg); }
.funnel-hero .hero-subtitle { margin-bottom: var(--title-gap); }

.funnel-section {
  padding: var(--section-pad-sm);
  max-width: 900px;
  margin: 0 auto;
}

/* Funnel section with light team background */
.funnel-section--bg {
  position: relative;
  max-width: none;
  padding: var(--section-pad);
  overflow: hidden;
}

/* Light team photo as section background – set via inline style on section */
.funnel-section--bg {
  background-color: var(--color-bg-alt);
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.funnel-section--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.68) 0%, rgba(10, 10, 10, 0.52) 100%);
  pointer-events: none;
  z-index: 0;
}

.funnel-section--bg > * {
  position: relative;
  z-index: 1;
}

/* Team image block – contained, centered, matches site content width */
.team-section {
  padding: var(--section-pad-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.team-section .team-block,
.team-section .funnel-team-block {
  max-width: 100%;
}

.funnel-team-block,
.team-block {
  margin: 0 auto;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 1000px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Funnel pages: align with funnel-section width */
.team-section--funnel {
  max-width: 900px;
  padding: var(--section-pad-sm);
}

.funnel-team-block img,
.team-block img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.funnel-team-block .team-overlay,
.team-block .team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: var(--space-8) var(--space-6);
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, transparent 100%);
}

.funnel-team-block .team-overlay p,
.team-block .team-overlay p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  max-width: 100%;
  line-height: var(--line-normal);
}

.funnel-section .section-desc {
  margin-bottom: 1.25rem;
}

.funnel-steps {
  display: grid;
  gap: var(--content-gap);
  margin-top: var(--stack-lg);
}

.funnel-step {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent);
}

.funnel-step p {
  font-size: var(--text-base);
  line-height: var(--line-normal);
  margin: 0;
  color: var(--color-text-muted);
}

.funnel-step h4 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--content-gap-lg);
  margin-top: var(--stack-lg);
}

.pricing-card {
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-accent);
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: var(--heading-sm);
  font-weight: 700;
  line-height: var(--line-tight);
  color: var(--color-accent);
}

.pricing-card ul {
  list-style: none;
  margin-top: 1rem;
}

.pricing-card li {
  padding: 0.35rem 0;
  font-size: var(--text-sm);
  line-height: var(--line-normal);
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-list {
  margin-top: 1.5rem;
}

.faq-item {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
}

.faq-item h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: var(--line-snug);
}

.faq-item p {
  font-size: var(--text-sm);
  line-height: var(--line-normal);
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* ===== Animations (initial states for GSAP) ===== */
.anim-reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* Hero, trust bar, intro: always visible (no empty viewport) */
.hero .anim-reveal,
.trust-bar,
.trust-bar.anim-reveal,
.home-intro,
.home-intro * {
  opacity: 1;
  transform: none;
}

html.no-gsap .anim-reveal {
  opacity: 1;
  transform: none;
}

/* Team blocks always visible */
.funnel-team-block {
  opacity: 1;
  transform: none;
}

.anim-counter .stat-number,
.anim-counter .milestone-value {
  display: inline-block;
}

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

  .milestones-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .phase-blocks {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* Mobile nav open state */
.nav-links.open {
  display: flex !important;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: var(--stack-md);
  padding: var(--space-8);
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  :root {
    --logo-height: 58px;
  }

  .header {
    padding: var(--space-4) var(--page-x);
  }
}

@media (max-width: 768px) {
  :root {
    --logo-height: 42px;
  }

  .header {
    padding: var(--space-3) var(--page-x);
  }

  .logo picture,
  .logo img {
    max-width: min(calc(var(--logo-height) * var(--logo-ratio)), 10.5rem);
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section-desc {
    font-size: var(--text-base);
  }

  .trust-bar {
    font-size: var(--text-xs);
    gap: var(--space-4) var(--space-6);
    padding: var(--space-3) var(--page-x);
  }

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

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

  .hero {
    padding: clamp(5.5rem, 12vw, 7rem) var(--page-x) var(--section-y-sm);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--content-gap);
  }

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

  .testimonial {
    flex: 0 0 min(300px, 88vw);
    padding: var(--space-6);
  }

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

  .service-content {
    min-height: 0;
  }

  .phase-blocks {
    grid-template-columns: 1fr;
  }

  .phase-header,
  .phase-blocks {
    padding-inline: var(--space-6);
  }

  .phase-header {
    padding-block: var(--space-6) var(--space-4);
  }

  .phase-blocks {
    padding-bottom: var(--space-6);
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .clients-marquee-track {
    gap: var(--space-8);
  }

  .client-logo {
    width: 100px;
    height: 40px;
  }

  .client-logo img {
    max-height: 28px;
    max-width: 80px;
  }

  .team-section,
  .team-section--funnel {
    padding: var(--section-pad-sm);
  }

  .team-block .team-overlay,
  .funnel-team-block .team-overlay {
    padding: var(--space-6) var(--space-4);
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--stack-lg);
    margin-bottom: var(--stack-lg);
  }

  .footer {
    padding: var(--section-y-sm) var(--page-x) var(--space-6);
  }
}

@media (max-width: 480px) {
  :root {
    --logo-height: 36px;
  }

  .logo picture,
  .logo img {
    max-width: min(calc(var(--logo-height) * var(--logo-ratio)), 9.5rem);
  }
}

/* RTL spacing mirrors */
[dir="rtl"] .testimonial blockquote {
  padding-inline-end: 0;
  padding-inline-start: var(--space-12);
}

[dir="rtl"] .testimonial-avatar {
  right: auto;
  left: var(--space-6);
}

[dir="rtl"] .funnel-step {
  border-left: none;
  border-right: 4px solid var(--color-accent);
}

/* ===== Brands reveal — modern staggered cascade + hover ===== */
html.js .brands-wall-section .brand-item {
  --revealOpacity: 0;
  --revealY: 20px;
  --revealScale: 0.94;
  --revealBlur: 4px;
  opacity: var(--revealOpacity) !important;
  transform: translateY(var(--revealY)) scale(var(--revealScale));
  filter: blur(var(--revealBlur));
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
              filter 600ms cubic-bezier(0.22, 1, 0.36, 1),
              letter-spacing 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

html.js .brands-wall-section .brand-item.is-visible {
  --revealOpacity: var(--op, 0.45);
  --revealY: 0;
  --revealScale: 1;
  --revealBlur: 0;
}

html.js .brands-wall-section .brand-item:hover {
  opacity: 0.95 !important;
  transform: translateY(-3px) scale(1.04);
  letter-spacing: calc(var(--ls) + 0.05em) !important;
  transition-duration: 350ms;
}

@media (prefers-reduced-motion: reduce) {
  .brands-wall-section .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    will-change: auto;
  }
  html.js .brands-wall-section .brand-item {
    --revealOpacity: var(--op, 0.45);
    --revealY: 0;
    --revealScale: 1;
    --revealBlur: 0;
    transition: none;
    transition-delay: 0 !important;
    will-change: auto;
  }
  html.js .brands-wall-section .brand-item:hover {
    transform: scale(1.02);
  }
}
