/* ==========================================================================
   KhadimSoft — styles
   ========================================================================== */
:root {
  --bg: #07090D;
  --bg-alt: #0A0D13;
  --surface: rgba(255, 255, 255, .028);
  --surface-2: rgba(255, 255, 255, .05);
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .14);
  --text: #EDF0F5;
  --muted: #98A1B0;
  --dim: #6B7383;
  --teal: #5EEAD4;
  --sky: #38BDF8;
  --indigo: #818CF8;
  --grad: linear-gradient(120deg, #5EEAD4 0%, #38BDF8 45%, #818CF8 100%);
  --ink: #04201C;
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -.025em; font-weight: 600; }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: rgba(94, 234, 212, .3); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; position: relative; z-index: 1; }
.narrow { max-width: 820px; }
.center { display: flex; justify-content: center; margin-top: 48px; }
.center-text { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; margin-top: 16px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--sm { width: 18px; height: 18px; }
.ico--xs { width: 14px; height: 14px; stroke-width: 2.2; }

.skip { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--teal); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 10px; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--grad); background-size: 160% 100%; background-position: 0% 0;
  color: var(--ink); font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 30px -10px rgba(56, 189, 248, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
  transform: translate(var(--bx), var(--by));
  transition: background-position .5s var(--ease), box-shadow .3s, transform .25s var(--ease);
}
.btn:hover { background-position: 100% 0; box-shadow: 0 12px 40px -10px rgba(129, 140, 248, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); box-shadow: none; backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; color: var(--text); overflow: visible; }
.brand__name { font: 700 19px/1 var(--display); letter-spacing: -.03em; }
.brand__name span { font-weight: 500; color: var(--muted); }
.lm-dot { transform-origin: 31px 20px; transition: transform .4s var(--ease); }
.brand:hover .lm-dot { transform: scale(1.35); }
.js .nav .lm-bar { transform-origin: 9px 34px; animation: lm-grow .6s var(--ease) .1s both; }
.js .nav .lm-chev { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: lm-draw .9s var(--ease) .35s forwards; }
.js .nav .lm-dot { animation: lm-pop .5s var(--ease) 1.05s both; }
@keyframes lm-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes lm-draw { to { stroke-dashoffset: 0; } }
@keyframes lm-pop { from { transform: scale(0); } 70% { transform: scale(1.4); } to { transform: scale(1); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.is-scrolled, .nav.is-open { background: rgba(7, 9, 13, .72); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px); border-bottom-color: var(--border); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link[aria-current="page"], .has-mega:hover > .nav__link, .has-mega:focus-within > .nav__link { color: var(--text); background: var(--surface-2); }
.nav__link .ico { transition: transform .25s var(--ease); }
.has-mega:hover > .nav__link .ico, .has-mega:focus-within > .nav__link .ico { transform: rotate(180deg); }
.nav__cta { margin-left: 10px; }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.has-mega { position: relative; }
.mega {
  position: absolute; top: 100%; left: 50%; padding-top: 14px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__inner {
  width: 860px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px;
  background: rgba(12, 15, 21, .96); backdrop-filter: blur(20px); border: 1px solid var(--border-2); border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.mega__title { font: 600 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--c); padding: 8px 10px 12px; }
.mega__link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: 14px; text-decoration: none; transition: background .2s, color .2s; }
.mega__link .ico { width: 18px; height: 18px; color: var(--c); opacity: .85; }
.mega__link:hover { background: var(--surface-2); color: var(--text); }
.mega__all { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; padding: 12px; border-top: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.mega__all:hover { color: var(--teal); }

/* ---------- Background decorations ---------- */
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orbs span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; will-change: transform; }
.orbs span:nth-child(1) { width: 520px; height: 520px; background: rgba(94, 234, 212, .22); top: -180px; right: -120px; animation: float1 18s ease-in-out infinite; }
.orbs span:nth-child(2) { width: 440px; height: 440px; background: rgba(129, 140, 248, .2); top: 30%; left: -200px; animation: float2 22s ease-in-out infinite; }
.orbs span:nth-child(3) { width: 360px; height: 360px; background: rgba(56, 189, 248, .14); bottom: -160px; right: 20%; animation: float3 26s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(-80px, 60px) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(100px, -40px) scale(.9); } }
@keyframes float3 { 50% { transform: translate(-60px, -80px) scale(1.15); } }
.gridbg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 60px) 0 120px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero__inner { max-width: var(--max); }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; margin-bottom: 28px;
  border: 1px solid var(--border-2); border-radius: 999px; background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px);
  font-size: 14px; color: var(--muted); text-decoration: none; transition: border-color .2s, color .2s;
}
.badge:hover { border-color: rgba(94, 234, 212, .5); color: var(--text); }
.badge__dot, .status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(94, 234, 212, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(94, 234, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); } }
.hero__title { font-size: clamp(48px, 9vw, 112px); font-weight: 700; letter-spacing: -.045em; line-height: .98; }
.hero__title .line { display: block; }
.rotator { display: inline-block; position: relative; }
.rotator__word { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.rotator__word.is-out { animation: word-out .45s var(--ease) forwards; }
.rotator__word.is-in { animation: word-in .55s var(--ease) both; }
@keyframes word-out { to { opacity: 0; transform: translateY(-40%); filter: blur(6px); } }
@keyframes word-in { from { opacity: 0; transform: translateY(40%); filter: blur(6px); } }
.hero__lead { margin-top: 32px; max-width: 620px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__cta--center { justify-content: center; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 56px; }
.hero__tags li { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.hero__tags li span { width: 8px; height: 8px; border-radius: 2px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.scroll-cue { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 1; width: 26px; height: 42px; border: 1.5px solid var(--border-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--teal); animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 1; padding: 26px 0; border-block: 1px solid var(--border); background: var(--bg-alt); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 56px; padding-right: 56px; }
.marquee li { font: 500 18px/1 var(--display); color: var(--dim); white-space: nowrap; transition: color .2s; }
.marquee li:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(88px, 11vw, 140px) 0; overflow: hidden; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section--alt .orbs { opacity: .5; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2, .h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 600; }
.h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 28px; }
.section__sub { margin-top: 18px; font-size: 18px; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--c, var(--teal)); font: 600 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.section__head--center .eyebrow::after { content: ""; width: 18px; height: 1.5px; background: currentColor; }

/* ---------- Spotlight effect ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c, #5EEAD4) 16%, transparent), transparent 45%);
}
.spot:hover::before { opacity: 1; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: 32px 28px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font: 700 clamp(40px, 5vw, 60px)/1 var(--display); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }

/* ---------- Practices ---------- */
.practices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.practice {
  display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, transparent), transparent 40%), var(--surface);
  border: 1px solid var(--border); transition: border-color .3s, transform .4s var(--ease);
}
.practice:hover { border-color: color-mix(in srgb, var(--c) 40%, transparent); transform: translateY(-4px); }
.practice__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.practice__num { font: 600 14px/1 var(--display); color: var(--c); }
.practice__count { font-size: 13px; color: var(--muted); padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; }
.practice h3 { font-size: 28px; }
.practice__tag { margin-top: 10px; color: var(--c); font-weight: 500; }
.practice__desc { margin-top: 14px; color: var(--muted); font-size: 15px; }
.practice__list { margin: 28px 0; border-top: 1px solid var(--border); flex: 1; }
.practice__list a { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--border); text-decoration: none; font-size: 15px; transition: color .2s, padding .3s var(--ease); }
.practice__list a .ico { color: var(--c); }
.practice__list a .arrow { margin-left: auto; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .3s var(--ease); }
.practice__list a:hover { color: var(--c); padding-left: 8px; }
.practice__list a:hover .arrow { opacity: 1; transform: none; }
.practice__more { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; }
.practice__more:hover { color: var(--c); }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1200px; }
.product {
  --rx: 0deg; --ry: 0deg;
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s var(--ease), border-color .3s, box-shadow .4s;
}
.product:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--c) 45%, transparent); }
.product.is-tilting { transition: transform .1s linear, border-color .3s, box-shadow .4s; }
.product__art {
  position: relative; height: 220px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--c) 40%, transparent), transparent 65%),
              radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--c2) 25%, transparent), transparent 55%), #0B0E14;
  border-bottom: 1px solid var(--border);
}
.product__ring { position: absolute; width: 230px; height: 230px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); animation: spin 30s linear infinite; }
.product__ring--2 { width: 150px; height: 150px; border-style: solid; border-color: color-mix(in srgb, var(--c2) 30%, transparent); animation-duration: 18s; animation-direction: reverse; }
.product__ring::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); }
.product__ring--2::after { background: var(--c2); box-shadow: 0 0 14px var(--c2); }
@keyframes spin { to { transform: rotate(360deg); } }
.product__icon {
  position: relative; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, #0B0E14), color-mix(in srgb, var(--c2) 22%, #0B0E14));
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); color: var(--c);
  box-shadow: 0 20px 50px -10px color-mix(in srgb, var(--c) 55%, transparent);
  animation: bob 5s ease-in-out infinite; transform: translateZ(40px);
}
.product__icon .ico { width: 34px; height: 34px; stroke-width: 1.6; }
@keyframes bob { 50% { translate: 0 -8px; } }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.product__tag { font-size: 13px; color: var(--c); font-weight: 600; letter-spacing: .04em; }
.product h3 { font-size: 24px; margin: 8px 0 12px; }
.product__desc { color: var(--muted); font-size: 15px; }
.product__feats { margin: 20px 0 24px; display: grid; gap: 8px; flex: 1; align-content: start; }
.product__feats li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #C9CFD9; }
.product__feats .ico { color: var(--c); }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.status__dot { background: var(--c); }
.product__platform { font-size: 13px; color: var(--muted); padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; }

