/* ==========================================================================
   Nexlavision Design System
   Palette derived from the Nexlavision logo:
     navy  #01112F  (wordmark)
     blue  #008CFE  (X mark, top)
     teal  #00DBB2  (X mark, foot)
   ========================================================================== */

/* ---------- Tokens ---------- */
/* ---------- Metric-matched font fallbacks ---------- */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 105.92%;            /* measured: Inter 5174.9px vs Arial 4885.7px */
  ascent-override: 91.58%;         /* 97.00% / 1.0592 */
  descent-override: 22.66%;        /* 24.00% / 1.0592 */
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Tight Fallback';
  src: local('Arial Bold'), local('Arial');
  font-weight: 600 700;
  size-adjust: 94.91%;             /* measured: Inter Tight 5025.9px vs Arial Bold 5295.2px */
  ascent-override: 102.20%;        /* 97.00% / 0.9491 */
  descent-override: 25.29%;        /* 24.00% / 0.9491 */
  line-gap-override: 0%;
}
/* JetBrains Mono advances 0.600em per glyph. The fallbacks are monospace faces that are
   already close to that, so they need little or no scaling: Consolas is 0.550em (x1.0909),
   Menlo and Courier New are 0.600em (x1). The previous single value, 135.09%, was the
   ratio against Arial; applied to these faces it drew every mono label a third too large
   until the web font arrived, then shrank it. Two families because one size-adjust cannot
   be right for both widths; a family whose local() face is missing is skipped. */
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Consolas');
  size-adjust: 109.09%;            /* 0.600 / 0.550 */
  ascent-override: 93.50%;         /* 102.00% / 1.0909 */
  descent-override: 27.50%;        /* 30.00% / 1.0909 */
  line-gap-override: 0%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback Alt';
  src: local('Menlo'), local('Courier New');
  size-adjust: 100%;
  ascent-override: 102%;
  descent-override: 30%;
  line-gap-override: 0%;
}

:root {
  /* brand */
  --nx-navy:        #01112F;
  --nx-navy-deep:   #000A1E;
  --nx-navy-800:    #0A1D45;
  --nx-navy-700:    #14294F;
  --nx-navy-600:    #23386A;
  --nx-blue:        #008CFE;
  --nx-blue-600:    #006BC9;   /* 4.5:1+ on every light surface, incl. --nx-bg-tint */
  --nx-teal:        #00DBB2;
  --nx-teal-600:    #00B694;

  /* surfaces — a ladder from card to deep brand, never plain white full-bleed.
     Sections use the tinted rungs; cards stay white so they lift off them. */
  --nx-surface:     #FFFFFF;   /* cards, inputs, panels */
  --nx-bg:          #F5F8FC;   /* default section + page background */
  --nx-bg-soft:     #EDF3FA;   /* alternating section */
  --nx-bg-tint:     #E4EDF8;   /* strip / emphasis surface */
  --nx-dark:        var(--nx-navy);
  --nx-dark-soft:   #061A3E;

  /* text */
  --nx-text:        #0B1631;
  --nx-body:        #4A5875;
  --nx-muted:       #5E6B88;   /* was #7A87A3 (3.1-3.6:1); now 4.5:1+ on every light surface */
  --nx-on-dark:     #EEF3FA;
  --nx-on-dark-mut: #9DAECB;

  /* lines */
  --nx-line:        #E2E9F3;
  --nx-line-strong: #CFDAE9;
  --nx-line-dark:   rgba(255, 255, 255, .12);

  /* gradient */
  --nx-grad:        linear-gradient(135deg, var(--nx-blue) 0%, var(--nx-teal) 100%);
  --nx-grad-soft:   linear-gradient(135deg, rgba(0,140,254,.12) 0%, rgba(0,219,178,.12) 100%);

  /* type */
  --nx-font:        'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --nx-font-display:'Inter Tight', 'Inter Tight Fallback', var(--nx-font);
  --nx-font-mono:   'JetBrains Mono', 'JetBrains Mono Fallback', 'JetBrains Mono Fallback Alt', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* scale — fluid */
  --nx-h1: clamp(2.55rem, 1.35rem + 4.2vw, 5rem);
  --nx-h2: clamp(2rem, 1.3rem + 2.5vw, 3.4rem);
  --nx-h3: clamp(1.4rem, 1.12rem + .95vw, 2rem);
  --nx-h4: clamp(1.15rem, 1.03rem + .42vw, 1.4rem);
  --nx-lead: clamp(1.02rem, .96rem + .3vw, 1.19rem);

  /* rhythm */
  --nx-section:     clamp(3.9rem, 2.7rem + 4.6vw, 7rem);
  --nx-gutter:      clamp(1.15rem, .6rem + 2vw, 2.5rem);
  --nx-max:         1280px;
  --nx-arrow:       url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --nx-radius:      14px;
  --nx-radius-sm:   9px;

  /* motion */
  --nx-ease:        cubic-bezier(.22, 1, .36, 1);
  --nx-ease-in-out: cubic-bezier(.65, .05, .36, 1);
  --nx-dur:         .45s;

  --nx-shadow-sm:   0 1px 2px rgba(1,17,47,.05), 0 4px 14px rgba(1,17,47,.05);
  --nx-shadow:      0 12px 34px -12px rgba(1,17,47,.18), 0 2px 8px rgba(1,17,47,.05);
  --nx-shadow-lg:   0 40px 80px -34px rgba(1,17,47,.42), 0 10px 26px -14px rgba(1,17,47,.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--nx-font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--nx-body);
  background: var(--nx-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'cv11' 1, 'ss01' 1;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 {
  font-family: var(--nx-font-display);
  color: var(--nx-text);
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: var(--nx-h1); letter-spacing: -.038em; }
h2 { font-size: var(--nx-h2); letter-spacing: -.032em; }
h3 { font-size: var(--nx-h3); line-height: 1.2; }
h4 { font-size: var(--nx-h4); line-height: 1.3; }
p  { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }
a  { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible {
  outline: 2px solid var(--nx-blue);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: rgba(0,140,254,.2); color: var(--nx-navy); }

.nx-skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--nx-navy); color: #fff; padding: .7rem 1.15rem;
  border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: top .2s var(--nx-ease);
}
.nx-skip:focus { top: 12px; }
.nx-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.nx-wrap {
  width: 100%; max-width: var(--nx-max);
  margin-inline: auto; padding-inline: var(--nx-gutter);
}
.nx-wrap--wide { max-width: 1480px; }
.nx-wrap--narrow { max-width: 860px; }
.nx-section { padding-block: var(--nx-section); position: relative; background: var(--nx-bg); }
.nx-section--tight { padding-block: clamp(2.6rem, 1.9rem + 2.8vw, 4.2rem); }
.nx-section--soft { background: var(--nx-bg-soft); }
/* One rung above --soft on the surface ladder: used where a section-page
   child strip sits directly above the dark CTA and needs separating from
   the --soft section above it. */
.nx-section--strip-alt { background: var(--nx-bg-tint); }
.nx-section--dark { background: var(--nx-navy); color: var(--nx-on-dark); }
.nx-section--dark h2,
.nx-section--dark h3,
.nx-section--dark h4 { color: #fff; }
.nx-section--dark p { color: var(--nx-on-dark-mut); }

.nx-grid { display: grid; gap: clamp(1.15rem, .8rem + 1.2vw, 2rem); }
.nx-grid--2 { grid-template-columns: repeat(2, 1fr); }
.nx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nx-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Type helpers ---------- */
.nx-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--nx-font-mono);
  font-size: .735rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--nx-blue-600); margin-bottom: 1.1rem;
}
.nx-eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: var(--nx-grad); flex: none;
}
.nx-section--dark .nx-eyebrow { color: var(--nx-teal); }
/* keep brand names that are lowercase by definition (n8n) intact */
.nx-eyebrow--asis { text-transform: none; letter-spacing: .1em; }
.nx-lead { font-size: var(--nx-lead); line-height: 1.62; color: var(--nx-body); }
.nx-section--dark .nx-lead { color: var(--nx-on-dark-mut); }
.nx-grad-text {
  background: var(--nx-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.nx-head { max-width: 48rem; }
.nx-head--center { max-width: 46rem; margin-inline: auto; text-align: center; }
.nx-head--center .nx-eyebrow::before { display: none; }
.nx-head--center .nx-eyebrow { justify-content: center; }

.nx-section-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: clamp(2.2rem, 1.5rem + 2vw, 3.6rem);
  flex-wrap: wrap;
}
.nx-section-top .nx-head { margin: 0; }

/* ---------- Buttons ---------- */
.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.6rem;
  font-family: var(--nx-font); font-size: .935rem; font-weight: 600;
  letter-spacing: -.005em; border-radius: 8px;
  /* Filled variants carry a transparent border so they share the outlined
     variants' box model. Without it a primary button rendered 54px next to a
     56px secondary — a 2px step that is visible whenever the two sit in the
     same .nx-btn-row. */
  border: 1px solid transparent;
  transition: transform .3s var(--nx-ease), box-shadow .3s var(--nx-ease),
              background-color .3s var(--nx-ease), color .3s var(--nx-ease),
              border-color .3s var(--nx-ease);
  position: relative; overflow: hidden; white-space: nowrap;
}
.nx-btn svg { flex: none; transition: transform .3s var(--nx-ease); }
.nx-btn:hover svg { transform: translateX(3px); }

.nx-btn--primary {
  background: var(--nx-navy); color: #fff;
  box-shadow: 0 8px 22px -10px rgba(1,17,47,.55);
}
.nx-btn--primary::after {
  content: ''; position: absolute; inset: 0;
  background: var(--nx-grad); opacity: 0;
  transition: opacity .35s var(--nx-ease); z-index: 0;
}
.nx-btn--primary > * { position: relative; z-index: 1; }
.nx-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(0,110,200,.6); }
.nx-btn--primary:hover::after { opacity: 1; }

.nx-btn--accent { background: var(--nx-grad); color: #04121f; }
.nx-btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(0,180,200,.7); }

.nx-btn--ghost {
  border: 1px solid var(--nx-line-strong); color: var(--nx-text); background: transparent;
}
.nx-btn--ghost:hover { border-color: var(--nx-navy); background: var(--nx-navy); color: #fff; transform: translateY(-2px); }
/* A ghost button inherits --nx-text, which is invisible on a navy section.
   On dark surfaces it borrows the --on-dark treatment instead. */
.nx-section--dark .nx-btn--ghost,
.nx-section--deep .nx-btn--ghost {
  border-color: rgba(255,255,255,.24); color: #fff; background: rgba(255,255,255,.04);
}
.nx-section--dark .nx-btn--ghost:hover,
.nx-section--deep .nx-btn--ghost:hover {
  background: #fff; color: var(--nx-navy); border-color: #fff;
}

.nx-btn--on-dark {
  border: 1px solid rgba(255,255,255,.24); color: #fff; background: rgba(255,255,255,.04);
}
.nx-btn--on-dark:hover { background: #fff; color: var(--nx-navy); border-color: #fff; transform: translateY(-2px); }

.nx-btn--sm { padding: .68rem 1.2rem; font-size: .875rem; }
.nx-btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* text link with arrow */
.nx-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .92rem; color: var(--nx-blue-600);
  transition: gap .3s var(--nx-ease), color .3s var(--nx-ease);
}
.nx-link svg { transition: transform .3s var(--nx-ease); }
.nx-link:hover { gap: .7rem; color: var(--nx-navy); }
.nx-section--dark .nx-link { color: var(--nx-teal); }
.nx-section--dark .nx-link:hover { color: #fff; }

/* ---------- Header ---------- */
.nx-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding-block: 1.15rem;
  transition: padding .35s var(--nx-ease), background-color .35s var(--nx-ease),
              box-shadow .35s var(--nx-ease), border-color .35s var(--nx-ease);
  border-bottom: 1px solid transparent;
}
.nx-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nx-nav > li > a { white-space: nowrap; }
.nx-header__logo { display: block; flex: none; }
.nx-header__logo img { height: 34px; width: auto; transition: height .35s var(--nx-ease); }
.nx-header__logo .nx-logo-light { display: block; }
.nx-header__logo .nx-logo-dark { display: none; }

/* scrolled / light-context state */
.nx-header.is-stuck {
  padding-block: .6rem;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--nx-line);
  box-shadow: 0 6px 24px -18px rgba(1,17,47,.5);
}
.nx-header.is-stuck .nx-header__logo img { height: 30px; }
.nx-header.is-stuck .nx-logo-light { display: none; }
.nx-header.is-stuck .nx-logo-dark { display: block; }
.nx-header.is-stuck .nx-nav > li > a { color: var(--nx-text); }
.nx-header.is-stuck .nx-burger span { background: var(--nx-text); }
.nx-header.is-stuck .nx-btn--on-dark { border-color: var(--nx-line-strong); color: var(--nx-text); background: transparent; }
.nx-header.is-stuck .nx-btn--on-dark:hover { background: var(--nx-navy); color: #fff; border-color: var(--nx-navy); }

/* pages with light hero start in the light state */
.nx-header--light .nx-logo-light { display: none; }
.nx-header--light .nx-logo-dark { display: block; }
.nx-header--light .nx-nav > li > a { color: var(--nx-text); }
.nx-header--light .nx-burger span { background: var(--nx-text); }
.nx-header--light .nx-btn--on-dark { border-color: var(--nx-line-strong); color: var(--nx-text); }

.nx-nav { display: flex; align-items: center; gap: .35rem; flex-wrap: nowrap; }
/* Eight top-level items do not fit at every desktop width. The nav tightens
   in two steps rather than wrapping onto a second row, which would push the
   header taller and move the hero. Below 992px the burger takes over. */
.nx-nav > li { position: relative; }
.nx-nav > li > a {
  display: flex; align-items: center; gap: .3rem;
  padding: .6rem .8rem; font-size: .925rem; font-weight: 500;
  color: rgba(255,255,255,.86); border-radius: 7px;
  transition: color .25s var(--nx-ease), background-color .25s var(--nx-ease);
}
.nx-nav > li > a:hover,
.nx-nav > li.is-current > a { color: var(--nx-blue-600); }
.nx-header:not(.is-stuck):not(.nx-header--light) .nx-nav > li > a:hover,
.nx-header:not(.is-stuck):not(.nx-header--light) .nx-nav > li.is-current > a { color: var(--nx-teal); }

/* The panels sit 18–38px below their tab so the menu reads as a separate
   surface. That offset used to be dead space: the cursor left the <li> on the
   way down, :hover was lost, and the panel closed before an option could be
   clicked. This element spans the offset. It is inert until its menu opens,
   so it can never intercept a click meant for the header. */
.nx-nav__bridge {
  position: absolute; top: 100%; left: 50%; translate: -50% 0;
  width: 100%; min-width: 8rem; height: 42px;
  pointer-events: none; z-index: 1;
}
.nx-nav > li.is-open > .nx-nav__bridge { pointer-events: auto; }
html:not(.nx-js) .nx-nav > li:hover > .nx-nav__bridge { pointer-events: auto; }
/* The mega menu is anchored to the header rather than the tab, so its bridge
   has to span the full header width to cover the diagonal approach. */
.nx-nav__wide > .nx-nav__bridge { width: 100vw; height: 46px; }

/* An open tab keeps its active colouring, so the menu reads as attached to it. */
.nx-nav > li.is-open > a { color: var(--nx-blue-600); }
.nx-header:not(.is-stuck):not(.nx-header--light) .nx-nav > li.is-open > a { color: var(--nx-teal); }
.nx-nav > li.is-open .nx-nav__caret { transform: rotate(180deg); }
.nx-nav__caret { width: 10px; height: 10px; opacity: .55; transition: transform .3s var(--nx-ease); }
@media (hover: hover) and (pointer: fine) {
  html:not(.nx-js) .nx-nav > li:hover .nx-nav__caret { transform: rotate(180deg); }
}

/* dropdown */
.nx-drop {
  position: absolute; top: calc(100% + 10px); left: 50%;
  translate: -50% 8px;
  min-width: 300px; padding: .55rem;
  background: #fff; border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius); box-shadow: var(--nx-shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--nx-ease), translate .28s var(--nx-ease), visibility .28s;
}
.nx-nav > li.is-open > .nx-drop {
  opacity: 1; visibility: visible; pointer-events: auto; translate: -50% 0;
}
/* Hover-open is a progressive enhancement for real pointers. A coarse pointer
   fires a synthetic hover on tap that then sticks, so it opens by click there
   instead — see the nav controller in nexla.js. */
/* Fallback only. With JS running, hover-opening is handled by the nav
   controller so that Escape, pinning and hover-intent can override it —
   CSS :hover cannot be suppressed from script. */
@media (hover: hover) and (pointer: fine) {
  html:not(.nx-js) .nx-nav > li:hover > .nx-drop {
    opacity: 1; visibility: visible; pointer-events: auto; translate: -50% 0;
  }
}
.nx-drop a {
  display: block; padding: .62rem .8rem; border-radius: 8px;
  font-size: .9rem; font-weight: 600; color: var(--nx-text);
  transition: background-color .2s var(--nx-ease), color .2s var(--nx-ease);
}
.nx-drop a span {
  display: block; font-size: .795rem; font-weight: 400;
  color: var(--nx-muted); margin-top: .1rem; line-height: 1.45;
}
.nx-drop a:hover { background: var(--nx-bg-tint); color: var(--nx-blue-600); }
.nx-drop a strong { font-weight: 600; }
.nx-drop__chip {
  display: inline-block; margin-inline-start: .5rem; padding: .05rem .45rem; border-radius: 999px;
  border: 1px solid rgba(245, 185, 74, .6); background: rgba(245, 185, 74, .12);
  font-family: var(--nx-font-mono); font-size: .62rem; font-style: normal; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: #8A5A00; vertical-align: .1em;
}

.nx-header__cta { display: flex; align-items: center; gap: .7rem; flex: none; }

/* burger */
.nx-burger {
  display: none; width: 44px; height: 44px; border-radius: 8px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nx-burger span {
  display: block; width: 20px; height: 1.5px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--nx-ease), opacity .25s var(--nx-ease), background-color .3s;
}
body.nx-menu-open .nx-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nx-menu-open .nx-burger span:nth-child(2) { opacity: 0; }
body.nx-menu-open .nx-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile panel */
.nx-mobile {
  position: fixed; inset: 0; z-index: 99;
  background: var(--nx-navy); color: #fff;
  padding: 6.5rem var(--nx-gutter) 2.5rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--nx-ease), visibility .35s;
}
body.nx-menu-open .nx-mobile { opacity: 1; visibility: visible; }
body.nx-menu-open { overflow: hidden; }
.nx-mobile__group + .nx-mobile__group { border-top: 1px solid var(--nx-line-dark); }
.nx-mobile__top {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem 0; font-family: var(--nx-font-display);
  font-size: 1.28rem; font-weight: 600; color: #fff; text-align: left;
  letter-spacing: -.02em;
}
.nx-mobile__top svg { transition: transform .3s var(--nx-ease); opacity: .6; }
.nx-mobile__group.is-open .nx-mobile__top svg { transform: rotate(180deg); }
.nx-mobile__sub {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--nx-ease);
}
.nx-mobile__group.is-open .nx-mobile__sub { grid-template-rows: 1fr; }
.nx-mobile__sub > div { overflow: hidden; }
.nx-mobile__sub a {
  display: block; padding: .58rem 0 .58rem 1rem;
  color: var(--nx-on-dark-mut); font-size: .95rem;
  border-left: 1px solid var(--nx-line-dark);
}
.nx-mobile__sub a:hover { color: var(--nx-teal); border-left-color: var(--nx-teal); }
.nx-mobile__sub > div { padding-bottom: .8rem; }
.nx-mobile__foot { margin-top: 2rem; display: grid; gap: .7rem; }
.nx-mobile__foot .nx-btn { width: 100%; }

/* ---------- Hero ---------- */
.nx-hero {
  position: relative; overflow: hidden;
  background: var(--nx-navy); color: #fff;
  padding-top: clamp(7.4rem, 5.9rem + 5.6vw, 9.6rem);
  padding-bottom: clamp(3.2rem, 2.4rem + 3.4vw, 5rem);
  isolation: isolate;
}
.nx-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.nx-hero__bg::before {
  content: ''; position: absolute;
  width: 900px; height: 900px; top: -420px; right: -180px;
  background: radial-gradient(circle, rgba(0,140,254,.30) 0%, transparent 62%);
  filter: blur(20px);
}
.nx-hero__bg::after {
  content: ''; position: absolute;
  width: 720px; height: 720px; bottom: -400px; left: -220px;
  background: radial-gradient(circle, rgba(0,219,178,.20) 0%, transparent 62%);
  filter: blur(20px);
}
.nx-grid-lines {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 78%);
}
.nx-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1rem + 4vw, 4.5rem); align-items: center;
}
.nx-hero h1 { color: #fff; margin-bottom: 1.4rem; }
.nx-hero__lead {
  font-size: clamp(1.05rem, .98rem + .4vw, 1.24rem);
  line-height: 1.62; color: var(--nx-on-dark-mut);
  max-width: 33rem; margin-bottom: 2.1rem;
}
.nx-hero .nx-eyebrow { color: var(--nx-teal); }
.nx-hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem;
  margin-top: 2.2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--nx-line-dark);
}
.nx-hero__meta div strong {
  display: block; font-family: var(--nx-font-display);
  font-size: 1.05rem; font-weight: 600; color: #fff; letter-spacing: -.02em;
}
.nx-hero__meta div span {
  font-size: .82rem; color: var(--nx-on-dark-mut);
  font-family: var(--nx-font-mono); letter-spacing: .04em;
}

