/* Infrawise — one continuous picture per page.
   The fiber that starts at each page's glowing dot is drawn by /js/site.js. */

/* ---------- Tokens ---------- */
:root {
  --bg: #EEF3F8;
  --bg-soft: #E2EAF2;
  --ink: #0B1526;
  --heading: #1C3D8F;
  --text: #22324A;
  --muted: #56667B;
  --line: #D3DEE8;
  --line-strong: #AEBDCD;
  --accent: #0E7490;
  --accent-2: #1D4ED8;
  --btn: #0B1526;
  --btn-hover: #1C2E4A;
  --btn-text: #FFFFFF;
  --field: #F6F9FB;
  --error: #C2262E;
  --ok: #047857;
  --fiber-a: #22D3EE;
  --fiber-b: #0891B2;
  --fiber-c: #1D4ED8;
  --fiber-lit: #06B6D4;
  --glow-1: rgba(34, 211, 238, 0.24);
  --glow-2: rgba(29, 78, 216, 0.13);
  --pattern: url("/img/floor-light.svg");
  --led: #06B6D4;
  --led-ok: #10B981;
  --shadow-glow: 0 10px 30px -10px rgba(8, 145, 178, 0.55);

  --iso-floor: #E5EDF4;
  --iso-grid: #CBD8E4;
  --iso-wall-a: #F4F8FB;
  --iso-wall-b: #E8EFF5;
  --iso-top: #FFFFFF;
  --iso-left: #DCE6EE;
  --iso-right: #C7D5E1;
  --iso-line: #9FB2C4;
  --iso-rack-top: #3A4D66;
  --iso-rack-left: #1E2D44;
  --iso-rack-right: #15223A;

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 84rem;
  --lane: clamp(3rem, 7vw, 7.5rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --header-h: 4.5rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1526; --bg-soft: #0F1C30; --ink: #F1F6FB; --heading: #F1F6FB; --text: #C8D4E2; --muted: #8FA2B8;
    --line: #1C2D46; --line-strong: #2E4563; --accent: #22D3EE; --accent-2: #60A5FA;
    --btn: #22D3EE; --btn-hover: #67E8F9; --btn-text: #0B1526; --field: #0F1C30;
    --error: #F87171; --ok: #34D399;
    --fiber-a: #67E8F9; --fiber-b: #22D3EE; --fiber-c: #3B82F6; --fiber-lit: #A5F3FC;
    --glow-1: rgba(34, 211, 238, 0.13); --glow-2: rgba(59, 130, 246, 0.12);
    --pattern: url("/img/floor-dark.svg"); --led: #22D3EE; --led-ok: #34D399;
    --shadow-glow: 0 10px 34px -8px rgba(34, 211, 238, 0.5);
    --iso-floor: #16294A; --iso-grid: #23406A; --iso-wall-a: #132540; --iso-wall-b: #182D4D;
    --iso-top: #2C4773; --iso-left: #1E355A; --iso-right: #172B4A; --iso-line: #3B5C8A;
    --iso-rack-top: #36527F; --iso-rack-left: #0F1D35; --iso-rack-right: #0B172B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1526; --bg-soft: #0F1C30; --ink: #F1F6FB; --heading: #F1F6FB; --text: #C8D4E2; --muted: #8FA2B8;
  --line: #1C2D46; --line-strong: #2E4563; --accent: #22D3EE; --accent-2: #60A5FA;
  --btn: #22D3EE; --btn-hover: #67E8F9; --btn-text: #0B1526; --field: #0F1C30;
  --error: #F87171; --ok: #34D399;
  --fiber-a: #67E8F9; --fiber-b: #22D3EE; --fiber-c: #3B82F6; --fiber-lit: #A5F3FC;
  --glow-1: rgba(34, 211, 238, 0.13); --glow-2: rgba(59, 130, 246, 0.12);
  --pattern: url("/img/floor-dark.svg"); --led: #22D3EE; --led-ok: #34D399;
  --shadow-glow: 0 10px 34px -8px rgba(34, 211, 238, 0.5);
  --iso-floor: #16294A; --iso-grid: #23406A; --iso-wall-a: #132540; --iso-wall-b: #182D4D;
  --iso-top: #2C4773; --iso-left: #1E355A; --iso-right: #172B4A; --iso-line: #3B5C8A;
  --iso-rack-top: #36527F; --iso-rack-left: #0F1D35; --iso-rack-right: #0B172B;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (min-width: 1800px) { html { font-size: 112.5%; } }
@media (min-width: 2400px) { html { font-size: 125%; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--heading); margin: 0; font-weight: 500; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(34, 211, 238, 0.3); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--btn); color: var(--btn-text); border-radius: 999px; }
.skip:focus { top: 1rem; }

.wrap { position: relative; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- The canvas: one surface for the whole page ---------- */
.canvas {
  position: relative;
  isolation: isolate;
  margin-top: calc(var(--header-h) * -1);
  background:
    radial-gradient(60rem 42rem at 88% 0%, var(--glow-1), transparent 70%),
    radial-gradient(52rem 46rem at 6% 22%, var(--glow-2), transparent 70%),
    radial-gradient(56rem 44rem at 94% 45%, var(--glow-1), transparent 72%),
    radial-gradient(50rem 44rem at 4% 70%, var(--glow-2), transparent 70%),
    radial-gradient(64rem 40rem at 70% 100%, var(--glow-1), transparent 72%),
    var(--pattern) center top / 288px 288px repeat;
}
.canvas > main, .canvas > footer { position: relative; z-index: 1; }
.fiber { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); transition: background-color .3s, box-shadow .3s; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.bar { display: flex; align-items: center; gap: 1.5rem; height: 100%; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.logo .mark { flex: none; }
.wordmark { font: 500 1.6rem/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.wordmark span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: .35rem; margin-inline-start: auto; }
.nav a:not(.nav-cta) { position: relative; padding: .55rem .9rem; color: var(--text); text-decoration: none; font: 500 1rem var(--font-display); border-radius: 999px; }
.nav a:not(.nav-cta):hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"]:not(.btn) { color: var(--ink); }
.nav a[aria-current="page"]:not(.btn):not(.nav-cta)::after { content: ""; position: absolute; left: 50%; bottom: .2rem; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--fiber-b); box-shadow: 0 0 8px var(--fiber-a); }
/* contact link in the header: an outlined connector pill, never a filled button */
.nav .nav-cta { display: inline-flex; align-items: center; gap: .55rem; margin-inline-start: .6rem; min-height: 2.6rem; padding: .45rem 1.1rem; border: 1.5px solid var(--fiber-b); border-radius: 999px; color: var(--ink); text-decoration: none; font: 500 .98rem var(--font-display); transition: background-color .2s, box-shadow .25s; }
.nav .nav-cta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fiber-b); box-shadow: 0 0 8px var(--fiber-a); }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: color-mix(in srgb, var(--fiber-a) 14%, transparent); color: var(--ink); box-shadow: var(--shadow-glow); }
.lang-switch { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .8rem; border-radius: 999px; color: var(--text); text-decoration: none; font-size: .98rem; font-weight: 500; }
.lang-switch:hover { background: var(--bg-soft); color: var(--ink); }
.lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", "Readex Pro", sans-serif; font-size: 1.05rem; }
.lang-switch[lang="en"] { font-family: var(--font-display); }
.bar-tools { display: flex; align-items: center; gap: .25rem; }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); }
.theme-toggle .icon:last-child { display: none; }
:root[data-theme="dark"] .theme-toggle .icon:first-child { display: none; }
:root[data-theme="dark"] .theme-toggle .icon:last-child { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon:first-child { display: none; }
  :root:not([data-theme]) .theme-toggle .icon:last-child { display: block; }
}
.menu-toggle { display: none; }
.menu-toggle .icon:last-child { display: none; }
.menu-toggle[aria-expanded="true"] .icon:first-child { display: none; }
.menu-toggle[aria-expanded="true"] .icon:last-child { display: block; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .bar-tools { margin-inline-start: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 2rem; margin: 0;
    background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 30px 40px -20px rgba(11, 21, 38, .25);
    transform: translateY(-110%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s .35s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .nav a:not(.nav-cta) { font-size: 1.5rem; padding: .9rem .25rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]:not(.btn):not(.nav-cta)::after { left: auto; inset-inline-end: .5rem; top: 50%; bottom: auto; margin: -2.5px 0 0; }
  .nav .nav-cta { margin: 1.5rem 0 0; justify-content: center; font-size: 1.1rem; min-height: 3.1rem; border-bottom: 1.5px solid var(--fiber-b); }
  .site-header.menu-open { background: var(--bg); }
}

/* ---------- Buttons & links ---------- */
/* buttons speak the fiber language: a connector dot, a cyan outline, no heavy fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.1rem; padding: .8rem 1.5rem; border: 1.5px solid var(--fiber-b); border-radius: 999px;
  background: color-mix(in srgb, var(--fiber-a) 16%, var(--bg)); color: var(--ink); text-decoration: none; cursor: pointer;
  font: 500 1.02rem/1.2 var(--font-display); letter-spacing: .005em;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fiber-a) 12%, transparent);
  transition: background-color .25s, border-color .25s, box-shadow .25s, transform .2s;
}
.btn::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fiber-b); box-shadow: 0 0 8px var(--fiber-a); transition: transform .25s; }
.btn:hover { background: color-mix(in srgb, var(--fiber-a) 26%, var(--bg)); color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fiber-a) 18%, transparent), var(--shadow-glow); }
.btn:hover::before { transform: scale(1.35); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn--ghost::before { background: transparent; border: 1.5px solid var(--line-strong); box-shadow: none; }
.btn--ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--fiber-b); box-shadow: none; }
.btn--ghost:hover::before { border-color: var(--fiber-b); }
.btn--small { min-height: 2.6rem; padding: .5rem 1.15rem; font-size: .98rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.25rem; }
.text-link { display: inline-block; margin-top: 2.5rem; font: 500 1.1rem var(--font-display); color: var(--ink); text-decoration-color: var(--fiber-b); text-decoration-thickness: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-inner {
  padding-top: calc(var(--header-h) + clamp(5rem, 14vh, 10rem));
  padding-bottom: clamp(3rem, 8vh, 6rem);
  padding-inline-end: calc(var(--lane) + 2rem);
  min-height: clamp(30rem, calc(88vh - var(--header-h)), 58rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-title { font-size: clamp(2.6rem, 1.2rem + 5.4vw, 6.4rem); line-height: 1.02; letter-spacing: -0.038em; max-width: 13.5ch; font-weight: 500; text-wrap: balance; }
.hero-lead { margin-top: 1.75rem; max-width: 36rem; font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.6; color: var(--text); }
.hero-dot {
  --dot: clamp(4.25rem, 8vw, 9rem);
  position: absolute; top: calc(var(--header-h) + clamp(3rem, 10vh, 7rem)); inset-inline-end: calc(var(--lane) * .38);
  width: var(--dot); height: var(--dot); transform: translateX(50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ECFEFF 0 6%, #67E8F9 22%, #22D3EE 46%, #0891B2 82%, #0E7490 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 20px 50px -10px rgba(8, 145, 178, .55), 0 0 90px 10px rgba(34, 211, 238, .28);
}
[dir="rtl"] .hero-dot { transform: translateX(-50%); }
.hero-dot::before, .hero-dot::after { content: ""; position: absolute; inset: -18%; border-radius: 50%; border: 1.5px solid rgba(34, 211, 238, .45); animation: halo 5s ease-out infinite; }
.hero-dot::after { animation-delay: 2.5s; }
@keyframes halo { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.hero-dot--broken { filter: grayscale(.6); opacity: .8; }
.hero--404 .hero-inner { min-height: calc(100vh - var(--header-h) - 20rem); }

.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; max-width: 58rem; }
.jump a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); text-decoration: none; font-size: .95rem; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.jump a:hover { border-color: var(--accent); color: var(--ink); }
.jump .icon { color: var(--accent); }

/* Services hero: the logo, large and animated */
.hero--logo .hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "text logo"; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-inline-end: 0; }
.hero--logo .hero-text { grid-area: text; }
.hero--logo .hero-logo { grid-area: logo; }
.hero--logo .lane-mark { display: none; }
.hero-logo { position: relative; display: flex; justify-content: center; perspective: 900px; }
.hero-logo::before { content: ""; position: absolute; inset: 4% 8% 10%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--fiber-a) 20%, transparent), transparent 70%); filter: blur(10px); z-index: -1; }
.hl { display: block; width: auto; height: clamp(10.5rem, 19.6vw, 18.2rem); overflow: visible; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.hl-dot, .hl-node, .hl-ring, .hl-dot-glow, .hl-stem { transform-box: fill-box; transform-origin: center; }
.hl-dot { filter: drop-shadow(0 10px 24px rgba(8, 145, 178, .45)); animation: hl-dot-in .8s cubic-bezier(.2, .8, .2, 1) both; }
.hl-dot-glow { opacity: .4; animation: hl-dot-in .8s both, hl-breathe 3.2s 2.3s ease-in-out infinite; }
.hl-ring { fill: none; stroke: var(--fiber-a); stroke-width: 1.4; opacity: 0; animation: hl-ring 4.8s 1.2s ease-out infinite; }
.hl-ring--2 { animation-delay: 3.6s; }
.hl-stem { transform-origin: top; filter: drop-shadow(0 8px 18px rgba(6, 182, 212, .35)); animation: hl-grow .65s .4s cubic-bezier(.3, .7, .2, 1) both; }
.hl-strand { fill: none; stroke-width: 16; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: hl-draw 1s .9s cubic-bezier(.45, 0, .2, 1) forwards; }
.hl-strand--a { stroke: #22D3EE; }
.hl-strand--b { stroke: #0EA5E9; animation-delay: .95s; }
.hl-strand--c { stroke: #1D4ED8; animation-delay: 1s; }
.hl-pulse { fill: none; stroke: #A5F3FC; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 9 100; stroke-dashoffset: 109; opacity: .9; animation: hl-pulse-strand 3.2s 2.3s linear infinite; }
.hl-pulse--core { stroke: #FFFFFF; stroke-width: 4; filter: none; }
.hl-pulse--stem { animation-name: hl-pulse-stem; }
.hl-node { animation: hl-pop .5s cubic-bezier(.2, .8, .2, 1.5) both; }
.hl-node--a { animation-delay: 1.7s; }
.hl-node--b { animation-delay: 1.8s; }
.hl-node--c { animation-delay: 1.9s; }
.hl-node-ring { fill: var(--bg); stroke-width: 4.5; }
.hl-node--a .hl-node-ring { stroke: #22D3EE; }
.hl-node--b .hl-node-ring { stroke: #0EA5E9; }
.hl-node--c .hl-node-ring { stroke: #1D4ED8; }
.hl-node-glow { fill: var(--fiber-a); opacity: 0; transform-box: fill-box; transform-origin: center; animation: hl-flash 3.2s 2.3s ease-out infinite; }
@keyframes hl-dot-in { 0% { transform: scale(.15); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes hl-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hl-draw { to { stroke-dashoffset: 0; } }
@keyframes hl-pop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes hl-ring { 0% { transform: scale(.75); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes hl-breathe { 0% { opacity: .9; transform: scale(1.12); } 25% { opacity: .4; transform: scale(1); } 100% { opacity: .4; transform: scale(1); } }
@keyframes hl-pulse-stem { 0% { stroke-dashoffset: 109; } 30% { stroke-dashoffset: -9; } 100% { stroke-dashoffset: -9; } }
@keyframes hl-pulse-strand { 0%, 28% { stroke-dashoffset: 109; } 72% { stroke-dashoffset: -9; } 100% { stroke-dashoffset: -9; } }
@keyframes hl-flash { 0%, 68% { opacity: 0; transform: scale(.6); } 76% { opacity: .55; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1.4); } }
.js .hero-logo:not(.in-view) .hl * { animation-play-state: paused; }
/* the smaller logo that starts the fiber on the other pages */
.hero-logo--mini { position: absolute; top: calc(var(--header-h) + clamp(2rem, 7vh, 5rem)); inset-inline-end: calc(var(--lane) * .38); transform: translateX(50%); display: block; perspective: none; pointer-events: none; }
[dir="rtl"] .hero-logo--mini { transform: translateX(-50%); }
.hero-logo--mini .hl { height: clamp(7rem, 9vw, 9.5rem); }
/* home: a slightly larger logo with the wordmark beside it, on the page side */
.hero-logo--home .hl { height: clamp(8.5rem, 11.5vw, 12.5rem); }
.hero-wordmark { position: absolute; top: 26%; right: calc(100% + .6rem); left: auto; white-space: nowrap; font: 500 clamp(2.4rem, 1.4rem + 2.6vw, 4.4rem)/1 var(--font-display); font-family: "Outfit", sans-serif; letter-spacing: -0.03em; color: var(--heading); opacity: .5; }
.hero-wordmark span { color: var(--accent); }
[dir="rtl"] .hero-wordmark { left: calc(100% + .6rem); right: auto; }
@media (max-width: 900px) {
  .hero--logo .hero-inner { grid-template-columns: 1fr; grid-template-areas: "logo" "text"; gap: 2.75rem; }
  .hl { height: clamp(12rem, 36vw, 17rem); }
}
@media (max-width: 760px) {
  /* phones: the title stays at the top; the logo stands on the line beside it
     and its middle foot feeds the fiber */
  .hero--logo .hero-inner { display: block; padding-top: calc(var(--header-h) + 1.4rem); padding-inline-start: 0; }
  .hero--logo .hero-text { padding-inline-start: calc(var(--lane) + 1.2rem); }
  .hero--logo .hero-logo { --hl-h: 5.6rem; position: absolute; top: calc(var(--header-h) + 1rem); inset-inline-start: calc(var(--lane) * .38); transform: translateX(-50%); width: max-content; }
  [dir="rtl"] .hero--logo .hero-logo { transform: translateX(50%); }
  .hero--logo .hl { height: var(--hl-h); }
}

/* ---------- Stations: sections the fiber runs past ---------- */
.station { padding-block: var(--section); }
.station + .station { padding-top: calc(var(--section) * 1.1); }
.lane-left > .wrap { padding-inline-start: var(--lane); }
.lane-right > .wrap { padding-inline-end: var(--lane); }
.lane-mark { position: absolute; top: 0; bottom: 0; width: 0; pointer-events: none; }
.lane-left .lane-mark { inset-inline-start: calc(var(--lane) * .38); }
.lane-right .lane-mark { inset-inline-end: calc(var(--lane) * .38); }

.section-title { font-size: clamp(1.9rem, 1.1rem + 2.7vw, 3.5rem); line-height: 1.07; letter-spacing: -0.028em; max-width: 21ch; text-wrap: balance; }
.section-lead { margin-top: 1.1rem; max-width: 40rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--muted); }
.section-lead a { color: var(--accent); }
.cta-title { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch; text-wrap: balance; }
.station--cta { padding-bottom: calc(var(--section) * 1.3); }

.statement { font: 300 clamp(1.55rem, 1rem + 2.1vw, 2.75rem)/1.28 var(--font-display); letter-spacing: -0.015em; color: var(--ink); max-width: 30ch; text-wrap: pretty; }
.statement strong { font-weight: 500; color: var(--accent); white-space: nowrap; }
.statement--small { font-size: clamp(1.35rem, 1rem + 1.3vw, 2rem); max-width: 34ch; }

.client-wall { margin-top: 2rem; max-width: 62rem; font: 400 clamp(1.3rem, .95rem + 1.5vw, 2.3rem)/1.55 var(--font-display); letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.client-wall span { display: inline-block; }
.client-wall span:nth-child(3n + 2) { color: var(--muted); }
.client-wall span { margin-inline-end: .5em; }
.client-wall span::before { content: ""; display: inline-block; width: .3em; height: .3em; margin-inline-end: .5em; border-radius: 50%; vertical-align: .22em; background: var(--fiber-b); box-shadow: 0 0 10px var(--fiber-a); opacity: .75; }

.split { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 1000px) {
  .split--art { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
  .split--services { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .split--contact { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
}

/* capabilities */
.cap-groups { display: grid; gap: 2.25rem; margin-top: 2.75rem; }
.cap-group h3 { font-size: 1.05rem; font-weight: 500; color: var(--accent); letter-spacing: .01em; margin-bottom: .6rem; }
.cap-list li + li { border-top: 1px solid var(--line); }
.cap-list a { display: grid; grid-template-columns: 2.25rem 1fr; gap: .85rem; padding: .9rem 0; color: var(--text); text-decoration: none; }
.cap-list .icon { margin-top: .15rem; color: var(--accent); transition: transform .3s; }
.cap-list strong { display: block; font: 500 1.18rem/1.3 var(--font-display); color: var(--ink); }
.cap-list a > span > span { display: block; color: var(--muted); font-size: .98rem; margin-top: .15rem; }
.cap-list a:hover strong { text-decoration: underline; text-decoration-color: var(--fiber-b); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.cap-list a:hover .icon { transform: scale(1.12); }

/* illustrations */
.art-frame { margin: 0; }
.art-frame--hall .art { filter: drop-shadow(0 40px 60px rgba(8, 145, 178, .16)); }
.art { display: block; width: 100%; height: auto; overflow: visible; direction: ltr; }
.art-frame figcaption { margin-top: 1rem; max-width: 40rem; font-size: .92rem; color: var(--muted); }
.art-frame--map { margin-top: 2.5rem; }
@media (min-width: 1000px) { .art-frame--sticky { position: sticky; top: calc(var(--header-h) + 2rem); } }

/* isometric data hall */
.iso-floor { fill: var(--iso-floor); stroke: var(--iso-line); stroke-width: 1; }
.iso-grid { stroke: var(--iso-grid); stroke-width: 1; }
.iso-wall { stroke: var(--iso-line); stroke-width: 1; }
.iso-wall--a { fill: var(--iso-wall-a); }
.iso-wall--b { fill: var(--iso-wall-b); }
.iso-top { fill: var(--iso-top); stroke: var(--iso-line); stroke-width: .8; stroke-linejoin: round; }
.iso-left { fill: var(--iso-left); stroke: var(--iso-line); stroke-width: .8; stroke-linejoin: round; }
.iso-right { fill: var(--iso-right); stroke: var(--iso-line); stroke-width: .8; stroke-linejoin: round; }
.iso-slab { opacity: .85; }
.iso-top.iso-rack { fill: var(--iso-rack-top); }
.iso-left.iso-rack { fill: var(--iso-rack-left); }
.iso-right.iso-rack { fill: var(--iso-rack-right); }
.iso-slot { stroke: rgba(148, 178, 206, .22); stroke-width: 1; }
.iso-perf { fill: var(--iso-line); opacity: .8; }
.iso-vent { stroke: var(--iso-line); stroke-width: 1.2; }
.iso-door { fill: var(--iso-left); stroke: var(--iso-line); stroke-width: 1; }
.iso-reader, .iso-device { fill: var(--ink); opacity: .85; }
.iso-screen { fill: #0B1526; stroke: var(--fiber-b); stroke-width: .8; }
.iso-alarm { fill: #E5484D; opacity: .9; }
.iso-alarm-core { fill: #FFE4E6; }
.iso-cam path { fill: var(--iso-top); stroke: var(--iso-line); stroke-width: 1; }
.iso-cam .iso-cam-lens { fill: #0B1526; }
.iso-cam line { stroke: var(--iso-line); stroke-width: 2; }
.iso-fm200 rect { fill: #D6454B; }
.iso-fm200 .iso-fm200-valve { fill: #9AA8B8; }
.iso-top.iso-tray, .iso-left.iso-tray, .iso-right.iso-tray { fill: none; stroke: var(--iso-line); stroke-width: 1.1; }
.iso-fiber { stroke: var(--fiber-b); stroke-width: 1.6; opacity: .65; }
.iso-fiber-pulse { stroke: var(--fiber-lit); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 26 900; stroke-dashoffset: 926; animation: iso-flow 3.4s linear infinite; }
.iso-drop { stroke: var(--fiber-b); stroke-width: 1.4; opacity: .7; }
@keyframes iso-flow { to { stroke-dashoffset: 0; } }

.led { fill: var(--led); animation: blink 2.6s steps(1, end) infinite; }
.led--ok { fill: var(--led-ok); animation-duration: 3.4s; }
@keyframes blink { 0%, 100% { opacity: 1; } 35% { opacity: .25; } 42% { opacity: 1; } 71% { opacity: .45; } 78% { opacity: 1; } }

/* the technician (animation keyframes are generated in src/art.js) */
.tech-shadow { fill: rgba(11, 21, 38, .2); }
:root[data-theme="dark"] .tech-shadow { fill: rgba(0, 0, 0, .4); }
.tech-leg-l rect, .tech-leg-r rect { fill: #1E293B; }
.tech-leg-l .tech-boot, .tech-leg-r .tech-boot { fill: #0B1220; }
.tech-leg-l, .tech-leg-r, .tech-arm-l, .tech-arm-r { transform-box: fill-box; transform-origin: 50% 0%; }
.tech-arm-l rect, .tech-arm-r rect, .tech-torso { fill: #1E3A8A; }
.tech-logo-dot { fill: #A5F3FC; }
.tech-logo-stem { fill: #22D3EE; }
.tech-logo path { fill: none; stroke-width: 1.3; stroke-linecap: round; }
.tech-logo-s1 { stroke: #67E8F9; }
.tech-logo-s2 { stroke: #38BDF8; }
.tech-logo-s3 { stroke: #93C5FD; }
.tech-vest { fill: #FB923C; }
.tech-head { fill: #E3B08A; }
.tech-hat { fill: #FACC15; }
.tech-arm-r .tech-tool { fill: #94A3B8; }
.tech-spark path { fill: #FDE047; filter: drop-shadow(0 0 4px #FDE047); }
.led-srv { fill: #22C55E; }
.hall-bad > circle:first-child { fill: #EF4444; filter: drop-shadow(0 0 8px rgba(239, 68, 68, .7)); }
.hall-bad rect, .hall-bad > circle:last-child { fill: #FFFFFF; }
.hall-ok circle { fill: #22C55E; filter: drop-shadow(0 0 8px rgba(34, 197, 94, .7)); }
.hall-ok path { fill: none; stroke: #FFFFFF; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .hall-bad, .tech-spark { display: none; } }
/* the Infrawise alien (home page): dot head, stem body, three strand feet */
.al-leg path { fill: none; stroke-width: 5; stroke-linecap: round; }
.al-leg-l path, .al-leg-l circle { stroke: #22D3EE; fill: none; }
.al-leg-m path, .al-leg-m circle { stroke: #0EA5E9; fill: none; }
.al-leg-r path, .al-leg-r circle { stroke: #1D4ED8; fill: none; }
.al-leg circle { stroke-width: 2.2; fill: var(--bg) !important; }
.tech--alien .tech-leg-l { transform-origin: 100% 0%; }
.tech--alien .tech-leg-r { transform-origin: 0% 0%; }
.al-arm rect { fill: #0EA5E9; }
.al-arm .al-wand { fill: #A5F3FC; filter: drop-shadow(0 0 4px #22D3EE); }
.al-body { filter: drop-shadow(0 4px 8px rgba(6, 182, 212, .35)); }
.al-head { filter: drop-shadow(0 0 8px rgba(34, 211, 238, .55)); }
.al-eye { fill: #0B1526; }
.al-eye-glint { fill: #FFFFFF; }
.al-mouth { fill: none; stroke: #0B1526; stroke-width: 1.4; stroke-linecap: round; }
.al-antenna { stroke: #0891B2; stroke-width: 1.8; stroke-linecap: round; }
.al-antenna-tip { fill: #A5F3FC; filter: drop-shadow(0 0 5px #22D3EE); animation: blink 1.8s steps(1, end) infinite; }

/* network scene (keyframes are generated in src/art.js) */
.art-network { --nw-outlet: #CBD5E1; --nw-pc-off: #475569; }
:root[data-theme="dark"] .art-network { --nw-outlet: #334155; --nw-pc-off: #1E293B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .art-network { --nw-outlet: #334155; --nw-pc-off: #1E293B; } }
.nw-building { fill: color-mix(in srgb, var(--bg-soft) 55%, transparent); stroke: var(--line-strong); stroke-width: 2; }
.nw-slab { stroke: var(--line-strong); stroke-width: 3; }
.nw-ground { fill: var(--line-strong); }
.nw-tray { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 4; }
.nw-rack, .nw-idf { fill: var(--iso-rack-left); }
.nw-unit { fill: rgba(148, 178, 206, .25); }
.nw-fiber { fill: none; stroke: #22D3EE; stroke-width: 3.5; stroke-dasharray: 100; stroke-linecap: round; stroke-linejoin: round; }
.nw-fiber-pulse { fill: none; stroke: #ECFEFF; stroke-width: 3.5; stroke-dasharray: 4 100; stroke-linecap: round; opacity: 0; }
.nw-cable { fill: none; stroke: #3B82F6; stroke-width: 2.2; stroke-dasharray: 100; stroke-linejoin: round; }
.nw-test { fill: none; stroke: #FACC15; stroke-width: 4; stroke-dasharray: 8 220; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 4px #FACC15); }
.nw-data { fill: none; stroke: #A5F3FC; stroke-width: 3.2; stroke-dasharray: 3 100; stroke-linecap: round; opacity: 0; }
.nw-outlet { fill: #22C55E; stroke: var(--line-strong); stroke-width: 1; }
.nw-desk { stroke: var(--line-strong); stroke-width: 3; stroke-linecap: round; }
.nw-pc { fill: #22D3EE; stroke: var(--ink); stroke-width: 2; }
.nw-pc-stand { fill: var(--line-strong); }
.nw-check circle { fill: #22C55E; filter: drop-shadow(0 0 5px rgba(34, 197, 94, .6)); }
.nw-check path { fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nw-tester { opacity: 0; }
.nw-tester rect:first-child { fill: #FACC15; stroke: #A16207; stroke-width: 1; }
.nw-tester .nw-tester-screen { fill: #0B1526; }
.nw-tester circle { fill: #A16207; }

/* region map */
.map-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.map-route { fill: none; stroke: var(--fiber-b); stroke-width: 2; opacity: .45; }
.map-route-flow { fill: none; stroke: var(--fiber-lit); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 5 100; stroke-dashoffset: 105; animation: route 4.2s linear infinite; }
@keyframes route { to { stroke-dashoffset: 0; } }
.map-country { font: 300 34px var(--font-display); fill: var(--muted); opacity: .55; letter-spacing: .02em; }
.map-node { fill: color-mix(in srgb, var(--fiber-a) 22%, transparent); stroke: var(--fiber-b); stroke-width: 1.5; }
.map-core { fill: var(--fiber-b); }
.map-halo { fill: none; stroke: var(--fiber-a); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
.map-label { font: 500 17px var(--font-display); fill: var(--ink); }
.map-num { font: 600 13px "Outfit", sans-serif; fill: var(--accent); pointer-events: none; }
.map-node { fill: color-mix(in srgb, var(--fiber-a) 18%, var(--bg)); }

/* OTDR trace */
.otdr-axis, .otdr-tick { stroke: var(--line-strong); stroke-width: 1.2; }
.otdr-trace { fill: none; stroke: var(--fiber-b); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .otdr-trace { stroke-dashoffset: 1; }
.js .in-view .otdr-trace { animation: draw 2.6s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.otdr-events circle { fill: none; stroke: var(--accent-2); stroke-width: 1.5; opacity: .8; }

/* floor plan */
.plan-wall { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: square; opacity: .8; }
.plan-label { font: 500 14px var(--font-display); fill: var(--muted); }
.plan-rack { fill: var(--iso-rack-left); }
.plan-cone { fill: var(--fiber-a); opacity: .16; animation: scan 5s ease-in-out infinite; }
@keyframes scan { 0%, 100% { opacity: .1; } 50% { opacity: .3; } }
.plan-cam-dot { fill: var(--fiber-c); stroke: var(--bg); stroke-width: 2; }
.plan-door { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1.5; }
.plan-detector { fill: none; stroke: #E5484D; stroke-width: 1.5; }
.plan-detector-core { fill: #E5484D; }
.plan-nozzle { stroke: #E5484D; stroke-width: 2; stroke-linecap: round; }

/* animations only run while the art is on screen */
.js .art:not(.in-view) *, .js .hero-dot:not(.in-view)::before, .js .hero-dot:not(.in-view)::after { animation-play-state: paused; }

/* stops: projects as stations on the line */
.stops { margin-top: 2.75rem; }
.stops > li { display: grid; gap: .35rem 3rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.stops > li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .stops:not(.stops--grid) > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "place fig" "title fig" "title scope"; align-items: start; }
  .stops:not(.stops--grid) .stop-place { grid-area: place; }
  .stops:not(.stops--grid) h3 { grid-area: title; }
  .stops:not(.stops--grid) .stop-figure { grid-area: fig; }
  .stops:not(.stops--grid) .stop-scope { grid-area: scope; }
}
.stop-place { font-size: .92rem; color: var(--muted); }
.stops h3 { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.9rem); line-height: 1.2; letter-spacing: -0.015em; }
.stop-site { display: block; margin-top: .2rem; font: 400 1rem/1.4 var(--font-body); color: var(--muted); letter-spacing: 0; }
.stop-figure { font-size: 1rem; color: var(--muted); }
.stop-figure strong { display: block; font: 400 clamp(2rem, 1.4rem + 1.8vw, 3rem)/1 var(--font-display); color: var(--accent); letter-spacing: -0.03em; margin-bottom: .25rem; }
.stop-scope { color: var(--text); font-size: .98rem; max-width: 36rem; }

.stops--grid { display: grid; gap: 0 clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 700px) { .stops--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .stops--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stops--grid > li { border-bottom: 0; align-content: start; }
.stops--grid > li:last-child { border-bottom: 0; }
.stops--grid h3 { font-size: 1.3rem; }
.stop-figures { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: .5rem 0 .2rem; }
.stop-figures li { font-size: .9rem; color: var(--muted); line-height: 1.3; }
.stop-figures strong { display: block; font: 400 1.6rem/1.1 var(--font-display); color: var(--accent); letter-spacing: -0.02em; }
.stop[hidden] { display: none; }

/* Projects on phones: bigger names and figures, and each project lights up
   when the light on the fiber reaches its node. */
.fiber-node-wrap--major .fiber-node { stroke-width: 2.5; }
.fiber-node-core { fill: var(--fiber-b); opacity: .6; transition: fill .5s, opacity .5s; }
.fiber-node-wrap--major.lit .fiber-node-core { fill: #FFFFFF; opacity: 1; }
.fiber-node-wrap--major.lit .fiber-node-halo { opacity: .3; }
@media (max-width: 760px) {
  .stops > li { position: relative; padding: 1.6rem 0 1.7rem; gap: .45rem; }
  .stops > li::before {
    content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1) 0 calc(var(--lane) * -1); z-index: -1;
    background: linear-gradient(90deg, color-mix(in srgb, var(--fiber-a) 16%, transparent), transparent 75%);
    opacity: 0; transform: scaleX(.6); transform-origin: left; transition: opacity .6s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
  }
  [dir="rtl"] .stops > li::before { inset: 0 calc(var(--lane) * -1) 0 calc(var(--gutter) * -1); background: linear-gradient(-90deg, color-mix(in srgb, var(--fiber-a) 16%, transparent), transparent 75%); transform-origin: right; }
  .stops > li.is-lit::before { opacity: 1; transform: none; }
  .stops h3, .stops--grid h3 { font-size: 1.6rem; line-height: 1.2; font-weight: 600; }
  [lang="ar"] .stops h3 { line-height: 1.45; }
  .stop-place { font-size: .95rem; color: var(--accent); font-weight: 500; }
  .stop-site { font-size: 1rem; margin-top: .3rem; }
  .stop-figures { gap: .6rem 1.6rem; margin-top: .7rem; }
  .stop-figures li { font-size: .95rem; }
  .stop-figures strong, .stop-figure strong { font-size: 2.5rem; line-height: 1; margin-bottom: .2rem; }
  .stop-scope { font-size: .98rem; color: var(--muted); }
  /* group titles: clearly above the project names, count lives on the line */
  .project-group .section-title { font-size: 2.45rem; line-height: 1.08; letter-spacing: -0.03em; }
  [lang="ar"] .project-group .section-title { font-size: 2.3rem; line-height: 1.3; }
  .project-group .section-title::after { content: ""; display: block; width: 3.5rem; height: 4px; margin-top: .8rem; border-radius: 4px; background: linear-gradient(90deg, #22D3EE, #0EA5E9 50%, #1D4ED8); box-shadow: 0 0 14px rgba(34, 211, 238, .55); }
  [dir="rtl"] .project-group .section-title::after { background: linear-gradient(-90deg, #22D3EE, #0EA5E9 50%, #1D4ED8); }
  .project-group .group-count { display: none; }
  .project-group .group-caption { display: block; }
  .stops h3, .stops--grid h3 { font-size: 1.45rem; }
}

.project-group .group-count { display: none; }
.group-caption { display: block; margin-top: .75rem; font: 500 1rem var(--font-display); color: var(--accent); }
/* group stations on the fiber (projects page) */
.fiber-station-ring { fill: var(--bg); stroke: var(--fiber-b); stroke-width: 3; transition: fill .5s, stroke .5s; }
.fiber-station-num { font: 600 15px var(--font-display); fill: var(--accent); transition: fill .5s; }
.fiber-station.lit .fiber-station-ring { fill: #0EA5E9; stroke: #67E8F9; }
.fiber-station.lit .fiber-station-num { fill: #FFFFFF; }
.fiber-station.lit .fiber-node-halo { opacity: .28; }

/* steps: a real sequence */
.steps { display: grid; gap: 2rem clamp(1.5rem, 2.5vw, 2.5rem); margin-top: 3rem; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.step-n { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid var(--fiber-b); color: var(--accent); font: 500 1.05rem var(--font-display); background: var(--bg); box-shadow: 0 0 0 5px color-mix(in srgb, var(--fiber-a) 12%, transparent); }
.steps h3 { margin-top: 1.1rem; font-size: 1.25rem; }
.steps p { margin-top: .45rem; color: var(--muted); font-size: .98rem; }

/* services page */
.group-head { margin-bottom: 3rem; }
.service-list { display: grid; gap: 3.5rem; }
.service { scroll-margin-top: 0; }
.service h3 { display: flex; align-items: center; gap: .7rem; font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.02em; line-height: 1.2; }
.service h3 .icon { flex: none; color: var(--accent); }
.service-lead { margin-top: .7rem; font-size: 1.12rem; color: var(--text); max-width: 38rem; }
.ticks { display: grid; gap: .45rem 2rem; margin-top: 1.1rem; }
@media (min-width: 640px) { .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ticks li { position: relative; padding-inline-start: 1.3rem; color: var(--text); font-size: .98rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--fiber-b); }
.service-refs { margin-top: 1.1rem; font-size: .93rem; color: var(--muted); max-width: 40rem; }
.service-refs span { color: var(--ink); font-weight: 500; }

/* projects page */
.filters { display: grid; gap: .9rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; }
/* filter chips: a connector dot that fills and glows when selected */
.chip { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .5rem 1.1rem; border: 1.5px solid var(--line-strong); border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--text); cursor: pointer; font: 500 .98rem var(--font-display); transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s; }
.chip::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background-color .25s, border-color .25s, box-shadow .25s; }
.chip:hover { border-color: var(--fiber-b); color: var(--ink); }
.chip:hover::before { border-color: var(--fiber-b); }
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--fiber-a) 16%, var(--bg)); border-color: var(--fiber-b); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fiber-a) 14%, transparent), 0 8px 20px -12px rgba(8, 145, 178, .6); }
.chip[aria-pressed="true"]::before { background: var(--fiber-b); border-color: var(--fiber-b); box-shadow: 0 0 8px var(--fiber-a); }
.filter-count { margin-top: .4rem; color: var(--muted); font-size: .95rem; }
.group-count { display: inline-block; margin-inline-start: .6rem; font-size: .45em; font-weight: 400; color: var(--accent); vertical-align: .9em; letter-spacing: 0; }
.project-group[hidden] { display: none; }

/* about page */
.prose { display: grid; gap: 1.5rem; margin-top: 2rem; max-width: 46rem; }
.prose p:not(.statement) { color: var(--text); font-size: 1.1rem; }
.principles { display: grid; gap: 2.5rem; margin-top: 2.75rem; }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.principles h3 { font-size: 1.4rem; }
.principles p { margin-top: .6rem; color: var(--muted); }
.sectors { display: grid; gap: 0 3rem; margin: 2.5rem 0 0; }
@media (min-width: 800px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sectors > div { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.sectors dt { font: 500 1.2rem var(--font-display); color: var(--ink); }
.sectors dd { margin: .35rem 0 0; color: var(--muted); }

/* team (about page) */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 10rem)); gap: 2rem 1.5rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .team { grid-template-columns: repeat(3, minmax(0, 12.5rem)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); } }
.member-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--bg-soft); }
.member-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.member-photo--empty { display: grid; place-items: center; border: 1.5px dashed var(--line-strong); background:
  radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--fiber-a) 16%, transparent), transparent 60%), color-mix(in srgb, var(--bg-soft) 70%, transparent); }
.member-photo--empty svg { position: absolute; inset: auto 0 0; width: 72%; margin: 0 auto; fill: color-mix(in srgb, var(--fiber-b) 22%, transparent); }
.member-photo--empty .placeholder { position: relative; z-index: 1; align-self: start; margin-top: .75rem; background: var(--bg); font-size: .72rem; }
.member h3 { margin-top: .85rem; font-size: 1.15rem; }
.member p { margin-top: .25rem; color: var(--muted); font-size: .95rem; }
.member h3 .placeholder, .member p .placeholder { font-size: .75em; }

/* contact page */
.contact-lines { display: grid; gap: 0; margin: 2.5rem 0 0; max-width: 56rem; }
.contact-lines > div { display: grid; gap: .35rem 2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.contact-lines > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .contact-lines > div { grid-template-columns: 11rem 1fr; align-items: baseline; } }
.contact-lines dt { display: flex; align-items: center; gap: .6rem; font: 500 1.05rem var(--font-display); color: var(--muted); }
.contact-lines dt .icon { color: var(--accent); }
.contact-lines dd { margin: 0; font: 400 clamp(1.4rem, 1rem + 1.4vw, 2.2rem)/1.25 var(--font-display); color: var(--ink); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.contact-lines dd a { color: var(--ink); text-decoration-color: var(--fiber-b); text-decoration-thickness: 2px; }
.contact-lines dd a:hover { color: var(--accent); }
.placeholder { display: inline-block; padding: .1em .55em; border: 1.5px dashed var(--line-strong); border-radius: 8px; color: var(--muted); font-size: .8em; font-style: italic; }

/* ---------- Logo branch: the Fiber i splitting into the three service groups ---------- */
.branch { --s-a: #22D3EE; --s-b: #0EA5E9; --s-c: #1D4ED8; margin-top: clamp(2.5rem, 5vw, 4rem); }
.branch-top { display: flex; justify-content: center; position: relative; z-index: 1; }
.branch-head { width: clamp(6rem, 9vw, 9rem); height: auto; overflow: visible; }
.branch-halo { fill: none; stroke: var(--fiber-a); stroke-width: 1.2; opacity: .6; transform-box: fill-box; transform-origin: center; animation: halo 5s ease-out infinite; }
.branch-strands { display: block; width: 100%; height: clamp(7rem, 13vw, 11rem); margin-top: -2px; overflow: visible; }
[dir="rtl"] .branch-strands { transform: scaleX(-1); }
.branch-strand { fill: none; stroke-width: 12; stroke-linecap: round; }
.branch-strand--a { stroke: var(--s-a); }
.branch-strand--b { stroke: var(--s-b); }
.branch-strand--c { stroke: var(--s-c); }
.branch-pulse { fill: none; stroke: #ECFEFF; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 6 100; stroke-dashoffset: 106; animation: route 3.2s linear infinite; opacity: .95; }
.branch-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.branch-col { position: relative; padding: 0 clamp(.75rem, 2vw, 2rem); text-align: center; }
.branch-col--a { --s: var(--s-a); }
.branch-col--b { --s: var(--s-b); }
.branch-col--c { --s: var(--s-c); }
.branch-end { display: block; width: 22px; height: 22px; margin: -11px auto 1.25rem; border-radius: 50%; background: var(--bg); border: 4px solid var(--s); box-shadow: 0 0 0 6px color-mix(in srgb, var(--s) 18%, transparent), 0 0 24px color-mix(in srgb, var(--s) 60%, transparent); }
.branch-col h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); letter-spacing: -0.02em; }
.branch-blurb { margin: .6rem auto 0; max-width: 22rem; color: var(--muted); font-size: .98rem; }
.branch-list { display: grid; gap: .15rem; margin-top: 1.4rem; }
.branch-list a { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .55rem .4rem; color: var(--ink); text-decoration: none; font: 500 1.08rem/1.3 var(--font-display); }
.branch-list .icon { flex: none; color: var(--s); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--s) 45%, transparent)); }
:root:not([data-theme="dark"]) .branch-col--a .branch-list .icon { color: #0891B2; }
.branch-list a:hover span { text-decoration: underline; text-decoration-color: var(--s); text-decoration-thickness: 2px; text-underline-offset: .25em; }
/* phones: the logo stands at the top and its stem runs down through the three
   groups, changing to each group's strand color, with light flowing down it */
@media (max-width: 899px) {
  .branch { --trunk: 1.9rem; }
  .branch-top { justify-content: flex-start; }
  .branch-head { width: 3.4rem; margin-inline-start: calc(var(--trunk) - 1.7rem); }
  .branch-strands { display: none; }
  .branch-cols { grid-template-columns: 1fr; gap: 0; margin-top: -1px; margin-inline-start: calc(var(--trunk) - 2.5px); }
  .branch-col { text-align: start; padding: 1.4rem 0 2.4rem; padding-inline-start: 1.6rem; border-inline-start: 5px solid var(--s); }
  .branch-col:last-child { padding-bottom: .5rem; border-end-start-radius: 5px; border-end-end-radius: 5px; }
  .branch-col::after { content: ""; position: absolute; inset-inline-start: -11.5px; top: 1.75rem; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; background: var(--bg); border: 4px solid var(--s); box-shadow: 0 0 12px var(--s); }
  .branch-col::before { content: ""; position: absolute; inset-inline-start: -7.5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #ECFEFF; box-shadow: 0 0 10px 3px var(--s); opacity: 0; animation: trunk-pulse 3.6s linear infinite; }
  .branch-col--b::before { animation-delay: 1.2s; }
  .branch-col--c::before { animation-delay: 2.4s; }
  .branch-end { display: none; }
  .branch-blurb { margin-inline: 0; }
  .branch-list a { justify-content: flex-start; }
}
@keyframes trunk-pulse { 0% { top: -5px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 5px); opacity: 0; } }

/* group colors follow the logo's three strands */
.group-head .section-title { display: flex; align-items: center; gap: .9rem; }
.group-head .section-title::before { content: ""; flex: none; width: .42em; height: .42em; border-radius: 50%; background: var(--s); box-shadow: 0 0 0 .14em color-mix(in srgb, var(--s) 22%, transparent), 0 0 18px var(--s); }
.group-head--a, .jump--a { --s: #22D3EE; }
.group-head--b, .jump--b { --s: #0EA5E9; }
.group-head--c, .jump--c { --s: #1D4ED8; }
.jump a .icon { color: var(--s); }

/* ---------- Arabic ---------- */
[lang="ar"] { --font-display: "Readex Pro", "IBM Plex Sans Arabic", sans-serif; --font-body: "IBM Plex Sans Arabic", "Readex Pro", sans-serif; }
[lang="ar"] body { font-size: 1.08rem; line-height: 1.85; }
/* letter-spacing breaks the joining of Arabic letters: none anywhere in Arabic, except the Latin wordmark */
[lang="ar"] *:not(.wordmark):not(.wordmark *) { letter-spacing: 0 !important; }
[lang="ar"] .hero-title { font-size: clamp(2.1rem, 1rem + 3.7vw, 4.5rem); line-height: 1.3; font-weight: 500; max-width: 21ch; word-spacing: .04em; }
[lang="ar"] .section-title { line-height: 1.32; font-weight: 500; }
[lang="ar"] .cta-title { line-height: 1.28; font-weight: 500; max-width: 19ch; }
[lang="ar"] .statement { font-weight: 400; line-height: 1.6; font-size: clamp(1.4rem, 1rem + 1.7vw, 2.3rem); }
[lang="ar"] .statement strong { font-weight: 600; }
[lang="ar"] .client-wall { line-height: 1.9; font-weight: 500; }
[lang="ar"] .hero-lead, [lang="ar"] .section-lead { line-height: 1.9; }
[lang="ar"] .wordmark, [lang="ar"] .step-n { font-family: "Outfit", sans-serif; }
[lang="ar"] .group-count { vertical-align: .6em; }
[lang="ar"] .nav a:not(.nav-cta), [lang="ar"] .nav .nav-cta, [lang="ar"] .btn { font-weight: 500; }
[lang="ar"] .map-label, [lang="ar"] .map-country, [lang="ar"] .plan-label { font-family: "Readex Pro", sans-serif; }

/* ---------- Footer: the fiber splits into strands here ---------- */
.site-footer { padding-top: clamp(4.5rem, 8vw, 7rem); }
.footer-grid { display: grid; gap: 2.5rem 2rem; padding-inline-start: var(--lane); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.3fr 1fr; } }
.footer-grid > div { padding-top: 1.6rem; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; color: var(--muted); font-size: .98rem; }
.footer-col h2 { font-size: 1.02rem; margin-bottom: .75rem; }
.footer-col a { display: block; width: fit-content; padding: .25rem 0; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--fiber-b); }
.footer-col p { color: var(--muted); }
.footer-base { padding-block: 3.5rem 2.5rem; padding-inline-start: var(--lane); color: var(--muted); font-size: .9rem; }

/* ---------- Fiber drawing (see site.js) ---------- */
.fiber-glow { fill: none; stroke: var(--fiber-a); stroke-width: 16; stroke-linecap: round; opacity: .07; }
.fiber-strand { fill: none; stroke-width: 1.7; stroke-linecap: round; opacity: .5; }
.fiber-strand.s1 { stroke: var(--fiber-a); }
.fiber-strand.s2 { stroke: var(--fiber-b); }
.fiber-strand.s3 { stroke: var(--fiber-c); }
.fiber-lit { fill: none; stroke: var(--fiber-lit); stroke-width: 2.6; stroke-linecap: round; opacity: .95; }
.fiber-trail { fill: none; stroke: var(--fiber-a); stroke-width: 9; stroke-linecap: round; opacity: .18; }
.fiber-node { fill: var(--bg); stroke: var(--fiber-b); stroke-width: 2; transition: fill .5s, stroke .5s; }
.fiber-node-halo { fill: var(--fiber-a); opacity: 0; transition: opacity .6s; }
.fiber-node-wrap.lit .fiber-node { fill: var(--fiber-a); stroke: var(--fiber-lit); }
.fiber-node-wrap.lit .fiber-node-halo { opacity: .22; }
.fiber-head-glow { fill: var(--fiber-a); opacity: .28; }
.fiber-head { fill: #ECFEFF; stroke: var(--fiber-a); stroke-width: 2; }
.fiber-end { fill: var(--bg); stroke-width: 2; }
.fiber-end-core { opacity: .9; }
.fiber-ends .fiber-end { transition: stroke-width .5s; }
.fiber-ends.lit .fiber-strand { opacity: 1 !important; stroke-width: 2.2; }
.fiber-ends.lit .fiber-end { stroke-width: 3; }

@media (max-width: 760px) {
  :root { --lane: 2.35rem; --header-h: 4rem; }
  .lane-right > .wrap { padding-inline-end: 0; padding-inline-start: var(--lane); }
  .lane-right .lane-mark { inset-inline-end: auto; inset-inline-start: calc(var(--lane) * .38); }
  .hero-inner { padding-inline-start: var(--lane); padding-inline-end: 0; padding-top: calc(var(--header-h) + 7rem); min-height: 0; }
  .hero-dot { --dot: 3rem; inset-inline-start: calc(var(--lane) * .38); inset-inline-end: auto; transform: translateX(-50%); top: calc(var(--header-h) + 2.25rem); }
  [dir="rtl"] .hero-dot { transform: translateX(50%); }
  /* the small logo stands on the line beside the title: its middle foot feeds the fiber */
  .hero-logo--mini { --hl-h: 5rem; inset-inline-start: calc(var(--lane) * .38); inset-inline-end: auto; transform: translateX(-50%); top: calc(var(--header-h) + 1.1rem); }
  [dir="rtl"] .hero-logo--mini { transform: translateX(50%); }
  .hero-logo--mini .hl { height: var(--hl-h); }
  .hero-logo--home { --hl-h: 5.6rem; }
  .hero-logo--home .hl { height: var(--hl-h); }
  .hero-logo--home .hero-wordmark { left: calc(100% + .2rem); right: auto; top: .1rem; font-size: 1.9rem; }
  [dir="rtl"] .hero-logo--home .hero-wordmark { right: calc(100% + .2rem); left: auto; }
  .hero:not(.hero--logo) .hero-inner { padding-top: calc(var(--header-h) + 1.4rem); padding-inline-start: calc(var(--lane) + 1.05rem); }
  .page-home .hero .hero-inner { padding-top: calc(var(--header-h) + 3.9rem); }
  .lang-switch { padding: 0 .55rem; }
  .wordmark { font-size: 1.4rem; }
  .logo .mark { height: 30px; width: 22px; }
  .map-label { font-size: 22px; }
  .map-country { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .otdr-trace { stroke-dashoffset: 0; }
  .hl-strand { stroke-dashoffset: 0; }
  .hl-pulse, .hl-ring, .hl-node-glow { display: none; }
  .branch-col::before { display: none; }
}
