/* =========================================================
   EXPDEV · Design system
   Palette: ivory · graphite · champagne gold (sage kept for the logo mark only)
   Type: El Messiri (display, AR+EN) · IBM Plex Sans Arabic (body, AR+EN) · IBM Plex Mono (data)
   ========================================================= */

:root {
  /* brand constants (same in both themes) */
  --sage: #7FA97C;            /* logo mark only */
  --gold: #C9A96E;            /* champagne */
  --gold-deep: #7F6236;       /* bronze, for light surfaces (5:1 on ivory) */
  --gold-light: #E6D3AE;
  --ivory: #EDE7DA;
  --platinum: #D6D2C8;
  --platinum-deep: #9A958B;
  --charcoal: #5E5C57;
  --emerald: #3E9A6B;

  /* dark theme (default): graphite & ivory, champagne accent */
  --bg: #0B0C0B;
  --bg-2: #111312;
  --bg-3: #181A18;
  --surface: rgba(237, 231, 218, 0.04);
  --surface-2: rgba(237, 231, 218, 0.07);
  --line: rgba(237, 231, 218, 0.14);
  --line-strong: rgba(237, 231, 218, 0.28);
  --text: #EFEAE0;
  --text-2: #CFC9BC;
  --muted: #A39D90;
  --accent: var(--gold);
  --accent-ink: #15120B;
  --accent-soft: rgba(201, 169, 110, 0.13);
  --glow: rgba(201, 169, 110, 0.32);
  --logo-dark: #D6D2C8;
  --logo-silver: #BDB8AD;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --glass: rgba(17, 19, 18, 0.72);

  --font-display: 'El Messiri', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 76px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F5F2EB;
  --bg-2: #FFFDF9;
  --bg-3: #ECE7DD;
  --surface: rgba(26, 24, 20, 0.035);
  --surface-2: rgba(26, 24, 20, 0.06);
  --line: rgba(26, 24, 20, 0.10);
  --line-strong: rgba(26, 24, 20, 0.22);
  --text: #1A1814;
  --text-2: #4A463F;
  --muted: #6B665F;
  --accent: var(--gold-deep);
  --accent-ink: #FFFDF9;
  --accent-soft: rgba(127, 98, 54, 0.12);
  --glow: rgba(127, 98, 54, 0.22);
  --logo-dark: #4A4A48;
  --logo-silver: #C8C4BA;
  --shadow: 0 30px 80px -30px rgba(26, 24, 20, 0.30);
  --glass: rgba(245, 242, 235, 0.78);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Arabic */
[dir="rtl"] body, [dir="rtl"] { --font-display: 'El Messiri', 'IBM Plex Sans Arabic', system-ui, sans-serif; --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif; }
[dir="rtl"] { --font-mono: 'IBM Plex Sans Arabic', 'IBM Plex Mono', monospace; }
[dir="rtl"] .h2, [dir="rtl"] .hero__title, [dir="rtl"] .panel__title, [dir="rtl"] .mobile-menu__nav a { font-weight: 700; line-height: 1.3; letter-spacing: 0; }
[dir="rtl"] .tab__name { line-height: 1.4; }
[dir="rtl"] .hero__title .w--accent > span { font-weight: 700; }
[dir="rtl"] :is(.mono, .eyebrow, .btn, .marquee__track span, .brand__text strong, .brand__text small,
  .preloader__text, .hero__scroll, .stack__legend li, .places h4, .footer__col h4, .partners__title,
  .office__role, .office__flag, .presence__legend, .about__orbit span, .lang-toggle, .ea__partner-badge,
  .tab__idx, .it-card__num) { letter-spacing: 0; text-transform: none; }
[dir="rtl"] :is(.mono, .eyebrow, .places h4, .footer__col h4, .partners__title, .office__role,
  .stack__legend li, .presence__legend, .preloader__text, .hero__scroll, .brand__text small) { font-size: 13px; }
[dir="rtl"] .office__line a, [dir="rtl"] .contact__emails a { font-family: 'IBM Plex Mono', 'IBM Plex Sans Arabic', monospace; }
[dir="rtl"] .hero__content::before { background: radial-gradient(ellipse at 70% 50%, var(--bg) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 45%, transparent 75%); }
[dir="rtl"] .eyebrow::before { background: linear-gradient(-90deg, var(--accent), transparent); }
[dir="rtl"] .nav a::after { transform-origin: right; }
[dir="rtl"] .stack__beam { transform: rotateX(62deg) rotateZ(38deg) rotateX(-90deg); }

/* ---------- Utilities ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--center { margin-inline: auto; text-align: center; }
.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 20px;
  text-wrap: balance;
}
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--text-2); max-width: 64ch; font-weight: 400; line-height: 1.7; }
.section__head--center .lead { margin-inline: auto; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .4s;
  will-change: transform;
  white-space: nowrap;
  overflow: hidden;
}
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--glow); }
.btn--primary:hover { box-shadow: 0 18px 40px -12px var(--glow); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: var(--surface); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; gap: 22px; justify-items: center;
  background: transparent;
  transition: visibility 0s linear 1.25s;
}
.preloader::before, .preloader::after {
  content: ""; position: absolute; inset-inline: 0; z-index: -1; height: 50.5%; background: var(--bg);
  transition: transform 1.15s cubic-bezier(.77, 0, .18, 1);
}
.preloader::before { top: 0; box-shadow: 0 1px 0 rgba(201, 169, 110, .0); }
.preloader::after { bottom: 0; }
.preloader > * { transition: opacity .45s ease, transform .6s var(--ease); }
.preloader.is-done { visibility: hidden; pointer-events: none; }
.preloader.is-done > * { opacity: 0; transform: translateY(-10px); }
.preloader.is-done::before { transform: translateY(-101%); transition-delay: .25s; box-shadow: 0 1px 0 rgba(201, 169, 110, .6); }
.preloader.is-done::after { transform: translateY(101%); transition-delay: .25s; }
.preloader__mark { width: 176px; }
.preloader__mark picture, .preloader__mark img { display: block; width: 100%; height: auto; }

/* ---------- Brand mark (original artwork, never recoloured) ---------- */
.brand-mark { display: block; height: auto; user-select: none; -webkit-user-drag: none; }
.brand .brand-mark { width: 52px; transition: transform .6s var(--ease); }
/* header mark stays still on hover */
.brand-mark--pre { animation: markReveal 1.5s var(--ease) both; }
@keyframes markReveal {
  0% { clip-path: inset(0 100% 0 0); filter: blur(6px); opacity: .2; transform: translateY(8px); }
  60% { filter: blur(0); opacity: 1; }
  100% { clip-path: inset(0 0 0 0); filter: blur(0); opacity: 1; transform: none; }
}
[dir="rtl"] .brand-mark--pre { animation-name: markRevealRtl; }
@keyframes markRevealRtl {
  0% { clip-path: inset(0 0 0 100%); filter: blur(6px); opacity: .2; transform: translateY(8px); }
  60% { filter: blur(0); opacity: 1; }
  100% { clip-path: inset(0 0 0 0); filter: blur(0); opacity: 1; transform: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 999; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } body { cursor: none; } body a, body button, body input, body select, body textarea, body label { cursor: none; } }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: var(--accent); }
