/* ============================================================
   theme.css — Ajad LIGHT redesign prototype (3 palettes)
   Palette is set by a body class: .theme-cyan / .theme-warm / .theme-twotone
   Patterns adapted from rzlt.io, wearesculpt.com, thesocialshepherd.com
   ============================================================ */
/* ---- Tajawal (Arabic + Latin) — the site font.
   `Bukra` and `Poppins` are kept as aliases that now load Tajawal, so every
   existing reference (CSS rules + inline style="" in the HTML) renders Tajawal.
   font-weight 600 requests fall back to the nearest face (700). ---- */
@font-face { font-family: Tajawal; src: url('./fonts/Tajawal-Light.ttf') format('truetype'); font-weight: 300; font-display: swap }
@font-face { font-family: Tajawal; src: url('./fonts/Tajawal-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap }
@font-face { font-family: Tajawal; src: url('./fonts/Tajawal-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap }
@font-face { font-family: Tajawal; src: url('./fonts/Tajawal-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap }
@font-face { font-family: Tajawal; src: url('./fonts/Tajawal-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap }

/* aliases → Tajawal */
@font-face { font-family: Bukra; src: url('./fonts/Tajawal-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap }
@font-face { font-family: Bukra; src: url('./fonts/Tajawal-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap }
@font-face { font-family: Bukra; src: url('./fonts/Tajawal-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap }
@font-face { font-family: Poppins; src: url('./fonts/Tajawal-Light.ttf') format('truetype'); font-weight: 300; font-display: swap }
@font-face { font-family: Poppins; src: url('./fonts/Tajawal-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap }
@font-face { font-family: Poppins; src: url('./fonts/Tajawal-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap }
@font-face { font-family: Poppins; src: url('./fonts/Tajawal-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap }
@font-face { font-family: Poppins; src: url('./fonts/Tajawal-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap }

/* ---- palettes ---- */
:root {
  --cyan: #00A6FB;
  --blue: #0462AF;
  --navy: #16325C;
  --ink: #07142b;
}

body.theme-cyan {
  --bg: #F4F7FB;
  --bg2: #FFFFFF;
  --text: #13294a;
  --muted: #5d6f88;
  --accent: #00A6FB;
  --accent2: #0462AF;
  --line: rgba(19, 41, 74, .12);
  --hero-bg: linear-gradient(180deg, #EAF1FA, #F4F7FB);
  --hero-text: #13294a;
  --hero-ghost: rgba(19, 41, 74, .06);
  /* aurora hero glow (MotionSites-style) — soft on light themes */
  --aurora-1: rgba(0, 166, 251, .30);
  --aurora-2: rgba(4, 98, 175, .20);
  --aurora-3: rgba(0, 166, 251, .12);
  --aurora-op: .55;
}

body.theme-warm {
  --bg: #FBF9F5;
  --bg2: #FFFFFF;
  --text: #13294a;
  --muted: #6b6256;
  --accent: #FF7A45;
  --accent2: #00A6FB;
  --line: rgba(19, 41, 74, .12);
  --hero-bg: linear-gradient(180deg, #FFF3EC, #FBF9F5);
  --hero-text: #13294a;
  --hero-ghost: rgba(255, 122, 69, .10);
  --aurora-1: rgba(255, 122, 69, .28);
  --aurora-2: rgba(0, 166, 251, .18);
  --aurora-3: rgba(255, 122, 69, .12);
  --aurora-op: .6;
}

body.theme-twotone {
  --bg: #F4F7FB;
  --bg2: #FFFFFF;
  --text: #13294a;
  --muted: #5d6f88;
  --accent: #00A6FB;
  --accent2: #0462AF;
  --line: rgba(19, 41, 74, .12);
  --hero-bg: radial-gradient(90% 90% at 70% 10%, #10325f, #07142b);
  --hero-text: #eaf2ff;
  --hero-ghost: rgba(255, 255, 255, .06);
  /* dark theme: let the aurora actually glow */
  --aurora-1: rgba(0, 166, 251, .85);
  --aurora-2: rgba(4, 98, 175, .75);
  --aurora-3: rgba(124, 255, 176, .30);
  --aurora-op: 1;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

html.lenis,
html.lenis body {
  height: auto
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Bukra, "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease)
}

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

.en {
  font-family: Poppins, sans-serif
}

/* ---- theme switcher (fixed) ---- */
.switcher {
  position: fixed;
  z-index: 50;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px -24px rgba(19, 41, 74, .45)
}

.switcher b {
  font: 600 11px/1 Poppins;
  letter-spacing: 1px;
  color: var(--muted);
  align-self: center;
  padding: 0 8px
}

.switcher button {
  font: 600 12px/1 Poppins;
  letter-spacing: .4px;
  cursor: pointer;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: .2s
}

.switcher button:hover {
  background: rgba(0, 166, 251, .1)
}

.switcher button.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent)
}

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line)
}

.nav .logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 21px
}

.nav .logo img {
  width: 40px;
  height: 40px;
  object-fit: contain
}

.nav .logo small {
  font: 600 9px/1 Poppins;
  letter-spacing: 2px;
  color: var(--muted);
  display: block
}

.nav nav {
  display: flex;
  gap: 26px;
  font: 500 14px/1 Bukra
}

.nav nav a {
  position: relative;
  padding: 4px 0;
  color: var(--text);
  opacity: .85
}

.nav nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -3px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s
}

.nav nav a:hover::after {
  transform: scaleX(1)
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  font: 600 14px/1 Bukra;
  padding: 13px 22px;
  border-radius: 999px;
  /* `scale` is its own property, so it composes with the magnetic-hover
     inline `transform` that site.js sets, instead of being overridden by it. */
  transition:
    background .25s var(--ease),
    color .25s var(--ease),
    box-shadow .25s var(--ease),
    transform .18s var(--ease),
    scale .14s var(--ease);
  border: none;
  cursor: pointer
}

.btn {
  position: relative;
  overflow: hidden
}

/* glossy light sweep on hover (MotionSites-style) */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  pointer-events: none
}

.btn:hover::after {
  animation: btnSheen .8s ease
}

@keyframes btnSheen {
  to {
    inset-inline-start: 140%
  }
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px var(--accent)
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line)
}

.btn.ghost:hover {
  border-color: var(--accent);
  box-shadow: none
}

@media(max-width:760px) {
  .nav nav {
    display: none
  }
}

/* ---- hero ---- */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: clamp(40px, 7vw, 90px) clamp(20px, 4vw, 56px) clamp(60px, 8vw, 110px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
  overflow: hidden;
  transition: background .5s var(--ease), color .5s var(--ease)
}

/* ---- living aurora hero background (MotionSites-style "Cosmic Ripple") ---- */
.hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side, var(--aurora-1), transparent 72%),
    radial-gradient(closest-side, var(--aurora-2), transparent 72%),
    radial-gradient(closest-side, var(--aurora-3), transparent 72%);
  background-repeat: no-repeat;
  background-size: 62% 62%, 54% 54%, 48% 48%;
  background-position: 12% 18%, 82% 28%, 48% 88%;
  filter: blur(34px) saturate(1.4) brightness(1.1);
  opacity: var(--aurora-op, .5);
  mix-blend-mode: screen;
  animation: auroraDrift 16s ease-in-out infinite alternate;
  transition: opacity .5s var(--ease)
}

@keyframes auroraDrift {
  0% {
    background-position: 12% 18%, 82% 28%, 48% 88%;
    transform: rotate(0deg) scale(1)
  }

  50% {
    background-position: 28% 34%, 66% 14%, 62% 70%;
    transform: rotate(4deg) scale(1.06)
  }

  100% {
    background-position: 8% 42%, 90% 40%, 38% 92%;
    transform: rotate(-3deg) scale(1.03)
  }
}

.hero .kick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 12px/1 Poppins;
  letter-spacing: 3px;
  color: var(--accent)
}

.hero .kick::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent)
}

.hero h1 {
  font-family: Poppins;
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
  font-size: clamp(44px, 7.5vw, 104px);
  margin: 0
}

.hero h1 span {
  display: block
}

.hero h1 .ar {
  font-family: Bukra;
  line-height: 1.28;
  margin-bottom: .12em
}

.hero h1 .stroke {
  -webkit-text-stroke: 1.5px currentColor;
  opacity: .85
}

.hero p {
  max-width: 520px;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.9;
  color: color-mix(in srgb, var(--hero-text) 78%, transparent)
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 24px)
}

.hero-visual {
  position: relative;
  height: clamp(320px, 42vw, 520px);
  z-index: 1
}

/* particle canvas spans the whole hero so dots come from across the page */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none
}

/* circular rotating logo seal (brand medallion) */
.logo-seal {
  position: absolute;
  bottom: 4%;
  inset-inline-start: 0;
  width: 138px;
  height: 138px;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg2) 72%, transparent);
  backdrop-filter: blur(7px);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px -22px rgba(19, 41, 74, .55)
}

.logo-seal .seal-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: sealspin 22s linear infinite
}

.logo-seal .seal-ring text {
  font: 600 11.5px/1 Poppins;
  letter-spacing: 1.5px;
  fill: var(--accent)
}

.logo-seal .seal-logo {
  width: 44%;
  height: 44%;
  object-fit: contain
}

@keyframes sealspin {
  to {
    transform: rotate(360deg)
  }
}

@media(max-width:880px) {
  .logo-seal {
    width: 104px;
    height: 104px;
    bottom: auto;
    top: 6px;
    inset-inline-start: 6px
  }
}

@media(max-width:880px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: clamp(18px, 6vw, 38px);
    padding: clamp(30px, 9vw, 60px) clamp(22px, 6vw, 46px) clamp(46px, 12vw, 80px)
  }

  .hero-visual {
    height: clamp(200px, 34vh, 270px);
    order: -1
  }

  .hero-copy {
    align-items: center;
    gap: clamp(13px, 3.5vw, 18px)
  }

  .hero .cta-row {
    justify-content: center;
    margin-top: 6px
  }

  .hero h1 {
    font-size: clamp(30px, 9.5vw, 52px);
    line-height: .9
  }

  .hero h1 .stroke {
    -webkit-text-stroke-width: 1px;
    opacity: 1
  }

  .hero p {
    margin-inline: auto;
    padding-inline: 6px;
    max-width: 40ch
  }
}

/* ---- scroll progress bar ---- */
.scrollbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none
}

.scrollbar i {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: right;
  background: linear-gradient(90deg, var(--accent), var(--accent2))
}

/* ---- fine film grain (premium texture) ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
}

/* ---- generic section ---- */
.section {
  padding: clamp(60px, 9vw, 130px) clamp(20px, 4vw, 56px);
  max-width: 1320px;
  margin: 0 auto
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 48px;
  flex-wrap: wrap
}

.sec-head .num {
  font: 600 13px/1 Poppins;
  letter-spacing: 2px;
  color: var(--accent)
}

.sec-head h2 {
  font-family: Poppins;
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 62px);
  letter-spacing: -.02em;
  margin: 0;
  line-height: 1
}

.sec-head .ar {
  font-family: Bukra
}

.sec-head .mirror {
  font: 500 13px/1 Poppins;
  letter-spacing: 3px;
  color: var(--muted);
  margin-inline-start: auto
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.16, .84, .32, 1), transform .8s cubic-bezier(.16, .84, .32, 1)
}

.reveal.in {
  opacity: 1;
  transform: none
}

/* ---- services interactive list (RZLT) ---- */
.svc-wrap {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  align-items: start
}

.svc-detail {
  position: sticky;
  top: 120px
}

.svc-detail .d-tag {
  font: 600 12px/1 Poppins;
  letter-spacing: 2px;
  color: var(--accent)
}

.svc-detail h3 {
  font-family: Bukra;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 34px);
  margin: .4em 0
}

.svc-detail p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 16px
}

.svc-detail .tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.svc-detail .tags span {
  font: 600 11px/1 Poppins;
  letter-spacing: 1px;
  color: var(--accent2);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 999px
}

.svc-list {
  border-top: 1px solid var(--line)
}

.svc-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(16px, 2.4vw, 30px) 6px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: padding .35s
}

.svc-row .ix {
  font: 600 13px/1 Poppins;
  color: var(--muted);
  width: 42px
}

.svc-row h4 {
  font-family: Poppins;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0;
  font-size: clamp(26px, 4vw, 56px);
  color: color-mix(in srgb, var(--text) 38%, var(--bg));
  transition: color .35s, transform .35s;
  transform-origin: right
}

.svc-row .ar4 {
  font-family: Bukra
}

.svc-row:hover h4,
.svc-row.on h4 {
  color: var(--text)
}

.svc-row:hover,
.svc-row.on {
  padding-inline-start: 22px
}

.svc-row .go {
  margin-inline-start: auto;
  color: var(--accent);
  opacity: 0;
  transform: translateX(8px);
  transition: .35s;
  font-size: 22px
}

.svc-row:hover .go,
.svc-row.on .go {
  opacity: 1;
  transform: none
}

.svc-row .svc-ico {
  flex: none;
  width: clamp(26px, 3.2vw, 38px);
  height: clamp(26px, 3.2vw, 38px);
  color: color-mix(in srgb, var(--text) 28%, var(--bg));
  transition: color .35s, transform .35s
}

.svc-row:hover .svc-ico,
.svc-row.on .svc-ico {
  color: var(--accent);
  transform: scale(1.08)
}

.svc-detail .d-ico {
  display: block;
  width: clamp(42px, 5vw, 60px);
  height: clamp(42px, 5vw, 60px);
  color: var(--accent);
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 20px color-mix(in srgb, var(--accent) 38%, transparent))
}