/* ---------- Product mockup (hand-built UI, no stock art) ---------- */
.nx-mock {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(180deg, #0B2145 0%, #061631 100%);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.04) inset;
  overflow: hidden;
}
.nx-mock__bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .72rem .95rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
.nx-mock__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.nx-mock__title {
  margin-left: .55rem; font-family: var(--nx-font-mono);
  font-size: .715rem; color: rgba(255,255,255,.42); letter-spacing: .03em;
}
.nx-mock__body { padding: 1.15rem; display: grid; gap: .85rem; }
.nx-mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.nx-mock__stat {
  padding: .8rem .85rem; border-radius: 10px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08);
}
.nx-mock__stat b {
  display: block; font-family: var(--nx-font-display);
  font-size: 1.32rem; font-weight: 600; color: #fff; letter-spacing: -.03em; line-height: 1.1;
}
.nx-mock__stat span {
  font-size: .68rem; color: rgba(255,255,255,.45);
  font-family: var(--nx-font-mono); letter-spacing: .05em; text-transform: uppercase;
}
.nx-mock__stat i {
  font-style: normal; font-size: .68rem; font-weight: 600;
  color: var(--nx-teal); margin-left: .3rem;
}
.nx-mock__chart {
  height: 132px; border-radius: 10px; padding: .8rem;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: flex-end; gap: 5px;
}
.nx-mock__chart i {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--nx-blue), rgba(0,140,254,.16));
  transform-origin: bottom; animation: nx-bar 2.4s var(--nx-ease) backwards;
}
.nx-mock__chart i:nth-child(even) {
  background: linear-gradient(180deg, var(--nx-teal), rgba(0,219,178,.16));
}
@keyframes nx-bar { from { transform: scaleY(.05); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.nx-mock__list { display: grid; gap: .45rem; }
.nx-mock__item {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .7rem; border-radius: 8px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07);
  font-size: .78rem; color: rgba(255,255,255,.72);
}
.nx-mock__item::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--nx-teal); flex: none;
  box-shadow: 0 0 0 3px rgba(0,219,178,.16);
}
.nx-mock__item em {
  margin-left: auto; font-style: normal; font-family: var(--nx-font-mono);
  font-size: .68rem; color: rgba(255,255,255,.36);
}
/* floating chip */
.nx-mock-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .55rem;
  padding: .6rem .85rem; border-radius: 10px;
  background: rgba(8,26,54,.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
  font-size: .78rem; font-weight: 600; color: #fff; white-space: nowrap;
}
.nx-mock-chip svg { width: 15px; height: 15px; flex: none; }
/* Chips sit on the panel edge, never over it — the visual inside carries real
   content now and a chip parked mid-panel clips it. */
.nx-mock-chip--a { bottom: -20px; left: -24px; }
.nx-mock-chip--b { top: -20px; right: -24px; }

.nx-mock-stage { position: relative; }

/* ---------- Cards ---------- */
.nx-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.4rem, 1.1rem + .8vw, 2rem);
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  transition: transform .4s var(--nx-ease), box-shadow .4s var(--nx-ease), border-color .4s var(--nx-ease);
  overflow: hidden; height: 100%;
}
.nx-card::after {
  content: ''; position: absolute; inset: 0 0 auto; height: 2px;
  background: var(--nx-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--nx-ease);
}
.nx-card:hover { transform: translateY(-5px); box-shadow: var(--nx-shadow); border-color: var(--nx-line-strong); }
.nx-card:hover::after { transform: scaleX(1); }
.nx-card h3 { font-size: 1.22rem; margin-bottom: .55rem; }
.nx-card p { font-size: .935rem; margin-bottom: 1.15rem; }
.nx-card .nx-link { margin-top: auto; }

.nx-ico {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 1.15rem;
  background: var(--nx-grad-soft); border: 1px solid rgba(0,140,254,.16);
  color: var(--nx-blue-600); flex: none;
  transition: background .4s var(--nx-ease), color .4s var(--nx-ease), transform .4s var(--nx-ease);
}
.nx-ico svg { width: 21px; height: 21px; }
.nx-card:hover .nx-ico { background: var(--nx-grad); color: #fff; border-color: transparent; transform: scale(1.06); }

/* dark card variant */
.nx-card--dark {
  background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.1);
}
.nx-card--dark h3 { color: #fff; }
.nx-card--dark p { color: var(--nx-on-dark-mut); }
.nx-card--dark:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.nx-card--dark .nx-ico {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.13); color: var(--nx-teal);
}

/* editorial "feature" card — spans wide with image */
.nx-feature {
  grid-column: span 2; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  align-items: center; gap: 0; padding: 0; overflow: hidden;
}
.nx-feature__body { padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem); }
.nx-feature__media { position: relative; height: 100%; min-height: 250px; overflow: hidden; }
.nx-feature__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--nx-ease);
}
.nx-feature:hover .nx-feature__media img { transform: scale(1.05); }
.nx-feature__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(1,17,47,.62) 0%, rgba(1,17,47,.12) 55%, transparent 100%);
}

/* ---------- Capability strip (trust) ---------- */
.nx-strip {
  border-block: 1px solid var(--nx-line-strong);
  background: var(--nx-bg-tint);
}
.nx-strip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.nx-strip__item {
  padding: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem) clamp(1rem, .7rem + 1vw, 1.9rem);
  border-right: 1px solid var(--nx-line);
}
.nx-strip__item:last-child { border-right: 0; }
.nx-strip__item strong {
  display: block; font-family: var(--nx-font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 600;
  color: var(--nx-navy); letter-spacing: -.035em; line-height: 1.05; margin-bottom: .35rem;
}
.nx-strip__item > span { font-size: .875rem; color: var(--nx-body); display: block; }
.nx-strip__item em {
  display: block; font-style: normal; font-family: var(--nx-font-mono);
  font-size: .69rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--nx-muted); margin-top: .5rem;
}

/* ---------- Numbered process ---------- */
.nx-steps { display: grid; gap: 0; counter-reset: nxstep; }
.nx-step {
  display: grid; grid-template-columns: 5.5rem minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1rem, .6rem + 1.6vw, 2.6rem); align-items: start;
  padding-block: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem);
  border-top: 1px solid var(--nx-line);
  transition: background-color .4s var(--nx-ease);
}
.nx-step:last-child { border-bottom: 1px solid var(--nx-line); }
.nx-step__num {
  font-family: var(--nx-font-mono); font-size: .8rem; font-weight: 500;
  color: var(--nx-muted); letter-spacing: .1em; padding-top: .35rem;
  transition: color .4s var(--nx-ease);
}
.nx-step h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.65rem); margin: 0; transition: color .4s var(--nx-ease); }
.nx-step p { font-size: .95rem; margin: 0; padding-top: .2rem; }
.nx-step:hover { background: var(--nx-bg-soft); }
.nx-step:hover .nx-step__num { color: var(--nx-blue-600); }
.nx-section--dark .nx-step { border-color: var(--nx-line-dark); }
.nx-section--dark .nx-step:last-child { border-bottom-color: var(--nx-line-dark); }
.nx-section--dark .nx-step:hover { background: rgba(255,255,255,.035); }
.nx-section--dark .nx-step:hover .nx-step__num { color: var(--nx-teal); }

/* ---------- Case studies (editorial) ---------- */
.nx-case {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 1rem + 3vw, 4rem); align-items: center;
  padding-block: clamp(2.4rem, 1.6rem + 3vw, 4.5rem);
  border-top: 1px solid var(--nx-line);
}
/* alternate by type: a preceding section header would otherwise shift nth-child */
.nx-case:nth-of-type(even) .nx-case__media { order: 1; }
.nx-case__media {
  position: relative; border-radius: var(--nx-radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--nx-navy);
}
.nx-case__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--nx-ease); opacity: .92;
}
.nx-case:hover .nx-case__media img { transform: scale(1.04); }
.nx-case__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  padding: .38rem .75rem; border-radius: 100px;
  background: rgba(1,17,47,.75);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  font-family: var(--nx-font-mono); font-size: .68rem; letter-spacing: .09em;
  text-transform: uppercase; color: #fff;
}
.nx-case__index {
  font-family: var(--nx-font-mono); font-size: .78rem; letter-spacing: .12em;
  color: var(--nx-muted); margin-bottom: .8rem; display: block;
}
.nx-case h3 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem); margin-bottom: 1.1rem; }
.nx-case__facts { display: grid; gap: 1rem; margin: 1.4rem 0; }
.nx-case__fact { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: start; }
.nx-case__fact dt {
  font-family: var(--nx-font-mono); font-size: .69rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--nx-muted); padding-top: .18rem;
}
.nx-case__fact dd { margin: 0; font-size: .93rem; color: var(--nx-body); }
.nx-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.nx-tag {
  padding: .28rem .62rem; border-radius: 6px;
  background: var(--nx-bg-tint); border: 1px solid var(--nx-line);
  font-family: var(--nx-font-mono); font-size: .72rem; color: var(--nx-navy-600);
}

/* ---------- Workflow (n8n) ---------- */
.nx-flow {
  position: relative; padding: clamp(1.4rem, 1rem + 1.6vw, 2.6rem);
  border-radius: var(--nx-radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.11);
  overflow-x: auto;
}
.nx-flow__track {
  display: flex; align-items: center; gap: 0; min-width: 700px;
}
.nx-node {
  flex: 1; min-width: 96px; text-align: center;
  padding: 1rem .6rem; border-radius: 11px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13);
  transition: transform .4s var(--nx-ease), border-color .4s var(--nx-ease), background .4s var(--nx-ease);
  position: relative; z-index: 2;
}
.nx-node:hover { transform: translateY(-4px); border-color: var(--nx-teal); background: rgba(0,219,178,.09); }
.nx-node__ico {
  width: 38px; height: 38px; margin: 0 auto .6rem; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: var(--nx-teal);
}
.nx-node__ico svg { width: 18px; height: 18px; }
.nx-node b {
  display: block; font-size: .84rem; font-weight: 600; color: #fff;
  letter-spacing: -.01em; line-height: 1.25;
}
.nx-node span {
  display: block; font-family: var(--nx-font-mono); font-size: .65rem;
  color: rgba(255,255,255,.6); margin-top: .25rem; letter-spacing: .04em;
}
.nx-node--hero { background: rgba(0,140,254,.14); border-color: rgba(0,140,254,.4); }
.nx-node--hero .nx-node__ico { background: var(--nx-grad); color: #04121f; border-color: transparent; }
.nx-wire {
  flex: 0 0 clamp(20px, 3vw, 46px); height: 2px; position: relative;
  background: rgba(255,255,255,.14); overflow: hidden; border-radius: 2px;
}
.nx-wire::after {
  content: ''; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, transparent, var(--nx-teal), transparent);
  animation: nx-pulse 2.2s linear infinite;
}
.nx-wire:nth-of-type(2)::after { animation-delay: .3s; }
.nx-wire:nth-of-type(3)::after { animation-delay: .6s; }
.nx-wire:nth-of-type(4)::after { animation-delay: .9s; }
.nx-wire:nth-of-type(5)::after { animation-delay: 1.2s; }
@keyframes nx-pulse { from { transform: translateX(-100%); } to { transform: translateX(350%); } }

/* ---------- Marquee ---------- */
.nx-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.nx-marquee__track { display: flex; width: max-content; animation: nx-scroll 42s linear infinite; }
.nx-marquee:hover .nx-marquee__track { animation-play-state: paused; }
.nx-marquee__track > * { flex: none; }
@keyframes nx-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.nx-marquee--rev .nx-marquee__track { animation-direction: reverse; }
.nx-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-right: .7rem; padding: .65rem 1.1rem;
  border: 1px solid var(--nx-line); border-radius: 100px;
  background: var(--nx-surface); font-size: .885rem; font-weight: 500; color: var(--nx-text);
  transition: border-color .3s var(--nx-ease), color .3s var(--nx-ease), background .3s;
}
.nx-chip:hover { border-color: var(--nx-blue); color: var(--nx-blue-600); }
.nx-chip i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--nx-grad); flex: none;
}
.nx-section--dark .nx-chip {
  background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.86);
}
.nx-section--dark .nx-chip:hover { border-color: var(--nx-teal); color: #fff; }

/* ---------- Accordion (FAQ) ---------- */
.nx-acc { border-top: 1px solid var(--nx-line); }
.nx-acc__item { border-bottom: 1px solid var(--nx-line); }
.nx-acc__btn {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; padding: 1.35rem 0; text-align: left;
  font-family: var(--nx-font-display); font-size: clamp(1.02rem, .96rem + .35vw, 1.2rem);
  font-weight: 600; color: var(--nx-text); letter-spacing: -.018em; line-height: 1.4;
  transition: color .25s var(--nx-ease);
}
.nx-acc__btn:hover { color: var(--nx-blue-600); }
.nx-acc__sign {
  flex: none; width: 26px; height: 26px; margin-top: .1rem; border-radius: 50%;
  border: 1px solid var(--nx-line-strong); display: grid; place-items: center;
  position: relative; transition: background .3s var(--nx-ease), border-color .3s var(--nx-ease);
}
.nx-acc__sign::before, .nx-acc__sign::after {
  content: ''; position: absolute; background: var(--nx-text); border-radius: 2px;
  transition: transform .35s var(--nx-ease), background .3s;
}
.nx-acc__sign::before { width: 11px; height: 1.5px; }
.nx-acc__sign::after  { width: 1.5px; height: 11px; }
.nx-acc__item.is-open .nx-acc__sign { background: var(--nx-navy); border-color: var(--nx-navy); }
.nx-acc__item.is-open .nx-acc__sign::before,
.nx-acc__item.is-open .nx-acc__sign::after { background: #fff; }
.nx-acc__item.is-open .nx-acc__sign::after { transform: rotate(90deg); }
.nx-acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--nx-ease);
}
.nx-acc__item.is-open .nx-acc__panel { grid-template-rows: 1fr; }
.nx-acc__panel > div { overflow: hidden; }
.nx-acc__panel p { padding-bottom: 1.5rem; font-size: .955rem; max-width: 60ch; }

/* ---------- CTA band ---------- */
.nx-cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--nx-navy); color: #fff;
  padding-block: clamp(3.4rem, 2.6rem + 3.8vw, 5.8rem);
  text-align: center;
}
.nx-cta__bg {
  position: absolute; z-index: -1;
  /* bleeds past the section so the parallax drift never exposes an edge */
  inset: -14% 0;
}
.nx-cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .17; }
.nx-cta__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(0,140,254,.30), transparent 60%),
    linear-gradient(180deg, rgba(1,17,47,.72), rgba(1,17,47,.94));
}
/* Capped below --nx-h1: at 1440px this rendered 64px against a 63px page
   heading, so the closing CTA outranked the H1 it was closing. */
.nx-cta h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.4rem); color: #fff; margin-bottom: 1.1rem; }
.nx-cta p { max-width: 40rem; margin: 0 auto 2.2rem; color: var(--nx-on-dark-mut); font-size: var(--nx-lead); }
.nx-cta .nx-btn-row { justify-content: center; }
.nx-cta .nx-cta__note {
  margin: 1.6rem auto 0; font-family: var(--nx-font-mono); font-size: .76rem;
  letter-spacing: .06em; color: rgba(255,255,255,.6);
}

/* ---------- Page hero (internal pages) ---------- */
.nx-page-hero {
  background: var(--nx-navy); color: #fff; position: relative; overflow: hidden; isolation: isolate;
  padding-top: clamp(7rem, 5.8rem + 4.6vw, 9rem);
  padding-bottom: clamp(2.6rem, 2rem + 2.8vw, 4.2rem);
}
.nx-page-hero h1 { color: #fff; max-width: 20ch; }
.nx-page-hero .nx-lead { max-width: 46rem; color: var(--nx-on-dark-mut); }
.nx-crumbs {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-family: var(--nx-font-mono); font-size: .74rem; letter-spacing: .06em;
  color: rgba(255,255,255,.58); margin-bottom: 1.6rem;
}
.nx-crumbs a { color: rgba(255,255,255,.66); transition: color .25s; }
.nx-crumbs a:hover { color: var(--nx-teal); }
.nx-crumbs span { opacity: .4; }

/* ---------- Split / alternating content ---------- */
.nx-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1.2rem + 3.4vw, 4.5rem); align-items: center;
}
.nx-split--rev > *:last-child { order: -1; }
.nx-media {
  border-radius: var(--nx-radius); overflow: hidden; position: relative;
  background: var(--nx-navy);
}
.nx-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.nx-media--tall img { aspect-ratio: 3/4; }
.nx-media--wide img { aspect-ratio: 16/10; }

.nx-checks { display: grid; gap: .85rem; margin: 1.6rem 0; }
/* Block flow + absolute marker, deliberately not grid/flex: those blockify
   inline children such as <strong>, which would break the text onto its own
   row. This keeps plain inline markup inside each item working. */
.nx-checks li {
  display: block; position: relative; padding-left: 1.8rem;
  font-size: .95rem; color: var(--nx-body);
}
.nx-checks li strong { color: var(--nx-text); font-weight: 600; }
.nx-section--dark .nx-checks li strong { color: #fff; }
.nx-checks li::before {
  content: ''; position: absolute; left: 0; top: .22rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--nx-grad-soft); border: 1px solid rgba(0,140,254,.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230072D6' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}
.nx-checks--limited li::before {
  background-color: rgba(122,135,163,.12); border-color: rgba(122,135,163,.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A87A3' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}
.nx-checks--planned li::before {
  background: transparent; border: 1px dashed rgba(122,135,163,.7);
}
.nx-section--dark .nx-checks li { color: var(--nx-on-dark-mut); }
.nx-section--dark .nx-checks li::before {
  background-color: rgba(0,219,178,.12); border-color: rgba(0,219,178,.36);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300DBB2' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ---------- Product cards ---------- */
.nx-product {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid var(--nx-line); border-radius: var(--nx-radius);
  background: var(--nx-surface);
  transition: transform .4s var(--nx-ease), box-shadow .4s var(--nx-ease), border-color .4s var(--nx-ease);
}
.nx-product:hover { transform: translateY(-6px); box-shadow: var(--nx-shadow); border-color: var(--nx-line-strong); }
.nx-product__shot {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(160deg, #0B2145, #030F26);
  border-bottom: 1px solid var(--nx-line);
  display: grid; place-items: center; padding: 1.15rem;
}
.nx-product__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.nx-product__cat {
  font-family: var(--nx-font-mono); font-size: .68rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--nx-blue-600); margin-bottom: .6rem; display: block;
}
.nx-product h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.nx-product__problem {
  font-size: .82rem; color: var(--nx-muted); margin-bottom: .7rem;
  padding-left: .8rem; border-left: 2px solid var(--nx-line-strong);
}
.nx-product p { font-size: .92rem; }
.nx-product .nx-link { margin-top: auto; padding-top: 1.1rem; }
.nx-badge-soon {
  position: absolute; top: .8rem; right: .8rem; z-index: 3;
  padding: .26rem .6rem; border-radius: 5px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  font-family: var(--nx-font-mono); font-size: .7rem; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.75);
}

/* mini UI used inside product shots */
.nx-ui { width: 100%; display: grid; gap: .45rem; }
.nx-ui__bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,.13); }
.nx-ui__bar--accent { background: var(--nx-grad); opacity: .85; }
.nx-ui__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.nx-ui__box {
  height: 34px; border-radius: 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
}
.nx-ui__box--tall { height: 52px; }

/* ---------- Industries ---------- */
.nx-ind {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--nx-radius); min-height: 320px;
  background: var(--nx-navy); color: #fff;
  transition: transform .45s var(--nx-ease), box-shadow .45s var(--nx-ease);
}
.nx-ind:hover { transform: translateY(-5px); box-shadow: var(--nx-shadow-lg); }
.nx-ind img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .5; transition: transform .9s var(--nx-ease), opacity .5s var(--nx-ease);
}
.nx-ind:hover img { transform: scale(1.07); opacity: .62; }
.nx-ind__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,17,47,.28) 0%, rgba(1,17,47,.86) 68%, rgba(1,17,47,.96) 100%);
}
.nx-ind__body {
  position: relative; z-index: 2; height: 100%;
  padding: clamp(1.3rem, 1rem + .9vw, 1.9rem);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px;
}
.nx-ind h3 { color: #fff; font-size: 1.3rem; margin-bottom: .45rem; }
.nx-ind p { font-size: .9rem; color: rgba(255,255,255,.72); margin-bottom: .9rem; }
.nx-ind .nx-link { color: var(--nx-teal); }
.nx-ind--lg { grid-column: span 2; }
.nx-ind--wide { grid-column: 1 / -1; }
.nx-ind--wide .nx-ind__body p { max-width: 46rem; }

/* ---------- Footer ---------- */
.nx-footer {
  background: var(--nx-navy-deep); color: var(--nx-on-dark-mut);
  padding-top: clamp(3.5rem, 2.6rem + 3.5vw, 5.5rem);
  font-size: .92rem;
}
.nx-footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.8rem);
}
.nx-footer__logo img { height: 32px; width: auto; margin-bottom: 1.2rem; }
.nx-footer__about { max-width: 30rem; line-height: 1.7; margin-bottom: 1.6rem; }
/* Column titles are h2 in the markup (no skipped heading level after the page
   content); the look is set here, by class, not by tag. */
