/* ============================================================
   Nexora Studio — Main stylesheet (light + iOS glass)
   Native browser scrolling. No scroll-driven animations.
   ============================================================ */

/* 1. Reset & base ------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}
body {
  margin: 0;
  font-family: var(--nx-font-body, "Inter", system-ui, sans-serif);
  font-size: calc(16px * var(--nx-font-scale, 1));
  line-height: 1.6;
  color: var(--nx-color-text);
  background: var(--nx-color-void);
  overflow-x: hidden;
  font-feature-settings: "ss01", "ss02", "cv05";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover {
  color: var(--nx-color-accent);
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
ul,
ol {
  padding: 0;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--nx-color-accent);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--nx-color-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.gradient_bg {
  background:
    radial-gradient(at 20% 20%, rgba(107, 79, 255, 0.18) 0%, transparent 55%),
    radial-gradient(at 80% 30%, rgba(15, 191, 164, 0.14) 0%, transparent 60%),
    radial-gradient(at 50% 100%, rgba(46, 141, 245, 0.16) 0%, transparent 65%);
}

.gradient_bg_dark {
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.25),
      transparent 35%
    ),
    radial-gradient(
      circle at top right,
      rgba(16, 185, 129, 0.18),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom center,
      rgba(59, 130, 246, 0.2),
      transparent 40%
    ),
    linear-gradient(180deg, #0b1020 0%, #050816 100%);
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}
.skip-link {
  background: #0a0f24;
  color: #fff;
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: 8px;
  position: absolute;
}
.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  position: fixed;
}

/* 2. Tokens (light defaults — overridden inline by dynamic-css.php) */
:root {
  --nx-color-void: #f5f6fb;
  --nx-color-deepspace: #eef0fb;
  --nx-color-surface: #ffffff;
  --nx-color-text: #0a0f24;
  --nx-color-muted: #566083;
  --nx-color-accent: #6b4fff;
  --nx-color-aurora: #0fbfa4;
  --nx-color-solar: #ff6a45;
  --nx-color-ion: #2e8df5;

  --nx-gradient-primary: linear-gradient(135deg, #6b4fff 0%, #0fbfa4 100%);
  --nx-gradient-secondary: linear-gradient(135deg, #ff6a45 0%, #6b4fff 100%);
  --nx-gradient-hero:
    radial-gradient(at 20% 20%, rgba(107, 79, 255, 0.18) 0%, transparent 55%),
    radial-gradient(at 80% 30%, rgba(15, 191, 164, 0.14) 0%, transparent 60%),
    radial-gradient(at 50% 100%, rgba(46, 141, 245, 0.16) 0%, transparent 65%);

  --nx-font-heading: "Space Grotesk", system-ui, sans-serif;
  --nx-font-body: "Inter", system-ui, sans-serif;
  --nx-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --nx-font-scale: 1;

  --nx-radius: 16px;
  --nx-radius-sm: 10px;
  --nx-radius-lg: 28px;
  --nx-container: 1320px;
  --nx-gutter: clamp(16px, 3vw, 32px);
  --nx-section-y: clamp(64px, 8vw, 140px);
  --nx-shadow:
    0 24px 60px -24px rgba(10, 15, 36, 0.18),
    0 8px 24px -16px rgba(107, 79, 255, 0.12);

  --nx-glass-tint-rgb: 255, 255, 255;
  --nx-glass-blur: 22px;
  --nx-glass-saturation: 180%;
  --nx-glass-opacity: 0.65;
  --nx-glass-border-opacity: 0.6;
  --nx-glass-radius: 22px;
  --nx-glass-bg: rgba(255, 255, 255, 0.65);
  --nx-glass-filter: saturate(180%) blur(22px);
  --nx-glass-border: 1px solid rgba(255, 255, 255, 0.6);
  --nx-glass-shadow:
    0 28.8px 63px -22px rgba(10, 15, 36, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  --nx-glass-highlight: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0) 40%
  );
  --nx-border: 1px solid rgba(10, 15, 36, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 3. Typography ------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
.nx-h1,
.nx-h2,
.nx-h3,
.nx-h4 {
  font-family: var(--nx-font-heading);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--nx-color-text);
  margin: 0 0 0.6em;
}
h1,
.nx-h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 800;
}
h2,
.nx-h2 {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
}
h3,
.nx-h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}
h4,
.nx-h4 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}
p {
  margin: 0 0 1em;
}
em {
  font-style: italic;
}
.nx-text-gradient {
  background: var(--nx-gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-style: normal;
}
.nx-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-family: var(--nx-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nx-color-muted);
  padding: 6px 14px;
  border: var(--nx-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
}

.nx-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--nx-color-muted);
  max-width: 60ch;
  line-height: 1.65;
}

/* 4. Layout primitives ------------------------------------ */
.nx-container {
  width: 100%;
  max-width: var(--nx-container);
  padding-left: var(--nx-gutter);
  padding-right: var(--nx-gutter);
  margin: 0 auto;
}
.nx-section {
  padding-block: var(--nx-section-y);
  position: relative;
}
.nx-section__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.nx-section__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: none;
  flex-wrap: wrap;
}
.nx-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.nx-grid--team {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* 5. Buttons ---------------------------------------------- */
.nx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-family: var(--nx-font-heading);
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease,
    color 0.25s ease;
  isolation: isolate;
  cursor: pointer;
}
.nx-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nx-gradient-primary);
  z-index: -1;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nx-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  transition:
    transform 0.35s ease,
    background 0.25s ease;
}
.nx-btn:hover .nx-btn__icon {
  background: rgba(255, 255, 255, 0.32);
  transform: translateX(4px);
}
.nx-btn:hover {
  color: #fff;
  box-shadow: 0 18px 50px -18px rgba(107, 79, 255, 0.5);
}
.nx-btn--primary {
  color: #fff;
}
.nx-btn--ghost {
  background: transparent;
  color: var(--nx-color-text);
  border: var(--nx-border);
}
.nx-btn--ghost::before {
  background: rgba(10, 15, 36, 0.05);
  opacity: 0;
}
.nx-btn--ghost:hover::before {
  opacity: 1;
}
.nx-btn--ghost:hover {
  color: var(--nx-color-text);
  box-shadow: none;
}

/* 6. iOS Liquid Glass utilities --------------------------- */
.nx-glass,
.glass-card,
.nx-glass-el {
  position: relative;
  background: var(--nx-glass-bg);
  backdrop-filter: var(--nx-glass-filter);
  -webkit-backdrop-filter: var(--nx-glass-filter);
  border: var(--nx-glass-border);
  border-radius: var(--nx-glass-radius);
  box-shadow: var(--nx-glass-shadow);
}
.nx-glass::before,
.glass-card::before,
.nx-glass-el::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--nx-glass-highlight);
  mix-blend-mode: overlay;
  opacity: 0.9;
}
.nx-glass::after,
.nx-glass-el::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.06;
}
.glass-bg {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent),
    var(--nx-color-deepspace);
}

/* 7. Header — Boxed (floating rounded rectangle, iOS glass) ----------------------- */
.nx-header {
  position: relative;
  z-index: 50;
  padding-top: clamp(14px, 2vw, 22px);
}
.nx-header.is-sticky {
  position: sticky;
  top: 0;
}
.nx-header__bar {
  transition: padding 0.3s ease;
}

.nx-header__inner {
  position: relative; /* anchors mega-menu width to the header pill */
  display: flex;
  align-items: center;
  gap: 18px;
  /* Aligns edge-to-edge with the hero (same width + same gutter). */
  width: calc(100% - 2 * var(--nx-gutter));
  max-width: var(--nx-container);
  margin: 0 auto;
  padding: 10px 14px 10px 22px;
  border-radius: 12px;
  /* Slim rim only — no drop shadow, no glow */
  border: 1px solid rgba(10, 15, 36, 0.1);
  box-shadow: none;
}

