﻿/* =====================================================================
   Rashdan IT — site styles
   Arabic-first (RTL). Uses logical properties (inline-start/end) so the
   same rules mirror automatically for English and French (LTR).
   ===================================================================== */

:root {
  --midnight: #0A1C33;
  --midnight-2: #112B4C;
  --midnight-3: #1A3a60;
  --blue: #0B57B0;
  --blue-deep: #08417F;
  --sky: #6CC4F7;
  --limestone: #F3F5F8;
  --white: #FFFFFF;
  --ink: #0F1D2E;
  --slate: #4B5B70;
  --mist: #A9B8CB;
  --line: #DCE3EB;
  --line-dark: rgba(169, 184, 203, .22);
  --saffron: #F2B33D;
  --saffron-deep: #DB961B;

  --font-display: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(64px, 8vw, 112px);

  --r-tile: 20px;
  --r-ctl: 12px;
  --r-chip: 999px;

  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--blue);
}

/* ---------------------------------------------------------------- base */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[dir="ltr"] body { font-size: 1.03rem; line-height: 1.65; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--blue-deep); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: inherit;
  margin: 0 0 .5em;
  line-height: 1.4;
  letter-spacing: 0;
}
html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] h3 { line-height: 1.18; letter-spacing: -.01em; }

h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1em; }

.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem); color: var(--slate); max-width: 62ch; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--dark { background: var(--midnight); color: var(--white); }
.section--dark .lead { color: var(--mist); }

.section-head { max-width: 760px; margin-block-end: clamp(32px, 4vw, 56px); }
.section-head h2 { margin-block-end: .35em; }
.section-head .lead { margin: 0; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: end; justify-content: space-between; }
.section-head--row > div { max-width: 720px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--saffron); color: var(--midnight); padding: 10px 16px; border-radius: var(--r-ctl);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.i { width: 1.25em; height: 1.25em; flex: none; }

/* ---------------------------------------------------------------- buttons & links */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .55em 1.35em;
  border-radius: var(--r-ctl); border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn .i { width: 1.15em; height: 1.15em; }
.btn--sun { background: var(--saffron); color: var(--midnight); }
.btn--sun:hover { background: var(--saffron-deep); color: var(--midnight); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); color: var(--white); }
.btn--line-light { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--line-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); color: var(--white); }
.btn--line { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--line:hover { border-color: var(--blue); color: var(--blue); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { font-weight: 600; font-family: var(--font-display); text-decoration: underline; text-decoration-color: rgba(11, 87, 176, .35); }
.text-link:hover { text-decoration-color: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: .4em; padding: .2em .8em;
  border-radius: var(--r-chip); border: 1px solid var(--line); background: var(--white);
  font-size: .86rem; color: var(--slate); line-height: 1.6;
}
.chips .chip { direction: ltr; unicode-bidi: isolate; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }

/* ---------------------------------------------------------------- header */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--midnight); color: var(--white); }
.site-header::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--line-dark); }

.header-bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 128px; height: auto; }

.main-nav { margin-inline-start: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav a, .nav-btn {
  display: inline-flex; align-items: center; gap: .3em;
  padding: .45em .8em; border-radius: 10px;
  color: #DCE6F2; text-decoration: none; font-family: var(--font-display); font-size: .98rem; font-weight: 400;
  background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .nav-btn:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.main-nav a[aria-current="page"], .nav-btn.is-current { color: var(--white); box-shadow: inset 0 -2px 0 var(--saffron); border-radius: 0; }
.nav-btn .i { width: 1em; height: 1em; transition: transform .2s; }
.nav-btn[aria-expanded="true"] .i { transform: rotate(180deg); }

.has-menu { position: relative; }
.submenu {
  position: absolute; inset-inline-start: 0; top: calc(100% + 10px); min-width: 230px;
  margin: 0; padding: 8px; list-style: none;
  background: var(--white); border-radius: 14px; box-shadow: 0 18px 40px rgba(10, 28, 51, .22);
  display: none;
}
.nav-btn[aria-expanded="true"] + .submenu { display: block; }
.main-nav .submenu a { display: flex; justify-content: space-between; width: 100%; color: var(--ink); padding: .55em .8em; border-radius: 8px; }
.main-nav .submenu a:hover { background: var(--limestone); color: var(--blue); }
.submenu .code { font-family: var(--font-display); color: var(--slate); font-size: .82rem; }

.header-tools { display: flex; align-items: center; gap: 14px; }

.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-dark); border-radius: 10px; }
.langs a, .langs span {
  min-width: 34px; text-align: center; padding: .1em .5em; border-radius: 7px;
  font-family: var(--font-display); font-size: .85rem; line-height: 1.9; text-decoration: none; color: var(--mist);
}
.langs a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.langs .is-current { background: var(--white); color: var(--midnight); font-weight: 600; }

.header-cta { min-height: 42px; padding-inline: 1.05em; font-size: .95rem; }

.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line-dark); border-radius: 10px; background: none; color: var(--white); cursor: pointer;
}
.menu-toggle .i { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }

@media (max-width: 1080px) {
  .header-cta { display: none; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .header-bar { min-height: 66px; gap: 12px; }
  .brand img { width: 108px; }
  .header-tools { margin-inline-start: auto; }
  .main-nav {
    position: fixed; inset: 66px 0 0 0; margin: 0; padding: 20px var(--gutter) 40px;
    background: var(--midnight); overflow-y: auto; display: none;
  }
  .nav-open .main-nav { display: block; }
  .nav-open .menu-toggle .i-menu { display: none; }
  .nav-open .menu-toggle .i-close { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line-dark); }
  .main-nav a, .nav-btn { width: 100%; justify-content: space-between; padding: 1em .2em; font-size: 1.15rem; border-radius: 0; }
  .main-nav a[aria-current="page"], .nav-btn.is-current { box-shadow: none; color: var(--saffron); }
  .submenu { position: static; display: block; background: none; box-shadow: none; padding: 0 0 12px; min-width: 0; }
  .nav-btn .i { display: none; }
  .main-nav .submenu a { color: var(--mist); padding: .55em 1em; font-size: 1rem; }
  .main-nav .submenu a:hover { background: none; color: var(--white); }
  .nav-cta { display: block; margin-top: 24px; }
  .nav-cta .btn { width: 100%; }
  body.nav-locked { overflow: hidden; }
}
@media (min-width: 901px) { .nav-cta { display: none; } }