@media(max-width:880px) {
  .svc-wrap {
    grid-template-columns: 1fr
  }

  .svc-detail {
    position: static
  }
}

/* ---- selected work (cards) ---- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  perspective: 1100px
}

.work {
  --mx: 50%;
  --my: 50%;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--line);
  aspect-ratio: 16/11;
  box-shadow: 0 20px 50px -36px rgba(19, 41, 74, .5);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .2s cubic-bezier(.16, .84, .32, 1), box-shadow .5s
}

.work:hover {
  transform: translateY(-8px);
  box-shadow: 0 36px 70px -40px rgba(19, 41, 74, .55)
}

/* cursor spotlight that rides the tilt */
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 32%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease)
}

.work:hover::after {
  opacity: 1
}

.work .ph {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 55%),
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--accent2) 30%, transparent), transparent 55%),
    var(--bg2);
  transition: transform .9s cubic-bezier(.16, .84, .32, 1)
}

.work:hover .ph {
  transform: scale(1.07)
}

.work .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%)
}

.work .info {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 26px;
  z-index: 2
}

.work .info .m {
  font: 600 11px/1 Poppins;
  letter-spacing: 2px;
  color: var(--accent)
}

.work .info h3 {
  font-family: Poppins;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 46px);
  margin: .2em 0 0;
  color: var(--text)
}