/* Simple (full-width bar) variant — keeps a thin rim but no floating pill */
.nx-header--simple {
  padding-top: 0;
}
.nx-header--simple .nx-header__bar {
  padding: 14px 0;
}
.nx-header--simple .nx-header__inner {
  max-width: var(--nx-container);
  padding: 10px var(--nx-gutter);
  border-radius: 0;
  background: rgba(var(--nx-glass-tint-rgb), 0.7);
  box-shadow:
    0 1px 0 rgba(10, 15, 36, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.nx-header--simple .nx-header__inner::before {
  display: none;
}
.nx-header--simple.is-scrolled .nx-header__inner {
  max-width: var(--nx-container);
}

.nx-header__brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  line-height: 0;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nx-color-text);
  font-family: var(--nx-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.site-brand--has-logo,
.site-brand--has-logo .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  font-size: 0;
}
.site-brand .custom-logo,
.site-brand .custom-logo-link,
.site-brand .custom-logo-link img,
.nx-header__brand .custom-logo,
.nx-header__brand .custom-logo-link img {
  max-width: var(--nx-logo-w, 160px) !important;
  height: auto !important;
  width: auto !important;
  display: block;
  vertical-align: middle;
}
.brand-mark {
  display: inline-flex;
}
.brand-name {
  font-weight: 700;
}

.nx-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nx-header__nav .primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: stretch;
}
.nx-header__nav .primary-menu li {
  position: relative;
  display: flex;
  align-items: center;
}
.nx-header__nav .primary-menu > li > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--nx-color-text);
  background: transparent;
  border-radius: 0;
  transition: color 0.25s ease;
  position: relative;
}
.nx-header__nav .primary-menu > li > a:hover {
  color: var(--nx-color-accent);
  background: transparent;
}
/* Active item — accent colour only, no underline */
.nx-header__nav .primary-menu > li.current-menu-item > a,
.nx-header__nav .primary-menu > li.current-menu-ancestor > a,
.nx-header__nav .primary-menu > li.current-menu-parent > a {
  color: var(--nx-color-accent);
  background: transparent;
  font-weight: 600;
}

/* Dropdown — boxed glass, same 12px radius as header */
.nx-header__nav .primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 220px;
  margin-top: calc(
    10px + 8px
  ); /* clears the header's bottom rim with a small gap */
  background: var(--nx-glass-bg);
  backdrop-filter: var(--nx-glass-filter);
  -webkit-backdrop-filter: var(--nx-glass-filter);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  list-style: none;
  /* iOS-style rim, matching the header */
  box-shadow:
    0 24px 60px -22px rgba(10, 15, 36, 0.18),
    0 8px 24px -12px rgba(10, 15, 36, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 1px 0 0 rgba(255, 255, 255, 0.35),
    inset -1px 0 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(10, 15, 36, 0.06);
  border: 0;
}
.nx-header__nav .primary-menu li:hover > .sub-menu,
.nx-header__nav .primary-menu li:focus-within > .sub-menu {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.nx-header__nav .primary-menu .sub-menu a {
  display: block;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.92rem;
  color: var(--nx-color-text);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.nx-header__nav .primary-menu .sub-menu a:hover {
  background: rgba(107, 79, 255, 0.08);
  color: var(--nx-color-accent);
}

/* ============================================================
   Mega menu — opens on hover/focus of a parent with .has-mega
   Width matches the header pill (.nx-header__inner)
   Liquid glass: real backdrop blur, soft tint, iOS rim
   ============================================================ */
.nx-header__nav .primary-menu > li.has-mega {
  position: static; /* lets .nx-mega anchor to .nx-header__inner */
}
.nx-header__nav .primary-menu > li.has-mega > .sub-menu {
  display: none; /* the walker also outputs a .sub-menu fallback — hide it */
}
.nx-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding-top: 22px; /* visible breathing room AND hit-zone bridge so hover survives */
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0.32s linear;
  pointer-events: none;
  display: flex;
  justify-content: center;
}
.nx-header__nav .primary-menu > li.has-mega.is-mega-open > .nx-mega,
.nx-header__nav .primary-menu > li.has-mega:focus-within > .nx-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nx-mega__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  width: 100%;
  max-width: 880px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(10, 15, 36, 0.1);
  box-shadow: none;
  isolation: isolate;
}

