:root {
  --purple: #683eff;
  --purple-deep: #4f2ae8;
  --purple-soft: #c9b8ff;
  --ink: #141416;
  --muted: #5d5d66;
  --charcoal: #3f3f3f;
  --cream: #f4f2ec;
  --paper: #fafaf7;
  --white: #ffffff;
  --black: #0b0b0c;
  --line: rgba(20, 20, 22, 0.08);
  --line-strong: rgba(20, 20, 22, 0.14);
  --shadow: 0 20px 50px rgba(11, 11, 12, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --pill: 999px;
  --nav-h: 84px;
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: auto;
  overflow-x: clip;
}

body {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: clip;
}

html.preloader-active,
html.preloader-active body {
  overflow: hidden;
  height: 100%;
}

html:not(.js) .circular-preloader-wrapper {
  display: none;
}

/* Circular preloader */
.circular-preloader-wrapper {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.circular-preloader-wrapper.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.circular-preloader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  background: var(--black);
  clip-path: inset(0 0 0% 0);
  animation: preloader-pulse 2.4s ease-in-out infinite;
}

.circular-preloader.is-ready {
  animation: none;
  opacity: 1;
  transition: clip-path 0.85s var(--ease);
}

.circular-preloader.done {
  clip-path: inset(0% 0% 100% 0%);
}

.circular-preloader::before {
  display: none;
}

.circular-preloader__inner,
.circular-preloader__wrapper,
.circular-preloader__ring,
.circular-preloader__text,
.preloader__text {
  display: none;
}

@keyframes preloader-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.42;
  }
}

@media (prefers-reduced-motion: reduce) {
  .circular-preloader {
    animation: none;
    opacity: 1;
  }
}

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

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

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

em {
  font-style: normal;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.container-wide {
  width: min(1360px, calc(100% - 32px));
  margin-inline: auto;
}

h1,
h2,
h3,
.display {
  font-family: Montserrat, Outfit, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.accent {
  color: var(--purple);
}

.accent-hero {
  color: var(--purple-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  border-radius: var(--pill);
  padding: 14px 22px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-yellow,
.btn-accent {
  background: var(--purple);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--purple-deep);
}

/* CTA hover — reusable white-fill hover for primary accent CTAs */
.btn-accent.cta-hover {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: var(--purple);
  color: var(--white);
  isolation: isolate;
  transition: color 0.35s ease, transform 0.35s var(--ease);
}

.btn-accent.cta-hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: inherit;
  z-index: 0;
  transition: width 0.35s ease;
}

.btn-accent.cta-hover .btn-label,
.btn-accent.cta-hover .arrow {
  position: relative;
  z-index: 1;
}

.btn-accent.cta-hover:hover {
  color: var(--black);
  background: var(--purple);
  box-shadow: none;
}

.btn-accent.cta-hover:hover::before {
  width: 100%;
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: #1c1c20;
}

.about-btn,
.btn-roll {
  overflow: hidden;
  isolation: isolate;
}

.btn-roll-label {
  display: grid;
  overflow: hidden;
  line-height: 1.15;
}

.btn-roll-label span {
  grid-area: 1 / 1;
  display: block;
  transition: transform 0.9s var(--ease);
}

.btn-roll-label span:last-child {
  transform: translateY(120%);
}

.about-btn:hover .btn-roll-label span:first-child,
.btn-roll:hover .btn-roll-label span:first-child {
  transform: translateY(-120%);
}

.about-btn:hover .btn-roll-label span:last-child,
.btn-roll:hover .btn-roll-label span:last-child {
  transform: translateY(0);
}

.about-btn,
.btn-dark.btn-roll {
  color: var(--white);
  background: var(--black);
  transition: background 0.85s var(--ease), color 0.85s var(--ease), transform 0.35s var(--ease);
}

.about-btn:hover,
.btn-dark.btn-roll:hover {
  background: var(--purple);
  color: var(--white);
  transform: none;
}

.about-btn:hover .arrow,
.btn-roll:hover .arrow {
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0;
  border-radius: 0;
}

.btn-ghost:hover {
  color: var(--purple);
}

.arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

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

.btn-accent {
  box-shadow: 0 0 0 0 rgba(104, 62, 255, 0.35);
}

.btn-accent:hover {
  box-shadow: 0 12px 28px rgba(104, 62, 255, 0.28);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height 0.45s var(--ease), padding 0.45s var(--ease);
}

.site-header.scrolled,
.site-header.solid {
  height: auto;
  padding-top: 14px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  gap: 16px;
  position: relative;
  transition: width 0.45s var(--ease), background 0.45s var(--ease), border-radius 0.45s var(--ease), padding 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.site-header.scrolled .nav-wrap,
.site-header.solid .nav-wrap {
  width: min(var(--max), calc(100% - 40px));
  background: rgba(18, 18, 20, 0.78);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--pill);
  padding: 8px 8px 8px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand img {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-family: Montserrat, Outfit, system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #d7cbff;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: var(--pill);
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.lang-switcher {
  position: relative;
  margin-left: 4px;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  border: 0;
  border-radius: var(--pill);
  background: none;
  cursor: pointer;
}

.lang-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.lang-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease;
}

.lang-switcher.is-open .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  min-width: 210px;
  padding: 8px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(11, 11, 12, 0.18);
  display: none;
}

.lang-switcher.is-open .lang-menu {
  display: grid;
  gap: 2px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #3a3a40;
  font: 600 13px/1 Outfit, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
}

.lang-option[data-lang="en"] {
  text-transform: uppercase;
}

.lang-option[data-lang="ar"] {
  font-weight: 700;
  letter-spacing: 0;
}

.lang-option:hover {
  background: rgba(20, 20, 22, 0.06);
}

.lang-option .lang-flag {
  width: 28px;
  height: 20px;
  border-radius: 4px;
}

.lang-check {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #22c55e;
  opacity: 0;
}

.lang-option.is-active .lang-check {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: 0.25s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: end start;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% 50%;
  display: block;
  pointer-events: none;
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: #000;
  opacity: 0.4;
  display: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 11, 12, 0.55) 0%, rgba(11, 11, 12, 0.18) 42%, transparent 70%),
    linear-gradient(180deg, rgba(11, 11, 12, 0.18) 0%, transparent 30%, rgba(11, 11, 12, 0.35) 100%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
}

.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  opacity: 0;
  animation: fadeup 0.8s var(--ease) 0.15s forwards;
}