.work .info .s {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px
}

@media(max-width:760px) {
  .work-grid {
    grid-template-columns: 1fr
  }
}

/* ---- trusted by (testimonials marquee) ---- */
.trusted {
  background: var(--bg2);
  border-block: 1px solid var(--line);
  padding: clamp(50px, 7vw, 90px) 0;
  overflow: hidden
}

.trusted .head {
  text-align: center;
  font-family: Poppins;
  font-weight: 700;
  font-size: clamp(34px, 6vw, 84px);
  letter-spacing: -.02em;
  margin: 0 0 8px
}

.trusted .sub {
  text-align: center;
  color: var(--muted);
  font: 600 12px/1 Poppins;
  letter-spacing: 3px;
  margin-bottom: 46px
}

.tmarquee {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: tscroll 38s linear infinite
}

.trusted:hover .tmarquee {
  animation-play-state: paused
}

@keyframes tscroll {
  to {
    transform: translateX(-50%)
  }
}

.tcard {
  flex: 0 0 360px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px
}

.tcard .top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px
}

.tcard .av {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 15px/1 Poppins;
  letter-spacing: .5px
}

.tcard .nm {
  font-family: Poppins;
  font-weight: 700;
  font-size: 15px
}

.tcard .ro {
  font: 500 11px/1.4 Poppins;
  letter-spacing: .5px;
  color: var(--muted)
}

