/* =================================================================
   LINKORA — Managed IT Operations
   Design system: dark navy, amber accent, Sora + JetBrains Mono.
   No ghost-cards, no gradient text, no identical card grids, no
   sketchy illustrations. Every animation has a reduced-motion path.
   ================================================================= */

/* ─── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; }

/* ─── TOKENS (OKLCH) ──────────────────────────────── */
:root {
  /* Surfaces */
  --bg:           oklch(0.14 0.025 255);   /* page bg, deep navy */
  --bg-1:         oklch(0.17 0.028 255);   /* section alt */
  --bg-2:         oklch(0.20 0.030 255);   /* card surface */
  --bg-3:         oklch(0.24 0.030 255);   /* raised */
  --line:         oklch(0.32 0.020 255 / .55);
  --line-soft:    oklch(0.32 0.020 255 / .25);
  --nav-bg:       oklch(0.14 0.025 255 / .85);

  /* Ink */
  --ink:          oklch(0.97 0.005 90);    /* primary text */
  --ink-2:        oklch(0.84 0.012 80);    /* body */
  --ink-3:        oklch(0.66 0.015 80);    /* muted */
  --ink-4:        oklch(0.50 0.012 80);    /* meta */

  /* Brand */
  --accent:       oklch(0.70 0.18 47);     /* amber */
  --accent-2:     oklch(0.78 0.16 60);     /* warmer */
  --accent-soft:  oklch(0.70 0.18 47 / .14);
  --accent-line:  oklch(0.70 0.18 47 / .38);
  --accent-deep:  oklch(0.55 0.18 38);     /* pressed */

  /* Status */
  --ok:           oklch(0.78 0.16 155);
  --warn:         oklch(0.82 0.15 80);
  --err:          oklch(0.66 0.22 25);

  /* Type */
  --font-display: 'Sora', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:    'Sora', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Geometry */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;     /* card ceiling */
  --radius-pill: 999px;

  /* Spacing scale (fluid) */
  --s-1: clamp(0.5rem, 0.4rem + 0.4vw, 0.625rem);
  --s-2: clamp(0.75rem, 0.65rem + 0.4vw, 0.875rem);
  --s-3: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --s-4: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --s-5: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  --s-6: clamp(2.5rem, 1.8rem + 3vw, 3.75rem);
  --s-7: clamp(3.5rem, 2.4rem + 4.5vw, 5.5rem);

  /* Container */
  --container: 1240px;
  --gutter: clamp(1.25rem, 1rem + 1.2vw, 2rem);

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 620ms;
}

/* ─── LIGHT THEME OVERRIDES ───────────────────────── */
html[data-theme="light"] {
  --bg:           oklch(0.98 0.005 255);   /* page bg, off-white */
  --bg-1:         oklch(0.95 0.008 255);   /* section alt, light gray-blue */
  --bg-2:         oklch(1.0 0.0 255);      /* card surface, white */
  --bg-3:         oklch(0.92 0.010 255);   /* raised */
  --line:         oklch(0.20 0.020 255 / .08);
  --line-soft:    oklch(0.20 0.020 255 / .04);

  --ink:          oklch(0.12 0.020 255);   /* primary text, deep navy */
  --ink-2:        oklch(0.24 0.025 255);   /* body text */
  --ink-3:        oklch(0.45 0.020 255);   /* muted */
  --ink-4:        oklch(0.60 0.015 255);   /* meta */

  --accent-soft:  oklch(0.70 0.18 47 / .08);
  --accent-line:  oklch(0.70 0.18 47 / .20);
  --nav-bg:       oklch(0.98 0.005 255 / .85);
}

/* Force dark theme on terminal console card for visual consistency */
.hero__console {
  background: oklch(0.16 0.025 255 / .85) !important;
  border-color: oklch(0.32 0.020 255 / .55) !important;
}
.hero__console .console__title {
  color: oklch(0.66 0.015 80) !important;
}
.hero__console .console__body {
  color: oklch(0.84 0.012 80) !important;
}
.hero__console .console__foot {
  border-top-color: oklch(0.32 0.020 255 / .25) !important;
}
.hero__console .console__legend {
  color: oklch(0.66 0.015 80) !important;
}
.hero__console .console__legend span:last-child {
  color: oklch(0.97 0.005 90) !important;
}