/* ---------------------------------------------------------------- home hero */

.hero { background: var(--midnight); color: var(--white); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px);
  align-items: center; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px);
}
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.35rem); font-weight: 600; margin-block-end: .45em; }
html[dir="rtl"] .hero h1 { line-height: 1.35; }
.hero .lead { color: #C6D3E3; margin-block-end: 1.7em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 2em 0 0; padding: 0; list-style: none; color: var(--mist); font-size: .95rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: .5em; }
.hero-facts .i { color: var(--sky); width: 1.1em; height: 1.1em; }

.hero-map { margin: 0; position: relative; }
.hero-map svg { width: 100%; height: auto; overflow: visible; }
.hero-map figcaption { margin-top: 10px; color: var(--mist); font-size: .9rem; text-align: center; }

.map-grid { stroke: rgba(169, 184, 203, .10); stroke-width: .6; fill: none; }
.map-coast { fill: none; stroke: rgba(108, 196, 247, .55); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0 4.2; }
.map-nile { fill: none; stroke: rgba(108, 196, 247, .8); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map-arc { fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.map-node circle { fill: var(--white); }
.map-node .ring { fill: none; stroke: var(--sky); stroke-width: 1.2; }
.map-node text { fill: #DCE7F3; font-family: var(--font-body); font-size: 12.5px; paint-order: stroke; stroke: var(--midnight); stroke-width: 4px; stroke-linejoin: round; }
.map-hq circle { fill: var(--saffron); }
.map-hq .ring { stroke: var(--saffron); }
.map-hq text { fill: var(--saffron); font-weight: 600; font-size: 14px; }
.map-edge path { fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .map-arc { stroke-dashoffset: 100; animation: draw-arc 1.4s cubic-bezier(.3, .7, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 140ms + 250ms); }
  .map-node { opacity: 0; animation: show-node .5s ease-out forwards; animation-delay: calc(var(--i, 0) * 140ms + 1100ms); }
  .map-hq .ring { transform-box: fill-box; transform-origin: center; animation: hq-pulse 2.4s ease-out 1.6s 2; }
}
@keyframes draw-arc { to { stroke-dashoffset: 0; } }
@keyframes show-node { to { opacity: 1; } }
@keyframes hq-pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-map { max-width: 560px; margin-inline: auto; width: 100%; }
}

/* ---------------------------------------------------------------- inner page hero */

.page-hero { background: var(--midnight); color: var(--white); padding-block: clamp(40px, 6vw, 80px) clamp(44px, 6vw, 84px); }
.page-hero h1 { max-width: 22ch; }
html[dir="ltr"] .page-hero h1 { max-width: 26ch; }
.page-hero .lead { color: #C6D3E3; }
.page-hero .actions { margin-top: 28px; }
.page-hero--split .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: end; }
@media (max-width: 900px) { .page-hero--split .wrap { grid-template-columns: 1fr; gap: 28px; } }

.crumbs { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--mist); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: rgba(169, 184, 203, .5); }
.crumbs a { color: var(--mist); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }

.hero-aside {
  border: 1px solid var(--line-dark); border-radius: var(--r-tile); padding: 22px 24px; background: var(--midnight-2);
}
.hero-aside h2 { font-size: 1rem; color: var(--mist); font-weight: 500; margin-bottom: .6em; }
.hero-aside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hero-aside li { display: flex; gap: 10px; align-items: flex-start; }
.hero-aside .i { color: var(--saffron); margin-top: .3em; }

.country-code {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(4.5rem, 3rem + 6vw, 8.5rem); line-height: .9;
  color: var(--sky); letter-spacing: -.02em;
}

/* ---------------------------------------------------------------- home: services */

.svc-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.svc-group h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; margin-bottom: .25em; }
.svc-group > p { color: var(--slate); margin-bottom: 18px; max-width: 46ch; }
.svc-group-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--midnight); color: var(--saffron); flex: none; }
.svc-group-mark .i { width: 22px; height: 22px; }

.svc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 16px; padding: 18px 4px;
  text-decoration: none; color: var(--ink);
}
.svc-list .i { width: 26px; height: 26px; color: var(--blue); margin-top: 3px; grid-row: span 2; }
.svc-list strong { font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; }
.svc-list span { color: var(--slate); font-size: .96rem; }
.svc-list a:hover strong { color: var(--blue); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }

@media (max-width: 860px) { .svc-groups { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- projects (tiles) */

.prj-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.prj-tile {
  grid-column: span 2; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile);
}
.prj-tile--lg { grid-column: span 3; }
.prj-media {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
  background: var(--accent, var(--midnight)); color: var(--ink-on, #fff);
}
.prj-media img.shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.prj-media img.logo { width: auto; max-width: 60%; max-height: 62%; object-fit: contain; }
.prj-mark { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px; }
.prj-mark .mono { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); line-height: 1; letter-spacing: -.02em; }
.prj-mark .dom { font-family: var(--font-display); font-size: .95rem; opacity: .85; direction: ltr; }
.prj-mark .i { width: 30px; height: 30px; opacity: .85; }
.prj-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prj-sector { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--slate); }
.prj-sector::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent, var(--blue)); }
.prj-body h3 { margin: 0; font-size: 1.2rem; }
.prj-body p { margin: 0; color: var(--slate); font-size: .97rem; }
.prj-link { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: .95rem; direction: ltr; align-self: flex-start; text-decoration: none; }
html[dir="rtl"] .prj-link { align-self: flex-end; }
.prj-link .i { width: 1em; height: 1em; }
.prj-link:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .prj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prj-tile, .prj-tile--lg { grid-column: span 1; }
}
@media (max-width: 620px) {
  .prj-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- markets band */

.mkt-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
@media (min-width: 1001px) {
  .mkt-row .mkt-cell:nth-child(4n) { border-inline-end: 0; }
  .mkt-row .mkt-cell:nth-child(n+5) { border-top: 1px solid var(--line-dark); }
}
.mkt-cell { padding: 26px 22px 28px; border-inline-end: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 8px; }
.mkt-cell:last-child { border-inline-end: 0; }
.mkt-code { font-family: var(--font-display); font-weight: 300; font-size: 2.9rem; line-height: 1; color: var(--sky); letter-spacing: -.01em; }
.mkt-cell h3 { font-size: 1.12rem; margin: 6px 0 0; color: var(--white); }
.mkt-cell p { color: var(--mist); font-size: .95rem; margin: 0; flex: 1; }
.mkt-cell a { color: var(--saffron); font-family: var(--font-display); font-size: .95rem; margin-top: 10px; }
.mkt-cell a:hover { color: var(--white); }
.mkt-also { margin: 26px 0 0; color: var(--mist); }

@media (max-width: 1000px) {
  .mkt-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mkt-cell { border-bottom: 1px solid var(--line-dark); }
  .mkt-cell:nth-child(2n) { border-inline-end: 0; }
}
@media (max-width: 560px) {
  .mkt-row { grid-template-columns: 1fr; }
  .mkt-cell { border-inline-end: 0; }
}

/* ---------------------------------------------------------------- process */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 0 0 0; padding-inline-end: 28px; }
.step-num {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 600; color: var(--blue); font-size: 1.05rem;
}
.step-num b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1.5px solid var(--blue); font-weight: 600; }
.step-num::after { content: ""; flex: 1; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px); }
.steps li:last-child .step-num::after { display: none; }
.steps h3 { font-size: 1.15rem; margin-bottom: .3em; }
.steps p { color: var(--slate); font-size: .97rem; margin: 0; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .steps li:nth-child(2) .step-num::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step-num::after { display: none; }
}

/* ---------------------------------------------------------------- why / values */