.nx-footer__h {
  color: #fff; font-size: .78rem; line-height: 1.3; font-family: var(--nx-font-mono);
  font-weight: 500; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1.15rem;
}
.nx-footer li { margin-bottom: 0; }
.nx-footer li a {
  display: inline-block; padding-block: .3rem; min-height: 24px;
  transition: color .25s var(--nx-ease), padding-left .25s var(--nx-ease);
}
.nx-footer__bar nav a { display: inline-block; padding-block: .3rem; min-height: 24px; }
.nx-crumbs a { display: inline-block; padding-block: .18rem; }
.nx-footer li a:hover { color: var(--nx-teal); }
.nx-footer__contact li { display: grid; grid-template-columns: 18px 1fr; gap: .7rem; align-items: start; }
.nx-footer__contact svg { width: 15px; height: 15px; margin-top: .28rem; color: var(--nx-blue); flex: none; }
.nx-footer__contact a { color: #fff; font-weight: 500; }
.nx-footer__contact em {
  font-style: normal; display: block; font-size: .79rem;
  color: rgba(255,255,255,.58); margin-top: .1rem;
}
.nx-social { display: flex; gap: .55rem; }
.nx-social a {
  width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid var(--nx-line-dark); color: var(--nx-on-dark-mut);
  transition: background .3s var(--nx-ease), color .3s var(--nx-ease), border-color .3s, transform .3s;
}
.nx-social a:hover { background: var(--nx-grad); color: #04121f; border-color: transparent; transform: translateY(-2px); }
.nx-social svg { width: 16px; height: 16px; }
.nx-footer__bar {
  border-top: 1px solid var(--nx-line-dark);
  padding-block: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .84rem; color: rgba(255,255,255,.6);
}
.nx-footer__bar nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.nx-footer__bar a:hover { color: var(--nx-teal); }

/* ---------- Forms ---------- */
.nx-form { display: grid; gap: 1.15rem; }
.nx-field { display: grid; gap: .45rem; }
.nx-field label { font-size: .85rem; font-weight: 600; color: var(--nx-text); }
.nx-field label .req { color: var(--nx-blue-600); }
.nx-field input, .nx-field textarea, .nx-field select {
  width: 100%; padding: .82rem 1rem;
  font: inherit; font-size: .95rem; color: var(--nx-text);
  background: #fff; border: 1px solid var(--nx-line-strong);
  border-radius: var(--nx-radius-sm);
  transition: border-color .25s var(--nx-ease), box-shadow .25s var(--nx-ease);
}
.nx-field textarea { min-height: 140px; resize: vertical; }
.nx-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6B88' stroke-width='2.2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 15px; padding-right: 2.6rem; }
.nx-field input:focus, .nx-field textarea:focus, .nx-field select:focus {
  outline: none; border-color: var(--nx-blue-600); box-shadow: 0 0 0 3px rgba(0,140,254,.32);
}
.nx-field input[aria-invalid="true"], .nx-field textarea[aria-invalid="true"] {
  border-color: #D64545; box-shadow: 0 0 0 3px rgba(214,69,69,.11);
}
.nx-field__err { font-size: .8rem; color: #C93A3A; min-height: 0; }
.nx-field__err:empty { display: none; }
.nx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.nx-form__note { font-size: .82rem; color: var(--nx-muted); }
.nx-form__status {
  padding: .9rem 1.1rem; border-radius: var(--nx-radius-sm); font-size: .9rem;
  border: 1px solid; display: none;
}
.nx-form__status.is-ok { display: block; background: rgba(0,219,178,.09); border-color: rgba(0,182,148,.4); color: #05614E; }
.nx-form__status.is-err { display: block; background: rgba(214,69,69,.07); border-color: rgba(214,69,69,.35); color: #A32B2B; }
.nx-form__alt { margin: 0; font-size: .9rem; color: var(--nx-body); }
.nx-form__alt[hidden] { display: none; }
.nx-form__alt a { color: var(--nx-blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal animation ----------
   Hidden state is applied only when JS is running, so the page is fully
   readable if the script never executes. */
.nx-js [data-reveal],
.nx-js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--nx-ease), transform .7s var(--nx-ease);
  will-change: opacity, transform;
}
.nx-js [data-reveal].is-revealed,
.nx-js [data-reveal-group] > .is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}
/* hero entrance shares the reveal transition; JS adds .is-revealed on first frame */
.nx-js [data-hero] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--nx-ease), transform .8s var(--nx-ease);
  will-change: opacity, transform;
}
.nx-js [data-hero].is-revealed { opacity: 1; transform: none; will-change: auto; }

/* parallax targets must not fight their own layout */
[data-parallax] { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nx-hero__inner { grid-template-columns: 1fr; }
  .nx-mock-stage { max-width: 560px; }
  .nx-mock-chip--b { right: -10px; }
  .nx-mock-chip--a { left: -10px; }
  .nx-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .nx-strip__item:nth-child(2) { border-right: 0; }
  .nx-strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--nx-line); }
  .nx-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .nx-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1439px) {
  .nx-header__inner { gap: 1rem; }
  .nx-nav { gap: .1rem; }
  .nx-nav > li > a { padding: .6rem .55rem; font-size: .875rem; }
  .nx-header__cta { gap: .5rem; }
}
@media (max-width: 1180px) {
  .nx-nav > li > a { padding: .6rem .4rem; font-size: .84rem; gap: .2rem; }
  .nx-header__logo img { height: 29px; }
  .nx-header__cta .nx-btn { padding-inline: .8rem; font-size: .82rem; }
}
@media (max-width: 992px) {
  .nx-nav, .nx-header__cta .nx-btn { display: none; }
  .nx-burger { display: flex; }
  .nx-header__cta { gap: .4rem; }
  .nx-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .nx-feature { grid-column: span 2; grid-template-columns: 1fr; }
  .nx-feature__media { min-height: 220px; order: -1; }
  .nx-split, .nx-case { grid-template-columns: 1fr; }
  .nx-split--rev > *:last-child, .nx-case:nth-child(even) .nx-case__media { order: 0; }
  .nx-case__media { order: -1 !important; }
  .nx-step { grid-template-columns: 3.4rem 1fr; }
  .nx-step p { grid-column: 2; }
  .nx-ind--lg { grid-column: span 1; }
}
@media (max-width: 768px) {
  .nx-grid--2, .nx-grid--3, .nx-grid--4 { grid-template-columns: 1fr; }
  .nx-feature { grid-column: span 1; }
  .nx-section-top { flex-direction: column; align-items: flex-start; }
  .nx-form__row { grid-template-columns: 1fr; }
  .nx-footer__grid { grid-template-columns: 1fr; }
  .nx-footer__bar { flex-direction: column; align-items: flex-start; }
  .nx-case__fact { grid-template-columns: 1fr; gap: .2rem; }
  .nx-hero__meta { gap: 1.2rem 1.8rem; }
  .nx-mock-chip { font-size: .72rem; padding: .5rem .7rem; }
}
@media (max-width: 560px) {
  .nx-strip__grid { grid-template-columns: 1fr; }
  .nx-strip__item { border-right: 0; border-bottom: 1px solid var(--nx-line); }
  .nx-strip__item:last-child { border-bottom: 0; }
  .nx-btn { width: 100%; }
  .nx-btn-row { flex-direction: column; }
  .nx-hero__meta div { min-width: 100%; }
  .nx-mock-chip--a, .nx-mock-chip--b { position: static; margin-top: .7rem; display: inline-flex; }
  .nx-step { grid-template-columns: 1fr; gap: .5rem; }
  .nx-step__num { padding-top: 0; }
  .nx-step p { grid-column: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .nx-marquee__track { animation: none; }
  .nx-wire::after { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .nx-header, .nx-mobile, .nx-cta, .nx-footer { display: none; }
  body { color: #000; }
}

/* ==========================================================================
   AI-first system — components added for the AI/Automation/Engineering IA
   ========================================================================== */

/* ---------- Editorial type scale ---------- */
:root {
  --nx-h1: clamp(2.7rem, 1.2rem + 5vw, 5.6rem);
  --nx-h2: clamp(2.05rem, 1.25rem + 2.9vw, 3.75rem);
  --nx-display: clamp(3rem, 1.1rem + 6.6vw, 7rem);
  --nx-max: 1320px;
}
.nx-display {
  font-family: var(--nx-font-display);
  font-size: var(--nx-display);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.045em;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}
.nx-rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, var(--nx-line), transparent); }
.nx-section--dark .nx-rule { background: linear-gradient(90deg, rgba(255,255,255,.16), transparent); }

/* ---------- Mega menu ---------- */
/* must out-specify `.nx-nav > li { position: relative }` (0,1,1), otherwise the
   mega panel centres on the nav item and runs off the left edge below ~1600px */
.nx-nav > li.nx-nav__wide { position: static; }
.nx-mega {
  position: absolute; top: calc(100% + 8px); left: 50%;
  translate: -50% 10px;
  width: min(1300px, calc(100vw - 3rem));
  max-width: calc(100vw - 3rem);
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 16px;
  box-shadow: var(--nx-shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--nx-ease), translate .3s var(--nx-ease), visibility .3s;
  z-index: 5;
}
.nx-nav__wide.is-open > .nx-mega {
  opacity: 1; visibility: visible; pointer-events: auto; translate: -50% 0;
}
@media (hover: hover) and (pointer: fine) {
  html:not(.nx-js) .nx-nav__wide:hover > .nx-mega {
    opacity: 1; visibility: visible; pointer-events: auto; translate: -50% 0;
  }
}
/* three capability columns, with the feature panel as the fourth */
.nx-mega__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.05fr);
  gap: 1.2rem 1.5rem;
}
.nx-mega__col h4 {
  font-family: var(--nx-font-mono); font-size: .69rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--nx-muted);
  margin: 0 0 .8rem; padding-bottom: .6rem; border-bottom: 1px solid var(--nx-line);
}
.nx-mega__col a {
  display: block; padding: .5rem .6rem; margin-left: -.6rem; border-radius: 8px;
  font-size: .9rem; font-weight: 600; color: var(--nx-text);
  transition: background-color .2s var(--nx-ease), color .2s var(--nx-ease);
}
.nx-mega__col a span {
  display: block; font-size: .77rem; font-weight: 400; color: var(--nx-muted);
  margin-top: .08rem; line-height: 1.4;
}
.nx-mega__col a:hover { background: var(--nx-bg-tint); color: var(--nx-blue-600); }
.nx-mega__feature {
  padding: 1.3rem; border-radius: 12px;
  background: linear-gradient(160deg, var(--nx-navy), #0A2350);
  color: #fff; display: flex; flex-direction: column;
}
.nx-mega__feature h4 {
  color: #fff; font-size: 1.15rem; margin: 0 0 .5rem;
  font-family: var(--nx-font-display); letter-spacing: -.02em; text-transform: none;
}
.nx-mega__feature p { font-size: .84rem; color: var(--nx-on-dark-mut); margin-bottom: 1.1rem; }
.nx-mega__feature .nx-btn { margin-top: auto; }
.nx-mega__feature .nx-eyebrow { color: var(--nx-teal); margin-bottom: .7rem; }

/* ---------- Bento / asymmetric grid ---------- */
.nx-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.8rem, .5rem + 1vw, 1.3rem); }
.nx-bento > * { grid-column: span 2; }
.nx-bento .span-3 { grid-column: span 3; }
.nx-bento .span-4 { grid-column: span 4; }
.nx-bento .span-6 { grid-column: span 6; }

.nx-tile {
  position: relative; overflow: hidden;
  padding: clamp(1.3rem, 1rem + 1vw, 2rem);
  border: 1px solid var(--nx-line-dark);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  display: flex; flex-direction: column;
  transition: border-color .4s var(--nx-ease), background .4s var(--nx-ease), transform .4s var(--nx-ease);
  min-height: 178px;
}
.nx-tile::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0,140,254,.14), transparent 62%);
  opacity: 0; transition: opacity .4s var(--nx-ease); pointer-events: none;
}
.nx-tile:hover { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.06); transform: translateY(-3px); }
.nx-tile:hover::before { opacity: 1; }
.nx-tile h3 { color: #fff; font-size: 1.18rem; margin-bottom: .45rem; position: relative; }
.nx-tile p { color: var(--nx-on-dark-mut); font-size: .9rem; margin: 0; position: relative; }
.nx-tile__ico {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
  color: var(--nx-teal); margin-bottom: 1rem; position: relative; flex: none;
}
.nx-tile__ico svg { width: 19px; height: 19px; }
.nx-tile__num {
  position: absolute; top: 1rem; right: 1.15rem;
  font-family: var(--nx-font-mono); font-size: .7rem; letter-spacing: .1em;
  color: rgba(255,255,255,.24);
}
.nx-tile .nx-link { margin-top: auto; padding-top: 1rem; position: relative; }

/* light variant */
.nx-tile--light { background: #fff; border-color: var(--nx-line); }
.nx-tile--light h3 { color: var(--nx-text); }
.nx-tile--light p { color: var(--nx-body); }
.nx-tile--light .nx-tile__ico { background: var(--nx-grad-soft); border-color: rgba(0,140,254,.16); color: var(--nx-blue-600); }
.nx-tile--light:hover { border-color: var(--nx-line-strong); background: #fff; box-shadow: var(--nx-shadow); }
.nx-tile--light .nx-tile__num { color: var(--nx-muted); opacity: .5; }

/* ---------- AI capability map ---------- */
.nx-map__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.6rem, 1rem + 2.6vw, 3.4rem); align-items: start;
}
.nx-map__list { display: grid; gap: .3rem; }
.nx-map__btn {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: .9rem;
  width: 100%; text-align: left;
  padding: .82rem .95rem; border-radius: 11px; border: 1px solid transparent;
  color: var(--nx-on-dark-mut);
  transition: background .3s var(--nx-ease), border-color .3s var(--nx-ease), color .3s var(--nx-ease);
}
.nx-map__btn i {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: var(--nx-teal); transition: background .3s var(--nx-ease), color .3s var(--nx-ease);
}
.nx-map__btn i svg { width: 16px; height: 16px; }
.nx-map__btn b {
  font-family: var(--nx-font-display); font-size: 1.02rem; font-weight: 600;
  color: #fff; letter-spacing: -.018em;
}
.nx-map__btn em {
  font-style: normal; font-family: var(--nx-font-mono); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.58);
}
.nx-map__btn:hover { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.1); }
.nx-map__btn.is-active { background: rgba(0,140,254,.11); border-color: rgba(0,140,254,.38); }
.nx-map__btn.is-active i { background: var(--nx-grad); color: #04121f; border-color: transparent; }
.nx-map__btn.is-active em { color: var(--nx-teal); }

.nx-map__panel {
  position: sticky; top: 96px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(170deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
}
.nx-map__view { padding: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); }
.nx-map__view[hidden] { display: none; }
.nx-map__view h3 { color: #fff; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin-bottom: .7rem; }
.nx-map__view > p { color: var(--nx-on-dark-mut); font-size: .96rem; }
.nx-map__meta { display: grid; gap: 1.1rem; margin: 1.4rem 0; }
.nx-map__meta h4 {
  font-family: var(--nx-font-mono); font-size: .66rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.58); margin: 0 0 .45rem;
}
.nx-map__meta ul { display: grid; gap: .35rem; }
.nx-map__meta li { position: relative; padding-left: 1.05rem; font-size: .88rem; color: var(--nx-on-dark-mut); }
.nx-map__meta li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--nx-teal);
}
.nx-map__value {
  padding: .85rem 1rem; border-radius: 10px;
  background: rgba(0,219,178,.08); border: 1px solid rgba(0,219,178,.22);
  font-size: .88rem; color: #CFF7EC;
}
.nx-map__value strong { color: #fff; }

/* ---------- Deployment pipeline ---------- */
.nx-pipe { position: relative; display: flex; align-items: stretch; overflow-x: auto; padding: .3rem .3rem 1rem; }
.nx-pipe__stage {
  position: relative; flex: 1 0 138px; min-width: 138px; padding: 1.15rem 1rem;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.035);
  transition: background .35s var(--nx-ease), border-color .35s var(--nx-ease), transform .35s var(--nx-ease);
}
.nx-pipe__stage:first-child { border-radius: 12px 0 0 12px; }
.nx-pipe__stage:last-child { border-radius: 0 12px 12px 0; }
.nx-pipe__stage + .nx-pipe__stage { border-left: 0; }
.nx-pipe__stage:hover { background: rgba(0,140,254,.1); border-color: rgba(0,140,254,.4); transform: translateY(-3px); z-index: 2; }
.nx-pipe__stage span {
  display: block; font-family: var(--nx-font-mono); font-size: .64rem;
  letter-spacing: .12em; color: rgba(255,255,255,.58); margin-bottom: .5rem;
}
.nx-pipe__stage b {
  display: block; font-family: var(--nx-font-display); font-size: 1rem;
  color: #fff; letter-spacing: -.015em; margin-bottom: .35rem;
}
.nx-pipe__stage p { font-size: .79rem; color: var(--nx-on-dark-mut); margin: 0; line-height: 1.45; }
.nx-pipe__bar { position: relative; height: 2px; margin: 0 .3rem 1.4rem; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.nx-pipe__bar i {
  position: absolute; inset: 0; width: 22%;
  background: linear-gradient(90deg, transparent, var(--nx-blue), var(--nx-teal), transparent);
  animation: nx-run 3.4s linear infinite;
}
@keyframes nx-run { from { transform: translateX(-110%); } to { transform: translateX(560%); } }

/* ---------- Workflow rows ---------- */
.nx-flows { display: grid; gap: 1rem; }
.nx-flowrow {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1rem, .6rem + 1.4vw, 2rem); align-items: center;
  padding: clamp(1.1rem, .9rem + .9vw, 1.7rem);
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  background: rgba(255,255,255,.03);
  transition: border-color .4s var(--nx-ease), background .4s var(--nx-ease);
}
.nx-flowrow:hover { border-color: rgba(0,219,178,.32); background: rgba(0,219,178,.045); }
.nx-flowrow h3 { color: #fff; font-size: 1.12rem; margin-bottom: .3rem; }
.nx-flowrow p { font-size: .86rem; color: var(--nx-on-dark-mut); margin: 0; }
.nx-chain { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.nx-chain span {
  padding: .48rem .8rem; border-radius: 8px;
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.13);
  font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.9); white-space: nowrap;
}
.nx-chain span.is-ai { background: rgba(0,140,254,.16); border-color: rgba(0,140,254,.42); color: #BFE3FF; }
.nx-chain i { width: 14px; height: 1px; background: rgba(255,255,255,.28); flex: none; position: relative; }
.nx-chain i::after {
  content: ''; position: absolute; right: -1px; top: -2.5px;
  border-left: 5px solid rgba(255,255,255,.4);
  border-top: 3px solid transparent; border-bottom: 3px solid transparent;
}

/* ---------- Use case cards ---------- */
.nx-usecase {
  padding: clamp(1.2rem, 1rem + .8vw, 1.7rem);
  border: 1px solid var(--nx-line); border-radius: var(--nx-radius); background: var(--nx-surface);
  transition: border-color .35s var(--nx-ease), transform .35s var(--nx-ease), box-shadow .35s var(--nx-ease);
}
.nx-usecase:hover { border-color: var(--nx-line-strong); transform: translateY(-3px); box-shadow: var(--nx-shadow); }
.nx-usecase__sector {
  display: inline-block; margin-bottom: .7rem; padding: .24rem .58rem;
  border-radius: 5px; background: var(--nx-bg-tint); border: 1px solid var(--nx-line);
  font-family: var(--nx-font-mono); font-size: .65rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--nx-navy-600);
}
.nx-usecase h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.nx-usecase p { font-size: .9rem; margin: 0; }

/* ---------- Related capabilities ---------- */
.nx-rels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
/* These sit at the foot of a page, directly under full-weight card sections,
   and read as thin text boxes by comparison. Given more room, a persistent
   arrow affordance and an accent rail that draws in on hover, they carry the
   weight of a real navigational choice rather than a footnote. */
.nx-rel {
  position: relative; display: block; overflow: hidden;
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--nx-line); border-radius: var(--nx-radius);
  background: var(--nx-surface);
  transition: border-color .3s var(--nx-ease), transform .3s var(--nx-ease),
              box-shadow .3s var(--nx-ease);
}
.nx-rel::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--nx-grad);
  transform: scaleY(0); transform-origin: top;
  transition: transform .38s var(--nx-ease);
}
.nx-rel::after {
  content: ''; position: absolute; right: 1.4rem; bottom: 1.5rem;
  width: 17px; height: 17px;
  background: currentColor;
  -webkit-mask: var(--nx-arrow) center / contain no-repeat;
  mask: var(--nx-arrow) center / contain no-repeat;
  color: var(--nx-muted); opacity: .55;
  transition: transform .3s var(--nx-ease), opacity .3s var(--nx-ease), color .3s var(--nx-ease);
}
.nx-rel:hover { border-color: var(--nx-blue); transform: translateY(-3px); box-shadow: var(--nx-shadow); }
.nx-rel:hover::before { transform: scaleY(1); }
.nx-rel:hover::after { transform: translateX(4px); opacity: 1; color: var(--nx-blue); }
.nx-section--dark .nx-rel::after,
.nx-section--deep .nx-rel::after { color: rgba(255,255,255,.5); }
.nx-section--dark .nx-rel:hover::after,
.nx-section--deep .nx-rel:hover::after { color: var(--nx-teal); }
.nx-rel__eyebrow {
  display: block; font-family: var(--nx-font-mono); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--nx-blue-600); margin-bottom: .45rem;
}
.nx-rel__title {
  display: block; font-family: var(--nx-font-display); font-size: 1.04rem;
  font-weight: 600; color: var(--nx-text); letter-spacing: -.02em; margin-bottom: .3rem;
}
.nx-rel__desc { display: block; font-size: .875rem; color: var(--nx-body); line-height: 1.55; padding-right: 2rem; }

/* ---------- Browser mockup ---------- */
.nx-browser {
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, #0B2145, #04101F);
  box-shadow: 0 50px 90px -44px rgba(0,0,0,.85);
}
.nx-browser__bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .7rem .9rem; border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
.nx-browser__url {
  flex: 1; margin-left: .6rem; padding: .28rem .7rem; border-radius: 6px;
  background: rgba(255,255,255,.06); font-family: var(--nx-font-mono);
  font-size: .68rem; color: rgba(255,255,255,.45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nx-browser__body { padding: 1.15rem; }
.nx-browser__split { display: grid; grid-template-columns: 84px 1fr; gap: .85rem; }
.nx-browser__side { display: grid; gap: .4rem; align-content: start; }
.nx-browser__side i { height: 8px; border-radius: 4px; background: rgba(255,255,255,.09); display: block; }
.nx-browser__side i:first-child { background: var(--nx-grad); opacity: .85; }

/* ---------- Sticky storytelling ---------- */
.nx-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); }
.nx-story__sticky { position: sticky; top: 110px; align-self: start; }
.nx-story__steps { display: grid; gap: clamp(1rem, .8rem + 1vw, 1.6rem); }
/* A step row is three columns wide, sized for a full-width container. Inside the
   half-width story column that left the description about 120px, wrapping to six or
   seven lines. Here the description sits under its title instead. */
@media (min-width: 1101px) {
  .nx-story__steps .nx-step { grid-template-columns: 4.8rem minmax(0, 1fr); gap: .4rem 1.4rem; }
  .nx-story__steps .nx-step p { grid-column: 2; }
  .nx-story__steps .nx-step__num { white-space: nowrap; }
}

/* ---------- Technology ecosystem ---------- */
.nx-eco { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: .6rem; }
.nx-eco__item {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem .95rem; border-radius: 10px;
  border: 1px solid var(--nx-line); background: var(--nx-surface);
  font-size: .88rem; font-weight: 500; color: var(--nx-text);
  transition: border-color .3s var(--nx-ease), transform .3s var(--nx-ease), color .3s;
}
.nx-eco__item::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--nx-grad); flex: none; }
.nx-eco__item:hover { border-color: var(--nx-blue); transform: translateY(-2px); color: var(--nx-blue-600); }
.nx-section--dark .nx-eco__item { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.11); color: rgba(255,255,255,.88); }
.nx-section--dark .nx-eco__item:hover { border-color: var(--nx-teal); color: #fff; }

/* ---------- Metrics ---------- */
.nx-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--nx-line-dark); border-radius: 12px; overflow: hidden; }
.nx-metric { padding: 1.5rem 1.3rem; background: var(--nx-navy); }
.nx-metric b {
  display: block; font-family: var(--nx-font-display); font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem);
  font-weight: 700; color: #fff; letter-spacing: -.035em; line-height: 1; margin-bottom: .4rem;
}
.nx-metric span { font-size: .85rem; color: var(--nx-on-dark-mut); }