.cursor__ring { width: 36px; height: 36px; border: 1px solid var(--accent); opacity: .6; transition: width .3s var(--ease), height .3s var(--ease), opacity .3s, background-color .3s; }
.cursor.is-hover .cursor__ring { width: 60px; height: 60px; opacity: .9; background: var(--accent-soft); }
.cursor.is-down .cursor__ring { width: 24px; height: 24px; }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 950; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--gold-light)); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .progress span { transform-origin: right; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background-color .4s, border-color .4s, backdrop-filter .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: var(--glass); backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-display); font-weight: 700; letter-spacing: .16em; font-size: 15px; }
.brand__text small { font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  position: relative; padding: 8px 11px; font-size: 14px; color: var(--text-2); border-radius: 8px;
  white-space: nowrap; transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header__tools { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  transition: border-color .3s;
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-toggle__opt { color: var(--muted); transition: color .3s; }
.lang-toggle__opt.is-active { color: var(--accent); font-weight: 500; }
.lang-toggle__sep { color: var(--line-strong); }

.theme-switch {
  position: relative; display: inline-flex; padding: 3px; gap: 2px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.theme-switch button {
  position: relative; z-index: 1; width: 32px; height: 28px;
  display: grid; place-items: center; border-radius: 999px; color: var(--muted); transition: color .3s;
}
.theme-switch button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-switch button[aria-checked="true"] { color: var(--accent-ink); }
.theme-switch__thumb {
  position: absolute; top: 3px; left: 3px; width: 32px; height: 28px; border-radius: 999px;
  background: var(--accent); transition: transform .45s var(--ease);
  transform: translateX(calc(var(--idx, 2) * 34px));
}
[dir="rtl"] .theme-switch__thumb { left: auto; right: 3px; transform: translateX(calc(var(--idx, 2) * -34px)); }

.burger { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; border-radius: 10px; }
.burger span { width: 20px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 890; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .7s var(--ease);
  visibility: hidden;
}
[dir="rtl"] .mobile-menu { clip-path: circle(0 at 40px 40px); }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
[dir="rtl"] .mobile-menu.is-open { clip-path: circle(150% at 40px 40px); }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu__nav a { font-family: var(--font-display); font-size: clamp(30px, 8vw, 44px); font-weight: 700; letter-spacing: 0; padding: 6px 0; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s var(--ease); }
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(n) { transition-delay: calc(.15s + var(--d, 0) * .05s); }
.mobile-menu__foot { margin-top: 40px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-family: var(--font-mono); font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; overflow: hidden; isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: -1; opacity: .7; }
.hero__glow--a { width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; background: var(--glow); inset-inline-end: -15vw; top: -10vw; }
.hero__glow--b { width: 40vw; height: 40vw; max-width: 500px; max-height: 500px; background: rgba(214, 210, 200, .14); inset-inline-start: -10vw; bottom: -10vw; }
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 60px; }
.hero__content { max-width: 720px; position: relative; }
.hero__content::before {
  content: ""; position: absolute; inset: -60px -80px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, var(--bg) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 45%, transparent 75%);
  filter: blur(10px);
}
.hero__eyebrow { margin-bottom: 26px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 6.8vw, 96px);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; margin-inline-end: .22em; padding-block: .12em; margin-block: -.12em; }
[dir="rtl"] .hero__title .w { padding-block: .3em; margin-block: -.3em; padding-inline: .06em; margin-inline-start: -.06em; }
.hero__title .w > span { display: inline-block; transform: translateY(120%); }
.hero__title .w--accent > span { color: var(--accent); }
.hero__lead { font-size: clamp(16px, 1.35vw, 20px); color: var(--text-2); max-width: 58ch; margin-bottom: 36px; font-weight: 400; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__trust { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.hero__trust li { display: flex; align-items: flex-start; gap: 12px; }
.hero__trust-dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  max-width: 900px; backdrop-filter: blur(10px);
}
.stat { background: var(--glass); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat__num::after { content: "+"; color: var(--accent); font-size: .6em; vertical-align: top; margin-inline-start: 2px; }
.stat:first-child .stat__num::after { content: ""; }
.stat__label { font-size: 14px; color: var(--text-2); }

.hero__scroll {
  position: absolute; bottom: 28px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
[dir="rtl"] .hero__scroll { transform: translateX(50%); }
.hero__scroll-line { width: 1px; height: 48px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--bg); animation: scrollLine 2s var(--ease-io) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; background: var(--bg-2); position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; font-family: var(--font-body); font-weight: 400; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee__track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee__track { animation-name: marqueeRtl; }
@keyframes marqueeRtl { to { transform: translateX(50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__visual { position: relative; }
.tilt-card { perspective: 1200px; }
.tilt-card__inner {
  position: relative; aspect-ratio: 1 / 1.1; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; overflow: hidden;
  transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  transition: transform .2s ease-out; transform-style: preserve-3d;
  box-shadow: var(--shadow);
}
.tilt-card__inner::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.tilt-card__inner picture { display: block; width: 66%; transform: translateZ(60px); position: relative; }
.brand-mark--xl { width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
@keyframes markFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
:root[data-theme="light"] .brand-mark--xl { filter: drop-shadow(0 26px 34px rgba(26,24,20,.18)); }
.tilt-card__meta { position: absolute; bottom: 22px; inset-inline: 26px; display: flex; justify-content: space-between; transform: translateZ(30px); }
.tilt-card__shine {
  position: absolute; inset: -50%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 40%);
  pointer-events: none; mix-blend-mode: soft-light;
}
.about__orbit { position: absolute; inset: -22px; pointer-events: none; }
.about__orbit span {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--accent);
  transform: rotate(calc(var(--i) * 51.43deg - 90deg)) translateX(calc(min(22vw, 270px))) rotate(calc(var(--i) * -51.43deg + 90deg));
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(calc(min(22vw, 270px))) rotate(0deg); }
  to { transform: rotate(360deg) translateX(calc(min(22vw, 270px))) rotate(-360deg); }
}
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.value { padding: 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .3s, background-color .3s; }
.value:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--accent-soft); }
.value__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 16px; }
.value__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.value p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

/* ---------- Services ---------- */
.services { background: var(--bg-2); }
.services__layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; }
.services__tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.tab {
  text-align: start; padding: 18px 20px; border-radius: 14px; border: 1px solid transparent;
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center;
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}
.tab__idx { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.tab__body { display: flex; flex-direction: column; }
.tab__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.25; }
.tab__short { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.tab:hover { background: var(--surface); }
.tab.is-active { background: var(--surface-2); border-color: var(--line-strong); transform: translateX(6px); }
[dir="rtl"] .tab.is-active { transform: translateX(-6px); }
.tab.is-active .tab__idx { color: var(--accent); }
.panel { display: none; }
.panel.is-active { display: block; animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.panel__card { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); position: relative; overflow: hidden; }
.panel__card::after {
  content: ""; position: absolute; inset-inline-end: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 65%); opacity: .6; pointer-events: none;
}
.panel__title { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: 0; margin-bottom: 14px; }
.panel__desc { color: var(--text-2); max-width: 60ch; margin-bottom: 28px; }
.panel__scope { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px; border-radius: 999px; font-size: 13.5px;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, background-color .3s, transform .3s var(--ease);
  animation: chipIn .5s var(--ease) both; animation-delay: calc(var(--i) * 30ms);
}
.chip:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- IT services ---------- */
.it { overflow: hidden; isolation: isolate; }
.photo-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.photo-bg picture, .photo-bg img { display: block; width: 100%; height: 100%; }
.photo-bg img { object-fit: cover; }
.photo-bg::after { content: ""; position: absolute; inset: 0; }
.photo-bg--it img { opacity: .22; filter: saturate(.7); }
.photo-bg--it::after { background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 30%, color-mix(in srgb, var(--bg) 70%, transparent) 70%, var(--bg) 100%); }
:root[data-theme="light"] .photo-bg--it img { opacity: .12; filter: saturate(.4) brightness(1.2); }
.photo-bg--cta img { opacity: .45; filter: saturate(.8); }
.photo-bg--cta::after { background: radial-gradient(70% 90% at 50% 50%, color-mix(in srgb, var(--bg-2) 55%, transparent), var(--bg-2) 95%); }
:root[data-theme="light"] .photo-bg--cta img { opacity: .2; filter: saturate(.4) brightness(1.15); }
.it__bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 0%, var(--accent-soft), transparent 70%); }
.it__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
@media (max-width: 1280px) { .it__grid { grid-template-columns: repeat(2, 1fr); } }
.it-card {
  position: relative; padding: 30px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: transform .5s var(--ease), border-color .3s;
  transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
}
.it-card:hover { border-color: var(--line-strong); }
.it-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 60%);
}
.it-card:hover::before { opacity: 1; }
.it-card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 22px; position: relative; }
.it-card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.it-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 10px; position: relative; }
.it-card p { font-size: 15px; color: var(--text-2); line-height: 1.6; position: relative; }
.it-card__num { position: absolute; top: 24px; inset-inline-end: 26px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; }

/* ---------- Scope chart (services) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.services__top { display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: clamp(32px, 6vw, 88px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.services__top .section__head { margin-bottom: 0; }
.scope-chart { position: relative; margin: 0; padding: 24px 26px 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); }
.scope-chart__head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.scope-chart__title { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text); }
.scope-chart__sub { font-size: 12.5px; color: var(--muted); }
.scope-chart__bars { display: flex; flex-direction: column; gap: 4px; }
.scope-bar { display: grid; grid-template-columns: minmax(0, 1fr) 30px; grid-template-areas: "name val" "track track"; align-items: end; gap: 6px 10px; padding: 8px 6px; border-radius: 10px; text-align: start; transition: background-color .25s, opacity .25s; }
.scope-bar__name { grid-area: name; font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scope-bar__val { grid-area: val; text-align: end; font-family: var(--font-mono); font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.scope-bar__track { grid-area: track; position: relative; height: 10px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.scope-bar__fill { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 0; border-radius: 0 4px 4px 0; background: var(--accent); transition: inline-size 1.1s var(--ease); }
[dir="rtl"] .scope-bar__fill { border-radius: 4px 0 0 4px; }
.scope-chart.is-drawn .scope-bar__fill { inline-size: calc(var(--v) * 100%); }
.scope-chart.is-drawn .scope-bar:nth-child(2) .scope-bar__fill { transition-delay: .08s; }
.scope-chart.is-drawn .scope-bar:nth-child(3) .scope-bar__fill { transition-delay: .16s; }
.scope-chart.is-drawn .scope-bar:nth-child(4) .scope-bar__fill { transition-delay: .24s; }
.scope-chart.is-drawn .scope-bar:nth-child(5) .scope-bar__fill { transition-delay: .32s; }
.scope-chart__bars.is-hovering .scope-bar:not(.is-hot) { opacity: .45; }
.scope-bar.is-hot { background: var(--surface); }
.scope-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.scope-chart__total { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.scope-chart__total span:first-child { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--accent); margin-inline-end: 4px; }
.scope-chart__tip { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 2px; min-width: 180px; max-width: calc(100% - 20px); margin-inline-start: 26px; padding: 10px 12px; border-radius: 10px; background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 13px; color: var(--text-2); pointer-events: none; }
.scope-chart__tip strong { color: var(--text); font-weight: 600; }
.scope-chart__tip em { font-style: normal; color: var(--accent); font-size: 12px; margin-top: 2px; }
@media (max-width: 1100px) { .services__top { grid-template-columns: 1fr; align-items: start; } }
@media (prefers-reduced-motion: reduce) { .scope-bar__fill { transition: none; } }

/* ---------- AI & digital products ---------- */
.ai { overflow: hidden; isolation: isolate; }
.ai__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 85% 10%, var(--accent-soft), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(127, 169, 124, .07), transparent 70%);
}
.ai__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .25;
  mask-image: radial-gradient(ellipse 60% 50% at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 70% 30%, #000, transparent 75%);
}
.ai__head { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ai__intro .lead { margin-top: 4px; }

.ai-flow { display: flex; flex-direction: column; padding: 26px 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.ai-flow__node { display: flex; align-items: center; gap: 16px; }
.ai-flow__icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line-strong);
}
.ai-flow__icon svg { width: 21px; height: 21px; fill: none; stroke: var(--text-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ai-flow__label { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text); }
.ai-flow__node.is-core .ai-flow__icon { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft), 0 12px 30px -8px var(--glow); animation: corePulse 2.8s ease-in-out infinite; }
.ai-flow__node.is-core .ai-flow__icon svg { stroke: var(--accent-ink); }
.ai-flow__node.is-core .ai-flow__label { color: var(--accent); }
@keyframes corePulse { 0%, 100% { box-shadow: 0 0 0 6px var(--accent-soft), 0 12px 30px -8px var(--glow); } 50% { box-shadow: 0 0 0 12px transparent, 0 12px 36px -6px var(--glow); } }
.ai-flow__link { height: 30px; margin-inline-start: 22px; width: 2px; position: relative; background: var(--line-strong); overflow: hidden; border-radius: 2px; }
.ai-flow__link i { position: absolute; left: 0; width: 2px; height: 12px; border-radius: 2px; background: linear-gradient(transparent, var(--accent)); animation: flowDrop 1.6s var(--ease-io) infinite; }
.ai-flow__link:nth-of-type(4) i { animation-delay: .5s; }
.ai-flow__link:nth-of-type(6) i { animation-delay: 1s; }
@keyframes flowDrop { from { top: -12px; } to { top: 100%; } }

