/* Futuristic IT — design system: "engineering datasheet".
   No cards: structure comes from hairline rules, a faint blueprint grid,
   monospaced technical labels and oversized display type.
   Pages are rendered by the x-dc runtime; a few homepage rules override
   inline styles on small screens (hence the !important there). */

:root {
  --bg: #000307;
  --bg-2: #00060b;
  --ink: #f2f8fc;
  --ink-2: #d3e2ec;
  --muted: #9cb2c1;
  --muted-2: #6c8595;
  --accent: #20d8ff;
  --accent-2: #7deaff;
  --hair: rgba(127, 220, 245, 0.13);
  --hair-2: rgba(127, 220, 245, 0.3);
  --wrap: 1240px;
  --gutter: clamp(20px, 5.5vw, 84px);
  --f-display: 'Bricolage Grotesque', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-body: 'Archivo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', 'IBM Plex Sans Arabic', ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-h1: clamp(38px, 4.8vw, 72px);
  --fs-h2: clamp(32px, 4.3vw, 66px);
  --fs-h3: clamp(18px, 1.35vw, 21px);
  --fs-lead: clamp(16.5px, 1.2vw, 18px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
* { box-sizing: border-box; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; height: auto; }
::selection { background: rgba(32, 216, 255, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#main:focus { outline: none; }
.skip-link { position: fixed; top: 10px; inset-inline-start: 10px; z-index: 100; padding: 12px 18px; background: var(--accent); color: #001018; font: 600 14px/1 var(--f-body); border-radius: 2px; transform: translateY(-160%); transition: transform 0.2s ease; }
.skip-link:focus { transform: none; }
@keyframes fitFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fitPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }

/* ---------- loader ---------- */
.fit-loader { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; transition: opacity 0.7s ease; }
.fit-loader img { width: 220px; max-width: 60vw; animation: fitPulse 1.6s ease-in-out infinite; }
.fit-loader-bar { width: 170px; height: 1px; background: var(--hair); overflow: hidden; }
.fit-loader-bar span { display: block; width: 40%; height: 100%; background: var(--accent); animation: fitPulse 1.1s ease-in-out infinite; }

/* ---------- header ---------- */
.fit-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px clamp(16px, 3vw, 34px); background: rgba(0, 3, 7, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.fit-logo { display: block; flex: none; line-height: 0; }
.fit-logo img { height: 38px; width: auto; display: block; }
.fit-nav { display: flex; align-items: center; gap: 8px; }
.fit-pill { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 38px; padding: 0 14px; border-radius: 2px; border: 1px solid var(--hair-2); background: transparent; color: var(--ink-2); font: 500 12px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease; }
.fit-pill:hover { border-color: var(--accent); color: var(--accent); background: rgba(32, 216, 255, 0.05); }
.fit-pill svg { flex: none; }
.fit-call { color: var(--ink); letter-spacing: 0.04em; }
.fit-call svg { color: var(--accent); }
.fit-lang { font-family: var(--f-body); font-size: 13.5px; letter-spacing: 0; text-transform: none; color: var(--accent); }
.fit-caret { font-size: 8px; color: var(--accent); }
.fit-link { display: inline-flex; align-items: center; height: 38px; padding: 0 8px; color: var(--ink-2); font: 500 12px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.fit-link:hover { color: var(--accent); }
.fit-menu { position: relative; }
.fit-menu-panel { position: absolute; top: calc(100% + 9px); right: 0; width: 300px; max-height: calc(100vh - 96px); overflow-y: auto; border: 1px solid var(--hair-2); border-radius: 2px; background: rgba(1, 6, 11, 0.98); box-shadow: 0 30px 80px rgba(0, 3, 7, 0.85); padding: 6px 0; display: flex; flex-direction: column; z-index: 70; animation: fitFadeUp 0.28s ease both; }
.fit-menu-item { display: flex; align-items: baseline; gap: 14px; padding: 12px 18px; font-size: 14.5px; color: var(--ink-2); border-bottom: 1px solid var(--hair); transition: background 0.2s ease, color 0.2s ease, padding 0.25s var(--ease); }
.fit-menu-item:last-child { border-bottom: 0; }
.fit-menu-item:hover { background: rgba(32, 216, 255, 0.05); color: var(--accent-2); padding-inline-start: 24px; }
.fit-menu-item .num { width: 22px; flex: none; font: 500 11px/1 var(--f-mono); letter-spacing: 0.06em; color: var(--muted-2); }
.fit-menu-item .label { flex: 1; }
.fit-menu-item .mark { font-size: 10px; color: var(--accent); }

@media (max-width: 760px) {
  .fit-header { padding: 11px 14px; gap: 8px; }
  .fit-logo img { height: 29px; }
  .fit-nav { gap: 6px; }
  .fit-pill { height: 36px; padding: 0 11px; font-size: 11px; }
  .fit-lang { font-size: 13px; }
  .fit-call { width: 36px; padding: 0; }
  .fit-call .txt { display: none; }
  .fit-link.hide-sm { display: none; }
  .fit-menu-panel { position: fixed; top: 60px; left: 10px; right: 10px; width: auto; max-height: calc(100vh - 76px); }
}
@media (max-width: 370px) {
  .fit-header { padding: 11px 10px; }
  .fit-logo img { height: 25px; }
  .fit-nav { gap: 5px; }
  .fit-pill { padding: 0 9px; }
  .fit-call { width: 34px; padding: 0; }
}

/* ---------- type ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow::before { content: ""; width: 7px; height: 7px; flex: none; border: 1px solid var(--accent); box-shadow: 0 0 10px rgba(32, 216, 255, 0.6); }
.h1 { margin: 0 0 22px; font-family: var(--f-display); font-size: var(--fs-h1); line-height: 0.96; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); text-shadow: 0 4px 34px rgba(0, 3, 7, 0.85); text-wrap: balance; }
.h1 .eyebrow { margin-bottom: 22px; text-shadow: none; }
.h1-main { display: block; }
.h3 { margin: 0 0 8px; font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.22; font-weight: 700; letter-spacing: -0.012em; color: var(--ink); }
.lead { margin: 0 0 28px; font-size: var(--fs-lead); line-height: 1.72; color: #b9cbd8; max-width: 480px; text-wrap: pretty; text-shadow: 0 2px 18px rgba(0, 3, 7, 0.85); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; font: 500 11px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs li + li::before { content: "/"; margin-inline-end: 10px; color: rgba(127, 220, 245, 0.35); }

[dir="rtl"] .h1, [dir="rtl"] .h3, [dir="rtl"] .sx-title, [dir="rtl"] .index-name, [dir="rtl"] .spec-name, [dir="rtl"] .cta-title, [dir="rtl"] .pr-title, [dir="rtl"] .qa-q { letter-spacing: 0; line-height: 1.25; }
[dir="rtl"] .eyebrow, [dir="rtl"] .sx-meta, [dir="rtl"] .crumbs, [dir="rtl"] .footer-h, [dir="rtl"] .fit-link, [dir="rtl"] .index-tag, [dir="rtl"] .cta-phone .lbl, [dir="rtl"] .fit-pill, [dir="rtl"] .kicker-sm, [dir="rtl"] .mega-head { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .lead, [dir="rtl"] .sx-intro, [dir="rtl"] .spec-text, [dir="rtl"] .qa-a, [dir="rtl"] .story p { line-height: 1.9; }

/* ---------- buttons: a label + a separated "key" ---------- */
.btn { display: inline-flex; align-items: stretch; min-height: 54px; padding: 0; border-radius: 2px; font: 600 15px/1.2 var(--f-body); white-space: nowrap; overflow: hidden; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.btn-label { display: flex; align-items: center; gap: 10px; padding: 0 22px; }
.btn-go { display: flex; align-items: center; justify-content: center; width: 54px; flex: none; border-inline-start: 1px solid rgba(0, 16, 24, 0.22); font-size: 17px; }
.btn-go .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-go .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .btn-go .arrow { transform: scaleX(-1) translateX(4px); }
.btn-primary { background: var(--accent); color: #001018; }
.btn-primary:hover { background: var(--accent-2); color: #001018; }
.btn-ghost { border: 1px solid var(--hair-2); color: var(--ink); }
.btn-ghost .btn-go { border-inline-start-color: var(--hair-2); color: var(--accent); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); background: rgba(32, 216, 255, 0.05); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.cta-hint { font: 500 11px/1.4 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- service / about hero ---------- */
.fit-root { position: relative; width: 100%; overflow-x: clip; background-color: var(--bg); }
.svc-hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
/* Desktop: the hero's live scene stays fixed behind the whole page and is
   defocused/dimmed by scroll depth (filter set from the page script), so the
   content sections sit over the real scene instead of an invented backdrop. */
.svc-canvas { position: fixed; inset: 0; width: 100%; height: 100vh; display: block; z-index: 0; touch-action: pan-y; }
.svc-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 3, 7, 0.86) 0%, rgba(0, 3, 7, 0.62) 30%, rgba(0, 3, 7, 0) 50%); pointer-events: none; z-index: 1; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
[dir="rtl"] .svc-hero::before { background: linear-gradient(270deg, rgba(0, 3, 7, 0.86) 0%, rgba(0, 3, 7, 0.62) 30%, rgba(0, 3, 7, 0) 50%); }
.svc-hero-inner { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-start; padding: 112px var(--gutter) 64px; pointer-events: none; }
.svc-hero-copy { max-width: 580px; animation: fitFadeUp 0.9s ease both; }
.svc-hero-copy a, .svc-hero-copy button { pointer-events: auto; }
.checks { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--hair); max-width: 460px; }
.checks li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 15px; color: var(--ink-2); text-shadow: 0 2px 14px rgba(0, 3, 7, 0.9); }
.tick { flex: none; width: 14px; height: 1px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tick svg { display: none; }
.svc-side { position: absolute; top: 50%; right: 24px; transform: translateY(-50%); writing-mode: vertical-rl; font: 500 11px/1 var(--f-mono); letter-spacing: 0.4em; text-transform: uppercase; color: rgba(143, 164, 181, 0.4); z-index: 2; pointer-events: none; }

@media (max-width: 899px) {
  .svc-hero { min-height: 0; display: flex; flex-direction: column; }
  .svc-canvas { position: relative; inset: auto; width: 100%; height: clamp(300px, 88vw, 480px); margin-top: 60px; }
  .svc-hero::before { display: none; }
  .svc-hero-inner { min-height: 0; padding: 14px 20px 56px; }
  .svc-hero-copy { max-width: 620px; }
  .svc-side { display: none; }
  .h1, .lead, .checks li { text-shadow: none; }
  .lead, .checks { max-width: none; }
}
@media (max-width: 420px) {
  :root { --fs-h1: 36px; --fs-h2: 31px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: space-between; }
}

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(80px, 11vw, 150px) var(--gutter); isolation: isolate; }
.wrap { max-width: var(--wrap); margin: 0 auto; }

/* datasheet header: "02 / WHAT'S INCLUDED ——————" then an asymmetric title + intro */
.sx-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 22px; margin-bottom: clamp(40px, 5.5vw, 72px); }
.sx-meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin: 0; font: 500 12px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.sx-meta .no { color: var(--accent); }
.sx-meta .no::after { content: " /"; color: var(--muted-2); }
.sx-meta .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--hair-2), rgba(127, 220, 245, 0)); }
[dir="rtl"] .sx-meta .rule { background: linear-gradient(270deg, var(--hair-2), rgba(127, 220, 245, 0)); }
.sx-title { grid-column: 1 / span 8; margin: 0; font-family: var(--f-display); font-size: var(--fs-h2); line-height: 0.98; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); text-wrap: balance; }
.sx-intro { grid-column: 9 / -1; align-self: end; margin: 0; font-size: var(--fs-lead); line-height: 1.7; color: var(--muted); text-wrap: pretty; }
@media (max-width: 960px) { .sx-title, .sx-intro { grid-column: 1 / -1; } }

/* spec sheet rows (what's included) */
.spec { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.spec-row { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 28px; align-items: baseline; padding: 30px 0 32px; border-bottom: 1px solid var(--hair); }
.spec-row::before { content: ""; position: absolute; inset-inline-start: 0; top: -1px; height: 1px; width: 0; background: var(--accent); box-shadow: 0 0 14px var(--accent); transition: width 0.7s var(--ease); }
.spec-row:hover::before { width: 100%; }
.spec-no { font: 500 13px/1 var(--f-mono); letter-spacing: 0.08em; color: var(--accent); }
.spec-no::before { content: "["; color: var(--muted-2); margin-inline-end: 3px; }
.spec-no::after { content: "]"; color: var(--muted-2); margin-inline-start: 3px; }
.spec-name { margin: 0; font-family: var(--f-display); font-size: clamp(20px, 1.8vw, 27px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.spec-text { margin: 0; font-size: 15.5px; line-height: 1.72; color: var(--muted); text-wrap: pretty; }
@media (max-width: 760px) {
  .spec-row { grid-template-columns: 52px minmax(0, 1fr); row-gap: 8px; padding: 24px 0; }
  .spec-text { grid-column: 2; }
}

/* signal path (process) — a line with ports and a travelling pulse */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.path::before {
  content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 7px;
  background-image: repeating-linear-gradient(90deg, var(--hair-2) 0 1px, transparent 1px 24px), linear-gradient(90deg, var(--accent), rgba(32, 216, 255, 0.12));
  background-size: 100% 100%, 100% 1px;
  background-position: 0 0, 0 3px;
  background-repeat: no-repeat;
}
.path::after { content: ""; position: absolute; top: 4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #eaffff; box-shadow: 0 0 10px var(--accent), 0 0 24px var(--accent); animation: pathRun 6s linear infinite; }
@keyframes pathRun { from { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } to { left: 100%; opacity: 0; } }
.path-node { position: relative; padding: 40px 30px 0 0; }
.path-port { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border: 1px solid var(--accent); background: var(--bg); box-shadow: 0 0 0 5px var(--bg), 0 0 16px rgba(32, 216, 255, 0.45); }
.path-port::after { content: ""; position: absolute; inset: 4px; background: var(--accent); }
.path-no { display: block; margin-bottom: 12px; font: 500 12px/1 var(--f-mono); letter-spacing: 0.14em; color: var(--muted-2); }
.path-node p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
[dir="rtl"] .path::before { background: linear-gradient(270deg, var(--accent), rgba(32, 216, 255, 0.12)); }
[dir="rtl"] .path::after { animation-direction: reverse; }
[dir="rtl"] .path-node { padding: 40px 0 0 30px; }
[dir="rtl"] .path-port { left: auto; right: 0; }
@media (max-width: 900px) {
  .path { grid-template-columns: 1fr; padding-inline-start: 34px; }
  .path::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), rgba(32, 216, 255, 0.1)); }
  .path::after { left: 4px; top: 0; animation-name: pathRunV; }
  @keyframes pathRunV { from { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } to { top: 100%; opacity: 0; } }
  .path-node { padding: 0 0 38px; }
  .path-node:last-child { padding-bottom: 0; }
  .path-port { left: -34px; top: 1px; }
  [dir="rtl"] .path::before { left: auto; right: 7px; }
  [dir="rtl"] .path::after { left: auto; right: 4px; animation-direction: normal; }
  [dir="rtl"] .path-node { padding: 0 0 38px; }
  [dir="rtl"] .path-port { right: -34px; left: auto; }
}

/* principles (homepage "why") — a circuit-trace header rule with a connector
   port and custom icon per item, matching the glowing-node language of the 3D scenes
   instead of a generic outlined-number pattern. */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 26px; }
.principles li { position: relative; padding: 26px 0 0; border-top: 1px solid var(--hair-2); }
.pr-port { position: absolute; top: -5px; inset-inline-start: 0; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--accent); box-shadow: 0 0 10px rgba(32, 216, 255, 0.55); }
.pr-port::before { content: ""; position: absolute; top: 9px; left: 3.5px; width: 1px; height: 15px; background: linear-gradient(to bottom, var(--accent), transparent); }
.pr-mark { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.pr-mark .pr-icon { position: relative; display: inline-block; flex: none; width: 42px; height: 42px; box-sizing: border-box; border-radius: 10px; border: 1px solid var(--hair-2); background-color: transparent; background-image: linear-gradient(160deg, rgba(32, 216, 255, 0.14), rgba(32, 216, 255, 0.02)); box-shadow: 0 0 22px rgba(32, 216, 255, 0.12); }
.pr-mark .pr-icon::before { content: ""; position: absolute; inset: 11px; background: var(--accent-2); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.pr-icon.ic-hub::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0 M12 3v3.3 M12 17.7v3.3 M3 12h3.3 M17.7 12H21'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0 M12 3v3.3 M12 17.7v3.3 M3 12h3.3 M17.7 12H21'/%3E%3C/svg%3E"); }
.pr-icon.ic-grid::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h18v18H3z M3 9.5h18 M9.5 3v18'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h18v18H3z M3 9.5h18 M9.5 3v18'/%3E%3C/svg%3E"); }
.pr-icon.ic-check::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2 M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2 M9 14l2 2 4-4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2 M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2 M9 14l2 2 4-4'/%3E%3C/svg%3E"); }
.pr-icon.ic-pulse::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l2-7 4 14 2-7h6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l2-7 4 14 2-7h6'/%3E%3C/svg%3E"); }
.pr-num { font: 500 12px/1 var(--f-mono); letter-spacing: 0.1em; color: var(--muted-2); }
.pr-title { margin: 0 0 10px; font-family: var(--f-display); font-size: clamp(19px, 1.5vw, 22px); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.principles p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 32ch; }
@media (max-width: 960px) {
  .principles { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; row-gap: 30px; }
}

/* editorial Q&A */
.qa { border-top: 1px solid var(--hair); max-width: 1000px; }
.qa-item { position: relative; border-bottom: 1px solid var(--hair); }
.qa-item::before { content: ""; position: absolute; top: 32px; inset-inline-start: 0; width: 7px; height: 7px; transform: rotate(45deg); background: var(--bg); border: 1px solid var(--accent); box-shadow: 0 0 10px rgba(32, 216, 255, 0.5); transition: box-shadow 0.3s ease; }
.qa-item[open]::before, .qa-item:hover::before { box-shadow: 0 0 14px rgba(32, 216, 255, 0.85); }
.qa-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px minmax(0, 1fr) 36px; align-items: baseline; gap: 16px; padding: 26px 0; }
.qa-item summary::-webkit-details-marker { display: none; }
.qa-no { font: 500 12px/1 var(--f-mono); letter-spacing: 0.12em; color: var(--accent); padding-inline-start: 18px; }
.qa-q { font-family: var(--f-display); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.35; font-weight: 600; color: var(--ink); transition: color 0.25s ease; }
.qa-item summary:hover .qa-q, .qa-item[open] .qa-q { color: var(--accent-2); }
.qa-toggle { justify-self: end; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hair-2); font: 300 18px/1 var(--f-mono); color: var(--accent); transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.qa-item summary:hover .qa-toggle { border-color: var(--accent); }
.qa-item[open] .qa-toggle { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #001018; }
.qa-a { margin: 0; padding: 0 52px 28px 80px; font-size: 16px; line-height: 1.78; color: var(--muted); max-width: 860px; }
[dir="rtl"] .qa-a { padding: 0 80px 28px 52px; }
@media (max-width: 640px) {
  .qa-item::before { top: 28px; }
  .qa-item summary { grid-template-columns: 34px minmax(0, 1fr) 24px; gap: 10px; padding: 22px 0; }
  .qa-no { padding-inline-start: 14px; }
  .qa-toggle { width: 24px; height: 24px; font-size: 15px; }
  .qa-a, [dir="rtl"] .qa-a { padding: 0 0 24px 44px; }
  [dir="rtl"] .qa-a { padding: 0 44px 24px 0; }
}

/* service index — editorial rows instead of cards */
.index { position: relative; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.index::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 22px; width: 1px; background: linear-gradient(to bottom, transparent, var(--hair-2) 8%, var(--hair-2) 92%, transparent); z-index: 0; }
.index-row { position: relative; z-index: 1; display: grid; grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1fr) 46px; align-items: center; column-gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--hair); color: var(--ink); }
.index-row::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -1px; height: 1px; width: 0; background: var(--accent); box-shadow: 0 0 14px var(--accent); transition: width 0.6s var(--ease); }
.index-row:hover { color: var(--ink); }
.index-row:hover::after { width: 100%; }
.index-mark { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--hair-2); background: linear-gradient(160deg, rgba(32, 216, 255, 0.14), rgba(32, 216, 255, 0.02)); box-shadow: 0 0 22px rgba(32, 216, 255, 0.1); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.index-icon { color: var(--accent-2); }
.index-no { position: absolute; bottom: -7px; inset-inline-end: -8px; font: 600 10px/1 var(--f-mono); letter-spacing: 0.04em; color: #001018; background: var(--accent); padding: 2px 5px; border-radius: 4px; box-shadow: 0 0 10px rgba(32, 216, 255, 0.5); }
.index-name { margin: 0; font-family: var(--f-display); font-size: clamp(24px, 2.7vw, 42px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); transition: transform 0.45s var(--ease), color 0.3s ease; }
.index-tag { font: 500 12px/1.45 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); transition: color 0.3s ease; }
.index-go { justify-self: end; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--hair-2); color: var(--accent); font-size: 17px; transition: background 0.3s ease, color 0.3s ease, transform 0.45s var(--ease), border-color 0.3s ease; }
.index-row:hover .index-mark { border-color: var(--accent); box-shadow: 0 0 28px rgba(32, 216, 255, 0.24); }
.index-row:hover .index-name { transform: translateX(12px); color: var(--accent-2); }
.index-row:hover .index-tag { color: var(--muted); }
.index-row:hover .index-go { background: var(--accent); border-color: var(--accent); color: #001018; transform: rotate(-45deg); }
[dir="rtl"] .index-row:hover .index-name { transform: translateX(-12px); }
[dir="rtl"] .index-row:hover .index-go { transform: rotate(45deg); }
@media (max-width: 760px) {
  .index::before { inset-inline-start: 18px; }
  .index-row { grid-template-columns: 40px minmax(0, 1fr) 38px; row-gap: 6px; padding: 20px 0; }
  .index-mark { grid-column: 1; grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 9px; }
  .index-icon { width: 15px; height: 15px; }
  .index-no { font-size: 9px; padding: 1px 4px; bottom: -6px; inset-inline-end: -6px; }
  .index-name { grid-column: 2; grid-row: 1; }
  .index-tag { grid-column: 2; grid-row: 2; font-size: 11px; }
  .index-go { grid-column: 3; grid-row: 1 / span 2; width: 38px; height: 38px; }
}

/* about story — editorial columns with a drop number */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.story p { margin: 0; font-size: 17px; line-height: 1.85; color: var(--muted); text-wrap: pretty; }
.story p:first-child { color: var(--ink-2); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.7; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* ---------- contact: the phone number is the call to action ---------- */
.cta-x { position: relative; padding: clamp(90px, 12vw, 170px) var(--gutter); overflow: hidden; border-top: 1px solid var(--hair); isolation: isolate; }
.cta-x .sx-meta { margin-bottom: clamp(36px, 5vw, 60px); }
.cta-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 18px; align-items: end; }
.cta-head .cta-title { grid-column: 1 / span 7; margin: 0; }
.cta-head .cta-text { grid-column: 9 / -1; }
@media (max-width: 960px) { .cta-head .cta-title, .cta-head .cta-text { grid-column: 1 / -1; } }
.cta-title { margin: 0 0 18px; max-width: 22ch; font-family: var(--f-display); font-size: clamp(30px, 3.6vw, 54px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.cta-text { margin: 0; max-width: 540px; font-size: var(--fs-lead); line-height: 1.7; color: var(--muted); }
.cta-phone { position: relative; display: inline-flex; align-items: flex-start; gap: 16px; margin-top: clamp(40px, 6vw, 72px); color: var(--ink); }
.cta-phone .lbl { margin-top: 0.9em; font: 500 12px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.cta-phone .num { font-family: var(--f-display); font-size: clamp(40px, 10vw, 136px); line-height: 0.92; font-weight: 800; letter-spacing: -0.05em; white-space: nowrap; transition: color 0.3s ease; }
.cta-phone::after { content: ""; position: absolute; inset-inline-start: 0; right: 0; bottom: -10px; height: 2px; background: var(--accent); box-shadow: 0 0 18px var(--accent); transform: scaleX(0.12); transform-origin: left; transition: transform 0.7s var(--ease); }
[dir="rtl"] .cta-phone::after { transform-origin: right; left: 0; }
.cta-phone:hover { color: var(--ink); }
.cta-phone:hover .num { color: var(--accent-2); }
.cta-phone:hover::after { transform: scaleX(1); }
.cta-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hair); font: 500 12.5px/1.5 var(--f-mono); letter-spacing: 0.06em; color: var(--muted-2); }
.cta-meta a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.cta-meta a:hover { color: var(--accent); }
.cta-meta svg { color: var(--accent); }
@media (max-width: 560px) { .cta-phone { flex-direction: column; gap: 10px; } .cta-phone .lbl { margin-top: 0; } }

/* ---------- footer ---------- */
.fit-footer { position: relative; z-index: 21; padding: 72px var(--gutter) 0; border-top: 1px solid var(--hair); overflow: hidden; background-color: rgba(0, 6, 11, 0.62); }
.footer-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer-grid > * { padding: 0 28px; border-inline-start: 1px solid var(--hair); }
.footer-grid > :first-child { padding-inline-start: 0; border-inline-start: 0; }
.footer-brand img { height: 32px; width: auto; display: block; margin-bottom: 18px; }
.footer-brand p { margin: 0 0 12px; max-width: 360px; font-size: 14.5px; line-height: 1.7; color: var(--muted-2); }
.footer-area { display: flex; align-items: center; gap: 10px; font: 500 11.5px/1.5 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted) !important; }
.footer-area::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #39f28a; box-shadow: 0 0 10px #39f28a; }
.footer-h { margin: 0 0 16px; font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-list a { font-size: 14.5px; color: var(--ink-2); transition: color 0.2s ease, padding 0.25s var(--ease); }
.footer-list a:hover { color: var(--accent); padding-inline-start: 6px; }
.footer-bottom { max-width: var(--wrap); margin: 56px auto 0; padding: 18px 0; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; font: 500 11.5px/1.5 var(--f-mono); letter-spacing: 0.06em; color: var(--muted-2); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--accent); }

/* legal pages (privacy, terms, accessibility) — plain reading layout */
.legal { padding-top: 150px; }
.legal-wrap { max-width: 780px; }
.legal .lead { max-width: 640px; text-shadow: none; }
.legal-updated { margin: 0 0 48px; font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.08em; color: var(--muted-2); }
.legal-sec { padding: 28px 0; border-top: 1px solid var(--hair); }
.legal-h { margin: 0 0 12px; font-family: var(--f-display); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.legal-sec p { margin: 0 0 12px; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.legal-sec p:last-child { margin-bottom: 0; }
.legal-list { margin: 12px 0 0; padding-inline-start: 20px; display: grid; gap: 10px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal-list li::marker { color: var(--accent); }
[dir="rtl"] .legal-h, [dir="rtl"] .legal-sec p, [dir="rtl"] .legal-list { letter-spacing: 0; line-height: 1.9; }
.footer-mark { display: block; margin: 8px 0 0; font-family: var(--f-display); font-size: clamp(64px, 15.5vw, 250px); font-weight: 800; line-height: 0.74; letter-spacing: -0.06em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(127, 220, 245, 0.22); user-select: none; pointer-events: none; transform: translateY(16%); text-align: center; }
.dwg-stamp { position: absolute; inset-inline-end: var(--gutter); bottom: 26px; z-index: 2; border: 1px solid var(--hair-2); font: 500 9.5px/1 var(--f-mono); letter-spacing: 0.06em; color: var(--accent-2); width: 164px; pointer-events: none; }
.dwg-stamp .row { display: flex; justify-content: space-between; padding: 5px 9px; border-top: 1px solid var(--hair); }
.dwg-stamp .row:first-child { border-top: none; background: rgba(32, 216, 255, 0.07); }
.dwg-stamp .row span:last-child { color: var(--muted-2); }
@media (max-width: 760px) { .dwg-stamp { position: static; margin: 20px auto 0; } }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > * { padding: 26px 0 0; border-inline-start: 0; }
  .footer-brand { grid-column: 1 / -1; padding-top: 0 !important; padding-bottom: 8px !important; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .footer-grid > * + * { border-top: 1px solid var(--hair); margin-top: 22px; } }

/* ---------- access-control easter egg ---------- */
.egg { position: absolute; bottom: 30px; right: 30px; z-index: 5; width: 280px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: auto; }
[dir="rtl"] .egg { right: auto; left: 30px; align-items: flex-start; }
.egg-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 9px; background: rgba(1, 6, 11, 0.85); backdrop-filter: blur(12px); font: 500 11px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; padding: 10px 14px; border-radius: 2px; }
.egg-dot { width: 6px; height: 6px; border-radius: 50%; animation: fitPulse 1.6s ease-in-out infinite; }
.egg-card { width: 100%; border-radius: 2px; background: rgba(1, 6, 11, 0.94); backdrop-filter: blur(14px); box-shadow: 0 22px 60px rgba(0, 3, 7, 0.7); padding: 15px 17px; animation: fitFadeUp 0.4s ease both; }
.egg-label { font: 600 10.5px/1.4 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.egg-body { font-size: 12.5px; line-height: 1.8; color: #cfe3ee; margin-bottom: 10px; }
.egg-foot { font: 400 11px/1.7 var(--f-mono); color: rgba(143, 164, 181, 0.85); border-top: 1px solid var(--hair); padding-top: 9px; }
@media (max-width: 899px) {
  .egg { position: relative; bottom: auto; right: auto; left: auto; width: auto; margin: -34px 20px 40px; align-items: flex-start; }
  [dir="rtl"] .egg { left: auto; }
}

/* ---------- scroll-driven reveal (progressive; content is never hidden without support) ---------- */
@supports (animation-timeline: view()) {
  .spec-row, .index li, .path-node, .qa-item, .principles li, .story p {
    animation: fitRise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 38%;
  }
  @keyframes fitRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- homepage ---------- */
.home-hero-copy { max-width: 940px; }
.home-lead { margin: 0 0 30px; max-width: 440px; font-size: var(--fs-lead); line-height: 1.7; color: #c3d3de; text-shadow: 0 2px 18px rgba(0, 3, 7, 0.95); text-wrap: pretty; }
/* Desktop: transparent, so the fixed live scene continues behind the content
   (defocused by scroll depth in the page script). Phones keep a solid ground. */
.home-solid { position: relative; z-index: 20; }
@media (max-width: 919px) {
  .home-solid { background: linear-gradient(180deg, rgba(0, 3, 7, 0) 0px, rgba(0, 3, 7, 0.96) 110px, var(--bg) 180px); }
}
.home-solid > .sec:first-child { padding-top: clamp(150px, 22vh, 230px); }

/* homepage services mega-menu: typographic index, no icon boxes */
.mega { width: 640px; max-width: 86vw; margin-top: 10px; border: 1px solid var(--hair-2); border-radius: 2px; background: rgba(1, 6, 11, 0.98); box-shadow: 0 30px 80px rgba(0, 3, 7, 0.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.mega-head { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--hair); font: 500 11px/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.mega-head span:last-child { color: var(--muted-2); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; }
.mega-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--hair); color: var(--ink); transition: background 0.2s ease; }
.mega-grid > .mega-item:nth-child(odd) { border-inline-end: 1px solid var(--hair); }
.mega-item:hover { background: rgba(32, 216, 255, 0.05); color: var(--ink); }
.mega-no { grid-row: 1 / span 2; font: 500 11px/1.6 var(--f-mono); color: var(--accent); }
.mega-name { font-family: var(--f-display); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.mega-tag { font: 400 11px/1.5 var(--f-mono); letter-spacing: 0.04em; color: var(--muted-2); }
.mega-item:hover .mega-name { color: var(--accent-2); }
.home-menu-extra { display: none; }

@media (max-width: 919px) {
  .home-hero-num, .home-side { display: none !important; }
  .home-hero-inner { padding: 96px 22px 32px !important; }
  .home-hero-scrim { background: linear-gradient(180deg, rgba(0, 3, 7, 0.96) 0%, rgba(0, 3, 7, 0.86) 30%, rgba(0, 3, 7, 0.2) 52%, rgba(0, 3, 7, 0) 62%, rgba(0, 3, 7, 0.55) 84%, rgba(0, 3, 7, 0.95) 100%) !important; }
  .home-h1 { font-size: 38px !important; max-width: 13ch !important; }
  .home-panel { padding: 0 22px !important; }
  .home-panel > div { position: relative; z-index: 0; max-width: 100% !important; padding: 20px 0 20px 18px; border-inline-start: 1px solid var(--accent); }
  [dir="rtl"] .home-panel > div { padding: 20px 18px 20px 0; }
  .home-panel > div::before { content: ""; position: absolute; inset: -54px -70px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 68% 78% at 50% 50%, rgba(0, 3, 7, 0.82) 0%, rgba(0, 3, 7, 0.42) 52%, transparent 78%); }
  .home-panel-wide > div { text-align: start !important; }
  .home-panel-wide { align-items: flex-end !important; padding-bottom: 10vh !important; }
  .home-hud { right: 14px !important; bottom: 14px !important; padding: 8px 12px !important; font-size: 11px !important; }
  /* the wrapper carries a transform, so it (not the panel) becomes the fixed box */
  .home-dropdown { position: fixed !important; top: 60px !important; left: 10px !important; right: 10px !important; transform: none !important; }
  .mega { width: auto; max-width: none; margin-top: 0; max-height: calc(100vh - 76px); overflow-y: auto; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-grid > .mega-item:nth-child(odd) { border-inline-end: 0; }
  .home-menu-extra { display: grid !important; }
}
@media (max-width: 420px) { .home-h1 { font-size: 35px !important; } }