/* Media (image side) */
.nx-mega__media {
  position: relative;
  margin: 0;
  min-height: 280px;
  overflow: hidden;
  isolation: isolate;
}
.nx-mega__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nx-mega:hover .nx-mega__media img,
.nx-mega:focus-within .nx-mega__media img {
  transform: scale(1);
}
.nx-mega__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 36, 0) 0%,
    rgba(10, 15, 36, 0.55) 100%
  );
  pointer-events: none;
}
.nx-mega__media-overlay {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nx-mega__eyebrow {
  display: inline-block;
  width: max-content;
  font-family: var(--nx-font-mono, "JetBrains Mono"), ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.nx-mega__heading {
  margin: 4px 0 0;
  font-family: var(--nx-font-heading, "Space Grotesk", system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.1;
}
.nx-mega__tagline {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

/* List (items side) */
.nx-mega__list {
  list-style: none;
  margin: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: min-content;
  gap: 6px 10px;
  align-content: start;
  background: transparent;
}
.nx-mega__list li {
  display: block;
  position: static;
  margin: 0;
}
.nx-mega__list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--nx-color-text);
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.2s ease,
    transform 0.25s ease;
  position: relative;
  isolation: isolate;
}

.nx-mega__list a:hover {
  background: rgba(107, 79, 255, 0.08);
  color: var(--nx-color-text);
}
.nx-mega__list a:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.nx-mega__list a > .nx-mega__item-desc {
  color: var(--nx-color-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 400;
}
/* The default title text from wp_nav_menu has no wrapper, so we style the <a>
   typography then re-style the description's typography above. */
.nx-mega__list a {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

/* Tablet — hide media, simplify */
@media (max-width: 900px) {
  .nx-mega__inner {
    grid-template-columns: 1fr;
  }
  .nx-mega__media {
    display: none;
  }
  .nx-mega__list {
    padding: 10px;
  }
}

.nx-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}
.nx-header__cta {
  padding: 10px 18px;
  font-size: 0.92rem;
}

.nx-burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: var(--nx-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}
.nx-burger span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.nx-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nx-burger.is-open span:nth-child(2) {
  opacity: 0;
}
.nx-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nx-offcanvas {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.nx-offcanvas__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 15, 36, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.nx-offcanvas__panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: min(440px, 90vw);
  height: 100%;
  background: #ffffff;
  border-left: var(--nx-border);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: auto;
  box-shadow: -20px 0 60px -20px rgba(10, 15, 36, 0.25);
  isolation: isolate;
}
.nx-offcanvas.is-open {
  pointer-events: auto;
}
.nx-offcanvas.is-open .nx-offcanvas__backdrop {
  opacity: 1;
}
.nx-offcanvas.is-open .nx-offcanvas__panel {
  transform: translateX(0);
}
.nx-offcanvas__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.nx-iconbtn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--nx-border);
  background: rgba(10, 15, 36, 0.04);
  color: var(--nx-color-text);
}
.nx-iconbtn:hover {
  background: rgba(10, 15, 36, 0.08);
}
.nx-offcanvas__nav {
  flex: 1;
}
.nx-offcanvas__nav .mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nx-offcanvas__nav .mobile-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 1.2rem;
  font-family: var(--nx-font-heading);
  font-weight: 600;
  border-radius: 12px;
}
.nx-offcanvas__nav .mobile-menu a:hover {
  background: rgba(10, 15, 36, 0.05);
}
.nx-offcanvas__nav .sub-menu {
  list-style: none;
  padding-left: 16px;
  margin: 4px 0 0;
}
.nx-offcanvas__nav .sub-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--nx-color-muted);
}
.nx-offcanvas__footer {
  padding-top: 24px;
  border-top: var(--nx-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nx-offcanvas__link {
  font-family: var(--nx-font-mono);
  font-size: 0.9rem;
  color: var(--nx-color-muted);
}

/* 8. Hero — boxed island, container-width, sits naturally below the header ----- */
.nx-hero {
  position: relative;
  width: calc(100% - 2 * var(--nx-gutter));
  max-width: var(--nx-container);
  margin: clamp(20px, 2.5vw, 36px) auto 0;
  min-height: auto;
  display: flex;
  align-items: center;
  /* padding: clamp(60px, 8vw, 100px) 0; */
  padding-top: clamp(60px, 8vw, 100px);
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  border-radius: clamp(18px, 2vw, 28px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent),
    var(--nx-color-deepspace);
  box-shadow:
    0 30px 80px -30px rgba(10, 15, 36, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.nx-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.nx-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nx-gradient-hero);
  opacity: 1;
}
.nx-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10, 15, 36, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 15, 36, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 30%,
    transparent 75%
  );
}
.nx-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.nx-hero__glow--a {
  width: 520px;
  height: 520px;
  background: var(--nx-color-accent);
  top: -100px;
  left: -100px;
}
.nx-hero__glow--b {
  width: 480px;
  height: 480px;
  background: var(--nx-color-aurora);
  bottom: -120px;
  right: -120px;
}
.nx-hero__glow--c {
  width: 360px;
  height: 360px;
  background: var(--nx-color-solar);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.22;
}
.nx-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.nx-hero__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nx-hero__title {
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}
.nx-hero__title .line {
  display: block;
}
.nx-hero__lead {
  font-size: clamp(1rem, 1.2vw, 1rem);
  color: var(--nx-color-muted);
  max-width: 56ch;
  line-height: 1.55;
}
.nx-hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.nx-hero__meta {
  list-style: none;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: var(--nx-border);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.nx-hero__meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nx-hero__meta strong {
  font-family: var(--nx-font-heading);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 700;
  background: var(--nx-gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.nx-hero__meta span {
  font-family: var(--nx-font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--nx-color-muted);
}
.nx-hero__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 0;
}
.nx-hero__image {
  display: block;
  width: 100%;
  max-width: var(--nx-hero-img-w, 680px);
  height: auto;
  max-height: var(--nx-hero-img-h, 720px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 30px 60px rgba(10, 15, 36, 0.18));
}
.nx-hero__image-placeholder {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(10, 15, 36, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}
.nx-hero__image-placeholder svg {
  width: 60%;
  height: auto;
}
.nx-hero__image-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--nx-color-muted);
  text-align: center;
  line-height: 1.5;
}
.nx-hero__panel {
  position: absolute;
  border-radius: var(--nx-glass-radius);
  padding: 22px;
}
.nx-hero__panel--a {
  top: 30px;
  left: 0;
  width: 78%;
}
.nx-hero__panel--b {
  bottom: 60px;
  right: 0;
  width: 58%;
}
.nx-hero__panel--c {
  top: 0;
  right: 8%;
  width: 54%;
}
.nx-hero__panel-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: var(--nx-border);
}
.nx-hero__panel-head .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot--r {
  background: #ff5f57;
}
.dot--y {
  background: #febc2e;
}
.dot--g {
  background: #28c840;
}
.nx-hero__panel-title {
  font-family: var(--nx-font-mono);
  font-size: 0.75rem;
  color: var(--nx-color-muted);
  margin-left: auto;
}
.nx-hero__code {
  font-family: var(--nx-font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: #2d3760;
  white-space: pre-wrap;
  margin: 0;
}
.t-dim {
  color: #8893b7;
}
.t-key {
  color: var(--nx-color-accent);
}
.t-ok {
  color: var(--nx-color-aurora);
}
.t-link {
  color: var(--nx-color-ion);
  text-decoration: underline;
}
.t-grad {
  background: var(--nx-gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.nx-hero__panel-eyebrow {
  font-family: var(--nx-font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--nx-color-muted);
  margin: 0 0 8px;
}
.nx-hero__panel-stat {
  font-family: var(--nx-font-heading);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 14px;
  background: var(--nx-gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.nx-hero__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
}
.nx-hero__bars span {
  flex: 1;
  height: var(--h);
  background: var(--nx-gradient-primary);
  border-radius: 4px;
  opacity: 0.85;
}
.nx-hero__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nx-hero__tags li {
  font-family: var(--nx-font-mono);
  font-size: 0.72rem;
  padding: 6px 10px;
  border: var(--nx-border);
  border-radius: 999px;
  color: var(--nx-color-text);
  background: rgba(255, 255, 255, 0.6);
}

/* 9. Sections --------------------------------------------- */
.nx-marquee {
  padding: 24px 0;
  border-block: var(--nx-border);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
}
.nx-marquee__track {
  display: flex;
  width: fit-content;
  animation: nx-marquee 30s linear infinite;
}
.nx-marquee__list {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0 20px;
  font-family: var(--nx-font-heading);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--nx-color-muted);
}
.nx-marquee__list li {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
}
.nx-marquee__sep {
  color: var(--nx-color-accent);
}

.nx-about__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: start;
}
.nx-pillars {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nx-pillar {
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  row-gap: 6px;
  align-items: start;
}
.nx-pillar__num {
  font-family: var(--nx-font-mono);
  font-size: 0.85rem;
  color: var(--nx-color-accent);
  grid-row: 1/3;
}
.nx-pillar h3 {
  font-size: 1.3rem;
  margin: 0;
}
.nx-pillar p {
  margin: 0;
  color: var(--nx-color-muted);
}
.nx-about__cta {
  margin-top: 32px;
}

.nx-services__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.nx-service {
  padding: 36px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nx-service:hover {
  transform: translateY(-6px);
}
.nx-service__num {
  font-family: var(--nx-font-mono);
  font-size: 0.78rem;
  color: var(--nx-color-accent);
  letter-spacing: 0.15em;
}
.nx-service__title {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  margin: 0;
}
.nx-service__sub {
  font-size: 0.92rem;
  color: var(--nx-color-muted);
  margin: 0;
}
.nx-service__excerpt {
  font-size: 0.95rem;
  color: var(--nx-color-muted);
}
.nx-service__arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.65);
  border: var(--nx-border);
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    color 0.3s ease;
}
.nx-service:hover .nx-service__arrow {
  background: var(--nx-color-accent);
  color: #fff;
  transform: translate(2px, -2px);
}

.nx-stack__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.nx-stack__group {
  padding: 24px;
}
.nx-stack__group-title {
  font-size: 0.92rem;
  font-family: var(--nx-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--nx-color-muted);
  margin: 0 0 14px;
}
.nx-stack__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.nx-stack__chip {
  padding: 7px 14px;
  border: var(--nx-border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.nx-stack__chip:hover {
  background: var(--nx-gradient-primary);
  border-color: transparent;
  color: #fff;
}

.nx-process__list {
  list-style: none;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0;
  padding: 0;
}
.nx-process__step {
  padding: 30px 24px;
  position: relative;
}
.nx-process__num {
  display: block;
  font-family: var(--nx-font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--nx-gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.nx-process__title {
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.nx-process__desc {
  margin: 0;
  color: var(--nx-color-muted);
  font-size: 0.95rem;
}

.nx-work__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}
.nx-work__card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--nx-glass-radius);
  overflow: hidden;
  background: var(--nx-glass-bg);
  border: var(--nx-glass-border);
  box-shadow: var(--nx-glass-shadow);
  backdrop-filter: var(--nx-glass-filter);
  -webkit-backdrop-filter: var(--nx-glass-filter);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nx-work__card.is-wide {
  grid-column: span 12;
}
.nx-work__card:hover {
  transform: translateY(-6px);
}
.nx-work__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: inherit;
}
.nx-work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nx-work__card:hover .nx-work__media img {
  transform: scale(1.05);
}
.nx-work__placeholder {
  position: absolute;
  inset: 0;
}
.nx-work__view {
  position: absolute;
  bottom: 18px;
  right: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  font-family: var(--nx-font-mono);
  font-size: 0.78rem;
  color: var(--nx-color-text);
  border: 1px solid rgba(10, 15, 36, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.nx-work__card:hover .nx-work__view {
  opacity: 1;
  transform: translateY(0);
}
.nx-work__meta {
  padding: 0 22px 24px;
}
.nx-work__title {
  font-size: 1.3rem;
  margin: 0 0 6px;
}
.nx-work__sub {
  color: var(--nx-color-muted);
  margin: 0 0 10px;
  font-size: 0.92rem;
}
.nx-work__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nx-work__tags li {
  font-family: var(--nx-font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border: var(--nx-border);
  border-radius: 999px;
  color: var(--nx-color-muted);
}

.nx-tms__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.nx-tms__card {
  padding: 28px;
}
.nx-tms__rating {
  color: var(--nx-color-solar);
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}
.nx-tms__quote {
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0 0 18px;
  color: var(--nx-color-text);
  font-family: var(--nx-font-heading);
  font-weight: 500;
}
.nx-tms__cite {
  display: flex;
  flex-direction: column;
}
.nx-tms__cite strong {
  font-weight: 600;
}
.nx-tms__cite span {
  color: var(--nx-color-muted);
  font-size: 0.88rem;
}

.nx-cta__inner {
  position: relative;
  padding: clamp(40px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  overflow: hidden;
}
.nx-cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.nx-cta__bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.nx-cta__bg .orb--a {
  width: 300px;
  height: 300px;
  background: var(--nx-color-accent);
  top: -50px;
  left: -50px;
}
.nx-cta__bg .orb--b {
  width: 260px;
  height: 260px;
  background: var(--nx-color-aurora);
  bottom: -40px;
  right: -40px;
}
.nx-cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nx-cta__form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.nx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nx-field--full {
  grid-column: span 2;
}
.nx-field label {
  font-family: var(--nx-font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--nx-color-muted);
}
.nx-field input,
.nx-field textarea {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: var(--nx-border);
  color: var(--nx-color-text);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.nx-field input:focus,
.nx-field textarea:focus {
  outline: none;
  border-color: var(--nx-color-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(107, 79, 255, 0.12);
}
.nx-captcha label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nx-captcha__q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 4px 10px;
  font-family: var(--nx-font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--nx-color-accent);
  background: rgba(107, 79, 255, 0.08);
  border: 1px solid rgba(107, 79, 255, 0.18);
  border-radius: 8px;
  letter-spacing: 0.06em;
  user-select: none;
}
.nx-cta__form-actions {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.nx-cta__msg,
.nx-contact__msg,
.nx-newsletter__msg {
  margin: 0;
  font-family: var(--nx-font-mono);
  font-size: 0.84rem;
  color: var(--nx-color-aurora);
}
.nx-cta__msg.is-error,
.nx-contact__msg.is-error,
.nx-newsletter__msg.is-error {
  color: var(--nx-color-solar);
}
.nx-cta__msg.is-warn,
.nx-contact__msg.is-warn,
.nx-newsletter__msg.is-warn {
  color: #b46300;
}

/* 10. Footer ---------------------------------------------- */
.nx-footer {
  position: relative;
  padding: clamp(60px, 7vw, 120px) 0 30px;
  background: linear-gradient(180deg, transparent, var(--nx-color-deepspace));
  border-top: var(--nx-border);
  overflow: hidden;
}
.nx-footer__halo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nx-footer__halo .halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
}
.nx-footer__halo .halo--a {
  width: 500px;
  height: 500px;
  background: var(--nx-color-accent);
  top: -200px;
  left: 10%;
}
.nx-footer__halo .halo--b {
  width: 400px;
  height: 400px;
  background: var(--nx-color-aurora);
  top: -150px;
  right: 5%;
}
.nx-footer__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: var(--nx-border);
}
.nx-footer__col h4 {
  margin: 0 0 18px;
}
.footer-widget-title {
  font-family: var(--nx-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--nx-color-muted);
}
.nx-footer__tagline {
  color: var(--nx-color-muted);
  margin: 16px 0;
  max-width: 30ch;
}
.footer-links,
.footer-menu,
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a,
.footer-menu a {
  color: var(--nx-color-muted);
  transition: color 0.25s ease;
}
.footer-links a:hover,
.footer-menu a:hover {
  color: var(--nx-color-text);
}

/* Footer contact — iconed rows */
.contact-list--icons {
  gap: 14px;
}
.contact-list--icons .contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.contact-list--icons .contact-item--multiline {
  align-items: flex-start;
}
.contact-list--icons .contact-item__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(107, 79, 255, 0.08);
  color: var(--nx-color-accent);
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.contact-list--icons .contact-item--multiline .contact-item__icon {
  margin-top: 2px;
}
.contact-list--icons .contact-item__text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--nx-color-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}
.contact-list--icons a.contact-item__text:hover {
  color: var(--nx-color-text);
}
.contact-list--icons .contact-item:hover .contact-item__icon {
  background: var(--nx-color-accent);
  color: #fff;
}
.social-links {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: var(--nx-border);
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
}
.social-link:hover {
  background: var(--nx-color-accent);
  color: #fff;
  transform: translateY(-2px);
}
.nx-newsletter {
  margin-top: 16px;
}
.nx-newsletter__row {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: var(--nx-border);
  border-radius: 12px;
  padding: 6px;
}
.nx-newsletter__row input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 10px 14px;
  color: var(--nx-color-text);
  outline: none;
}
.nx-newsletter__row .nx-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}
.nx-footer__giant {
  position: relative;
  z-index: 1;
  font-family: var(--nx-font-heading);
  font-weight: 800;
  font-size: clamp(4rem, 18vw, 17rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(10, 15, 36, 0.08), transparent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-align: center;
  padding: 50px 0 0;
  text-transform: uppercase;
}
.nx-footer__giant span {
  display: block;
}
.nx-footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  color: var(--nx-color-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.nx-footer__bottom .footer-menu {
  display: flex;
  flex-direction: row;
  gap: 18px;
}

.nx-totop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--nx-glass-bg);
  backdrop-filter: var(--nx-glass-filter);
  -webkit-backdrop-filter: var(--nx-glass-filter);
  border: var(--nx-glass-border);
  color: var(--nx-color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.25s ease,
    color 0.25s ease;
  box-shadow: var(--nx-glass-shadow);
}
.nx-totop.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.nx-totop:hover {
  background: var(--nx-color-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* 11. Blog / single / prose -------------------------------- */
.nx-page-hero {
  padding: clamp(40px, 6vw, 80px) 0;
  position: relative;
  text-align: center;
}
.nx-page-hero .nx-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nx-page-hero .nx-eyebrow {
  order: 1;
}
.nx-page-title {
  order: 2;
  font-family: var(--nx-font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--nx-color-text);
  margin: 12px 0 14px;
  text-align: center;
  text-decoration: none;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.nx-page-desc {
  order: 3;
  color: var(--nx-color-muted);
  max-width: 60ch;
  margin: 0 auto;
  font-size: 1.05rem;
  text-align: center;
}
.nx-page-hero .breadcrumbs {
  order: 4;
  margin-top: 18px;
  justify-content: center;
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  font-family: var(--nx-font-mono);
  font-size: 0.78rem;
  color: var(--nx-color-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.breadcrumbs a {
  color: var(--nx-color-muted);
}
.breadcrumbs a:hover {
  color: var(--nx-color-text);
}
.breadcrumbs .sep {
  color: rgba(10, 15, 36, 0.2);
}
.nx-posts {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.nx-post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}
.nx-post-card:hover {
  transform: translateY(-6px);
}
.nx-post-card__media {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.nx-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.nx-post-card:hover .nx-post-card__media img {
  transform: scale(1.06);
}
.nx-post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.nx-post-card__meta {
  font-family: var(--nx-font-mono);
  font-size: 0.78rem;
  color: var(--nx-color-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.nx-post-card__title {
  font-size: 1.3rem;
  margin: 0;
}
.nx-post-card__excerpt {
  color: var(--nx-color-muted);
  font-size: 0.95rem;
  flex: 1;
}
.nx-post-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--nx-color-muted);
}
.nx-post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nx-color-text);
  font-weight: 600;
}
.nx-post-card__more svg {
  transition: transform 0.25s ease;
}
.nx-post-card__more:hover svg {
  transform: translateX(3px);
}

.nx-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.nx-pagination .page-numbers {
  padding: 10px 14px;
  border-radius: 12px;
  border: var(--nx-border);
  color: var(--nx-color-text);
  background: rgba(255, 255, 255, 0.7);
}
.nx-pagination .current {
  background: var(--nx-gradient-primary);
  border-color: transparent;
  color: #fff;
}

.nx-featured {
  margin: 0;
  padding: 0 var(--nx-gutter);
}
.nx-featured img {
  width: 100%;
  max-width: var(--nx-container);
  height: auto;
  border-radius: var(--nx-radius-lg);
  margin: 0 auto;
  display: block;
  box-shadow: var(--nx-shadow);
}

.nx-prose,
.nx-prose-wide {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--nx-color-text);
}
.nx-prose-wide {
  max-width: 980px;
}
.nx-prose h2,
.nx-prose-wide h2 {
  margin-top: 1.6em;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}
.nx-prose h3 {
  margin-top: 1.4em;
}
.nx-prose p,
.nx-prose-wide p {
  margin: 0 0 1.1em;
}
.nx-prose a {
  color: var(--nx-color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(107, 79, 255, 0.4);
}
.nx-prose a:hover {
  text-decoration-color: var(--nx-color-accent);
}
.nx-prose blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--nx-color-accent);
  background: rgba(107, 79, 255, 0.06);
  border-radius: 0 var(--nx-radius-sm) var(--nx-radius-sm) 0;
  font-size: 1.1rem;
  color: var(--nx-color-text);
  font-style: italic;
}
.nx-prose code {
  font-family: var(--nx-font-mono);
  font-size: 0.92em;
  background: rgba(10, 15, 36, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}
.nx-prose pre {
  background: #0a0f24;
  color: #e6e8ff;
  padding: 18px 22px;
  border-radius: var(--nx-radius);
  overflow: auto;
  font-family: var(--nx-font-mono);
  font-size: 0.9rem;
}
.nx-prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.nx-prose ul,
.nx-prose ol {
  margin: 0 0 1.2em 1.4em;
  padding: 0;
}
.nx-prose img {
  border-radius: var(--nx-radius);
}
.nx-prose hr {
  border: 0;
  border-top: var(--nx-border);
  margin: 2em 0;
}
.nx-prose table {
  width: 100%;
  border-collapse: collapse;
}
.nx-prose th,
.nx-prose td {
  padding: 10px 14px;
  border-bottom: var(--nx-border);
  text-align: left;
}

.nx-article__meta {
  font-family: var(--nx-font-mono);
  font-size: 0.85rem;
  color: var(--nx-color-muted);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.nx-article__nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: var(--nx-border);
}

.nx-project-single__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: var(--nx-border);
}
.nx-project-single__facts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nx-project-single__facts span {
  font-family: var(--nx-font-mono);
  font-size: 0.74rem;
  color: var(--nx-color-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.nx-project-single__facts strong {
  font-size: 1.05rem;
}
.nx-project-single__stack {
  margin-top: 40px;
  padding-top: 24px;
  border-top: var(--nx-border);
}
.nx-project-single__stack ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
}
.nx-project-single__stack li {
  font-family: var(--nx-font-mono);
  font-size: 0.85rem;
  padding: 6px 12px;
  border: var(--nx-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.nx-service-single__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 24px 0 0;
  padding: 0;
}
.nx-service-single__meta li {
  display: flex;
  flex-direction: column;
}
.nx-service-single__meta strong {
  font-family: var(--nx-font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--nx-color-muted);
  margin-bottom: 4px;
}

.nx-member {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s ease;
}
.nx-member:hover {
  transform: translateY(-4px);
}
.nx-member__media {
  aspect-ratio: 4/5;
  border-radius: var(--nx-radius-sm);
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(107, 79, 255, 0.15),
    rgba(15, 191, 164, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-color-muted);
}
.nx-member__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nx-member__name {
  margin: 0;
  font-size: 1.2rem;
}
.nx-member__role {
  margin: 2px 0 8px;
  color: var(--nx-color-accent);
  font-family: var(--nx-font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nx-member__bio {
  margin: 0;
  color: var(--nx-color-muted);
  font-size: 0.94rem;
}
.nx-member__social {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.nx-member__social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 15, 36, 0.04);
  border: var(--nx-border);
  font-family: var(--nx-font-mono);
  font-size: 0.78rem;
  color: var(--nx-color-muted);
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.nx-member__social a:hover {
  background: var(--nx-color-accent);
  color: #fff;
}

.nx-faqs {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.nx-faqs__group-title {
  font-size: 1.4rem;
  margin: 0 0 14px;
}
.nx-faqs__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nx-faq {
  padding: 0;
  overflow: hidden;
}
.nx-faq__q {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--nx-font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.nx-faq__q::-webkit-details-marker {
  display: none;
}
.nx-faq__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(10, 15, 36, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition:
    transform 0.35s ease,
    background 0.25s ease,
    color 0.25s ease;
}
.nx-faq[open] .nx-faq__icon {
  background: var(--nx-color-accent);
  transform: rotate(45deg);
  color: #fff;
}
.nx-faq__a {
  padding: 0 24px 22px;
  color: var(--nx-color-muted);
}

.nx-contact {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}
.nx-contact__info .contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
  border-bottom: var(--nx-border);
}
.nx-contact__info strong {
  font-family: var(--nx-font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--nx-color-muted);
  margin-bottom: 4px;
}
.nx-contact__form {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.nx-contact__actions {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.nx-empty {
  padding: 48px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.nx-404 {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.nx-orb-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.nx-orb-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.nx-orb-bg .orb--a {
  width: 520px;
  height: 520px;
  background: var(--nx-color-accent);
  top: -100px;
  left: -100px;
}
.nx-orb-bg .orb--b {
  width: 480px;
  height: 480px;
  background: var(--nx-color-aurora);
  bottom: -150px;
  right: -100px;
}
.nx-orb-bg .orb--c {
  width: 380px;
  height: 380px;
  background: var(--nx-color-solar);
  top: 40%;
  left: 55%;
}
.nx-404__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.nx-404__title {
  font-size: clamp(8rem, 22vw, 18rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin: 18px 0;
  background: var(--nx-gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.nx-404__zero {
  display: inline-block;
}
.nx-404__lead {
  font-size: 1.2rem;
  color: var(--nx-color-muted);
  margin-bottom: 32px;
}
.nx-404__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.nx-404__search {
  max-width: 480px;
  margin: 0 auto;
}

.nx-searchform__row {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.75);
  border: var(--nx-border);
  border-radius: 12px;
  padding: 6px;
}
.nx-searchform__row input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 12px 18px;
  color: var(--nx-color-text);
  outline: none;
  font-size: 1rem;
}
.nx-searchform__row .nx-btn {
  padding: 12px 18px;
}

.nx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.nx-filters button {
  padding: 8px 14px;
  border-radius: 12px;
  border: var(--nx-border);
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--nx-font-mono);
  font-size: 0.82rem;
  color: var(--nx-color-muted);
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.nx-filters button.is-active,
.nx-filters button:hover {
  background: var(--nx-gradient-primary);
  color: #fff;
  border-color: transparent;
}

.nx-search-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nx-search-card__type {
  font-family: var(--nx-font-mono);
  font-size: 0.74rem;
  color: var(--nx-color-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0;
}
.nx-search-card__title {
  font-size: 1.2rem;
  margin: 0;
}
.nx-search-card__excerpt {
  color: var(--nx-color-muted);
}
.nx-search-card__more {
  font-family: var(--nx-font-mono);
  font-size: 0.88rem;
  color: var(--nx-color-accent);
  align-self: flex-start;
}

.nx-comments {
  padding: 32px;
  margin-top: 48px;
}
.nx-comments__title {
  font-size: 1.4rem;
}
.nx-commentlist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nx-commentlist .comment-body {
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: var(--nx-border);
  border-radius: var(--nx-radius);
}
.nx-commentform p {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
}
.nx-commentform input[type="text"],
.nx-commentform input[type="email"],
.nx-commentform input[type="url"],
.nx-commentform textarea {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: var(--nx-border);
  color: var(--nx-color-text);
}
.nx-commentform .submit {
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--nx-gradient-primary);
  color: #fff;
  border: 0;
  font-weight: 600;
  cursor: pointer;
}

.nx-sidebar .widget {
  padding: 24px;
  margin-bottom: 20px;
}
.widget-title {
  font-size: 1.05rem;
  margin: 0 0 12px;
  font-family: var(--nx-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--nx-color-muted);
}

/* 12. Animations — minimal -------------------------------- */
@keyframes nx-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Site-wide reveal primitive. JS (widgets.js) toggles .is-in when the element
   enters the viewport (IntersectionObserver, fires once). No scroll hijacking. */
.nx-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--nxw-delay, 0ms);
  will-change: transform, opacity;
}
.nx-reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .nx-reveal,
  .nx-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Heading reveal — premium slide-up, fires once on first view */
.nx-reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--nxw-delay, 0ms);
  will-change: transform, opacity;
}
.nx-reveal-up.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .nx-reveal-up,
  .nx-reveal-up.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 12. Service detail page ---------------------------------- */
.nx-service-page__feature {
  margin: 0;
  padding-bottom: clamp(24px, 4vw, 40px);
}
.nx-service-page__feature img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(10, 15, 36, 0.08);
}
.nx-service-page__body {
  font-size: 1.05rem;
  line-height: 1.75;
}
.nx-service-page__body h2 {
  margin: 0.3em 0 0.3em;
  font-family: var(--nx-font-heading);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--nx-color-text);
}
.nx-service-page__body h2:first-child {
  margin-top: 0;
}
.nx-service-page__body h3 {
  margin: 0.3em 0 0.5em;
  font-family: var(--nx-font-heading);
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--nx-color-text);
}
.nx-service-page__body ul,
.nx-service-page__body ol {
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 24px;
  margin: 1em 0 1.4em;
}
.nx-service-page__body ul li,
.nx-service-page__body ol li {
  position: relative;
  padding: 8px 8px 8px 30px;
  font-size: 0.98rem;
  color: var(--nx-color-text);
}
.nx-service-page__body ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--nx-gradient-primary);
  box-shadow: 0 4px 10px -4px rgba(107, 79, 255, 0.45);
}
.nx-service-page__body ol {
  counter-reset: nxol;
}
.nx-service-page__body ol li {
  counter-increment: nxol;
  padding-left: 38px;
}
.nx-service-page__body ol li::before {
  content: counter(nxol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 6px;
  font-family: var(--nx-font-mono);
  font-size: 0.78rem;
  color: var(--nx-color-accent);
  letter-spacing: 0.06em;
}

/* Restore default list rendering inside Elementor widgets so their own icons
   (Icon List checkmarks, etc.) don't collide with our gradient bullet. */
.nx-service-page__body [class*="elementor-widget"] ul,
.nx-service-page__body [class*="elementor-widget"] ol {
  display: block;
  grid-template-columns: none;
  gap: 0;
  padding-left: revert;
  list-style: revert;
  margin: revert;
}
.nx-service-page__body [class*="elementor-widget"] ul li,
.nx-service-page__body [class*="elementor-widget"] ol li {
  position: revert;
  padding: revert;
}
.nx-service-page__body [class*="elementor-widget"] ul li::before,
.nx-service-page__body [class*="elementor-widget"] ol li::before {
  content: none;
  display: none;
}
.nx-service-page__body p {
  margin: 0 0 1em;
}

/* Related services */
.nx-service-page__related {
  background:
    radial-gradient(at 20% 20%, rgba(107, 79, 255, 0.06) 0%, transparent 55%),
    radial-gradient(at 80% 80%, rgba(15, 191, 164, 0.05) 0%, transparent 60%);
}
.nx-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.nx-related__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(10, 15, 36, 0.08);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.nx-related__card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 79, 255, 0.35);
  box-shadow: 0 24px 50px -28px rgba(10, 15, 36, 0.18);
}
.nx-related__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(107, 79, 255, 0.08),
    rgba(15, 191, 164, 0.08)
  );
}
.nx-related__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nx-related__card:hover .nx-related__media img {
  transform: scale(1.05);
}
.nx-related__placeholder {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(107, 79, 255, 0.5);
}
.nx-related__arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--nx-color-accent);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px -8px rgba(10, 15, 36, 0.18);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.25s ease,
    color 0.25s ease;
}
.nx-related__card:hover .nx-related__arrow {
  background: var(--nx-color-accent);
  color: #fff;
  transform: translate(2px, -2px);
}
.nx-related__body {
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nx-related__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--nx-color-text);
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.nx-related__excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--nx-color-muted);
}
.nx-related__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--nx-color-accent);
  letter-spacing: 0.01em;
  transition: gap 0.25s ease;
}
.nx-related__more::after {
  content: "→";
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nx-related__card:hover .nx-related__more {
  gap: 8px;
}
.nx-related__card:hover .nx-related__more::after {
  transform: translateX(2px);
}

/* ============================================================
   12b. Projects archive + single
   ============================================================ */

/* Archive hero */
.nx-projects-hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 36px);
  background:
    radial-gradient(at 20% 20%, rgba(107, 79, 255, 0.06) 0%, transparent 55%),
    radial-gradient(at 80% 80%, rgba(15, 191, 164, 0.05) 0%, transparent 60%);
}
.nx-projects-hero .nx-page-title {
  background: linear-gradient(
    180deg,
    var(--nx-color-text) 0%,
    rgba(10, 15, 36, 0.78) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Filter pills */
.nx-projects__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(10, 15, 36, 0.08);
  border-radius: 999px;
  align-self: flex-start;
  width: fit-content;
}
.nx-projects__filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nx-color-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.nx-projects__filters button span {
  font-family: var(--nx-font-mono);
  font-size: 0.72rem;
  color: var(--nx-color-muted);
  background: rgba(10, 15, 36, 0.06);
  padding: 2px 7px;
  border-radius: 999px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.nx-projects__filters button:hover {
  color: var(--nx-color-text);
  background: rgba(10, 15, 36, 0.04);
}
.nx-projects__filters button.is-active {
  background: var(--nx-color-text);
  color: #fff;
}
.nx-projects__filters button.is-active span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Grid */
.nx-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.nx-projects__item {
  display: flex;
}

/* Card */
.nx-project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(10, 15, 36, 0.08);
  border-radius: 20px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}
.nx-project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(107, 79, 255, 0.3);
  box-shadow: 0 32px 60px -28px rgba(10, 15, 36, 0.22);
}