.hero-proof i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-soft);
  box-shadow: 0 0 0 6px rgba(201, 184, 255, 0.18);
}

.hero h1 {
  font-size: clamp(32px, 6.4vw, 65px);
  margin-bottom: 22px;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line-inner {
  display: block;
}

html.js .hero h1[letters-slide-up]:not(.is-split) .line-inner {
  transform: translateY(100%);
}

html:not(.preloader-done) .hero-media img,
html:not(.preloader-done) .hero-proof,
html:not(.preloader-done) .hero-lead,
html:not(.preloader-done) .hero-cta,
html:not(.preloader-done) .hero h1 .char {
  animation: none !important;
}

html:not(.preloader-done) .hero h1 .char {
  transform: translateY(100%);
}

html:not(.preloader-done) .hero-proof,
html:not(.preloader-done) .hero-lead,
html:not(.preloader-done) .hero-cta {
  opacity: 0;
}

.hero h1 .char {
  display: inline-block;
  transform: translateY(100%);
  animation: letters-slide-up 0.55s ease-out forwards;
}

.hero-lead,
.hero-cta {
  opacity: 0;
  animation: fadeup 0.85s var(--ease) forwards;
}

.hero-lead {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
  font-size: 1rem;
  animation-delay: 1.35s;
}

.hero-cta {
  animation-delay: 1.6s;
}

/* Intro */
.section {
  padding: 108px 0;
}

.section-cream {
  background: var(--cream);
}

.section-paper {
  background: var(--paper);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split h2,
.section h2 {
  font-size: clamp(32px, 4vw, 56px);
  margin-bottom: 18px;
}

.media-card {
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
}

.media-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.stats strong {
  display: block;
  font-family: Montserrat, Outfit, system-ui, sans-serif;
  font-size: clamp(32px, 3vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin-bottom: 0;
  max-width: 16ch;
}

/* Services carousel — pin the track only, not the section heading */
.services-pin {
  --card-active-w: 720px;
  --card-active-h: 472px;
  --card-inactive-w: 396px;
  --card-inactive-h: 300px;
  --card-gap: 22px;
  --pin-top: 96px;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: calc(var(--card-active-h) + 32px);
  touch-action: pan-y;
}

.services-sticky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  height: calc(var(--card-active-h) + 32px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-width: 0;
}

.services-pin.is-pinned .services-sticky {
  position: fixed;
  top: var(--pin-top);
  bottom: auto;
}

.services-pin.is-ended .services-sticky {
  position: absolute;
  top: auto;
  bottom: 0;
}

.services-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  contain: inline-size;
}

.services-track,
.home-service-cards-block {
  display: flex;
  align-items: flex-end;
  gap: var(--card-gap);
  width: max-content;
  height: var(--card-active-h);
  will-change: transform;
}

.service-card {
  --card-w: var(--card-inactive-w);
  --card-h: var(--card-inactive-h);
  --card-focus: 0;
  position: relative;
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  height: var(--card-h);
  border-radius: 28px;
  overflow: hidden;
  background: #1a1a1c;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.service-card.is-active {
  --card-w: var(--card-active-w);
  --card-h: var(--card-active-h);
  --card-focus: 1;
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: calc(24px + 24px * var(--card-focus)) calc(20px + 8px * var(--card-focus)) calc(18px + 6px * var(--card-focus));
  background: linear-gradient(180deg, transparent, rgba(11, 11, 12, 0.82));
  color: var(--white);
}

.service-card h3,
.home-service-card-title-smoll,
.home-service-card-title-big {
  font-size: calc(18px + 14px * var(--card-focus));
  padding: 0;
  margin: 0;
}

.service-card p,
.home-service-card-description-block {
  padding: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  max-width: 42ch;
  height: auto;
  max-height: calc(72px * var(--card-focus));
  opacity: var(--card-focus);
  overflow: hidden;
  margin: 0;
  margin-top: calc(8px * var(--card-focus));
}

.services-pin.is-static {
  height: auto !important;
  min-height: 0;
}

.services-pin.is-static .services-sticky {
  position: relative;
  top: 0;
  height: auto;
  width: 100%;
  left: auto;
}

.services-pin.is-static .services-viewport {
  overflow-x: auto;
  scrollbar-width: none;
}

.services-pin.is-static .services-track {
  transform: none !important;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 42px;
}

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

.feature-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
}

.feature-grid .feature-card {
  opacity: 1;
  transform: none;
}

html.js .feature-grid .feature-card {
  opacity: 0;
  transform: translateY(calc(var(--i, 0) * 56px + 36px));
}

@media (hover: none) and (pointer: coarse) {
  html.js .feature-grid .feature-card {
    opacity: 1;
    transform: none;
  }
}

.feature-grid.is-in .feature-card {
  opacity: 1;
  transform: none;
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.1s);
}