.tcard p {
  margin: 0;
  line-height: 1.8;
  font-size: 14px;
  color: var(--text)
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  color: #fff;
  text-align: center;
  padding: clamp(60px, 9vw, 120px) 24px;
  border-radius: 28px;
  margin: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px)
}

.cta-band h2 {
  font-family: Poppins;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 64px);
  margin: 0 0 18px;
  letter-spacing: -.02em
}

.cta-band .btn {
  background: #fff;
  color: var(--accent2)
}

/* ---- footer + marquee ---- */
.foot {
  padding: 50px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px
}

.bigmark {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line)
}

.bigmark div {
  display: inline-block;
  animation: mscroll 30s linear infinite;
  font: 700 clamp(40px, 9vw, 120px)/1 Poppins;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  padding: 18px 0
}

@keyframes mscroll {
  to {
    transform: translateX(-50%)
  }
}

/* word reveal */
.rw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.05
}

.rw>span {
  display: inline-block;
  transform: translateY(120%);
  transition: transform .8s cubic-bezier(.16, .84, .32, 1);
  transition-delay: calc(var(--i, 0)*60ms)
}

.words-in .rw>span {
  transform: none
}

/* switcher fits small screens */
@media(max-width:600px) {
  .switcher {
    bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 94vw;
    padding: 6px;
    gap: 4px
  }

  .switcher b {
    display: none
  }

  .switcher button {
    padding: 8px 11px;
    font-size: 11px
  }

  .tcard {
    flex-basis: 80vw
  }

  .work .info {
    padding: 18px
  }
}

@media(prefers-reduced-motion:reduce) {
  .reveal {
    opacity: 1;
    transform: none
  }

  .rw>span {
    transform: none
  }

  .tmarquee,
  .bigmark div,
  .hero::before,
  .page-hero::before {
    animation: none
  }

  .btn:hover::after {
    animation: none
  }
}

/* ============================================================
   MULTI-PAGE SITE COMPONENTS (added for full site build)
   ============================================================ */

/* ---- nav: links + mobile drawer ---- */
.nav-links a.active {
  opacity: 1;
  color: var(--accent)
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  /* 44x44 minimum touch target */
  min-width: 44px;
  min-height: 44px;
  z-index: 60
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: .3s
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

@media(max-width:760px) {
  .nav-toggle {
    display: flex
  }

  .nav-cta {
    display: none
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(16px);
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 26px !important;
    font-size: 24px !important;
    transform: translateY(-100%);
    transition: transform .5s cubic-bezier(.16, .84, .32, 1);
    z-index: 45
  }

  body.nav-open .nav-links {
    transform: none
  }
}

/* ---- inner-page header (services / work / about / contact / lab) ---- */
.page-hero {
  --hero-text: #eef4ff;
  --aurora-op: .35;
  position: relative;
  overflow: hidden;
  background-color: #07142b;
  background-image:
    linear-gradient(rgba(7, 20, 43, .62), rgba(7, 20, 43, .74)),
    url('./assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--hero-text);
  padding: clamp(96px, 11vw, 128px) clamp(20px, 4vw, 56px) clamp(34px, 5vw, 54px);
  text-align: center;
  transition: color .5s var(--ease)
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side, var(--aurora-1), transparent 72%),
    radial-gradient(closest-side, var(--aurora-2), transparent 72%);
  background-repeat: no-repeat;
  background-size: 60% 60%, 52% 52%;
  background-position: 22% 30%, 78% 40%;
  filter: blur(40px) saturate(1.2);
  opacity: var(--aurora-op, .6);
  mix-blend-mode: screen;
  animation: auroraDrift 18s ease-in-out infinite alternate
}

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

.page-hero .kick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 12px/1 Poppins;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 18px
}

.page-hero h1 {
  font-family: Poppins;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  font-size: clamp(30px, 4.4vw, 58px);
  margin: 0
}

.page-hero h1 .ar {
  font-family: Bukra
}

.page-hero p {
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.8;
  font-size: clamp(14px, 1.5vw, 17px);
  color: color-mix(in srgb, var(--hero-text) 80%, transparent)
}

/* centered accent dashes flanking the kick — echoes the home hero kick */
.page-hero .kick::before,
.page-hero .kick::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent)
}

/* giant faint "frame" word behind the title — tells you which page you're on */
.page-hero[data-ghost]::after {
  content: attr(data-ghost);
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font: 800 clamp(58px, 12vw, 150px)/1 Poppins;
  letter-spacing: -.05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--hero-text) 12%, transparent);
  opacity: .65;
  pointer-events: none;
  user-select: none
}