/* ---------- Line-masked text reveal ---------- */
.nx-lines { display: block; }
.nx-line { display: block; overflow: hidden; }
.nx-line > span { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1380px) {
  .nx-mega { width: min(1000px, calc(100vw - 2.5rem)); }
}
@media (max-width: 1120px) {
  /* the feature panel drops to a full-width footer row and lays out sideways */
  .nx-mega { width: min(760px, calc(100vw - 2rem)); }
  .nx-mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nx-mega__feature { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.3rem; }
  .nx-mega__feature p { margin-bottom: 0; flex: 1; }
  .nx-mega__feature .nx-btn { margin-top: 0; flex: none; }
  .nx-mega__feature h4 { flex: none; max-width: 14rem; }
}
@media (max-width: 1100px) {
  .nx-mega { width: min(820px, calc(100vw - 2.5rem)); }
  .nx-mega__grid { grid-template-columns: repeat(2, 1fr); }
  .nx-mega__feature { flex-direction: column; align-items: flex-start; }
  .nx-mega__feature p { margin-bottom: 1rem; }
  .nx-mega__feature h4 { max-width: none; }
}
@media (max-width: 1100px) {
  .nx-map__grid { grid-template-columns: 1fr; }
  .nx-map__panel { position: static; }
  .nx-metrics { grid-template-columns: repeat(2, 1fr); }
  .nx-rels { grid-template-columns: repeat(2, 1fr); }
  .nx-bento > * { grid-column: span 3; }
  .nx-bento .span-4, .nx-bento .span-6 { grid-column: span 6; }
}
@media (max-width: 1100px) {
  .nx-story { grid-template-columns: minmax(0, 1fr); }
  .nx-story__sticky { position: static; }
}
@media (max-width: 992px) {
  .nx-flowrow { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nx-bento > *, .nx-bento .span-3, .nx-bento .span-4 { grid-column: span 6; }
  .nx-rels { grid-template-columns: 1fr; }
  .nx-metrics { grid-template-columns: 1fr; }
  .nx-eco { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .nx-browser__split { grid-template-columns: 60px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-pipe__bar i { display: none; }
}

/* ---------- Line-reveal sizing ----------
   Each .nx-line must render as exactly one line or the mask animation breaks
   and the intended phrasing is lost, so display type is sized to the column
   it actually sits in rather than to the viewport alone. */
/* one hero type size for the whole site — the homepage is the same treatment
   as every internal page, not a variant of it */
.nx-hero .nx-display,
.nx-page-hero .nx-display { font-size: clamp(2.3rem, .9rem + 3.4vw, 4rem); }
/* Never nowrap: .nx-line has overflow:hidden for the mask, so a line that does
   not fit would be silently clipped rather than wrapped. Type is sized to fit
   instead, and a wrapped line still reveals correctly. */
@media (max-width: 560px) {
  .nx-hero .nx-display, .nx-page-hero .nx-display { font-size: clamp(1.95rem, 1.1rem + 4.2vw, 2.6rem); }
}

@media (max-width: 620px) {
  /* the kicker steals the width the capability name needs at this size */
  .nx-map__btn { grid-template-columns: 34px 1fr; }
  .nx-map__btn em { display: none; }
}

/* ---------- Case study: full-width variant ----------
   Same component, same tokens — only the column arrangement differs, so the
   third case study breaks the alternating rhythm without introducing a new style. */
.nx-case--wide { grid-template-columns: 1fr; gap: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); }
.nx-case--wide .nx-case__media { aspect-ratio: 21 / 8; order: -1; }
.nx-case--wide .nx-case__wide-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(1.4rem, 1rem + 2vw, 3rem);
  align-items: start;
}
.nx-case--wide .nx-case__facts { margin: 0; }
@media (max-width: 992px) {
  .nx-case--wide .nx-case__media { aspect-ratio: 16 / 9; }
  .nx-case--wide .nx-case__wide-body { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
  /* stacked: media always leads regardless of alternation */
  .nx-case:nth-of-type(even) .nx-case__media { order: -1; }
}

/* ---------- Narrow-container variants ----------
   Both of these are container-width problems, not viewport-width problems: the
   component is fine full-width but sits in a half-width column, where a media
   query on the viewport cannot help it. */

/* Stat tiles wrap instead of being crushed inside a browser mockup. */
.nx-mock__row { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }

/* Two-column step rows for use inside a .nx-split column. */
.nx-steps--compact .nx-step {
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: .4rem 1rem;
  padding-block: clamp(1.1rem, .9rem + .7vw, 1.5rem);
}
.nx-steps--compact .nx-step h3 { font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); }
.nx-steps--compact .nx-step p { grid-column: 2; font-size: .9rem; }
.nx-steps--compact .nx-step__num { padding-top: .2rem; }

/* ---------- Mobile menu: group labels inside a long submenu ---------- */
.nx-mobile__label {
  display: block; padding: 1rem 0 .4rem 1rem;
  font-family: var(--nx-font-mono); font-size: .66rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
  border-left: 1px solid var(--nx-line-dark);
}
.nx-mobile__label:first-child { padding-top: .2rem; }

/* ---------- Active navigation state ----------
   Subtle: brand accent on the label plus a short gradient underline. */
.nx-nav > li.is-current > a { color: var(--nx-blue-600); }
.nx-header:not(.is-stuck):not(.nx-header--light) .nx-nav > li.is-current > a { color: var(--nx-teal); }
.nx-nav > li.is-current > a::after {
  content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .18rem;
  height: 2px; border-radius: 2px; background: var(--nx-grad);
}
.nx-nav > li > a { position: relative; }

/* ---------- Project card (homepage portfolio) ----------
   Same tokens as every other card: white surface, --nx-line border, 14px radius,
   the shared lift-on-hover. Only the media ratio differs. */
.nx-work {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--nx-line); border-radius: var(--nx-radius);
  background: var(--nx-surface);
  transition: transform .4s var(--nx-ease), box-shadow .4s var(--nx-ease), border-color .4s var(--nx-ease);
}
.nx-work:hover { transform: translateY(-5px); box-shadow: var(--nx-shadow); border-color: var(--nx-line-strong); }
.nx-work__shot {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  background: var(--nx-bg-soft); border-bottom: 1px solid var(--nx-line);
}
.nx-work__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--nx-ease); }
.nx-work:hover .nx-work__shot img { transform: scale(1.04); }
.nx-work__body { padding: clamp(1.1rem, .9rem + .7vw, 1.5rem); }
.nx-work__body .nx-tags { margin-bottom: .7rem; }
.nx-work__body h3 { font-size: clamp(1.05rem, .98rem + .4vw, 1.28rem); margin: 0; }

/* on a dark section the card keeps the dark-surface treatment used elsewhere */
.nx-section--dark .nx-work {
  background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .1);
}
.nx-section--dark .nx-work:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.nx-section--dark .nx-work__shot { background: rgba(255, 255, 255, .04); border-bottom-color: rgba(255, 255, 255, .1); }
.nx-section--dark .nx-work__body h3 { color: #fff; }
.nx-section--dark .nx-work .nx-tag {
  background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .82);
}

/* industry cards can carry tags in place of a link */
.nx-ind__body .nx-tags { margin-top: .2rem; }
.nx-ind__body .nx-tag {
  background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .88);
}

/* ---------- Deep brand section ----------
   Same treatment as .nx-section--dark on the deeper navy rung. Exists so pages
   never carry `style="background:...;color:..."` — §10: no per-page colour. */
.nx-section--deep { background: var(--nx-navy-deep); color: var(--nx-on-dark); }
.nx-section--deep h2,
.nx-section--deep h3,
.nx-section--deep h4 { color: #fff; }
.nx-section--deep p { color: var(--nx-on-dark-mut); }
.nx-section--deep .nx-eyebrow { color: var(--nx-teal); }
.nx-section--deep .nx-lead { color: var(--nx-on-dark-mut); }
.nx-section--deep .nx-link { color: var(--nx-teal); }
.nx-section--deep .nx-link:hover { color: #fff; }
.nx-section--deep .nx-step { border-color: var(--nx-line-dark); }
.nx-section--deep .nx-step:last-child { border-bottom-color: var(--nx-line-dark); }
.nx-section--deep .nx-step:hover { background: rgba(255, 255, 255, .035); }
.nx-section--deep .nx-step:hover .nx-step__num { color: var(--nx-teal); }
.nx-section--deep .nx-checks li { color: var(--nx-on-dark-mut); }
.nx-section--deep .nx-checks li strong { color: #fff; }
.nx-section--deep .nx-checks li::before {
  background-color: rgba(0, 219, 178, .12); border-color: rgba(0, 219, 178, .36);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300DBB2' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.nx-section--deep .nx-eco__item {
  background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .11); color: rgba(255, 255, 255, .88);
}
.nx-section--deep .nx-eco__item:hover { border-color: var(--nx-teal); color: #fff; }
.nx-section--deep .nx-form__note { color: rgba(255, 255, 255, .6); }

/* ---------- Animated hero visual ----------
   Reuses the .nx-mock frame (border, radius, shadow) so the animation sits in
   exactly the same treatment as the static console it replaces. */
.nx-mock--anim { display: block; padding: 0; line-height: 0; }
.nx-mock--anim img {
  display: block; width: 100%; height: auto;
  border-radius: 13px;              /* inside the 14px frame border */
}

/* ==========================================================================
   Hero — Nexlavision Engineering System

   Every looping animation below drives only `transform` and `opacity`, so the
   whole panel composites on the GPU and never triggers layout. The loop is one
   shared 14s cycle: nodes light in sequence, a pulse travels each connector,
   and the throughput bars breathe — all phase-offset from the same clock so
   the panel reads as one system rather than several unrelated animations.

   Nothing here is decorative-only markup: the stage names and status labels
   are real text, selectable and available to assistive technology.
   ========================================================================== */

/* ---------- Layout: roughly 45 / 55 ---------- */
.nx-hero__inner {
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: clamp(2.5rem, 1rem + 4vw, 4.8rem);
}
.nx-hero__copy { min-width: 0; }

/* ---------- Eyebrow ---------- */
.nx-eyebrow--tech { display: inline-flex; align-items: center; gap: .55rem; letter-spacing: .2em; }
.nx-eyebrow--tech i { font-style: normal; opacity: .45; }

/* ---------- Capability strip ---------- */
.nx-hero__caps {
  /* Grid rather than a wrapping flex row: at the widths where four items do
     not fit, free wrapping leaves a ragged 3 + 1. A 2 x 2 block is deliberate. */
  display: grid; grid-template-columns: repeat(4, max-content); align-items: center;
  gap: .7rem 1.6rem;
  margin: 2.3rem 0 0; padding: 1.3rem 0 0;
  border-top: 1px solid var(--nx-line-dark);
  list-style: none;
}
.nx-hero__caps li {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--nx-font-mono); font-size: .78rem; letter-spacing: .05em;
  color: rgba(255, 255, 255, .62);
}
.nx-hero__caps li::before {
  content: ''; flex: none; width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid rgba(0, 219, 178, .45);
  background: rgba(0, 219, 178, .1)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300DBB2' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 9px 9px no-repeat;
}

/* ---------- Background: slow drift, atmosphere, drifting data points ---------- */
.nx-grid-lines--drift { animation: nx-grid-drift 44s linear infinite; }
@keyframes nx-grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-76px, -76px, 0); }   /* exactly one cell, so the loop is seamless */
}
.nx-hero__bg::before { animation: nx-aura 16s ease-in-out infinite; }
.nx-hero__bg::after  { animation: nx-aura 21s ease-in-out infinite reverse; }
@keyframes nx-aura {
  0%, 100% { opacity: .8;  transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.07); }
}

.nx-hero__particles { position: absolute; inset: 0; overflow: hidden; }
.nx-hero__particles i {
  position: absolute; left: var(--x); top: var(--y);
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--nx-teal); opacity: 0;
  box-shadow: 0 0 7px 1px rgba(0, 219, 178, .55);
  animation: nx-float var(--t) linear var(--d) infinite;
}
@keyframes nx-float {
  0%       { opacity: 0;   transform: translate3d(0, 0, 0); }
  12%      { opacity: .55; }
  80%      { opacity: .35; }
  100%     { opacity: 0;   transform: translate3d(26px, -150px, 0); }
}

/* ---------- The panel ---------- */
.nx-esys-stage { position: relative; min-width: 0; perspective: 1400px; }
.nx-esys {
  position: relative; margin: 0;
  transform-style: preserve-3d;
  /* set by the pointer-tilt handler; falls back to flat with no JS */
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.nx-esys__aura {
  position: absolute; inset: -14% -10% -18%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 140, 254, .34), transparent 62%),
    radial-gradient(ellipse at 78% 84%, rgba(0, 219, 178, .24), transparent 60%);
  filter: blur(38px); opacity: .85; z-index: -1;
  animation: nx-aura 19s ease-in-out infinite;
}

.nx-esys__panel {
  position: relative; overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .13);
  background:
    linear-gradient(180deg, rgba(12, 35, 72, .92) 0%, rgba(5, 18, 37, .95) 100%);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .07);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* the panel's own faint engineering grid */
.nx-esys__panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 100% 90% at 50% 30%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 30%, #000 20%, transparent 80%);
}

/* ---------- Title bar ---------- */
.nx-esys__bar {
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .03);
}
.nx-esys__dots { display: inline-flex; gap: .35rem; flex: none; }
.nx-esys__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); }
.nx-esys__name {
  font-family: var(--nx-font-mono); font-size: .72rem; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255, 255, 255, .58);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nx-esys__live {
  margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; flex: none;
  font-family: var(--nx-font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--nx-teal);
}
.nx-esys__live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--nx-teal);
  animation: nx-blink 3.4s ease-in-out infinite;
}
@keyframes nx-blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- Stage flow ---------- */
.nx-esys__flow {
  display: flex; align-items: stretch; gap: 0;
  margin: 0; padding: 1.5rem 1.1rem 1.35rem; list-style: none;
}
.nx-esys__node {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  text-align: center;
}
.nx-esys__ico {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .6);
  transition: none;
}
.nx-esys__ico svg { width: 20px; height: 20px; }
.nx-esys__label { display: block; min-width: 0; }
.nx-esys__label b {
  display: block; font-family: var(--nx-font-display); font-weight: 600;
  font-size: .82rem; letter-spacing: -.01em; color: rgba(255, 255, 255, .9);
  line-height: 1.25;
}
.nx-esys__label span {
  display: block; font-family: var(--nx-font-mono); font-size: .63rem;
  letter-spacing: .04em; color: rgba(255, 255, 255, .58); line-height: 1.35;
}
/* The stage lights as the pulse reaches it, then settles back. One 14s cycle
   shared by the whole panel; each stage runs 1.35s behind the one before it. */
.nx-esys__node .nx-esys__ico {
  animation: nx-node-ico 14s ease-in-out infinite;
  animation-delay: calc(var(--n) * 1.35s);
}
@keyframes nx-node-ico {
  0%, 4% {
    border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.6); box-shadow: 0 0 0 0 rgba(0,219,178,0);
    transform: translate3d(0,0,0) scale(1);
  }
  10%, 22% {
    border-color: rgba(0,219,178,.6); background: rgba(0,219,178,.12);
    color: #fff; box-shadow: 0 0 22px -4px rgba(0,219,178,.65);
    transform: translate3d(0,-2px,0) scale(1.05);
  }
  34%, 100% {
    border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.6); box-shadow: 0 0 0 0 rgba(0,219,178,0);
    transform: translate3d(0,0,0) scale(1);
  }
}

/* ---------- Connectors: a pulse travels each one in turn ---------- */
.nx-esys__wire {
  flex: 0 0 auto; width: clamp(14px, 2.2vw, 30px);
  position: relative; align-self: flex-start; margin-top: 20px;
  height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.nx-esys__wire i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--nx-teal), transparent);
  transform: translate3d(-100%, 0, 0);
  animation: nx-pulse 14s ease-in-out infinite;
  animation-delay: calc(var(--n) * 1.35s + .55s);
}
@keyframes nx-pulse {
  0%       { transform: translate3d(-100%, 0, 0); opacity: 0; }
  3%       { opacity: 1; }
  11%      { transform: translate3d(100%, 0, 0); opacity: 1; }
  13%, 100%{ transform: translate3d(100%, 0, 0); opacity: 0; }
}

/* ---------- Status rows ---------- */
.nx-esys__rows {
  margin: 0; padding: 0 1.1rem 1.1rem; list-style: none;
  display: grid; gap: .42rem;
}
.nx-esys__rows li {
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem .8rem; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
  animation: nx-row 14s ease-in-out infinite;
  animation-delay: calc(var(--r) * 1.35s + 1.1s);
}
@keyframes nx-row {
  0%, 6%    { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
  12%, 24%  { border-color: rgba(0,140,254,.32);  background: rgba(0,140,254,.08); }
  34%, 100% { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
}
.nx-esys__task {
  font-size: .85rem; color: rgba(255, 255, 255, .82);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nx-esys__state {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--nx-font-mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase;
}
.nx-esys__state::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.nx-esys__state[data-state="run"]  { color: #4FB4FF; }
.nx-esys__state[data-state="ok"]   { color: var(--nx-teal); }
.nx-esys__state[data-state="live"] { color: #7FE9CE; }
.nx-esys__state[data-state="run"]::before { animation: nx-blink 2.2s ease-in-out infinite; }

/* ---------- Throughput graph ---------- */
.nx-esys__graph {
  padding: 0 1.1rem 1.25rem;
}
.nx-esys__graph-label {
  display: block; margin-bottom: .55rem;
  font-family: var(--nx-font-mono); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, .3);
}
.nx-esys__bars {
  display: flex; align-items: flex-end; gap: 3px; height: 46px;
  padding: .5rem .7rem; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .025);
}
.nx-esys__bars i {
  flex: 1 1 0; min-width: 0; height: 100%; border-radius: 2px;
  transform-origin: bottom;
  background: linear-gradient(180deg, var(--nx-blue), rgba(0, 140, 254, .18));
  transform: scaleY(.35);
  animation: nx-bar 5.6s ease-in-out infinite;
  animation-delay: calc(var(--b) * -.35s);
}
.nx-esys__bars i:nth-child(even) {
  background: linear-gradient(180deg, var(--nx-teal), rgba(0, 219, 178, .18));
}
@keyframes nx-bar {
  0%, 100% { transform: scaleY(.28); }
  50%      { transform: scaleY(.95); }
}

/* Four across only where the column is genuinely wide enough for them. */
@media (min-width: 993px) and (max-width: 1520px) {
  .nx-hero__caps { grid-template-columns: repeat(2, max-content); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .nx-esys__label span { display: none; }          /* keep the stage names legible */
  .nx-esys__ico { width: 38px; height: 38px; }
}

@media (max-width: 992px) {
  .nx-hero__inner { grid-template-columns: 1fr; }
  .nx-esys-stage { max-width: 620px; perspective: none; }
  .nx-esys { transform: none; }                    /* no tilt once it is stacked */
}

/* ---------- Mobile: an intentional compact composition ---------- */
@media (max-width: 620px) {
  .nx-hero__caps { grid-template-columns: repeat(2, max-content); gap: .6rem 1.2rem; }
  .nx-hero__caps li { font-size: .72rem; }
  .nx-esys__flow { padding: 1.1rem .75rem .9rem; }
  .nx-esys__wire { width: 8px; margin-top: 17px; }
  .nx-esys__ico { width: 32px; height: 32px; border-radius: 9px; }
  .nx-esys__ico svg { width: 16px; height: 16px; }
  .nx-esys__label b { font-size: .68rem; }
  .nx-esys__bar { padding: .7rem .85rem; }
  .nx-esys__name { font-size: .62rem; letter-spacing: .1em; }
  .nx-esys__rows { padding: 0 .75rem .8rem; gap: .34rem; }
  .nx-esys__rows li { padding: .5rem .65rem; }
  .nx-esys__task { font-size: .78rem; }
  .nx-esys__state { font-size: .6rem; }
  .nx-esys__graph { padding: 0 .75rem .9rem; }
  .nx-esys__bars { height: 34px; }
  /* Particles and the aura are the two effects that cost the most on a phone
     GPU for the least visual return at this size. */
  .nx-hero__particles { display: none; }
  .nx-esys__aura { filter: blur(26px); opacity: .6; animation: none; }
}

/* Only the last eight bars are worth keeping when the panel is this narrow —
   the rest render sub-pixel and just cost paint. */
@media (max-width: 460px) {
  .nx-esys__bars i:nth-child(n + 13) { display: none; }
}

/* ---------- Reduced motion: the same composition, held still ----------
   Every stage is left lit and every status settled, so the panel still reads
   as a complete system rather than an animation caught mid-frame. */
@media (prefers-reduced-motion: reduce) {
  .nx-grid-lines--drift,
  .nx-hero__bg::before,
  .nx-hero__bg::after,
  .nx-hero__particles i,
  .nx-esys__aura,
  .nx-esys__live i,
  .nx-esys__node .nx-esys__ico,
  .nx-esys__wire i,
  .nx-esys__rows li,
  .nx-esys__state[data-state="run"]::before,
  .nx-esys__bars i { animation: none !important; }

  .nx-hero__particles { display: none; }
  .nx-esys { transform: none !important; transition: none; }

  .nx-esys__node .nx-esys__ico {
    border-color: rgba(0, 219, 178, .45);
    background: rgba(0, 219, 178, .1);
    color: #fff;
  }
  .nx-esys__wire i { transform: none; opacity: .55; }
  .nx-esys__bars i:nth-child(3n)     { transform: scaleY(.85); }
  .nx-esys__bars i:nth-child(3n + 1) { transform: scaleY(.5); }
  .nx-esys__bars i:nth-child(3n + 2) { transform: scaleY(.68); }
}

/* The homepage headline is three lines in a 45% column, so it is sized to that
   column rather than to the shared page-hero scale — a line that overflows is
   silently clipped, because .nx-line has overflow:hidden for the reveal mask. */
.nx-hero .nx-display { font-size: clamp(2.1rem, .85rem + 2.7vw, 3.35rem); }
@media (max-width: 560px) {
  .nx-hero .nx-display { font-size: clamp(1.85rem, 1rem + 4vw, 2.4rem); }
}

/* ==========================================================================
   Hero motion layer

   The panel alone reads as a still image between pipeline stages. These four
   additions keep the composition continuously in motion — beams crossing the
   grid, the panel breathing, a scan passing over it, and two readouts drifting
   beside it. All of it is transform and opacity, and all of it stops under
   prefers-reduced-motion.
   ========================================================================== */

/* ---------- Light trails across the background ---------- */
.nx-hero__beams {
  position: absolute; inset: 0; overflow: hidden;
  /* Weighted to the right so the trails animate around the panel rather than
     across the headline and paragraph, where they compete with reading. */
  mask-image: linear-gradient(90deg, transparent 8%, rgba(0,0,0,.35) 34%, #000 62%);
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, rgba(0,0,0,.35) 34%, #000 62%);
}
.nx-hero__beams i {
  position: absolute; top: var(--top); left: -42%;
  width: 40%; height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(0, 219, 178, .5) 38%, rgba(0, 140, 254, .42) 62%, transparent);
  opacity: 0;
  animation: nx-beam var(--dur) linear var(--delay) infinite;
}
/* A second, brighter head on each trail, so it reads as something travelling
   rather than as a gradient sliding past. */
.nx-hero__beams i::after {
  content: ''; position: absolute; right: 0; top: -1px;
  width: 46px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(120, 245, 220, .9));
  filter: blur(1px);
}
@keyframes nx-beam {
  0%        { transform: translate3d(0, 0, 0);    opacity: 0; }
  6%        { opacity: .9; }
  90%       { opacity: .9; }
  100%      { transform: translate3d(365%, 0, 0); opacity: 0; }
}

/* ---------- The panel breathes ----------
   Applied to the panel rather than to .nx-esys, because that element's
   transform is already owned by the pointer-tilt handler. */
.nx-esys__panel { animation: nx-bob 11s ease-in-out infinite; }
@keyframes nx-bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}
/* The aura runs a longer cycle, so the panel separates from its own glow. */
.nx-esys__aura { animation: nx-aura 19s ease-in-out infinite, nx-bob 17s ease-in-out infinite; }

/* ---------- A scan passes down the panel on the shared 14s clock ---------- */
.nx-esys__panel::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 150px;
  pointer-events: none; z-index: 2;
  background: linear-gradient(180deg,
    transparent, rgba(0, 219, 178, .09) 45%, rgba(0, 219, 178, .05) 55%, transparent);
  animation: nx-scan 14s cubic-bezier(.55, 0, .45, 1) infinite;
}
@keyframes nx-scan {
  0%       { transform: translate3d(0, -150px, 0); opacity: 0; }
  8%       { opacity: 1; }
  55%      { transform: translate3d(0, 560px, 0);  opacity: 1; }
  62%, 100%{ transform: translate3d(0, 560px, 0);  opacity: 0; }
}

/* ---------- Drifting readouts ---------- */
.nx-esys-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem .85rem; border-radius: 10px;
  font-family: var(--nx-font-mono); font-size: .73rem; letter-spacing: .02em;
  color: #fff; white-space: nowrap;
  background: rgba(8, 26, 52, .82);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  animation: nx-drift 9s ease-in-out infinite;
}
.nx-esys-chip svg { width: 15px; height: 15px; flex: none; }
/* Outside the panel, not over it — anchored to the corners so they never
   cover a stage label or the throughput readout. */
