/* ===== 01-tokens.css ===== */
/* ==========================================================================
   NAARIX — DESIGN TOKENS
   Single source of truth for colour, type, space, radius, border, shadow,
   motion and layering. Nothing below this file should hard-code a raw value.
   ========================================================================== */

:root {
  /* --- Brand ramp: deep navy → near-black -------------------------------- */
  --nx-ink-950: #05070E;
  --nx-ink-900: #080B14;
  --nx-ink-850: #0B101C;
  --nx-ink-800: #101725;
  --nx-ink-700: #18202F;
  --nx-ink-600: #222C3D;
  --nx-ink-500: #303C50;

  /* --- Light ramp: paper → fog ------------------------------------------ */
  --nx-paper-000: #FFFFFF;
  --nx-paper-050: #FAFBFD;
  --nx-paper-100: #F4F6FA;
  --nx-paper-200: #ECEFF5;
  --nx-paper-300: #DFE4EE;
  --nx-paper-400: #C9D1E0;

  /* --- Accent: electric blue with a cyan edge --------------------------- */
  --nx-accent-700: #0A4FB8;
  --nx-accent-600: #0B63E5;
  --nx-accent-500: #1A7BFF;   /* primary accent */
  --nx-accent-400: #4E9BFF;
  --nx-accent-300: #8FC0FF;
  --nx-accent-050: #EAF2FF;

  --nx-cyan-500: #22D3E8;     /* secondary accent — details only */
  --nx-cyan-400: #5CE3F2;
  --nx-cyan-050: #E6FBFE;

  /* Signal colours — used for form states only, never decoration */
  --nx-ok-500: #17A66B;
  --nx-warn-500: #C98A0E;
  --nx-err-500: #D4483B;

  /* --- Semantic surfaces: LIGHT context (default) ----------------------- */
  --nx-bg: var(--nx-paper-000);
  --nx-bg-sunken: var(--nx-paper-100);
  --nx-bg-raised: var(--nx-paper-000);
  --nx-bg-inset: var(--nx-paper-050);

  --nx-text: #0A1020;
  --nx-text-strong: #05080F;
  --nx-text-muted: #56627A;
  --nx-text-faint: #7E8AA0;

  --nx-line: #E3E8F1;
  --nx-line-strong: #CFD7E5;
  --nx-line-accent: rgba(26, 123, 255, 0.35);

  --nx-accent: var(--nx-accent-600);
  --nx-accent-hover: var(--nx-accent-700);
  --nx-accent-soft: var(--nx-accent-050);
  --nx-on-accent: #FFFFFF;

  --nx-focus: var(--nx-accent-500);
  --nx-selection: rgba(26, 123, 255, 0.18);

  /* --- Typography ------------------------------------------------------- */
  --nx-font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --nx-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --nx-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo,
    Consolas, monospace;

  /* Fluid type scale — min at 360px viewport, max at 1440px */
  --nx-fs-display: clamp(2.25rem, 0.90rem + 5.60vw, 5.25rem);
  --nx-fs-h1: clamp(2.25rem, 1.30rem + 4.22vw, 3.875rem);
  --nx-fs-h2: clamp(1.75rem, 1.22rem + 2.37vw, 2.75rem);
  --nx-fs-h3: clamp(1.3125rem, 1.09rem + 0.99vw, 1.75rem);
  --nx-fs-h4: clamp(1.125rem, 1.03rem + 0.42vw, 1.3125rem);
  --nx-fs-lead: clamp(1.0625rem, 0.99rem + 0.33vw, 1.25rem);
  --nx-fs-body: 1rem;
  --nx-fs-sm: 0.9375rem;
  --nx-fs-xs: 0.8125rem;
  --nx-fs-label: 0.75rem;

  --nx-lh-tight: 1.04;
  --nx-lh-snug: 1.18;
  --nx-lh-heading: 1.26;
  --nx-lh-body: 1.65;
  --nx-lh-prose: 1.78;

  --nx-ls-display: -0.035em;
  --nx-ls-heading: -0.022em;
  --nx-ls-body: -0.008em;
  --nx-ls-label: 0.14em;

  --nx-fw-regular: 400;
  --nx-fw-medium: 500;
  --nx-fw-semibold: 600;
  --nx-fw-bold: 700;

  /* --- Space scale (4px base) ------------------------------------------ */
  --nx-space-1: 0.25rem;
  --nx-space-2: 0.5rem;
  --nx-space-3: 0.75rem;
  --nx-space-4: 1rem;
  --nx-space-5: 1.25rem;
  --nx-space-6: 1.5rem;
  --nx-space-8: 2rem;
  --nx-space-10: 2.5rem;
  --nx-space-12: 3rem;
  --nx-space-16: 4rem;
  --nx-space-20: 5rem;
  --nx-space-24: 6rem;
  --nx-space-32: 8rem;

  /* Vertical section rhythm — fluid */
  --nx-section-y: clamp(4.5rem, 2.8rem + 7.5vw, 8.5rem);
  --nx-section-y-sm: clamp(3.25rem, 2.2rem + 4.6vw, 5.5rem);

  /* --- Layout ----------------------------------------------------------- */
  --nx-container: 1240px;
  --nx-container-wide: 1440px;
  --nx-container-prose: 720px;
  --nx-gutter: clamp(1.25rem, 0.85rem + 1.8vw, 2.5rem);
  --nx-header-h: 72px;

  /* --- Radius — deliberately restrained (technical, not bubbly) --------- */
  --nx-radius-xs: 3px;
  --nx-radius-sm: 5px;
  --nx-radius-md: 8px;
  --nx-radius-lg: 12px;
  --nx-radius-pill: 999px;

  /* --- Borders ---------------------------------------------------------- */
  --nx-border: 1px solid var(--nx-line);
  --nx-border-strong: 1px solid var(--nx-line-strong);

  /* --- Shadows — low, wide, cool-tinted --------------------------------- */
  --nx-shadow-xs: 0 1px 2px rgba(10, 16, 32, 0.05);
  --nx-shadow-sm: 0 1px 2px rgba(10, 16, 32, 0.04), 0 2px 8px rgba(10, 16, 32, 0.05);
  --nx-shadow-md: 0 2px 4px rgba(10, 16, 32, 0.04), 0 8px 24px rgba(10, 16, 32, 0.07);
  --nx-shadow-lg: 0 4px 8px rgba(10, 16, 32, 0.05), 0 18px 48px rgba(10, 16, 32, 0.10);
  --nx-shadow-accent: 0 8px 28px rgba(11, 99, 229, 0.22);

  /* --- Motion ----------------------------------------------------------- */
  --nx-ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nx-ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1);
  --nx-ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

  --nx-dur-instant: 90ms;
  --nx-dur-fast: 160ms;
  --nx-dur-base: 260ms;
  --nx-dur-slow: 480ms;
  --nx-dur-reveal: 700ms;

  /* --- Layering --------------------------------------------------------- */
  --nx-z-base: 1;
  --nx-z-sticky: 50;
  --nx-z-drawer: 200;
  /* Above the drawer: the close control lives in the header. */
  --nx-z-header: 250;
  --nx-z-toast: 300;
  --nx-z-skip: 400;
}

/* ==========================================================================
   DARK CONTEXT
   Applied per-section via [data-theme="dark"], not globally. This is what
   makes the dark hero / light body / dark CTA strategy a single system
   instead of two websites.
   ========================================================================== */

[data-theme="dark"] {
  --nx-bg: var(--nx-ink-900);
  --nx-bg-sunken: var(--nx-ink-950);
  --nx-bg-raised: var(--nx-ink-850);
  --nx-bg-inset: var(--nx-ink-800);

  --nx-text: #E7ECF6;
  --nx-text-strong: #FFFFFF;
  --nx-text-muted: #9AA7BF;
  --nx-text-faint: #75849E;

  --nx-line: rgba(255, 255, 255, 0.10);
  --nx-line-strong: rgba(255, 255, 255, 0.18);
  --nx-line-accent: rgba(92, 227, 242, 0.42);

  --nx-accent: var(--nx-accent-400);
  --nx-accent-hover: var(--nx-accent-300);
  --nx-accent-soft: rgba(26, 123, 255, 0.14);
  --nx-on-accent: #FFFFFF;

  --nx-focus: var(--nx-cyan-400);
  --nx-selection: rgba(92, 227, 242, 0.24);

  --nx-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --nx-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.3);
  --nx-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.38);
  --nx-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.3), 0 18px 48px rgba(0, 0, 0, 0.45);
  --nx-shadow-accent: 0 8px 28px rgba(26, 123, 255, 0.28);
}


/* ===== 02-base.css ===== */
/* ==========================================================================
   NAARIX — RESET, ELEMENT DEFAULTS, ACCESSIBILITY
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nx-header-h) + var(--nx-space-6));
}

body {
  background: var(--nx-bg);
  color: var(--nx-text);
  font-family: var(--nx-font-body);
  font-size: var(--nx-fs-body);
  line-height: var(--nx-lh-body);
  letter-spacing: var(--nx-ls-body);
  font-weight: var(--nx-fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--nx-selection);
  color: var(--nx-text-strong);
}

/* --- Headings ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--nx-font-display);
  font-weight: var(--nx-fw-semibold);
  line-height: var(--nx-lh-heading);
  letter-spacing: var(--nx-ls-heading);
  color: var(--nx-text-strong);
  text-wrap: balance;
}

h1 { font-size: var(--nx-fs-h1); line-height: var(--nx-lh-snug); letter-spacing: var(--nx-ls-display); }
h2 { font-size: var(--nx-fs-h2); letter-spacing: -0.028em; }
h3 { font-size: var(--nx-fs-h3); }
h4 { font-size: var(--nx-fs-h4); }
h5, h6 { font-size: var(--nx-fs-body); }

p { text-wrap: pretty; }

/* --- Links -------------------------------------------------------------- */
a {
  color: var(--nx-accent);
  text-decoration: none;
  transition: color var(--nx-dur-fast) var(--nx-ease-out);
}
a:hover { color: var(--nx-accent-hover); }

/* --- Media -------------------------------------------------------------- */
img, svg, video, canvas, picture {
  display: block;
  max-width: 100%;
}
img, video { height: auto; }
/* SVGs declare their own fill; never force one globally. */

/* --- Lists -------------------------------------------------------------- */
ul, ol { padding: 0; list-style: none; }

/* --- Forms -------------------------------------------------------------- */
button, input, select, textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button { background: none; border: none; cursor: pointer; }
textarea { resize: vertical; }

/* --- Tables ------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; }

/* --- Code --------------------------------------------------------------- */
code, kbd, pre, samp { font-family: var(--nx-font-mono); font-size: 0.9em; }

hr {
  border: 0;
  border-top: 1px solid var(--nx-line);
}

/* The UA rule for [hidden] is display:block, so any component that sets its
   own display (flex/grid) silently ignores it. Filtering, load-more and the
   tool result panels all rely on the attribute, so it has to win. */
[hidden] { display: none !important; }

/* ==========================================================================
   FOCUS — visible, consistent, never removed
   ========================================================================== */

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--nx-focus);
  outline-offset: 3px;
  border-radius: var(--nx-radius-xs);
}

/* Inputs keep focus tight to the control */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 1px;
}

.nx-skip-link {
  position: absolute;
  top: var(--nx-space-3);
  left: var(--nx-space-3);
  z-index: var(--nx-z-skip);
  padding: var(--nx-space-3) var(--nx-space-5);
  background: var(--nx-ink-900);
  color: #fff;
  border-radius: var(--nx-radius-sm);
  font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-medium);
  transform: translateY(calc(-100% - var(--nx-space-4)));
  transition: transform var(--nx-dur-fast) var(--nx-ease-out);
}
.nx-skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
}

/* Screen-reader-only, still focusable */
.nx-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   MOTION PREFERENCES
   Every animated construct in this codebase must survive this block.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Reveals must land in their final state, not stay hidden */
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}