.crumb {
  font: 600 12px/1 Poppins;
  letter-spacing: 2px;
  color: color-mix(in srgb, var(--hero-text) 65%, transparent);
  margin-top: 26px
}

.crumb a {
  color: var(--accent)
}

/* ---- split intro section (text + visual) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center
}

.split .lede {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.8;
  font-weight: 500
}

.split p {
  color: var(--muted);
  line-height: 1.9;
  margin: 16px 0 0
}

.split .visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 25% 25%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 55%),
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--accent2) 32%, transparent), transparent 55%),
    var(--bg2)
}

.split .visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%)
}

@media(max-width:820px) {
  .split {
    grid-template-columns: 1fr
  }
}

/* ---- stats strip ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden
}

.stat {
  background: var(--bg2);
  padding: clamp(26px, 4vw, 44px) 22px;
  text-align: center
}

.stat .num {
  font-family: Poppins;
  font-weight: 700;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  /* fixed-width digits so the count-up animation doesn't jitter */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.stat .lbl {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
  letter-spacing: .5px
}

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

/* ---- generic card grid (process / values / features) ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px
}

.card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden
}

.card .ix {
  font: 600 13px/1 Poppins;
  letter-spacing: 2px;
  color: var(--accent)
}

.card h3 {
  font-family: Bukra;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 14px 0 8px
}

.card p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 15px;
  margin: 0
}

.card .ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  margin-bottom: 16px
}

/* cursor spotlight that rides the tilt (shared) */
.tilt {
  --mx: 50%;
  --my: 50%;
  transform-style: preserve-3d;
  transition: transform .2s cubic-bezier(.16, .84, .32, 1), box-shadow .5s
}

.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease)
}

.tilt:hover::after {
  opacity: 1
}

/* ---- process timeline (numbered, connected) ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step
}

.step {
  position: relative;
  padding-top: 28px;
  border-top: 2px solid var(--line)
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -1px;
  inset-inline-start: 0;
  transform: translateY(-50%);
  background: var(--bg);
  padding-inline-end: 12px;
  font: 700 14px/1 Poppins;
  color: var(--accent)
}

.step h4 {
  font-family: Bukra;
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 8px
}

.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0
}

@media(max-width:820px) {
  .steps {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:520px) {
  .steps {
    grid-template-columns: 1fr
  }
}

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

.price {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 8px
}

.price.featured {
  border-color: var(--accent);
  box-shadow: 0 30px 70px -40px var(--accent)
}

.price .tier {
  font: 600 12px/1 Poppins;
  letter-spacing: 2px;
  color: var(--accent)
}

.price .amt {
  font-family: Poppins;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 46px);
  margin: 6px 0
}

.price .amt small {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500
}

.price ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 11px
}

.price li {
  color: var(--muted);
  font-size: 14px;
  padding-inline-start: 24px;
  position: relative
}

.price li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  font-weight: 700
}

.price .btn {
  margin-top: auto;
  justify-content: center
}

@media(max-width:820px) {
  .pricing {
    grid-template-columns: 1fr
  }
}

/* ---- team ---- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px
}

.member {
  text-align: center
}

.member .ph {
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 55%),
    radial-gradient(circle at 75% 80%, color-mix(in srgb, var(--accent2) 36%, transparent), transparent 55%),
    var(--bg2);
  margin-bottom: 14px
}

.member h4 {
  font-family: Poppins;
  font-weight: 700;
  font-size: 18px;
  margin: 0
}

.member .role {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px
}

/* ---- contact form ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start
}

.contact-info h3 {
  font-family: Bukra;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 12px
}

.contact-info p {
  color: var(--muted);
  line-height: 1.9
}

.contact-info .row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line)
}

.contact-info .row .ic {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2))
}

.contact-info .row b {
  display: block;
  font-family: Poppins;
  font-size: 14px
}

.contact-info .row span {
  color: var(--muted);
  font-size: 13px
}

#contact-form {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 16px
}

.field label {
  display: block;
  font: 600 12px/1 Poppins;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font: 400 15px/1.5 Bukra;
  transition: border-color .25s
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent)
}

.field textarea {
  min-height: 130px;
  resize: vertical
}

.form-note {
  font-size: 14px;
  min-height: 18px
}

.form-note.ok {
  color: var(--accent)
}

.form-note.err {
  color: #e0533d
}

@media(max-width:820px) {
  .contact-grid {
    grid-template-columns: 1fr
  }
}

/* ---- case study (work detail intro) ---- */
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 28px
}

.case-meta div .k {
  font: 600 11px/1 Poppins;
  letter-spacing: 2px;
  color: var(--muted)
}

.case-meta div .v {
  font-family: Poppins;
  font-weight: 600;
  font-size: 17px;
  margin-top: 8px
}

@media(max-width:680px) {
  .case-meta {
    grid-template-columns: 1fr 1fr
  }
}

/* ---- LAB page interactive demo grid ---- */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px
}

.lab-demo {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #07142b;
  cursor: crosshair
}

.lab-demo .cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px;
  background: linear-gradient(transparent, rgba(4, 12, 28, .82))
}

.lab-demo .cap b {
  font-family: Poppins;
  font-weight: 700;
  color: #fff;
  font-size: 17px
}

.lab-demo .cap span {
  display: block;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  margin-top: 3px
}

.lab-demo canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%
}