.ai__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(44px, 6vw, 72px); }
.ai-card {
  position: relative; padding: 32px 30px 30px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  transition: transform .5s var(--ease), border-color .35s, box-shadow .5s;
}
.ai-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 60%);
}
.ai-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 30px 60px -34px var(--glow); }
.ai-card:hover::before { opacity: 1; }
.ai-card__icon {
  position: relative; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 24px;
  background: linear-gradient(145deg, var(--accent-soft), transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.ai-card__icon svg { width: 27px; height: 27px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ai-card h3 { position: relative; font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.ai-card p { position: relative; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.ai-card__signal { position: absolute; top: 30px; inset-inline-end: 28px; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 0 rgba(127, 169, 124, .6); animation: agentLive 2.4s ease-out infinite; }
.ai-card:nth-child(2) .ai-card__signal { animation-delay: .4s; }
.ai-card:nth-child(3) .ai-card__signal { animation-delay: .8s; }
.ai-card:nth-child(4) .ai-card__signal { animation-delay: 1.2s; }
.ai-card:nth-child(5) .ai-card__signal { animation-delay: 1.6s; }
.ai-card:nth-child(6) .ai-card__signal { animation-delay: 2s; }
@keyframes agentLive { 0% { box-shadow: 0 0 0 0 rgba(127, 169, 124, .55); } 80%, 100% { box-shadow: 0 0 0 12px rgba(127, 169, 124, 0); } }
.ai__note { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; font-size: 14.5px; color: var(--text-2); text-align: center; }
.ai__note-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
@media (max-width: 1100px) {
  .ai__head { grid-template-columns: 1fr; }
  .ai__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ai__grid { grid-template-columns: 1fr; }
  .ai-flow { padding: 20px; }
  .ai-card { padding: 26px 22px; }
}

/* ---------- EA ---------- */
.ea { background: var(--bg-2); overflow: hidden; }
.ea__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.checklist { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: var(--text-2); }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A96E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.ea__partner { display: flex; gap: 18px; align-items: center; margin-top: 36px; padding: 20px 22px; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.ea__partner-badge { flex: none; font-family: var(--font-body); font-weight: 600; letter-spacing: .12em; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 13px; }
.ea__partner p { font-size: 14px; color: var(--muted); }

.ea__scene { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.stack { position: relative; height: 440px; perspective: 1400px; display: grid; place-items: center; }
.stack__legend { display: flex; flex-direction: column; gap: 22px; }
.stack__legend li { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .4s; white-space: nowrap; }
.stack__legend li i { width: 26px; height: 1px; background: var(--line-strong); transition: background-color .4s, width .4s var(--ease); }
.stack__legend li.is-lit { color: var(--accent); }
.stack__legend li.is-lit i { background: var(--accent); width: 40px; }
.stack__layer {
  position: absolute; width: min(78%, 360px); aspect-ratio: 1.55; border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; padding: 14px 18px;
  transform: rotateX(62deg) rotateZ(-38deg) translateZ(calc(var(--z) * 1px));
  transition: transform 1s var(--ease), box-shadow .6s, border-color .6s;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
[dir="rtl"] .stack__layer { transform: rotateX(62deg) rotateZ(38deg) translateZ(calc(var(--z) * 1px)); }
.stack__layer span { display: none; }
.stack__layer::after { content: ""; position: absolute; inset: 10px; border-radius: 8px; background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 14px 14px; opacity: .35; }
.stack__layer--4::after { background-image: radial-gradient(var(--accent) 1px, transparent 1px); opacity: .45; }
.stack__layer--1 { --z: 0; }
.stack__layer--2 { --z: 70; }
.stack__layer--3 { --z: 140; }
.stack__layer--4 { --z: 210; border-color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.stack.is-flat .stack__layer { --z: 0; }
.stack__layer.is-lit { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 40px 80px -30px var(--glow); }
.stack__beam { position: absolute; width: 1px; height: 320px; background: linear-gradient(var(--accent), transparent); transform: rotateX(62deg) rotateZ(-38deg) rotateX(-90deg); opacity: .5; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: step; }
.steps::before { display: none; }
.step { position: relative; padding: 0; }
.step__photo { position: relative; margin: 0 0 -34px; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.step__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); filter: saturate(.85) brightness(.82); transition: transform 1.2s var(--ease), filter .6s; }
.step__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--bg) 85%, transparent)); }
.step:hover .step__photo img { transform: scale(1.1); filter: saturate(1) brightness(.95); }
.step .step__dot { position: relative; z-index: 1; margin-inline-start: 20px; background: var(--bg); }
.step h3, .step p { padding-inline: 4px; }
.step__dot {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--bg); border: 1px solid var(--line-strong); position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--accent);
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s;
}
.step:hover .step__dot { transform: scale(1.08); border-color: var(--accent); box-shadow: 0 0 0 8px var(--accent-soft); }
.step__dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed var(--line); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.step h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--text-2); line-height: 1.6; }

/* ---------- Presence ---------- */
.presence { background: var(--bg-2); overflow: hidden; }
.presence__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.presence__visual { position: relative; aspect-ratio: 1; }
.presence__canvas { width: 100%; height: 100%; cursor: grab; }
.presence__canvas:active { cursor: grabbing; }
.presence__legend { position: absolute; bottom: 10px; inset-inline-start: 10px; display: flex; gap: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.presence__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--active { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.dot--planned { background: var(--platinum-deep); }
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.places h4 { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.places li { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; transition: background-color .3s, border-color .3s; cursor: default; }
.places li:hover, .places li.is-hot { background: var(--surface); border-color: var(--line); }
.places li strong { font-weight: 600; font-size: 15px; }
.places li small { color: var(--muted); font-size: 12.5px; }

/* ---------- AI flow over photo ---------- */
.ai-flow-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 28px; isolation: isolate; border: 1px solid var(--line); }
.ai-flow-wrap__photo { position: absolute; inset: 0; z-index: -1; }
.ai-flow-wrap__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.75); transform: scale(1.06); transition: transform 8s ease-out; }
.ai-flow-wrap.is-in .ai-flow-wrap__photo img { transform: scale(1); }
.ai-flow-wrap .ai-flow { box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }

/* ---------- Cities ---------- */
.cities { padding-block: 0 clamp(70px, 9vw, 120px); background: transparent; }
.presence + .cities { margin-top: calc(-1 * clamp(40px, 6vw, 80px)); }
.cities__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.city { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); isolation: isolate; }
.city__photo, .city__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.city__photo { z-index: -1; }
.city__photo img { object-fit: cover; filter: saturate(.9) brightness(.85); transform: scale(1.05); transition: transform 1.4s var(--ease), filter .6s; }
.city::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(8, 9, 8, .88)); }
.city:hover .city__photo img { transform: scale(1.12); filter: saturate(1.05) brightness(.95); }
.city__body { position: absolute; inset-inline: 0; bottom: 0; padding: 22px; color: #F3EEE4; }
.city__body h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin: 6px 0 2px; }
.city__role { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; background: rgba(201, 169, 110, .22); color: #E6D3AE; border: 1px solid rgba(201, 169, 110, .45); backdrop-filter: blur(6px); }
.city__place { font-size: 13px; color: rgba(243, 238, 228, .75); }

/* ---------- Sectors ---------- */
.sectors { margin-bottom: 44px; }
.sectors__label { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
[dir="rtl"] .sectors__label { letter-spacing: 0; font-size: 13px; }
.sectors__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sector { position: relative; margin: 0; height: 150px; border-radius: 18px; overflow: hidden; isolation: isolate; border: 1px solid var(--line); }
.sector__photo, .sector__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sector__photo { z-index: -1; }
.sector__photo img { object-fit: cover; filter: saturate(.85) brightness(.7); transition: transform 1.2s var(--ease), filter .5s; }
.sector:hover .sector__photo img { transform: scale(1.08); filter: saturate(1) brightness(.8); }
.sector figcaption { position: absolute; inset: auto 0 0 0; padding: 16px 18px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: #F3EEE4; background: linear-gradient(180deg, transparent, rgba(8, 9, 8, .85)); }

/* ---------- Footer credits ---------- */
.footer__credits { color: var(--muted); font-size: 12.5px; transition: color .3s; }
.footer__credits:hover { color: var(--accent); }

/* ---------- Clients & partners ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.logo-tile, .partner-tile {
  margin: 0; position: relative; display: grid; place-items: center; padding: 18px 22px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--tile);
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s;
}
.logo-tile { height: 104px; }
.logo-tile img, .partner-tile img {
  max-height: 60px; max-width: 100%; width: auto; height: auto; object-fit: contain;
  filter: none; opacity: 1;
  transition: filter .4s, opacity .4s, transform .5s var(--ease);
}
.logo-tile:hover, .partner-tile:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 20px 40px -24px var(--glow); }
.logo-tile:hover img, .partner-tile:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.logo-tile figcaption, .partner-tile figcaption {
  position: absolute; inset-inline: 0; bottom: -30px; text-align: center;
  font-size: 11.5px; color: var(--muted); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s;
  pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px;
}
.logo-tile:hover figcaption, .partner-tile:hover figcaption { opacity: 1; transform: none; }
.logo-tile.is-text figcaption, .partner-tile.is-text figcaption { position: static; opacity: 1; transform: none; white-space: normal; font-family: var(--font-body); font-weight: 500; font-size: 14px; letter-spacing: .02em; color: var(--text-2); }
:root { --tile: #FFFFFF; }
:root:not([data-theme="light"]) .logo-tile, :root:not([data-theme="light"]) .partner-tile { --tile: #ECE7DC; border-color: transparent; }
:root:not([data-theme="light"]) .logo-tile img, :root:not([data-theme="light"]) .partner-tile img { opacity: .85; }
.partners { margin-top: 72px; text-align: center; }
.partners__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; font-weight: 400; }
.partners__row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.partner-tile { height: 84px; padding: 16px 18px; }
.partner-tile img { max-height: 44px; }

/* ---------- CTA band ---------- */
.cta-band { isolation: isolate; padding-block: clamp(80px, 10vw, 140px); background: var(--bg-2); border-block: 1px solid var(--line); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: conic-gradient(from 180deg at 50% 50%, transparent, var(--accent-soft), transparent, var(--accent-soft), transparent);
  animation: spin 24s linear infinite; opacity: .6;
}
.cta-band__inner { position: relative; text-align: center; max-width: 760px; }
.cta-band .h2 { margin-bottom: 14px; }
.cta-band p { color: var(--text-2); margin-bottom: 30px; }
.cta-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.office { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.office__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.office__flag { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; }
.office__name { font-weight: 600; font-size: 15px; }
.office__role { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.office__line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 3px 0; }
.office__line span:first-child { color: var(--muted); }
.office__line a { font-family: var(--font-mono); font-size: 12.5px; direction: ltr; unicode-bidi: embed; }
.office__line a:hover { color: var(--accent); }
.office__addr { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.contact__emails { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.contact__emails a { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 14px; transition: border-color .3s, color .3s; }
.contact__emails a:hover { border-color: var(--accent); color: var(--accent); }

.form { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E887C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-inline-end: 40px; }
[dir="rtl"] .field select { background-position: left 12px center; }
.field select option { background: var(--bg-2); color: var(--text); }
.form__note { font-size: 12.5px; color: var(--muted); }
.form__error { font-size: 13px; color: #E07A5F; }
.form.is-sent .btn { background: var(--emerald); }
:root[data-theme="light"] .form__error { color: #B4533A; }
:root[data-theme="light"] .form.is-sent .btn { background: #2F7A52; }
:root[data-theme="light"] .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='%236B665F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
:root[data-theme="light"] .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237F6236' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 64px; }
.footer__mega {
  font-family: var(--font-display); font-weight: 700; line-height: .8; text-align: center; letter-spacing: .04em;
  font-size: clamp(72px, 19vw, 300px); color: transparent; user-select: none; pointer-events: none;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 38%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 75%);
  -webkit-background-clip: text; background-clip: text;
  margin: 8px 0 -0.12em; direction: ltr;
}
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand .brand-mark { width: 72px; margin-bottom: 16px; }
.footer__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.footer__ar { font-family: var(--font-display); color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 4px; }
.footer__tag { color: var(--accent); font-size: 13.5px; margin-top: 12px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 400; }
.footer__col a { font-size: 14px; color: var(--text-2); transition: color .3s; width: fit-content; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Floating ---------- */
.float-wa, .to-top {
  position: fixed; bottom: 24px; z-index: 800; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-strong); backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), opacity .4s, background-color .3s;
}
.float-wa { inset-inline-end: 24px; background: #25D366; color: #fff; border-color: transparent; box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .6); }
.float-wa svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.float-wa:hover { transform: translateY(-3px) scale(1.05); }
.to-top { inset-inline-end: 88px; background: var(--glass); color: var(--text); opacity: 0; transform: translateY(20px); pointer-events: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.to-top svg.to-top__ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); stroke-width: 1.5; }
.to-top__ring circle { fill: none; stroke: transparent; }
.to-top__ring .to-top__progress { stroke: var(--accent); stroke-dasharray: 154; stroke-dashoffset: 154; stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) { .nav { display: none; } .burger { display: flex; } }
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: flex; }
  .it__grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .partners__row { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .about__grid, .ea__grid, .presence__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .ea__visual { order: -1; }
  .stack { height: 360px; }
  .ea__scene { grid-template-columns: 1fr; }
  .stack__legend { flex-direction: row; flex-wrap: wrap; gap: 10px 20px; justify-content: center; }
  .services__layout { grid-template-columns: 1fr; }
  .services__tabs { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .services__tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; grid-template-columns: auto 1fr; padding: 12px 16px; }
  .tab.is-active { transform: none; }
  .tab__short { display: none; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .cities__row, .sectors__row { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .presence__visual { max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand__text small { display: none; }
  .theme-switch button { width: 28px; height: 26px; }
  .theme-switch__thumb { width: 28px; height: 26px; transform: translateX(calc(var(--idx, 2) * 30px)); }
  [dir="rtl"] .theme-switch__thumb { transform: translateX(calc(var(--idx, 2) * -30px)); }
  .hero { padding-top: calc(var(--header-h) + 24px); min-height: 100svh; }
  .hero__title { font-size: clamp(38px, 12vw, 60px); }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px 18px; }
  .hero__scroll { display: none; }
  .it__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step__photo { aspect-ratio: 16 / 10; }
  .city { aspect-ratio: 4 / 5; }
  .sector { height: 120px; }
  .sectors__row { gap: 10px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .partners__row { grid-template-columns: repeat(2, 1fr); }
  .logo-tile { height: 84px; }
  .offices, .places, .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .to-top { inset-inline-end: 24px; bottom: 86px; }
  .ea__partner { flex-direction: column; align-items: flex-start; }
  .about__orbit { display: none; }
  .brand .brand-mark { width: 44px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__title .w > span { transform: none; }
  html { scroll-behavior: auto; }
  .cursor { display: none !important; }
  body, body a, body button { cursor: auto !important; }
}


/* =========================================================
   Luxury finishing layer
   ========================================================= */
/* gold scrollbar */
html { scrollbar-color: color-mix(in srgb, var(--accent) 70%, transparent) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 55%, var(--bg))); border-radius: 10px; border: 3px solid var(--bg); }

/* one pass of light across the highlighted hero word */
.hero__title .w--accent > span {
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent) 42%, #FFF1CF 50%, var(--accent) 58%, var(--accent) 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero.is-lit .hero__title .w--accent > span { animation: goldSweep 2.6s .2s cubic-bezier(.4, 0, .2, 1) 1 both; }
.hero__title .w--accent:hover > span { animation: goldSweep 1.8s ease 1 both; }
@keyframes goldSweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
:root[data-theme="light"] .hero__title .w--accent > span { background-image: linear-gradient(110deg, var(--accent) 0%, var(--accent) 42%, #D9B871 50%, var(--accent) 58%, var(--accent) 100%); }

/* editorial wipe reveal for photographs */
.step__photo, .city, .sector { clip-path: inset(100% 0 0 0 round var(--radius-lg)); transition: clip-path 1.3s cubic-bezier(.77, 0, .18, 1); }
.sector { clip-path: inset(100% 0 0 0 round 18px); }
.step.is-in .step__photo, .cities.is-in .city, .sectors.is-in .sector { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.sectors.is-in .sector { clip-path: inset(0 0 0 0 round 18px); }
.cities.is-in .city:nth-child(2), .sectors.is-in .sector:nth-child(2) { transition-delay: .12s; }
.cities.is-in .city:nth-child(3), .sectors.is-in .sector:nth-child(3) { transition-delay: .24s; }
.cities.is-in .city:nth-child(4), .sectors.is-in .sector:nth-child(4) { transition-delay: .36s; }

/* parallax wrappers get headroom so motion never shows an edge */
.step__photo picture, .city__photo, .sector__photo, .photo-bg picture { display: block; will-change: transform; }
.step__photo picture { height: 112%; margin-top: -6%; }
.step__photo picture img { height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .step__photo, .city, .sector { clip-path: none !important; }
  .hero__title .w--accent > span { animation: none !important; background-position: 50% 0; }
}


/* =========================================================
   Vivid layer: photographs across services, strip, backgrounds
   ========================================================= */
/* IT service cards with photo headers */
.it-card--media { padding-top: 0; }
.it-card__media { position: relative; margin: 0 -28px 18px; height: 150px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1); }
.it-card.is-in .it-card__media { clip-path: inset(0 0 0 0); }
.it-card__pic, .it-card__pic img { display: block; width: 100%; height: 100%; }
.it-card__pic img { object-fit: cover; filter: saturate(.85) brightness(.82); transform: scale(1.04); transition: transform 1.2s var(--ease), filter .5s; }
.it-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--bg-2) 92%, transparent)); }
.it-card--media:hover .it-card__pic img { transform: scale(1.1); filter: saturate(1) brightness(.92); }
.it-card--media .it-card__icon { position: relative; z-index: 1; margin-top: -44px; background: var(--bg-2); box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.it-card--media .it-card__num { z-index: 2; color: #EFEAE0; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* practice panels: photo on the inline-end side */
.panel__card--media { display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 34px; align-items: start; }
.panel__card--media > :not(.panel__media) { grid-column: 1; }
.panel__media { grid-column: 2; grid-row: 1 / span 4; margin: 0; position: relative; height: 100%; min-height: 260px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); animation: panelPhoto .9s var(--ease) both; }
.panel__pic, .panel__pic img { display: block; width: 100%; height: 100%; }
.panel__pic img { object-fit: cover; filter: saturate(.9) brightness(.88); }
.panel__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 50%, rgba(201, 169, 110, .18)); }
@keyframes panelPhoto { from { opacity: 0; transform: translateX(16px) scale(.98); } to { opacity: 1; transform: none; } }
[dir="rtl"] .panel__media { animation-name: panelPhotoRtl; }
@keyframes panelPhotoRtl { from { opacity: 0; transform: translateX(-16px) scale(.98); } to { opacity: 1; transform: none; } }

/* drifting photo strip */
.strip { position: relative; display: grid; gap: 14px; padding-block: clamp(30px, 5vw, 56px); overflow: hidden; background: var(--bg); }
.strip::before, .strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none; }
.strip::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.strip::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.strip__row { overflow: hidden; }
.strip__track { display: flex; gap: 14px; width: max-content; animation: stripDrift 75s linear infinite; }
.strip__row--r .strip__track { animation-direction: reverse; animation-duration: 90s; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item { margin: 0; flex: none; width: clamp(210px, 22vw, 330px); aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.strip__row--r .strip__item { width: clamp(170px, 17vw, 250px); aspect-ratio: 4 / 3; }
.strip__pic, .strip__pic img { display: block; width: 100%; height: 100%; }
.strip__pic img { object-fit: cover; filter: saturate(.8) brightness(.85); transition: transform 1.2s var(--ease), filter .5s; }
.strip__item:hover .strip__pic img { transform: scale(1.08); filter: saturate(1.05) brightness(1); }
@keyframes stripDrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .strip__track { animation-name: stripDriftRtl; }
@keyframes stripDriftRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* faint photographic backgrounds */
.ea, .contact { isolation: isolate; }
.photo-bg--ea img, .photo-bg--contact img { opacity: .14; filter: saturate(.5); }
.photo-bg--ea::after { background: linear-gradient(90deg, var(--bg-2) 25%, color-mix(in srgb, var(--bg-2) 40%, transparent) 70%, var(--bg-2)); }
.photo-bg--contact::after { background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 40%, var(--bg) 100%); }
:root[data-theme="light"] .photo-bg--ea img, :root[data-theme="light"] .photo-bg--contact img { opacity: .1; filter: saturate(.3) brightness(1.2); }

@media (max-width: 900px) {
  .panel__card--media { grid-template-columns: 1fr; }
  .panel__media { grid-column: 1; grid-row: 1; min-height: 180px; height: 180px; margin-bottom: 20px; }
}
@media (max-width: 600px) { .it-card__media { margin-inline: -24px; } }
@media (prefers-reduced-motion: reduce) {
  .it-card__media { clip-path: none !important; }
  .strip__track, .panel__media { animation: none !important; }
}


/* =========================================================
   Photos for About, AI products and Contact
   ========================================================= */
/* shared reveal for small photo headers inside revealed parents */
.value__media, .ai-card__media, .office__media { position: relative; overflow: hidden; margin: 0; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1); }
.values.is-in .value__media, .ai-card.is-in .ai-card__media, .offices.is-in .office__media { clip-path: inset(0 0 0 0); }
.values.is-in .value:nth-child(2) .value__media, .offices.is-in .office:nth-child(2) .office__media { transition-delay: .12s; }
.values.is-in .value:nth-child(3) .value__media, .offices.is-in .office:nth-child(3) .office__media { transition-delay: .24s; }
.offices.is-in .office:nth-child(4) .office__media { transition-delay: .36s; }
.value__pic, .value__pic img, .ai-card__pic, .ai-card__pic img, .office__pic, .office__pic img, .form__pic, .form__pic img, .about__photo-pic, .about__photo-pic img { display: block; width: 100%; height: 100%; }
.value__pic img, .ai-card__pic img, .office__pic img, .form__pic img, .about__photo-pic img { object-fit: cover; }

/* about values */
.value--media { padding-top: 0; overflow: hidden; }
.value__media { margin: 0 -20px 16px; height: 110px; border-radius: var(--radius) var(--radius) 0 0; }
.value__pic img { filter: saturate(.85) brightness(.85); transition: transform 1.2s var(--ease); }
.value--media:hover .value__pic img { transform: scale(1.08); }
.value__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--bg) 85%, transparent)); }
.value--media .value__icon { position: relative; z-index: 1; margin-top: -36px; background: var(--bg-2); box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); }

/* about: a photo card floating beside the logo card */
.about__visual { position: relative; }
.about__photo {
  position: absolute; z-index: 2; width: 46%; aspect-ratio: 4 / 3; inset-inline-end: -8%; bottom: -10%; margin: 0;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  transform: rotate(3deg); transition: transform .8s var(--ease);
}
[dir="rtl"] .about__photo { transform: rotate(-3deg); }
.about__visual:hover .about__photo { transform: rotate(0) translateY(-6px); }
.about__photo-pic img { filter: saturate(.9) brightness(.9); }
.about__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .35); }

/* AI product cards */
.ai-card--media { padding-top: 0; }
.ai-card__media { margin: 0 -30px 20px; height: 160px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.ai-card__pic img { filter: saturate(.85) brightness(.8); transform: scale(1.04); transition: transform 1.2s var(--ease), filter .5s; }
.ai-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--bg) 88%, transparent)); }
.ai-card--media:hover .ai-card__pic img { transform: scale(1.1); filter: saturate(1) brightness(.92); }
.ai-card--media .ai-card__icon { position: relative; z-index: 1; margin-top: -48px; background: var(--bg-2); box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.ai-card--media .ai-card__signal { z-index: 2; }

/* contact: office cards with city photos */
.office--media { padding-top: 0; overflow: hidden; }
.office__media { margin: 0 -18px 14px; height: 96px; border-radius: 14px 14px 0 0; }
.office__pic img { filter: saturate(.85) brightness(.75); transition: transform 1.2s var(--ease); }
.office--media:hover .office__pic img { transform: scale(1.08); }
.office__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--surface-2) 30%, var(--bg)) 100%); opacity: .9; }
.office--media .office__head { position: relative; z-index: 1; margin-top: -30px; }
.office--media .office__flag { background: var(--bg-2); box-shadow: 0 6px 16px -8px rgba(0,0,0,.6); }

/* contact form banner */
.form__media { position: relative; margin: calc(-1 * clamp(24px, 3vw, 40px)) calc(-1 * clamp(24px, 3vw, 40px)) 8px; height: 150px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.form__pic img { filter: saturate(.85) brightness(.8); transform: scale(1.05); transition: transform 8s ease-out; }
.form.is-in .form__pic img { transform: scale(1); }
.form__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--bg-2)); }