/* ===== 03-layout.css ===== */
/* ==========================================================================
   NAARIX — LAYOUT PRIMITIVES
   Container, section, grid, section headers, and the scroll-reveal system.
   ========================================================================== */

.nx-container {
  width: 100%;
  max-width: var(--nx-container);
  margin-inline: auto;
  padding-inline: var(--nx-gutter);
}
.nx-container--wide { max-width: var(--nx-container-wide); }
.nx-container--prose { max-width: var(--nx-container-prose); }

/* --- Section ------------------------------------------------------------ */
.nx-section {
  position: relative;
  padding-block: var(--nx-section-y);
  background: var(--nx-bg);
  color: var(--nx-text);
}
.nx-section--sm { padding-block: var(--nx-section-y-sm); }
.nx-section--flush-top { padding-top: 0; }
.nx-section--flush-bottom { padding-bottom: 0; }
.nx-section--sunken { background: var(--nx-bg-sunken); }

/* Hairline between stacked light sections — quieter than a border on both */
.nx-section--ruled { border-top: 1px solid var(--nx-line); }

/* Dark sections get the brand's technical substrate */
.nx-section[data-theme="dark"] {
  background: var(--nx-ink-900);
  color: var(--nx-text);
}

/* --- Ambient backgrounds (decorative, always aria-hidden) --------------- */
.nx-grid-bg,
.nx-dot-bg,
.nx-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Blueprint grid — 1px hairlines fading out at the edges */
.nx-grid-bg {
  background-image:
    linear-gradient(to right, var(--nx-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--nx-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
  opacity: 0.85;
}

.nx-dot-bg {
  background-image: radial-gradient(circle at 1px 1px, var(--nx-line-strong) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 75%);
  opacity: 0.6;
}

/* Restrained accent bloom — one per dark section, never stacked */
.nx-glow {
  background:
    radial-gradient(52rem 32rem at 78% -10%, rgba(26, 123, 255, 0.16), transparent 62%),
    radial-gradient(38rem 26rem at 8% 108%, rgba(34, 211, 232, 0.09), transparent 66%);
}

/* --- Grids -------------------------------------------------------------- */
.nx-grid {
  display: grid;
  gap: var(--nx-space-6);
}
.nx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nx-grid--gap-lg { gap: var(--nx-space-8); }
.nx-grid--gap-sm { gap: var(--nx-space-4); }

/* Split layout: content + visual */
.nx-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1.4rem + 4.5vw, 5rem);
  align-items: center;
}
.nx-split--lead { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.nx-split--narrow-first { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.nx-split--top { align-items: start; }

@media (max-width: 980px) {
  .nx-grid--3, .nx-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-split,
  .nx-split--lead,
  .nx-split--narrow-first { grid-template-columns: minmax(0, 1fr); }
  /* Visual follows content on narrow screens regardless of source order */
  .nx-split__visual { order: 2; }
  .nx-split__body { order: 1; }
}

@media (max-width: 620px) {
  .nx-grid--2, .nx-grid--3, .nx-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */

.nx-section-head {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-5);
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 1.8rem + 3vw, 4rem);
}
.nx-section-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}
.nx-section-head--wide { max-width: 78ch; }

/* Header with a trailing action pinned right on desktop */
.nx-section-head--split {
  max-width: none;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--nx-space-8);
}
.nx-section-head--split > .nx-section-head__text {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-5);
  max-width: 62ch;
}

@media (max-width: 760px) {
  .nx-section-head--split { flex-direction: column; align-items: flex-start; }
}

/* Eyebrow: mono, tracked, with a leading tick — a core brand signature */
.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-3);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-label);
  font-weight: var(--nx-fw-medium);
  letter-spacing: var(--nx-ls-label);
  text-transform: uppercase;
  color: var(--nx-accent);
}
.nx-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.nx-section-head--center .nx-eyebrow::before { display: none; }

.nx-section-title { font-size: var(--nx-fs-h2); }

.nx-lead {
  font-size: var(--nx-fs-lead);
  line-height: var(--nx-lh-body);
  color: var(--nx-text-muted);
  max-width: 60ch;
}
.nx-section-head--center .nx-lead { margin-inline: auto; }

/* ==========================================================================
   SCROLL REVEAL
   Opacity + transform only. Elements are visible by default and only hidden
   once JS confirms IntersectionObserver support (html.nx-reveal-ready),
   so a JS failure can never leave the page blank.
   ========================================================================== */

.nx-reveal-ready [data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity var(--nx-dur-reveal) var(--nx-ease-out),
    transform var(--nx-dur-reveal) var(--nx-ease-spring);
  transition-delay: var(--nx-reveal-delay, 0ms);
}

.nx-reveal-ready [data-reveal="up"]    { transform: translate3d(0, 28px, 0); }
.nx-reveal-ready [data-reveal="down"]  { transform: translate3d(0, -20px, 0); }
.nx-reveal-ready [data-reveal="left"]  { transform: translate3d(28px, 0, 0); }
.nx-reveal-ready [data-reveal="right"] { transform: translate3d(-28px, 0, 0); }
.nx-reveal-ready [data-reveal="scale"] { transform: scale(0.965); }
.nx-reveal-ready [data-reveal="fade"]  { transform: none; }

.nx-reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Line that draws itself in — used for section rules and diagram edges */
.nx-reveal-ready [data-reveal="line"] {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--nx-dur-slow) var(--nx-ease-out);
  transition-delay: var(--nx-reveal-delay, 0ms);
}
.nx-reveal-ready [data-reveal="line"].is-revealed { transform: scaleX(1); }


/* ===== 04-nav.css ===== */
/* ==========================================================================
   NAARIX — HEADER, NAVIGATION, FOOTER
   ========================================================================== */

/* --- Brand mark --------------------------------------------------------- */
.nx-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-3);
  color: var(--nx-text-strong);
  font-family: var(--nx-font-display);
  font-size: 1.0625rem;
  font-weight: var(--nx-fw-bold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1;
  flex-shrink: 0;
}
.nx-logo:hover { color: var(--nx-text-strong); }
.nx-logo__mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  overflow: visible;
}
.nx-logo__mark .nx-logo__node {
  transform-box: fill-box;
  transform-origin: center;
}
.nx-logo:hover .nx-logo__node { animation: nx-logo-pulse 1.1s var(--nx-ease-out); }

@keyframes nx-logo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  45%      { opacity: 0.55; transform: scale(1.5); }
}

/* ==========================================================================
   HEADER
   Two states: translucent over a dark hero, solid once scrolled.
   ========================================================================== */

.nx-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--nx-z-header);
  height: var(--nx-header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--nx-dur-base) var(--nx-ease-out),
    border-color var(--nx-dur-base) var(--nx-ease-out),
    backdrop-filter var(--nx-dur-base) var(--nx-ease-out);
}

/* Default (interior pages): solid light bar from the start */
.nx-header {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--nx-line);
}

/* Pages whose first section is dark: header floats transparently over it */
.nx-header[data-over-dark="true"] {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.nx-header[data-over-dark="true"].is-scrolled {
  background: rgba(8, 11, 20, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

/* Over the open drawer the bar goes transparent and inverts, so the close
   control is always visible regardless of the page underneath. */
body.nx-drawer-open .nx-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transform: none;
}
body.nx-drawer-open .nx-logo { color: #fff; }
body.nx-drawer-open .nx-burger { border-color: rgba(255, 255, 255, 0.22); }
body.nx-drawer-open .nx-burger__bar { background: #fff; }

/* Hide the bar when scrolling down mid-page, bring it back on scroll up */
.nx-header.is-hidden { transform: translateY(-100%); }
.nx-header { transition-property: background-color, border-color, transform; }
.nx-header { transform: translateY(0); }

.nx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-6);
  width: 100%;
}

.nx-header__actions {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
}

/* --- Primary nav -------------------------------------------------------- */
.nx-nav { display: flex; align-items: center; gap: var(--nx-space-1); }

.nx-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  padding: var(--nx-space-2) var(--nx-space-4);
  border-radius: var(--nx-radius-sm);
  font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-medium);
  color: var(--nx-text-muted);
  transition: color var(--nx-dur-fast) var(--nx-ease-out);
}
.nx-nav__link:hover { color: var(--nx-text-strong); }

/* Active state: a short accent rule under the label */
.nx-nav__link::after {
  content: "";
  position: absolute;
  left: var(--nx-space-4);
  right: var(--nx-space-4);
  bottom: 2px;
  height: 1.5px;
  background: var(--nx-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--nx-dur-base) var(--nx-ease-spring);
}
.nx-nav__link[aria-current="page"],
.nx-nav__link.is-active { color: var(--nx-text-strong); }
.nx-nav__link[aria-current="page"]::after,
.nx-nav__link.is-active::after { transform: scaleX(1); }

.nx-nav__caret {
  width: 10px;
  height: 10px;
  opacity: 0.6;
  transition: transform var(--nx-dur-fast) var(--nx-ease-out);
}
[aria-expanded="true"] > .nx-nav__caret { transform: rotate(180deg); }

/* --- Resources dropdown ------------------------------------------------- */
.nx-nav__group { position: relative; }

.nx-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: min(440px, calc(100vw - 2 * var(--nx-gutter)));
  padding: var(--nx-space-3);
  display: grid;
  gap: var(--nx-space-1);
  background: var(--nx-paper-000);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition:
    opacity var(--nx-dur-fast) var(--nx-ease-out),
    transform var(--nx-dur-fast) var(--nx-ease-out),
    visibility var(--nx-dur-fast);
}
.nx-nav__group.is-open .nx-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nx-dropdown__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: var(--nx-space-4);
  align-items: start;
  padding: var(--nx-space-4);
  border-radius: var(--nx-radius-md);
  color: var(--nx-text);
  transition: background-color var(--nx-dur-fast) var(--nx-ease-out);
}
.nx-dropdown__item:hover { background: var(--nx-paper-100); color: var(--nx-text); }

.nx-dropdown__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-sm);
  color: var(--nx-accent);
  background: var(--nx-paper-050);
}
.nx-dropdown__icon svg { width: 17px; height: 17px; }

.nx-dropdown__title {
  font-family: var(--nx-font-display);
  font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-semibold);
  color: var(--nx-text-strong);
}
.nx-dropdown__desc {
  font-size: var(--nx-fs-xs);
  line-height: 1.5;
  color: var(--nx-text-muted);
  margin-top: 2px;
}

/* Dark header context recolours nav + dropdown trigger */
.nx-header[data-over-dark="true"]:not(.is-scrolled) .nx-logo,
.nx-header[data-over-dark="true"].is-scrolled .nx-logo { color: #fff; }
.nx-header[data-over-dark="true"] .nx-nav__link { color: rgba(231, 236, 246, 0.72); }
.nx-header[data-over-dark="true"] .nx-nav__link:hover,
.nx-header[data-over-dark="true"] .nx-nav__link.is-active,
.nx-header[data-over-dark="true"] .nx-nav__link[aria-current="page"] { color: #fff; }
.nx-header[data-over-dark="true"] .nx-nav__link::after { background: var(--nx-cyan-400); }
.nx-header[data-over-dark="true"] .nx-burger__bar { background: #fff; }

/* --- Mobile trigger ----------------------------------------------------- */
.nx-burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-sm);
  flex-shrink: 0;
}
.nx-header[data-over-dark="true"]:not(.is-scrolled) .nx-burger {
  border-color: rgba(255, 255, 255, 0.2);
}
.nx-burger__bar {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  background: var(--nx-text-strong);
  border-radius: 2px;
  transition: transform var(--nx-dur-base) var(--nx-ease-spring),
              opacity var(--nx-dur-fast) linear;
}
.nx-burger__bar:nth-child(1) { top: 16px; }
.nx-burger__bar:nth-child(2) { top: 21px; }
.nx-burger__bar:nth-child(3) { top: 26px; }

.nx-burger[aria-expanded="true"] .nx-burger__bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nx-burger[aria-expanded="true"] .nx-burger__bar:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.nx-burger[aria-expanded="true"] .nx-burger__bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ==========================================================================
   MOBILE DRAWER
   ========================================================================== */

.nx-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--nx-z-drawer);
  display: flex;
  flex-direction: column;
  background: var(--nx-ink-950);
  color: #fff;
  padding: calc(var(--nx-header-h) + var(--nx-space-6)) var(--nx-gutter) var(--nx-space-10);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5%);
  transition:
    opacity var(--nx-dur-base) var(--nx-ease-out),
    transform var(--nx-dur-base) var(--nx-ease-out),
    visibility var(--nx-dur-base);
}
.nx-drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
body.nx-drawer-open { overflow: hidden; }