/* Language Visibility */
html[lang="ar"] [lang="en"] { display: none !important; }
html[lang="en"] [lang="ar"] { display: none !important; }

/* ─── BASE ────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
}

::selection { background: var(--accent-soft); color: var(--ink); }

.mono { font-family: var(--font-mono); }
.dim  { color: var(--ink-3); }

.accent { color: var(--accent); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--accent); color: var(--bg);
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-weight: 600; z-index: 9999; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ─── SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

/* ─── NAV ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 8px 0;
  transition: padding var(--t-med) var(--ease), background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 4px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav__logo { height: 110px; width: auto; }
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .14em;
  color: var(--ink);
}
.nav__links {
  display: flex; align-items: center; gap: 4px;
}
.nav__link {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--ink); background: oklch(1 0 0 / .05); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 1px; background: var(--accent);
}
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 8px;
  padding: 9px 16px;
  background: var(--accent);
  color: oklch(0.16 0.03 255);
  font-weight: 600;
}
.nav__cta:hover { background: var(--accent-2); color: oklch(0.14 0.03 255); }
.nav__cta svg { transition: transform var(--t-fast) var(--ease); }
html[dir="ltr"] .nav__cta svg { transition: transform var(--t-fast) var(--ease); }
.nav__cta:hover svg { transform: translateX(2px); }

.nav__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: oklch(1 0 0 / .03);
  color: var(--ink-2);
  transition: all var(--t-fast) var(--ease);
}
.btn-toggle:hover {
  color: var(--ink);
  border-color: var(--ink-3);
  background: oklch(1 0 0 / .06);
}
.btn-toggle--lang {
  width: auto;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

html[data-theme="dark"] .sun-icon { display: block; }
html[data-theme="dark"] .moon-icon { display: none; }
html[data-theme="dark"] .nav__logo { filter: invert(0.9) hue-rotate(180deg) brightness(1.2); }
html[data-theme="light"] .sun-icon { display: none; }
html[data-theme="light"] .moon-icon { display: block; }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: oklch(1 0 0 / .03);
}
.nav__burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ─── HERO ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(7rem, 12vh, 9rem) 0 clamp(3rem, 6vh, 5rem);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__backdrop {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / .035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 70% 50%, #000 30%, transparent 80%);
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(80px);
  will-change: transform;
}
.hero__glow--a {
  width: 540px; height: 540px;
  background: oklch(0.70 0.18 47 / .18);
  top: -160px; right: -120px;
  animation: drift 18s var(--ease) infinite;
}
.hero__glow--b {
  width: 420px; height: 420px;
  background: oklch(0.45 0.10 250 / .28);
  bottom: -120px; left: -80px;
  animation: drift 22s var(--ease) infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(20px, -28px, 0); }
}

.hero__topology {
  position: absolute; right: -4%; top: 6%;
  width: 62%; max-width: 820px; height: auto;
  opacity: .9;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.hero__copy { max-width: 640px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: .76rem; font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-2);
  background: oklch(1 0 0 / .03);
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}
.hero__pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 oklch(0.78 0.16 155 / .55);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   oklch(0.78 0.16 155 / .55); }
  70%  { box-shadow: 0 0 0 10px oklch(0.78 0.16 155 / 0); }
  100% { box-shadow: 0 0 0 0   oklch(0.78 0.16 155 / 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw + 1rem, 4.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.hero__title .accent { color: var(--accent); }

.hero__lede {
  font-size: clamp(1rem, .25vw + .95rem, 1.125rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(2.5rem, 4vw, 3.25rem); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
}
.btn--primary {
  background: var(--accent);
  color: oklch(0.16 0.03 255);
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.btn--primary:active { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--primary svg { transition: transform var(--t-fast) var(--ease); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink-3); background: oklch(1 0 0 / .04); }

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  padding-top: clamp(1.25rem, 2vw, 1.75rem);
  border-top: 1px solid var(--line-soft);
}
.hero__metrics > div { display: flex; flex-direction: column; gap: 4px; }
.hero__metrics dt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.hero__metrics dd {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.5vw + .8rem, 2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1;
}
.hero__metrics-sub { font-size: .55em; color: var(--ink-3); font-weight: 500; }

/* Hero console (live ops) */
.hero__console {
  position: relative;
  background: oklch(0.16 0.025 255 / .85);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 oklch(1 0 0 / .04) inset,
    0 30px 60px -20px oklch(0 0 0 / .55);
}
.console__head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: oklch(0.18 0.03 255 / .9);
  border-bottom: 1px solid var(--line);
}
.console__dots { display: inline-flex; gap: 5px; }
.console__dots span { width: 9px; height: 9px; border-radius: 50%; background: oklch(0.4 0.02 255); }
.console__dots span:nth-child(1) { background: oklch(0.66 0.22 25 / .9); }
.console__dots span:nth-child(2) { background: oklch(0.82 0.15 80 / .9); }
.console__dots span:nth-child(3) { background: oklch(0.78 0.16 155 / .9); }
.console__title {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-3);
  flex: 1;
}
.console__pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--ok);
  padding: 4px 10px;
  border: 1px solid oklch(0.78 0.16 155 / .3);
  border-radius: var(--radius-pill);
  background: oklch(0.78 0.16 155 / .06);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dot--ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.console__body {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.55;
}
.console__row { display: flex; gap: 8px; align-items: baseline; }
.console__row .mono { color: var(--ink-4); }
.console__row--ok { color: var(--ink-2); }
.console__row--warn { color: var(--warn); }
.console__row .dim { color: var(--ink-4); }
.caret { color: var(--accent); animation: blink 1.05s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.console__foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono);
  font-size: .72rem;
}
.console__bar {
  height: 4px;
  background: oklch(1 0 0 / .06);
  border-radius: 2px;
  overflow: hidden;
}
.console__bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--ok));
  border-radius: 2px;
}
.console__legend { display: flex; justify-content: space-between; color: var(--ink-3); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-3);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
}
.hero__scroll:hover { color: var(--ink); }