:root[data-theme="light"] .value__pic img, :root[data-theme="light"] .ai-card__pic img, :root[data-theme="light"] .office__pic img, :root[data-theme="light"] .form__pic img { filter: saturate(.9) brightness(.98); }

@media (max-width: 900px) { .about__photo { width: 42%; inset-inline-end: -4%; bottom: -8%; } }
@media (max-width: 600px) {
  .about__photo { display: none; }
  .ai-card__media { margin-inline: -22px; }
}
@media (prefers-reduced-motion: reduce) {
  .value__media, .ai-card__media, .office__media { clip-path: none !important; }
  .about__photo { transform: none !important; }
}


/* =========================================================
   EA layer tiles (photos linked to the animated stack)
   ========================================================= */
.ea-layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(48px, 7vw, 84px); }
.ea-layer { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg); transition: border-color .5s, transform .6s var(--ease), box-shadow .6s; }
.ea-layer__media { position: relative; margin: 0; height: 170px; overflow: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1); }
.ea-layers.is-in .ea-layer__media { clip-path: inset(0 0 0 0); }
.ea-layers.is-in .ea-layer:nth-child(2) .ea-layer__media { transition-delay: .12s; }
.ea-layers.is-in .ea-layer:nth-child(3) .ea-layer__media { transition-delay: .24s; }
.ea-layers.is-in .ea-layer:nth-child(4) .ea-layer__media { transition-delay: .36s; }
.ea-layer__media picture, .ea-layer__media img { display: block; width: 100%; height: 100%; }
.ea-layer__media img { object-fit: cover; filter: saturate(.7) brightness(.72); transform: scale(1.04); transition: transform 1.2s var(--ease), filter .6s; }
.ea-layer__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg)); }
.ea-layer__body { position: relative; padding: 0 22px 22px; margin-top: -26px; }
.ea-layer__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); margin-bottom: 12px; transition: background-color .5s, color .5s, border-color .5s; }
.ea-layer h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.ea-layer p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.ea-layer:hover, .ea-layer.is-lit { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 24px 50px -30px var(--glow); transform: translateY(-4px); }
.ea-layer:hover .ea-layer__media img, .ea-layer.is-lit .ea-layer__media img { filter: saturate(1) brightness(.92); transform: scale(1.09); }
.ea-layer.is-lit .ea-layer__num { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 1100px) { .ea-layers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ea-layers { grid-template-columns: 1fr; } .ea-layer__media { height: 150px; } }
@media (prefers-reduced-motion: reduce) { .ea-layer__media { clip-path: none !important; } }


/* =========================================================
   Clients & partners photography
   ========================================================= */
.clients__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; margin-bottom: clamp(40px, 6vw, 64px); }
.clients__head .section__head { margin-bottom: 0; }
.clients__collage { position: relative; height: clamp(240px, 26vw, 320px); }
.clients__shot { position: absolute; margin: 0; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.clients__shot--a { inset-inline-start: 0; top: 0; width: 72%; height: 82%; }
.clients__shot--b { inset-inline-end: 0; bottom: 0; width: 48%; height: 58%; transform: rotate(3deg); transition: transform .8s var(--ease); }
[dir="rtl"] .clients__shot--b { transform: rotate(-3deg); }
.clients__collage:hover .clients__shot--b { transform: rotate(0) translateY(-6px); }
.clients__pic, .clients__pic img { display: block; width: 100%; height: 100%; }
.clients__pic img { object-fit: cover; filter: saturate(.9) brightness(.88); transition: transform 1.4s var(--ease); }
.clients__collage:hover .clients__shot--a .clients__pic img { transform: scale(1.06); }
.clients__seal {
  position: absolute; z-index: 2; inset-inline-start: 62%; top: 62%; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 30px -10px var(--glow);
  animation: sealFloat 5s ease-in-out infinite;
}
.clients__seal svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes sealFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(8deg); } }
.clients__collage .clients__shot { clip-path: inset(0 0 100% 0 round 22px); transition: clip-path 1.2s cubic-bezier(.77, 0, .18, 1), transform .8s var(--ease); }
.clients__collage.is-in .clients__shot { clip-path: inset(0 0 0 0 round 22px); }
.clients__collage.is-in .clients__shot--b { transition-delay: .2s, 0s; }

/* partners panel over a photograph */
.partners--photo { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.partners__bg { position: absolute; inset: 0; z-index: -1; }
.partners__bg-pic, .partners__bg-pic img { display: block; width: 100%; height: 100%; }
.partners__bg-pic img { object-fit: cover; opacity: .45; filter: saturate(.6); transform: scale(1.06); transition: transform 8s ease-out; }
.partners--photo.is-in .partners__bg-pic img { transform: scale(1); }
.partners__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent), color-mix(in srgb, var(--bg) 88%, transparent)); }
.partners--photo .partners__title { color: var(--text-2); }
:root[data-theme="light"] .partners__bg-pic img { opacity: .25; filter: saturate(.3) brightness(1.15); }

@media (max-width: 900px) {
  .clients__head { grid-template-columns: 1fr; }
  .clients__collage { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .clients__collage .clients__shot { clip-path: none !important; }
  .clients__seal { animation: none; }
}


/* =========================================================
   Presence: seven operating cities + next markets
   ========================================================= */
.cities__row { grid-template-columns: repeat(4, 1fr); }
.cities__row .city:nth-child(n+5) { aspect-ratio: 16 / 10; }
.cities__row:not(.cities__row--next) { grid-template-columns: repeat(12, 1fr); }
.cities__row:not(.cities__row--next) .city { grid-column: span 3; }
.cities__row:not(.cities__row--next) .city:nth-child(n+5) { grid-column: span 4; }
.cities__next-title { margin: 36px 0 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .cities__next-title { letter-spacing: 0; font-size: 13px; }
.cities__row--next { grid-template-columns: repeat(3, 1fr); }
.city--next { aspect-ratio: 16 / 9; }
.city--next .city__photo img { filter: grayscale(.55) brightness(.7); }
.city--next:hover .city__photo img { filter: grayscale(0) brightness(.9); }
.city__role--next { background: rgba(237, 231, 218, .12); color: #EDE7DA; border-color: rgba(237, 231, 218, .35); border-style: dashed; }
.cities.is-in .city:nth-child(5) { transition-delay: .48s; }
.cities.is-in .city:nth-child(6) { transition-delay: .6s; }
.cities.is-in .city:nth-child(7) { transition-delay: .72s; }
@media (max-width: 900px) {
  .cities__row:not(.cities__row--next) { grid-template-columns: 1fr 1fr; }
  .cities__row:not(.cities__row--next) .city, .cities__row:not(.cities__row--next) .city:nth-child(n+5) { grid-column: auto; aspect-ratio: 4 / 5; }
  .cities__row:not(.cities__row--next) .city:nth-child(7) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .cities__row--next { grid-template-columns: 1fr; }
}


/* =========================================================
   Services tabs thumbnails, section backgrounds, process line
   ========================================================= */
.tab { grid-template-columns: 36px minmax(0, 1fr) 58px; }
.tab__thumb { width: 58px; height: 44px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); opacity: .55; transition: opacity .4s, transform .5s var(--ease), border-color .4s; }
.tab__thumb-pic, .tab__thumb-pic img { display: block; width: 100%; height: 100%; }
.tab__thumb-pic img { object-fit: cover; filter: saturate(.6) brightness(.8); transition: filter .4s; }
.tab:hover .tab__thumb { opacity: .85; }
.tab.is-active .tab__thumb { opacity: 1; border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: scale(1.06); }
.tab.is-active .tab__thumb-pic img { filter: saturate(1) brightness(.95); }
@media (max-width: 900px) { .tab { grid-template-columns: auto 1fr; } .tab__thumb { display: none; } }

.services, .process { isolation: isolate; }
.photo-bg--services img { opacity: .1; filter: saturate(.3); }
.photo-bg--services::after { background: radial-gradient(80% 70% at 85% 20%, transparent, var(--bg-2) 70%); }
.photo-bg--process img { opacity: .22; filter: saturate(.7); object-position: center 60%; }
.photo-bg--process::after { background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 35%, color-mix(in srgb, var(--bg) 70%, transparent) 70%, var(--bg) 100%); }
:root[data-theme="light"] .photo-bg--services img { opacity: .07; }
:root[data-theme="light"] .photo-bg--process img { opacity: .14; filter: saturate(.4) brightness(1.15); }

.steps { position: relative; }
.steps__line { position: absolute; z-index: 0; height: 2px; list-style: none; pointer-events: none; transform: scaleX(0); transform-origin: left; transition: transform 1.8s cubic-bezier(.65, 0, .35, 1) .3s;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent), var(--accent)); }
[dir="rtl"] .steps__line { transform-origin: right; }
.steps.is-linked .steps__line { transform: scaleX(1); }
.steps__line::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: stepRun 4.5s ease-in-out 2.2s infinite; opacity: 0; }
@keyframes stepRun { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
[dir="rtl"] .steps__line::after { animation-name: stepRunRtl; }
@keyframes stepRunRtl { 0% { right: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { right: calc(100% - 8px); opacity: 0; } }
.step { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .steps__line { transform: none; transition: none; } .steps__line::after { animation: none; } }


/* =========================================================
   Hero: cinematic photo slideshow behind the 3D mark
   4 slides, 7s each, crossfade with a slow push-in
   ========================================================= */
.hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.hero__slides::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 38%, color-mix(in srgb, var(--bg) 45%, transparent) 75%, color-mix(in srgb, var(--bg) 60%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 30%, transparent 65%, var(--bg) 100%);
}
[dir="rtl"] .hero__slides::after {
  background:
    linear-gradient(270deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 38%, color-mix(in srgb, var(--bg) 45%, transparent) 75%, color-mix(in srgb, var(--bg) 60%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 30%, transparent 65%, var(--bg) 100%);
}
.hero__slide { position: absolute; inset: 0; opacity: 0; animation: heroSlide 28s linear infinite; animation-delay: calc(var(--i) * 7s - .5s); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.8); }
.hero__slide:first-child { opacity: 1; }
@keyframes heroSlide {
  0% { opacity: 0; transform: scale(1.04); }
  5% { opacity: 1; }
  25% { opacity: 1; }
  32% { opacity: 0; transform: scale(1.14); }
  100% { opacity: 0; transform: scale(1.14); }
}
:root[data-theme="light"] .hero__slide img { filter: saturate(.6) brightness(1.05); opacity: .55; }

/* location caption that follows the slides */
.hero__locs { position: absolute; z-index: 2; bottom: 34px; inset-inline-end: var(--gutter); display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
[dir="rtl"] .hero__locs { letter-spacing: 0; font-size: 13px; text-transform: none; }
.hero__loc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: locPulse 2.4s ease-in-out infinite; }
@keyframes locPulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.hero__loc-stack { position: relative; display: inline-grid; }
.hero__loc { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); animation: heroLoc 28s linear infinite; animation-delay: calc(var(--i) * 7s - .5s); white-space: nowrap; }
@keyframes heroLoc { 0% { opacity: 0; transform: translateY(6px); } 4% { opacity: 1; transform: none; } 23% { opacity: 1; transform: none; } 27% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 0; } }
@media (max-width: 760px) { .hero__locs { display: none; } .hero__slide img { filter: saturate(.7) brightness(.6); } }
@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; opacity: 0; } .hero__slide:first-child { opacity: 1; }
  .hero__loc { animation: none; } .hero__loc:first-child { opacity: 1; transform: none; }
}