.nx-drawer__nav { display: flex; flex-direction: column; }

.nx-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-4);
  padding: var(--nx-space-5) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--nx-font-display);
  font-size: 1.5rem;
  font-weight: var(--nx-fw-medium);
  letter-spacing: var(--nx-ls-heading);
  color: rgba(255, 255, 255, 0.88);
  /* staggered entrance driven by --nx-i set in markup */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--nx-ease-out), transform 420ms var(--nx-ease-spring), color var(--nx-dur-fast) linear;
}
.nx-drawer.is-open .nx-drawer__link {
  opacity: 1;
  transform: none;
  transition-delay: calc(60ms + var(--nx-i, 0) * 45ms);
}
.nx-drawer__link:hover,
.nx-drawer__link[aria-current="page"] { color: #fff; }
.nx-drawer__link[aria-current="page"] .nx-drawer__idx { color: var(--nx-cyan-400); }

.nx-drawer__idx {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.34);
}

.nx-drawer__sub {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-2);
  padding: var(--nx-space-5) 0 0;
}
.nx-drawer__sub-link {
  padding: var(--nx-space-2) var(--nx-space-4);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--nx-radius-pill);
  font-size: var(--nx-fs-sm);
  color: rgba(255, 255, 255, 0.8);
}
.nx-drawer__sub-link:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

.nx-drawer__foot { margin-top: auto; padding-top: var(--nx-space-10); }

@media (max-width: 1040px) {
  .nx-nav, .nx-header__actions .nx-btn { display: none; }
  .nx-burger { display: block; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.nx-footer {
  position: relative;
  background: var(--nx-ink-950);
  color: var(--nx-text);
  padding-block: var(--nx-section-y-sm) var(--nx-space-8);
  overflow: hidden;
}

.nx-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  padding-bottom: var(--nx-space-12);
}

.nx-footer__about { max-width: 34ch; }
.nx-footer__desc {
  margin-top: var(--nx-space-5);
  font-size: var(--nx-fs-sm);
  line-height: 1.62;
  color: var(--nx-text-muted);
}

.nx-footer__heading {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-label);
  font-weight: var(--nx-fw-medium);
  letter-spacing: var(--nx-ls-label);
  text-transform: uppercase;
  color: var(--nx-text-faint);
  margin-bottom: var(--nx-space-5);
}

.nx-footer__list { display: flex; flex-direction: column; gap: var(--nx-space-3); }
.nx-footer__link {
  position: relative;
  align-self: flex-start;
  font-size: var(--nx-fs-sm);
  color: var(--nx-text-muted);
}
.nx-footer__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--nx-dur-base) var(--nx-ease-spring);
}
.nx-footer__link:hover { color: #fff; }
.nx-footer__link:hover::after { transform: scaleX(1); transform-origin: left center; }

.nx-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-5);
  padding-top: var(--nx-space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--nx-fs-xs);
  color: var(--nx-text-faint);
}

.nx-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-2) var(--nx-space-5);
}
.nx-footer__legal a { color: var(--nx-text-faint); }
.nx-footer__legal a:hover { color: #fff; }

.nx-social { display: flex; gap: var(--nx-space-2); }
.nx-social__link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--nx-radius-sm);
  color: var(--nx-text-muted);
  transition: color var(--nx-dur-fast) var(--nx-ease-out),
              border-color var(--nx-dur-fast) var(--nx-ease-out),
              transform var(--nx-dur-fast) var(--nx-ease-out);
}
.nx-social__link svg { width: 16px; height: 16px; }
.nx-social__link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .nx-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .nx-footer__bottom { flex-direction: column; align-items: flex-start; }
}


/* ===== 05-components.css ===== */
/* ==========================================================================
   NAARIX — COMPONENTS
   Buttons, cards, tags, badges, breadcrumbs, pagination, notes.
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.nx-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--nx-space-3);
  padding: 0.78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--nx-radius-sm);
  font-family: var(--nx-font-body);
  font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-medium);
  letter-spacing: -0.004em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition:
    background-color var(--nx-dur-fast) var(--nx-ease-out),
    border-color var(--nx-dur-fast) var(--nx-ease-out),
    color var(--nx-dur-fast) var(--nx-ease-out),
    box-shadow var(--nx-dur-base) var(--nx-ease-out),
    transform var(--nx-dur-fast) var(--nx-ease-out);
}
.nx-btn:active { transform: translateY(1px); }
.nx-btn:disabled,
.nx-btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.nx-btn__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform var(--nx-dur-base) var(--nx-ease-spring);
}
.nx-btn:hover .nx-btn__icon { transform: translateX(3px); }
.nx-btn--icon-up:hover .nx-btn__icon { transform: translate(2px, -2px); }

/* Primary — solid accent with a light sweep on hover */
.nx-btn--primary {
  background: var(--nx-accent);
  color: var(--nx-on-accent);
  box-shadow: var(--nx-shadow-accent);
}
.nx-btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.22) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: transform var(--nx-dur-slow) var(--nx-ease-out);
}
.nx-btn--primary:hover { background: var(--nx-accent-hover); }
.nx-btn--primary:hover::before { transform: translateX(120%); }
[data-theme="dark"] .nx-btn--primary { background: var(--nx-accent-500); }
[data-theme="dark"] .nx-btn--primary:hover { background: var(--nx-accent-400); }

/* Secondary — hairline outline */
.nx-btn--secondary {
  background: transparent;
  color: var(--nx-text-strong);
  border-color: var(--nx-line-strong);
}
.nx-btn--secondary:hover {
  background: var(--nx-bg-sunken);
  border-color: var(--nx-text-faint);
  color: var(--nx-text-strong);
}
[data-theme="dark"] .nx-btn--secondary { color: #fff; border-color: rgba(255, 255, 255, 0.22); }
[data-theme="dark"] .nx-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Ghost — text-weight action */
.nx-btn--ghost {
  background: transparent;
  color: var(--nx-text-strong);
  padding-inline: var(--nx-space-3);
}
.nx-btn--ghost:hover { color: var(--nx-accent); }

/* Quiet — filled neutral, used inside cards and toolbars */
.nx-btn--quiet {
  background: var(--nx-bg-sunken);
  border-color: var(--nx-line);
  color: var(--nx-text);
}
.nx-btn--quiet:hover { background: var(--nx-paper-200); color: var(--nx-text-strong); }
[data-theme="dark"] .nx-btn--quiet { background: rgba(255, 255, 255, 0.06); color: #fff; }
[data-theme="dark"] .nx-btn--quiet:hover { background: rgba(255, 255, 255, 0.11); }

.nx-btn--lg { padding: 0.95rem 1.7rem; font-size: var(--nx-fs-body); }
.nx-btn--sm { padding: 0.55rem 0.95rem; font-size: var(--nx-fs-xs); }
.nx-btn--block { width: 100%; }

.nx-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nx-space-4);
}
@media (max-width: 460px) {
  .nx-btn-row { flex-direction: column; align-items: stretch; }
  .nx-btn-row .nx-btn { width: 100%; }
}

/* --- Inline arrow link -------------------------------------------------- */
.nx-link {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-medium);
  color: var(--nx-accent);
}
.nx-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--nx-dur-base) var(--nx-ease-spring);
}
.nx-link:hover svg { transform: translateX(4px); }

/* Underline that wipes in from the left */
.nx-link--underline { position: relative; }
.nx-link--underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--nx-dur-base) var(--nx-ease-spring);
}
.nx-link--underline:hover::after { transform: scaleX(1); transform-origin: left center; }

/* ==========================================================================
   CARD — the base surface for every card variant on the site
   ========================================================================== */

.nx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--nx-space-8);
  background: var(--nx-bg-raised);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-md);
  transition:
    border-color var(--nx-dur-base) var(--nx-ease-out),
    box-shadow var(--nx-dur-base) var(--nx-ease-out),
    transform var(--nx-dur-base) var(--nx-ease-out),
    background-color var(--nx-dur-base) var(--nx-ease-out);
}

/* Accent rule that draws across the top edge on hover */
.nx-card--interactive::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--nx-accent-500), var(--nx-cyan-500));
  border-radius: var(--nx-radius-md) var(--nx-radius-md) 0 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--nx-dur-base) var(--nx-ease-spring);
}
.nx-card--interactive:hover,
.nx-card--interactive:focus-within {
  border-color: var(--nx-line-strong);
  box-shadow: var(--nx-shadow-md);
  transform: translateY(-3px);
}
.nx-card--interactive:hover::before,
.nx-card--interactive:focus-within::before { transform: scaleX(1); }

[data-theme="dark"] .nx-card {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.10);
}
[data-theme="dark"] .nx-card--interactive:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.nx-card--flat { background: var(--nx-bg-sunken); border-color: transparent; }
.nx-card--pad-sm { padding: var(--nx-space-6); }

.nx-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--nx-space-6);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-sm);
  background: var(--nx-bg-sunken);
  color: var(--nx-accent);
  transition: border-color var(--nx-dur-base) var(--nx-ease-out),
              color var(--nx-dur-base) var(--nx-ease-out),
              background-color var(--nx-dur-base) var(--nx-ease-out);
}
.nx-card__icon svg { width: 21px; height: 21px; }
.nx-card--interactive:hover .nx-card__icon {
  border-color: var(--nx-line-accent);
  background: var(--nx-accent-soft);
}
[data-theme="dark"] .nx-card__icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--nx-cyan-400);
}

.nx-card__title {
  font-size: var(--nx-fs-h4);
  font-weight: var(--nx-fw-semibold);
  margin-bottom: var(--nx-space-3);
}
.nx-card__text {
  font-size: var(--nx-fs-sm);
  line-height: 1.62;
  color: var(--nx-text-muted);
}
.nx-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-4);
  margin-top: auto;
  padding-top: var(--nx-space-6);
}

/* Index numeral used on service / process cards */
.nx-card__index {
  position: absolute;
  top: var(--nx-space-6);
  right: var(--nx-space-6);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-label);
  letter-spacing: 0.1em;
  color: var(--nx-text-faint);
  opacity: 0.6;
}

/* ==========================================================================
   TAGS, BADGES, PILLS
   ========================================================================== */

.nx-tag-row { display: flex; flex-wrap: wrap; gap: var(--nx-space-2); }

.nx-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-xs);
  background: var(--nx-bg-sunken);
  font-family: var(--nx-font-mono);
  font-size: 0.6875rem;
  font-weight: var(--nx-fw-medium);
  letter-spacing: 0.04em;
  color: var(--nx-text-muted);
  white-space: nowrap;
}
[data-theme="dark"] .nx-tag {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.11);
}
.nx-tag--accent {
  background: var(--nx-accent-soft);
  border-color: var(--nx-line-accent);
  color: var(--nx-accent);
}

/* Category chip used on blog + portfolio cards */
.nx-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: var(--nx-radius-pill);
  background: var(--nx-accent-soft);
  font-size: var(--nx-fs-xs);
  font-weight: var(--nx-fw-medium);
  color: var(--nx-accent);
  white-space: nowrap;
}
.nx-chip--neutral {
  background: var(--nx-bg-sunken);
  color: var(--nx-text-muted);
  border: 1px solid var(--nx-line);
}

/* Status badge — the honest label for placeholder content */
.nx-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  padding: 0.25rem 0.6rem;
  border: 1px dashed var(--nx-line-strong);
  border-radius: var(--nx-radius-xs);
  font-family: var(--nx-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nx-text-faint);
  background: transparent;
}
[data-theme="dark"] .nx-badge { border-color: rgba(255, 255, 255, 0.22); }