/* ─── TRUST STRIP ─────────────────────────────────── */
.trust {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: oklch(0.15 0.025 255 / .5);
  padding: 22px 0;
}
.trust__inner {
  display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
  flex-wrap: wrap;
}
.trust__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
}
.trust__list {
  display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--ink-3);
  flex: 1;
}
.trust__list li { transition: color var(--t-fast) var(--ease); }
.trust__list li:hover { color: var(--ink); }

/* ─── SECTION BASE ────────────────────────────────── */
.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  position: relative;
}
.section__head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__chapter {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 4px 0;
  border-top: 1px solid var(--accent);
  padding-top: 10px;
  width: max-content;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 1rem;
}
.section__title .accent { color: var(--accent); }
.section__lede {
  font-size: clamp(1rem, .15vw + .95rem, 1.125rem);
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.65;
}

/* ─── SERVICES ────────────────────────────────────── */
.services { background: var(--bg-1); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
}
.svc {
  position: relative;
  padding: clamp(1.75rem, 2.5vw, 2.5rem);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t-med) var(--ease);
  min-height: 380px;
}
@media (min-width: 900px) {
  .svc { grid-column: span 2; border-bottom: 0; border-right: 1px solid var(--line); min-height: 440px; }
  .svc:nth-child(3) { border-right: 0; }
}
@media (max-width: 899px) {
  .svc { grid-column: span 3; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .svc:nth-child(even) { border-right: 0; }
  .svc:last-child { grid-column: span 6; border-right: 0; border-bottom: 0; min-height: auto; }
}
@media (max-width: 600px) {
  .svc, .svc:last-child { grid-column: span 6; border-right: 0; border-bottom: 1px solid var(--line); }
  .svc:last-child { border-bottom: 0; }
}

.svc:hover { background: oklch(0.21 0.03 255); }

.svc__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.svc__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}
.svc__icon svg { width: 60%; height: 60%; }
.svc__index {
  font-size: .76rem; color: var(--ink-4);
}
.svc__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: .5rem;
}
.svc__lede {
  color: var(--ink-2);
  font-size: .98rem;
  line-height: 1.55;
  max-width: 36ch;
  margin-bottom: 1.5rem;
}
.svc__list {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 1.5rem;
}
.svc__list li {
  position: relative;
  padding-left: 18px;
  font-size: .9rem;
  color: var(--ink-2);
}
.svc__list li::before {
  content: ''; position: absolute; left: 0; top: .65em;
  width: 8px; height: 1px; background: var(--accent);
}
.svc__link {
  margin-top: auto;
  font-size: .9rem; font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex; gap: 6px; align-items: center;
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--t-fast) var(--ease), gap var(--t-fast) var(--ease);
}
.svc__link:hover { border-color: var(--accent); gap: 10px; }