.nx-project-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(107, 79, 255, 0.08),
    rgba(15, 191, 164, 0.08)
  );
}
.nx-project-card__img,
.nx-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.nx-project-card:hover .nx-project-card__media img {
  transform: scale(1.05);
}
.nx-project-card__placeholder {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(107, 79, 255, 0.55);
}
.nx-project-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--nx-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--nx-color-text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nx-project-card__arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--nx-color-accent);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px -8px rgba(10, 15, 36, 0.18);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    color 0.25s ease;
}
.nx-project-card:hover .nx-project-card__arrow {
  opacity: 1;
  transform: translate(0, 0);
  background: var(--nx-color-accent);
  color: #fff;
}

.nx-project-card__body {
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nx-project-card__title {
  margin: 0;
  font-family: var(--nx-font-heading);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--nx-color-text);
}
.nx-project-card__meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--nx-color-muted);
  line-height: 1.5;
}
.nx-project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.nx-project-card__stack li {
  font-family: var(--nx-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 15, 36, 0.05);
  color: var(--nx-color-text);
}

/* Single project — premium hero */
.nx-project-single {
  position: relative;
  overflow-x: clip;
}
.nx-project-single__hero {
  position: relative;
  padding: clamp(56px, 8vw, 120px) 0 clamp(28px, 4vw, 56px);
  text-align: center;
  isolation: isolate;
}
.nx-project-single__hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(at 20% 25%, rgba(107, 79, 255, 0.1) 0%, transparent 55%),
    radial-gradient(at 80% 30%, rgba(15, 191, 164, 0.08) 0%, transparent 60%),
    radial-gradient(at 50% 100%, rgba(46, 141, 245, 0.07) 0%, transparent 70%);
}
.nx-project-single__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.5;
}
.nx-project-single__orb--a {
  width: 360px;
  height: 360px;
  top: -80px;
  left: -100px;
  background: radial-gradient(
    circle,
    rgba(107, 79, 255, 0.45),
    transparent 70%
  );
}
.nx-project-single__orb--b {
  width: 320px;
  height: 320px;
  top: 40px;
  right: -80px;
  background: radial-gradient(circle, rgba(15, 191, 164, 0.4), transparent 70%);
}
.nx-project-single__hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 920px;
}
.nx-project-single__hero-tags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.nx-project-single__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(107, 79, 255, 0.14),
    rgba(15, 191, 164, 0.12)
  );
  border: 1px solid rgba(107, 79, 255, 0.18);
  color: var(--nx-color-text);
  font-family: var(--nx-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nx-project-single__chip--ghost {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(10, 15, 36, 0.1);
  color: var(--nx-color-muted);
  text-transform: none;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.nx-project-single__title {
  margin: 4px 0 0;
  font-family: var(--nx-font-heading);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.02;
  color: var(--nx-color-text);
  background: linear-gradient(
    180deg,
    var(--nx-color-text) 0%,
    rgba(10, 15, 36, 0.72) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}
.nx-project-single__lede {
  margin: 0;
  max-width: 65ch;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: var(--nx-color-muted);
  text-wrap: pretty;
}
.nx-project-single__crumbs {
  margin-top: 4px;
}
.nx-project-single__crumbs .breadcrumbs {
  justify-content: center;
}

/* Facts strip */
.nx-project-single__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 18px 22px;
  list-style: none;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(10, 15, 36, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nx-project-single__facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.nx-project-single__fact-label {
  font-family: var(--nx-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nx-color-muted);
}
.nx-project-single__facts strong,
.nx-project-single__facts a {
  font-family: var(--nx-font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--nx-color-text);
  text-decoration: none;
  letter-spacing: -0.005em;
}
.nx-project-single__facts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nx-color-accent);
  transition: gap 0.25s ease;
}
.nx-project-single__facts a:hover {
  gap: 10px;
}

/* Cover — floating, framed, with subtle rim */
.nx-project-single__cover {
  margin: clamp(12px, 2vw, 28px) 0 0;
  padding: 0;
}
.nx-project-single__cover .nx-container {
  display: flex;
  justify-content: center;
}
.nx-project-single__cover-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.nx-project-single__cover-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}

/* Content body + sidebar layout */
.nx-project-single__content {
  padding-top: clamp(48px, 6vw, 96px);
}
.nx-project-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.nx-project-single__body {
  max-width: 760px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--nx-color-text);
}

