/* =========================================================
   IT Oasis UAE — brand palette taken from the IT Oasis logo:
   globe yellow → orange, "IT" red → crimson, charcoal type.
   ========================================================= */
:root {
  --red: #E3242B;
  --red-deep: #8E1B24;
  --orange: #F47A20;
  --yellow: #FDB913;
  --ink-0: #0B0B0C;
  --ink-1: #121213;
  --ink-2: #1A1A1C;
  --ink-3: #26262A;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .75, .15, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --r: 18px;
  --wrap: 1240px;
}

/* Dark theme (default) */
:root, [data-theme="dark"] {
  --bg: var(--ink-0);
  --bg-alt: var(--ink-1);
  --surface: var(--ink-2);
  --surface-2: var(--ink-3);
  --text: #F3F1ED;
  --muted: #9C9993;
  --faint: #5F5D59;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  --plan-stroke: rgba(255, 255, 255, .28);
  --plan-fill: rgba(255, 255, 255, .04);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F5F2EC;
  --bg-alt: #ECE7DF;
  --surface: #FFFFFF;
  --surface-2: #F7F4EF;
  --text: #141414;
  --muted: #5D5A54;
  --faint: #9A968F;
  --line: rgba(20, 20, 20, .09);
  --line-2: rgba(20, 20, 20, .18);
  --shadow: 0 30px 60px -32px rgba(60, 40, 20, .35);
  --plan-stroke: rgba(20, 20, 20, .35);
  --plan-fill: rgba(20, 20, 20, .03);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .big-cta { font-family: var(--font-ar); letter-spacing: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -.025em; line-height: 1.04; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico--sm { width: 18px; height: 18px; }
.ico--xs { width: 14px; height: 14px; }
html[dir="rtl"] .btn .ico, .flip { transform: scaleX(-1); }
html[dir="rtl"] .flip { transform: none; }
html[dir="rtl"] #railNext .ico { transform: scaleX(-1); }

/* progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 80; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), var(--orange), var(--red)); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; overflow: hidden;
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
  isolation: isolate;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleY(1); }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .ico { transform: scaleX(-1) translateX(4px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red::before { background: var(--red-deep); }
.btn--line { border-color: var(--line-2); color: var(--text); }
.btn--line::before { background: var(--text); }
.btn--line:hover { color: var(--on-text, var(--bg)); border-color: var(--text); }
/* Sections that stay dark in both themes: hover fill is light, so hover text must be dark */
.sec--ink, .hero--photo, .phero--img { --on-text: #0B0B0C; }
.btn--white { background: #fff; color: var(--ink-0); }
.btn--white::before { background: var(--ink-0); }
.btn--white:hover { color: #fff; }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--full { width: 100%; }

.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.lang-btn { font-family: var(--font-ar); font-weight: 600; font-size: 16px; }
html[lang="ar"] .lang-btn { font-family: var(--font); font-size: 13px; }

.theme-btn { position: relative; overflow: hidden; }
.theme-btn .ico { position: absolute; transition: transform .6s var(--ease), opacity .4s; }
[data-theme="dark"] .theme-btn__sun { transform: translateY(0) rotate(0); opacity: 1; }
[data-theme="dark"] .theme-btn__moon { transform: translateY(26px) rotate(-90deg); opacity: 0; }
[data-theme="light"] .theme-btn__sun { transform: translateY(-26px) rotate(90deg); opacity: 0; }
[data-theme="light"] .theme-btn__moon { transform: translateY(0) rotate(0); opacity: 1; }

/* ---------- header ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; padding: 16px 0; transition: padding .4s var(--ease), background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { padding: 8px 0; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px) saturate(150%); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav { transition: transform .45s var(--ease), padding .4s var(--ease), background .4s, border-color .4s; }
.nav__inner { display: flex; align-items: center; gap: 28px; }

.logo { position: relative; display: flex; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.logo__img { height: 56px; width: auto; transition: height .4s var(--ease); }
.nav.is-scrolled .logo__img { height: 46px; }
.logo__uae { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .2em; color: var(--red); padding-bottom: 4px; }
[data-theme="dark"] .logo__img--onLight, [data-theme="light"] .logo__img--onDark { display: none; }

.menu { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.menu__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px;
  border: 0; background: none; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .25s;
}
.menu__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.menu__link:hover, .menu__item:hover > .menu__link, .menu__item.is-open > .menu__link { color: var(--text); }
.menu__link:hover::after, .menu__item:hover > .menu__link::after { transform: scaleX(1); transform-origin: left; }
.menu__toggle .ico { transition: transform .35s var(--ease); }
.menu__item { position: relative; }
.menu__item:hover .menu__toggle .ico, .menu__item.is-open .menu__toggle .ico { transform: rotate(180deg); }

.drop {
  position: absolute; top: calc(100% + 12px); inset-inline-start: -10px; min-width: 280px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: top left;
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility .25s;
}
.drop::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.menu__item:hover .drop, .menu__item.is-open .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: grid; padding: 10px 12px; border-radius: 10px; font-size: 15px; color: var(--text); transition: background .2s, padding .3s var(--ease); }
.drop a:hover { background: var(--surface-2); padding-inline-start: 18px; }
.drop a b { font-weight: 600; }
.drop a small { color: var(--muted); font-size: 13.5px; }
.drop--mega { display: grid; grid-template-columns: repeat(3, 210px); gap: 8px; padding: 18px; inset-inline-start: -160px; }
.drop__head { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); padding: 0 12px 8px; }
html[lang="ar"] .drop__head, html[lang="ar"] .label, html[lang="ar"] .logo__uae { letter-spacing: 0; }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: none; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: radial-gradient(80% 70% at 70% 40%, #000 20%, transparent 75%);
  opacity: .7;
}
.hero__globe { position: absolute; top: 52%; inset-inline-end: -8vw; translate: 0 -46%; width: min(820px, 70vw); aspect-ratio: 1; pointer-events: none; }
html[dir="rtl"] .hero__globe { transform: scaleX(-1); }
.hero__inner { position: relative; z-index: 2; padding-bottom: 56px; }

.ticker { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 36px; font-size: 14px; color: var(--muted); }
.ticker__item { display: inline-flex; align-items: center; gap: 8px; }
.ticker b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(253,185,19,.6); animation: ping 2.2s infinite; }
.dot.is-closed { background: var(--faint); animation: none; }

.hero__title { font-size: clamp(46px, 8.4vw, 128px); font-weight: 700; line-height: .96; letter-spacing: -.045em; max-width: 13ch; }
html[lang="ar"] .hero__title { line-height: 1.2; font-size: clamp(40px, 7vw, 104px); max-width: 14ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero.is-ready .hero__title .line > span { transform: none; }
.hero.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.swap { color: var(--red); position: relative; }
.swap .ch { display: inline-block; transition: transform .5s var(--ease), opacity .4s; }
.swap .ch.out { transform: translateY(-60%) rotate(-6deg); opacity: 0; }
.swap .ch.in { transform: translateY(60%) rotate(6deg); opacity: 0; }

.hero__bottom { display: grid; grid-template-columns: minmax(0, 540px) auto; gap: 40px; align-items: end; justify-content: space-between; margin-top: 40px; }
.hero__lead { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.strip { position: relative; z-index: 2; border-block: 1px solid var(--line); padding: 18px 0; overflow: hidden; }
.strip__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.strip span { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--muted); padding-inline: 26px; display: inline-flex; align-items: center; gap: 52px; white-space: nowrap; }
.strip span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--yellow), var(--orange)); }
html[dir="rtl"] .strip__track { animation-direction: reverse; }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(52px, 6vw, 80px) 0; }
.sec--alt { background: var(--bg-alt); }
.sec--ink { background: var(--ink-0); color: #F3F1ED; --text: #F3F1ED; --muted: #9C9993; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.18); --surface: var(--ink-2); --surface-2: var(--ink-3); }
[data-theme="dark"] .sec--ink { background: #000; }
.sec--red { background: radial-gradient(120% 120% at 0% 0%, #F0453B 0%, var(--red) 35%, var(--red-deep) 100%); color: #fff; --muted: rgba(255,255,255,.78); --line: rgba(255,255,255,.22); }

.sec__head { max-width: 900px; margin-bottom: 34px; }
.sec__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.label { display: inline-flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 22px; }
.label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--yellow), var(--orange)); }
.label--light { color: #fff; }
.label--light::before { background: #fff; }
.sec h2 { font-size: clamp(34px, 5vw, 68px); max-width: 20ch; }
html[lang="ar"] .sec h2 { line-height: 1.3; }
.sec__sub { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 58ch; }
.fine { margin-top: 22px; font-size: 13.5px; color: var(--muted); }

/* split headline animation */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.split.is-in .w > span { transform: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal[data-d="1"] { transition-delay: .1s; } .reveal[data-d="2"] { transition-delay: .2s; } .reveal[data-d="3"] { transition-delay: .3s; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- services index ---------- */
.index { position: relative; border-top: 1px solid var(--line); }
.index__group { display: grid; grid-template-columns: 340px 1fr; gap: 40px; padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.index__cat { position: sticky; top: 100px; align-self: start; display: flex; gap: 14px; align-items: baseline; font-family: var(--font-display); font-size: clamp(26px, 2.7vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.index__cat span:first-child { font-size: 14px; color: var(--red); font-family: var(--font); font-weight: 600; }
.index ol { list-style: none; margin: 0; padding: 0; }
.row {
  position: relative; display: grid; grid-template-columns: 56px 1fr 30px; align-items: baseline; column-gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--line); cursor: default;
}
.row:last-child { border-bottom: 0; }
.row::before { content: ""; position: absolute; inset: 0 -20px; background: var(--surface); border-radius: 14px; opacity: 0; transform: scaleY(.6); transition: opacity .35s, transform .45s var(--ease); z-index: -1; }
.row:hover::before { opacity: 1; transform: none; }
.row__n { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row h3 { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.03em; transition: transform .5s var(--ease), color .3s; }
.row p { grid-column: 2; max-width: 60ch; color: var(--muted); font-size: 15.5px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s, margin .5s var(--ease); }
.row:hover p, .row:focus-within p { max-height: 120px; opacity: 1; margin-top: 10px; }
.row:hover h3 { transform: translateX(10px); }
html[dir="rtl"] .row:hover h3 { transform: translateX(-10px); }
.row__arrow { grid-column: 3; grid-row: 1; align-self: center; color: var(--muted); transition: transform .45s var(--ease), color .3s; }
.row:hover .row__arrow { color: var(--red); transform: rotate(45deg); }
.peek { position: fixed; top: 0; left: 0; width: 280px; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(.7) rotate(-4deg); transition: opacity .35s, transform .5s var(--ease); box-shadow: var(--shadow); }
.peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- packages / plan ---------- */
.pkg { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.seg { display: inline-flex; gap: 4px; padding: 5px; margin: 34px 0 20px; border: 1px solid var(--line-2); border-radius: 999px; position: relative; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .3s; }
.seg button.is-on { color: #fff; }
.seg__pill { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: var(--red); transition: left .5s var(--ease), width .5s var(--ease); }
.pkg__desc { min-height: 3.2em; font-size: 16.5px; color: var(--text); max-width: 46ch; transition: opacity .3s; }
.incl { list-style: none; padding: 0; margin: 22px 0 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.incl li { font-size: 14px; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); }

.plan { margin: 0; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.plan__cap { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 2px 6px 14px; }
.plan__cap b { color: var(--text); font-weight: 600; }
.plan__svg { width: 100%; height: auto; font-family: var(--font); }
.wall { fill: var(--plan-fill); stroke: var(--plan-stroke); stroke-width: 2.5; }
.wall-in { stroke: var(--plan-stroke); stroke-width: 2; fill: none; }
.zone { stroke: none; }
.hatch { stroke: var(--line-2); stroke-width: 1; }
.furn { fill: none; stroke: var(--plan-stroke); stroke-width: 1.2; stroke-dasharray: 3 3; transition: opacity .5s; }
.door { stroke: var(--orange); stroke-width: 3; }
.room { font-size: 11px; letter-spacing: .14em; fill: var(--muted); font-weight: 600; }
.cable { fill: none; stroke: var(--orange); stroke-width: 1.4; stroke-dasharray: 6 6; opacity: .65; animation: flow 1.4s linear infinite; }
.hs { opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .5s; }
.plan.is-in .hs { opacity: 1; transition-delay: var(--d); }
.hs__dot { fill: var(--red); }
.hs__ring { fill: none; stroke: var(--red); stroke-width: 1.5; opacity: .6; transform-box: fill-box; transform-origin: center; animation: ring 2.4s var(--ease) infinite; animation-delay: var(--d); }
.hs__t { font-size: 12.5px; font-weight: 600; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.plan .opt-rest, .plan .opt-retail, .plan.is-in .hs.opt-rest, .plan.is-in .hs.opt-retail { opacity: 0; transition-delay: 0s; pointer-events: none; }
.plan[data-pkg="rest"] .opt-rest, .plan[data-pkg="retail"] .opt-retail,
.plan.is-in[data-pkg="rest"] .hs.opt-rest, .plan.is-in[data-pkg="retail"] .hs.opt-retail { opacity: 1; }
.plan[data-pkg="retail"] .tables { opacity: 0; }
.tables { transition: opacity .5s; }

/* ---------- e-invoicing ---------- */
.ei { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; margin-bottom: 36px; }
.count { text-align: end; }
html[dir="rtl"] .count { text-align: start; }
.count__num { font-family: var(--font-display); font-size: clamp(110px, 16vw, 230px); font-weight: 700; line-height: .82; letter-spacing: -.06em; background: linear-gradient(180deg, var(--yellow) 0%, var(--orange) 50%, var(--red) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.count__lbl { margin-top: 16px; color: var(--muted); font-size: 15px; }

.tl { margin-bottom: 40px; }
.tl__bar { position: relative; height: 4px; background: var(--line-2); border-radius: 4px; margin-bottom: 26px; }
.tl__fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--yellow), var(--orange), var(--red)); transition: width 1.8s var(--ease-io); }
html[dir="rtl"] .tl__fill { background: linear-gradient(270deg, var(--yellow), var(--orange), var(--red)); }
.tl__today { position: absolute; top: 50%; inset-inline-start: 0; translate: -50% -50%; display: grid; justify-items: center; transition: inset-inline-start 1.8s var(--ease-io); }
html[dir="rtl"] .tl__today { translate: 50% -50%; }
.tl__today i { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--red); box-shadow: 0 0 0 6px rgba(227,36,43,.25); }
.tl__today b { position: absolute; bottom: 22px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); white-space: nowrap; }
.tl__marks { position: relative; height: 70px; }
.tl__m { position: absolute; inset-inline-start: var(--p); top: 0; width: 170px; translate: -50% 0; text-align: center; font-size: 14px; }
html[dir="rtl"] .tl__m { translate: 50% 0; }
.tl__m:first-child { translate: 0 0; text-align: start; }
.tl__m:last-child { translate: -100% 0; text-align: end; }
html[dir="rtl"] .tl__m:first-child { translate: 0 0; } html[dir="rtl"] .tl__m:last-child { translate: 100% 0; }
.tl__m::before { content: ""; position: absolute; top: -33px; left: 50%; width: 1px; height: 14px; background: var(--line-2); }
.tl__m:first-child::before { left: 0; } .tl__m:last-child::before { left: auto; right: 0; }
.tl__m b { display: block; font-weight: 600; }
.tl__m span { color: var(--muted); }
.tl__m--key b { color: var(--orange); }

.trio { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.trio > * { padding: 30px 30px 10px 0; }
.trio > * + * { padding-inline-start: 30px; border-inline-start: 1px solid var(--line); }
.trio--cards { border: 0; gap: 20px; }
.trio--cards > *, .trio--cards > * + * { padding: 30px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.trio span { font-size: 15px; color: var(--red); font-weight: 600; }
.trio h3 { font-size: 24px; margin: 14px 0 10px; }
.trio p { color: var(--muted); font-size: 15px; }

/* ---------- managed IT ---------- */
.mit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 34px 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 15px; }
.checks .ico { width: 18px; height: 18px; color: var(--red); stroke-width: 2.4; }
.console { background: #0E0E0F; color: #E8E6E1; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.console__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #8A8780; }
.console__bar i { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.console__bar i:nth-child(1) { background: var(--red); } .console__bar i:nth-child(2) { background: var(--orange); } .console__bar i:nth-child(3) { background: var(--yellow); }
.console__bar span { margin-inline-start: 10px; }
.console__log { list-style: none; margin: 0; padding: 22px 20px; min-height: 270px; font-size: 14px; line-height: 1.75; }
.console__log li { display: grid; grid-template-columns: 52px 92px 1fr; gap: 10px; opacity: 0; transform: translateY(6px); animation: logIn .5s var(--ease) forwards; }
.console__log time { color: #6E6B65; }
.console__log .tag { font-weight: 600; }
.tag--new { color: var(--yellow); } .tag--work { color: var(--orange); } .tag--fix { color: #6BD48E; } .tag--done { color: #8A8780; }
.console__log .caret { display: inline-block; width: 8px; height: 15px; background: var(--orange); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.console__foot { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: #8A8780; font-family: var(--font); }

/* ---------- case rail ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(520px, 82vw); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px max(20px, calc((100vw - var(--wrap)) / 2)) 6px; scroll-padding-inline: max(20px, calc((100vw - var(--wrap)) / 2)); scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.case { scroll-snap-align: start; position: relative; padding: 36px; min-height: 420px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: transform .6s var(--ease), border-color .4s; user-select: none; }
.case:hover { transform: translateY(-8px); border-color: var(--line-2); }
.case__n { position: absolute; top: 14px; inset-inline-end: 26px; font-family: var(--font-display); font-size: 120px; font-weight: 700; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: -webkit-text-stroke-color .4s, transform .8s var(--ease); }
.case:hover .case__n { -webkit-text-stroke-color: var(--orange); transform: translateY(-6px); }
.case__loc { font-size: 16px; color: var(--red); font-weight: 600; max-width: calc(100% - 110px); min-height: 2.7em; line-height: 1.35; }
.case .tags { margin-top: auto; padding-top: 20px; }
.case h3 { font-size: 42px; margin: 70px 0 14px; }
.case > p:not(.case__n):not(.case__loc) { color: var(--muted); font-size: 15.5px; }
.tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.rail-ctrl { display: flex; align-items: center; gap: 10px; }
.rail-count { margin-inline-end: 6px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rail-count b { color: var(--text); font-weight: 600; }
#railNext { --dir: 1; } #railPrev { --dir: -1; }
html[dir="rtl"] #railNext { --dir: -1; } html[dir="rtl"] #railPrev { --dir: 1; }
.rail-ctrl .icon-btn { position: relative; width: 48px; height: 48px; overflow: hidden; }
.rail-ctrl .icon-btn:hover:not(.is-off) { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.06); }
.rail-ctrl .icon-btn:active:not(.is-off) { transform: scale(.94); }
.rail-ctrl .icon-btn.is-off { opacity: .35; cursor: default; }
.rail-ctrl .icon-btn.is-press .ico { animation: arrowSwap .55s var(--ease-io); }
.rail-ctrl .icon-btn.is-press::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(255,255,255,.28); animation: arrowRipple .55s var(--ease) forwards; }
.rail.is-moving { scroll-snap-type: none; }
.rail.is-moving .case { transform: scale(.985); }
.case.is-current { border-color: var(--orange); }
.case.is-current .case__n { -webkit-text-stroke-color: var(--orange); }
.rail-bar { height: 3px; margin-top: 20px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.rail-bar span { display: block; height: 100%; width: 25%; border-radius: inherit; background: linear-gradient(90deg, var(--yellow), var(--orange), var(--red)); transition: width .6s var(--ease); }

/* ---------- steps ---------- */
.steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 44px; }
.steps__line { position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--line-2); }
.steps__line span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: linear-gradient(90deg, var(--yellow), var(--orange), var(--red)); }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; top: -51px; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); transition: border-color .4s, background .4s; }
.steps li.is-on::before { border-color: var(--red); background: var(--red); }
.steps__n { font-size: 15px; color: var(--muted); }
.steps h3 { font-size: 24px; margin: 12px 0 12px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- partners ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-bottom: 28px; }
.partners article { padding: 34px 30px 20px 0; }
.partners article + article { padding-inline-start: 30px; border-inline-start: 1px solid var(--line); }
.partners span { font-size: 15px; opacity: .7; }
.partners h3 { font-size: 26px; margin: 14px 0 10px; }
.partners p { color: rgba(255,255,255,.82); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: 32px; }
.about__text { display: grid; gap: 18px; color: var(--muted); font-size: 17px; }
.stats { margin: 0 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats div { padding: 24px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s; }
.stats div:hover { transform: translateY(-4px); border-color: var(--orange); }
.stats dt { font-family: var(--font-display); font-size: clamp(52px, 6vw, 84px); font-weight: 700; line-height: 1; letter-spacing: -.05em; }
.stats dt b { font-weight: 700; font-variant-numeric: tabular-nums; }
.stats dd { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.values article { padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease); }
.values article:hover { transform: translateY(-6px); }
.values h3 { font-size: 19px; margin-bottom: 10px; }
.values p { color: var(--muted); font-size: 15.5px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.person { overflow: hidden; isolation: isolate; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s; }
.person:hover { transform: translateY(-6px); border-color: var(--orange); }
.person__photo { position: relative; aspect-ratio: 1 / 1.02; overflow: hidden; background: radial-gradient(62% 52% at 50% 36%, rgba(244,122,32,.42), transparent 72%), linear-gradient(165deg, #2B1613, #0F0E10 75%); }
.person__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .8s var(--ease); transform-origin: 50% 35%; }
.person:hover .person__photo img { transform: scale(1.04); }
.person__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 76%, var(--surface) 96%); }
/* Overlaps the photo's bottom edge with solid colour so no seam can show while the card animates */
.person__info { position: relative; z-index: 1; padding: 6px 24px 26px; margin-top: -12px; background: var(--surface); }
.person h3 { font-size: clamp(22px, 1.9vw, 26px); }
.person__role { margin: 5px 0 11px; color: var(--orange); font-size: 18px; font-weight: 600; }
.person__bio { color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* ---------- contact ---------- */
.contact-sec { overflow: hidden; }
.big-cta { font-family: var(--font-display); font-size: clamp(64px, 11vw, 160px); font-weight: 700; letter-spacing: -.05em; line-height: .9; margin-bottom: 34px; }
.big-cta .w:last-child > span { color: var(--red); }
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); }
.info { list-style: none; padding: 0; margin: 34px 0 34px; display: grid; gap: 0; }
.info li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info .ico { color: var(--orange); }
.info small { display: block; font-size: 13.5px; color: var(--muted); }
.info b { font-weight: 500; }
.info a:hover { color: var(--orange); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; align-content: start; }
.field { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .field { letter-spacing: 0; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 10px 0; width: 100%;
  transition: border-color .3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--surface); color: var(--text); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field .is-invalid { border-color: var(--red); }
.field select.is-flash { animation: flash 1.4s var(--ease); }
.form .btn { grid-column: 1 / -1; margin-top: 6px; }
.form__note { grid-column: 1 / -1; font-size: 15px; color: var(--orange); min-height: 1em; }

/* ---------- footer ---------- */
.footer { padding: 50px 0 40px; border-top: 1px solid var(--line); background: var(--bg); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 50px; align-items: center; font-size: 14px; color: var(--muted); }
.logo--foot .logo__img { height: 40px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__nav a:hover { color: var(--text); }
.footer__copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* =========================================================
   Multi-page additions
   ========================================================= */
.btn--glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(10px); }
.btn--glass::before { background: #fff; }
.btn--glass:hover { color: var(--ink-0); }

/* photo hero (home) — always dark over the photo */
.hero--photo { color: #F3F1ED; --text: #F3F1ED; --muted: rgba(243,241,237,.75); --line: rgba(255,255,255,.12); --line-2: rgba(255,255,255,.22); background: #000; }
.hero__photo { position: absolute; inset: -4%; background-size: cover; background-position: center 40%; animation: drift 30s ease-in-out infinite alternate; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(8,6,5,.92) 0%, rgba(8,6,5,.72) 42%, rgba(8,6,5,.25) 100%),
  linear-gradient(0deg, rgba(8,6,5,.95) 0%, transparent 45%),
  radial-gradient(60% 60% at 80% 30%, rgba(244,122,32,.18), transparent 70%); }
html[dir="rtl"] .hero__shade { background:
  linear-gradient(270deg, rgba(8,6,5,.92) 0%, rgba(8,6,5,.72) 42%, rgba(8,6,5,.25) 100%),
  linear-gradient(0deg, rgba(8,6,5,.95) 0%, transparent 45%); }
.hero--photo .hero__inner { padding-bottom: 44px; }
.hero--photo .ticker b { color: #fff; }
[data-theme="light"] .hero--photo + .ribbon, .ribbon { background: var(--bg); }

/* ribbon */
.ribbon { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid var(--line); }
.ribbon { background: var(--surface); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.ribbon::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--yellow), var(--orange), var(--red)); opacity: .9; }
.ribbon__row { overflow: hidden; padding: 20px 0 18px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ribbon__track { display: flex; width: max-content; will-change: transform; }
.ribbon__track > span { display: inline-flex; align-items: center; gap: 12px; padding-inline-end: 36px; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; color: var(--text); transition: color .3s; }
html[lang="ar"] .ribbon__track > span { font-family: var(--font-ar); }
.ribbon__track > span .ico { width: 20px; height: 20px; color: var(--orange); }
.ribbon__track > span::after { content: ""; width: 7px; height: 7px; margin-inline-start: 24px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(135deg, var(--yellow), var(--red)); flex-shrink: 0; }
.ribbon__row:hover .ribbon__track > span { color: var(--muted); }

/* Nav over a photo hero stays light until scrolled, in both themes (desktop) */
@media (min-width: 1101px) {
  .has-photo-hero .nav:not(.is-scrolled) { --text: #F3F1ED; --muted: rgba(243,241,237,.82); --line-2: rgba(255,255,255,.3); --surface-2: rgba(255,255,255,.12); }
  .has-photo-hero .nav:not(.is-scrolled) .icon-btn { color: #F3F1ED; }
  .has-photo-hero .nav:not(.is-scrolled) .logo__img--onDark { display: block; }
  .has-photo-hero .nav:not(.is-scrolled) .logo__img--onLight { display: none; }
  .has-photo-hero .nav:not(.is-scrolled) .drop { --text: #141414; --muted: #5D5A54; --surface-2: #F7F4EF; }
  [data-theme="light"] .has-photo-hero .nav:not(.is-scrolled) .drop { --text: #141414; }
  [data-theme="dark"] .has-photo-hero .nav:not(.is-scrolled) .drop { --text: #F3F1ED; --muted: #9C9993; --surface-2: var(--ink-3); }
}

/* draw-on icons */
.draw { stroke-dasharray: 80; stroke-dashoffset: 0; }
.is-in .draw, .reveal.is-in .draw { animation: draw 1.6s var(--ease) both; }
a:hover .draw, .row__link:hover .draw { animation: draw 1.1s var(--ease) both; }
.draw--big { width: 100%; height: 100%; stroke-width: 1; color: var(--orange); }

/* page hero */
.phero { position: relative; overflow: hidden; padding: 112px 0 48px; border-bottom: 1px solid var(--line); }
.phero__inner { position: relative; display: grid; grid-template-columns: 1.4fr .6fr; gap: 50px; align-items: center; }
.phero h1 { font-size: clamp(40px, 6.4vw, 92px); letter-spacing: -.04em; line-height: 1; max-width: 16ch; }
html[lang="ar"] .phero h1 { line-height: 1.25; }
.phero__sub { margin-top: 26px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 56ch; }
.phero .hero__cta { margin-top: 34px; }
.phero__art { position: relative; width: 100%; max-width: 230px; justify-self: end; aspect-ratio: 1; display: grid; place-items: center; padding: 22%; }
.phero__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 40s linear infinite; }
.phero__ring::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(244,122,32,.18), transparent 70%); }
.phero__ring::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(227,36,43,.2); }
.phero--img { color: #F3F1ED; --text: #F3F1ED; --muted: rgba(243,241,237,.75); --line: rgba(255,255,255,.14); --line-2: rgba(255,255,255,.24); background: #000; }
.phero__img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .45; }
[data-page="services"] .phero__img { background-position: 50% 30%; opacity: .55; }
.phero--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.4)); }
.phero--img .phero__inner { z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumbs > * + *::before { content: "/"; margin-inline-end: 8px; color: var(--faint); }
.crumbs a:hover { color: var(--text); }
.sec--first { padding-top: 112px; }
.sec--tight { padding: clamp(40px, 4.5vw, 60px) 0; }

/* index rows as links */
.row { display: block; padding: 0; }
.row__link { position: relative; display: grid; grid-template-columns: 44px 44px 1fr 30px; align-items: center; column-gap: 18px; padding: 12px 0; }
.row__link::before { content: ""; position: absolute; inset: 0 -20px; background: var(--surface); border-radius: 14px; opacity: 0; transform: scaleY(.6); transition: opacity .35s, transform .45s var(--ease); z-index: -1; }
.row__link:hover::before { opacity: 1; transform: none; }
.row::before { display: none; }
.row__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--orange); transition: background .35s, color .35s, border-color .35s; }
.row__link:hover .row__ico { background: var(--red); border-color: var(--red); color: #fff; }
.row__link h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; transition: transform .5s var(--ease); }
.row__link p { grid-column: 3; grid-row: 2; color: var(--muted); font-size: 15px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.row__link:hover p, .row__link:focus-visible p { max-height: 60px; opacity: 1; margin-top: 6px; }
.row__link:hover h3 { transform: translateX(8px); }
html[dir="rtl"] .row__link:hover h3 { transform: translateX(-8px); }
.row__arrow { grid-column: 4; grid-row: 1; }
.row__link:hover .row__arrow { color: var(--red); transform: rotate(45deg); }
.center { text-align: center; margin-top: 28px; }

/* solution & related cards */
.sol, .related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.related { grid-template-columns: repeat(3, 1fr); margin-top: 30px; }
.sol__card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px; min-height: 300px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), border-color .4s; isolation: isolate; }
.sol__card::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(244,122,32,.25), transparent 65%); opacity: 0; transition: opacity .5s; z-index: -1; }
.sol__card:hover { transform: translateY(-8px); border-color: var(--line-2); }
.sol__card:hover::after { opacity: 1; }
.sol__ico, .svc-card__ico, .pk-card__ico, .uae__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--orange); margin-bottom: 8px; }
.sol__card h3 { font-size: 22px; }
.sol__card p { color: var(--muted); font-size: 15px; }
.sol__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--red); }
.sol__more .ico { transition: transform .35s var(--ease); }
a:hover .sol__more .ico { transform: translateX(4px); }
html[dir="rtl"] .sol__more .ico { transform: scaleX(-1); }

/* services page cards */
.cat-block { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.cat-block:first-child { border-top: 0; padding-top: 0; }
.cat-block .index__cat { position: static; margin-bottom: 26px; }
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card { display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s; }
.svc-card:hover { transform: translateY(-6px); border-color: var(--orange); }
.svc-card h3 { font-size: 23px; }
.svc-card > p { color: var(--muted); font-size: 15px; }
.svc-card ul { list-style: none; padding: 14px 0 0; margin: 6px 0 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.svc-card li { display: flex; gap: 10px; }
.svc-card li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

/* service detail page */
.lead-xl { font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 38px); line-height: 1.3; letter-spacing: -.02em; max-width: 34ch; font-weight: 500; }
html[lang="ar"] .lead-xl { font-family: var(--font-ar); line-height: 1.6; }
.sp-intro { margin-bottom: 32px; }
.sp-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.h-sm { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ticks .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--red); stroke-width: 2.4; }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bullets li { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 15.5px; }
.sp-get { display: grid; grid-template-columns: .5fr 1.5fr; gap: 32px; margin-bottom: 32px; }
.get { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.get li { padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.get span { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--orange); }
.get p { margin-top: 14px; font-size: 16px; font-weight: 500; }
.tech { padding-top: 30px; border-top: 1px solid var(--line); }
.tech__h { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
html[lang="ar"] .tech__h { letter-spacing: 0; }
.tech ul { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.tech li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; font-size: 15px; transition: border-color .3s, color .3s; }
.tech li:hover { border-color: var(--orange); color: var(--orange); }

/* FAQ */
.sp-faq { display: grid; grid-template-columns: .5fr 1.5fr; gap: 40px; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--font-display); font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; letter-spacing: -.015em; }
html[lang="ar"] .faq__item summary { font-family: var(--font-ar); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); flex-shrink: 0; transition: transform .45s var(--ease), background .3s, border-color .3s; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.faq__plus::after { rotate: 90deg; }
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--red); border-color: var(--red); color: #fff; }
.faq__a { padding: 0 60px 26px 0; color: var(--muted); font-size: 16px; animation: faqIn .5s var(--ease); }
html[dir="rtl"] .faq__a { padding: 0 0 26px 60px; }

/* packages */
.pk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pk-card { display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.pk-card h3 { font-size: 26px; }
.pk-card .ticks { margin: 8px 0 22px; }
.pk-card .ticks li { font-size: 15px; padding: 11px 0; }
.pk-card .btn { margin-top: auto; align-self: flex-start; }

/* vertical timeline */
.vtl { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 0; max-width: 880px; }
.vtl::before { content: ""; position: absolute; top: 10px; bottom: 10px; inset-inline-start: 27px; width: 1px; background: linear-gradient(var(--yellow), var(--orange), var(--red)); }
.vtl li { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 8px 0 14px; }
.vtl__n { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); font-weight: 700; font-size: 15px; color: var(--red); transition: background .4s, color .4s; }
.vtl li.is-in .vtl__n { background: var(--red); color: #fff; border-color: var(--red); transition-delay: .3s; }
.vtl h3 { font-size: 24px; margin: 12px 0 8px; }
.vtl p { color: var(--muted); }

/* UAE section */
.uae { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.uae__item { padding: 32px; background: var(--bg-alt); transition: background .4s; }
.sec:not(.sec--alt) .uae__item { background: var(--bg); }
.uae__item:hover { background: var(--surface); }
.uae__item h3 { font-size: 21px; margin: 14px 0 10px; }
.uae__item p { color: var(--muted); font-size: 15px; }

/* geography */
.geo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.geo__legend { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14.5px; color: var(--muted); }
.geo__legend li { display: inline-flex; align-items: center; gap: 10px; }
.geo__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.geo__dot--hq { background: var(--red); box-shadow: 0 0 0 0 rgba(227,36,43,.6); animation: pingRed 2s infinite; }
.geo__dot--remote { background: transparent; border: 2px solid var(--yellow); }
.geo__board { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.geo__col { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.geo__h { font-size: 13.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
html[lang="ar"] .geo__h { letter-spacing: 0; }
.geo__col ul { list-style: none; padding: 0; margin: 0; }
.geo__col li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 19px; font-weight: 600; opacity: .25; transform: translateX(-10px); transition: opacity .6s, transform .6s var(--ease); transition-delay: calc(var(--i) * 110ms + .2s); }
html[dir="rtl"] .geo__col li { transform: translateX(10px); font-family: var(--font-ar); }
.geo__col li:last-child { border-bottom: 0; }
.geo__board.is-in li { opacity: 1; transform: none; }
.geo__col li.is-hq { color: var(--red); }

/* stats on home */
.stats--home { margin: 0; }

/* cta band */
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px; }
.cta-band h2 { font-size: clamp(34px, 4.6vw, 62px); }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.partners-band { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px; }

/* contact extras */
.visit { position: relative; margin: clamp(30px, 3.5vw, 44px) 0 0; height: 400px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.visit__map { display: block; width: 100%; height: 100%; border: 0; }
.visit__card { position: absolute; top: 24px; bottom: 24px; inset-inline-start: 24px; width: min(320px, calc(100% - 48px)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 28px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); backdrop-filter: blur(12px); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.visit__card .label { margin-bottom: 14px; }
.sec .visit__h { font-size: 28px; max-width: none; }
.visit__a { margin: 10px 0 22px; font-size: 15px; color: var(--muted); }
.next { margin-top: 26px; }
.next ol { margin: 0; padding-inline-start: 20px; color: var(--muted); display: grid; gap: 8px; }

/* mega menu extras */
.drop--mega a { display: flex; align-items: center; gap: 10px; }
.drop--mega a .ico { color: var(--orange); }
.drop__all { grid-column: 1 / -1; display: flex !important; align-items: center; justify-content: space-between; margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px !important; color: var(--red) !important; font-weight: 600; }

/* footer */
.footer { padding: 46px 0 26px; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; }
.footer__brand p { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 32ch; }
.footer__contact { display: grid; gap: 4px; }
.footer__contact a:hover { color: var(--orange); }
.footer__h { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
html[lang="ar"] .footer__h { letter-spacing: 0; }
.footer__top > div:not(.footer__brand) a { display: block; padding: 5px 0; font-size: 15px; color: var(--muted); transition: color .25s; }
.footer__top > div:not(.footer__brand) a:hover { color: var(--text); }
.footer__copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

@media (max-width: 1100px) {
  .sol { grid-template-columns: 1fr 1fr; }
  .svc-cards, .pk-cards, .uae { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .phero { padding: 100px 0 38px; }
  .phero__inner, .sp-grid, .sp-get, .sp-faq, .geo { grid-template-columns: 1fr; }
  .phero__art { display: none; }
  .related { grid-template-columns: 1fr; }
  .trio--cards { grid-template-columns: 1fr; }
  .row__link { grid-template-columns: 36px 40px 1fr 22px; }
  .row__link p { max-height: none; opacity: 1; margin-top: 4px; }
  .row__link:hover h3 { transform: none; }
}
@media (max-width: 600px) {
  .sol, .svc-cards, .pk-cards, .uae, .get, .geo__board { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .row__link { grid-template-columns: 44px 1fr 22px; }
  .row__n { display: none; }
  .row__ico { grid-column: 1; }
  .row__link h3 { grid-column: 2; }
  .row__link p { grid-column: 2; }
  .row__arrow { grid-column: 3; }
  .faq__a { padding-inline-end: 0; }
  .ribbon__row { padding: 12px 0; }
  .sec__head--row { display: block; }
  .rail-ctrl { display: none; }
  .nav__inner { gap: 10px; }
  .nav__actions { gap: 6px; }
  .visit { height: auto; display: flex; flex-direction: column; }
  .visit__map { height: 260px; order: 2; }
  .visit__card { position: static; width: 100%; border: 0; border-radius: 0; }
  .ribbon__track > span { font-size: 15px; gap: 10px; padding-inline-end: 26px; }
  .ribbon__track > span::after { margin-inline-start: 16px; }
}

@media (max-width: 380px) {
  .logo__uae { display: none; }
  .logo__img { height: 34px; }
  .icon-btn, .burger { width: 38px; height: 38px; }
  .burger span { left: 10px; right: 10px; }
  .burger span:first-child { top: 14px; } .burger span:last-child { top: 22px; }
  .burger[aria-expanded="true"] span:first-child, .burger[aria-expanded="true"] span:last-child { top: 18px; }
}

/* ---------- keyframes ---------- */
@keyframes arrowSwap { 0% { translate: 0 0; opacity: 1; } 45% { translate: calc(var(--dir) * 150%) 0; opacity: 0; } 46% { translate: calc(var(--dir) * -150%) 0; opacity: 0; } 100% { translate: 0 0; opacity: 1; } }
@keyframes arrowRipple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes pingRed { 0% { box-shadow: 0 0 0 0 rgba(227,36,43,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(227,36,43,0); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(253,185,19,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(253,185,19,0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes logIn { to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes flash { 0%, 100% { border-color: var(--line-2); } 30% { border-color: var(--orange); } }

/* theme switch transition */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* Reduced motion: only the large background drift is switched off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .menu {
    position: fixed; inset: 0 0 auto 0; height: 100svh; z-index: -1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 100px 24px 40px; background: var(--bg); overflow-y: auto;
    clip-path: circle(0 at calc(100% - 40px) 36px); transition: clip-path .7s var(--ease-io);
  }
  html[dir="rtl"] .menu { clip-path: circle(0 at 40px 36px); }
  .menu.is-open { clip-path: circle(150% at calc(100% - 40px) 36px); }
  html[dir="rtl"] .menu.is-open { clip-path: circle(150% at 40px 36px); }
  .menu__link { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--text); padding: 14px 0; justify-content: space-between; width: 100%; border-bottom: 1px solid var(--line); }
  .menu__link::after { display: none; }
  .menu__item:hover .menu__toggle .ico { transform: none; }
  .menu__item.is-open .menu__toggle .ico { transform: rotate(180deg); }
  .drop, .drop--mega { position: static; display: none; min-width: 0; padding: 8px 0 14px; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; grid-template-columns: 1fr; }
  .menu__item:hover .drop { display: none; }
  .menu__item.is-open .drop { display: block; }
  .drop--mega > div { margin-bottom: 10px; }
  .drop a:hover { padding-inline-start: 12px; }
  .burger { display: block; }
  .nav { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); }
  .hero__globe { width: 90vw; inset-inline-end: -30vw; opacity: .55; }
  .hero__bottom { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .index__group { grid-template-columns: 1fr; gap: 12px; }
  .index__cat { position: static; }
  .row p { max-height: none; opacity: 1; margin-top: 8px; }
  .row:hover h3 { transform: none; }
  .peek { display: none; }
  .pkg, .mit, .ei, .contact, .about { grid-template-columns: 1fr; }
  .count { text-align: start; }
  .trio, .partners { grid-template-columns: 1fr; }
  .trio li, .partners article { padding: 26px 0; }
  .trio li + li, .partners article + article { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .tl__marks { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .tl__m, .tl__m:first-child, .tl__m:last-child { position: static; translate: none; width: auto; text-align: start; }
  html[dir="rtl"] .tl__m, html[dir="rtl"] .tl__m:first-child, html[dir="rtl"] .tl__m:last-child { translate: none; }
  .tl__m::before { display: none; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 70px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav__cta { display: none; }
  .logo__img { height: 38px; }
  .hero { padding-top: 100px; }
  .ticker { font-size: 13px; gap: 8px 18px; margin-bottom: 26px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .strip span { font-size: 18px; }
  .row { grid-template-columns: 38px 1fr 22px; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; padding: 10px 6px; font-size: 14px; }
  .checks { grid-template-columns: 1fr; }
  .console__log li { grid-template-columns: 44px 1fr; }
  .console__log li span:last-child { grid-column: 1 / -1; padding-inline-start: 54px; margin-top: -4px; }
  .case { padding: 26px; min-height: 380px; }
  .case h3 { font-size: 34px; }
  .steps { grid-template-columns: 1fr; }
  .steps__line { display: none; }
  .steps li::before { display: none; }
  .values { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .big-cta { margin-bottom: 40px; }
}