/* ─── OPERATIONS (Why) ────────────────────────────── */
.ops { background: var(--bg); }
.ops__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.ops__intro .section__title { font-size: clamp(1.9rem, 2.4vw + 1rem, 3rem); }
.ops__list {
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.ops__list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(1.25rem, 2vw, 1.75rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.ops__num {
  font-size: 1.1rem; color: var(--accent);
  letter-spacing: .04em;
  align-self: start;
  padding-top: 4px;
}
.ops__list h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, .5vw + 1rem, 1.4rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.ops__list p { color: var(--ink-2); max-width: 52ch; }

/* ─── APPROACH ────────────────────────────────────── */
.approach { background: var(--bg-1); }
.approach__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.step {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  transition: background-color var(--t-med) var(--ease);
}
.step:hover { background: oklch(0.19 0.03 255); }
.step h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}
.step p { color: var(--ink-2); font-size: .95rem; }
.step::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t-slow) var(--ease);
}
.step:hover::before { transform: scaleY(1); }
@media (max-width: 900px) {
  .approach__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .approach__steps { grid-template-columns: 1fr; }
}

/* ─── INDUSTRIES ──────────────────────────────────── */
.industries { background: var(--bg); }
.ind__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
}
.ind {
  grid-column: span 2;
  padding: clamp(1.5rem, 2.2vw, 2.25rem);
  display: flex; flex-direction: column; gap: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t-med) var(--ease);
}
.ind:hover { background: oklch(0.21 0.03 255); }
.ind--lg { grid-column: span 3; }
.ind__icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.ind__icon svg { width: 100%; height: 100%; }
.ind h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}
.ind--lg h3 { font-size: 1.4rem; }
.ind p { color: var(--ink-3); font-size: .92rem; max-width: 36ch; }

/* Desktop-specific grid borders */
@media (min-width: 901px) {
  .ind:nth-child(2),
  .ind:nth-child(5),
  .ind:nth-child(7) {
    border-right: 0;
  }
  .ind:nth-child(6),
  .ind:nth-child(7) {
    border-bottom: 0;
  }
}

@media (max-width: 900px) {
  .ind, .ind--lg { grid-column: span 3; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .ind:nth-child(even) { border-right: 0; }
  .ind:last-child { grid-column: span 6; border-right: 0; border-bottom: 0; }
}
@media (max-width: 600px) {
  .ind, .ind--lg, .ind:last-child { grid-column: span 6; border-right: 0; border-bottom: 1px solid var(--line); }
  .ind:last-child { border-bottom: 0; }
}

/* ─── ABOUT ───────────────────────────────────────── */
.about { background: var(--bg-1); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.about__lead .section__title { font-size: clamp(1.9rem, 2.4vw + 1rem, 3rem); }
.about__panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.panel {
  padding: clamp(1.5rem, 2.5vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
  padding-right: clamp(1.5rem, 3vw, 3rem);
}
.panel:nth-child(odd) { border-right: 1px solid var(--line); padding-right: clamp(1.5rem, 3vw, 3rem); }
.panel:nth-child(even) { padding-left: clamp(1.5rem, 3vw, 3rem); }
.panel h3 {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.panel p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -.01em;
  max-width: 36ch;
}
.about__values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about__values li {
  padding: 18px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-left: 22px;
}
.about__values li::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 10px; height: 1.5px; background: var(--accent);
}
/* Desktop rules */
@media (min-width: 701px) {
  .about__values li:nth-child(3n) { border-right: 0; }
  .about__values li:nth-last-child(-n+3) { border-bottom: 0; }
}
@media (max-width: 700px) {
  .about__panels { grid-template-columns: 1fr; }
  .panel:nth-child(odd) { border-right: 0; padding-right: 0; }
  .panel:nth-child(even) { padding-left: 0; border-top: 1px solid var(--line); }
  .about__values { grid-template-columns: repeat(2, 1fr); }
  .about__values li { border-right: 1px solid var(--line); }
  .about__values li:nth-child(2n) { border-right: 0; }
  .about__values li:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ─── CONTACT ─────────────────────────────────────── */
.contact { background: var(--bg); }
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact__copy .section__title { font-size: clamp(1.9rem, 2.4vw + 1rem, 3rem); }
.contact__lines {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line);
}
.contact__lines li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink);
}
.contact__lines li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.contact__lines a { color: var(--ink); text-decoration: none; transition: color var(--t-fast) var(--ease); }
.contact__lines a:hover { color: var(--accent); }