.fade-word {
  color: #9a9aa3;
  background: linear-gradient(90deg, var(--ink) 20%, #b0b0b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 .fade-word.word {
  -webkit-background-clip: text;
  background-clip: text;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  margin-top: 18px;
}

.center-copy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  cursor: default;
  transition: color 0.3s ease, padding-left 0.35s var(--ease);
}

.check-list li:hover,
.check-list li.is-on {
  color: var(--purple);
  padding-left: 6px;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.process-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 22px;
}

.process-card:nth-child(2) {
  transform: translateY(28px);
}

.process-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 18px;
}

.process-card .step {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 8px;
}

.process-card h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.process-card p {
  color: var(--muted);
  font-size: 15px;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.trust-item {
  padding: 8px 8px 18px 0;
}

.trust-item h3 {
  font-size: 22px;
  margin: 8px 0;
}

.trust-item p {
  color: var(--muted);
  font-size: 15px;
}

.icon-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--purple);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 14px;
}

/* Brands carousel — duplicated logos in one track, -50% loop */
.brands {
  --visible: 5;
  direction: ltr;
  background: var(--cream);
  padding: 42px 0;
  overflow: hidden;
}

.brands__viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brands__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation-name: brand-scroll;
  animation-duration: 20s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.brands__track img {
  box-sizing: border-box;
  flex: 0 0 calc(100vw / var(--visible));
  width: calc(100vw / var(--visible));
  max-width: none;
  height: 72px;
  padding: 0 28px;
  object-fit: contain;
  object-position: center;
  opacity: 0.85;
  filter: grayscale(1);
}