/* Sidebar */
.nx-project-single__sidebar {
  position: relative;
  min-width: 0;
}
.nx-project-single__sidebar-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nx-side-card {
  position: relative;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(10, 15, 36, 0.08);
  box-shadow: 0 24px 50px -32px rgba(10, 15, 36, 0.16);
  isolation: isolate;
}
.nx-side-card__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.nx-side-card__label {
  font-family: var(--nx-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nx-color-accent);
}
.nx-side-card__title {
  margin: 0;
  font-family: var(--nx-font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--nx-color-text);
}

/* Info list */
.nx-side-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.nx-side-card__list > li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(10, 15, 36, 0.06);
}
.nx-side-card__list > li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.nx-side-card__list > li:first-child {
  padding-top: 0;
}
.nx-side-card__k {
  font-family: var(--nx-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nx-color-muted);
}
.nx-side-card__v {
  font-size: 0.95rem;
  color: var(--nx-color-text);
  font-weight: 500;
}
.nx-side-card__v a {
  color: var(--nx-color-accent);
  text-decoration: none;
  font-weight: 600;
}
.nx-side-card__v a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nx-side-card__li--tags {
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}
.nx-side-card__tags {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nx-side-card__tags a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(107, 79, 255, 0.08);
  border: 1px solid rgba(107, 79, 255, 0.18);
  color: var(--nx-color-accent);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}