/* ==========================================================================
   FILTER BAR — shared by blog + portfolio
   ========================================================================== */

.nx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-2);
}
.nx-filter {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-pill);
  background: transparent;
  font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-medium);
  color: var(--nx-text-muted);
  transition:
    color var(--nx-dur-fast) var(--nx-ease-out),
    background-color var(--nx-dur-fast) var(--nx-ease-out),
    border-color var(--nx-dur-fast) var(--nx-ease-out);
}
.nx-filter:hover { color: var(--nx-text-strong); border-color: var(--nx-line-strong); }
.nx-filter[aria-pressed="true"] {
  background: var(--nx-ink-900);
  border-color: var(--nx-ink-900);
  color: #fff;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.nx-breadcrumb { font-size: var(--nx-fs-xs); color: var(--nx-text-faint); }
.nx-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nx-space-2);
}
.nx-breadcrumb li { display: flex; align-items: center; gap: var(--nx-space-2); }
.nx-breadcrumb li + li::before {
  content: "/";
  color: var(--nx-line-strong);
}
.nx-breadcrumb a { color: var(--nx-text-muted); }
.nx-breadcrumb a:hover { color: var(--nx-accent); }
.nx-breadcrumb [aria-current="page"] { color: var(--nx-text); }

/* ==========================================================================
   NOTE — editorial callout, also used to flag placeholder content
   ========================================================================== */

.nx-note {
  display: flex;
  gap: var(--nx-space-4);
  padding: var(--nx-space-5) var(--nx-space-6);
  background: var(--nx-bg-sunken);
  border-left: 2px solid var(--nx-accent);
  border-radius: 0 var(--nx-radius-sm) var(--nx-radius-sm) 0;
  font-size: var(--nx-fs-sm);
  line-height: 1.6;
  color: var(--nx-text-muted);
}
.nx-note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--nx-accent); margin-top: 2px; }
.nx-note strong { color: var(--nx-text-strong); font-weight: var(--nx-fw-semibold); }

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.nx-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--nx-space-4);
  padding: var(--nx-space-16) var(--nx-space-6);
  text-align: center;
  border: 1px dashed var(--nx-line-strong);
  border-radius: var(--nx-radius-md);
  color: var(--nx-text-muted);
}
.nx-empty.is-visible { display: flex; }


/* ===== 06-forms.css ===== */
/* ==========================================================================
   NAARIX — FORMS
   Shared by the contact form and every tool page.
   ========================================================================== */

.nx-form { display: flex; flex-direction: column; gap: var(--nx-space-6); }

.nx-field { display: flex; flex-direction: column; gap: var(--nx-space-2); }

.nx-field__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--nx-space-6);
}
@media (max-width: 620px) {
  .nx-field__row { grid-template-columns: minmax(0, 1fr); }
}

.nx-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--nx-space-3);
  font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-medium);
  color: var(--nx-text-strong);
}
.nx-label__optional {
  font-family: var(--nx-font-mono);
  font-size: 0.6875rem;
  font-weight: var(--nx-fw-regular);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nx-text-faint);
}

.nx-hint {
  font-size: var(--nx-fs-xs);
  line-height: 1.5;
  color: var(--nx-text-faint);
}

/* --- Controls ----------------------------------------------------------- */
.nx-input,
.nx-textarea,
.nx-select {
  width: 100%;
  padding: 0.78rem 0.95rem;
  background: var(--nx-bg);
  border: 1px solid var(--nx-line-strong);
  border-radius: var(--nx-radius-sm);
  font-size: var(--nx-fs-sm);
  color: var(--nx-text);
  transition:
    border-color var(--nx-dur-fast) var(--nx-ease-out),
    box-shadow var(--nx-dur-fast) var(--nx-ease-out),
    background-color var(--nx-dur-fast) var(--nx-ease-out);
}
.nx-input::placeholder,
.nx-textarea::placeholder { color: var(--nx-text-faint); }

.nx-input:hover,
.nx-textarea:hover,
.nx-select:hover { border-color: var(--nx-text-faint); }

.nx-input:focus,
.nx-textarea:focus,
.nx-select:focus {
  outline: none;
  border-color: var(--nx-accent);
  box-shadow: 0 0 0 3px var(--nx-accent-soft);
}

.nx-textarea { min-height: 150px; line-height: 1.6; }

.nx-select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2356627A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
  cursor: pointer;
}

/* --- Validation --------------------------------------------------------- */
.nx-field[data-invalid="true"] .nx-input,
.nx-field[data-invalid="true"] .nx-textarea,
.nx-field[data-invalid="true"] .nx-select { border-color: var(--nx-err-500); }
.nx-field[data-invalid="true"] .nx-input:focus,
.nx-field[data-invalid="true"] .nx-textarea:focus {
  box-shadow: 0 0 0 3px rgba(212, 72, 59, 0.14);
}

.nx-error {
  display: none;
  align-items: center;
  gap: var(--nx-space-2);
  font-size: var(--nx-fs-xs);
  color: var(--nx-err-500);
}
.nx-field[data-invalid="true"] .nx-error { display: flex; }

/* --- Choice chips (radio group styled as pills) ------------------------- */
.nx-choices { display: flex; flex-wrap: wrap; gap: var(--nx-space-2); }
.nx-choice { position: relative; }
.nx-choice input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.nx-choice span {
  display: block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--nx-line-strong);
  border-radius: var(--nx-radius-pill);
  font-size: var(--nx-fs-sm);
  color: var(--nx-text-muted);
  transition: all var(--nx-dur-fast) var(--nx-ease-out);
}
.nx-choice input:hover + span { border-color: var(--nx-text-faint); color: var(--nx-text-strong); }
.nx-choice input:checked + span {
  background: var(--nx-ink-900);
  border-color: var(--nx-ink-900);
  color: #fff;
}
.nx-choice input:focus-visible + span {
  outline: 2px solid var(--nx-focus);
  outline-offset: 2px;
}

/* --- Consent checkbox --------------------------------------------------- */
.nx-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--nx-space-3);
  align-items: start;
  font-size: var(--nx-fs-sm);
  color: var(--nx-text-muted);
  cursor: pointer;
}
.nx-check input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--nx-accent);
  cursor: pointer;
}

/* --- Form status message ------------------------------------------------ */
.nx-form-status {
  display: none;
  align-items: flex-start;
  gap: var(--nx-space-3);
  padding: var(--nx-space-4) var(--nx-space-5);
  border-radius: var(--nx-radius-sm);
  font-size: var(--nx-fs-sm);
  line-height: 1.55;
}
.nx-form-status.is-visible { display: flex; }
.nx-form-status[data-state="ok"] {
  background: rgba(23, 166, 107, 0.08);
  border: 1px solid rgba(23, 166, 107, 0.28);
  color: #0F7A4E;
}
.nx-form-status[data-state="error"] {
  background: rgba(212, 72, 59, 0.07);
  border: 1px solid rgba(212, 72, 59, 0.28);
  color: var(--nx-err-500);
}
.nx-form-status svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }


/* ===== 07-sections.css ===== */
/* ==========================================================================
   NAARIX — SECTION PATTERNS
   ========================================================================== */

/* ==========================================================================
   HERO — dark, used on the homepage only
   ========================================================================== */

.nx-hero {
  position: relative;
  padding-top: calc(var(--nx-header-h) + clamp(3.5rem, 2rem + 6vw, 7rem));
  padding-bottom: clamp(3.5rem, 2rem + 5vw, 6rem);
  background: var(--nx-ink-950);
  overflow: hidden;
  isolation: isolate;
}
.nx-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.nx-hero__bg .nx-grid-bg {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 75% at 60% 30%, #000 5%, transparent 72%);
}

.nx-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
}

.nx-hero__body { max-width: 36rem; }

.nx-hero__title {
  font-size: var(--nx-fs-display);
  font-weight: var(--nx-fw-semibold);
  line-height: var(--nx-lh-tight);
  letter-spacing: var(--nx-ls-display);
  color: #fff;
  margin-block: var(--nx-space-6) var(--nx-space-6);
  text-wrap: balance;
}
/* Each clause gets its own line on wide screens for a deliberate rhythm */
.nx-hero__title span { display: block; }
.nx-hero__title .nx-hero__title-accent {
  background: linear-gradient(96deg, #fff 18%, var(--nx-cyan-400) 62%, var(--nx-accent-400) 98%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nx-hero__lead {
  font-size: var(--nx-fs-lead);
  line-height: 1.6;
  color: rgba(231, 236, 246, 0.72);
  max-width: 34rem;
  margin-bottom: var(--nx-space-8);
}

.nx-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-3) var(--nx-space-6);
  margin-top: var(--nx-space-10);
  padding-top: var(--nx-space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  letter-spacing: 0.02em;
  color: rgba(231, 236, 246, 0.5);
}
.nx-hero__meta span { display: inline-flex; align-items: center; gap: var(--nx-space-2); }
.nx-hero__meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--nx-cyan-500);
  box-shadow: 0 0 0 3px rgba(34, 211, 232, 0.14);
}

@media (max-width: 1040px) {
  .nx-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .nx-hero__body { max-width: 42rem; }
}

/* ==========================================================================
   HERO SYSTEM DIAGRAM
   Layered architecture: sources → AI core → automated outputs.
   Pure SVG + CSS. Animation is dash-travel on duplicated paths and gentle
   opacity breathing — no layout-affecting properties.
   ========================================================================== */

.nx-sysmap { position: relative; width: 100%; }
.nx-sysmap__svg { width: 100%; height: auto; overflow: visible; }

.nx-sysmap__wire {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
}
.nx-sysmap__pulse {
  fill: none;
  stroke: var(--nx-cyan-400);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 14 340;
  stroke-dashoffset: 354;
  animation: nx-wire-travel 3.4s linear infinite;
  filter: drop-shadow(0 0 4px rgba(92, 227, 242, 0.7));
}
.nx-sysmap__pulse--in { stroke: var(--nx-accent-400); }
@keyframes nx-wire-travel { to { stroke-dashoffset: 0; } }

.nx-sysmap__node rect {
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}
.nx-sysmap__node text {
  fill: rgba(231, 236, 246, 0.86);
  font-family: var(--nx-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}
.nx-sysmap__node--dim text { fill: rgba(231, 236, 246, 0.6); }
.nx-sysmap__node-dot { fill: var(--nx-cyan-500); }

.nx-sysmap__core-ring {
  fill: none;
  stroke: rgba(92, 227, 242, 0.38);
  stroke-width: 1;
  stroke-dasharray: 3 7;
  transform-box: fill-box;
  transform-origin: center;
  animation: nx-ring-spin 22s linear infinite;
}
.nx-sysmap__core-ring--rev { animation-duration: 34s; animation-direction: reverse; stroke-dasharray: 2 12; }
@keyframes nx-ring-spin { to { transform: rotate(360deg); } }

.nx-sysmap__core-body {
  fill: rgba(26, 123, 255, 0.14);
  stroke: rgba(92, 227, 242, 0.55);
  stroke-width: 1.25;
}
.nx-sysmap__core-glow {
  fill: var(--nx-accent-500);
  opacity: 0.22;
  filter: blur(18px);
  transform-box: fill-box;
  transform-origin: center;
  animation: nx-core-breathe 5s var(--nx-ease-in-out) infinite;
}
@keyframes nx-core-breathe {
  0%, 100% { opacity: 0.16; transform: scale(0.94); }
  50%      { opacity: 0.32; transform: scale(1.08); }
}

.nx-sysmap__bar {
  fill: var(--nx-cyan-500);
  opacity: 0.55;
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: nx-bar-flex 2.6s var(--nx-ease-in-out) infinite;
}
@keyframes nx-bar-flex {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

.nx-sysmap__scan {
  fill: url(#nxScanGrad);
  transform-box: fill-box;
  animation: nx-scan 6s var(--nx-ease-in-out) infinite;
}
@keyframes nx-scan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  10%      { opacity: 1; }
  90%      { opacity: 1; }
  100%     { transform: translateY(180px); }
}

/* Floating status panel layered over the diagram */
.nx-sysmap__panel {
  position: absolute;
  right: -2%;
  bottom: 2%;
  width: min(250px, 62%);
  padding: var(--nx-space-4);
  background: rgba(11, 16, 28, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--nx-radius-md);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  animation: nx-panel-float 7s var(--nx-ease-in-out) infinite;
}
@keyframes nx-panel-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.nx-sysmap__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-3);
  padding-bottom: var(--nx-space-3);
  margin-bottom: var(--nx-space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--nx-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(231, 236, 246, 0.56);
}
.nx-sysmap__panel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--nx-ok-500);
  box-shadow: 0 0 0 3px rgba(23, 166, 107, 0.18);
  animation: nx-dot-blink 2.2s var(--nx-ease-in-out) infinite;
}
@keyframes nx-dot-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.nx-sysmap__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-3);
  padding-block: 5px;
  font-size: 0.6875rem;
  color: rgba(231, 236, 246, 0.72);
}
.nx-sysmap__row-label { display: flex; align-items: center; gap: var(--nx-space-2); }
.nx-sysmap__row-tick {
  width: 13px; height: 13px;
  flex-shrink: 0;
  color: var(--nx-cyan-400);
}
.nx-sysmap__row-val {
  font-family: var(--nx-font-mono);
  font-size: 0.625rem;
  color: rgba(231, 236, 246, 0.45);
}