@keyframes brand-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Clients section — chrome around the logo marquee */
.clients-section {
  scroll-margin-top: calc(var(--nav-h) + 12px);
  background: var(--white);
}

#clients.clients-section {
  background: var(--white);
}

.clients-section .center-copy {
  margin-bottom: 28px;
}

.clients-section .center-copy .lead {
  margin-inline: auto;
}

.client-sectors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.client-sectors li {
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  background: var(--cream);
  color: var(--ink);
}

.section-cream .client-sectors li {
  background: var(--white);
}

.clients-section .brands {
  background: transparent;
  padding: 36px 0 12px;
}

.clients-note {
  text-align: center;
  color: var(--muted);
  max-width: 58ch;
  margin: 8px auto 0;
  font-size: 15px;
}

/* Articles / sectors */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.article-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
}

.article-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.article-card h3 {
  font-size: 22px;
  padding: 20px 20px 8px;
}

.meta {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 14px;
}

/* CTA banner */
.cta-banner {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--cream);
  border-radius: 28px;
  padding: 22px;
}

.cta-banner img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.cta-banner h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 8px;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 650;
  font-size: 17px;
}

.faq-item .plus {
  color: var(--purple);
  font-size: 22px;
  line-height: 1;
}

.faq-item .answer {
  display: none;
  padding: 0 0 18px;
  color: var(--muted);
  max-width: 62ch;
}

.faq-item.open .answer {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) repeat(3, 1fr);
  gap: 28px 32px;
  align-items: start;
  padding: 0 0 40px;
}

.footer-logo {
  display: block;
  max-width: 168px;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-grid h4 {
  margin-bottom: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 10px;
  font-size: 15px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
}

/* Page hero (inner) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 72px;
  background: #683eff;
  color: var(--white);
}

.page-hero-silk {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  max-width: 14ch;
}

.page-hero p {
  margin-top: 16px;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.75);
}

/* Services catalog */
.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.catalog-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}

a.catalog-card {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.catalog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

html[dir="rtl"] .catalog-card h3,
html[dir="rtl"] .catalog-card p {
  text-align: right;
  direction: rtl;
  unicode-bidi: isolate;
}

.catalog-card h3 {
  font-size: 22px;
  padding: 18px 18px 6px;
}

.catalog-card p {
  padding: 0 18px 20px;
  color: var(--muted);
  font-size: 15px;
}

.catalog-card p:has(+ .catalog-more) {
  padding-bottom: 10px;
}

.catalog-more {
  padding: 0 18px 20px;
  color: var(--purple);
  font-weight: 650;
  font-size: 14px;
}

.page-hero-back {
  color: var(--purple-soft);
  text-decoration: none;
}

.page-hero-back:hover {
  color: var(--white);
}

.service-points {
  margin-top: 28px;
}

.service-brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-brand {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin: 24px;
  background: var(--white);
  overflow: hidden;
}

.service-brand img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.service-brand.is-dark {
  background: #111;
  border-color: transparent;
}

.service-brands.is-wall {
  grid-template-columns: repeat(6, 1fr);
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.logo-tile {
  min-height: 84px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 650;
  background: var(--white);
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  font-size: 13px;
  font-weight: 600;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--white);
}

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

.contact-points {
  display: grid;
  gap: 18px;
}

.contact-point {
  padding: 20px;
  background: var(--cream);
  border-radius: 18px;
}

.contact-point a {
  font-weight: 700;
  font-size: 20px;
}

.form .botcheck {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

.form-captcha {
  margin: 4px 0 8px;
}

.form-captcha .h-captcha {
  min-height: 78px;
}

.form-status {
  margin: 12px 0 0;
  min-height: 1.4em;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.62);
}

.form-status.is-success {
  color: #1f7a3f;
}

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

.form-note {
  font-size: 13px;
  color: var(--muted);
}

html:not(.preloader-done) h2 .word,
html:not(.preloader-done) .fade-up {
  animation: none !important;
}

html.js h2 .word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  transform-origin: bottom;
  opacity: 0;
  transform: translateX(1em);
}

html.preloader-done h2.is-in .word {
  animation: words-slide-from-right 0.9s cubic-bezier(0.215, 0.61, 0.355, 1) both;
  animation-delay: calc(var(--word-delay, 0) * 1s);
}

html.js .fade-up {
  opacity: 0;
  transform: translateY(18px);
}