.nx-side-card__tags a:hover {
  background: var(--nx-color-accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Share buttons */
.nx-side-card__share {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.nx-side-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(10, 15, 36, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--nx-color-text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.nx-side-share svg {
  flex-shrink: 0;
  color: var(--nx-color-muted);
  transition: color 0.25s ease;
}
.nx-side-share:hover {
  transform: translateY(-1px);
  border-color: var(--nx-color-accent);
  background: var(--nx-color-accent);
  color: #fff;
}
.nx-side-share:hover svg {
  color: #fff;
}
.nx-side-share--copy {
  font-family: inherit;
  width: 100%;
  grid-column: 1 / -1;
  justify-content: center;
}
.nx-side-share--copy.is-copied {
  background: var(--nx-color-aurora);
  color: #fff;
  border-color: var(--nx-color-aurora);
}
.nx-side-share--copy.is-copied svg {
  color: #fff;
}

/* Sidebar CTA card */
.nx-side-card--cta {
  background: linear-gradient(
    135deg,
    rgba(107, 79, 255, 0.95),
    rgba(15, 191, 164, 0.9)
  );
  border-color: transparent;
  color: #fff;
  overflow: hidden;
}
.nx-side-card--cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(at 20% 100%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.nx-side-card--cta > * {
  position: relative;
  z-index: 1;
}
.nx-side-card--cta .nx-side-card__label {
  color: rgba(255, 255, 255, 0.85);
}
.nx-side-cta__title {
  margin: 6px 0 6px;
  font-family: var(--nx-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
}
.nx-side-cta__desc {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.nx-side-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: #fff;
  border-radius: 999px;
  color: var(--nx-color-accent);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition:
    gap 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}
.nx-side-cta__btn:hover {
  gap: 12px;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -16px rgba(10, 15, 36, 0.4);
}
.nx-project-single__body > * {
  animation-fill-mode: both;
}
.nx-project-single__body h2 {
  margin: 1.8em 0 0.55em;
  font-family: var(--nx-font-heading);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.15;
  color: var(--nx-color-text);
}
.nx-project-single__body h2:first-child {
  margin-top: 0;
}
.nx-project-single__body h3 {
  margin: 1.5em 0 0.5em;
  font-family: var(--nx-font-heading);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--nx-color-text);
}
.nx-project-single__body p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}
.nx-project-single__body a {
  color: var(--nx-color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(107, 79, 255, 0.35);
  transition: text-decoration-color 0.25s ease;
}
.nx-project-single__body a:hover {
  text-decoration-color: var(--nx-color-accent);
}
.nx-project-single__body img,
.nx-project-single__body figure {
  margin: 1.6em 0;
  border-radius: 18px;
  overflow: hidden;
}
.nx-project-single__body img {
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0 30px 60px -30px rgba(10, 15, 36, 0.2);
}
.nx-project-single__body blockquote {
  position: relative;
  margin: 1.8em 0;
  padding: 28px 32px 28px 56px;
  background: linear-gradient(
    135deg,
    rgba(107, 79, 255, 0.06),
    rgba(15, 191, 164, 0.04)
  );
  border: 1px solid rgba(10, 15, 36, 0.06);
  border-radius: 18px;
  font-family: var(--nx-font-heading);
  font-size: 1.18rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  color: var(--nx-color-text);
  letter-spacing: -0.005em;
}
.nx-project-single__body blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 6px;
  font-family: var(--nx-font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--nx-color-accent);
  opacity: 0.5;
}
.nx-project-single__body ul,
.nx-project-single__body ol {
  padding-left: 1.4em;
  margin: 1em 0 1.4em;
}
.nx-project-single__body ul li,
.nx-project-single__body ol li {
  margin: 0.4em 0;
}
.nx-project-single__body ul li::marker {
  color: var(--nx-color-accent);
}
.nx-project-single__body hr {
  border: 0;
  height: 1px;
  margin: 2.4em auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(10, 15, 36, 0.18),
    transparent
  );
  max-width: 320px;
}

/* Tags pills */
.nx-project-single__tags {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 3em 0 0;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(10, 15, 36, 0.06);
  border-radius: 16px;
}
.nx-project-single__tags-label {
  font-family: var(--nx-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nx-color-muted);
}
.nx-project-single__tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nx-project-single__tags a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(107, 79, 255, 0.08);
  border: 1px solid rgba(107, 79, 255, 0.18);
  color: var(--nx-color-accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}
.nx-project-single__tags a:hover {
  background: var(--nx-color-accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Prev / Next nav — with thumbnails */
.nx-project-nav {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgba(10, 15, 36, 0.06);
}
.nx-project-nav__head {
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.nx-project-nav__head h2 {
  margin: 0;
  font-family: var(--nx-font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--nx-color-text);
}
.nx-project-nav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.nx-project-nav__link {
  display: grid;
  gap: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 15, 36, 0.08);
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
  align-items: center;
}
.nx-project-nav__link.is-prev {
  grid-template-columns: 140px 1fr;
  text-align: left;
}
.nx-project-nav__link.is-next {
  grid-template-columns: 1fr 140px;
  text-align: right;
}
.nx-project-nav__link:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 79, 255, 0.28);
  box-shadow: 0 30px 60px -28px rgba(10, 15, 36, 0.22);
}
.nx-project-nav__media {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(107, 79, 255, 0.1),
    rgba(15, 191, 164, 0.08)
  );
}
.nx-project-nav__media img,
.nx-project-nav__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.nx-project-nav__link:hover .nx-project-nav__img {
  transform: scale(1.06);
}
.nx-project-nav__placeholder {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(107, 79, 255, 0.06) 0,
    rgba(107, 79, 255, 0.06) 8px,
    transparent 8px,
    transparent 16px
  );
}
.nx-project-nav__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 6px 14px;
}
.nx-project-nav__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--nx-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nx-color-muted);
  transition:
    color 0.25s ease,
    gap 0.25s ease;
}
.nx-project-nav__link.is-next .nx-project-nav__eyebrow {
  justify-content: flex-end;
}
.nx-project-nav__link:hover .nx-project-nav__eyebrow {
  color: var(--nx-color-accent);
  gap: 10px;
}
.nx-project-nav__title {
  font-family: var(--nx-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--nx-color-text);
  letter-spacing: -0.01em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Related grid */
.nx-project-related {
  position: relative;
  background:
    radial-gradient(at 15% 20%, rgba(107, 79, 255, 0.06) 0%, transparent 55%),
    radial-gradient(at 85% 80%, rgba(15, 191, 164, 0.05) 0%, transparent 60%);
}
.nx-project-related__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.nx-project-related__head h2 {
  margin: 8px 0 0;
  font-family: var(--nx-font-heading);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--nx-color-text);
}
.nx-project-related__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(10, 15, 36, 0.1);
  color: var(--nx-color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    gap 0.25s ease;
}
.nx-project-related__more svg {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nx-project-related__more:hover {
  background: var(--nx-color-accent);
  color: #fff;
  border-color: var(--nx-color-accent);
  gap: 12px;
}
.nx-project-related__more:hover svg {
  transform: translateX(2px);
}

/* Archive empty state */
.nx-projects-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(10, 15, 36, 0.15);
  border-radius: 22px;
}
.nx-projects-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(107, 79, 255, 0.12),
    rgba(15, 191, 164, 0.12)
  );
  color: var(--nx-color-accent);
}
.nx-projects-empty h2 {
  margin: 0;
  font-family: var(--nx-font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--nx-color-text);
}
.nx-projects-empty p {
  margin: 0;
  color: var(--nx-color-muted);
  line-height: 1.55;
  max-width: 42ch;
}
.nx-projects-empty .nx-btn {
  margin-top: 8px;
}