/* demo backgrounds (CSS-only motion) */
.demo-aurora {
  background:
    radial-gradient(closest-side, rgba(0, 166, 251, .8), transparent 70%) 20% 30%/60% 60% no-repeat,
    radial-gradient(closest-side, rgba(124, 255, 176, .4), transparent 70%) 80% 70%/55% 55% no-repeat,
    #07142b;
  filter: blur(8px) saturate(1.3);
  animation: auroraDrift 14s ease-in-out infinite alternate
}

.demo-grid-warp::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: linear-gradient(rgba(0, 166, 251, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 166, 251, .5) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: gridWarp 8s ease-in-out infinite alternate;
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 72%)
}

@keyframes gridWarp {
  to {
    transform: perspective(400px) rotateX(38deg) translateY(-30px) scale(1.2)
  }
}

.demo-orbits::before,
.demo-orbits::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(0, 166, 251, .4);
  border-radius: 50%;
  translate: -50% -50%;
  animation: spin 9s linear infinite
}

.demo-orbits::before {
  width: 60%;
  aspect-ratio: 1
}

.demo-orbits::after {
  width: 90%;
  aspect-ratio: 1;
  border-color: rgba(124, 255, 176, .3);
  animation-duration: 14s;
  animation-direction: reverse
}

@keyframes spin {
  to {
    rotate: 360deg
  }
}

/* ---- full footer ---- */
.site-foot {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  padding: clamp(50px, 7vw, 84px) clamp(20px, 4vw, 56px) 0
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  max-width: 1320px;
  margin: 0 auto;
  padding-bottom: 50px
}

.foot-brand .logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 16px
}

.foot-brand .logo img {
  width: 38px;
  height: 38px;
  object-fit: contain
}

.foot-brand p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
  max-width: 300px
}

.foot-col h5 {
  font: 600 12px/1 Poppins;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 18px
}

.foot-col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 7px 0;
  transition: color .25s
}

.foot-col a:hover {
  color: var(--text)
}

.foot-bottom {
  border-top: 1px solid var(--line);
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px
}

@media(max-width:820px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:520px) {
  .foot-grid {
    grid-template-columns: 1fr
  }
}

/* spotlight on generic .card via .tilt already handled; give cards relative pos */
.card,
.price,
.lab-demo {
  position: relative
}

/* ---- FAQ accordion ---- */
.faq {
  max-width: 820px;
  margin: 0 auto
}

.faq details {
  border-bottom: 1px solid var(--line)
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 8px;
  font-family: Bukra;
  font-weight: 700;
  font-size: clamp(17px, 2vw, 22px);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color .25s
}

.faq summary::-webkit-details-marker {
  display: none
}

.faq summary::before {
  content: "+";
  font-family: Poppins;
  font-weight: 400;
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
  transition: transform .35s
}

.faq details[open] summary::before {
  transform: rotate(45deg)
}

.faq summary:hover {
  color: var(--accent)
}

.faq .ans {
  padding: 0 8px 24px 38px;
  color: var(--muted);
  line-height: 1.95;
  font-size: 15px
}

/* RTL: indent answer on the correct side */
[dir="rtl"] .faq .ans {
  padding: 0 38px 24px 8px
}

/* ===== clients strip (real Ajad clients marquee) ===== */
.client-strip {
  overflow: hidden;
  margin-bottom: 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)
}

.cmarquee {
  display: flex;
  width: max-content;
  animation: cscroll 52s linear infinite
}

/* each group is one full set of logos + a trailing gap, so the two groups
   butt together perfectly and -50% wraps with no white gap */
.cgroup {
  display: flex;
  gap: 14px;
  padding-right: 14px;
  flex: 0 0 auto
}

.client-strip:hover .cmarquee {
  animation-play-state: paused
}

@keyframes cscroll {
  to {
    transform: translateX(-50%)
  }
}

.cchip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font: 600 16px/1 Poppins;
  color: var(--muted);
  white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s var(--ease)
}

.cchip:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line))
}

/* logo chips — real client logos inside the strip */
.cchip.clogo {
  padding: 10px 18px;
  background: #fff;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease)
}

.cchip.clogo img {
  height: 96px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  /* source logos ship with a wide white margin — zoom in to fill the pill */
  transform: scale(1.32);
  transition: transform .3s var(--ease)
}

.cchip.clogo:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 8px 26px rgba(7, 20, 43, .12)
}

.cchip.clogo:hover img {
  transform: scale(1.42)
}

/* ===== generated imagery fills (Magnific set) ===== */
/* photo tiles use an inline `background:url(...) center/cover`; the `img`
   class only swaps the decorative grid overlay for a legibility scrim. */
.work .ph.img::after {
  background-image: linear-gradient(to top, rgba(7, 20, 43, .92), rgba(7, 20, 43, .30) 44%, rgba(7, 20, 43, 0) 70%);
  background-size: cover;
  mask-image: none
}

.split .visual.img::after {
  display: none
}

/* home hero: full-bleed aurora image background (sits behind the particle logo + text) */
.hero.hero--bg {
  --hero-text: #eef4ff;
  --aurora-op: .35;
  background-color: #07142b;
  background-image:
    linear-gradient(90deg, rgba(7, 20, 43, .55), rgba(7, 20, 43, .35) 45%, rgba(7, 20, 43, .82)),
    url('./assets/hero-bg.jpg');
  background-size: cover;
  background-position: center
}