/* =========================================================
   IT services: split heading with a photo mosaic
   ========================================================= */
.it__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); gap: clamp(32px, 6vw, 80px); align-items: center; margin-bottom: clamp(40px, 6vw, 64px); }
.it__head .section__head { margin-bottom: 0; }
.it__mosaic { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(260px, 28vw, 360px); }
.it__tile { position: relative; margin: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--line-strong); clip-path: inset(100% 0 0 0 round 20px); transition: clip-path 1.2s cubic-bezier(.77, 0, .18, 1); }
.it__tile--tall { grid-row: 1 / span 2; }
.it__mosaic.is-in .it__tile { clip-path: inset(0 0 0 0 round 20px); }
.it__mosaic.is-in .it__tile:nth-child(2) { transition-delay: .15s; }
.it__mosaic.is-in .it__tile:nth-child(3) { transition-delay: .3s; }
.it__tile-pic, .it__tile-pic img { display: block; width: 100%; height: 100%; }
.it__tile-pic img { object-fit: cover; filter: saturate(.85) brightness(.82); transition: transform 1.4s var(--ease), filter .5s; }
.it__tile:hover .it__tile-pic img { transform: scale(1.08); filter: saturate(1) brightness(.95); }
.it__tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .18); pointer-events: none; }
.it__tile--tall::before { content: ""; position: absolute; z-index: 1; inset-inline-start: 14px; bottom: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 0 rgba(127, 169, 124, .6); animation: agentLive 2.4s ease-out infinite; }
/* the racks background, a little more present */
.photo-bg--it img { opacity: .3; }
:root[data-theme="light"] .photo-bg--it img { opacity: .16; }
@media (max-width: 1000px) { .it__head { grid-template-columns: 1fr; } .it__mosaic { height: 280px; } }
@media (max-width: 560px) { .it__mosaic { height: 230px; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .it__tile { clip-path: none !important; } }


/* =========================================================
   AI band: the four flow steps as an expanding photo accordion
   ========================================================= */
.ai-band { display: flex; gap: 12px; height: clamp(300px, 34vw, 420px); margin-top: clamp(44px, 6vw, 72px); }
.ai-band__panel { position: relative; flex: 1 1 0; min-width: 0; margin: 0; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  transition: flex-grow .9s var(--ease), border-color .5s; clip-path: inset(100% 0 0 0 round var(--radius-lg)); }
.ai-band.is-in .ai-band__panel { clip-path: inset(0 0 0 0 round var(--radius-lg)); transition: flex-grow .9s var(--ease), border-color .5s, clip-path 1.2s cubic-bezier(.77, 0, .18, 1) calc(var(--i) * .12s); }
.ai-band__panel.is-open { flex-grow: 2.4; border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.ai-band__pic, .ai-band__pic img { display: block; width: 100%; height: 100%; }
.ai-band__pic img { object-fit: cover; filter: saturate(.75) brightness(.6); transform: scale(1.08); transition: transform 1.6s var(--ease), filter .7s; }
.ai-band__panel.is-open .ai-band__pic img { filter: saturate(1) brightness(.85); transform: scale(1); }
.ai-band__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 9, 8, .85)); pointer-events: none; }
.ai-band__panel figcaption { position: absolute; z-index: 1; inset-inline: 0; bottom: 0; padding: 22px; display: flex; flex-direction: column; gap: 6px; color: #F3EEE4; }
.ai-band__num { font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: .12em; }
.ai-band__label { font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-band__panel.is-open .ai-band__label { white-space: normal; }
.ai-band__panel:nth-child(2) .ai-band__num { color: #fff; background: var(--gold); width: fit-content; padding: 2px 8px; border-radius: 999px; color: #15120B; }
.ai-band__arrow { position: absolute; z-index: 2; top: 50%; inset-inline-end: -19px; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--bg); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.ai-band__arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: translateX(-1px) rotate(45deg); }
[dir="rtl"] .ai-band__arrow::before { transform: translateX(1px) rotate(-135deg); }
.ai-band__panel { overflow: visible; }
.ai-band__panel > .ai-band__pic { overflow: hidden; border-radius: inherit; }
.ai-band__panel::after { border-radius: inherit; }
@media (max-width: 900px) {
  .ai-band { flex-direction: column; height: auto; }
  .ai-band__panel, .ai-band__panel.is-open { flex: none; height: 170px; }
  .ai-band__arrow { top: auto; bottom: -19px; inset-inline-end: auto; inset-inline-start: 50%; margin: 0 0 0 -13px; }
  .ai-band__arrow::before { transform: translateY(-1px) rotate(135deg); }
  [dir="rtl"] .ai-band__arrow::before { transform: translateY(-1px) rotate(135deg); }
  .ai-band__label { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .ai-band__panel { clip-path: none !important; } }
.ai-band__panel:nth-child(2) .ai-band__pic img { object-position: 35% center; }
.ai-band__panel:nth-child(3) .ai-band__pic img { object-position: 80% center; }
.ai-band__panel:nth-child(3).is-open .ai-band__pic img { filter: saturate(1) brightness(1.15); }


/* =========================================================
   Presence v2: clearer globe, callout, stats and country cards
   ========================================================= */
.presence__visual { isolation: isolate; }
.presence__halo { position: absolute; inset: 4%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 62%); }
.presence__halo::before, .presence__halo::after { content: ""; position: absolute; inset: -2%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 30%, transparent); }
.presence__halo::after { inset: -7%; border-style: solid; border-color: color-mix(in srgb, var(--accent) 14%, transparent); }
.presence__canvas { touch-action: pan-y; }

.globe-tip { position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 3; pointer-events: none; will-change: transform; }
.globe-tip::before { content: ""; position: absolute; left: -.5px; bottom: 0; width: 1px; height: 30px; background: linear-gradient(0deg, var(--accent), transparent); }
.globe-tip__box { position: absolute; bottom: 30px; left: 0; translate: -50% 0; display: flex; align-items: center; gap: 8px; direction: inherit; }
.globe-tip__code { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; box-shadow: 0 10px 24px -8px var(--glow); }
.globe-tip__txt { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 12px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-strong); box-shadow: var(--shadow); white-space: nowrap; }
.globe-tip__txt b { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.25; }
.globe-tip__txt small { font-size: 12px; color: var(--muted); }
.globe-tip.is-planned .globe-tip__code { background: transparent; color: var(--text-2); border: 1.5px dashed var(--platinum-deep); box-shadow: none; }
.globe-tip { opacity: 0; transition: opacity .35s; }
.globe-tip.is-on { opacity: 1; }
.globe-tip.is-on.is-away { opacity: 0; }
.globe-tip.is-on .globe-tip__box { animation: tipIn .5s var(--ease); }
@keyframes tipIn { from { opacity: 0; transform: translateY(8px); } }

.presence__legend { inset-inline-start: 50%; transform: translateX(-50%); bottom: -4px; padding: 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--text-2); white-space: nowrap; }
[dir="rtl"] .presence__legend { transform: translateX(50%); }
.dot--hq { width: 10px; height: 10px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 12px var(--accent); }
.dot--planned { background: transparent; border: 1.5px dashed var(--platinum-deep); }

.presence__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.pstat { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.pstat + .pstat { border-inline-start: 1px solid var(--line); }
.pstat b { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); line-height: 1; font-weight: 700; color: var(--accent); }
.pstat:nth-child(2) b { color: var(--text-2); }
.pstat:nth-child(3) b { color: var(--text); }
.pstat span { font-size: 13px; color: var(--muted); }

.places { grid-template-columns: 1fr; gap: 22px; margin-top: 26px; }
.places h4 { display: flex; align-items: center; gap: 10px; }
.pcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.places li.pcard { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); cursor: pointer;
  transition: border-color .3s, background-color .3s, transform .35s var(--ease), box-shadow .35s; }
.pcard__code { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; transition: background-color .3s, color .3s; }
.pcard__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pcard__txt strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.pcard__txt small { font-size: 12.5px; color: var(--muted); }
.pcard__pin { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .45; transition: opacity .3s, box-shadow .3s; }
.pcard__tag { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
[dir="rtl"] .pcard__tag { font-family: var(--font-body); letter-spacing: 0; font-size: 12px; }
.pcard--hq { grid-column: 1 / -1; padding: 16px 18px !important; border-color: color-mix(in srgb, var(--accent) 45%, transparent) !important;
  background: linear-gradient(120deg, var(--accent-soft), transparent 70%), var(--bg) !important; }
.pcard--hq .pcard__code { width: 46px; height: 46px; background: var(--accent); color: var(--accent-ink); font-size: 14px; }
.pcard--hq .pcard__txt strong { font-family: var(--font-display); font-size: 19px; }
.places li.pcard:hover, .places li.pcard.is-hot, .places li.pcard:focus-visible { border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-2px); box-shadow: 0 16px 30px -18px var(--glow); background: var(--bg); outline: none; }
.places li.pcard.is-hot .pcard__code { background: var(--accent); color: var(--accent-ink); }
.places li.pcard.is-hot .pcard__pin { opacity: 1; box-shadow: 0 0 0 4px var(--accent-soft); }