/* 13. Responsive ------------------------------------------ */
@media (max-width: 1100px) {
  .nx-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .nx-hero__visual {
    max-width: var(--nx-hero-img-w, 680px);
    margin: 0 auto;
  }
  .nx-about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nx-cta__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nx-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .nx-contact {
    grid-template-columns: 1fr;
  }
  .nx-work__card {
    grid-column: span 12;
  }
}

@media (max-width: 820px) {
  .nx-header__nav {
    display: none;
  }
  .nx-burger {
    display: inline-flex;
  }
  .nx-header__cta {
    display: none;
  }
  .nx-header__inner {
    padding: 8px 8px 8px 16px;
    max-width: calc(100% - 16px);
  }
  .nx-header.is-scrolled .nx-header__inner {
    max-width: calc(100% - 32px);
  }
  .site-brand .custom-logo,
  .site-brand .custom-logo-link img,
  .nx-header__brand .custom-logo,
  .nx-header__brand .custom-logo-link img {
    max-width: var(--nx-logo-w-mobile, 120px) !important;
  }
  .nx-hero {
    margin-top: clamp(16px, 3vw, 24px);
    padding: clamp(40px, 10vw, 60px) 0 0;
    border-radius: 18px;
  }
  .nx-hero__image {
    max-height: var(--nx-hero-img-h-mobile, 480px);
  }
  .nx-hero__meta {
    gap: 24px;
  }
  .nx-cta__form {
    grid-template-columns: 1fr;
  }
  .nx-field--full,
  .nx-cta__form-actions {
    grid-column: span 1;
  }
  .nx-contact__form {
    grid-template-columns: 1fr;
  }
  .nx-contact__actions {
    grid-column: span 1;
  }
  .nx-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .nx-footer__brand {
    grid-column: span 2;
  }
  .nx-section__head--row {
    flex-direction: column;
    align-items: flex-start;
  }
  .nx-process__list {
    grid-template-columns: 1fr;
  }
  .nx-totop {
    bottom: 16px;
    right: 16px;
  }
}