/* Form */
.form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex; flex-direction: column; gap: 16px;
}
.form__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.field input,
.field select,
.field textarea {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .95rem;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
  outline: 0;
  width: 100%;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--bg-1);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg); color: var(--ink); }
.form__submit {
  margin-top: 6px;
  align-self: flex-start;
}
.form__note {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--ink-4);
  letter-spacing: .04em;
}
.form__submit.is-success { background: var(--ok); border-color: var(--ok); color: oklch(0.16 0.03 255); }
.form__submit.is-error { background: var(--err); border-color: var(--err); color: oklch(0.97 0.005 90); }

@media (max-width: 800px) {
  .contact__inner { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* ─── FOOTER ──────────────────────────────────────── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 5vw, 4.5rem);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.footer__mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .14em;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer__mark-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.footer__brand p { color: var(--ink-3); max-width: 36ch; font-size: .95rem; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .95rem;
  transition: color var(--t-fast) var(--ease);
}
.footer__col a:hover { color: var(--accent); }
.footer__copy {
  direction: ltr;
}
.footer__base-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  flex-wrap: wrap; gap: 8px;
  font-size: .85rem;
  color: var(--ink-4);
}
@media (max-width: 800px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__base-row {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 12px;
  }
  .footer__copy {
    text-align: center !important;
  }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ─── MOTION: ENTRY REVEALS ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* Hero load choreography */
.hero .hero__eyebrow,
.hero .hero__title,
.hero .hero__lede,
.hero .hero__ctas,
.hero .hero__metrics,
.hero .hero__console {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in .9s var(--ease-out) forwards;
}
.hero .hero__eyebrow   { animation-delay: 60ms; }
.hero .hero__title     { animation-delay: 160ms; }
.hero .hero__lede      { animation-delay: 320ms; }
.hero .hero__ctas      { animation-delay: 440ms; }
.hero .hero__metrics   { animation-delay: 560ms; }
.hero .hero__console   { animation-delay: 260ms; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__topology { display: none; }
  .hero__metrics { grid-template-columns: repeat(3, 1fr); }
  .ops__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__logo { height: 76px; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    padding: 16px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav__cta { margin-left: 0; }
  .nav__burger { display: inline-flex; }
}
@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero__metrics { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .console__body { font-size: 0.72rem; padding: 10px 12px; }
  .console__head { padding: 8px 12px; }
  .console__title { font-size: 0.72rem; }
  .console__pill { font-size: 0.65rem; padding: 2px 8px; }
}

/* ─── RTL OVERRIDES ────────────────────────────────── */
html[dir="rtl"] {
  --font-display: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-body:    'Cairo', system-ui, -apple-system, sans-serif;
}

html[dir="rtl"] .nav__cta svg,
html[dir="rtl"] #cta-quote svg,
html[dir="rtl"] .form__submit svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .svc__list li {
  padding-left: 0;
  padding-right: 18px;
}
html[dir="rtl"] .svc__list li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .about__values li {
  padding-left: 0;
  padding-right: 22px;
}
html[dir="rtl"] .about__values li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .form__submit {
  align-self: flex-start;
}

html[dir="rtl"] .form__submit-icon {
  margin-left: 0;
  margin-right: 8px;
}

html[dir="rtl"] .skip-link {
  left: auto;
  right: 16px;
}

html[dir="rtl"] .hero__pulse {
  margin-left: 8px;
  margin-right: 0;
}

html[dir="rtl"] .hero__eyebrow {
  padding: 6px 12px 6px 14px;
}

html[dir="rtl"] .nav__link.is-active::after {
  left: 14px;
  right: 14px;
}

html[dir="rtl"] .footer__copy {
  direction: ltr;
  text-align: right;
}
@media (max-width: 800px) {
  html[dir="rtl"] .footer__copy {
    text-align: center !important;
  }
}



/* ─── REDUCED MOTION ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .hero .hero__eyebrow, .hero .hero__title, .hero .hero__lede, .hero .hero__ctas, .hero .hero__metrics, .hero .hero__console { opacity: 1; transform: none; }
  .hero__glow, .hero__pulse, .caret, .dot--ok, .console__dots span { animation: none !important; }
}