.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.why-item .i { width: 30px; height: 30px; color: var(--blue); margin-bottom: 14px; }
.why-item h3 { margin-bottom: .3em; }
.why-item p { color: var(--slate); margin: 0; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- clients */

.logo-wall { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.logo-wall li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; aspect-ratio: 3 / 2; overflow: hidden; min-height: 0; display: grid; place-items: center; padding: 14px; }
.logo-wall img { max-height: clamp(40px, 5.4vw, 72px); width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .2s, opacity .2s; }
.logo-wall li:hover img { filter: none; opacity: 1; }
@media (max-width: 1000px) { .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .logo-wall li { padding: 8px; } }

/* ---------------------------------------------------------------- CTA band */

.cta-band { background: var(--blue); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: clamp(44px, 6vw, 72px); }
.cta-band h2 { margin: 0 0 .2em; }
.cta-band p { margin: 0; color: #D5E5F8; max-width: 56ch; }
.cta-band .btn--line-light { border-color: rgba(255, 255, 255, .6); }

/* ---------------------------------------------------------------- service / market detail */

.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.detail-grid li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.detail-grid .i { width: 24px; height: 24px; color: var(--blue); margin-top: 4px; grid-row: span 2; }
.detail-grid h3 { font-size: 1.1rem; margin: 0; }
.detail-grid p { margin: 0; color: var(--slate); }
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.split > :first-child h2 { position: sticky; top: 100px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > :first-child h2 { position: static; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 2px; font-family: var(--font-display); font-weight: 500; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 22px; height: 22px; color: var(--blue); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--slate); max-width: 70ch; }

.link-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.link-list a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 500;
}
.link-list a:hover { border-color: var(--blue); color: var(--blue); }
.link-list .i { color: var(--blue); width: 22px; height: 22px; }
.link-list .code { margin-inline-start: auto; color: var(--slate); font-weight: 400; font-size: .85rem; }

/* ---------------------------------------------------------------- projects page */

.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { border-radius: var(--r-tile); overflow: hidden; aspect-ratio: 16 / 10; background: var(--accent, var(--midnight)); color: var(--ink-on, #fff); display: grid; place-items: center; border: 1px solid var(--line); }
.feature-media img.shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.feature-media img.logo { max-width: 50%; max-height: 60%; width: auto; object-fit: contain; }
.feature-body h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: .3em; }
.feature-body > p { color: var(--slate); }
.ticks { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { color: var(--blue); width: 20px; height: 20px; margin-top: .3em; }
.feature .prj-link { align-self: auto; padding-top: 0; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
}

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.work-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); overflow: hidden; display: flex; flex-direction: column; }
.work-card figure { margin: 0; background: linear-gradient(180deg, #E7ECF2, #F6F8FA); padding: 18px 18px 0; }
.work-card figure img { width: 100%; aspect-ratio: 567 / 330; object-fit: contain; object-position: bottom; }
.work-card div { padding: 18px 20px 22px; }
.work-card h3 { font-size: 1.08rem; margin-bottom: .25em; }
.work-card p { margin: 0; color: var(--slate); font-size: .95rem; }
.work-card .prj-sector { margin-bottom: 4px; }
@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- about */

.prose { max-width: 68ch; }
.prose p { color: #24364C; }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.values li { padding: 26px 24px 8px 0; padding-inline: 0 24px; }
.values li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.values h3 { font-size: 1.15rem; margin-bottom: .3em; }
.values p { color: var(--slate); margin: 0; font-size: .97rem; }
@media (max-width: 900px) {
  .values { grid-template-columns: 1fr 1fr; }
  .values li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .values li + li { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); }
}

.office { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); overflow: hidden; }
.office-info { padding: clamp(24px, 4vw, 44px); }
.office-info h3 { font-size: 1.35rem; }
.office iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 860px) { .office { grid-template-columns: 1fr; } }

.contact-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.contact-lines li { display: flex; gap: 12px; align-items: flex-start; }
.contact-lines .i { color: var(--blue); margin-top: .35em; }
.contact-lines a { color: var(--ink); text-decoration: none; }
.contact-lines a:hover { color: var(--blue); text-decoration: underline; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------------------------------------------------------------- careers */

.jobs { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.job { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); }
.job summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding: 22px 24px; align-items: center; }
.job summary::-webkit-details-marker { display: none; }
.job h3 { margin: 0; font-size: 1.15rem; }
.job-meta { color: var(--slate); font-size: .92rem; display: flex; gap: 18px; flex-wrap: wrap; }
.job summary .i { width: 22px; height: 22px; color: var(--blue); transition: transform .2s; grid-row: span 2; }
.job[open] summary .i { transform: rotate(45deg); }
.job-body { padding: 0 24px 24px; border-top: 1px solid var(--line); }
.job-body .actions { margin-top: 18px; }

.empty {
  background: var(--white); border: 1px dashed #C3CEDB; border-radius: var(--r-tile); padding: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start;
}
.empty > .i { width: 34px; height: 34px; color: var(--blue); }
.empty h3 { margin-bottom: .3em; }
.empty p { color: var(--slate); }

/* ---------------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); padding: clamp(22px, 4vw, 40px); }
.form-card h2 { font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: .95rem; }
.field .opt { color: var(--slate); font-weight: 400; font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .6em .9em; border: 1.5px solid #CBD5E1; border-radius: var(--r-ctl);
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 87, 176, .18); }
.field .hint { color: var(--slate); font-size: .86rem; }
.field .err { color: #B42318; font-size: .88rem; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #B42318; }
.field input[type="tel"], .field input[type="email"] { direction: ltr; }
html[dir="rtl"] .field input[type="tel"], html[dir="rtl"] .field input[type="email"] { text-align: right; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.form-foot p { margin: 0; color: var(--slate); font-size: .9rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.notice { border-radius: var(--r-ctl); padding: 16px 18px; margin-bottom: 22px; display: flex; gap: 12px; align-items: flex-start; }
.notice .i { margin-top: .3em; }
.notice h3 { font-size: 1.05rem; margin: 0 0 .2em; }
.notice p { margin: 0; }
.notice--ok { background: #E8F6EE; color: #0F5132; }
.notice--err { background: #FDECEC; color: #8A1C1C; }

.side-card { background: var(--midnight); color: var(--white); border-radius: var(--r-tile); padding: clamp(22px, 3.5vw, 34px); }
.side-card h2 { font-size: 1.3rem; }
.side-card .contact-lines .i { color: var(--saffron); }
.side-card .contact-lines a { color: var(--white); }
.side-card .contact-lines a:hover { color: var(--saffron); }
.side-card .muted { color: var(--mist); font-size: .95rem; }
.side-card .btn { width: 100%; margin-top: 18px; }
.map-frame { margin-top: 20px; border-radius: var(--r-tile); overflow: hidden; border: 1px solid var(--line); background: #E6EBF1; }
.map-frame iframe { display: block; width: 100%; height: 300px; border: 0; }

/* ---------------------------------------------------------------- 404 */

.nf { min-height: 50vh; display: grid; align-content: center; }
.nf .country-code { color: var(--sky); }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--midnight); color: var(--mist); font-size: .96rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 32px; padding-block: 64px 40px; }
.footer-brand img { width: 130px; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; }
.site-footer h2 { font-size: 1rem; color: var(--white); font-weight: 500; margin-bottom: 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 10px; }
.socials a:hover { border-color: var(--white); text-decoration: none; }
.socials .i { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid var(--line-dark); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-block: 20px; font-size: .9rem; }
.footer-langs { display: flex; gap: 16px; }
.site-footer .contact-lines .i { color: var(--saffron); }
.site-footer .contact-lines a { color: var(--mist); }
@media (max-width: 1080px) { .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-contact { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- WhatsApp button */

.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #1FA855; color: var(--white); box-shadow: 0 10px 26px rgba(10, 28, 51, .28);
}
.wa-float:hover { background: #178B45; color: var(--white); }
.wa-float .i { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- motion & print */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .wa-float, .cta-band, .site-footer { display: none; }
  body { background: #fff; }
}

/* step numbers come from a CSS counter (the list is an <ol>) */
.steps > li { counter-increment: step; }
.step-num b::before { content: counter(step); }

/* map labels stay legible on small screens (SVG user units scale with the map) */
@media (max-width: 600px) {
  .map-node text { font-size: 17px; }
  .map-hq text { font-size: 19px; }
}

/* ---------------------------------------------------------------- services overview cards */

.svc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile);
  padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 8px;
}
.section--white .svc-card { background: var(--limestone); border-color: transparent; }
.svc-card-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--midnight); color: var(--saffron); margin-bottom: 6px; }
.svc-card-icon .i { width: 24px; height: 24px; }
.svc-card h3 { margin: 0; font-size: 1.25rem; }
.svc-card h3 a { color: var(--ink); text-decoration: none; }
.svc-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-tile); }
.svc-card:hover { border-color: var(--blue); }
.svc-card:hover h3 a { color: var(--blue); }
.svc-card:focus-within { box-shadow: var(--focus); }
.svc-card h3 a:focus-visible { box-shadow: none; }
.svc-card > p { color: var(--slate); margin: 0 0 6px; }
.svc-card .ticks { margin: 4px 0 0; gap: 6px; font-size: .95rem; color: #24364C; }
.svc-card .ticks .i { width: 18px; height: 18px; }
@media (max-width: 820px) { .svc-cards { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- related work cards */

.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.rel-card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--r-tile);
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--accent, var(--blue));
  color: var(--ink); text-decoration: none;
}
.section--white .rel-card { background: var(--limestone); border-color: transparent; border-top-color: var(--accent, var(--blue)); }
.rel-card strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.rel-card .rel-text { color: var(--slate); font-size: .95rem; }
.rel-card:hover strong { color: var(--blue); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }

/* ---------------------------------------------------------------- market page header */

.market-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 6px; }
html[dir="rtl"] .market-mark { align-items: flex-end; }
.market-cities { color: var(--mist); font-size: 1rem; border-top: 1px solid var(--line-dark); padding-top: 12px; }
@media (max-width: 900px) { .market-mark, html[dir="rtl"] .market-mark { align-items: flex-start; } .country-code { font-size: 4.5rem; } }

/* keep the mobile-menu call to action looking like a button (overrides .main-nav a) */
.main-nav .nav-cta a.btn {
  justify-content: center; padding: .8em 1.2em; border-radius: var(--r-ctl);
  background: var(--saffron); color: var(--midnight); font-weight: 500;
}
.main-nav .nav-cta a.btn:hover { background: var(--saffron-deep); color: var(--midnight); }

/* ---------------------------------------------------------------- WebForms specifics */

.footer-subhead { margin-top: 24px; }
.field .is-ltr { direction: ltr; }
html[dir="rtl"] .field .is-ltr { text-align: right; }
.field .err { display: block; }
input.btn { -webkit-appearance: none; appearance: none; }
.aspNetHidden { display: none; }

/* =====================================================================
   Interactive layer (2026-11): agent demo hero, bento, carousel,
   code wall, stepper, marquee, tabs. Motion only runs when the visitor
   has not asked for reduced motion.
   ===================================================================== */

:root { --night: #071427; --ok: #3DDC97; }

.section--night { background: var(--night); color: var(--white); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.text-link--light { color: var(--sky); text-decoration-color: rgba(108, 196, 247, .4); }
.text-link--light:hover { color: var(--white); }

/* ---------------------------------------------------------------- hero with agent demo */

.hero--demo {
  background:
    radial-gradient(900px 520px at 72% 78%, rgba(11, 87, 176, .32), transparent 62%),
    radial-gradient(600px 380px at 8% 0%, rgba(108, 196, 247, .08), transparent 60%),
    var(--night);
}
.hero--demo > .wrap { padding-block: clamp(32px, 4vw, 60px) clamp(36px, 4.5vw, 64px); }

.hero-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end;
  margin-block-end: clamp(20px, 2.6vw, 36px);
}
.hero-title { margin: 0; }
.hero-big {
  display: block; font-size: clamp(2.6rem, 1rem + 4.1vw, 4.7rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 600;
}
html[dir="rtl"] .hero-big { line-height: 1.28; letter-spacing: 0; }
.hero-sub {
  display: block; margin-top: .7em; max-width: 52ch; font-family: var(--font-body); font-weight: 400;
  font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); line-height: 1.6; color: #C6D3E3; letter-spacing: 0;
}
.hero-head .actions { flex-wrap: nowrap; }

.hero-stage {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center;
}

/* agent console */
.agent {
  display: flex; flex-direction: column; gap: 14px; min-height: 410px; padding: 18px;
  background: rgba(10, 28, 51, .9); border: 1px solid rgba(108, 196, 247, .22); border-radius: 22px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.agent-top { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); }
.agent-top strong { font-weight: 500; }
.agent-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 151, .16); }
.agent-badge {
  margin-inline-start: auto; font-size: .78rem; color: var(--mist); border: 1px solid var(--line-dark);
  border-radius: var(--r-chip); padding: .1em .75em;
}
.agent-pick { margin: 0; color: var(--mist); font-size: .9rem; line-height: 1.4; }
.agent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  appearance: none; border: 1px solid rgba(169, 184, 203, .3); background: transparent; color: #DCE7F3;
  border-radius: var(--r-chip); padding: .3em .9em; font: 500 .9rem/1.4 var(--font-display); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip-btn:hover { border-color: var(--sky); color: var(--white); }
.chip-btn[aria-pressed="true"] { background: var(--saffron); border-color: var(--saffron); color: var(--midnight); }