.nx-esys-chip--a { left: -22px;  bottom: -16px; }
.nx-esys-chip--b { right: -18px; top: -15px; animation-duration: 12s; animation-delay: -4s; }
@keyframes nx-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -14px, 0); }
}

/* Below this the hero stacks and the panel is narrow: the chips would sit over
   the flow labels, and there is no gutter left for their negative offsets. */
@media (max-width: 1199px) {
  .nx-esys-chip { display: none; }
}
@media (max-width: 620px) {
  .nx-hero__beams { display: none; }
  .nx-esys__panel, .nx-esys__aura { animation: none; }
  .nx-esys__panel::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-hero__beams { display: none; }
  .nx-esys__panel::after { display: none; }
  .nx-esys__panel,
  .nx-esys-chip { animation: none !important; transform: none !important; }
  .nx-esys__aura { animation: none !important; }
}

/* ==========================================================================
   Technology stack — grouped category cards

   Replaces a single 22-chip row that read as a database dump. The categories
   are the scannable layer; the chips underneath are deliberately quiet, so the
   eye lands on "Backend / Frontend / AI & Automation" before it lands on any
   individual technology.

   Spans come from the data (`--span`, out of 12) rather than from a uniform
   grid, so a five-technology category is visibly wider than a two — the rows
   still add up to 12 either way.

   `.nx-eco` is untouched: it is still the flat chip row used on
   src/pages/cloud-devops.html.
   ========================================================================== */

/* The stack sits directly above the "How we work" section, whose own top
   padding already supplies the breathing room. Two full paddings back to back
   left roughly 220px of dead space between them. */
.nx-section--flush-b { padding-bottom: clamp(2.6rem, 1.7rem + 3vw, 4.4rem); }

/* ---------- Section ground ----------
   White cards on a near-white section had nothing to sit on. A dot grid plus
   two soft brand blooms give the panel depth, so the cards read as lifted
   objects rather than as outlined regions of the background. The layer is
   pinned behind everything and cannot take pointer events. */
.nx-stack-section { position: relative; isolation: isolate; }
.nx-stack-section::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52rem 26rem at 12% -8%, rgba(0, 140, 254, .10), transparent 62%),
    radial-gradient(44rem 24rem at 92% 8%, rgba(0, 219, 178, .09), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(1, 17, 47, .055) 1px, transparent 0);
  background-size: auto, auto, 22px 22px;
  /* Fade the texture out at the edges so it never collides with the sections
     above and below, which have their own flat grounds. */
  -webkit-mask-image: linear-gradient(#000 0%, #000 72%, transparent 100%);
          mask-image: linear-gradient(#000 0%, #000 72%, transparent 100%);
}

/* ---------- Editorial intro: heading left, standfirst right ---------- */
.nx-stack-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(1rem, .2rem + 2.4vw, 3.4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 1.4rem + 1.8vw, 3rem);
}
.nx-stack-top__note { margin-bottom: .35rem; max-width: 34rem; }

/* ---------- Category grid ----------
   Each card layers three effects, all on compositor-friendly properties so a
   hover never costs a layout pass: a pointer-tracked spotlight (::before, fed
   --mx/--my by the shared handler in nexla.js that also drives .nx-tile), a
   gradient hairline that fades in over the resting border (::after, masked so
   only the 1px ring paints), and a lift. Card content is raised above both. */
.nx-stack {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(.8rem, .5rem + .9vw, 1.15rem);
  list-style: none; margin: 0; padding: 0;
}
.nx-stack__card {
  /* One radius token for the card and the gradient ring that traces it — they
     have to stay in step or the ring cuts a corner. */
  --card-r: 18px;
  position: relative;
  grid-column: auto / span var(--span, 4);
  display: flex; flex-direction: column;
  padding: clamp(1.4rem, 1.05rem + 1vw, 2rem);
  /* A whisper of brand wash off the top-left corner, so a white card on a
     near-white section reads as a raised object before any hover. */
  background:
    linear-gradient(158deg, rgba(0, 140, 254, .05) 0%, rgba(0, 219, 178, .03) 26%,
                    rgba(255, 255, 255, 0) 58%),
    var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--card-r);
  box-shadow: 0 1px 2px rgba(1, 17, 47, .04), 0 10px 26px -18px rgba(1, 17, 47, .22);
  transition: box-shadow .3s var(--nx-ease), transform .3s var(--nx-ease),
              border-color .3s var(--nx-ease);
}
.nx-stack__card > * { position: relative; z-index: 1; }

/* Spotlight. The fallback centres it, so a coarse pointer that never fires
   pointermove still gets a sensible glow rather than one pinned to a corner. */
.nx-stack__card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              rgba(0, 140, 254, .13), transparent 62%);
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--nx-ease);
}
/* Gradient hairline. Inset by the border width so the ring covers the border
   box rather than the padding box, which is what inset:0 would resolve to. */
.nx-stack__card::after {
  content: ''; position: absolute; inset: -1px;
  border-radius: calc(var(--card-r) + 1px);
  padding: 1px; background: var(--nx-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--nx-ease);
}
/* Two selectors for one effect, because the scroll-reveal rule
   `.nx-js [data-reveal].is-revealed { transform: none }` scores (0,3,0) and
   the cards are reveal targets — a bare `.nx-stack__card:hover` at (0,2,0)
   loses to it and the lift never paints. The second selector reaches (0,4,0)
   to win once revealed; the first still covers the script-disabled page. */
.nx-stack__card:hover,
.nx-js .nx-stack__card.is-revealed:hover {
  transform: translateY(-4px);
  border-color: transparent;          /* the gradient ring takes over the edge */
  box-shadow: 0 22px 46px -22px rgba(1, 17, 47, .28), 0 3px 10px rgba(1, 17, 47, .05);
}
.nx-stack__card:hover::before,
.nx-stack__card:hover::after { opacity: 1; }

/* ---------- Card head ----------
   The head carries a gradient hairline beneath it that draws out from the left
   on hover, so the eye is led across the card rather than at it. */
.nx-stack__head {
  display: flex; align-items: center; gap: .8rem;
  padding-bottom: .85rem; margin-bottom: .9rem;
  border-bottom: 1px solid var(--nx-line);
}
.nx-stack__head::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px;
  width: 100%; background: var(--nx-grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--nx-ease);
}
.nx-stack__card:hover .nx-stack__head::after { transform: scaleX(1); }
.nx-stack__ico {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 13px;
  color: var(--nx-blue-600);
  background: var(--nx-grad-soft);
  border: 1px solid rgba(0, 140, 254, .18);
  transition: color .28s var(--nx-ease), background .28s var(--nx-ease),
              border-color .28s var(--nx-ease), transform .28s var(--nx-ease),
              box-shadow .28s var(--nx-ease);
}
.nx-stack__ico svg { width: 21px; height: 21px; }
.nx-stack__card:hover .nx-stack__ico {
  color: #fff;
  background: var(--nx-grad);
  border-color: transparent;
  transform: translateY(-2px) rotate(-4deg) scale(1.06);
  box-shadow: 0 10px 20px -10px rgba(0, 140, 254, .75);
}
.nx-stack__name {
  font-family: var(--nx-font-display);
  font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; margin: 0;
  color: var(--nx-text); line-height: 1.15;
}
/* The item count, promoted from a mono footnote to an oversized ghost numeral —
   it sets the editorial tone of the card and gives the head a right anchor. */
.nx-stack__count {
  margin-left: auto; flex: none;
  font-family: var(--nx-font-display);
  font-size: 2.1rem; font-weight: 700; line-height: 1;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--nx-line-strong);
  transition: -webkit-text-stroke-color .3s var(--nx-ease), opacity .3s var(--nx-ease);
  opacity: .9;
}
.nx-stack__card:hover .nx-stack__count {
  -webkit-text-stroke-color: var(--nx-blue);
  opacity: 1;
}
.nx-stack__note {
  font-size: .885rem; line-height: 1.62; color: var(--nx-body);
  margin: 0 0 1.25rem;
}

/* ---------- Technology chips ---------- */
.nx-stack__chips {
  display: flex; flex-wrap: wrap; gap: .42rem;
  list-style: none; margin: auto 0 0; padding: 0;
}
.nx-stack__chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .72rem .42rem .58rem;
  border: 1px solid var(--nx-line);
  border-radius: 999px;                 /* pills read lighter than the card */
  background: var(--nx-surface);
  box-shadow: 0 1px 2px rgba(1, 17, 47, .04);
  font-size: .805rem; font-weight: 500; color: var(--nx-text);
  white-space: nowrap;
  transition: border-color .2s var(--nx-ease), color .2s var(--nx-ease),
              background-color .2s var(--nx-ease), transform .2s var(--nx-ease),
              box-shadow .2s var(--nx-ease);
}
.nx-stack__chip::before {
  content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--nx-grad);
  transition: transform .2s var(--nx-ease), box-shadow .2s var(--nx-ease);
}
.nx-stack__chip:hover {
  border-color: var(--nx-blue);
  color: var(--nx-blue-600);
  background: var(--nx-surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -8px rgba(0, 140, 254, .5);
}
.nx-stack__chip:hover::before {
  transform: scale(1.5);
  box-shadow: 0 0 8px rgba(0, 219, 178, .8);
}
/* Chips deal themselves in once their card lands. `backwards` and no forwards
   fill is deliberate: during the stagger delay the chip holds the `from` state,
   and the moment it finishes the base rules own transform again, so the hover
   lift is not fighting a left-over animated value. No hidden resting state is
   needed — the card itself sits at opacity 0 until .is-revealed arrives. */
.nx-js .nx-stack__card.is-revealed .nx-stack__chip {
  animation: nx-chip-in .52s var(--nx-ease) backwards;
  animation-delay: calc(var(--i, 0) * .055s + .12s);
}
@keyframes nx-chip-in {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  /* Two up, ignoring the authored spans — at this width a five-wide card would
     leave its chips on four cramped lines. */
  .nx-stack__card { grid-column: auto / span 6; }
}
@media (max-width: 860px) {
  .nx-stack-top { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
  .nx-stack-top__note { margin-bottom: 0; }
}
@media (max-width: 700px) {
  .nx-stack { grid-template-columns: 1fr; }
  .nx-stack__card { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .nx-stack__chip { font-size: .76rem; padding: .3rem .55rem .3rem .45rem; }
  .nx-stack__name { font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-stack__card, .nx-stack__chip, .nx-stack__chip::before, .nx-stack__ico { transition: none; }
  .nx-stack__card:hover, .nx-stack__chip:hover { transform: none; }
  .nx-stack__card:hover .nx-stack__ico, .nx-stack__chip:hover::before { transform: none; }
  /* The spotlight tracks the cursor, so it is motion however cheap it is. */
  .nx-stack__card::before { display: none; }
  .nx-stack__head::after { transition: none; }
  .nx-js .nx-stack__card.is-revealed .nx-stack__chip { animation: none; }
}

/* ==========================================================================
   Mobile touch targets and minimum legible type

   Measured across all 42 pages at 320–768px: no page scrolled horizontally,
   but 43 footer links rendered ~18px tall and several mono labels fell below
   11px. WCAG 2.5.8 asks for a 24x24 minimum target, and sub-11px uppercase
   mono is hard work on a handset.

   Everything here is scoped to small screens, so the desktop composition is
   unchanged. Targets are enlarged with padding rather than by growing the
   text, so the visual rhythm of the footer stays as designed.
   ========================================================================== */
@media (max-width: 860px) {
  /* Footer link targets are handled in the base rules now; only the contact
     block and the legal bar need extra room once they stack. */
  .nx-footer__contact li { margin-bottom: .5rem; }
  .nx-footer__contact li a { padding-block: .2rem; }
  .nx-footer__bar nav { gap: .4rem 1.4rem; }
  .nx-footer__contact em { font-size: .8rem; }

  /* Inline mailto: links inside a sentence are deliberately left alone —
     WCAG 2.5.8 exempts targets in a block of text, and padding them would
     break the line box they sit in. */
  .nx-crumbs a { padding-block: .22rem; min-height: 24px; }

  /* Content labels lifted to a 12px floor. The two exceptions below are the
     hero panel's own title bar and axis caption: they are chrome inside a
     depiction of a product UI, and enlarging them breaks that panel's layout
     on a 320px screen — so they stay small deliberately. */
  .nx-mobile__label,
  .nx-crumbs,
  .nx-crumbs a,
  .nx-eyebrow,
  .nx-tag,
  .nx-hero__caps li,
  .nx-mega__col h4,
  .nx-strip__item em,
  .nx-map__btn em,
  .nx-usecase__sector,
  .nx-rel__eyebrow,
  .nx-badge-soon,
  .nx-node span,
  .nx-map__meta h4,
  .nx-case__tag { font-size: .76rem; }

  .nx-esys__name { font-size: .68rem; }
  .nx-esys__graph-label { font-size: .66rem; }
}

/* Finger-sized hit areas on coarse pointers. */
@media (pointer: coarse) {
  .nx-lang { min-height: 44px; }
  .nx-mobile__sub a { padding-block: .7rem; }
}

/* ---------- Lead-card grid ----------
   The capability grid is the most repeated block on the site: an identical
   three-column, six-card arrangement on 40 pages. Promoting the first card to
   a two-column lead gives the section a focal point and breaks the uniform
   rhythm, using only the order the content is already authored in — no copy
   changes and no reordering.

   Six cards still resolve to two clean rows: lead(2) + 1, then 3. */
/* Emphasis by weight, not by size.

   Two spanning layouts were tried first and both were worse than the uniform
   grid. A two-column lead leaves seven units, which cannot fill three columns
   and dangles a card on a third row. Spanning two rows as well fills exactly,
   but each capability is a single sentence — the resulting 2x2 block was
   two-thirds empty, which is not the same thing as intentional whitespace.

   The cards therefore keep their cell, and the lead earns its focus through a
   tinted surface, a stronger border and a larger icon and heading. Six cards
   still fill three columns in two exact rows. */
.nx-grid--lead > *:first-child {
  background: linear-gradient(160deg, var(--nx-surface) 0%, var(--nx-bg-soft) 100%);
  border-color: var(--nx-line-strong);
}
.nx-grid--lead > *:first-child h3 { font-size: 1.45rem; }
.nx-grid--lead > *:first-child p { font-size: 1.02rem; max-width: 46ch; }
.nx-grid--lead > *:first-child .nx-ico {
  width: 54px; height: 54px; border-radius: 13px;
}
.nx-grid--lead > *:first-child .nx-ico svg { width: 25px; height: 25px; }

/* On dark sections the lead card lifts with light rather than with tint. */
.nx-section--dark .nx-grid--lead > *:first-child,
.nx-section--deep .nx-grid--lead > *:first-child {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .2);
}

@media (max-width: 720px) {
  .nx-grid--lead > *:first-child h3 { font-size: 1.22rem; }
  .nx-grid--lead > *:first-child p { font-size: .935rem; }
  .nx-grid--lead > *:first-child .nx-ico { width: 46px; height: 46px; }
}

/* ============================================================
   i18n — language toggle + Arabic (RTL)
   ============================================================ */
.nx-lang {
  display: inline-flex; align-items: center; gap: .38rem;
  height: 36px; padding: 0 .62rem;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 8px; background: transparent; color: currentColor;
  font: inherit; font-size: .82rem; font-weight: 600; line-height: 1;
  letter-spacing: .01em; cursor: pointer;
  transition: background-color .2s var(--nx-ease), border-color .2s var(--nx-ease);
}
.nx-lang svg { width: 16px; height: 16px; flex: none; }
.nx-lang:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
  border-color: color-mix(in srgb, currentColor 55%, transparent);
}
@media (max-width: 480px) {
  .nx-lang [data-nx-lang-label] { display: none; }   /* icon-only on very small screens */
  .nx-lang { padding: 0 .5rem; }
}

/* Arabic uses a stack tuned for readable Naskh; keeps the Latin fallbacks. */
[lang="ar"] { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif; }

/* RTL: layout is mostly logical-property based, so these are the few visual flips. */
[dir="rtl"] .nx-mega__grid,
[dir="rtl"] .nx-drop,
[dir="rtl"] .nx-mobile__sub > div,
[dir="rtl"] .nx-footer__grid,
[dir="rtl"] .nx-footer__bar { text-align: right; }
[dir="rtl"] .nx-nav__caret,
[dir="rtl"] .nx-mobile__top svg { transform: scaleX(-1); }
[dir="rtl"] .nx-footer__contact svg,
[dir="rtl"] .nx-drop a,
[dir="rtl"] .nx-mobile__sub a { text-align: right; }


/* ---------- Product screens (illustrative UI shots in a window frame) ---------- */
.nx-screens { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); }
.nx-shot { margin: 0; }
.nx-shot__frame {
  border-radius: var(--nx-radius); overflow: hidden; background: #fff;
  border: 1px solid var(--nx-line); box-shadow: 0 30px 60px -30px rgba(1, 17, 47, .35), 0 8px 18px -10px rgba(1, 17, 47, .18);
}
.nx-shot__bar { display: flex; gap: 6px; padding: 10px 14px; background: #F4F7FB; border-bottom: 1px solid var(--nx-line); }
.nx-shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--nx-line-strong); }
.nx-shot__bar i:first-child { background: #FF6B6B; } .nx-shot__bar i:nth-child(2) { background: #FFC24B; } .nx-shot__bar i:nth-child(3) { background: #2BD39A; }
.nx-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; }
.nx-shot figcaption { margin-top: .9rem; color: var(--nx-muted); font-size: .95rem; line-height: 1.55; }
.nx-shot figcaption strong { color: var(--nx-navy); }
.nx-screens__note { margin-top: 1.4rem; font-size: .85rem; color: var(--nx-muted); text-align: center; }
@media (max-width: 992px) { .nx-screens { grid-template-columns: 1fr; } }

/* ==========================================================================
   Site-wide redesign layer (2026-11) — "Many systems, one signal"

   Lifts every page to the homepage's standard. Appended last so it overrides
   the original component rules above in one reviewable block. Family-specific
   compositions live in assets/css/fam/<family>.css (injected by build.py).
   See docs/site-redesign/README.md for the system this implements.
   ========================================================================== */

/* ---------- Accent face ----------
   Instrument Serif italic, one phrase per major heading. Fallback metrics were
   measured in Chromium against Georgia and Times New Roman italic at 100px
   (2575.3px vs 3285.1px / 2979.2px over the same sample). */
@font-face {
  font-family: 'Instrument Serif Fallback';
  src: local('Georgia Italic'), local('Georgia-Italic');
  font-style: italic;
  size-adjust: 78.39%; ascent-override: 126.29%; descent-override: 39.55%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Instrument Serif Fallback Alt';
  src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT');
  font-style: italic;
  size-adjust: 86.44%; ascent-override: 114.53%; descent-override: 35.86%; line-gap-override: 0%;
}

:root {
  --nx-font-serif: 'Instrument Serif', 'Instrument Serif Fallback', 'Instrument Serif Fallback Alt', Georgia, serif;
  --nx-h2: clamp(2rem, 1.15rem + 2.8vw, 3.8rem);
  --nx-hair-dark: rgba(255, 255, 255, .1);
  --nx-radius-lg: 20px;
}