@media (max-width: 540px) {
  :root {
    --nx-section-y: 64px;
  }
  .nx-hero__image {
    max-height: calc(var(--nx-hero-img-h-mobile, 480px) * 0.85);
  }
  .nx-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nx-footer__brand {
    grid-column: auto;
  }
  .nx-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .nx-marquee__list {
    font-size: 1.2rem;
    gap: 24px;
  }
  .nx-page-hero {
    padding: 32px 0;
  }
}

/* Projects archive + single — responsive */
@media (max-width: 1024px) {
  .nx-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .nx-project-single__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nx-project-single__sidebar-sticky {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }
  .nx-project-single__sidebar-sticky > * {
    flex: 1 1 280px;
  }
}
@media (max-width: 720px) {
  .nx-projects__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .nx-projects__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    border-radius: 14px;
    padding: 6px;
    scrollbar-width: thin;
  }
  .nx-projects__filters button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .nx-project-single__layout {
    grid-template-columns: 1fr;
  }
  .nx-project-single__sidebar-sticky {
    position: static;
  }
  .nx-project-single__facts {
    grid-template-columns: 1fr 1fr;
    padding: 16px 18px;
  }
  .nx-project-nav__grid {
    grid-template-columns: 1fr;
  }
  .nx-project-nav__link {
    padding: 14px;
  }
  .nx-project-nav__link.is-prev,
  .nx-project-nav__link.is-next {
    grid-template-columns: 100px 1fr;
    text-align: left;
  }
  .nx-project-nav__link.is-next .nx-project-nav__media {
    order: -1;
  }
  .nx-project-nav__link.is-next .nx-project-nav__eyebrow {
    justify-content: flex-start;
  }
  .nx-project-nav__link.is-next {
    text-align: left;
  }
  .nx-project-single__cover-frame {
    border-radius: 20px;
    padding: 4px;
  }
  .nx-project-single__cover-frame img {
    border-radius: 16px;
  }
  .nx-project-single__orb {
    display: none;
  }
  .nx-project-related__head {
    flex-direction: column;
    align-items: flex-start;
  }
}