.pchips { display: flex; flex-wrap: wrap; gap: 8px; }
.places li.pchip { flex-direction: row; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; border: 1px dashed var(--line-strong); background: transparent; cursor: pointer; transition: border-color .3s, background-color .3s, color .3s; }
[dir="rtl"] .places li.pchip { padding: 7px 7px 7px 14px; }
.pchip__code { display: grid; place-items: center; height: 26px; min-width: 32px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--text-2); }
.pchip strong { font-size: 14px; font-weight: 600; }
.places li.pchip:hover, .places li.pchip.is-hot, .places li.pchip:focus-visible { border-style: solid; border-color: var(--accent); background: var(--accent-soft); outline: none; }
.places li.pchip.is-hot .pchip__code { background: var(--accent); color: var(--accent-ink); }
.places__hint { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin: 0; }
.places__hint::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:root[data-theme="light"] .presence__halo { background: radial-gradient(circle at 50% 50%, rgba(176, 138, 74, .16) 0%, transparent 62%); }
:root[data-theme="light"] .places li.pcard { background: #fff; box-shadow: 0 1px 0 rgba(26, 24, 20, .04); }
:root[data-theme="light"] .pcard--hq { background: linear-gradient(120deg, rgba(127, 98, 54, .12), transparent 70%), #fff !important; }

@media (max-width: 560px) {
  .pcards { gap: 8px; }
  .places li.pcard { gap: 9px; padding: 10px; }
  .pcard__code { width: 32px; height: 32px; font-size: 11px; border-radius: 9px; }
  .pcard__txt strong { font-size: 13.5px; }
  .pcard__pin { display: none; }
  .pstat { padding: 12px; }
  .pstat span { font-size: 12px; }
  .presence__legend { gap: 12px; font-size: 10px; padding: 6px 12px; }
  .globe-tip__txt b { font-size: 13.5px; }
}


/* Hero: company name lockup under the 3D mark (placed from scene.js) */
.hero__name { position: absolute; z-index: 1; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; pointer-events: none; white-space: nowrap;
  opacity: 0; animation: heroNameIn 1.2s var(--ease) 1.4s forwards; }
.hero__name::before { content: ""; width: 56px; height: 1px; margin-bottom: 8px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.hero__name-ar { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.7vw, 26px); color: var(--text); line-height: 1.3; direction: rtl; }
.hero__name-en { font-family: var(--font-mono); font-size: clamp(10.5px, .85vw, 12.5px); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
@keyframes heroNameIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .hero__name { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__name { animation: none; opacity: 1; } }


/* About card: company name under the mark (replaces the corner meta and the floating photo) */
.tilt-card__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tilt-card__inner picture { width: 58%; margin-top: -8%; }
.tilt-card__name { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 4%; text-align: center; transform: translateZ(40px); }
.tilt-card__name::before { content: ""; width: 48px; height: 1px; margin-bottom: 6px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.tilt-card__name-ar { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.3; color: var(--text); direction: rtl; }
.tilt-card__name-en { font-family: var(--font-mono); font-size: clamp(10px, .8vw, 12px); letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.tilt-card__hq { margin-top: 6px; font-size: 10.5px; color: var(--muted); letter-spacing: .1em; }
[dir="rtl"] .tilt-card__hq { letter-spacing: 0; font-size: 12px; }


/* =========================================================
   Cybersecurity section
   ========================================================= */
.cyber { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); }
.photo-bg--cyber img { opacity: .1; filter: saturate(.5); }
:root[data-theme="light"] .photo-bg--cyber img { opacity: .07; filter: saturate(.3) brightness(1.2); }
.cyber__head { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cyber__stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.cstat { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.cstat + .cstat { border-inline-start: 1px solid var(--line); }
.cstat b { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); line-height: 1; color: var(--accent); }
.cstat span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }

.cyber__visual { position: relative; aspect-ratio: 5 / 4; }
.cyber__photo { position: absolute; inset: 0; margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.cyber__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.55); }
:root[data-theme="light"] .cyber__photo img { filter: saturate(.75) brightness(.7); }
.cyber__photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(8, 9, 8, .55) 85%); }
.cyber__shield { position: absolute; inset: 0; display: grid; place-items: center; }
.cyber__shield svg { width: 46%; overflow: visible; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.cs-ring { fill: none; stroke: rgba(230, 211, 174, .35); stroke-width: .6; }
.cs-ring--dash { stroke-dasharray: 2 4; stroke: rgba(230, 211, 174, .55); transform-origin: 60px 60px; animation: csSpin 40s linear infinite; }
.cs-shield { fill: rgba(17, 19, 18, .72); stroke: #C9A96E; stroke-width: 2; stroke-linejoin: round; }
.cs-check { fill: none; stroke: #E6D3AE; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset 1.2s var(--ease) .5s; }
.cyber__visual.is-in .cs-check { stroke-dashoffset: 0; }
@keyframes csSpin { to { transform: rotate(360deg); } }
.cyber__badges { position: absolute; inset: 0; pointer-events: none; }
.cyber__badges li { position: absolute; padding: 7px 12px; border-radius: 999px; background: rgba(17, 19, 18, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(201, 169, 110, .45); color: #EDE7DA; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; white-space: nowrap; }
.cyber__badges li:nth-child(1) { top: 9%; inset-inline-start: 7%; }
.cyber__badges li:nth-child(2) { top: 16%; inset-inline-end: 7%; }
.cyber__badges li:nth-child(3) { bottom: 16%; inset-inline-start: 9%; }
.cyber__badges li:nth-child(4) { bottom: 9%; inset-inline-end: 9%; }

.cyber__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(48px, 6vw, 80px); }
.cyber__col { padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); }
:root[data-theme="light"] .cyber__col { background: #fff; }
.cyber__col-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); margin: 0 0 18px; }
.cyber__col-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 14px; }
.cyber__list { display: grid; gap: 4px; }
.cyber-item { display: flex; gap: 14px; padding: 14px 10px; border-radius: 14px; transition: background-color .3s; }
.cyber-item + .cyber-item { border-top: 1px solid var(--line); border-radius: 0; }
.cyber-item:hover { background: var(--surface); }
.cyber-item__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.cyber-item__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cyber-item h4 { font-size: 16px; font-weight: 600; margin: 0 0 4px; line-height: 1.35; }
.cyber-item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }

.cyber__sub { font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
[dir="rtl"] .cyber__sub { font-family: var(--font-body); letter-spacing: 0; font-size: 14px; text-transform: none; }
.cyber__model { margin-top: clamp(44px, 5vw, 64px); }
.cyber__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: cstep; }
.cyber-step { position: relative; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.cyber-step::after { content: ""; position: absolute; top: 34px; inset-inline-end: -13px; width: 14px; height: 1px; background: var(--accent); }
.cyber-step:last-child::after { display: none; }
.cyber-step__n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.cyber-step h4 { font-family: var(--font-display); font-size: 20px; margin: 6px 0 6px; }
.cyber-step p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }

.cyber__refs { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: clamp(40px, 5vw, 56px); }
.cyber__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cyber__chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-2); background: var(--bg-2); transition: border-color .3s, color .3s; direction: ltr; }
.cyber__chips li:hover { border-color: var(--accent); color: var(--text); }
.cyber__chips--tools li { border-style: dashed; }

@media (max-width: 1000px) {
  .cyber__head, .cyber__cols, .cyber__refs { grid-template-columns: 1fr; }
  .cyber__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .cyber__steps { grid-template-columns: 1fr 1fr; }
  .cyber-step:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .cyber__stats { grid-template-columns: 1fr 1fr; }
  .cstat:nth-child(3) { border-inline-start: 0; }
  .cstat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cyber__steps { grid-template-columns: 1fr; }
  .cyber-step::after { display: none; }
  .cyber__badges li { font-size: 10px; padding: 5px 9px; }
}
@media (prefers-reduced-motion: reduce) { .cs-ring--dash { animation: none; } .cs-check { stroke-dashoffset: 0; } }
.photo-bg--cyber picture { height: 124%; margin-top: -12%; }
.photo-bg--cyber::after { background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 30%, color-mix(in srgb, var(--bg) 55%, transparent) 70%, var(--bg) 100%); }