@media (max-width: 1040px) {
  .nx-sysmap { max-width: 40rem; margin-inline: auto; }
}
@media (max-width: 560px) {
  .nx-sysmap__panel { position: static; width: 100%; margin-top: var(--nx-space-5); animation: none; }
}

/* ==========================================================================
   CAPABILITY STRIP
   ========================================================================== */

.nx-capstrip {
  /* Continues the hero's dark band, so the strip reads as part of it */
  background: var(--nx-ink-950);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nx-capstrip__inner {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.nx-capstrip__item {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  padding: var(--nx-space-6) var(--nx-space-4);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--nx-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(231, 236, 246, 0.6);
  transition: color var(--nx-dur-base) var(--nx-ease-out),
              background-color var(--nx-dur-base) var(--nx-ease-out);
}
.nx-capstrip__item:first-child { border-left: none; }
.nx-capstrip__item:hover { color: #fff; background: rgba(255, 255, 255, 0.03); }
.nx-capstrip__item svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  color: var(--nx-cyan-500);
  opacity: 0.85;
}

@media (max-width: 1180px) {
  .nx-capstrip__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nx-capstrip__item:nth-child(4n + 1) { border-left: none; }
  .nx-capstrip__item:nth-child(n + 5) { border-top: 1px solid rgba(255, 255, 255, 0.07); }
}
@media (max-width: 720px) {
  .nx-capstrip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-capstrip__item { padding: var(--nx-space-5) var(--nx-space-3); border-left: 1px solid rgba(255,255,255,0.07); }
  .nx-capstrip__item:nth-child(odd) { border-left: none; }
  .nx-capstrip__item:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.07); }
}

/* ==========================================================================
   AI + AUTOMATION FLOW
   Business Process → Data/API → AI → Automation → Output
   ========================================================================== */

.nx-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--nx-space-4);
}

/* The rail that threads through every stage */
.nx-flow::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--nx-line-accent) 12%,
    var(--nx-line-accent) 88%,
    transparent);
}

.nx-flow__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--nx-space-4);
  padding-top: var(--nx-space-1);
}

.nx-flow__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--nx-bg);
  border: 1px solid var(--nx-line-strong);
  border-radius: var(--nx-radius-md);
  transition: all var(--nx-dur-base) var(--nx-ease-out);
}
.nx-flow__node svg { width: 24px; height: 24px; }

/* The AI stage is the emphasised one */
.nx-flow__stage--core .nx-flow__node {
  background: var(--nx-ink-900);
  border-color: var(--nx-ink-900);
  color: var(--nx-cyan-400);
  box-shadow: 0 10px 30px rgba(10, 16, 32, 0.18);
}
.nx-flow__stage--core .nx-flow__node::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px dashed var(--nx-line-accent);
  border-radius: var(--nx-radius-lg);
  animation: nx-ring-spin 26s linear infinite;
}

/* Resting state — never tied to the reveal class, so the section still reads
   correctly when animation is disabled. */
.nx-flow__node {
  border-color: var(--nx-line-accent);
  color: var(--nx-accent);
}
.nx-flow__stage--core .nx-flow__node { color: var(--nx-cyan-400); }
.nx-flow__stage:hover .nx-flow__node {
  border-color: var(--nx-accent);
  box-shadow: 0 6px 18px rgba(11, 99, 229, 0.12);
}

.nx-flow__step {
  font-family: var(--nx-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-text-faint);
}
.nx-flow__title {
  font-family: var(--nx-font-display);
  font-size: var(--nx-fs-body);
  font-weight: var(--nx-fw-semibold);
  color: var(--nx-text-strong);
}
.nx-flow__text {
  font-size: var(--nx-fs-xs);
  line-height: 1.55;
  color: var(--nx-text-muted);
  max-width: 22ch;
}

@media (max-width: 900px) {
  .nx-flow { grid-template-columns: minmax(0, 1fr); gap: var(--nx-space-8); }
  .nx-flow::before {
    top: 32px;
    bottom: 32px;
    left: 32px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--nx-line-accent), var(--nx-line-accent));
  }
  .nx-flow__stage {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: var(--nx-space-5);
  }
  .nx-flow__node { flex-shrink: 0; }
  .nx-flow__text { max-width: none; }
  .nx-flow__stage-body { display: flex; flex-direction: column; gap: var(--nx-space-2); padding-top: var(--nx-space-2); }
}

/* ==========================================================================
   SOLUTIONS — outcome-led list
   ========================================================================== */

.nx-solutions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--nx-line);
}
.nx-solution {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--nx-space-5);
  align-items: center;
  padding: var(--nx-space-6) var(--nx-space-5);
  border-bottom: 1px solid var(--nx-line);
  transition: background-color var(--nx-dur-base) var(--nx-ease-out);
}
.nx-solutions > .nx-solution:nth-child(odd) { border-right: 1px solid var(--nx-line); }
.nx-solution:hover { background: var(--nx-bg-sunken); }

.nx-solution__idx {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  color: var(--nx-text-faint);
  min-width: 2ch;
}
.nx-solution__title {
  font-family: var(--nx-font-display);
  font-size: var(--nx-fs-body);
  font-weight: var(--nx-fw-medium);
  color: var(--nx-text-strong);
}
.nx-solution__text {
  font-size: var(--nx-fs-xs);
  color: var(--nx-text-muted);
  margin-top: 3px;
}
.nx-solution__arrow {
  width: 16px; height: 16px;
  color: var(--nx-text-faint);
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--nx-dur-base) var(--nx-ease-spring);
}
.nx-solution:hover .nx-solution__arrow { opacity: 1; transform: none; color: var(--nx-accent); }

@media (max-width: 760px) {
  .nx-solutions { grid-template-columns: minmax(0, 1fr); }
  .nx-solutions > .nx-solution:nth-child(odd) { border-right: none; }
}

/* ==========================================================================
   PROCESS — sticky heading + progress rail
   ========================================================================== */

.nx-process { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.nx-process__aside { position: sticky; top: calc(var(--nx-header-h) + var(--nx-space-10)); align-self: start; }

.nx-process__list { position: relative; padding-left: var(--nx-space-10); }

/* Rail track + fill */
.nx-process__rail {
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--nx-line);
}
.nx-process__rail-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(180deg, var(--nx-accent-500), var(--nx-cyan-500));
  transform: scaleY(var(--nx-progress, 0));
  transform-origin: top center;
  transition: transform 120ms linear;
}

.nx-step {
  position: relative;
  padding-block: var(--nx-space-6);
  border-bottom: 1px solid var(--nx-line);
}
.nx-step:last-child { border-bottom: none; }

.nx-step__dot {
  position: absolute;
  left: calc(-1 * var(--nx-space-10) + 10px);
  top: calc(var(--nx-space-6) + 8px);
  width: 11px; height: 11px;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: all var(--nx-dur-base) var(--nx-ease-out);
}
.nx-step__dot {
  border-color: var(--nx-accent);
  background: var(--nx-accent);
  box-shadow: 0 0 0 4px var(--nx-accent-soft);
}

.nx-step__head {
  display: flex;
  align-items: baseline;
  gap: var(--nx-space-4);
  margin-bottom: var(--nx-space-2);
}
.nx-step__num {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  letter-spacing: 0.1em;
  color: var(--nx-accent);
}
.nx-step__title { font-size: var(--nx-fs-h4); font-weight: var(--nx-fw-semibold); }
.nx-step__text { font-size: var(--nx-fs-sm); line-height: 1.62; color: var(--nx-text-muted); max-width: 54ch; }

@media (max-width: 860px) {
  .nx-process { grid-template-columns: minmax(0, 1fr); }
  .nx-process__aside { position: static; }
  .nx-process__list { padding-left: var(--nx-space-8); }
  .nx-process__rail { left: 11px; }
  .nx-step__dot { left: calc(-1 * var(--nx-space-8) + 6px); }
}

/* ==========================================================================
   WHY NAARIX — differentiation grid
   ========================================================================== */

.nx-why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--nx-line);
  border-left: 1px solid var(--nx-line);
}
.nx-why__item {
  padding: var(--nx-space-8);
  border-right: 1px solid var(--nx-line);
  border-bottom: 1px solid var(--nx-line);
  transition: background-color var(--nx-dur-base) var(--nx-ease-out);
}
.nx-why__item:hover { background: var(--nx-bg-sunken); }
[data-theme="dark"] .nx-why { border-color: rgba(255,255,255,0.09); }
[data-theme="dark"] .nx-why__item { border-color: rgba(255,255,255,0.09); }
[data-theme="dark"] .nx-why__item:hover { background: rgba(255,255,255,0.03); }

.nx-why__icon {
  width: 22px; height: 22px;
  color: var(--nx-accent);
  margin-bottom: var(--nx-space-5);
}
[data-theme="dark"] .nx-why__icon { color: var(--nx-cyan-400); }
.nx-why__title {
  font-size: var(--nx-fs-h4);
  font-weight: var(--nx-fw-semibold);
  margin-bottom: var(--nx-space-3);
}
.nx-why__text { font-size: var(--nx-fs-sm); line-height: 1.62; color: var(--nx-text-muted); }

@media (max-width: 900px) { .nx-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nx-why { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   CTA — dark closing band
   ========================================================================== */

.nx-cta {
  position: relative;
  background: var(--nx-ink-950);
  overflow: hidden;
  isolation: isolate;
}
.nx-cta__bg { position: absolute; inset: 0; z-index: -1; }
.nx-cta__bg .nx-grid-bg {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, #000 5%, transparent 70%);
}
.nx-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--nx-space-6);
  max-width: 44rem;
  margin-inline: auto;
}
.nx-cta__title {
  font-size: var(--nx-fs-h1);
  color: #fff;
  letter-spacing: var(--nx-ls-display);
}
.nx-cta__lead { font-size: var(--nx-fs-lead); color: rgba(231, 236, 246, 0.7); max-width: 38rem; }
.nx-cta__foot {
  margin-top: var(--nx-space-4);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  color: rgba(231, 236, 246, 0.4);
}

/* ==========================================================================
   PAGE HERO — light variant used on every interior page
   ========================================================================== */