.nx-serif,
.nx-line > .nx-serif {
  display: inline-block;
  font-family: var(--nx-font-serif);
  font-style: italic; font-weight: 400; letter-spacing: -.012em;
  padding-inline-end: .12em; margin-inline-end: -.06em;
  background: linear-gradient(100deg, #5DBBFF 0%, var(--nx-teal) 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* accent + trailing punctuation never split across lines (wrapped at build time) */
.nx-keep { white-space: nowrap; }
.nx-keep > .nx-serif { white-space: normal; margin-inline-end: -.14em; }
/* Arabic has no italic serif: the accent keeps the gradient in the display face. */
[dir="rtl"] .nx-serif {
  font-family: inherit; font-style: normal; font-weight: inherit;
  padding-inline-end: 0; margin-inline-end: 0;
}
.nx-section:not(.nx-section--dark):not(.nx-section--deep) .nx-serif,
.nx-surface-light .nx-serif {
  background-image: linear-gradient(100deg, var(--nx-blue-600) 0%, #00806A 85%);
}

/* ---------- Chapter marker ---------- */
.nx-chapter {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--nx-font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--nx-muted);
  margin-bottom: clamp(2rem, 1.4rem + 2.2vw, 3.6rem);
}
.nx-chapter__n { color: var(--nx-blue-600); }
.nx-chapter__t { white-space: nowrap; }
.nx-chapter > i {
  position: relative; flex: 1; height: 1px; overflow: hidden;
  background: var(--nx-line-strong);
  transform-origin: left center; transition: transform 1.4s var(--nx-ease) .15s;
}
[dir="rtl"] .nx-chapter > i { transform-origin: right center; }
.nx-chapter > i::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 9rem;
  background: linear-gradient(90deg, transparent, var(--nx-blue), transparent);
  animation: nx-chapter-pulse 5.5s var(--nx-ease-in-out) infinite;
}
@keyframes nx-chapter-pulse { from { transform: translateX(-9rem); } to { transform: translateX(100vw); } }
.nx-js .nx-chapter[data-reveal] > i { transform: scaleX(0); }
.nx-js .nx-chapter[data-reveal].is-revealed > i { transform: none; }
.nx-section--dark .nx-chapter, .nx-section--deep .nx-chapter, .nx-page-hero .nx-chapter, .nx-cta .nx-chapter { color: var(--nx-on-dark-mut); }
.nx-section--dark .nx-chapter__n, .nx-section--deep .nx-chapter__n, .nx-page-hero .nx-chapter__n, .nx-cta .nx-chapter__n { color: var(--nx-teal); }
.nx-section--dark .nx-chapter > i, .nx-section--deep .nx-chapter > i, .nx-page-hero .nx-chapter > i { background: var(--nx-hair-dark); }
.nx-section--dark .nx-chapter > i::after, .nx-section--deep .nx-chapter > i::after, .nx-page-hero .nx-chapter > i::after {
  background: linear-gradient(90deg, transparent, var(--nx-teal), transparent);
}

/* ---------- Header: dark glass when stuck ----------
   It used to turn into a white bar the moment the page scrolled, over dark
   sections on nearly every page. Dark glass sits on dark and light alike. */
.nx-header.is-stuck {
  background: rgba(0, 10, 30, .78);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
          backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--nx-hair-dark);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .8);
}
.nx-header.is-stuck .nx-logo-light { display: block; }
.nx-header.is-stuck .nx-logo-dark { display: none; }
.nx-header.is-stuck .nx-nav > li > a { color: rgba(238, 243, 250, .86); }
.nx-header.is-stuck .nx-nav > li > a:hover,
.nx-header.is-stuck .nx-nav > li.is-current > a,
.nx-header.is-stuck .nx-nav > li.is-open > a { color: var(--nx-teal); }
.nx-header.is-stuck .nx-burger span { background: #fff; }
.nx-header.is-stuck .nx-btn--on-dark { border-color: rgba(255, 255, 255, .24); color: #fff; background: rgba(255, 255, 255, .04); }
.nx-header.is-stuck .nx-btn--on-dark:hover { background: #fff; color: var(--nx-navy); border-color: #fff; }
.nx-header.is-stuck .nx-lang { color: rgba(238, 243, 250, .86); border-color: rgba(255, 255, 255, .18); }

/* ---------- Page hero ----------
   Every inner page: deep ground, ambient signal field (inserted by
   nx-signal.js), editorial display type. Families add a hero object in
   .nx-page-hero__visual inside .nx-page-hero__grid. */
.nx-page-hero {
  background: var(--nx-navy-deep);
  padding-top: clamp(8rem, 6.4rem + 5vw, 11rem);
  padding-bottom: clamp(3.6rem, 2.6rem + 4vw, 6.4rem);
}
.nx-page-hero .nx-hero__bg::before { opacity: .55; }
.nx-page-hero .nx-hero__bg::after  { opacity: .5; }
.nx-signal-canvas {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; pointer-events: none;
}
[dir="rtl"] .nx-signal-canvas { transform: scaleX(-1); }
/* the field sits behind the copy: fade it where the headline starts */
.nx-page-hero > .nx-signal-canvas {
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.5) 35%, #000 70%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.5) 35%, #000 70%);
}
.nx-page-hero .nx-display,
.nx-page-hero h1 {
  font-size: clamp(2.45rem, .85rem + 4.4vw, 5.4rem);
  line-height: .98; letter-spacing: -.046em; max-width: none;
  margin-bottom: clamp(1.2rem, .9rem + 1vw, 1.8rem);
}
@media (max-width: 560px) {
  .nx-page-hero .nx-display, .nx-page-hero h1 { font-size: clamp(2.05rem, 7.6vw + .2rem, 2.7rem); }
}
.nx-page-hero .nx-lead { max-width: 40rem; color: rgba(238, 243, 250, .76); }
.nx-page-hero .nx-eyebrow { color: var(--nx-teal); }
.nx-page-hero .nx-btn-row { margin-top: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); }
.nx-page-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center;
}
.nx-page-hero__visual { position: relative; min-width: 0; }
@media (max-width: 992px) {
  .nx-page-hero__grid { grid-template-columns: 1fr; }
}
.nx-crumbs {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
}
.nx-crumbs a { color: rgba(238, 243, 250, .62); }

/* ---------- Strip: the hero's spec row ----------
   Sits directly under most page heroes. Its headings rendered at section-title
   size and competed with the H1; now an indexed row of facts on the hero's
   own ground, so the hero ends on a measured line instead of a bright band. */
.nx-strip {
  background: var(--nx-navy-deep);
  border-block: 1px solid var(--nx-hair-dark);
  color: var(--nx-on-dark-mut);
  counter-reset: nxstrip;
}
.nx-strip__item {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--nx-hair-dark);
  counter-increment: nxstrip;
}
[dir="rtl"] .nx-strip__item { border-right: 0; border-left: 1px solid var(--nx-hair-dark); }
[dir="rtl"] .nx-strip__item:last-child { border-left: 0; }
.nx-strip__item::before {
  content: counter(nxstrip, decimal-leading-zero);
  font-family: var(--nx-font-mono); font-size: .68rem; letter-spacing: .14em;
  color: var(--nx-teal); margin-bottom: .9rem;
}
.nx-strip__item strong {
  font-size: clamp(1.08rem, .98rem + .4vw, 1.34rem);
  color: #fff; letter-spacing: -.02em; margin-bottom: .45rem;
}
.nx-strip__item > span { color: var(--nx-on-dark-mut); font-size: .88rem; line-height: 1.55; }
.nx-strip__item em { color: rgba(157, 174, 203, .75); margin-top: .8rem; }
/* strips that carry counted figures (About) show the figure at display size */
.nx-strip__item strong:has(> [data-count]) { font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.2rem); line-height: 1; letter-spacing: -.04em; margin-bottom: .7rem; }

/* ---------- Sections ---------- */
.nx-section h2 { letter-spacing: -.04em; line-height: 1.02; }
/* flat: a glow here bled across the boundary with the section above */
.nx-section--dark { background: var(--nx-navy); }

/* ---------- Cards ----------
   Hairline and depth instead of a drop shadow; the icon tile carries the brand
   gradient as a hairline, not a fill. */
.nx-card {
  border-radius: 16px;
  border-color: var(--nx-line);
  box-shadow: none;
  transition: transform .45s var(--nx-ease), box-shadow .45s var(--nx-ease), border-color .45s;
}
.nx-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(1, 17, 47, .35); border-color: var(--nx-line-strong); }
.nx-card .nx-ico {
  border-radius: 12px;
  background: linear-gradient(var(--nx-surface), var(--nx-surface)) padding-box,
              linear-gradient(135deg, rgba(0, 140, 254, .5), rgba(0, 219, 178, .5)) border-box;
  border: 1px solid transparent;
}
.nx-card--dark { border-radius: 16px; }
.nx-card--dark .nx-ico { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); }

/* ---------- Media ---------- */
.nx-media { border-radius: var(--nx-radius-lg); box-shadow: 0 40px 80px -46px rgba(1, 17, 47, .55); }
.nx-media::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.nx-media img { transition: transform 1.1s var(--nx-ease); }
.nx-media:hover img { transform: scale(1.03); }

/* ---------- Closing CTA ----------
   The photograph gives way to the same resolve scene that closes the
   homepage (inserted by nx-signal.js); with no canvas support the photograph
   stays. */
.nx-cta { background: var(--nx-navy-deep); padding-block: clamp(5rem, 3.4rem + 6vw, 9rem); }
.nx-cta.has-signal .nx-cta__bg { display: none; }
.nx-cta::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(38rem 22rem at 50% 50%, rgba(0, 140, 254, .18), transparent 65%);
}
.nx-cta > .nx-signal-canvas {
  -webkit-mask-image: radial-gradient(ellipse 36% 46% at 50% 50%, transparent 45%, #000 100%);
          mask-image: radial-gradient(ellipse 36% 46% at 50% 50%, transparent 45%, #000 100%);
}
.nx-cta h2 { font-size: clamp(2.3rem, 1rem + 4.2vw, 5rem); line-height: 1; letter-spacing: -.045em; }

/* ---------- Footer ---------- */
.nx-footer { padding-top: 0; }
.nx-footer__sig {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-bottom: 1px solid var(--nx-hair-dark);
}
.nx-footer__statement {
  margin: 0;
  font-family: var(--nx-font-display); font-weight: 600;
  font-size: clamp(2.1rem, 1rem + 4.4vw, 5.2rem); line-height: 1; letter-spacing: -.045em;
  color: #fff;
}
.nx-footer .nx-footer__h { color: rgba(238, 243, 250, .5); font-size: .7rem; letter-spacing: .18em; }
.nx-footer li a { color: rgba(238, 243, 250, .76); }
.nx-footer li a:hover { color: #fff; }
.nx-footer__about { color: rgba(238, 243, 250, .62); }

/* ---------- Check lists in RTL ----------
   The marker was positioned with physical left/padding-left, so on every
   Arabic page it sat on the wrong side of the text. */
.nx-checks li { padding-left: 0; padding-inline-start: 1.8rem; }
.nx-checks li::before { left: auto; inset-inline-start: 0; }

/* ---------- Mobile menu ----------
   A collapsed group kept its .8rem bottom padding, so a sliver of each link's
   border showed under every closed item. The padding now belongs to the open
   state, closed links leave the tab order, and the rule sits on the inline
   start so it flips for Arabic. */
.nx-mobile__sub > div { padding-bottom: 0; transition: padding .38s var(--nx-ease), visibility 0s linear .38s; visibility: hidden; }
.nx-mobile__group.is-open .nx-mobile__sub > div { padding-bottom: .8rem; visibility: visible; transition-delay: 0s; }
.nx-mobile__sub a {
  border-left: 0; border-inline-start: 1px solid var(--nx-line-dark);
  padding-left: 0; padding-inline-start: 1rem;
}
.nx-mobile__sub a:hover { border-inline-start-color: var(--nx-teal); }

/* ---------- Header between 993 and 1100px ----------
   Eight tabs, the language switch and the CTA overran the bar by ~17px at
   1024px and clipped "Start a Project". The switch goes icon-only here; its
   aria-label still names the language. */
@media (min-width: 993px) and (max-width: 1100px) {
  .nx-lang > span { display: none; }
  .nx-lang { padding: 0 .55rem; }
  .nx-header__inner { gap: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-chapter > i::after { animation: none; }
}

/* ==========================================================================
   Launch pass: section clarity, hierarchy, Arabic (2026-11-12)

   Every section must read as its own block and no heading may outshout the
   page it sits on. These rules cap the display sizes and draw a boundary
   wherever two sections share a ground; families follow the same caps.
   ========================================================================== */

/* ---------- Type caps ----------
   H1 4.25rem, H2 3.25rem, H3 1.6rem. Large enough to lead, small enough to
   scan; the earlier 5–5.4rem headings made long pages tiring to read. */
:root {
  --nx-h1: clamp(2.4rem, 1.2rem + 3.6vw, 4.25rem);
  --nx-h2: clamp(1.9rem, 1.2rem + 2.2vw, 3.25rem);
  --nx-h3: clamp(1.25rem, 1.08rem + .6vw, 1.6rem);
  --nx-section: clamp(4rem, 2.8rem + 4.5vw, 7rem);
}
.nx-page-hero .nx-display,
.nx-page-hero h1 { font-size: var(--nx-h1); line-height: 1.02; letter-spacing: -.04em; }
@media (max-width: 560px) {
  .nx-page-hero .nx-display, .nx-page-hero h1 { font-size: clamp(2rem, 7vw + .2rem, 2.5rem); }
}
.nx-section h2 { font-size: var(--nx-h2); }
.nx-cta h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); }
.nx-footer__statement { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.4rem); }
.nx-lead { max-width: 68ch; }

/* ---------- Section boundaries ----------
   Sections alternate grounds on most pages; where two sections on the same
   ground meet, a hairline marks where one ends and the next begins. */
.nx-section + .nx-section:not(.nx-section--dark):not(.nx-section--deep):not(.nx-section--soft),
.nx-section--soft + .nx-section--soft,
.nx-strip + .nx-section:not(.nx-section--dark):not(.nx-section--deep) { border-top: 1px solid var(--nx-line-strong); }
.nx-section--dark + .nx-section--dark,
.nx-section--deep + .nx-section--deep,
.nx-section--dark + .nx-section--deep,
.nx-section--deep + .nx-section--dark,
.nx-section--dark + .nx-cta,
.nx-section--deep + .nx-cta { border-top: 1px solid var(--nx-hair-dark); }
.nx-cta + .nx-footer, .nx-footer { border-top: 1px solid var(--nx-hair-dark); }

/* ---------- Header: solid enough over light sections ----------
   At 78% the glass read as slate-grey over light grounds. */
.nx-header.is-stuck { background: rgba(0, 10, 30, .93); }

/* ---------- Arabic ----------
   Arabic is a joined script: monospace and letter-spacing pull the letters
   apart. Labels keep their size and colour but use the body face, untracked.
   Directional arrows are mirrored. */
[dir="rtl"] .nx-eyebrow,
[dir="rtl"] .nx-chapter,
[dir="rtl"] .nx-chapter__t,
[dir="rtl"] .nx-crumbs,
[dir="rtl"] .nx-strip__item em,
[dir="rtl"] .nx-footer__h,
[dir="rtl"] .nx-step__num,
[dir="rtl"] .nx-cta .nx-cta__note,
[dir="rtl"] .nx-tag {
  font-family: var(--nx-font); letter-spacing: 0; text-transform: none;
}
[dir="rtl"] .nx-chapter__n { font-family: var(--nx-font-mono); }
[dir="rtl"] .nx-btn svg,
[dir="rtl"] .nx-link svg,
[dir="rtl"] .nx-textlink svg { transform: scaleX(-1); }
[dir="rtl"] .nx-btn:hover svg,
[dir="rtl"] .nx-link:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .nx-chain i::after {
  right: auto; left: -1px;
  border-left: 0; border-right: 5px solid rgba(255, 255, 255, .4);
}

/* ---------- Technologies We Build With (2026-11-13) ----------
   Editorial grid: numbered cells on twelve columns, widths from the data
   (nx-tech__cell--s4/5/7/8/12), one featured cell in navy. Each technology is
   a row with its official mark and its name as real text, on hairlines.
   Rendered by tools/tech_stack.py. */
.nx-tech-head { max-width: 46rem; }
.nx-tech-head .nxh-head__lead { color: var(--nx-body); }
.nx-tech {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(.75rem, .5rem + .6vw, 1.1rem);
  margin: 0; padding: 0; list-style: none;
}
.nx-tech__cell {
  grid-column: span 4;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: clamp(1.4rem, 1.1rem + .9vw, 2.1rem);
  background: var(--nx-surface);
  border: 1px solid var(--nx-line); border-radius: 6px;
  transition: transform .35s var(--nx-ease), box-shadow .35s var(--nx-ease), border-color .35s var(--nx-ease);
}
.nx-tech__cell:hover { transform: translateY(-3px); border-color: var(--nx-line-strong); box-shadow: 0 28px 50px -36px rgba(1, 17, 47, .4); }
.nx-tech__cell--s5 { grid-column: span 5; }
.nx-tech__cell--s7 { grid-column: span 7; }
.nx-tech__cell--s8 { grid-column: span 8; }
.nx-tech__cell--s12 { grid-column: 1 / -1; }

.nx-tech__head { display: grid; gap: .55rem; }
.nx-tech__n { font-family: var(--nx-font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em; color: var(--nx-blue-600); }
.nx-tech__name {
  margin: 0; font-family: var(--nx-font-display);
  font-size: clamp(1.2rem, 1.05rem + .45vw, 1.45rem); font-weight: 600; line-height: 1.2; letter-spacing: -.025em;
  color: var(--nx-navy);
}
.nx-tech__note { margin: 0; max-width: 46ch; font-size: .92rem; line-height: 1.6; color: var(--nx-body); }

/* technologies: two columns of hairline rows, more where the cell is wide */
.nx-tech__items {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.4rem;
  margin: 0; padding: 0; list-style: none;
}
.nx-tech__cell--s7 .nx-tech__items,
.nx-tech__cell--s8 .nx-tech__items,
.nx-tech__cell--s12 .nx-tech__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* ten items fill two rows of five once the wide cell has the room */
@media (min-width: 1280px) { .nx-tech__cell--s8 .nx-tech__items { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.nx-tech__item {
  display: flex; align-items: center; gap: .75rem; min-width: 0;
  padding: .62rem 0; border-top: 1px solid var(--nx-line);
  font-size: .9rem; font-weight: 500; line-height: 1.25; color: var(--nx-text);
  transition: color .25s var(--nx-ease);
}
.nx-tech__logo {
  display: grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--nx-line); border-radius: 8px; background: var(--nx-surface);
  transition: transform .3s var(--nx-ease), border-color .3s var(--nx-ease), box-shadow .3s var(--nx-ease);
}
.nx-tech__logo img { width: 24px; height: 24px; object-fit: contain; }
.nx-tech__item:hover { color: var(--nx-blue-600); }
.nx-tech__item:hover .nx-tech__logo { transform: scale(1.06); border-color: rgba(0, 140, 254, .4); box-shadow: 0 6px 14px -8px rgba(0, 140, 254, .45); }

/* the featured category: navy, logos on white so every mark keeps its colours */
.nx-tech__cell--featured {
  position: relative; overflow: hidden;
  background: var(--nx-navy); border-color: var(--nx-navy);
}
.nx-tech__cell--featured::before {
  content: ''; position: absolute; inset: auto -25% -55% auto; width: 26rem; height: 26rem; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 140, 254, .24), transparent); pointer-events: none;
}
[dir="rtl"] .nx-tech__cell--featured::before { inset: auto auto -55% -25%; }
.nx-tech__cell--featured > * { position: relative; }
.nx-tech__cell--featured:hover { border-color: var(--nx-navy); box-shadow: 0 30px 60px -32px rgba(1, 17, 47, .65); }
.nx-tech__cell--featured .nx-tech__n { color: var(--nx-teal); }
.nx-tech__cell--featured .nx-tech__name { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.nx-tech__cell--featured .nx-tech__note { color: var(--nx-on-dark-mut); font-size: 1rem; }
.nx-tech__cell--featured .nx-tech__items { grid-template-columns: 1fr; }
.nx-tech__cell--featured .nx-tech__item { border-color: var(--nx-hair-dark); color: #fff; font-size: .98rem; padding-block: .75rem; }
.nx-tech__cell--featured .nx-tech__logo { border-color: transparent; }
.nx-tech__cell--featured .nx-tech__item:hover { color: var(--nx-teal); }

/* the closing prompt */
.nx-tech-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: clamp(1.8rem, 1.5rem + 1vw, 2.6rem);
  border-top: 1px solid var(--nx-line-strong);
}
.nx-tech-cta h3 { margin: 0 0 .5rem; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); letter-spacing: -.03em; color: var(--nx-navy); }
.nx-tech-cta p { margin: 0; max-width: 38rem; font-size: 1rem; line-height: 1.6; color: var(--nx-body); }

@media (max-width: 1100px) {
  .nx-tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-tech__cell, .nx-tech__cell--s5, .nx-tech__cell--s7, .nx-tech__cell--s8 { grid-column: span 1; }
  .nx-tech__cell--s7 .nx-tech__items, .nx-tech__cell--s8 .nx-tech__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .nx-tech { grid-template-columns: 1fr; }
  .nx-tech-cta .nx-btn { width: 100%; justify-content: center; }
}
@media (max-width: 360px) {
  .nx-tech__items, .nx-tech__cell--s7 .nx-tech__items, .nx-tech__cell--s8 .nx-tech__items { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-tech__cell:hover { transform: none; }
  .nx-tech__item:hover .nx-tech__logo { transform: none; }
}

/* ---------- Navigation: Software and Products mega menus (2026-11-12) ----------
   Software holds every service family; Products is its own tab so the four
   products are found at a glance rather than inside a services list. */
.nx-mega--software { width: min(1180px, calc(100vw - 3rem)); }
.nx-mega__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem 1.8rem; }
.nx-mega__col a.nx-mega__more {
  margin-top: .35rem; color: var(--nx-blue-600); font-size: .84rem;
}
.nx-mega__col a.nx-mega__more::after { content: ' \2192'; }
[dir="rtl"] .nx-mega__col a.nx-mega__more::after { content: ' \2190'; }

.nx-mega--products { width: min(1040px, calc(100vw - 3rem)); padding: 1.4rem 1.4rem 1.5rem; }
.nx-pmenu__top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 .2rem .9rem; margin-bottom: 1rem; border-bottom: 1px solid var(--nx-line);
}
.nx-pmenu__lead {
  font-family: var(--nx-font-mono); font-size: .69rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--nx-muted);
}
[dir="rtl"] .nx-pmenu__lead { font-family: var(--nx-font); letter-spacing: 0; text-transform: none; font-size: .82rem; }
.nx-pmenu__all { font-size: .84rem; font-weight: 600; color: var(--nx-blue-600); white-space: nowrap; }
.nx-pmenu__all::after { content: ' \2192'; }
[dir="rtl"] .nx-pmenu__all::after { content: ' \2190'; }
.nx-pmenu__all:hover { color: var(--nx-navy); }