.agent-log { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 196px; }
.msg { margin: 0; padding: .6em .95em; border-radius: 16px; max-width: 90%; line-height: 1.55; font-size: .97rem; }
.msg--user { align-self: flex-end; background: var(--blue); color: var(--white); border-end-end-radius: 6px; }
.msg--agent { align-self: flex-start; background: rgba(255, 255, 255, .07); color: #EAF1F8; border-end-start-radius: 6px; }
.msg--agent:empty::before { content: "\2022\2022\2022"; letter-spacing: .2em; color: var(--mist); }

.agent-steps { list-style: none; margin: 0; padding: 0 4px; display: grid; gap: 7px; align-self: flex-start; }
.agent-steps li { display: flex; align-items: center; gap: 9px; color: var(--mist); font-size: .9rem; line-height: 1.4; }
.agent-steps li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid rgba(108, 196, 247, .3); border-top-color: var(--sky);
}
.agent-steps li.is-done { color: #C6D3E3; }
.agent-steps li.is-done::before {
  border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.2 2.2 4.6-4.9' fill='none' stroke='%23071427' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.agent-input {
  display: flex; align-items: center; gap: 10px; padding: .45em .45em .45em 1em; border-radius: 14px;
  border: 1px solid rgba(169, 184, 203, .25); background: rgba(7, 20, 39, .6); color: var(--mist); font-size: .95rem;
}
html[dir="rtl"] .agent-input { padding: .45em 1em .45em .45em; }
.agent-typing { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-typing.is-typing { color: var(--white); }
.agent-typing.is-typing::after {
  content: ""; display: inline-block; width: 2px; height: 1.05em; margin-inline-start: 2px; vertical-align: -.15em; background: var(--sky);
}
.agent-send { width: 36px; height: 36px; border-radius: 10px; background: var(--saffron); color: var(--midnight); display: grid; place-items: center; flex: none; }
.agent-send .i { width: 18px; height: 18px; }

/* map states driven by the demo */
.map-node .hit { fill: transparent !important; stroke: none; }
.map-node.is-clickable { cursor: pointer; }
.map-node.is-clickable:focus { outline: none; }
.map-node.is-clickable:focus-visible .ring { stroke: var(--white); stroke-width: 2.4; }
.map-node > *, .map-arc { transition: opacity .45s ease, stroke .45s ease, stroke-width .45s ease, fill .45s ease; }
.hero-map[data-active] .map-arc:not(.is-on) { opacity: .2; }
.hero-map[data-active] .map-node:not(.is-on):not(.map-hq) > * { opacity: .45; }
.map-arc.is-on { stroke: var(--saffron); stroke-width: 2.6; }
.map-node.is-on circle:not(.ring):not(.hit) { fill: var(--saffron); }
.map-node.is-on .ring { stroke: var(--saffron); }
.map-node.is-on text { fill: var(--white); font-weight: 600; }
.map-edge.is-on path { stroke: var(--saffron); }
.map-runner { fill: var(--saffron); opacity: 0; transition: opacity .3s; filter: drop-shadow(0 0 5px rgba(242, 179, 61, .95)); }
.map-runner.is-on { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .hero-title { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-head .actions { animation: rise .8s cubic-bezier(.2, .8, .2, 1) .15s both; }
  .agent { animation: rise .9s cubic-bezier(.2, .8, .2, 1) .5s both; }
  .agent-steps li:not(.is-done)::before { animation: spin .8s linear infinite; }
  .agent-typing.is-typing::after { animation: blink 1s steps(1) infinite; }
  .agent-send.is-pulse { animation: pop .35s ease-out; }
  .map-node.is-on .ring { transform-box: fill-box; transform-origin: center; animation: ring 1.8s ease-out infinite; }
  .msg { animation: msg-in .3s ease-out both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pop { 50% { transform: scale(.86); } }
@keyframes ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .hero-head { grid-template-columns: 1fr; }
  .hero-head .actions { flex-wrap: wrap; }
  .hero-stage { grid-template-columns: 1fr; }
  .hero--demo .hero-map { max-width: 640px; width: 100%; margin-inline: auto; }
  .agent { min-height: 0; }
}

/* ---------------------------------------------------------------- services bento */

.bento { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 14px; }
.bento-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.bento-group + .bento-group { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento-head, .bento-tile { border-radius: 18px; padding: 20px; }
.bento-tile { min-height: 176px; }
.bento-head {
  grid-column: 1 / -1; margin: 0; display: flex; align-items: center; gap: 14px; min-height: 92px;
  font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); line-height: 1.25;
  background: linear-gradient(120deg, var(--blue), #0A3A73);
}
.bento-group + .bento-group .bento-head { background: linear-gradient(120deg, #1D3557, var(--midnight-2)); }
.bento-group + .bento-group .bento-head .i { color: var(--saffron); }
.bento-head .i { width: 34px; height: 34px; color: var(--sky); }
.bento-tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(169, 184, 203, .14); color: #EAF1F8; text-decoration: none;
  transition: border-color .2s, background-color .2s, opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms);
}
.bento-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px circle at var(--mx, -200px) var(--my, -200px), rgba(108, 196, 247, .2), transparent 65%);
}
.bento:hover .bento-tile::before { opacity: 1; }
.bento-tile:hover, .bento-tile:focus-visible { border-color: rgba(108, 196, 247, .5); color: var(--white); }
.bento-tile .i { width: 30px; height: 30px; color: var(--sky); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.bento-tile:hover .i { transform: translateY(-3px) scale(1.08); }
.bento-tile strong { margin-top: auto; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; line-height: 1.35; }
.bento-tile span {
  font-size: .9rem; line-height: 1.5; color: var(--mist); max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .35s ease, opacity .25s ease;
}
.bento-tile:hover span, .bento-tile:focus-visible span { max-height: 7.5em; opacity: 1; }
@media (hover: none) { .bento-tile span { display: none; } }

[data-reveal].is-pending { opacity: 0; transform: translateY(18px); }

@media (max-width: 1100px) {
  .bento { grid-template-columns: 1fr; }
  .bento-group { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bento-group, .bento-group + .bento-group { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bento-head { min-height: 0; padding: 16px; }
  .bento-tile { min-height: 132px; padding: 16px; }
  .bento-tile strong { font-size: .98rem; }
}

/* ---------------------------------------------------------------- work carousel */

.car-ctrl { display: flex; align-items: center; gap: 10px; }
.car-ctrl .text-link { margin-inline-start: 10px; }
.car-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s;
}
.car-btn:hover { border-color: var(--blue); color: var(--blue); }
.car-btn .i { width: 20px; height: 20px; transform: scaleX(-1); }
.car-btn--next .i { transform: none; }
html[dir="rtl"] .car-btn .i { transform: none; }
html[dir="rtl"] .car-btn--next .i { transform: scaleX(-1); }

.car {
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding-inline: var(--edge); scrollbar-width: none; cursor: grab;
}
.car::-webkit-scrollbar { display: none; }
.car.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.car.is-drag a { pointer-events: none; }
.car-track { display: flex; gap: 22px; width: max-content; padding-block: 8px 34px; }
.car-card {
  scroll-snap-align: start; width: clamp(270px, 33vw, 420px); background: var(--white); border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; will-change: transform;
}
.car-card:hover { box-shadow: 0 34px 60px -34px rgba(10, 28, 51, .5); }
.car-media { aspect-ratio: 16 / 10; background: var(--accent, var(--midnight)); color: var(--ink-on, #fff); display: grid; place-items: center; overflow: hidden; }
.car-media .shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.car-card:hover .shot { transform: scale(1.05); }
.car-media .logo { max-width: 58%; max-height: 52%; width: auto; object-fit: contain; }
.car-body { padding: 18px 22px 22px; }
.car-body h3 { font-size: 1.28rem; margin: .35em 0 .3em; }
.car-body h3 a { color: inherit; text-decoration: none; }
.car-body h3 a:hover { color: var(--blue); }
.car-body p {
  color: var(--slate); font-size: .97rem; line-height: 1.55; margin: 0 0 .8em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 640px) { .car-ctrl .car-btn { display: none; } .car-ctrl .text-link { margin: 0; } }

/* ---------------------------------------------------------------- markets code wall */

.codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.codes li { border-bottom: 1px solid var(--line-dark); }
.code-link {
  display: flex; flex-direction: column; gap: 6px; min-height: 230px; padding: 26px 22px 24px;
  color: var(--white); text-decoration: none; transition: background-color .25s;
}
.code {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(3.4rem, 1.8rem + 4.4vw, 6.2rem); line-height: .95;
  color: var(--sky); letter-spacing: -.02em; direction: ltr; text-align: left;
  transition: color .25s, transform .35s cubic-bezier(.2, .8, .2, 1);
}
html[dir="rtl"] .code { text-align: right; }
.code-name { margin-top: 12px; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; line-height: 1.35; }
.code-note { color: var(--mist); font-size: .92rem; line-height: 1.5; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.code-link:hover, .code-link:focus-visible { background: rgba(108, 196, 247, .06); color: var(--white); }
.code-link:hover .code, .code-link:focus-visible .code { color: var(--saffron); transform: translateY(-4px); }
.code-link:hover .code-note, .code-link:focus-visible .code-note { opacity: 1; transform: none; }
.codes:hover .code-link:not(:hover) .code { color: rgba(108, 196, 247, .35); }
@media (hover: none) { .code-note { opacity: 1; transform: none; } }
@media (min-width: 901px) { .codes li:not(:nth-child(4n)) { border-inline-end: 1px solid var(--line-dark); } }
@media (max-width: 900px) {
  .codes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .codes li:nth-child(odd) { border-inline-end: 1px solid var(--line-dark); }
  .code-link { min-height: 0; padding: 20px 16px; }
}

/* ---------------------------------------------------------------- process stepper */

.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; counter-reset: step; position: relative; }
.stepper-btn {
  appearance: none; background: none; border: 0; padding: 0; margin: 0 0 14px; cursor: pointer; text-align: start;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: var(--ink);
  font: 600 1.15rem/1.3 var(--font-display); counter-increment: step;
}
.stepper-dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--white); border: 2px solid var(--line); color: var(--slate); font-size: .9rem; position: relative; z-index: 1;
  transition: background-color .3s, border-color .3s, color .3s;
}
.stepper-dot::after { content: counter(step); }
.stepper-x { margin: 0; color: var(--slate); }

.stepper.is-js { --p: 0; grid-template-rows: auto auto; }
.stepper.is-js::before, .stepper.is-js::after {
  content: ""; position: absolute; top: 16px; height: 2px; inset-inline-start: 17px; inset-inline-end: calc(25% - 32px);
  background: var(--line);
}
.stepper.is-js::after {
  inset-inline-end: auto; width: calc((75% + 15px) * var(--p)); background: var(--blue);
  transition: width .7s cubic-bezier(.3, .7, .2, 1);
}
.stepper.is-js .stepper-item { display: contents; }
.stepper.is-js .stepper-btn { grid-row: 1; color: var(--slate); transition: color .3s; }
.stepper.is-js .stepper-x {
  grid-row: 2; grid-column: 1 / -1; max-width: 62ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--ink);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .35s, transform .35s;
}
.stepper.is-js .is-active .stepper-btn, .stepper.is-js .is-done .stepper-btn { color: var(--ink); }
.stepper.is-js .is-active .stepper-dot, .stepper.is-js .is-done .stepper-dot { background: var(--blue); border-color: var(--blue); color: var(--white); }
.stepper.is-js .is-active .stepper-dot { box-shadow: 0 0 0 6px rgba(11, 87, 176, .15); }
.stepper.is-js .is-active .stepper-x { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 760px) {
  .stepper, .stepper.is-js { grid-template-columns: 1fr; gap: 22px; }
  .stepper.is-js::before, .stepper.is-js::after { display: none; }
  .stepper.is-js .stepper-item { display: block; }
  .stepper.is-js .stepper-btn { flex-direction: row; align-items: center; margin-bottom: 6px; }
  .stepper.is-js .stepper-x { opacity: 1; transform: none; font-size: 1rem; padding-inline-start: 48px; }
}

/* ---------------------------------------------------------------- clients marquee */

.marquee {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { list-style: none; margin: 0; padding: 0; padding-inline-end: 64px; display: flex; gap: 64px; align-items: center; flex: none; }
.marquee-track img { height: 56px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.marquee-track img:hover { filter: none; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 45s linear infinite; }
  html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes marquee-rtl { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); row-gap: 28px; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ---------------------------------------------------------------- tabs (inner pages) */

.tabs-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 6px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs-list [role="tab"] {
  appearance: none; border: 0; background: transparent; color: var(--slate); cursor: pointer;
  padding: .55em 1.15em; border-radius: 11px; font: 500 1rem/1.3 var(--font-display); transition: background-color .2s, color .2s;
}
.tabs-list [role="tab"]:hover { color: var(--ink); }
.tabs-list [role="tab"][aria-selected="true"] { background: var(--midnight); color: var(--white); }
.tabs-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .tabs.is-js .tabs-panel:not([hidden]) { animation: msg-in .35s ease-out; } }

/* feature tabs: vertical list of titles + one big panel */
.ftabs { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(0, 1.6fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.ftabs-list { display: grid; gap: 6px; }
.ftabs-list [role="tab"] {
  appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; cursor: pointer;
  padding: 14px 16px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--slate);
  font: 500 1.02rem/1.35 var(--font-display); transition: background-color .2s, color .2s, border-color .2s;
}
.ftabs-list [role="tab"] .i { width: 22px; height: 22px; color: var(--blue); flex: none; }
.ftabs-list [role="tab"]:hover { background: var(--white); color: var(--ink); }
.ftabs-list [role="tab"][aria-selected="true"] { background: var(--white); border-color: var(--line); color: var(--ink); box-shadow: 0 14px 30px -24px rgba(10, 28, 51, .5); }
.ftabs-panel {
  position: relative; overflow: hidden; border-radius: 22px; padding: clamp(26px, 3.5vw, 44px); min-height: 240px;
  background: var(--midnight); color: var(--white);
}
.ftabs-panel h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); max-width: 22ch; }
.ftabs-panel p { color: #C6D3E3; font-size: 1.08rem; max-width: 52ch; margin: 0; }
.ftabs-panel .big-i { position: absolute; inset-inline-end: -18px; bottom: -22px; width: 180px; height: 180px; color: rgba(108, 196, 247, .12); }
.ftabs-panel[hidden] { display: none; }
.ftabs:not(.is-js) .ftabs-list { display: none; }
.ftabs:not(.is-js) { grid-template-columns: 1fr; }
.ftabs:not(.is-js) .ftabs-panels { display: grid; gap: 14px; }
@media (prefers-reduced-motion: no-preference) { .ftabs.is-js .ftabs-panel:not([hidden]) { animation: msg-in .35s ease-out; } }
@media (max-width: 800px) {
  .ftabs, .ftabs.is-js { grid-template-columns: 1fr; }
  .ftabs.is-js .ftabs-list { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .ftabs.is-js .ftabs-list [role="tab"] { width: auto; white-space: nowrap; border-color: var(--line); background: var(--white); }
  .ftabs.is-js .ftabs-list [role="tab"][aria-selected="true"] { background: var(--midnight); color: var(--white); border-color: var(--midnight); }
  .ftabs.is-js .ftabs-list [role="tab"][aria-selected="true"] .i { color: var(--sky); }
}

/* compact accordion used for "more" content */
.more { border-top: 1px solid var(--line); margin-top: 14px; }
.more > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 0 2px;
  font: 500 .98rem/1.3 var(--font-display); color: var(--blue);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary .i { width: 18px; height: 18px; transition: transform .25s; }
.more[open] > summary .i { transform: rotate(45deg); }
.more-body { padding-top: 12px; }
.section--dark .more, .page-hero .more { border-color: var(--line-dark); }
.section--dark .more > summary, .page-hero .more > summary { color: var(--sky); }

/* ---------------------------------------------------------------- inner pages: emblem, tiles, cards */

.emblem { position: relative; width: min(300px, 70vw); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.emblem-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(108, 196, 247, .45); }
.emblem-ring--2 { inset: 16%; border: 1.5px solid rgba(108, 196, 247, .18); }
.emblem-ring::after {
  content: ""; position: absolute; top: -6px; inset-inline-start: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%;
  background: var(--saffron); box-shadow: 0 0 14px rgba(242, 179, 61, .9);
}
.emblem-ring--2::after { background: var(--sky); box-shadow: 0 0 12px rgba(108, 196, 247, .9); width: 9px; height: 9px; top: -5px; }
.emblem-core {
  width: 42%; aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--blue), #0A3A73); box-shadow: 0 30px 60px -24px rgba(11, 87, 176, .8);
}
.emblem-core .i { width: 48%; height: 48%; color: var(--white); }
@media (prefers-reduced-motion: no-preference) {
  .emblem-ring { animation: orbit 18s linear infinite; }
  .emblem-ring--2 { animation-duration: 11s; animation-direction: reverse; }
  .emblem-core { animation: float 6s ease-in-out infinite; }
}
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 900px) { .emblem { width: 200px; } }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.tile {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(11, 87, 176, .35); box-shadow: 0 24px 40px -30px rgba(10, 28, 51, .45); }
.tile .i { width: 26px; height: 26px; color: var(--blue); margin-bottom: 12px; }
.tile h3 { font-size: 1.1rem; margin-bottom: .35em; }
.tile p { margin: 0; color: var(--slate); font-size: .97rem; line-height: 1.6; }
.tabs:not(.is-js) .tabs-list { display: none; }
.tabs:not(.is-js) .tabs-panel + .tabs-panel { margin-top: 14px; }

.svc-card { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, opacity .6s ease var(--d, 0ms); }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -32px rgba(10, 28, 51, .5); }
.svc-card[data-reveal].is-pending { transform: translateY(18px); }
.svc-card .more { margin-top: auto; }
.feature-short { color: var(--slate); font-size: 1.08rem; }
.feature-media[data-tilt] { transition: transform .3s ease; will-change: transform; }