.nx-pagehero {
  position: relative;
  padding-top: calc(var(--nx-header-h) + clamp(3rem, 2rem + 4vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 1.6rem + 3.5vw, 4.5rem);
  background: var(--nx-paper-050);
  border-bottom: 1px solid var(--nx-line);
  overflow: hidden;
}
.nx-pagehero__bg { position: absolute; inset: 0; pointer-events: none; }
.nx-pagehero__bg .nx-grid-bg {
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 90% at 78% 10%, #000 5%, transparent 68%);
  opacity: 0.7;
}
.nx-pagehero__inner { position: relative; }
.nx-pagehero__title {
  font-size: var(--nx-fs-h1);
  margin-block: var(--nx-space-5) var(--nx-space-5);
  max-width: 20ch;
}
.nx-pagehero__lead { font-size: var(--nx-fs-lead); color: var(--nx-text-muted); max-width: 56ch; }
.nx-pagehero__actions { margin-top: var(--nx-space-8); }
.nx-pagehero__breadcrumb { margin-bottom: var(--nx-space-6); }



/* ===== 08-cards.css ===== */
/* ==========================================================================
   NAARIX — CONTENT CARDS
   Service, portfolio, blog, tool and resource cards.
   ========================================================================== */

/* ==========================================================================
   ABSTRACT VISUAL — the replaceable, code-drawn artwork block.
   Used as portfolio covers and blog covers instead of stock photography.
   Swap the inner <svg> for a real screenshot and the layout still holds.
   ========================================================================== */

.nx-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--nx-ink-900);
  isolation: isolate;
}
.nx-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
}
.nx-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(28rem 18rem at 72% 12%, rgba(26, 123, 255, 0.24), transparent 65%);
}
.nx-visual__art {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  transition: transform var(--nx-dur-slow) var(--nx-ease-out);
}
.nx-visual__art .nx-va-line { fill: none; stroke: rgba(255,255,255,0.22); stroke-width: 1; }
.nx-visual__art .nx-va-accent { fill: none; stroke: var(--nx-cyan-400); stroke-width: 1.5; stroke-linecap: round; }
.nx-visual__art .nx-va-fill { fill: rgba(255,255,255,0.06); stroke: rgba(255,255,255,0.18); stroke-width: 1; }
.nx-visual__art .nx-va-fill-accent { fill: rgba(26,123,255,0.28); stroke: rgba(92,227,242,0.6); stroke-width: 1; }
.nx-visual__art .nx-va-dot { fill: var(--nx-cyan-400); }
.nx-visual__art .nx-va-text {
  fill: rgba(231,236,246,0.62);
  font-family: var(--nx-font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

/* Travelling highlight along accent paths, only while the card is hovered */
.nx-visual__art .nx-va-pulse {
  fill: none;
  stroke: var(--nx-cyan-400);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 10 260;
  stroke-dashoffset: 270;
  opacity: 0;
  filter: drop-shadow(0 0 3px rgba(92,227,242,0.8));
}
.nx-pcard:hover .nx-visual__art .nx-va-pulse,
.nx-visual--always-on .nx-va-pulse {
  opacity: 1;
  animation: nx-wire-travel 2.6s linear infinite;
}

/* Corner registration marks — a small technical signature */
.nx-visual__marks { position: absolute; inset: 10px; z-index: 2; pointer-events: none; }
.nx-visual__marks span {
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid rgba(255,255,255,0.22);
}
.nx-visual__marks span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.nx-visual__marks span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.nx-visual__marks span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.nx-visual__marks span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ==========================================================================
   PORTFOLIO CARD
   ========================================================================== */

.nx-pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--nx-bg-raised);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-md);
  overflow: hidden;
  transition:
    border-color var(--nx-dur-base) var(--nx-ease-out),
    box-shadow var(--nx-dur-base) var(--nx-ease-out),
    transform var(--nx-dur-base) var(--nx-ease-out);
}
.nx-pcard:hover,
.nx-pcard:focus-within {
  border-color: var(--nx-line-strong);
  box-shadow: var(--nx-shadow-lg);
  transform: translateY(-4px);
}
.nx-pcard:hover .nx-visual__art { transform: scale(1.035); }

.nx-pcard__visual { position: relative; border-bottom: 1px solid var(--nx-line); }
.nx-pcard__flag {
  position: absolute;
  z-index: 3;
  top: var(--nx-space-4);
  left: var(--nx-space-4);
}
.nx-pcard__body {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-4);
  padding: var(--nx-space-7, 1.75rem);
  flex: 1;
}
.nx-pcard__meta {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  font-family: var(--nx-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-text-faint);
}
.nx-pcard__meta span + span::before {
  content: "·";
  margin-right: var(--nx-space-3);
}
.nx-pcard__title { font-size: var(--nx-fs-h3); font-weight: var(--nx-fw-semibold); }
.nx-pcard__title a { color: inherit; }
.nx-pcard__title a::after { content: ""; position: absolute; inset: 0; }
.nx-pcard__title a:hover { color: var(--nx-accent); }
.nx-pcard__text { font-size: var(--nx-fs-sm); line-height: 1.62; color: var(--nx-text-muted); }

.nx-pcard__outcome {
  display: flex;
  gap: var(--nx-space-3);
  padding: var(--nx-space-4);
  background: var(--nx-bg-sunken);
  border-radius: var(--nx-radius-sm);
  font-size: var(--nx-fs-xs);
  line-height: 1.55;
  color: var(--nx-text-muted);
}
.nx-pcard__outcome svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--nx-accent); margin-top: 2px; }
.nx-pcard__outcome strong { color: var(--nx-text-strong); }

.nx-pcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-4);
  margin-top: auto;
  padding-top: var(--nx-space-5);
  border-top: 1px solid var(--nx-line);
}

/* Featured card spans two columns with a side-by-side layout */
.nx-pcard--featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .nx-pcard--featured { flex-direction: row; align-items: stretch; }
  .nx-pcard--featured .nx-pcard__visual {
    flex: 1 1 54%;
    border-bottom: none;
    border-right: 1px solid var(--nx-line);
  }
  .nx-pcard--featured .nx-visual { height: 100%; aspect-ratio: auto; min-height: 340px; }
  .nx-pcard--featured .nx-pcard__body { flex: 1 1 46%; justify-content: center; padding: var(--nx-space-10); }
}

/* ==========================================================================
   BLOG CARD
   ========================================================================== */

.nx-bcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--nx-bg-raised);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-md);
  overflow: hidden;
  transition:
    border-color var(--nx-dur-base) var(--nx-ease-out),
    box-shadow var(--nx-dur-base) var(--nx-ease-out),
    transform var(--nx-dur-base) var(--nx-ease-out);
}
.nx-bcard:hover,
.nx-bcard:focus-within {
  border-color: var(--nx-line-strong);
  box-shadow: var(--nx-shadow-md);
  transform: translateY(-3px);
}
.nx-bcard__visual { position: relative; border-bottom: 1px solid var(--nx-line); }
.nx-bcard:hover .nx-visual__art { transform: scale(1.04); }

.nx-bcard__body {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-3);
  padding: var(--nx-space-6);
  flex: 1;
}
.nx-bcard__title {
  font-size: 1.1875rem;
  font-weight: var(--nx-fw-semibold);
  line-height: 1.34;
}
.nx-bcard__title a { color: inherit; }
.nx-bcard__title a::after { content: ""; position: absolute; inset: 0; }
.nx-bcard__title a:hover { color: var(--nx-accent); }
.nx-bcard__excerpt {
  font-size: var(--nx-fs-sm);
  line-height: 1.6;
  color: var(--nx-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nx-bcard__meta {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  margin-top: auto;
  padding-top: var(--nx-space-5);
  font-size: var(--nx-fs-xs);
  color: var(--nx-text-faint);
}
.nx-bcard__meta span + span::before { content: "·"; margin-right: var(--nx-space-3); }

/* Featured article: horizontal on desktop */
.nx-bcard--featured { grid-column: 1 / -1; }
@media (min-width: 880px) {
  .nx-bcard--featured { flex-direction: row; }
  .nx-bcard--featured .nx-bcard__visual {
    flex: 1 1 52%;
    border-bottom: none;
    border-right: 1px solid var(--nx-line);
  }
  .nx-bcard--featured .nx-visual { height: 100%; aspect-ratio: auto; min-height: 300px; }
  .nx-bcard--featured .nx-bcard__body { flex: 1 1 48%; justify-content: center; padding: var(--nx-space-10); gap: var(--nx-space-4); }
  .nx-bcard--featured .nx-bcard__title { font-size: var(--nx-fs-h3); }
  .nx-bcard--featured .nx-bcard__excerpt { -webkit-line-clamp: 4; font-size: var(--nx-fs-body); }
}

/* Compact list item — related posts, sidebars */
.nx-bitem {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--nx-space-5);
  padding-block: var(--nx-space-5);
  border-bottom: 1px solid var(--nx-line);
}
.nx-bitem:last-child { border-bottom: none; }
.nx-bitem__num {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  color: var(--nx-text-faint);
  padding-top: 3px;
}
.nx-bitem__title {
  font-family: var(--nx-font-display);
  font-size: var(--nx-fs-body);
  font-weight: var(--nx-fw-medium);
  line-height: 1.4;
  color: var(--nx-text-strong);
}
.nx-bitem__title a { color: inherit; }
.nx-bitem__title a::after { content: ""; position: absolute; inset: 0; }
.nx-bitem__title a:hover { color: var(--nx-accent); }
.nx-bitem__meta { margin-top: var(--nx-space-2); font-size: var(--nx-fs-xs); color: var(--nx-text-faint); }

/* ==========================================================================
   TOOL CARD
   ========================================================================== */

.nx-tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-4);
  padding: var(--nx-space-6);
  background: var(--nx-bg-raised);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-md);
  transition:
    border-color var(--nx-dur-base) var(--nx-ease-out),
    box-shadow var(--nx-dur-base) var(--nx-ease-out),
    transform var(--nx-dur-base) var(--nx-ease-out);
}
.nx-tcard:hover,
.nx-tcard:focus-within {
  border-color: var(--nx-line-accent);
  box-shadow: var(--nx-shadow-md);
  transform: translateY(-3px);
}
.nx-tcard__head { display: flex; align-items: center; gap: var(--nx-space-4); }
.nx-tcard__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-sm);
  background: var(--nx-bg-sunken);
  color: var(--nx-accent);
  transition: all var(--nx-dur-base) var(--nx-ease-out);
}
.nx-tcard__icon svg { width: 19px; height: 19px; }
.nx-tcard:hover .nx-tcard__icon { background: var(--nx-accent-soft); border-color: var(--nx-line-accent); }
.nx-tcard__title { font-size: var(--nx-fs-h4); font-weight: var(--nx-fw-semibold); }
.nx-tcard__title a { color: inherit; }
.nx-tcard__title a::after { content: ""; position: absolute; inset: 0; }
.nx-tcard__title a:hover { color: var(--nx-accent); }
.nx-tcard__text { font-size: var(--nx-fs-sm); line-height: 1.6; color: var(--nx-text-muted); }
.nx-tcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-3);
  margin-top: auto;
  padding-top: var(--nx-space-4);
}

/* ==========================================================================
   SERVICE DETAIL BLOCK — alternating rows on the Services page
   ========================================================================== */

.nx-service {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  border-top: 1px solid var(--nx-line);
  scroll-margin-top: calc(var(--nx-header-h) + var(--nx-space-8));
}
.nx-service__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}
.nx-service:nth-of-type(even) .nx-service__visual { order: -1; }

.nx-service__num {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  letter-spacing: 0.14em;
  color: var(--nx-accent);
  margin-bottom: var(--nx-space-4);
  display: block;
}
.nx-service__title { font-size: var(--nx-fs-h2); margin-bottom: var(--nx-space-5); }
.nx-service__lead { font-size: var(--nx-fs-lead); color: var(--nx-text-muted); margin-bottom: var(--nx-space-8); }

.nx-service__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--nx-space-8);
  margin-bottom: var(--nx-space-8);
}
@media (max-width: 620px) { .nx-service__cols { grid-template-columns: minmax(0, 1fr); gap: var(--nx-space-6); } }

.nx-service__col-head {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-label);
  letter-spacing: var(--nx-ls-label);
  text-transform: uppercase;
  color: var(--nx-text-faint);
  margin-bottom: var(--nx-space-4);
}