/* keep the ghost CTA + paragraph readable on the dark hero */
.hero.hero--bg .btn.ghost {
  border-color: color-mix(in srgb, #eef4ff 40%, transparent);
  color: #eef4ff
}

/* Eithar case-study gallery (the two supporting shots) */
.case-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px
}

.case-gallery .shot {
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 60px -44px rgba(7, 20, 43, .6)
}

@media (max-width: 680px) {
  .case-gallery {
    grid-template-columns: 1fr
  }
}
/* ============================================================
   V7 — elegance pass: nav pill, 3D client galaxy, testimonials
   band, staggered blur reveals
   ============================================================ */

/* ---- nav: refined glass header ---- */
.nav {
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease)
}

.nav.scrolled {
  padding-block: 10px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 14px 44px -22px rgba(7, 20, 43, .35)
}

@media(min-width:761px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg2) 62%, transparent)
  }

  .nav nav a {
    padding: 8px 14px;
    border-radius: 999px;
    opacity: .78;
    transition: opacity .25s, background .25s, color .25s
  }

  .nav nav a::after {
    display: none
  }

  .nav nav a:hover {
    opacity: 1;
    background: color-mix(in srgb, var(--accent) 9%, transparent)
  }

  .nav-links a.active {
    opacity: 1;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 13%, transparent)
  }
}

/* ---- stats: soft hover glow ---- */
.stat {
  transition: background .35s var(--ease)
}

.stat:hover {
  background: color-mix(in srgb, var(--accent) 5%, var(--bg2))
}

/* ---- TRUSTED BY — 3D client galaxy ---- */
.trusted3d {
  position: relative;
  overflow: hidden;
  margin: clamp(26px, 4vw, 56px) clamp(12px, 2.5vw, 36px);
  border-radius: 30px;
  border: none;
  background: transparent;
  color: var(--ink);
  padding: clamp(54px, 7vw, 92px) 0 clamp(36px, 5vw, 64px)
}

/* blue backdrop removed — aurora glow + gridlines hidden */
.t3d-aurora,
.t3d-gridlines {
  display: none
}

.t3d-head {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 22px
}

.t3d-kick {
  font: 600 12px/1 Poppins;
  letter-spacing: 5px;
  color: #00A6FB
}

.t3d-head h2 {
  margin: 16px 0 10px;
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 58px);
  letter-spacing: -.01em
}

.t3d-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px
}

.t3d-count {
  font: 800 1.5em/1 Poppins;
  color: var(--ink);
  vertical-align: -.06em;
  margin-inline-end: 4px
}

/* orbit stage (desktop upgrade — built by site.js) */
.orbit-stage {
  display: none;
  position: relative;
  z-index: 1;
  height: clamp(380px, 42vw, 520px);
  margin-top: clamp(10px, 2vw, 26px);
  perspective: 1500px;
  perspective-origin: 50% 42%;
  cursor: grab;
  touch-action: pan-y
}

.orbit-stage.grabbing {
  cursor: grabbing
}

.trusted3d.orbit-on .orbit-stage {
  display: block
}

.trusted3d.orbit-on .logo-rivers {
  display: none
}

.orbit-floor {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 72%;
  height: 130px;
  transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 100%, rgba(0, 166, 251, .28), transparent 70%);
  filter: blur(6px);
  pointer-events: none
}

.orbit-world {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(-7deg)
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d
}

.orbit-card {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w);
  height: calc(var(--w) * .62);
  margin: calc(var(--w) * -.31) calc(var(--w) * -.5);
  transform: rotateY(var(--a)) translateZ(var(--r));
  backface-visibility: hidden;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 34px 70px -34px rgba(7, 20, 43, .6)
}

.orbit-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.3);
  pointer-events: none
}

/* logo rivers (mobile + no-JS fallback) */
.logo-rivers {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: clamp(30px, 4vw, 46px);
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)
}

.lrow {
  overflow: hidden
}

.ltrack {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-inline-end: 14px
}

.lrow.anim .ltrack {
  animation: lscroll 52s linear infinite
}

.lrow.rev.anim .ltrack {
  animation-direction: reverse;
  animation-duration: 64s
}

.lrow:hover .ltrack {
  animation-play-state: paused
}

@keyframes lscroll {
  to {
    transform: translateX(-50%)
  }
}

.lchip {
  flex: 0 0 auto;
  width: clamp(150px, 15vw, 200px);
  height: clamp(150px, 15vw, 200px);
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 14px;
  box-shadow: 0 10px 26px -14px rgba(7, 20, 43, .55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease)
}

.lchip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center
}

.lchip:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 36px -12px rgba(0, 166, 251, .5)
}

.t3d-hint {
  display: none;
  position: relative;
  z-index: 2;
  margin-top: 16px;
  text-align: center;
  color: #5e72a0;
  font: 600 10px/1 Poppins;
  letter-spacing: 3px
}

.trusted3d.orbit-on .t3d-hint {
  display: block
}

/* ---- testimonials band (moved out of trusted) ---- */
.testi-band {
  background: var(--bg2);
  border-block: 1px solid var(--line);
  padding: clamp(40px, 5vw, 64px) 0;
  margin-top: clamp(30px, 4vw, 50px);
  overflow: hidden
}