html.preloader-done .fade-up.is-in {
  animation: fadeup 0.65s var(--ease) both;
}

html.js .btn.fade-up {
  opacity: 0;
  transform: translateY(42px);
}

html.preloader-done .btn.fade-up.is-in {
  animation: fadeup-btn 1.05s var(--ease) 0.12s both;
}

html.preloader-done .btn.fade-up.is-in:hover {
  transform: translateY(-2px);
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

html.js [data-reveal="left"] {
  transform: translateX(-36px);
}

html.js [data-reveal="right"] {
  transform: translateX(36px) scale(0.96);
}

html.js [data-reveal="scale"] {
  transform: scale(0.94);
}

.process-card {
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

.process-grid.is-in .process-card:nth-child(2) {
  transform: translateY(28px);
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.article-card,
.catalog-card,
.cta-banner,
.media-card {
  transition: transform 0.55s var(--ease);
}

.article-card:hover,
.catalog-card:hover {
  transform: translateY(-8px);
}

@keyframes kenburns {
  to {
    transform: scale(1);
  }
}

@keyframes letters-slide-up {
  to {
    transform: translateY(0);
  }
}

@keyframes fadeup {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeup-btn {
  from {
    opacity: 0;
    transform: translateY(42px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes words-slide-from-right {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .arrow,
  .hero-media img,
  .hero-proof,
  .hero-lead,
  .hero-cta,
  [data-reveal],
  .feature-grid .feature-card,
  .service-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: #fff;
  shape-rendering: geometricPrecision;
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  .site-header.scrolled .nav-wrap,
  .site-header.solid .nav-wrap {
    border-radius: 22px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    display: flex;
    gap: 16px;
    border-radius: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transform-origin: top center;
    transition:
      opacity 0.28s ease,
      transform 0.35s var(--ease),
      visibility 0.35s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.28s ease,
      transform 0.32s var(--ease),
      background 0.3s ease,
      color 0.3s ease;
  }

  .nav-links .nav-cta {
    justify-content: center;
    text-align: center;
  }

  .nav-links.open a:nth-child(1) { transition-delay: 0.04s; }
  .nav-links.open a:nth-child(2) { transition-delay: 0.08s; }
  .nav-links.open a:nth-child(3) { transition-delay: 0.12s; }
  .nav-links.open a:nth-child(4) { transition-delay: 0.16s; }
  .nav-links.open a:nth-child(5) { transition-delay: 0.2s; }
  .nav-links.open a:nth-child(6) { transition-delay: 0.24s; }

  .nav-links.open a {
    opacity: 1;
    transform: none;
  }

  .header-tools {
    margin-left: auto;
  }

  .lang-switcher {
    margin-left: 0;
  }

  .hero-media::before {
    display: block;
  }

  .brands {
    --visible: 3;
    padding: 36px 0;
  }

  .split,
  .split.reverse,
  .portfolio-grid,
  .faq-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .values-grid,
  .process-grid,
  .card-grid-3,
  .catalog,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-pin {
    --card-active-w: min(720px, 78vw);
    --card-active-h: 400px;
    --card-inactive-w: min(396px, 52vw);
    --card-inactive-h: 260px;
  }

  .process-card:nth-child(2) {
    transform: none;
  }

  .cta-banner {
    grid-template-columns: 1fr;
  }

  .logo-wall {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-brands {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .service-brands.is-wall {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .service-brand {
    margin: 40px;
  }
}

@media (max-width: 786px) {
  .service-brand {
    margin: 30px;
  }
}

@media (max-width: 768px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-item h3 {
    font-size: 18px;
  }

  .trust-grid {
    gap: 10px;
  }

  .service-card.is-active h3 {
    font-size: 20px;
  }

  html.js .feature-grid .feature-card {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .services-pin {
    --card-active-w: 86vw;
    --card-active-h: 280px;
    --card-inactive-w: 64vw;
    --card-inactive-h: 200px;
    --pin-top: 76px;
  }

  .hero-copy {
    padding-bottom: 64px;
  }

  .brands {
    --visible: 2;
  }

  .brands__track img {
    padding: 0 16px;
  }

  .clients-section .brands {
    padding: 24px 0 8px;
  }

  .client-sectors li {
    padding: 7px 14px;
    font-size: 12px;
  }

  .stats,
  .feature-grid,
  .values-grid,
  .process-grid,
  .card-grid-3,
  .catalog,
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .media-card,
  .media-card img {
    min-height: 320px;
  }

  .section {
    padding: 76px 0;
  }

  .logo-wall {
    grid-template-columns: 1fr 1fr;
  }

  .service-brands {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .service-brands.is-wall {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .service-brand {
    margin: 10px;
  }

  .service-brands.is-wall .service-brand {
    padding: 10px;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .arrow {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }

  .brands__track {
    animation-duration: 20s;
    animation-play-state: running;
  }
}

/* Arabic / RTL */
html[dir="rtl"] body {
  font-family: Tajawal, Outfit, system-ui, sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .btn,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .lang-option,
html[dir="rtl"] .nav-links a,
html[dir="rtl"] .home-service-card-title-big,
html[dir="rtl"] .home-service-card-title-smoll {
  font-family: Tajawal, Montserrat, system-ui, sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .display {
  line-height: 1.25;
}

html[dir="rtl"] .arrow {
  display: inline-block;
  /* Arabic pages use ← in markup — do not mirror */
}

html[dir="rtl"] .about-btn:hover .arrow,
html[dir="rtl"] .btn-roll:hover .arrow,
html[dir="rtl"] .btn:hover .arrow {
  transform: translateX(-4px);
}

/* CTA white fill enters from the right in Arabic */
html[dir="rtl"] .btn-accent.cta-hover::before {
  left: auto;
  right: 0;
}

/* Opposite readable fade: gray → ink (EN is ink → gray) */
html[dir="rtl"] .fade-word {
  background: linear-gradient(90deg, #b0b0b6 0%, var(--ink) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[dir="rtl"] h2 .fade-word.word,
html[dir="rtl"] h1 .fade-word.word {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* H1 uses the same word-slide animation as H2 */
html[dir="rtl"] .hero h1[letters-slide-up] .line-inner,
html[dir="rtl"] .hero h1 .char {
  transform: none;
  animation: none;
}

html.js[dir="rtl"] h1 .word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  transform-origin: bottom;
  opacity: 0;
  transform: translateX(1em);
}

html[dir="rtl"].preloader-done h1.is-in .word {
  animation: words-slide-from-right 0.9s cubic-bezier(0.215, 0.61, 0.355, 1) both;
  animation-delay: calc(var(--word-delay, 0) * 1s);
}

html:not(.preloader-done)[dir="rtl"] h1 .word {
  animation: none !important;
}

/* Keep flag + hamburger together, opposite the logo */
html[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .header-tools {
  margin-right: 0;
  margin-left: 0;
}

html[dir="rtl"] .lang-switcher {
  margin-right: 4px;
  margin-left: 0;
}

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

html[dir="rtl"] .lang-option {
  text-align: right;
}

/* Keep phone numbers LTR so +966… does not reverse in Arabic */
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] .phone-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right
}

html[dir="rtl"] .phone-ltr,
html[dir="rtl"] .contact-point a[href^="tel:"] {
  display: inline-block;
}

html[dir="rtl"] .footer-grid a[href^="tel:"] {
  display: block;
}

html[dir="rtl"] .faq-item button,
html[dir="rtl"] .form label,
html[dir="rtl"] .form input,
html[dir="rtl"] .form select,
html[dir="rtl"] .form textarea,
html[dir="rtl"] .contact-point,
html[dir="rtl"] .catalog-more,
html[dir="rtl"] .page-hero-back {
  text-align: right;
}

html[dir="rtl"] .check-list li.is-on,
html[dir="rtl"] .check-list li:hover {
  padding-right: 6px;
  padding-left: 0;
}

html[dir="rtl"] .split.reverse {
  direction: rtl;
}

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

html[dir="rtl"] .hero-bg {
  object-position: 15% 50%;
}

html[dir="rtl"] .brands__track {
  animation-name: brand-scroll-rtl;
}

@keyframes brand-scroll-rtl {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 1024px) {
  html[dir="rtl"] .header-tools {
    margin-right: 0;
    margin-left: 0;
  }

  html[dir="rtl"] .nav-wrap {
    justify-content: flex-start;
  }

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

  html[dir="rtl"] .nav-links {
    align-items: stretch;
    margin-right: 0;
  }
}