.nx-checklist { display: flex; flex-direction: column; gap: var(--nx-space-3); }
.nx-checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--nx-space-3);
  font-size: var(--nx-fs-sm);
  line-height: 1.55;
  color: var(--nx-text-muted);
}
.nx-checklist svg { width: 15px; height: 15px; color: var(--nx-accent); margin-top: 4px; }
[data-theme="dark"] .nx-checklist svg { color: var(--nx-cyan-400); }

.nx-service__value {
  padding: var(--nx-space-6);
  background: var(--nx-bg-sunken);
  border-left: 2px solid var(--nx-accent);
  border-radius: 0 var(--nx-radius-sm) var(--nx-radius-sm) 0;
  margin-bottom: var(--nx-space-8);
}
.nx-service__value-label {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-label);
  letter-spacing: var(--nx-ls-label);
  text-transform: uppercase;
  color: var(--nx-accent);
  display: block;
  margin-bottom: var(--nx-space-3);
}
.nx-service__value p { font-size: var(--nx-fs-sm); line-height: 1.62; color: var(--nx-text); }

/* Sticky visual column on wide screens */
.nx-service__visual { position: sticky; top: calc(var(--nx-header-h) + var(--nx-space-10)); }

@media (max-width: 900px) {
  .nx-service__grid { grid-template-columns: minmax(0, 1fr); }
  .nx-service__visual { position: static; order: -1 !important; }
}

/* Panel used for the service visuals — a dark code-drawn diagram */
.nx-panel {
  position: relative;
  padding: var(--nx-space-5);
  background: var(--nx-ink-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--nx-radius-md);
  overflow: hidden;
}
.nx-panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-3);
  padding-bottom: var(--nx-space-4);
  margin-bottom: var(--nx-space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--nx-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(231, 236, 246, 0.5);
}


/* ===== 09-article.css ===== */
/* ==========================================================================
   NAARIX — LONG-FORM ARTICLE
   Optimised for reading, not for effects. Light context only.
   ========================================================================== */

.nx-article { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem) var(--nx-section-y-sm); }

/* Article shell: content column + sticky sidebar */
.nx-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: start;
}
@media (max-width: 1040px) {
  .nx-article__layout { grid-template-columns: minmax(0, 1fr); }
  .nx-article__aside { order: -1; position: static !important; }
}

.nx-article__aside { position: sticky; top: calc(var(--nx-header-h) + var(--nx-space-8)); }

/* --- Article header ----------------------------------------------------- */
.nx-article__header { max-width: var(--nx-container-prose); margin-bottom: var(--nx-space-10); }
.nx-article__title {
  font-size: clamp(2rem, 1.35rem + 2.9vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: var(--nx-ls-display);
  margin-block: var(--nx-space-5) var(--nx-space-6);
  text-wrap: balance;
}
.nx-article__standfirst {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.64;
  color: var(--nx-text-muted);
}

.nx-article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nx-space-4);
  margin-top: var(--nx-space-8);
  padding-top: var(--nx-space-6);
  border-top: 1px solid var(--nx-line);
  font-size: var(--nx-fs-sm);
  color: var(--nx-text-muted);
}
.nx-article__avatar {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--nx-ink-900);
  color: #fff;
  font-family: var(--nx-font-display);
  font-size: var(--nx-fs-xs);
  font-weight: var(--nx-fw-bold);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.nx-article__author { color: var(--nx-text-strong); font-weight: var(--nx-fw-medium); }
.nx-article__dot { color: var(--nx-line-strong); }

.nx-article__cover {
  margin-bottom: var(--nx-space-10);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-md);
  overflow: hidden;
}
.nx-article__cover .nx-visual { aspect-ratio: 21 / 9; }
.nx-article__caption {
  padding: var(--nx-space-3) var(--nx-space-4);
  background: var(--nx-bg-sunken);
  border-top: 1px solid var(--nx-line);
  font-size: var(--nx-fs-xs);
  color: var(--nx-text-faint);
}

/* --- Reading progress bar ---------------------------------------------- */
.nx-progressbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: calc(var(--nx-z-header) + 1);
  background: transparent;
  pointer-events: none;
}
.nx-progressbar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--nx-accent-500), var(--nx-cyan-500));
  transform: scaleX(var(--nx-progress, 0));
  transform-origin: left center;
  transition: transform 90ms linear;
}

/* ==========================================================================
   PROSE
   ========================================================================== */

.nx-prose {
  max-width: 68ch;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: var(--nx-lh-prose);
  color: #1B2230;
}
.nx-prose > * + * { margin-top: var(--nx-space-6); }

.nx-prose h2 {
  font-size: clamp(1.4375rem, 1.25rem + 0.85vw, 1.75rem);
  line-height: 1.28;
  margin-top: var(--nx-space-12);
  padding-top: var(--nx-space-2);
  scroll-margin-top: calc(var(--nx-header-h) + var(--nx-space-8));
}
.nx-prose h3 {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  margin-top: var(--nx-space-10);
  scroll-margin-top: calc(var(--nx-header-h) + var(--nx-space-8));
}
.nx-prose h2 + *, .nx-prose h3 + * { margin-top: var(--nx-space-4); }

.nx-prose p { margin-bottom: 0; }

.nx-prose a:not(.nx-btn) {
  color: var(--nx-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--nx-line-accent);
  transition: text-decoration-color var(--nx-dur-fast) var(--nx-ease-out);
}
.nx-prose a:not(.nx-btn):hover { text-decoration-color: currentColor; }

.nx-prose strong { font-weight: var(--nx-fw-semibold); color: var(--nx-text-strong); }

.nx-prose ul, .nx-prose ol {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-3);
  padding-left: var(--nx-space-1);
}
.nx-prose li {
  position: relative;
  padding-left: var(--nx-space-6);
}
.nx-prose ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px; height: 1px;
  background: var(--nx-accent);
}
.nx-prose ol { counter-reset: nx-ol; }
.nx-prose ol > li { counter-increment: nx-ol; }
.nx-prose ol > li::before {
  content: counter(nx-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--nx-font-mono);
  font-size: 0.85em;
  color: var(--nx-accent);
}

.nx-prose blockquote {
  padding: var(--nx-space-2) 0 var(--nx-space-2) var(--nx-space-6);
  border-left: 2px solid var(--nx-accent);
  font-size: 1.0625em;
  line-height: 1.6;
  color: var(--nx-text-strong);
}

.nx-prose code {
  padding: 0.14em 0.4em;
  background: var(--nx-paper-100);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-xs);
  font-size: 0.875em;
  color: var(--nx-accent-700);
}
.nx-prose pre {
  padding: var(--nx-space-5);
  background: var(--nx-ink-900);
  border-radius: var(--nx-radius-md);
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #D7E1F2;
}
.nx-prose pre code { background: none; border: 0; padding: 0; color: inherit; }

.nx-prose hr { margin-block: var(--nx-space-10); }

.nx-prose figure { margin-block: var(--nx-space-8); }
.nx-prose figcaption {
  margin-top: var(--nx-space-3);
  font-size: var(--nx-fs-xs);
  color: var(--nx-text-faint);
}

/* Tables inside articles stay readable on mobile via a scroll container */
.nx-prose .nx-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nx-prose table { font-size: var(--nx-fs-sm); min-width: 30rem; }
.nx-prose th, .nx-prose td {
  padding: var(--nx-space-3) var(--nx-space-4);
  text-align: left;
  border-bottom: 1px solid var(--nx-line);
}
.nx-prose th {
  font-family: var(--nx-font-display);
  font-weight: var(--nx-fw-semibold);
  color: var(--nx-text-strong);
  border-bottom-color: var(--nx-line-strong);
}
.nx-prose td { color: var(--nx-text-muted); }

/* Key-takeaway block */
.nx-takeaway {
  padding: var(--nx-space-6);
  background: var(--nx-accent-050);
  border: 1px solid var(--nx-line-accent);
  border-radius: var(--nx-radius-md);
}
.nx-takeaway__label {
  display: flex;
  align-items: center;
  gap: var(--nx-space-2);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-label);
  letter-spacing: var(--nx-ls-label);
  text-transform: uppercase;
  color: var(--nx-accent);
  margin-bottom: var(--nx-space-3);
}
.nx-takeaway__label svg { width: 14px; height: 14px; }
.nx-takeaway p, .nx-takeaway li { font-size: var(--nx-fs-sm); line-height: 1.62; }

/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */

.nx-toc {
  padding: var(--nx-space-5);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-md);
  background: var(--nx-bg-sunken);
}
.nx-toc__title {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-label);
  letter-spacing: var(--nx-ls-label);
  text-transform: uppercase;
  color: var(--nx-text-faint);
  margin-bottom: var(--nx-space-4);
}
.nx-toc__list { display: flex; flex-direction: column; gap: var(--nx-space-1); }
.nx-toc__link {
  display: block;
  padding: var(--nx-space-2) var(--nx-space-3);
  border-left: 2px solid transparent;
  border-radius: 0 var(--nx-radius-xs) var(--nx-radius-xs) 0;
  font-size: var(--nx-fs-xs);
  line-height: 1.45;
  color: var(--nx-text-muted);
  transition: all var(--nx-dur-fast) var(--nx-ease-out);
}
.nx-toc__link:hover { color: var(--nx-text-strong); background: var(--nx-paper-200); }
.nx-toc__link.is-current {
  color: var(--nx-accent);
  border-left-color: var(--nx-accent);
  background: var(--nx-paper-000);
  font-weight: var(--nx-fw-medium);
}
.nx-toc__link--sub { padding-left: var(--nx-space-6); font-size: 0.75rem; }

/* Sidebar widget shared by TOC / related tools / share */
.nx-widget + .nx-widget { margin-top: var(--nx-space-6); }
.nx-widget__title {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-label);
  letter-spacing: var(--nx-ls-label);
  text-transform: uppercase;
  color: var(--nx-text-faint);
  margin-bottom: var(--nx-space-4);
}
.nx-widget__list { display: flex; flex-direction: column; gap: var(--nx-space-2); }
.nx-widget__link {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  padding: var(--nx-space-3);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-sm);
  font-size: var(--nx-fs-xs);
  font-weight: var(--nx-fw-medium);
  color: var(--nx-text);
  transition: all var(--nx-dur-fast) var(--nx-ease-out);
}
.nx-widget__link svg { width: 15px; height: 15px; color: var(--nx-accent); flex-shrink: 0; }
.nx-widget__link:hover { border-color: var(--nx-line-accent); background: var(--nx-accent-050); color: var(--nx-accent); }

/* --- Article footer ----------------------------------------------------- */
.nx-article__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nx-space-2);
  max-width: 68ch;
  margin-top: var(--nx-space-10);
  padding-top: var(--nx-space-6);
  border-top: 1px solid var(--nx-line);
}

.nx-article__cta {
  max-width: 68ch;
  margin-top: var(--nx-space-10);
  padding: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  background: var(--nx-ink-900);
  border-radius: var(--nx-radius-lg);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.nx-article__cta h2 { color: #fff; font-size: var(--nx-fs-h3); margin-bottom: var(--nx-space-3); }
.nx-article__cta p { font-size: var(--nx-fs-sm); color: rgba(231, 236, 246, 0.72); margin-bottom: var(--nx-space-6); max-width: 48ch; }

/* On narrow screens the byline wraps; a trailing separator at the end of a
   line reads as a typo, so drop the separators and let the gap do the work. */
@media (max-width: 520px) {
  .nx-article__dot { display: none; }
  .nx-article__byline { gap: var(--nx-space-2) var(--nx-space-4); }
}


/* ===== 10-tools.css ===== */
/* ==========================================================================
   NAARIX — TOOL WORKBENCH
   Clean, light, SaaS-utility styling for the Resources → Tools pages.
   ========================================================================== */

.nx-tool { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem) var(--nx-section-y-sm); }

.nx-tool__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 1.2rem + 3.5vw, 4rem);
  align-items: start;
}
@media (max-width: 1040px) {
  .nx-tool__layout { grid-template-columns: minmax(0, 1fr); }
}
.nx-tool__aside { position: sticky; top: calc(var(--nx-header-h) + var(--nx-space-8)); }
@media (max-width: 1040px) { .nx-tool__aside { position: static; } }