.testi-band:hover .tmarquee {
  animation-play-state: paused
}

/* ---- reveals: blur-up + stagger for card grids ---- */
.reveal {
  filter: blur(8px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1), filter .8s var(--ease)
}

.reveal.in {
  filter: blur(0)
}

.cards .reveal:nth-child(2),
.work-grid .reveal:nth-child(2) {
  transition-delay: .08s
}

.cards .reveal:nth-child(3),
.work-grid .reveal:nth-child(3) {
  transition-delay: .16s
}

.cards .reveal:nth-child(4),
.work-grid .reveal:nth-child(4) {
  transition-delay: .24s
}

.cards .reveal:nth-child(5) {
  transition-delay: .32s
}

.cards .reveal:nth-child(6) {
  transition-delay: .4s
}

/* ---- reduced motion / small screens ---- */
@media(prefers-reduced-motion:reduce) {

  .ltrack,
  .t3d-aurora {
    animation: none !important
  }

  .reveal {
    filter: none
  }
}

@media(max-width:600px) {
  .trusted3d {
    border-radius: 22px
  }

  .lchip {
    width: 140px;
    height: 140px;
    padding: 12px
  }
}

/* ============================================================
   V7.1 — client logos as transparent cutouts: no more identical
   white squares; logos float directly on the navy stage
   ============================================================ */
.orbit-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  filter: drop-shadow(0 20px 28px rgba(7, 20, 43, .5))
}

.orbit-card img {
  position: relative;
  z-index: 1;
  transform: none;
  padding: 4%
}

.lchip {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 26px -14px rgba(7, 20, 43, .4)
}

.lchip img {
  position: relative;
  z-index: 1;
  transform: none;
  padding: 2%
}

.lchip:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 34px -14px rgba(0, 166, 251, .45)
}

/* dark logos get a soft light pool behind them so they stay readable */
.orbit-card.dk::before,
.lchip.dk::before {
  content: "";
  position: absolute;
  inset: -12% -6%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 40%, rgba(255, 255, 255, 0) 72%)
}

.logo-rivers .ltrack {
  gap: 34px;
  padding-inline-end: 34px;
  align-items: center
}

/* ============================================================
   ACCESSIBILITY PASS — visible focus, skip link, safe targets
   ============================================================ */

/* Keyboard users get a clear focus ring on every interactive element.
   Mouse/touch users don't (":focus:not(:focus-visible)"). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none
}

/* Skip to main content — first tab stop, hidden until focused */
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  /* GPU-safe: animate transform, never `top` */
  transform: translateY(calc(-100% - 24px));
  transition: transform .18s var(--ease)
}

.skip-link:focus {
  transform: translateY(0)
}

/* Interactive cards should say so */
.work,
.tilt,
.nav-toggle {
  cursor: pointer
}

/* ============================================================
   HIGH-END POLISH — motion easing, pressed states, typography
   Brand book unchanged: navy/sky palette + Tajawal/Poppins stay.
   ============================================================ */

:root {
  /* premium spring-ish curve, replaces default `ease` everywhere */
  --ease: cubic-bezier(.32, .72, 0, 1)
}

/* Physical press feedback. `scale` composes with the magnetic-hover
   inline `transform`, so it survives site.js writing to transform. */
.btn:active,
.nav-toggle:active,
.work:active,
.tilt:active {
  scale: .98
}

.lchip:active {
  scale: .96
}

/* Screen readers should know which nav item is the current page.
   site.js already applies `.active`; this styles the ARIA state too. */
.nav-links a[aria-current="page"] {
  opacity: 1;
  color: var(--accent)
}

/* Kill orphaned words on headings; keep body copy readable. */
h1, h2, h3, .sec-head h2, .t3d-head h2 {
  text-wrap: balance
}

p, .lead, .about-body {
  text-wrap: pretty
}

@media(prefers-reduced-motion:reduce) {
  .skip-link {
    transition: none
  }

  .btn:active,
  .nav-toggle:active,
  .work:active,
  .tilt:active,
  .lchip:active {
    scale: 1
  }
}

/* ============================================================
   PAGE-WIDE 3D AGENT (agent-follow.js)
   Fixed to the viewport, drifts per section, faces the cursor.
   ============================================================ */
#agent-follow {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 150px;
  height: 180px;
  z-index: 45;
  /* wrapper ignores the mouse; only the canvas is clickable */
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--ax, 0), var(--ay, 0), 0);
  transition: transform .9s var(--ease), opacity .6s var(--ease)
}

#agent-follow.ready {
  opacity: 1
}

/* Decorative only. Stays pointer-events:none so this fixed corner box can
   never swallow clicks on the content underneath it. z-index lifts the
   robot above the halo, which is absolutely positioned. */
#agent-follow canvas {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none
}

/* fake contact shadow — far cheaper than a real shadow map */
#agent-follow .af-halo {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 88px;
  height: 14px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 166, 251, .45), transparent 70%);
  filter: blur(5px);
  pointer-events: none
}

/* never render on small screens or for reduced-motion users
   (agent-follow.js also refuses to initialise in those cases) */
@media(max-width:900px) {
  #agent-follow {
    display: none
  }
}

@media(prefers-reduced-motion:reduce) {
  #agent-follow {
    display: none
  }
}