.nx-pmenu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.nx-pmenu__card {
  position: relative;
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--nx-line); border-radius: 12px; background: var(--nx-surface);
  transition: border-color .25s var(--nx-ease), box-shadow .25s var(--nx-ease), transform .25s var(--nx-ease);
}
.nx-pmenu__card:hover,
.nx-pmenu__card:focus-visible {
  border-color: rgba(0, 140, 254, .45);
  box-shadow: 0 20px 40px -28px rgba(1, 17, 47, .45);
  transform: translateY(-2px);
}
.nx-pmenu__shot {
  display: block; aspect-ratio: 480 / 268; overflow: hidden;
  background: var(--nx-bg-tint); border-bottom: 1px solid var(--nx-line);
}
.nx-pmenu__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .6s var(--nx-ease); }
.nx-pmenu__card:hover .nx-pmenu__shot img { transform: scale(1.03); }
.nx-pmenu__body { display: grid; gap: .35rem; padding: .85rem .95rem 1rem; }
.nx-pmenu__name {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  font-family: var(--nx-font-display); font-size: 1rem; font-weight: 600;
  letter-spacing: -.015em; color: var(--nx-text);
}
.nx-pmenu__name em {
  /* the status sits on the screenshot's corner, so long names never wrap */
  position: absolute; top: .6rem; inset-inline-end: .6rem;
  background: rgba(255, 255, 255, .94);
  flex: none; font-style: normal;
  padding: .18rem .45rem; border-radius: 999px;
  font-family: var(--nx-font-mono); font-size: .58rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--nx-muted); border: 1px solid var(--nx-line);
}
.nx-pmenu__card--early .nx-pmenu__name em { color: #8A5A00; background: #FFF4DE; border-color: #F5D79A; }
[dir="rtl"] .nx-pmenu__name em { font-family: var(--nx-font); letter-spacing: 0; text-transform: none; font-size: .68rem; }
.nx-pmenu__desc { font-size: .8rem; line-height: 1.45; color: var(--nx-muted); }

/* the eight top-level tabs need a touch less room than the old seven + Company */
@media (min-width: 993px) and (max-width: 1240px) {
  .nx-nav > li > a { padding-inline: .42rem; font-size: .84rem; }
  .nx-pmenu__desc { font-size: .76rem; }
}

/* mobile product entries */
.nx-mobile__sub a.nx-mobile__prod { display: grid; gap: .15rem; padding-block: .7rem; }
.nx-mobile__prod b { color: #fff; font-weight: 600; font-size: 1rem; }
.nx-mobile__prod span { font-size: .84rem; color: var(--nx-on-dark-mut); line-height: 1.4; }
.nx-mobile__prod em {
  justify-self: start; font-style: normal;
  padding: .12rem .45rem; border-radius: 999px; font-size: .68rem; font-weight: 600;
  color: #FFC970; border: 1px solid rgba(255, 181, 71, .45);
}

/* A dropdown starts 10px below its tab but the hover bridge is 42px tall, so
   the bridge covered the top of the panel and swallowed clicks on its first
   link. Panels sit above their bridge, as the mega menus already did. */
.nx-drop { z-index: 2; }

/* Footer: Products has its own column, matching the header. */
.nx-footer__grid { grid-template-columns: minmax(0, 1.3fr) repeat(5, minmax(0, 1fr)); }
@media (max-width: 1180px) {
  .nx-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nx-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .nx-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Navigation, approved structure (2026-11-12) ----------
   Software: five groups whose headings link to each group's landing page.
   Products: cards, with Enterprise Systems as a sub-link under NexlaERP.
   Industries / Solutions / Resources: compact dropdowns. */
.nx-mega--software { width: min(1300px, calc(100vw - 3rem)); }
.nx-mega__grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem 1.6rem; }
.nx-mega__col a.nx-mega__head {
  display: flex; align-items: center; gap: .35rem;
  margin: 0 0 .7rem; padding: 0 0 .65rem; border-radius: 0;
  border-bottom: 1px solid var(--nx-line);
  font-family: var(--nx-font-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--nx-text);
}
.nx-mega__col a.nx-mega__head::after { content: '\2192'; font-family: var(--nx-font); opacity: .45; transition: transform .2s var(--nx-ease), opacity .2s; }
[dir="rtl"] .nx-mega__col a.nx-mega__head::after { content: '\2190'; }
.nx-mega__col a.nx-mega__head:hover { background: none; color: var(--nx-blue-600); }
.nx-mega__col a.nx-mega__head:hover::after { opacity: 1; transform: translateX(3px); }
[dir="rtl"] .nx-mega__col a.nx-mega__head:hover::after { transform: translateX(-3px); }
[dir="rtl"] .nx-mega__col a.nx-mega__head { font-family: var(--nx-font); letter-spacing: 0; text-transform: none; font-size: .82rem; font-weight: 600; }
.nx-mega__col a { font-size: .875rem; padding-block: .42rem; }
.nx-mega a:focus-visible, .nx-drop a:focus-visible { outline: 2px solid var(--nx-blue); outline-offset: 1px; }

/* product cards: one main link plus optional sub-links */
.nx-pmenu__card:focus-within { border-color: rgba(0, 140, 254, .45); }
.nx-pmenu__main { display: flex; flex-direction: column; flex: 1; color: inherit; }
.nx-pmenu__sub {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin: 0 .95rem .9rem; padding-top: .7rem; border-top: 1px solid var(--nx-line);
  font-size: .8rem; font-weight: 600; color: var(--nx-blue-600);
}
.nx-pmenu__sub::after { content: '\2192'; }
[dir="rtl"] .nx-pmenu__sub::after { content: '\2190'; }
.nx-pmenu__sub:hover { color: var(--nx-navy); }

/* compact dropdowns: the "all" link closes the list */
.nx-drop a.nx-drop__all { margin-top: .3rem; border-top: 1px solid var(--nx-line); border-radius: 0 0 8px 8px; color: var(--nx-blue-600); }
.nx-drop a.nx-drop__all span::after { content: ' \2192'; }
[dir="rtl"] .nx-drop a.nx-drop__all span::after { content: ' \2190'; }

/* mobile: groups inside Software open on their own */
.nx-mobile__group--sub { border-top: 1px solid var(--nx-line-dark); }
.nx-mobile__group--sub:first-child { border-top: 0; }
.nx-mobile__group--sub > .nx-mobile__top { padding: .8rem 0; font-size: 1.02rem; color: rgba(255, 255, 255, .92); }
.nx-mobile__group--sub .nx-mobile__sub a { font-size: .92rem; }
.nx-mobile__sub a.nx-mobile__prodsub { padding-block: .35rem .8rem; font-size: .84rem; color: var(--nx-teal); }

/* section links from the menus land below the fixed header */
[id] { scroll-margin-top: 96px; }

@media (min-width: 993px) and (max-width: 1240px) {
  .nx-mega__grid--5 { gap: 1rem 1.1rem; }
  .nx-mega__col a { font-size: .82rem; }
}

/* ---------- Header: five tabs + Contact button (2026-11-12) ----------
   Contact stays visible at every width, beside the menu button on phones. */
.nx-mega--solutions { width: min(640px, calc(100vw - 3rem)); }
.nx-mega__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2rem; }
.nx-nav > li > a { padding-inline: .75rem; }
.nx-header__contact { padding-inline: 1.15rem; }
.nx-header__contact.is-current { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
@media (max-width: 992px) {
  .nx-header__cta .nx-btn.nx-header__contact { display: inline-flex; }
}
@media (max-width: 420px) {
  .nx-lang > span { display: none; }
  .nx-lang { padding: 0 .55rem; }
  .nx-header__contact { padding-inline: .8rem; font-size: .8rem; }
  .nx-header__logo img { height: 26px; }
}
/* Phones: the desktop <nav> is empty space here but still took a flex gap,
   and at 320px the Contact button and menu button ran ~25px off screen. */
@media (max-width: 992px) {
  .nx-header__inner > nav { display: none; }
}
@media (max-width: 360px) {
  .nx-header__inner { gap: .5rem; }
  .nx-header__cta { gap: .3rem; }
  .nx-header__logo img, .nx-header.is-stuck .nx-header__logo img { height: 23px; }
  .nx-lang { padding: 0 .4rem; }
  .nx-header__contact { padding-inline: .6rem; font-size: .76rem; }
}

/* ---------- Mega menus: editorial Services and Solutions (2026-11-13) ----------
   Three columns: a typographic heading, the numbered categories on hairline
   rows, and the selected category's links. Each category and its links share
   a group (display: contents), so keyboard order runs category, its links,
   next category. Text only: no icons, cards or tinted panels. */
.nx-mega--tp { width: min(1120px, calc(100vw - 3rem)); padding: 0; overflow: hidden; }
.nx-tp { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); min-height: 350px; }

/* the heading */
.nx-tp__intro {
  display: flex; flex-direction: column;
  padding: 2.3rem 2.1rem 2rem; border-inline-end: 1px solid var(--nx-line);
}
.nx-tp__intro::before { content: ""; width: 28px; height: 2px; margin-bottom: 1.4rem; background: var(--nx-blue); }
.nx-tp__title {
  margin: 0 0 .85rem; font-family: var(--nx-font-display);
  font-size: 2.35rem; font-weight: 600; line-height: 1.04; letter-spacing: -.035em; color: var(--nx-navy);
}
.nx-tp__sub { margin: 0; max-width: 17rem; text-wrap: balance; font-size: .92rem; line-height: 1.55; color: var(--nx-muted); }
.nx-tp__all {
  margin-top: auto; padding-top: 1.6rem; align-self: flex-start;
  font-size: .84rem; font-weight: 600; color: var(--nx-blue-600);
}
.nx-tp__all::after { content: '\2192'; display: inline-block; margin-inline-start: .35em; transition: transform .2s var(--nx-ease); }
[dir="rtl"] .nx-tp__all::after { content: '\2190'; }
.nx-tp__all:hover { color: var(--nx-navy); }
.nx-tp__all:hover::after { transform: translateX(3px); }
[dir="rtl"] .nx-tp__all:hover::after { transform: translateX(-3px); }

/* the categories: numbered rows divided by hairlines */
.nx-tp__body {
  display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  padding: 1.6rem 0 1.8rem;
}
.nx-tp--5 .nx-tp__body { grid-template-rows: repeat(5, auto) 1fr; }
.nx-tp--4 .nx-tp__body { grid-template-rows: repeat(4, auto) 1fr; }
.nx-tp__group { display: contents; }
.nx-tp__cat {
  grid-column: 1; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: baseline;
  margin-inline: 2rem 1.6rem; padding: 1.02rem 0; border-bottom: 1px solid var(--nx-line);
  font-family: var(--nx-font-display); font-size: 1.04rem; font-weight: 500; line-height: 1.3;
  letter-spacing: -.01em; color: var(--nx-text);
  transition: color .2s var(--nx-ease);
}
.nx-tp__group:first-child > .nx-tp__cat { border-top: 1px solid var(--nx-line); }
/* explicit rows, so a tall panel never moves the categories */
.nx-tp__group:nth-child(1) > .nx-tp__cat { grid-row: 1; }
.nx-tp__group:nth-child(2) > .nx-tp__cat { grid-row: 2; }
.nx-tp__group:nth-child(3) > .nx-tp__cat { grid-row: 3; }
.nx-tp__group:nth-child(4) > .nx-tp__cat { grid-row: 4; }
.nx-tp__group:nth-child(5) > .nx-tp__cat { grid-row: 5; }
.nx-tp__cat b {
  font-family: var(--nx-font-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .06em; color: var(--nx-muted); transition: color .2s;
}
.nx-tp__cat::after {
  content: '\2192'; font-family: var(--nx-font); font-size: .95rem; color: var(--nx-blue-600);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .2s var(--nx-ease), transform .2s var(--nx-ease);
}
[dir="rtl"] .nx-tp__cat::after { content: '\2190'; transform: translateX(6px); }
.nx-tp__cat:hover { color: var(--nx-navy); }
.nx-tp__cat:hover::after { opacity: .45; transform: none; }
.nx-tp__group.is-active > .nx-tp__cat { color: var(--nx-navy); font-weight: 600; }
.nx-tp__group.is-active > .nx-tp__cat b { color: var(--nx-blue-600); }
.nx-tp__group.is-active > .nx-tp__cat::after { opacity: 1; transform: none; }

/* the selected category's links */
.nx-tp__panel {
  display: none; grid-column: 2; grid-row: 1 / -1;
  padding: .15rem 2.2rem 0; border-inline-start: 1px solid var(--nx-line);
}
.nx-tp__group.is-active > .nx-tp__panel { display: block; animation: nx-tp-in .25s var(--nx-ease); }
@keyframes nx-tp-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.nx-tp__desc {
  margin: 0 0 .5rem; padding-bottom: 1rem; max-width: 34rem;
  font-size: .9rem; line-height: 1.5; color: var(--nx-muted);
}
.nx-tp__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.nx-tp__links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
  padding: .78rem 0; border-bottom: 1px solid var(--nx-line);
  font-size: .94rem; font-weight: 500; color: var(--nx-text);
  transition: color .2s var(--nx-ease);
}
.nx-tp__links a::after {
  content: '\2192'; flex: none; font-size: .85rem; color: var(--nx-blue-600);
  opacity: 0; transform: translateX(-5px);
  transition: opacity .2s var(--nx-ease), transform .2s var(--nx-ease);
}
[dir="rtl"] .nx-tp__links a::after { content: '\2190'; transform: translateX(5px); }
.nx-tp__links a:hover { color: var(--nx-blue-600); }
.nx-tp__links a:hover::after, .nx-tp__links a:focus-visible::after { opacity: 1; transform: none; }
.nx-tp a:focus-visible { outline: 2px solid var(--nx-blue); outline-offset: 2px; border-radius: 4px; }

/* products: an explicit call to action on every card */
.nx-pmenu__view { margin-top: .2rem; font-size: .8rem; font-weight: 600; color: var(--nx-blue-600); }
.nx-pmenu__view::after { content: ' \2192'; }
[dir="rtl"] .nx-pmenu__view::after { content: ' \2190'; }

/* mobile: numbered categories, as on desktop */
.nx-mobile__n { margin-inline-end: .65rem; font-family: var(--nx-font-mono); font-size: .7rem; color: var(--nx-teal); }
.nx-mobile__n + span { flex: 1; text-align: start; }
.nx-mobile__sub a.nx-mobile__all { color: var(--nx-teal); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  .nx-tp__group.is-active > .nx-tp__panel { animation: none; }
  .nx-tp__cat::after, .nx-tp__links a::after, .nx-tp__all::after { transition: none; }
}
/* tablet-width desktop nav: the heading becomes a band above the two panes */
@media (max-width: 1180px) {
  .nx-tp { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .nx-tp__intro {
    flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 1.2rem; row-gap: .3rem;
    padding: 1.5rem 1.8rem 1.3rem; border-inline-end: 0; border-bottom: 1px solid var(--nx-line);
  }
  .nx-tp__intro::before { display: none; }
  .nx-tp__title { margin: 0; font-size: 1.75rem; }
  .nx-tp__sub { max-width: none; }
  .nx-tp__all { margin: 0 0 0 auto; padding-top: 0; }
  [dir="rtl"] .nx-tp__all { margin: 0 auto 0 0; }
  .nx-tp__body { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); padding: 1.3rem 0 1.5rem; }
  .nx-tp__cat { margin-inline: 1.8rem 1.3rem; padding: .9rem 0; font-size: .98rem; }
  .nx-tp__panel { padding-inline: 1.6rem; }
  .nx-tp__links { column-gap: 1.4rem; }
}

/* ---------- Cookie consent (2026-11-12) ----------
   A compact card at the foot of the screen; Accept and Reject carry equal weight,
   as consent rules expect. The preferences dialog opens over a scrim. */
html:not(.nx-js) [data-nx-consent-open] { display: none; }
.nx-footer__cookies {
  display: inline-block; padding: .3rem 0; min-height: 24px; border: 0; background: none;
  font: inherit; color: inherit; cursor: pointer;
}
.nx-footer__cookies:hover { color: var(--nx-teal); }
.nx-consent-open body { padding-bottom: var(--nx-consent-h, 0px); }

.nx-consent {
  position: fixed; z-index: 1000; inset-inline: 16px; bottom: 16px;
  max-width: 1080px; margin-inline: auto;
  display: flex; align-items: center; gap: 1.2rem 2rem;
  padding: 1.15rem 1.3rem 1.15rem 1.4rem;
  background: #fff; color: var(--nx-text);
  border: 1px solid var(--nx-line); border-radius: 16px;
  box-shadow: var(--nx-shadow-lg);
  opacity: 0; transform: translateY(18px);
  transition: opacity .4s var(--nx-ease), transform .4s var(--nx-ease);
}
.nx-consent.is-in { opacity: 1; transform: none; }
.nx-consent__text { flex: 1; min-width: 0; }
.nx-consent__title { margin: 0 0 .25rem; font-size: 1rem; line-height: 1.3; letter-spacing: 0; color: var(--nx-text); }
.nx-consent p { margin: 0; font-size: .85rem; line-height: 1.55; color: var(--nx-muted); }
.nx-consent p a { white-space: nowrap; color: var(--nx-blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.nx-consent__actions { display: flex; align-items: center; gap: .55rem; flex: none; }

.nx-consent__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: .55rem 1.1rem; border-radius: 999px;
  font: 600 .86rem/1.2 var(--nx-font); cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--nx-ease), color .2s var(--nx-ease), border-color .2s var(--nx-ease);
}
.nx-consent__btn--solid { background: var(--nx-navy); color: #fff; border: 1.5px solid var(--nx-navy); }
.nx-consent__btn--solid:hover { background: var(--nx-blue-600); border-color: var(--nx-blue-600); }
.nx-consent__btn--ghost { background: #fff; color: var(--nx-navy); border: 1.5px solid var(--nx-navy); }
.nx-consent__btn--ghost:hover { background: var(--nx-bg-tint); }
.nx-consent__btn--link { background: none; border: 0; padding-inline: .6rem; color: var(--nx-blue-600); text-decoration: underline; text-underline-offset: 3px; }
.nx-consent__btn--link:hover { color: var(--nx-navy); }
.nx-consent__btn:focus-visible, .nx-consent-modal button:focus-visible, .nx-consent p a:focus-visible { outline: 2px solid var(--nx-blue); outline-offset: 2px; }

/* preferences dialog */
.nx-consent-locked, .nx-consent-locked body { overflow: hidden; }
.nx-consent-modal { position: fixed; inset: 0; z-index: 1001; display: grid; place-items: center; padding: 16px; }
.nx-consent-modal__scrim { position: absolute; inset: 0; background: rgba(1, 17, 47, .55); opacity: 0; transition: opacity .25s; }
.nx-consent-modal__box {
  position: relative; width: min(600px, 100%); max-height: min(720px, calc(100dvh - 32px));
  display: flex; flex-direction: column;
  background: #fff; color: var(--nx-text); border-radius: 18px; box-shadow: var(--nx-shadow-lg);
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .25s var(--nx-ease), transform .25s var(--nx-ease);
}
.nx-consent-modal.is-in .nx-consent-modal__scrim { opacity: 1; }
.nx-consent-modal.is-in .nx-consent-modal__box { opacity: 1; transform: none; }
.nx-consent-modal header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--nx-line); }
.nx-consent-modal header h2 { margin: 0; font-size: 1.15rem; letter-spacing: 0; color: var(--nx-text); }
.nx-consent-modal__x { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--nx-bg-tint); color: var(--nx-navy); cursor: pointer; }
.nx-consent-modal__x:hover { background: #E3EEFF; }
.nx-consent-modal__body { overflow-y: auto; padding: 1.1rem 1.4rem; }
.nx-consent-modal__body > p { margin: 0 0 .8rem; font-size: .88rem; line-height: 1.6; color: var(--nx-muted); }
.nx-consent-modal__body > p.nx-consent-modal__note { padding: .7rem .85rem; border-radius: 10px; background: var(--nx-bg-tint); color: var(--nx-text); }
.nx-consent-modal ul { list-style: none; margin: .4rem 0 0; padding: 0; }
.nx-consent__cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--nx-line); }
.nx-consent__cat h3 { margin: 0 0 .2rem; font-size: .95rem; letter-spacing: 0; color: var(--nx-text); }
.nx-consent__cat h3 small { display: inline-block; margin-inline-start: .35rem; padding: .1rem .45rem; border-radius: 999px; background: var(--nx-bg-tint); font-size: .68rem; font-weight: 600; color: var(--nx-muted); white-space: nowrap; }
.nx-consent__cat p { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--nx-muted); }
.nx-consent__always { flex: none; margin-top: .1rem; font-size: .78rem; font-weight: 600; color: #067A5F; white-space: nowrap; }
.nx-consent__switch { position: relative; flex: none; width: 46px; height: 26px; margin-top: .1rem; cursor: pointer; }
.nx-consent__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.nx-consent__switch span { position: absolute; inset: 0; border-radius: 999px; background: #C5CEDD; transition: background-color .2s; pointer-events: none; }
.nx-consent__switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(1, 17, 47, .3); transition: transform .2s var(--nx-ease); }
.nx-consent__switch input:checked + span { background: var(--nx-blue-600); }
.nx-consent__switch input:checked + span::after { transform: translateX(20px); }
[dir="rtl"] .nx-consent__switch input:checked + span::after { transform: translateX(-20px); }
.nx-consent__switch input:focus-visible + span { outline: 2px solid var(--nx-blue); outline-offset: 2px; }
.nx-consent-modal footer { display: flex; justify-content: flex-end; gap: .55rem; flex-wrap: wrap; padding: 1rem 1.4rem; border-top: 1px solid var(--nx-line); }

@media (max-width: 860px) {
  .nx-consent { flex-direction: column; align-items: stretch; padding: 1rem 1rem 1.05rem; }
  .nx-consent__actions { flex-wrap: wrap; }
  .nx-consent__btn--ghost, .nx-consent__btn--solid { flex: 1 1 0; }
  .nx-consent__btn--link { order: 3; flex-basis: 100%; }
}
@media (max-width: 480px) {
  .nx-consent { inset-inline: 10px; bottom: 10px; }
  .nx-consent p { font-size: .8rem; }
  .nx-consent-modal { padding: 0; place-items: end stretch; }
  .nx-consent-modal__box { width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; }
  .nx-consent-modal footer .nx-consent__btn { flex: 1 1 calc(50% - .3rem); }
  .nx-consent-modal footer [data-act="save"] { flex-basis: 100%; order: 3; }
}
@media (max-width: 380px) {
  .nx-consent { gap: .7rem; padding: .85rem .9rem .8rem; }
  .nx-consent__title { font-size: .95rem; margin-bottom: .15rem; }
  .nx-consent p { font-size: .76rem; line-height: 1.5; }
  .nx-consent__actions { gap: .4rem; }
  .nx-consent__btn--link { min-height: 32px; padding-block: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-consent, .nx-consent-modal__box, .nx-consent-modal__scrim { transition: none; }
}

/* ---------- Products we built (home in Arabic, About, the work page) ----------
   One card per product: its own logo, the stage it is at, one sentence, a real
   screen where one exists (drawn ones are labelled), and two actions. */
.nx-built { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, .8rem + 1.2vw, 1.8rem); margin: 0; padding: 0; list-style: none; }
.nx-built__card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: var(--nx-radius);
  transition: transform var(--nx-dur) var(--nx-ease), box-shadow var(--nx-dur) var(--nx-ease), border-color var(--nx-dur);
}
.nx-built__card:hover { transform: translateY(-3px); border-color: var(--nx-line-strong); box-shadow: 0 26px 50px -34px rgba(1, 17, 47, .45); }
.nx-built__shot { position: relative; display: block; aspect-ratio: 16 / 9.4; overflow: hidden; background: var(--nx-bg-tint); border-bottom: 1px solid var(--nx-line); }
.nx-built__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.nx-built__ill {
  position: absolute; inset-inline-start: .7rem; bottom: .7rem; padding: .28rem .6rem; border-radius: 999px;
  font-family: var(--nx-font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--nx-on-dark); background: rgba(1, 17, 47, .82);
}
.nx-built__body { display: flex; flex-direction: column; flex: 1; gap: .9rem; padding: clamp(1.1rem, .9rem + .7vw, 1.5rem); }
.nx-built__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem .8rem; }
.nx-built__name { margin: 0; font-size: 1.35rem; line-height: 1; letter-spacing: -.03em; }
.nx-built__logo { display: block; width: auto; height: 30px; }
.nx-built__chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .65rem; border-radius: 999px; white-space: nowrap;
  font-family: var(--nx-font-mono); font-size: .64rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--nx-text); background: var(--nx-bg); border: 1px solid var(--nx-line-strong);
}
.nx-built__chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--nx-teal-600); }
.nx-built__chip--early::before { background: #E08A00; }
.nx-built__chip--dev::before { background: var(--nx-blue); }
.nx-built__body > p { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--nx-body); }
.nx-built__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem; margin-top: auto; padding-top: .3rem; }