/* --- Workbench shell ---------------------------------------------------- */
.nx-workbench {
  border: 1px solid var(--nx-line-strong);
  border-radius: var(--nx-radius-lg);
  background: var(--nx-bg-raised);
  box-shadow: var(--nx-shadow-sm);
  overflow: hidden;
}

.nx-workbench__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-4);
  padding: var(--nx-space-4) var(--nx-space-6);
  background: var(--nx-bg-sunken);
  border-bottom: 1px solid var(--nx-line);
}
.nx-workbench__bar-label {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-label);
  letter-spacing: var(--nx-ls-label);
  text-transform: uppercase;
  color: var(--nx-text-faint);
}
.nx-workbench__bar-label svg { width: 14px; height: 14px; color: var(--nx-accent); }

.nx-workbench__body { padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); }

.nx-workbench__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nx-space-4);
  margin-top: var(--nx-space-8);
  padding-top: var(--nx-space-6);
  border-top: 1px solid var(--nx-line);
}
.nx-workbench__hint {
  font-size: var(--nx-fs-xs);
  color: var(--nx-text-faint);
  margin-left: auto;
}
@media (max-width: 560px) {
  .nx-workbench__actions { flex-direction: column; align-items: stretch; }
  .nx-workbench__hint { margin-left: 0; text-align: center; }
}

/* --- Results ------------------------------------------------------------ */
.nx-results {
  margin-top: var(--nx-space-10);
  border-top: 1px solid var(--nx-line);
  padding-top: var(--nx-space-8);
}

.nx-results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-4);
  margin-bottom: var(--nx-space-6);
}
.nx-results__title {
  font-family: var(--nx-font-display);
  font-size: var(--nx-fs-h4);
  font-weight: var(--nx-fw-semibold);
}
.nx-results__count {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  color: var(--nx-text-faint);
}
.nx-results__list { display: flex; flex-direction: column; gap: var(--nx-space-3); }

/* One generated result row with a copy affordance */
.nx-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--nx-space-4);
  align-items: start;
  padding: var(--nx-space-4) var(--nx-space-5);
  background: var(--nx-bg-sunken);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-sm);
  transition: border-color var(--nx-dur-fast) var(--nx-ease-out),
              background-color var(--nx-dur-fast) var(--nx-ease-out);
  /* staggered entrance */
  opacity: 0;
  transform: translateY(8px);
  animation: nx-result-in 380ms var(--nx-ease-spring) forwards;
  animation-delay: calc(var(--nx-i, 0) * 45ms);
}
@keyframes nx-result-in { to { opacity: 1; transform: none; } }
.nx-result:hover { border-color: var(--nx-line-strong); background: var(--nx-paper-000); }

.nx-result__text {
  font-size: var(--nx-fs-sm);
  line-height: 1.6;
  color: var(--nx-text);
  white-space: pre-wrap;
  word-break: break-word;
}
.nx-result__text--mono { font-family: var(--nx-font-mono); font-size: var(--nx-fs-xs); line-height: 1.7; }

.nx-copy {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--nx-line-strong);
  border-radius: var(--nx-radius-xs);
  background: var(--nx-bg);
  font-size: var(--nx-fs-xs);
  font-weight: var(--nx-fw-medium);
  color: var(--nx-text-muted);
  white-space: nowrap;
  transition: all var(--nx-dur-fast) var(--nx-ease-out);
}
.nx-copy svg { width: 13px; height: 13px; }
.nx-copy:hover { border-color: var(--nx-accent); color: var(--nx-accent); }
.nx-copy .nx-copy__done { display: none; }
.nx-copy.is-copied {
  border-color: var(--nx-ok-500);
  color: var(--nx-ok-500);
  background: rgba(23, 166, 107, 0.07);
}
.nx-copy.is-copied .nx-copy__idle { display: none; }
.nx-copy.is-copied .nx-copy__done { display: inline-flex; align-items: center; gap: var(--nx-space-2); }

/* --- Tips panel --------------------------------------------------------- */
.nx-tips {
  padding: var(--nx-space-6);
  background: var(--nx-bg-sunken);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-md);
}
.nx-tips__title {
  display: flex;
  align-items: center;
  gap: var(--nx-space-2);
  font-family: var(--nx-font-display);
  font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-semibold);
  margin-bottom: var(--nx-space-4);
}
.nx-tips__title svg { width: 15px; height: 15px; color: var(--nx-accent); }
.nx-tips ul { display: flex; flex-direction: column; gap: var(--nx-space-3); }
.nx-tips li {
  position: relative;
  padding-left: var(--nx-space-5);
  font-size: var(--nx-fs-xs);
  line-height: 1.6;
  color: var(--nx-text-muted);
}
.nx-tips li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--nx-accent);
  opacity: 0.55;
}

/* --- Privacy / how-it-works strip -------------------------------------- */
.nx-toolnote {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  margin-top: var(--nx-space-6);
  font-size: var(--nx-fs-xs);
  color: var(--nx-text-faint);
}
.nx-toolnote svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--nx-ok-500); }


/* ===== 11-utilities.css ===== */
/* ==========================================================================
   NAARIX — PAGE-SPECIFIC BLOCKS + UTILITIES
   ========================================================================== */

/* --- About: principles / timeline --------------------------------------- */
.nx-principles { display: flex; flex-direction: column; }
.nx-principle {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: clamp(1rem, 0.4rem + 2.4vw, 3rem);
  padding-block: var(--nx-space-8);
  border-bottom: 1px solid var(--nx-line);
}
.nx-principle:first-child { border-top: 1px solid var(--nx-line); }
.nx-principle__num {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  letter-spacing: 0.12em;
  color: var(--nx-text-faint);
  padding-top: 6px;
}
.nx-principle__title { font-size: var(--nx-fs-h3); margin-bottom: var(--nx-space-3); }
.nx-principle__text { font-size: var(--nx-fs-sm); line-height: 1.68; color: var(--nx-text-muted); max-width: 62ch; }
@media (max-width: 620px) {
  .nx-principle { grid-template-columns: minmax(0, 1fr); gap: var(--nx-space-3); }
  .nx-principle__num { padding-top: 0; }
}

/* --- Contact: aside cards ----------------------------------------------- */
.nx-contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 1.2rem + 3.5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 940px) {
  .nx-contact__layout { grid-template-columns: minmax(0, 1fr); }
}

.nx-formcard {
  padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  background: var(--nx-bg-raised);
  border: 1px solid var(--nx-line-strong);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-sm);
}

.nx-infolist { display: flex; flex-direction: column; gap: var(--nx-space-5); }
.nx-infolist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--nx-space-4);
  align-items: start;
}
.nx-infolist__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-sm);
  background: var(--nx-bg-sunken);
  color: var(--nx-accent);
  flex-shrink: 0;
}
.nx-infolist__icon svg { width: 16px; height: 16px; }
.nx-infolist__label {
  font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-semibold);
  color: var(--nx-text-strong);
}
.nx-infolist__text { font-size: var(--nx-fs-xs); line-height: 1.55; color: var(--nx-text-muted); margin-top: 2px; }

/* --- FAQ / disclosure ---------------------------------------------------- */
.nx-faq { border-top: 1px solid var(--nx-line); }
.nx-faq__item { border-bottom: 1px solid var(--nx-line); }
.nx-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-5);
  width: 100%;
  padding: var(--nx-space-6) 0;
  text-align: left;
  font-family: var(--nx-font-display);
  font-size: var(--nx-fs-h4);
  font-weight: var(--nx-fw-medium);
  color: var(--nx-text-strong);
  transition: color var(--nx-dur-fast) var(--nx-ease-out);
}
.nx-faq__q:hover { color: var(--nx-accent); }
.nx-faq__icon {
  position: relative;
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.nx-faq__icon::before,
.nx-faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: currentColor;
  transition: transform var(--nx-dur-base) var(--nx-ease-spring);
}
.nx-faq__icon::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.nx-faq__icon::after  { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.nx-faq__q[aria-expanded="true"] .nx-faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }

.nx-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--nx-dur-base) var(--nx-ease-out);
}
.nx-faq__a > div { overflow: hidden; }
.nx-faq__item.is-open .nx-faq__a { grid-template-rows: 1fr; }
.nx-faq__a p {
  padding-bottom: var(--nx-space-6);
  font-size: var(--nx-fs-sm);
  line-height: 1.68;
  color: var(--nx-text-muted);
  max-width: 68ch;
}

/* --- Resources: category split ------------------------------------------ */
.nx-rescard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-lg);
  background: var(--nx-bg-raised);
  overflow: hidden;
  transition: border-color var(--nx-dur-base) var(--nx-ease-out),
              box-shadow var(--nx-dur-base) var(--nx-ease-out),
              transform var(--nx-dur-base) var(--nx-ease-out);
}
.nx-rescard:hover { border-color: var(--nx-line-strong); box-shadow: var(--nx-shadow-md); transform: translateY(-3px); }
.nx-rescard__kicker {
  /* Icons are display:block by default, so the kicker has to lay out as a row
     or the label drops onto a second line. */
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-label);
  letter-spacing: var(--nx-ls-label);
  text-transform: uppercase;
  color: var(--nx-accent);
  margin-bottom: var(--nx-space-4);
}
.nx-rescard__kicker svg { width: 14px; height: 14px; }
.nx-rescard__title { font-size: var(--nx-fs-h2); margin-bottom: var(--nx-space-4); }
.nx-rescard__text { font-size: var(--nx-fs-sm); line-height: 1.65; color: var(--nx-text-muted); margin-bottom: var(--nx-space-6); max-width: 46ch; }
.nx-rescard__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-2);
  margin-bottom: var(--nx-space-8);
}
.nx-rescard__foot { margin-top: auto; }

/* --- Search field ------------------------------------------------------- */
.nx-search { position: relative; flex: 1 1 15rem; max-width: 22rem; }
.nx-search__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--nx-text-faint);
  pointer-events: none;
}
.nx-search .nx-input { padding-left: 2.5rem; }

.nx-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-5);
  padding-bottom: var(--nx-space-8);
  margin-bottom: var(--nx-space-10);
  border-bottom: 1px solid var(--nx-line);
}

/* --- 404 ---------------------------------------------------------------- */
.nx-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--nx-space-6);
  min-height: 72vh;
  padding-top: var(--nx-header-h);
}
.nx-404__code {
  font-family: var(--nx-font-mono);
  font-size: clamp(3.5rem, 2rem + 7vw, 7rem);
  font-weight: var(--nx-fw-bold);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--nx-text-strong);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.nx-mt-0  { margin-top: 0 !important; }
.nx-mt-4  { margin-top: var(--nx-space-4); }
.nx-mt-6  { margin-top: var(--nx-space-6); }
.nx-mt-8  { margin-top: var(--nx-space-8); }
.nx-mt-10 { margin-top: var(--nx-space-10); }
.nx-mt-12 { margin-top: var(--nx-space-12); }
.nx-mb-6  { margin-bottom: var(--nx-space-6); }
.nx-mb-8  { margin-bottom: var(--nx-space-8); }

.nx-text-center { text-align: center; }
.nx-text-muted  { color: var(--nx-text-muted); }
.nx-text-sm     { font-size: var(--nx-fs-sm); }
.nx-text-xs     { font-size: var(--nx-fs-xs); }
.nx-mono {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  letter-spacing: 0.06em;
}

.nx-stack { display: flex; flex-direction: column; }
.nx-stack-4 { gap: var(--nx-space-4); }
.nx-stack-6 { gap: var(--nx-space-6); }
.nx-stack-8 { gap: var(--nx-space-8); }

.nx-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nx-space-4);
}

.nx-hide-sm { display: initial; }
@media (max-width: 620px) { .nx-hide-sm { display: none !important; } }

.nx-full { grid-column: 1 / -1; }