/* ---------- Process ---------- */
.process { position: relative; }
.process__line { position: absolute; top: 27px; left: 28px; right: 28px; height: 1px; background: var(--border); }
.process__line::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.8s var(--ease) .2s; }
.process.is-visible .process__line::after { transform: scaleX(1); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step__num {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 28px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--border-2); font: 600 16px/1 var(--display); color: var(--c, var(--teal));
}
.section--alt .step__num { background: var(--bg-alt); }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__item { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, transform .4s var(--ease); }
.why__item:hover { border-color: var(--border-2); transform: translateY(-4px); }
.why__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 14px; color: var(--teal); background: linear-gradient(135deg, rgba(94, 234, 212, .16), rgba(129, 140, 248, .12)); border: 1px solid rgba(94, 234, 212, .2); }
.why__item h3 { font-size: 19px; margin-bottom: 10px; }
.why__item p { color: var(--muted); font-size: 15px; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.member { --c: #5EEAD4; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, transform .4s var(--ease); }
.member:hover { border-color: var(--border-2); transform: translateY(-4px); }
.member__avatar, .member__photo { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 22px; }
.member__photo { object-fit: cover; border: 2px solid var(--border-2); }
.member__avatar { position: relative; display: grid; place-items: center; background: #0D1118; font: 700 26px/1 var(--display); }
.member__avatar::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; padding: 2px; background: conic-gradient(from 0deg, #5EEAD4, #38BDF8, #818CF8, #5EEAD4); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 8s linear infinite; }
.member__avatar span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.member__avatar--open { border: 1.5px dashed var(--border-2); color: var(--muted); background: transparent; }
.member__avatar--open::before { display: none; }
.member--open { background: transparent; border-style: dashed; }
.member h3 { font-size: 21px; }
.member__role { margin-top: 6px; color: var(--teal); font-size: 14px; font-weight: 500; }
.member__text { margin-top: 14px; color: var(--muted); font-size: 15px; }
.member__text a { color: var(--teal); }
.member .chips { margin-top: 18px; }
.member__links { display: flex; gap: 16px; margin-top: 18px; }
.member__links a { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.member__links a:hover { color: var(--teal); }
.team--full { grid-template-columns: 1fr; }
.member--full { display: grid; grid-template-columns: auto 1fr; gap: 32px; padding: 40px; }
.member--full .member__avatar, .member--full .member__photo { width: 120px; height: 120px; font-size: 36px; margin: 0; }
.member--full .member__text { font-size: 16px; max-width: 72ch; }
.team--full .member--open { grid-template-columns: auto 1fr; display: grid; gap: 32px; padding: 40px; }
.team--full .member--open .member__avatar { width: 120px; height: 120px; margin: 0; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; color: #C9CFD9; transition: border-color .2s, color .2s; }
.chips li:hover { border-color: color-mix(in srgb, var(--c, #5EEAD4) 50%, transparent); color: var(--text); }
.chips--sm li { padding: 5px 11px; font-size: 12.5px; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding: clamp(40px, 6vw, 72px); border-radius: 28px; border: 1px solid var(--border-2);
  background: linear-gradient(135deg, rgba(94, 234, 212, .1), rgba(56, 189, 248, .06) 50%, rgba(129, 140, 248, .12));
}
.cta__glow { position: absolute; width: 600px; height: 600px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(94, 234, 212, .25), transparent); animation: float1 14s ease-in-out infinite; pointer-events: none; }
.cta__text { position: relative; max-width: 560px; }
.cta h2 { font-size: clamp(32px, 4.5vw, 52px); }
.cta__text > p:last-child { margin-top: 16px; color: var(--muted); font-size: 18px; }
.cta__actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(72px, 10vw, 130px)) 0 clamp(64px, 8vw, 100px); border-bottom: 1px solid var(--border); }
.page-hero--short { padding-bottom: clamp(48px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 700; letter-spacing: -.04em; max-width: 16ch; }
.page-hero__lead { margin-top: 24px; max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.crumbs { display: flex; gap: 10px; margin-bottom: 28px; font-size: 14px; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.svc-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.page-hero--service h1 { font-size: clamp(40px, 6vw, 72px); }
.page-hero--service .eyebrow { color: var(--c); }
.page-hero--service .orbs span:nth-child(1) { background: color-mix(in srgb, var(--c) 28%, transparent); }
.emblem { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.emblem__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); animation: spin 40s linear infinite; }
.emblem__ring::after { content: ""; position: absolute; top: 10%; left: 10%; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 18px var(--c); }
.emblem__ring--2 { inset: 16%; border-style: solid; border-color: rgba(255, 255, 255, .08); animation-duration: 25s; animation-direction: reverse; }
.emblem__ring--2::after { background: #818CF8; box-shadow: 0 0 18px #818CF8; top: auto; bottom: 6%; left: 80%; }
.emblem__ring--3 { inset: 32%; border: 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, transparent), transparent); animation: breathe 5s ease-in-out infinite; }
.emblem__ring--3::after { display: none; }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .7; } }
.emblem__icon {
  position: relative; width: 112px; height: 112px; border-radius: 32px; display: grid; place-items: center; color: var(--c);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, #0B0E14), #0B0E14); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--c) 60%, transparent); animation: bob 6s ease-in-out infinite;
}
.emblem__icon .ico { width: 50px; height: 50px; stroke-width: 1.5; }

/* ---------- Services grid + filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); font: 500 14px/1 var(--font); transition: all .25s;
}
.filter span { font-size: 12px; padding: 3px 7px; border-radius: 999px; background: var(--surface-2); }
.filter:hover { color: var(--text); border-color: var(--border-2); }
.filter.is-active { color: var(--ink); background: var(--c, var(--teal)); border-color: transparent; }
.filter.is-active span { background: rgba(0, 0, 0, .15); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, transform .4s var(--ease), opacity .4s;
}
.svc-card:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); transform: translateY(-4px); }
.svc-card.is-hidden { display: none; }
.svc-card.is-filtered-in { animation: card-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.svc-card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); transition: transform .4s var(--ease); }
.svc-card:hover .svc-card__icon { transform: rotate(-6deg) scale(1.06); }
.svc-card__cat { margin-top: 24px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.svc-card h3 { margin-top: 8px; font-size: 21px; }
.svc-card p { margin-top: 10px; color: var(--muted); font-size: 15px; flex: 1; }
.svc-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--text); }
.svc-card__more .ico { transition: transform .3s var(--ease); }
.svc-card:hover .svc-card__more .ico { transform: translateX(4px); }
.svc-card:hover .svc-card__more { color: var(--c); }

/* ---------- Service detail ---------- */
.deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.deliver { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s; }
.deliver:hover { border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.deliver__num { font: 600 14px/1 var(--display); color: var(--c); }
.deliver h3 { margin: 18px 0 10px; font-size: 22px; }
.deliver p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.checklist .ico { margin-top: 3px; padding: 3px; width: 24px; height: 24px; border-radius: 50%; color: var(--ink); background: var(--c); stroke-width: 2.6; }
.faqs { display: grid; gap: 12px; }
.faq { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .3s, background .3s; }
.faq[open] { border-color: var(--border-2); background: var(--surface-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; cursor: pointer; list-style: none; font: 600 18px/1.4 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-2); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq p { padding: 0 24px 24px; color: var(--muted); animation: faq-in .4s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- About ---------- */
.split--story { align-items: center; }
.meaning {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 4 / 3;
  border-radius: 28px; border: 1px solid var(--border-2); overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(94, 234, 212, .14), transparent 60%), var(--surface);
}
.meaning__word { font: 700 clamp(72px, 11vw, 140px)/1.1 "Noto Naskh Arabic", "Segoe UI", serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.meaning__roman { font: 600 22px/1 var(--display); letter-spacing: .04em; }
.meaning__def { color: var(--muted); font-style: italic; }
.prose-p { color: #C4CAD4; font-size: 17px; }
.prose-p + .prose-p { margin-top: 16px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.form { --c: #38BDF8; display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 500; color: #C9CFD9; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border-2); background: rgba(0, 0, 0, .25);
  color: var(--text); font: 400 15px/1.5 var(--font); transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398A1B0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field select option, .field select optgroup { background: #0F1217; color: var(--text); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(94, 234, 212, .12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #F87171; }
.form__note { font-size: 13px; color: var(--dim); text-align: center; }
.form__note.is-success { color: var(--teal); }
.form__note.is-error { color: #F87171; }
.contact__side { display: grid; gap: 18px; }
.contact__card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.contact__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; color: var(--teal); background: rgba(94, 234, 212, .1); }
.contact__card h3 { font-size: 18px; margin-bottom: 10px; }
.contact__mail { color: var(--teal); font-weight: 500; text-decoration: none; word-break: break-all; }
.mini-steps { counter-reset: s; display: grid; gap: 10px; }
.mini-steps li { counter-increment: s; display: flex; gap: 12px; color: var(--muted); font-size: 15px; }
.mini-steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 600; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 44px 0 14px; }
.prose p, .prose li { color: #C4CAD4; }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--teal); }

/* ---------- 404 ---------- */
.nf { min-height: 80vh; display: flex; align-items: center; }
.nf h1 { margin-inline: auto; }
.nf .page-hero__lead { margin-inline: auto; }
.nf__code { font: 700 clamp(100px, 20vw, 220px)/1 var(--display); letter-spacing: -.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 80px 0 36px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer__brand p { margin: 18px 0 20px; color: var(--muted); font-size: 15px; max-width: 300px; }
.footer__mail { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; text-decoration: none; }
.footer__mail:hover { color: var(--teal); }
.footer__title { margin-bottom: 18px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--dim); font-size: 14px; }

/* ---------- Motion: entrance ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease), border-color .3s; transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.is-visible:hover { transition-delay: 0s; }
.js .svc-card.reveal.is-visible:hover, .js .practice.reveal.is-visible:hover, .js .why__item.reveal.is-visible:hover, .js .member.reveal.is-visible:hover { transform: translateY(-4px); }
.js .load-in { opacity: 0; animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .mega__inner { width: 760px; }
}
@media (max-width: 960px) {
  .practices, .products, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .practices .practice:last-child, .products .product:last-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process__line { display: none; }
  .svc-hero { grid-template-columns: 1fr; }
  .svc-hero__art { display: none; }
  .split, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    flex-direction: column; align-items: stretch; gap: 4px; padding: 24px; overflow-y: auto;
    background: rgba(7, 9, 13, .97); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 16px 4px; font: 600 26px/1.1 var(--display); color: var(--text); border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav__link:hover, .nav__link[aria-current="page"] { background: none; color: var(--teal); }
  .nav__link .ico, .mega { display: none; }
  .nav__cta { margin: 24px 0 0; padding: 16px; font-size: 16px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .practices, .products, .svc-grid, .why, .deliverables, .steps { grid-template-columns: 1fr; }
  .practices .practice:last-child, .products .product:last-child { grid-column: auto; }
  .stat { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .member--full, .team--full .member--open { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
  .member--full .member__avatar, .member--full .member__photo, .team--full .member--open .member__avatar { width: 88px; height: 88px; font-size: 28px; }
  .hero__tags { gap: 10px 18px; }
  .scroll-cue { display: none; }
  .cta__actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; }
}