/* Compact rows: logo, sentence with its stage, two links. */
.nx-built--rows { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--nx-line-strong); }
.nx-built__row {
  display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr) auto; align-items: center;
  gap: 1rem clamp(1.2rem, .8rem + 2vw, 3rem); padding: 1.25rem 0; border-bottom: 1px solid var(--nx-line-strong);
}
.nx-built__row > p { margin: 0; font-size: .98rem; line-height: 1.6; color: var(--nx-body); }
.nx-built__row .nx-built__chip { margin-inline-start: .4rem; vertical-align: middle; }
.nx-built__row .nx-built__actions { margin: 0; padding: 0; flex-direction: column; align-items: flex-start; gap: .35rem; }
.nx-built__custom { margin: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem) 0 0; max-width: 62ch; font-size: .98rem; color: var(--nx-body); }
.nx-built__custom a { color: var(--nx-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
[dir="rtl"] .nx-built__chip, [dir="rtl"] .nx-built__ill { font-family: var(--nx-font); letter-spacing: 0; text-transform: none; font-size: .74rem; }
@media (max-width: 1100px) { .nx-built { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nx-built--rows { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .nx-built__row { grid-template-columns: 1fr; gap: .7rem; }
  .nx-built__row .nx-built__actions { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.4rem; }
}
@media (max-width: 700px) { .nx-built { grid-template-columns: 1fr; } }
/* Logos drawn with their own margins or a tagline need more height to read at the same weight. */
.nx-built__logo[src*="nexlameet"] { height: 38px; }
.nx-built__logo[src*="govgraph"] { height: 46px; }

/* ---------- WhatsApp click-to-chat ----------
   A plain link to wa.me, built from the number in src/site.json. On product pages it also
   sits in the corner as a small round button: quiet until hovered, clear of the page edge,
   never over the cookie dialog. */
.nx-wa {
  position: fixed; inset-inline-end: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 90;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: var(--nx-teal); background: var(--nx-navy); border: 1px solid var(--nx-navy-600);
  box-shadow: var(--nx-shadow); opacity: .88;
  transition: opacity .25s, transform .25s var(--nx-ease), background .25s, color .25s;
}
.nx-wa svg { width: 22px; height: 22px; }
.nx-wa:hover, .nx-wa:focus-visible { opacity: 1; transform: translateY(-2px); background: var(--nx-teal); color: var(--nx-navy); }
.nx-wa:focus-visible { outline: 2px solid var(--nx-blue); outline-offset: 3px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .nx-wa { transition: none; } .nx-wa:hover, .nx-wa:focus-visible { transform: none; } }
@media print { .nx-wa { display: none; } }

/* ---------- Facts band (home) ----------
   The strip with four counted figures. On a phone it stays two by two instead of stacking,
   so it remains a short band rather than a screen of its own. */
@media (max-width: 560px) {
  .nx-facts .nx-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-facts .nx-strip__item { padding: 1.25rem .95rem 1.35rem; border: 0; }
  .nx-facts .nx-strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--nx-hair-dark); }
  .nx-facts .nx-strip__item:nth-child(odd) { border-inline-end: 1px solid var(--nx-hair-dark); }
  .nx-facts .nx-strip__item::before { margin-bottom: .55rem; }
  .nx-facts .nx-strip__item > span { font-size: .84rem; }
}

/* ---------- Product finder (home) ----------
   Filter buttons over the six product cards, and a quick-view dialog per product. The tabs and
   the quick-view buttons need the script, so without it they are not shown and the cards stay
   a plain list of links to the product pages. */
.nx-finder { display: grid; gap: clamp(1.1rem, .9rem + .8vw, 1.7rem); min-width: 0; }
.nx-finder__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.6rem; }
.nx-finder .nx-finder__h { margin: 0; font-size: clamp(1.15rem, 1.03rem + .5vw, 1.45rem); line-height: 1.2; letter-spacing: -.02em; color: var(--nx-text); }
.nx-finder__tabs { display: flex; flex-wrap: wrap; gap: .45rem; }
html:not(.nx-js) .nx-finder__tabs, html:not(.nx-js) .nx-finder__qv, .nx-finder--plain .nx-finder__qv { display: none; }
.nx-finder__tab {
  min-height: 40px; padding: .5rem 1rem; border-radius: 999px; font-size: .875rem; font-weight: 500; line-height: 1.2;
  color: var(--nx-text); background: var(--nx-surface); border: 1px solid var(--nx-line-strong);
  transition: background .2s, color .2s, border-color .2s;
}
.nx-finder__tab:hover { border-color: var(--nx-blue); color: var(--nx-blue-600); }
.nx-finder__tab[aria-pressed="true"] { background: var(--nx-navy); border-color: var(--nx-navy); color: #fff; }
.nx-finder__tab:focus-visible, .nx-finder__qv:focus-visible { outline: 2px solid var(--nx-blue); outline-offset: 2px; border-radius: 999px; }
.nx-finder__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, .6rem + .8vw, 1.3rem); }
.nx-finder__card {
  display: flex; flex-direction: column; gap: .85rem; min-width: 0; padding: clamp(1.05rem, .9rem + .6vw, 1.4rem);
  background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: var(--nx-radius);
  transition: transform var(--nx-dur) var(--nx-ease), box-shadow var(--nx-dur) var(--nx-ease), border-color var(--nx-dur);
}
.nx-finder__card:hover { transform: translateY(-2px); border-color: var(--nx-line-strong); box-shadow: 0 22px 44px -32px rgba(1, 17, 47, .45); }
.nx-finder__card > p { margin: 0; font-size: .94rem; line-height: 1.55; color: var(--nx-body); }
.nx-finder__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin-top: auto; }
.nx-finder [data-product][hidden] { display: none; }
.nx-js .nx-finder:not(.nx-finder--plain) [data-product] { cursor: pointer; }
.nx-finder__qv {
  display: inline-flex; align-items: center; min-height: 38px; padding: .45rem .95rem; border-radius: 999px;
  font-size: .86rem; font-weight: 600; line-height: 1.2; color: var(--nx-navy); background: var(--nx-bg-tint);
  transition: background .2s, color .2s;
}
.nx-finder__qv:hover { background: var(--nx-navy); color: #fff; }
@media (max-width: 1100px) { .nx-finder__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .nx-finder__grid { grid-template-columns: 1fr; } }

/* Quick view: a native modal dialog. A centred panel on wide screens, a sheet from the bottom on a phone. */
.nx-qv {
  width: min(40rem, calc(100vw - 32px)); max-width: none; max-height: min(46rem, calc(100dvh - 32px));
  padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  background: var(--nx-surface); color: var(--nx-body); box-shadow: var(--nx-shadow-lg); text-align: start;
}
.nx-qv[open] { display: flex; flex-direction: column; animation: nx-qv-in .28s var(--nx-ease); }
.nx-qv::backdrop { background: rgba(1, 17, 47, .55); }
@keyframes nx-qv-in { from { opacity: 0; transform: translateY(14px); } }
.nx-qv__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.4rem 1.1rem; border-bottom: 1px solid var(--nx-line); }
.nx-qv .nx-qv__title { margin: .7rem 0 .15rem; font-size: clamp(1.5rem, 1.3rem + .9vw, 1.95rem); line-height: 1.1; letter-spacing: -.03em; color: var(--nx-text); }
.nx-qv__kind { margin: 0; font-size: .9rem; color: var(--nx-muted); }
.nx-qv__x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--nx-bg-tint); color: var(--nx-navy); transition: background .2s, color .2s; }
.nx-qv__x:hover { background: var(--nx-navy); color: #fff; }
.nx-qv__x:focus-visible { outline: 2px solid var(--nx-blue); outline-offset: 2px; border-radius: 50%; }
.nx-qv__body { overflow-y: auto; overscroll-behavior: contain; padding: 1.2rem 1.4rem 1.3rem; }
.nx-qv .nx-qv__body h3 {
  margin: 0 0 .7rem; font-family: var(--nx-font-mono); font-size: .7rem; font-weight: 500; line-height: 1.4;
  letter-spacing: .14em; text-transform: uppercase; color: var(--nx-muted);
}
[dir="rtl"] .nx-qv .nx-qv__body h3 { font-family: var(--nx-font); font-size: .86rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.nx-qv__feats { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .6rem; }
.nx-qv__feats li { position: relative; padding-inline-start: 1.7rem; font-size: .96rem; line-height: 1.5; color: var(--nx-text); }
.nx-qv__feats li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .22rem; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--nx-teal-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / .7rem no-repeat;
}
.nx-qv__body > p { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--nx-body); }
.nx-qv__foot { display: flex; flex-wrap: wrap; gap: .6rem; padding: 1rem 1.4rem 1.2rem; border-top: 1px solid var(--nx-line); background: var(--nx-bg); }
@media (max-width: 640px) {
  .nx-qv { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .nx-qv__foot .nx-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-qv[open] { animation: none; }
  .nx-finder__card { transition: none; }
  .nx-finder__card:hover { transform: none; }
}

/* ---------- WhatsApp in the header and the menu ----------
   The WhatsApp glyph on the brand's green, beside the language switch at every width and
   again, with its label, at the foot of the phone menu. The greens are the only colours the
   free-consultation dialog adds to the palette. */
:root {
  --nx-wa:      #25D366;   /* WhatsApp green: fills and hairlines on dark */
  --nx-wa-deep: #0B7A43;   /* behind a white glyph: 5.3:1 */
  --nx-wa-ink:  #6BE39B;   /* green text on the navy card: 10:1 */
}
.nx-hwa {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--nx-wa-deep); color: #fff;
  transition: background-color .2s var(--nx-ease), transform .2s var(--nx-ease);
}
.nx-hwa svg { width: 20px; height: 20px; }
.nx-hwa:hover { background: var(--nx-wa); color: var(--nx-navy); transform: translateY(-1px); }
.nx-hwa:focus-visible { outline: 2px solid var(--nx-blue); outline-offset: 3px; }
@media (max-width: 420px) { .nx-hwa { width: 32px; height: 32px; } .nx-hwa svg { width: 18px; height: 18px; } }
/* Below this the logo, language switch, Contact and the menu button fill the row; WhatsApp is in the menu. */
@media (max-width: 359px) { .nx-hwa { display: none; } }
.nx-mobile__foot .nx-mobile__wa { gap: .55rem; border-color: color-mix(in srgb, var(--nx-wa) 55%, transparent); color: var(--nx-wa-ink); }
.nx-mobile__foot .nx-mobile__wa svg { width: 20px; height: 20px; flex: none; }
.nx-mobile__foot .nx-mobile__wa:hover { background: var(--nx-wa); border-color: var(--nx-wa); color: var(--nx-navy); }
.nx-mobile__foot .nx-mobile__wa:hover svg { transform: none; }

/* ---------- Free consultation ----------
   A floating link in the corner of every page and one native modal dialog (assets/js/nx-consult.js).
   The card is the brand navy on light and dark pages alike. */
.nx-consult-fab {
  position: fixed; inset-inline-end: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 90;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1.05rem 0 .9rem;
  border-radius: 999px; background: var(--nx-navy); color: #fff; border: 1px solid var(--nx-navy-600);
  font-size: .875rem; font-weight: 600; line-height: 1; white-space: nowrap; box-shadow: var(--nx-shadow);
  transition: transform .25s var(--nx-ease), background-color .25s, border-color .25s;
}
[dir="rtl"] .nx-consult-fab { padding: 0 .9rem 0 1.05rem; }
.nx-consult-fab svg { width: 20px; height: 20px; flex: none; color: var(--nx-teal); }
.nx-consult-fab:hover, .nx-consult-fab:focus-visible { transform: translateY(-2px); background: var(--nx-navy-800); border-color: var(--nx-teal); }
.nx-consult-fab:focus-visible { outline: 2px solid var(--nx-blue); outline-offset: 3px; }
/* Product pages keep their round WhatsApp link in the corner; the consultation link sits beside it. */
.nx-consult-fab--beside { inset-inline-end: calc(clamp(12px, 2vw, 24px) + 56px); }
@media print { .nx-consult-fab, .nx-consult { display: none; } }

.nx-consult {
  width: min(440px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  margin: auto; padding: clamp(1.35rem, 1.1rem + 1.4vw, 2rem); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--nx-line-dark); border-radius: 22px;
  background: var(--nx-navy) linear-gradient(180deg, var(--nx-dark-soft) 0%, var(--nx-navy) 62%);
  color: var(--nx-on-dark-mut); text-align: start;
  box-shadow: 0 44px 90px -30px rgba(0, 10, 30, .75), 0 12px 30px -16px rgba(0, 10, 30, .5);
}
.nx-consult[open] { animation: nx-consult-in .3s var(--nx-ease); }
.nx-consult::backdrop { background: rgba(0, 10, 30, .68); }
@keyframes nx-consult-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
/* the brand gradient along the top edge */
.nx-consult::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--nx-grad);
  border-radius: 22px 22px 0 0;
}
.nx-consult__view[hidden] { display: none; }
.nx-consult__view:focus { outline: none; }
.nx-consult__x {
  position: absolute; top: 1rem; inset-inline-end: 1rem; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--nx-on-dark);
  transition: background-color .2s, color .2s;
}
.nx-consult__x:hover { background: #fff; color: var(--nx-navy); }
.nx-consult__x:focus-visible, .nx-consult__close:focus-visible, .nx-consult__go:focus-visible, .nx-consult__wa:focus-visible, .nx-consult__consent a:focus-visible {
  outline: 2px solid var(--nx-teal); outline-offset: 3px;
}
.nx-consult__pill {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 2.6rem 1.1rem 0; padding: .38rem .8rem .38rem .7rem;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--nx-wa) 38%, transparent);
  background: color-mix(in srgb, var(--nx-wa) 12%, transparent);
  color: var(--nx-wa-ink); font-size: .78rem; font-weight: 600; line-height: 1.2;
}
[dir="rtl"] .nx-consult__pill { margin: 0 0 1.1rem 2.6rem; padding: .38rem .7rem .38rem .8rem; }
.nx-consult__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--nx-wa); box-shadow: 0 0 0 4px color-mix(in srgb, var(--nx-wa) 22%, transparent); }
.nx-consult .nx-consult__h {
  margin: 0 0 .65rem; font-family: var(--nx-font-display); font-size: clamp(1.45rem, 1.25rem + 1vw, 1.8rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -.025em; color: #fff; text-wrap: balance;
}
[dir="rtl"] .nx-consult .nx-consult__h { letter-spacing: 0; line-height: 1.35; }
.nx-consult__sub { margin: 0 0 1.3rem; font-size: .93rem; line-height: 1.6; color: var(--nx-on-dark-mut); }
.nx-consult__form { display: grid; gap: .7rem; }
.nx-consult__field { display: grid; gap: .35rem; }
.nx-consult__field input, .nx-consult__field select {
  width: 100%; min-height: 50px; padding: .8rem 1rem; font: inherit; font-size: 1rem; color: #fff;
  background-color: var(--nx-navy-800); border: 1px solid var(--nx-line-dark); border-radius: 12px;
  transition: border-color .2s var(--nx-ease), box-shadow .2s var(--nx-ease);
}
.nx-consult__field input::placeholder { color: var(--nx-on-dark-mut); opacity: 1; }
[dir="rtl"] .nx-consult__field input[dir="ltr"] { text-align: right; }
.nx-consult__field select {
  appearance: none; padding-inline-end: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239DAECB' stroke-width='2.2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
}
[dir="rtl"] .nx-consult__field select { background-position: left 1rem center; }
.nx-consult__field select option { color: var(--nx-text); background: #fff; }
.nx-consult__field input:hover, .nx-consult__field select:hover { border-color: rgba(255, 255, 255, .26); }
.nx-consult__field input:focus, .nx-consult__field select:focus { outline: none; border-color: var(--nx-teal); box-shadow: 0 0 0 3px rgba(0, 219, 178, .28); }
.nx-consult__field [aria-invalid="true"] { border-color: #FF8A8A; box-shadow: 0 0 0 3px rgba(255, 138, 138, .18); }
.nx-consult__hint { margin: 0; padding-inline: .2rem; font-size: .78rem; line-height: 1.4; color: var(--nx-on-dark-mut); }
.nx-consult__err { margin: 0; padding-inline: .2rem; font-size: .8rem; line-height: 1.4; color: #FFA3A3; }
.nx-consult__err:empty, .nx-consult__status:empty { display: none; }
.nx-consult__status { margin: 0; padding: .7rem .9rem; border-radius: 10px; font-size: .86rem; line-height: 1.5; border: 1px solid; }
.nx-consult__status.is-err { color: #FFC2C2; border-color: rgba(255, 138, 138, .45); background: rgba(255, 138, 138, .09); }
.nx-consult__go {
  display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; min-height: 52px; margin-top: .25rem;
  padding: .8rem 1.2rem; border-radius: 12px; background: #fff; color: var(--nx-navy);
  font-size: 1rem; font-weight: 700; line-height: 1.2; transition: transform .2s var(--nx-ease), box-shadow .2s var(--nx-ease), background-color .2s;
}
.nx-consult__go svg { flex: none; transition: transform .25s var(--nx-ease); }
[dir="rtl"] .nx-consult__go svg { transform: scaleX(-1); }
.nx-consult__go:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(0, 219, 178, .7); }
.nx-consult__go:hover svg { transform: translateX(3px); }
[dir="rtl"] .nx-consult__go:hover svg { transform: scaleX(-1) translateX(3px); }
.nx-consult__go[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.nx-consult__or { display: flex; align-items: center; gap: .9rem; margin: .2rem 0; font-size: .8rem; color: var(--nx-on-dark-mut); }
.nx-consult__or::before, .nx-consult__or::after { content: ''; flex: 1; height: 1px; background: var(--nx-line-dark); }
.nx-consult__wa {
  display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 52px; padding: .8rem 1.2rem;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--nx-wa) 42%, transparent);
  background: color-mix(in srgb, var(--nx-wa) 12%, transparent); color: var(--nx-wa-ink);
  font-size: 1rem; font-weight: 700; line-height: 1.2; transition: background-color .2s, border-color .2s, color .2s;
}
.nx-consult__wa svg { width: 22px; height: 22px; flex: none; }
.nx-consult__wa:hover { background: var(--nx-wa); border-color: var(--nx-wa); color: var(--nx-navy); }
.nx-consult__consent { margin: .35rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--nx-on-dark-mut); text-align: center; }
.nx-consult__consent a { color: var(--nx-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.nx-consult__consent a:hover { color: var(--nx-teal); }
.nx-consult__facts {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .7rem; margin: .5rem 0 0; padding: .9rem 0 0;
  border-top: 1px solid var(--nx-line-dark); font-size: .78rem; line-height: 1.4; color: var(--nx-on-dark-mut);
}
.nx-consult__facts li + li::before { content: '·'; margin-inline-end: .7rem; color: rgba(255, 255, 255, .35); }
.nx-consult__view--done { display: grid; justify-items: start; gap: 0; padding-top: .4rem; }
.nx-consult__tick {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.1rem; border-radius: 50%;
  background: color-mix(in srgb, var(--nx-wa) 14%, transparent); border: 1px solid color-mix(in srgb, var(--nx-wa) 42%, transparent); color: var(--nx-wa-ink);
}
.nx-consult__close {
  width: 100%; min-height: 48px; margin-top: .7rem; border-radius: 12px; border: 1px solid var(--nx-line-dark);
  color: var(--nx-on-dark); font-size: .95rem; font-weight: 600; transition: background-color .2s, border-color .2s;
}
.nx-consult__close:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
@media (max-width: 480px) {
  .nx-consult-fab { min-height: 44px; padding-inline: .8rem .9rem; font-size: .82rem; }
  .nx-consult { border-radius: 18px; }
  .nx-consult::before { border-radius: 18px 18px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-consult[open] { animation: none; }
  .nx-consult-fab, .nx-hwa, .nx-consult__go, .nx-consult__go svg { transition: none; }
  .nx-consult-fab:hover, .nx-consult-fab:focus-visible, .nx-hwa:hover, .nx-consult__go:hover { transform: none; }
  .nx-consult__go:hover svg { transform: none; }
  [dir="rtl"] .nx-consult__go:hover svg { transform: scaleX(-1); }
}