/* Cybersecurity v2: photo band, GRC programme, architecture, partners */
.cyber-band { margin-top: 0; }
.cyber-band__desc { font-size: 13.5px; line-height: 1.55; color: rgba(243, 238, 228, .82); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .8s var(--ease), opacity .5s; }
.cyber-band .ai-band__panel.is-open .cyber-band__desc { max-height: 120px; opacity: 1; }
.cyber-band .ai-band__panel:nth-child(2) .ai-band__num { background: none; padding: 0; color: var(--gold); }
.cyber-band .ai-band__panel.is-open .ai-band__num { background: var(--gold); color: #15120B; padding: 2px 8px; border-radius: 999px; width: fit-content; }
.cyber-band .ai-band__pic img[src*="cyber-cctv"] { object-position: 70% 50%; }
@media (max-width: 900px) { .cyber-band .ai-band__panel, .cyber-band .ai-band__panel.is-open { height: 200px; } .cyber-band__desc { max-height: 120px; opacity: 1; } }

.cyber-proof { margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 3.4vw, 48px); border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(150deg, var(--accent-soft), transparent 55%), var(--bg-2); }
:root[data-theme="light"] .cyber-proof { background: linear-gradient(150deg, rgba(127, 98, 54, .08), transparent 55%), #fff; }
.cyber-proof__head { max-width: 760px; }
.cyber-proof__title { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; margin: 6px 0 12px; }
.cyber-proof__lead { margin: 0; color: var(--text-2); line-height: 1.7; }
.cyber-proof__nums { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 28px 0 36px; }
.cnum { padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
:root[data-theme="light"] .cnum { background: var(--bg); }
.cnum b { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 34px); line-height: 1; color: var(--accent); direction: ltr; text-align: start; }
.cnum span { font-weight: 600; font-size: 14px; }
.cnum small { font-size: 12px; color: var(--muted); line-height: 1.45; }

.cyber-arch { display: grid; grid-template-columns: 1.15fr 18px .95fr 18px 1.1fr 18px 1fr; align-items: stretch; margin-bottom: 36px; }
.cyber-arch__col { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--bg); }
.cyber-arch__col h5 { margin: 0 0 12px; font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
[dir="rtl"] .cyber-arch__col h5 { font-family: var(--font-body); letter-spacing: 0; font-size: 13px; font-weight: 600; }
.cyber-arch__col ul { display: grid; gap: 6px; }
.cyber-arch__col li { display: flex; flex-direction: column; padding: 7px 10px; border-radius: 10px; background: var(--surface); }
.cyber-arch__col li strong { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cyber-arch__col li small { font-size: 11.5px; color: var(--muted); }
.cyber-arch__col--core { border-color: var(--accent); box-shadow: 0 20px 40px -26px var(--glow); }
.cyber-arch__core { display: grid; place-items: center; height: 54px; margin-bottom: 10px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.cyber-arch__col--core ul { grid-template-columns: 1fr 1fr; }
.cyber-arch__col--core li { padding: 6px 8px; }
.cyber-arch__col--core li:last-child { grid-column: 1 / -1; }
.cyber-arch__flow { position: relative; align-self: center; height: 2px; background: linear-gradient(90deg, transparent, var(--accent)); }
.cyber-arch__flow::after { content: ""; position: absolute; inset-inline-end: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
[dir="rtl"] .cyber-arch__flow { background: linear-gradient(270deg, transparent, var(--accent)); }
[dir="rtl"] .cyber-arch__flow::after { transform: rotate(-135deg); }

.cyber-shift { display: grid; gap: 6px; }
.cyber-shift__row { display: grid; grid-template-columns: 1fr 34px 1.2fr; align-items: center; gap: 6px; }
.cyber-shift__row--head span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 14px; }
[dir="rtl"] .cyber-shift__row--head span { font-family: var(--font-body); letter-spacing: 0; font-size: 13px; }
.cyber-shift__row--head span:last-child { color: var(--accent); }
.cyber-shift__before, .cyber-shift__after { padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.cyber-shift__before { color: var(--muted); background: var(--surface); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent); }
.cyber-shift__after { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text); }
.cyber-shift__arrow { justify-self: center; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
[dir="rtl"] .cyber-shift__arrow { transform: rotate(-135deg); }

.cyber-partners { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cyber-partner { margin: 0; }

@media (max-width: 1100px) {
  .cyber-proof__nums { grid-template-columns: repeat(3, 1fr); }
  .cyber-arch { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cyber-arch__flow { display: none; }
}
@media (max-width: 640px) {
  .cyber-proof__nums { grid-template-columns: 1fr 1fr; }
  .cyber-arch { grid-template-columns: 1fr; }
  .cyber-shift__row { grid-template-columns: 1fr; gap: 4px; margin-bottom: 8px; }
  .cyber-shift__row--head { display: none; }
  .cyber-shift__arrow { transform: rotate(135deg); width: 8px; height: 8px; }
  [dir="rtl"] .cyber-shift__arrow { transform: rotate(135deg); }
}
@media (max-width: 640px) { .cyber-arch__col ul { grid-template-columns: 1fr 1fr; } .cyber-arch__col li { padding: 6px 8px; } }

/* GRC in practice: headings only */
.cyber-proof { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
.cyber-proof__title { margin-bottom: 0; }
.cyber-proof__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cyber-proof__tags li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--bg); font-size: 14px; font-weight: 500; }
.cyber-proof__tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) { .cyber-proof { grid-template-columns: 1fr; } }

/* IT services: seven cards, the first spans two columns so every row is full */
.it__grid > .it-card:first-child { grid-column: span 2; }
@media (max-width: 600px) { .it__grid > .it-card:first-child { grid-column: auto; } }

/* services panel: link through to a practice's own section */
.panel__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; transition: background-color .3s, color .3s; }
.panel__more:hover { background: var(--accent); color: var(--accent-ink); }
[dir="rtl"] .panel__more span { display: inline-block; transform: scaleX(-1); }

/* cyber stats: three figures */
.cyber__stats { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .cyber__stats { grid-template-columns: repeat(3, 1fr); } .cstat:nth-child(3) { border-inline-start: 1px solid var(--line); } .cstat:nth-child(n+3) { border-top: 0; } }


/* =========================================================
   Presence: country cards merged with the city photos
   ========================================================= */
.presence__grid { align-items: start; }
.presence__visual { position: sticky; top: calc(var(--header-h) + 24px); }
.places li.pcard--photo { position: relative; isolation: isolate; overflow: hidden; min-height: 124px; align-items: flex-end; padding: 14px 16px;
  background: #111312; border: 1px solid var(--line); color: #F3EEE4; }
.places li.pcard--photo .pcard__photo { position: absolute; inset: 0; z-index: -2; }
.places li.pcard--photo .pcard__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.8); transform: scale(1.02); transition: transform 1.2s var(--ease), filter .6s; }
.places li.pcard--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 9, 8, .05) 0%, rgba(8, 9, 8, .35) 45%, rgba(8, 9, 8, .86) 100%); }
.places li.pcard--photo .pcard__code { position: absolute; top: 12px; inset-inline-start: 12px; width: auto; height: 28px; padding: 0 9px; border-radius: 999px;
  background: rgba(17, 19, 18, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(201, 169, 110, .5); color: #E6D3AE; font-size: 11px; }
.places li.pcard--photo .pcard__txt strong { color: #fff; font-size: 16px; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.places li.pcard--photo .pcard__txt small { color: rgba(243, 238, 228, .82); }
.places li.pcard--photo.pcard--hq { min-height: 178px; padding: 18px 20px !important; background: #111312 !important; border-color: color-mix(in srgb, var(--gold) 60%, transparent) !important; }
.places li.pcard--photo.pcard--hq .pcard__code { width: auto; height: 30px; background: var(--gold); color: #15120B; border-color: transparent; }
.places li.pcard--photo.pcard--hq .pcard__txt strong { font-size: 24px; }
.places li.pcard--photo .pcard__tag { position: absolute; top: 12px; inset-inline-end: 12px; background: var(--gold); color: #15120B; }
.places li.pcard--photo:hover, .places li.pcard--photo.is-hot, .places li.pcard--photo:focus-visible { background: #111312; border-color: var(--gold); box-shadow: 0 18px 34px -20px rgba(201, 169, 110, .55); }
.places li.pcard--photo:hover .pcard__photo img, .places li.pcard--photo.is-hot .pcard__photo img { transform: scale(1.08); filter: saturate(1) brightness(.95); }
.places li.pcard--photo.is-hot .pcard__code { background: var(--gold); color: #15120B; border-color: transparent; }
:root[data-theme="light"] .places li.pcard--photo, :root[data-theme="light"] .places li.pcard--photo:hover, :root[data-theme="light"] .places li.pcard--photo.is-hot { background: #111312; box-shadow: 0 14px 28px -20px rgba(26, 24, 20, .45); }
:root[data-theme="light"] .places li.pcard--photo.pcard--hq { background: #111312 !important; }

.pchip__img { flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-strong); }
.pchip__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.places li.pchip.pchip--photo { padding-inline-start: 4px; }
[dir="rtl"] .places li.pchip.pchip--photo { padding-inline-start: 4px; padding-inline-end: 14px; }

@media (max-width: 900px) { .presence__visual { position: relative; top: auto; } }
@media (max-width: 560px) {
  .places li.pcard--photo { min-height: 112px; padding: 12px; }
  .places li.pcard--photo.pcard--hq { min-height: 150px; }
  .places li.pcard--photo .pcard__txt strong { font-size: 14px; }
  .places li.pcard--photo.pcard--hq .pcard__txt strong { font-size: 20px; }
}


/* =========================================================
   Type hierarchy v2 (client review)
   The section label names the section, so it reads as a title tag,
   not a whisper; sub-headings and Arabic text get real sizes.
   ========================================================= */
/* header never squeezes the brand */
.brand { flex: none; }
.brand__text { white-space: nowrap; }
.brand__text small { font-size: 10.5px; }
.nav { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
.nav a { white-space: nowrap; }
.header.nav-compact .nav { display: none; }
.header.nav-compact .burger { display: flex; }
[dir="rtl"] .nav a { font-size: 15px; }

/* 1. section label */
.eyebrow { font-size: 14px; font-weight: 500; letter-spacing: .16em; line-height: 1.35; gap: 10px; padding: 8px 18px 8px 14px; margin-bottom: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 20px; background: var(--accent-soft); }
.eyebrow::before, [dir="rtl"] .eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
[dir="rtl"] .eyebrow.eyebrow { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: 0; padding: 5px 18px 7px 16px; }
.h2 { font-size: clamp(30px, 3.6vw, 50px); }
@media (max-width: 560px) { .eyebrow { font-size: 12.5px; letter-spacing: .12em; padding: 7px 14px 7px 12px; } [dir="rtl"] .eyebrow.eyebrow { font-size: 17px; } }

/* 2. sub-headings inside sections */
:is(.cyber__sub, .places h4, .sectors__label, .partners__title, .footer__col h4) { font-size: 13.5px; letter-spacing: .14em; color: var(--text-2); font-weight: 500; }
[dir="rtl"] :is(.cyber__sub, .places h4, .sectors__label, .partners__title, .footer__col h4) { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: 0; }
.scope-chart__sub { font-size: 13.5px; }

/* 3. numbers, codes and small tags */
:is(.it-card__num, .tab__idx, .ai-band__num, .ea-layer__num, .office__flag) { font-size: 13px; }
:is(.pcard__code, .pchip__code) { font-size: 12px; }
.office__role { font-size: 11.5px; }
.tilt-card__hq { font-size: 12px; }
.hero__locs { font-size: 12.5px; }
.cyber__badges li { font-size: 12.5px; }
.cyber__chips li { font-size: 13px; }

/* 4. Arabic reads smaller than Latin at the same size: lift every small Arabic text */
[dir="rtl"] :is(.cyber-item p, .ea-layer__body p, .ea__partner p, .value p, .it-card p, .ai-card p, .step p, .panel__desc) { font-size: 15.5px; line-height: 1.85; }
[dir="rtl"] :is(.chip, .tab__short, .xr-label, .places__hint, .form__note, .scope-chart__sub, .office__line a, .footer__credits, .pcard__txt small,
  .cstat span, .pstat span, .stat__label, .cyber-band__desc, .cyber-proof__tags li, .footer__col a, .contact__emails a, .hero__loc, .office__role,
  .panel__scope, .mono, .footer__tag, .ai__note, .office__addr, .scope-bar__name) { font-size: 14.5px; }
[dir="rtl"] .cyber-item h4 { font-size: 17px; }

/* 5. no cut-off labels in the photo bands */
.ai-band__label { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ai-band__panel:not(.is-open) .ai-band__label { font-size: clamp(14px, 1.15vw, 17px); }
.header__inner.container { width: min(100% - var(--gutter) * 2, 1600px); }


/* =========================================================
   Review fixes (pre-launch QA)
   ========================================================= */
/* 1. tools stay at the far edge whatever the menu does */
.header__tools { margin-inline-start: auto; }
.header.no-cta .header__cta { display: none; }
@media (max-width: 760px) { .header__cta { display: none; } }

/* 3. fixed buttons never cover the footer's last line */
.footer__bottom { padding-bottom: 92px; }

/* 4. the globe really stays in view beside the country cards */
.presence { overflow: clip; }

/* 5. phone hero: the label stays legible over the 3D mark */
@media (max-width: 900px) {
  .hero .eyebrow { position: relative; z-index: 1; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}

/* 6. light theme: card numbers on photos sit on a dark pill */
.it-card--media .it-card__num { background: rgba(17, 19, 18, .6); color: #EFEAE0; padding: 3px 9px; border-radius: 999px; text-shadow: none; }

/* 7. phone numbers and emails keep their order in Arabic */
a[href^="tel:"], a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; }

/* 9. phone: one floating button less over the text */
@media (max-width: 600px) { .to-top { display: none; } }

/* 10. section label: a touch larger in English, darker in the light theme */
.eyebrow { font-size: 15px; letter-spacing: .14em; text-wrap: balance; }
@media (max-width: 560px) { .eyebrow { font-size: 13px; letter-spacing: .1em; } }
:root[data-theme="light"] .eyebrow { color: #6a5030; }

/* 11. comfortable tap targets */
.lang-toggle { min-height: 40px; }
.theme-switch button::after { content: ""; position: absolute; inset: -7px -3px; }
@media (max-width: 760px) { .footer__col a { display: inline-block; padding-block: 7px; } }

/* 12. small codes */
.places li.pcard--photo .pcard__code { font-size: 12px; }

/* 13. services: the page no longer jumps when switching tabs (desktop) */
@media (min-width: 901px) { #servicePanels { min-height: 640px; } }
@media (max-width: 900px) {
  .services__tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  [dir="rtl"] .services__tabs { -webkit-mask-image: linear-gradient(270deg, #000 85%, transparent); mask-image: linear-gradient(270deg, #000 85%, transparent); }
}

/* 15. keyboard focus visible on country cards; skip link */
.places li.pcard:focus-visible, .places li.pchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; top: 10px; inset-inline-start: 10px; z-index: 10000; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }

/* partners: 12 logos in two even rows; three cybersecurity partners side by side */
@media (min-width: 1101px) { .partners__row { grid-template-columns: repeat(6, 1fr); } }
.cyber-partners { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .cyber-partners { grid-template-columns: 1fr 1fr; } }

/* seven offices: headquarters across the top, six branches in pairs */
.offices > .office:first-child { grid-column: 1 / -1; }


/* =========================================================
   Fixed header that condenses on scroll + webmail button
   ========================================================= */
html { scroll-padding-top: 84px; }
.header { transform: none !important; transition: background-color .4s, border-color .4s, box-shadow .4s, backdrop-filter .4s; }
.header__inner { transition: height .45s var(--ease); }
.header .brand .brand-mark { transition: width .45s var(--ease); }
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .55); }
:root[data-theme="light"] .header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(26, 24, 20, .25); }
.header.is-scrolled .header__inner { height: 62px; }
.header.is-scrolled .brand .brand-mark { width: 42px; }

.webmail-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color .3s, border-color .3s, background-color .3s; }
.webmail-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.webmail-btn:hover, .webmail-btn:focus-visible { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
[dir="rtl"] .webmail-btn { font-size: 14.5px; }
.header.wm-icon .header__tools .webmail-btn span { display: none; }
.header.wm-icon .header__tools .webmail-btn { width: 40px; padding: 0; justify-content: center; }
@media (max-width: 1024px) { .header__tools .webmail-btn span { display: none; } .header__tools .webmail-btn { width: 40px; padding: 0; justify-content: center; } }
@media (max-width: 560px) { .header__tools .webmail-btn { display: none; } }
.webmail-btn--menu { margin-top: 32px; height: 48px; padding: 0 22px; font-size: 16px; border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text); }
.webmail-btn--menu svg { width: 20px; height: 20px; color: var(--accent); }
