/* ==========================================================================
   Engineering family — section hubs for Software, Automation (+ n8n),
   Cloud & DevOps and Commerce.

   One idea: these pages sell systems, so each one shows a system. Every hero
   object is a real diagram in HTML/SVG (never an image); sections are chosen
   from architecture layers, sticky storytelling, timelines, comparisons and
   a bento of the section's child pages. Prefix: nxe-.

   Rules kept here: transform/opacity are the only animated properties; any
   pre-animation state is gated behind html.nxe-motion (added by
   assets/js/fam/engineering.js, never under reduced motion); diagrams mirror
   in RTL where they read as a sequence.
   ========================================================================== */

/* ---------- Shared bits ---------- */
.nxe-mono {
  font-family: var(--nx-font-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
}
.nxe-ill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .26rem .55rem; border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .16);
  font-family: var(--nx-font-mono); font-size: .6rem; font-style: normal; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(238, 243, 250, .62);
  white-space: nowrap;
}
.nxe-ill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--nx-teal); }
[dir="rtl"] .nxe-ill, [dir="rtl"] .nxe-mono { letter-spacing: 0; font-family: var(--nx-font); font-size: .7rem; }

/* Hero: the copy column stays a column; the visual sits beside it. */
.nxe-hero .nx-page-hero__grid { align-items: center; }
.nxe-hero .nx-lead { max-width: 36rem; }
@media (max-width: 992px) {
  .nxe-hero .nx-page-hero__visual { margin-top: .6rem; }
}

/* ---------- Figure frame (every hero object sits in one) ---------- */
.nxe-fig {
  position: relative; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--nx-radius-lg);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .012) 60%),
    rgba(1, 12, 34, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.nxe-fig::before {             /* corner registration marks: the "drawing" feel */
  content: ''; position: absolute; inset: 10px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--nx-teal), var(--nx-teal)) top left / 10px 1px no-repeat,
    linear-gradient(var(--nx-teal), var(--nx-teal)) top left / 1px 10px no-repeat,
    linear-gradient(var(--nx-teal), var(--nx-teal)) bottom right / 10px 1px no-repeat,
    linear-gradient(var(--nx-teal), var(--nx-teal)) bottom right / 1px 10px no-repeat;
  opacity: .5;
}
.nxe-fig__bar {
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--nx-hair-dark);
  font-family: var(--nx-font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(238, 243, 250, .58);
}
.nxe-fig__bar b { color: var(--nx-teal); font-weight: 500; }
.nxe-fig__bar .nxe-ill { margin-inline-start: auto; }
[dir="rtl"] .nxe-fig__bar { letter-spacing: 0; font-family: var(--nx-font); font-size: .74rem; }
.nxe-fig__body { position: relative; padding: clamp(1rem, .7rem + 1.2vw, 1.6rem); }
.nxe-fig__body--grid {
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px);
  background-size: 18px 18px; background-position: 9px 9px;
}
.nxe-fig__foot {
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center;
  padding: .8rem 1.1rem; border-top: 1px solid var(--nx-hair-dark);
  font-family: var(--nx-font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(238, 243, 250, .55);
}
.nxe-fig__foot span { display: inline-flex; align-items: center; gap: .45rem; }
.nxe-fig__foot span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--nx-teal); box-shadow: 0 0 0 3px rgba(0, 219, 178, .15); }
[dir="rtl"] .nxe-fig__foot { letter-spacing: 0; font-family: var(--nx-font); font-size: .74rem; }

/* ---------- Graph: HTML nodes over an SVG of wires ----------
   Coordinates live in the SVG viewBox; nodes are placed at the same points
   as percentages, so the drawing scales as one piece. Node type scales with
   the container (cqi) so it never collides at 320px. In RTL the wires are
   mirrored and inset-inline-start mirrors the nodes with them. */
.nxe-graph { position: relative; width: 100%; container-type: inline-size; }
.nxe-graph__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
[dir="rtl"] .nxe-graph__wires { transform: scaleX(-1); }
.nxe-w { fill: none; stroke: rgba(255, 255, 255, .24); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.nxe-w--hot { stroke: rgba(0, 219, 178, .7); }
.nxe-w--blue { stroke: rgba(0, 140, 254, .75); }
.nxe-w--dash { stroke-dasharray: 4 5; stroke: rgba(255, 255, 255, .26); }
.nxe-dot { fill: var(--nx-teal); }
.nxe-dot--blue { fill: #5DBBFF; }
.nxe-halo { fill: rgba(0, 219, 178, .22); }
@media (prefers-reduced-motion: reduce) { .nxe-dot, .nxe-halo { display: none; } }

.nxe-gn {
  --tx: -50%;
  position: absolute; z-index: 2;
  inset-inline-start: var(--x); top: var(--y);
  translate: var(--tx) -50%;
  display: inline-flex; align-items: center; gap: .55em;
  padding: .55em .8em .55em .55em;
  border-radius: .8em;
  background: rgba(4, 18, 44, .94);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .9);
  font-size: clamp(.56rem, 2.15cqi, .8rem);
  line-height: 1.15; white-space: nowrap; color: #fff;
  transition: border-color .4s var(--nx-ease), transform .4s var(--nx-ease);
}
[dir="rtl"] .nxe-gn { --tx: 50%; padding: .55em .55em .55em .8em; }
.nxe-gn:hover { border-color: rgba(0, 219, 178, .6); transform: translateY(-2px); }
.nxe-gn i {
  flex: none; display: grid; place-items: center;
  width: 2.2em; height: 2.2em; border-radius: .6em;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  color: var(--nx-teal);
}
.nxe-gn i svg { width: 1.15em; height: 1.15em; }
.nxe-gn b { display: block; font-weight: 600; letter-spacing: -.01em; }
.nxe-gn small {
  display: block; margin-top: .2em;
  font-family: var(--nx-font-mono); font-size: .78em; letter-spacing: .06em;
  color: rgba(238, 243, 250, .55);
}
[dir="rtl"] .nxe-gn small { font-family: var(--nx-font); letter-spacing: 0; }
.nxe-gn--hub {
  padding: .8em 1.1em .8em .8em; font-size: clamp(.62rem, 2.5cqi, .92rem);
  background:
    linear-gradient(rgba(4, 22, 54, .96), rgba(4, 22, 54, .96)) padding-box,
    linear-gradient(135deg, var(--nx-blue), var(--nx-teal)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 0 6px rgba(0, 140, 254, .08), 0 20px 50px -20px rgba(0, 140, 254, .55);
}
.nxe-gn--hub i { background: var(--nx-grad); color: #04121f; border-color: transparent; }
.nxe-gn--ai i { color: #9BD3FF; border-color: rgba(0, 140, 254, .45); background: rgba(0, 140, 254, .16); }
.nxe-gn--muted { border-style: dashed; background: rgba(4, 18, 44, .88); color: rgba(238, 243, 250, .82); }
.nxe-gn--muted i { color: rgba(238, 243, 250, .6); }
.nxe-gn--tag { padding: .35em .65em; border-radius: 100px; font-family: var(--nx-font-mono); font-size: clamp(.5rem, 1.75cqi, .66rem); letter-spacing: .08em; text-transform: uppercase; color: rgba(238, 243, 250, .7); background: rgba(1, 12, 34, .9); }
[dir="rtl"] .nxe-gn--tag { font-family: var(--nx-font); letter-spacing: 0; font-size: clamp(.56rem, 2cqi, .74rem); }
@media (max-width: 420px) { .nxe-gn small { display: none; } }

/* the pulse ring around a hub */
.nxe-gn--hub::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(0, 219, 178, .5);
  animation: nxe-ring 3.2s var(--nx-ease) infinite;
}
@keyframes nxe-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35, 1.7); } }

/* ---------- Software · layered architecture (hero) ---------- */
.nxe-stack { display: grid; gap: 0; }
.nxe-layer {
  position: relative;
  display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 1rem; align-items: center;
  padding: .95rem 1rem;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  transition: border-color .5s var(--nx-ease), background .5s var(--nx-ease);
}
.nxe-layer::after {         /* the scan: a soft highlight that walks down the stack */
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(0, 219, 178, .55);
  background: linear-gradient(90deg, rgba(0, 219, 178, .08), transparent 70%);
  opacity: 0;
  animation: nxe-scan 9s var(--nx-ease-in-out) infinite;
}
[dir="rtl"] .nxe-layer::after { background: linear-gradient(270deg, rgba(0, 219, 178, .08), transparent 70%); }
.nxe-layer:nth-child(3)::after { animation-delay: 1.5s; }
.nxe-layer:nth-child(5)::after { animation-delay: 3s; }
.nxe-layer:nth-child(7)::after { animation-delay: 4.5s; }
@keyframes nxe-scan { 0%, 4% { opacity: 0; } 9%, 18% { opacity: 1; } 26%, 100% { opacity: 0; } }
.nxe-layer:hover { border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .055); }
.nxe-layer__k { display: grid; gap: .25rem; }
.nxe-layer__k em {
  font-style: normal; font-family: var(--nx-font-mono); font-size: .6rem; letter-spacing: .14em;
  color: var(--nx-teal);
}
.nxe-layer__k b { font-family: var(--nx-font-display); font-size: .98rem; font-weight: 600; color: #fff; letter-spacing: -.015em; }
.nxe-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.nxe-chips span {
  padding: .38rem .62rem; border-radius: 7px;
  background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .11);
  font-size: .76rem; font-weight: 500; color: rgba(238, 243, 250, .88); white-space: nowrap;
}
.nxe-chips span.is-key { background: rgba(0, 140, 254, .15); border-color: rgba(0, 140, 254, .4); color: #CBE8FF; }
.nxe-bus-v {                 /* the vertical links between layers */
  position: relative; height: 22px;
  display: flex; justify-content: space-around; padding-inline: 22% 12%;
}
.nxe-bus-v i { position: relative; width: 1px; height: 100%; background: rgba(255, 255, 255, .16); overflow: hidden; }
.nxe-bus-v i::after {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 9px;
  background: linear-gradient(180deg, transparent, var(--nx-teal), transparent);
  animation: nxe-drop 1.8s linear infinite;
}
.nxe-bus-v i:nth-child(2)::after { animation-delay: .6s; animation-direction: reverse; }
.nxe-bus-v i:nth-child(3)::after { animation-delay: 1.2s; }
@keyframes nxe-drop { from { transform: translateY(-10px); } to { transform: translateY(24px); } }
.nxe-runs {
  margin-top: .9rem; padding: .7rem 1rem; border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, .16);
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .9rem;
  font-family: var(--nx-font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(238, 243, 250, .55);
}
.nxe-runs b { color: rgba(238, 243, 250, .9); font-weight: 500; letter-spacing: .04em; text-transform: none; font-size: .74rem; }
[dir="rtl"] .nxe-runs { letter-spacing: 0; font-family: var(--nx-font); font-size: .74rem; }
@media (max-width: 480px) {
  .nxe-layer { grid-template-columns: 1fr; gap: .6rem; }
}
/* entrance (motion only) */
.nxe-motion .nxe-stack > .nxe-layer, .nxe-motion .nxe-stack > .nxe-bus-v, .nxe-motion .nxe-runs {
  animation: nxe-rise .8s var(--nx-ease) both;
}
.nxe-motion .nxe-stack > :nth-child(3) { animation-delay: .12s; }
.nxe-motion .nxe-stack > :nth-child(5) { animation-delay: .24s; }
.nxe-motion .nxe-stack > :nth-child(7) { animation-delay: .36s; }
.nxe-motion .nxe-runs { animation-delay: .48s; }
/* the scan keeps its own animation; the rise sits on the layer itself */
.nxe-motion .nxe-stack > .nxe-layer::after { animation: nxe-scan 9s var(--nx-ease-in-out) 1.2s infinite; }
.nxe-motion .nxe-stack > .nxe-layer:nth-child(3)::after { animation-delay: 2.7s; }
.nxe-motion .nxe-stack > .nxe-layer:nth-child(5)::after { animation-delay: 4.2s; }
.nxe-motion .nxe-stack > .nxe-layer:nth-child(7)::after { animation-delay: 5.7s; }
@keyframes nxe-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Architecture rows (software capabilities by layer) ---------- */
.nxe-arch { position: relative; display: grid; gap: 0; }
.nxe-arch__row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: clamp(1rem, .6rem + 2vw, 2.6rem);
  padding-block: clamp(1.2rem, .9rem + 1vw, 1.8rem);
  border-top: 1px solid var(--nx-hair-dark);
}
.nxe-arch__row:last-child { border-bottom: 1px solid var(--nx-hair-dark); }
.nxe-arch__label { position: relative; padding-inline-start: 1.6rem; align-self: start; padding-top: .3rem; }
.nxe-arch__label::before {   /* node on the spine */
  content: ''; position: absolute; inset-inline-start: 0; top: .55rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--nx-navy-deep); border: 1.5px solid var(--nx-teal);
  box-shadow: 0 0 0 4px rgba(0, 219, 178, .12);
}
.nxe-arch__label em {
  display: block; font-style: normal; font-family: var(--nx-font-mono); font-size: .66rem;
  letter-spacing: .16em; color: var(--nx-teal); margin-bottom: .35rem;
}
.nxe-arch__label b { display: block; font-family: var(--nx-font-display); font-size: clamp(1.25rem, 1.05rem + .7vw, 1.65rem); font-weight: 600; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.nxe-arch::before {          /* the spine through every layer */
  content: ''; position: absolute; inset-inline-start: 4px; top: 2.2rem; bottom: 2.2rem; width: 1px;
  background: linear-gradient(180deg, var(--nx-teal), rgba(0, 140, 254, .5) 60%, transparent);
  opacity: .5;
}
.nxe-arch__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.7rem, .5rem + .7vw, 1.1rem); }
.nxe-arch__tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nxe-arch .nx-tile { min-height: 0; }
.nxe-arch .nx-tile.is-page { border-color: rgba(0, 219, 178, .22); }
.nxe-arch .nx-tile.is-page::after {
  content: ''; position: absolute; top: 1.1rem; inset-inline-end: 1.1rem; width: 15px; height: 15px;
  background: currentColor; color: rgba(0, 219, 178, .7);
  -webkit-mask: var(--nx-arrow) center / contain no-repeat; mask: var(--nx-arrow) center / contain no-repeat;
  transform: rotate(-45deg); transition: transform .35s var(--nx-ease);
}
[dir="rtl"] .nxe-arch .nx-tile.is-page::after { transform: rotate(-135deg); }
.nxe-arch .nx-tile.is-page:hover::after { transform: rotate(0); }
[dir="rtl"] .nxe-arch .nx-tile.is-page:hover::after { transform: rotate(180deg); }
@media (max-width: 1100px) { .nxe-arch__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .nxe-arch__row { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 600px) { .nxe-arch__tiles, .nxe-arch__tiles--2 { grid-template-columns: 1fr; } }

/* ---------- Sticky storytelling ---------- */
.nxe-story {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 4vw, 5.5rem); align-items: start;
}
.nxe-story__aside { position: sticky; top: 112px; }
.nxe-story__aside h2 { margin-bottom: 1rem; }
.nxe-story__steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: nxestep; }
.nxe-story__step {
  position: relative; counter-increment: nxestep;
  display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 1rem;
  padding-block: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem);
  border-top: 1px solid var(--nx-line-strong);
  color: var(--nx-body); font-size: 1.02rem; line-height: 1.6;
  transition: opacity .5s var(--nx-ease);
}
.nxe-story__step:last-child { border-bottom: 1px solid var(--nx-line-strong); }
.nxe-story__step::before {
  content: counter(nxestep, decimal-leading-zero);
  font-family: var(--nx-font-mono); font-size: .78rem; letter-spacing: .12em;
  color: var(--nx-muted); padding-top: .45rem;
  transition: color .4s var(--nx-ease);
}
.nxe-story__step strong {
  display: block; margin-bottom: .4rem;
  font-family: var(--nx-font-display); font-weight: 600;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); line-height: 1.12; letter-spacing: -.03em;
  color: var(--nx-text);
}
.nxe-story__step.is-active::before { color: var(--nx-blue-600); }
.nx-section--dark .nxe-story__step, .nx-section--deep .nxe-story__step { border-color: var(--nx-hair-dark); color: var(--nx-on-dark-mut); }
.nx-section--dark .nxe-story__step strong, .nx-section--deep .nxe-story__step strong { color: #fff; }
.nx-section--dark .nxe-story__step::before, .nx-section--deep .nxe-story__step::before { color: rgba(238, 243, 250, .45); }
.nx-section--dark .nxe-story__step.is-active::before, .nx-section--deep .nxe-story__step.is-active::before { color: var(--nx-teal); }
@media (max-width: 992px) {
  .nxe-story { grid-template-columns: 1fr; }
  .nxe-story__aside { position: static; }
}
@media (max-width: 560px) { .nxe-story__step { grid-template-columns: 1fr; gap: .4rem; } }

/* The readout panel in a story aside: one line per step, lit as it passes. */
.nxe-readout {
  margin-top: 2rem; border-radius: 16px; overflow: hidden;
  background: var(--nx-navy-deep); color: var(--nx-on-dark);
  box-shadow: 0 40px 70px -46px rgba(1, 17, 47, .7);
}
.nxe-readout .nxe-fig__bar { background: rgba(255, 255, 255, .02); }
.nxe-readout ol { list-style: none; margin: 0; padding: .6rem; display: grid; gap: .2rem; }
.nxe-readout li {
  display: grid; grid-template-columns: 1.6rem 1fr auto; align-items: center; gap: .7rem;
  padding: .55rem .7rem; border-radius: 9px;
  font-family: var(--nx-font-mono); font-size: .74rem; letter-spacing: .04em; color: rgba(238, 243, 250, .66);
  transition: background .4s var(--nx-ease), color .4s var(--nx-ease);
}
[dir="rtl"] .nxe-readout li { font-family: var(--nx-font); font-size: .86rem; letter-spacing: 0; }
.nxe-readout li span { color: rgba(238, 243, 250, .36); font-size: .66rem; }
.nxe-readout li i {
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(0, 219, 178, .5); color: var(--nx-teal);
}
.nxe-readout li i svg { width: 10px; height: 10px; }
.nxe-readout li.is-active { background: rgba(0, 219, 178, .1); color: #fff; }
.nxe-readout li.is-active i { background: var(--nx-teal); color: #04121f; }
@media (max-width: 992px) { .nxe-readout { display: none; } }

/* ---------- Ledger (stack, rows not cards) ---------- */
.nxe-ledger { display: grid; margin: 0; padding: 0; list-style: none; }
.nxe-ledger__row {
  display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(1rem, .6rem + 2vw, 3rem); align-items: start;
  padding-block: clamp(1.2rem, 1rem + .9vw, 1.8rem);
  border-top: 1px solid var(--nx-hair-dark);
  transition: background .4s var(--nx-ease);
}
.nxe-ledger__row:last-child { border-bottom: 1px solid var(--nx-hair-dark); }
.nxe-ledger__row:hover { background: linear-gradient(90deg, rgba(0, 219, 178, .05), transparent 60%); }
[dir="rtl"] .nxe-ledger__row:hover { background: linear-gradient(270deg, rgba(0, 219, 178, .05), transparent 60%); }
.nxe-ledger__row h3 { margin: 0; font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); letter-spacing: -.025em; }
.nxe-ledger__row h3 em { display: block; font-style: normal; font-family: var(--nx-font-mono); font-size: .64rem; letter-spacing: .16em; color: var(--nx-teal); margin-bottom: .45rem; font-weight: 500; }
.nxe-ledger__row p { margin: 0; font-size: .96rem; }
.nxe-ledger__row .nx-tags { justify-content: flex-start; }
.nxe-ledger .nx-tag { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); color: rgba(238, 243, 250, .85); }
@media (max-width: 900px) {
  .nxe-ledger__row { grid-template-columns: 1fr; gap: .7rem; }
}

/* ---------- Two-column FAQ ---------- */
.nxe-faq { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.nxe-faq .nx-head { position: sticky; top: 112px; }
@media (max-width: 900px) { .nxe-faq { grid-template-columns: 1fr; } .nxe-faq .nx-head { position: static; } }

/* ---------- Child-page bento ---------- */
.nxe-kids { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.7rem, .5rem + .8vw, 1.15rem); }
.nxe-kid {
  position: relative; overflow: hidden; isolation: isolate;
  grid-column: span 2;
  display: flex; flex-direction: column; gap: .6rem;
  min-height: 13.5rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.9rem);
  border: 1px solid var(--nx-line); border-radius: 16px; background: var(--nx-surface);
  color: var(--nx-text);
  transition: border-color .35s var(--nx-ease), transform .35s var(--nx-ease), box-shadow .35s var(--nx-ease);
}
.nxe-kid--wide { grid-column: span 3; }
.nxe-kid--full { grid-column: span 6; }
.nxe-kid:hover { border-color: var(--nx-blue); transform: translateY(-3px); box-shadow: var(--nx-shadow); }
.nxe-kid__path {
  font-family: var(--nx-font-mono); font-size: .64rem; letter-spacing: .1em; color: var(--nx-muted);
  direction: ltr; text-align: start; unicode-bidi: plaintext;
}
.nxe-kid__eyebrow { font-family: var(--nx-font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--nx-blue-600); }
[dir="rtl"] .nxe-kid__eyebrow { letter-spacing: 0; font-family: var(--nx-font); font-size: .78rem; }
.nxe-kid__title { font-family: var(--nx-font-display); font-weight: 600; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); letter-spacing: -.03em; line-height: 1.1; }
.nxe-kid__desc { color: var(--nx-body); font-size: .93rem; line-height: 1.55; max-width: min(34rem, 84%); }
.nxe-kid__go {
  margin-top: auto; padding-top: .6rem;
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .88rem; color: var(--nx-blue-600);
}
.nxe-kid__go svg { transition: transform .3s var(--nx-ease); }
[dir="rtl"] .nxe-kid__go svg, [dir="rtl"] .nxe-arrow { transform: scaleX(-1); }
.nxe-kid:hover .nxe-kid__go svg { transform: translateX(4px); }
[dir="rtl"] .nxe-kid:hover .nxe-kid__go svg { transform: scaleX(-1) translateX(4px); }
.nxe-kid__glyph {
  position: absolute; z-index: -1; inset-inline-end: -1.2rem; bottom: -1.4rem;
  width: 7.5rem; height: 7.5rem; color: var(--nx-blue);
  opacity: .09; transition: opacity .4s var(--nx-ease), transform .6s var(--nx-ease);
}
.nxe-kid:hover .nxe-kid__glyph { opacity: .2; transform: scale(1.06); }
.nxe-kid--dark { background: var(--nx-navy); border-color: var(--nx-navy); color: #fff; }
.nxe-kid--dark .nxe-kid__desc { color: var(--nx-on-dark-mut); }
.nxe-kid--dark .nxe-kid__path { color: rgba(238, 243, 250, .5); }
.nxe-kid--dark .nxe-kid__eyebrow, .nxe-kid--dark .nxe-kid__go { color: var(--nx-teal); }
.nxe-kid--dark .nxe-kid__glyph { color: var(--nx-teal); opacity: .16; }
.nxe-kid--dark:hover { border-color: var(--nx-teal); }
@media (max-width: 992px) {
  .nxe-kid, .nxe-kid--wide { grid-column: span 3; }
}
@media (max-width: 620px) {
  .nxe-kids { grid-template-columns: 1fr; }
  .nxe-kid, .nxe-kid--wide, .nxe-kid--full { grid-column: auto; min-height: 0; }
}

/* ---------- Timeline (horizontal on wide screens, vertical below) ---------- */
.nxe-tl { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(1rem, .6rem + 1.2vw, 2rem); }
.nxe-tl__rail, .nxe-tl__fill {
  position: absolute; top: 9px; height: 1px; inset-inline: 9px;
  background: var(--nx-hair-dark); pointer-events: none;
}
.nxe-tl__fill {
  background: linear-gradient(90deg, var(--nx-blue), var(--nx-teal));
  transform-origin: left center; transform: scaleX(var(--p, 1));
}
[dir="rtl"] .nxe-tl__fill { transform-origin: right center; background: linear-gradient(270deg, var(--nx-blue), var(--nx-teal)); }
.nxe-tl__item { position: relative; padding-top: 2.4rem; }
.nxe-tl__item::before {      /* station */
  content: ''; position: absolute; top: 0; inset-inline-start: 0;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--nx-navy); border: 1.5px solid rgba(255, 255, 255, .3);
  box-shadow: inset 0 0 0 4px var(--nx-navy);
  transition: background .4s var(--nx-ease), border-color .4s var(--nx-ease);
}
.nxe-tl__item.is-on::before, html:not(.nxe-motion) .nxe-tl__item::before { background: var(--nx-teal); border-color: var(--nx-teal); }
.nxe-tl__n { display: block; font-family: var(--nx-font-mono); font-size: .68rem; letter-spacing: .14em; color: var(--nx-teal); margin-bottom: .7rem; }
.nxe-tl__item h3, .nxe-tl__item > strong { display: block; margin: 0 0 .55rem; font-family: var(--nx-font-display); font-size: clamp(1.12rem, 1rem + .45vw, 1.38rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; color: #fff; }
.nxe-tl__item p { margin: 0; font-size: .9rem; line-height: 1.58; color: var(--nx-on-dark-mut); }
/* loop: the last station hands back to the first */
.nxe-tl__loop {
  margin-top: 1.8rem;
  display: flex; align-items: center; gap: .8rem;
  font-family: var(--nx-font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(238, 243, 250, .5);
}
[dir="rtl"] .nxe-tl__loop { letter-spacing: 0; font-family: var(--nx-font); font-size: .8rem; }
.nxe-tl__loop i { flex: 1; height: 14px; border: 1px dashed rgba(255, 255, 255, .22); border-top: 0; border-radius: 0 0 10px 10px; }
.nxe-tl__loop svg { flex: none; width: 16px; height: 16px; color: var(--nx-teal); }
/* light surfaces */
.nxe-tl--light .nxe-tl__rail { background: var(--nx-line-strong); }
.nxe-tl--light .nxe-tl__item::before { background: var(--nx-bg); border-color: var(--nx-line-strong); box-shadow: inset 0 0 0 4px var(--nx-bg); }
.nxe-tl--light .nxe-tl__item.is-on::before, html:not(.nxe-motion) .nxe-tl--light .nxe-tl__item::before { background: var(--nx-blue); border-color: var(--nx-blue); }
.nxe-tl--light .nxe-tl__n { color: var(--nx-blue-600); }
.nxe-tl--light .nxe-tl__item h3, .nxe-tl--light .nxe-tl__item > strong { color: var(--nx-text); }
.nxe-tl--light .nxe-tl__item p, .nxe-tl--light .nxe-tl__item > span:not(.nxe-tl__n) { display: block; color: var(--nx-body); font-size: .92rem; line-height: 1.58; }
@media (max-width: 1024px) {
  .nxe-tl { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .nxe-tl__rail, .nxe-tl__fill { top: 9px; bottom: 9px; height: auto; width: 1px; inset-inline: 9px auto; }
  .nxe-tl__fill { transform-origin: center top; transform: scaleY(var(--p, 1)); background: linear-gradient(180deg, var(--nx-blue), var(--nx-teal)); }
  [dir="rtl"] .nxe-tl__fill { transform-origin: center top; background: linear-gradient(180deg, var(--nx-blue), var(--nx-teal)); }
  .nxe-tl__item { padding: 0 0 2rem; padding-inline-start: 3rem; }
  .nxe-tl__item:last-of-type { padding-bottom: 0; }
  .nxe-tl__loop { margin-top: 1.4rem; padding-inline-start: 3rem; }
}
.nxe-tl--v { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
.nxe-tl--v .nxe-tl__rail, .nxe-tl--v .nxe-tl__fill { top: 9px; bottom: 9px; height: auto; width: 1px; inset-inline: 9px auto; }
.nxe-tl--v .nxe-tl__fill { transform-origin: center top; transform: scaleY(var(--p, 1)); background: linear-gradient(180deg, var(--nx-blue), var(--nx-teal)); }
.nxe-tl--v .nxe-tl__item { padding: 0 0 2.2rem; padding-inline-start: 3rem; }
.nxe-tl--v .nxe-tl__item:last-of-type { padding-bottom: 0; }

/* ---------- Automation · execution trace (the pipeline anatomy) ---------- */
.nxe-trace {
  position: relative; list-style: none; margin: 0; padding: clamp(1.2rem, .9rem + 1.2vw, 2rem);
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0;
  border: 1px solid rgba(255, 255, 255, .11); border-radius: var(--nx-radius-lg);
  background:
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 18px 18px,
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
}
.nxe-trace::before {         /* the wire through every node */
  content: ''; position: absolute; top: calc(clamp(1.2rem, .9rem + 1.2vw, 2rem) + 26px);
  inset-inline: 7%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(0, 140, 254, .55), rgba(0, 219, 178, .55));
}
[dir="rtl"] .nxe-trace::before { background: linear-gradient(270deg, rgba(0, 140, 254, .55), rgba(0, 219, 178, .55)); }
.nxe-trace::after {          /* the record travelling along it: a short comet on the wire */
  content: ''; position: absolute; top: calc(clamp(1.2rem, .9rem + 1.2vw, 2rem) + 26px);
  inset-inline-start: 7%; width: calc(86% / 6); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff);
  box-shadow: 0 0 14px 1px rgba(0, 219, 178, .6);
  animation: nxe-travel 6s var(--nx-ease-in-out) infinite;
}
[dir="rtl"] .nxe-trace { --nxe-dir: -1; }
[dir="rtl"] .nxe-trace::after { background: linear-gradient(270deg, transparent, #fff); }
@keyframes nxe-travel {
  0% { transform: translateX(0); opacity: 0; }
  8%, 90% { opacity: 1; }
  100% { transform: translateX(calc(500% * var(--nxe-dir, 1))); opacity: 0; }
}
.nxe-trace li {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem;
  padding-inline: .3rem;
}
.nxe-trace__ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--nx-navy-deep); border: 1px solid rgba(255, 255, 255, .16);
  color: var(--nx-teal); margin-bottom: .6rem;
  transition: transform .4s var(--nx-ease), border-color .4s var(--nx-ease);
}
.nxe-trace__ico svg { width: 22px; height: 22px; }
.nxe-trace li:hover .nxe-trace__ico { transform: translateY(-4px); border-color: var(--nx-teal); }
.nxe-trace li.is-hub .nxe-trace__ico { background: var(--nx-grad); color: #04121f; border-color: transparent; box-shadow: 0 0 0 6px rgba(0, 140, 254, .12), 0 18px 40px -16px rgba(0, 140, 254, .7); }
.nxe-trace b { display: block; color: #fff; font-size: .92rem; font-weight: 600; letter-spacing: -.01em; }
.nxe-trace span { display: block; font-family: var(--nx-font-mono); font-size: .66rem; letter-spacing: .08em; color: rgba(238, 243, 250, .55); }
.nxe-trace em {              /* the "logged" tick under each step */
  margin-top: .55rem; font-style: normal;
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--nx-font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(0, 219, 178, .8);
}
.nxe-trace em::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.nxe-trace__note {
  margin-top: 1.3rem; display: flex; gap: .8rem; align-items: flex-start;
  max-width: 52rem; font-size: .92rem; color: var(--nx-on-dark-mut);
}
.nxe-trace__note::before { content: ''; flex: none; margin-top: .55rem; width: 1.6rem; height: 1px; background: var(--nx-teal); }
@media (max-width: 900px) {
  .nxe-trace { grid-template-columns: 1fr; gap: .4rem; padding-inline-start: 1.2rem; }
  .nxe-trace::before { top: 2.2rem; bottom: 2.2rem; height: auto; width: 2px; inset-inline: calc(1.2rem + 26px) auto; background: linear-gradient(180deg, rgba(0, 140, 254, .55), rgba(0, 219, 178, .55)); }
  [dir="rtl"] .nxe-trace::before { background: linear-gradient(180deg, rgba(0, 140, 254, .55), rgba(0, 219, 178, .55)); }
  .nxe-trace::after { display: none; }
  .nxe-trace li { flex-direction: row; text-align: start; gap: .9rem; align-items: center; padding: .25rem 0; flex-wrap: wrap; }
  .nxe-trace__ico { margin: 0; }
  .nxe-trace li > div { flex: 1; min-width: 0; }
  .nxe-trace em { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .nxe-trace::after { animation: none; display: none; } }

/* ---------- Automation · workflows with a sticky stage ---------- */
.nxe-wf { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.nxe-wf__aside { position: sticky; top: 110px; }
.nxe-wf__stage {
  margin-top: 2rem;
}
.nxe-wf__stage .nxe-fig__body { padding: 1.4rem 1.3rem; }
.nxe-wf__chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.nxe-wf__chain li {
  position: relative;
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem .9rem; border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
  font-size: .9rem; font-weight: 500; color: #fff;
}
.nxe-wf__chain li + li { margin-top: 18px; }
.nxe-wf__chain li + li::before {
  content: ''; position: absolute; inset-inline-start: 1.55rem; top: -19px; width: 1px; height: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), var(--nx-teal));
}
.nxe-wf__chain li span { font-family: var(--nx-font-mono); font-size: .64rem; color: rgba(238, 243, 250, .45); width: 1.3rem; }
.nxe-wf__chain li.is-ai { background: rgba(0, 140, 254, .14); border-color: rgba(0, 140, 254, .45); color: #CBE8FF; }
.nxe-wf__chain li.is-ai::after {
  content: 'AI'; margin-inline-start: auto;
  font-family: var(--nx-font-mono); font-size: .58rem; letter-spacing: .14em;
  padding: .18rem .4rem; border-radius: 4px; background: rgba(0, 140, 254, .3); color: #fff;
}
.nxe-motion .nxe-wf__chain.is-swapping li { animation: nxe-rise .55s var(--nx-ease) both; }
.nxe-motion .nxe-wf__chain.is-swapping li:nth-child(2) { animation-delay: .05s; }
.nxe-motion .nxe-wf__chain.is-swapping li:nth-child(3) { animation-delay: .1s; }
.nxe-motion .nxe-wf__chain.is-swapping li:nth-child(4) { animation-delay: .15s; }
.nxe-motion .nxe-wf__chain.is-swapping li:nth-child(5) { animation-delay: .2s; }
.nxe-wf .nx-flows { gap: .8rem; }
.nxe-wf .nx-flowrow { grid-template-columns: 1fr; gap: 1rem; transition: border-color .4s var(--nx-ease), background .4s var(--nx-ease), opacity .4s var(--nx-ease); }
.nxe-wf .nx-flowrow.is-active { border-color: rgba(0, 219, 178, .4); background: rgba(0, 219, 178, .05); }
.nxe-wf .nx-flowrow h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); letter-spacing: -.025em; }
[dir="rtl"] .nx-chain i::after { right: auto; left: -1px; border-left: 0; border-right: 5px solid rgba(255, 255, 255, .4); }
@media (max-width: 992px) {
  .nxe-wf { grid-template-columns: 1fr; }
  .nxe-wf__aside { position: static; }
  .nxe-wf__stage { display: none; }
}

/* ---------- Editorial index (coverage) ---------- */
.nxe-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--nx-line-strong); }
.nxe-index > * {
  position: relative; padding: clamp(1.4rem, 1rem + 1.4vw, 2.4rem) clamp(1.1rem, .8rem + 1vw, 2rem);
  border-bottom: 1px solid var(--nx-line-strong);
  transition: background .4s var(--nx-ease);
}
.nxe-index > *:not(:nth-child(3n + 1)) { border-inline-start: 1px solid var(--nx-line-strong); }
.nxe-index > *:hover { background: var(--nx-surface); }
.nxe-index .nx-ico { margin-bottom: 1.2rem; }
.nxe-index h3 { font-size: clamp(1.15rem, 1.02rem + .45vw, 1.4rem); letter-spacing: -.025em; margin-bottom: .5rem; }
.nxe-index p { margin: 0; font-size: .94rem; }
.nxe-index__n { position: absolute; top: 1.4rem; inset-inline-end: 1.4rem; font-family: var(--nx-font-mono); font-size: .66rem; letter-spacing: .12em; color: var(--nx-muted); }
@media (max-width: 992px) {
  .nxe-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nxe-index > *:not(:nth-child(3n + 1)) { border-inline-start: 0; }
  .nxe-index > *:nth-child(2n) { border-inline-start: 1px solid var(--nx-line-strong); }
}
@media (max-width: 620px) {
  .nxe-index { grid-template-columns: 1fr; }
  .nxe-index > *:nth-child(2n) { border-inline-start: 0; }
}

/* ---------- Automation · the operational wrapper (nested frames) ---------- */
.nxe-wrapd { position: relative; font-size: .8rem; }
.nxe-wrapd__f {
  position: relative; padding: 2.3rem 1rem 1rem;
  border: 1px solid rgba(1, 17, 47, .14); border-radius: 18px;
  background: rgba(255, 255, 255, .55);
}
.nxe-wrapd__f > .nxe-wrapd__f { border-radius: 14px; background: rgba(255, 255, 255, .6); }
.nxe-wrapd__f::before {
  content: attr(data-k); position: absolute; top: .8rem; inset-inline-start: 1rem;
  font-family: var(--nx-font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--nx-muted);
}
[dir="rtl"] .nxe-wrapd__f::before { letter-spacing: 0; font-family: var(--nx-font); font-size: .78rem; }
.nxe-wrapd__f::after {
  content: attr(data-n); position: absolute; top: .8rem; inset-inline-end: 1rem;
  font-family: var(--nx-font-mono); font-size: .62rem; color: var(--nx-blue-600);
}
.nxe-wrapd__core {
  position: relative; padding: 2rem 1.1rem; border-radius: 12px;
  background: var(--nx-navy); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap;
  box-shadow: 0 24px 50px -28px rgba(1, 17, 47, .8);
}
.nxe-wrapd__core b { flex-basis: 100%; text-align: center; font-family: var(--nx-font-mono); font-weight: 500; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--nx-teal); margin-bottom: .3rem; }
[dir="rtl"] .nxe-wrapd__core b { letter-spacing: 0; font-family: var(--nx-font); font-size: .8rem; }
.nxe-wrapd__core span {
  width: 2.4rem; height: 2.4rem; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: var(--nx-teal);
}
.nxe-wrapd__core span svg { width: 16px; height: 16px; }
.nxe-wrapd__core span.is-hub { background: var(--nx-grad); color: #04121f; border-color: transparent; }
.nxe-wrapd__core i { width: 1.4rem; height: 1px; background: rgba(255, 255, 255, .3); }
.nxe-wrapd__band {
  margin-top: .8rem; padding: .75rem 1rem; border-radius: 12px;
  border: 1px dashed rgba(1, 17, 47, .22);
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--nx-font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--nx-muted);
}
[dir="rtl"] .nxe-wrapd__band { letter-spacing: 0; font-family: var(--nx-font); font-size: .8rem; }
.nxe-wrapd__band svg { width: 15px; height: 15px; color: var(--nx-blue-600); }
.nxe-motion .nxe-wrapd.is-revealed .nxe-wrapd__f { animation: nxe-frame .9s var(--nx-ease) both; }
.nxe-motion .nxe-wrapd.is-revealed .nxe-wrapd__f .nxe-wrapd__f { animation-delay: .12s; }
.nxe-motion .nxe-wrapd.is-revealed .nxe-wrapd__f .nxe-wrapd__f .nxe-wrapd__f { animation-delay: .24s; }
.nxe-motion .nxe-wrapd.is-revealed .nxe-wrapd__f .nxe-wrapd__f .nxe-wrapd__f .nxe-wrapd__f { animation-delay: .36s; }
@keyframes nxe-frame { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* figure caption on light grounds */
.nxe-figcap {
  display: flex; align-items: center; gap: .7rem; margin-top: .9rem;
  font-family: var(--nx-font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--nx-muted);
}
.nxe-figcap b { color: var(--nx-blue-600); font-weight: 500; }
.nxe-figcap em { font-style: normal; margin-inline-start: auto; padding: .2rem .5rem; border: 1px solid var(--nx-line-strong); border-radius: 100px; }
[dir="rtl"] .nxe-figcap { letter-spacing: 0; font-family: var(--nx-font); font-size: .78rem; }

.nxe-flowgraph { aspect-ratio: 600 / 440; }

/* ---------- n8n · node canvas ---------- */
.nxe-canvas { aspect-ratio: 600 / 360; }
.nxe-cn {
  --tx: -50%;
  position: absolute; z-index: 2;
  inset-inline-start: var(--x); top: var(--y);
  translate: var(--tx) -2.3em;       /* the icon's centre sits on the point */
  display: flex; flex-direction: column; align-items: center; gap: .55em;
  font-size: clamp(.55rem, 2.05cqi, .78rem); color: #fff; text-align: center;
}
[dir="rtl"] .nxe-cn { --tx: 50%; }
.nxe-cn i {
  position: relative; display: grid; place-items: center;
  width: 4.6em; height: 4.6em; border-radius: 1em;
  background: rgba(6, 22, 52, .96); border: 1px solid rgba(255, 255, 255, .2);
  color: var(--nx-teal);
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .9);
  transition: transform .4s var(--nx-ease), border-color .4s var(--nx-ease);
}
.nxe-cn i svg { width: 1.9em; height: 1.9em; }
.nxe-cn i::before, .nxe-cn i::after {   /* input / output ports */
  content: ''; position: absolute; top: 50%; width: .7em; height: .7em; margin-top: -.35em; border-radius: 50%;
  background: var(--nx-navy-deep); border: 1px solid rgba(255, 255, 255, .45);
}
.nxe-cn i::before { left: -.4em; }
.nxe-cn i::after { right: -.4em; }
.nxe-cn:hover i { transform: translateY(-3px); border-color: var(--nx-teal); }
.nxe-cn b { font-weight: 600; white-space: nowrap; letter-spacing: -.01em; }
.nxe-cn small { display: block; margin-top: -.25em; font-family: var(--nx-font-mono); font-size: .82em; color: rgba(238, 243, 250, .5); white-space: nowrap; }
.nxe-cn--key i {
  background:
    linear-gradient(rgba(4, 22, 54, .98), rgba(4, 22, 54, .98)) padding-box,
    linear-gradient(135deg, var(--nx-blue), var(--nx-teal)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 0 6px rgba(0, 140, 254, .1), 0 22px 50px -20px rgba(0, 140, 254, .6);
}
.nxe-cn--trig i { border-radius: 2.3em 1em 1em 2.3em; }
[dir="rtl"] .nxe-cn--trig i { border-radius: 1em 2.3em 2.3em 1em; }
.nxe-cn--warn i { border-style: dashed; color: rgba(238, 243, 250, .75); }
.nxe-canvas__bar { display: flex; flex-wrap: wrap; gap: .4rem; }
.nxe-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .6rem; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04);
  font-family: var(--nx-font-mono); font-size: .62rem; letter-spacing: .08em; color: rgba(238, 243, 250, .78);
  text-transform: none;
}
.nxe-pill.is-ok::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--nx-teal); }
[dir="rtl"] .nxe-pill { font-family: var(--nx-font); letter-spacing: 0; font-size: .74rem; }
@media (max-width: 420px) { .nxe-cn small { display: none; } }

/* ---------- n8n · bento visuals ---------- */
.nxe-viz { position: relative; margin: 1.3rem 0 .2rem; }
.nxe-rack { display: grid; gap: .4rem; }
.nxe-rack div {
  display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .035);
  font-family: var(--nx-font-mono); font-size: .66rem; letter-spacing: .06em; color: rgba(238, 243, 250, .75);
}
.nxe-rack div::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--nx-teal); box-shadow: 0 0 0 3px rgba(0, 219, 178, .14); }
.nxe-rack div em { margin-inline-start: auto; font-style: normal; display: flex; gap: 3px; }
.nxe-rack div em::before, .nxe-rack div em::after { content: ''; width: 14px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.nxe-portnode { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.nxe-portnode > span {
  position: relative; padding: .7rem 1rem; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04);
  font-family: var(--nx-font-mono); font-size: .68rem; color: rgba(238, 243, 250, .8);
}
.nxe-portnode > span.is-key {
  background:
    linear-gradient(rgba(4, 22, 54, .98), rgba(4, 22, 54, .98)) padding-box,
    linear-gradient(135deg, var(--nx-blue), var(--nx-teal)) border-box;
  border: 1px solid transparent; color: #fff;
}
.nxe-portnode > i { flex: 0 0 2.2rem; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .15), var(--nx-teal)); }
.nxe-portnode > i.is-dash { background: none; border-top: 1px dashed rgba(255, 255, 255, .3); }

/* ---------- Comparison (n8n Cloud vs self-hosted) ---------- */
.nxe-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.8rem, .5rem + 1vw, 1.3rem); list-style: none; margin: 0; padding: 0; }
.nxe-vs > li {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.3rem);
  border: 1px solid var(--nx-line); border-radius: var(--nx-radius-lg); background: var(--nx-surface);
  font-size: 1rem; line-height: 1.6; color: var(--nx-body);
}
.nxe-vs > li strong { color: var(--nx-text); }
.nxe-vs__k { display: flex; align-items: center; gap: .8rem; margin-bottom: .4rem; }
.nxe-vs__k i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--nx-grad-soft); border: 1px solid rgba(0, 140, 254, .18); color: var(--nx-blue-600); }
.nxe-vs__k i svg { width: 22px; height: 22px; }
.nxe-vs__k b { font-family: var(--nx-font-display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); font-weight: 600; letter-spacing: -.03em; color: var(--nx-text); }
.nxe-vs > li.nxe-vs__both {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.2rem;
  background: var(--nx-navy); border-color: var(--nx-navy); color: var(--nx-on-dark-mut);
}
.nxe-vs > li.nxe-vs__both strong { color: #fff; }
.nxe-vs__both i { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--nx-grad); color: #04121f; }
.nxe-vs__both i svg { width: 22px; height: 22px; }
.nxe-vs__mid {               /* the hinge between the two options */
  position: absolute; top: 50%; inset-inline-start: 100%; z-index: 2;
  translate: -50% -50%; margin-inline-start: calc(clamp(.8rem, .5rem + 1vw, 1.3rem) / 2);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--nx-bg); border: 1px solid var(--nx-line-strong);
  font-family: var(--nx-font-mono); font-size: .62rem; letter-spacing: .1em; color: var(--nx-muted);
}
[dir="rtl"] .nxe-vs__mid { translate: 50% -50%; }
@media (max-width: 760px) {
  .nxe-vs { grid-template-columns: 1fr; }
  .nxe-vs__mid { display: none; }
  .nxe-vs > li.nxe-vs__both { flex-direction: column; align-items: flex-start; }
}

/* ---------- Cloud · ops console (hero) ---------- */
.nxe-ops { display: grid; gap: 1rem; }
.nxe-ops__pipe { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nxe-ops__pipe li {
  position: relative; overflow: hidden;
  padding: .55rem .2rem .5rem; border-radius: 7px; text-align: center;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  font-size: clamp(.56rem, .42rem + .35vw, .7rem); font-weight: 600; color: rgba(238, 243, 250, .85);
  white-space: nowrap;
}
.nxe-ops__pipe li span { display: block; font-family: var(--nx-font-mono); font-weight: 400; font-size: .85em; color: rgba(238, 243, 250, .42); margin-bottom: .15rem; }
.nxe-ops__pipe li::after {   /* each gate lights in turn */
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--nx-grad); opacity: .25;
  animation: nxe-gate 7s linear infinite;
}
.nxe-ops__pipe li:nth-child(2)::after { animation-delay: .7s; }
.nxe-ops__pipe li:nth-child(3)::after { animation-delay: 1.4s; }
.nxe-ops__pipe li:nth-child(4)::after { animation-delay: 2.1s; }
.nxe-ops__pipe li:nth-child(5)::after { animation-delay: 2.8s; }
.nxe-ops__pipe li:nth-child(6)::after { animation-delay: 3.5s; }
.nxe-ops__pipe li:nth-child(7)::after { animation-delay: 4.2s; }
@keyframes nxe-gate { 0% { opacity: .25; } 4%, 60% { opacity: 1; } 70%, 100% { opacity: .25; } }
.nxe-topo { aspect-ratio: 600 / 250; }
.nxe-topo__env {             /* environment boxes drawn behind nodes */
  position: absolute; z-index: 1;
  inset-inline-start: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border: 1px dashed rgba(255, 255, 255, .2); border-radius: 12px;
}
.nxe-topo__env span {
  position: absolute; top: -.6em; inset-inline-start: .8em; padding-inline: .45em;
  background: rgba(2, 13, 36, 1);
  font-family: var(--nx-font-mono); font-size: clamp(.5rem, 1.7cqi, .62rem); letter-spacing: .14em; text-transform: uppercase; color: rgba(238, 243, 250, .55);
}
[dir="rtl"] .nxe-topo__env span { font-family: var(--nx-font); letter-spacing: 0; font-size: clamp(.56rem, 2cqi, .72rem); }
.nxe-topo__env.is-prod { border-color: rgba(0, 219, 178, .4); background: rgba(0, 219, 178, .035); }
.nxe-topo__env.is-prod span { color: var(--nx-teal); }
.nxe-gn--svc { padding: .45em .7em; border-radius: .6em; font-size: clamp(.52rem, 1.9cqi, .72rem); }
.nxe-gn--svc::before { content: ''; width: .55em; height: .55em; border-radius: 50%; background: var(--nx-teal); box-shadow: 0 0 0 .25em rgba(0, 219, 178, .18); }
.nxe-gn--svc.is-blue::before { background: #5DBBFF; box-shadow: 0 0 0 .25em rgba(0, 140, 254, .2); }
.nxe-ops__reads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.nxe-read {
  padding: .6rem .7rem .5rem; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
}
.nxe-read b { display: flex; justify-content: space-between; align-items: center; font-family: var(--nx-font-mono); font-size: .6rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(238, 243, 250, .62); }
[dir="rtl"] .nxe-read b { font-family: var(--nx-font); letter-spacing: 0; font-size: .74rem; }
.nxe-read b::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--nx-teal); }
.nxe-read svg { display: block; width: 100%; height: 30px; margin-top: .4rem; overflow: visible; }
.nxe-read svg path { fill: none; stroke: var(--nx-teal); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.nxe-read svg path.is-area { fill: rgba(0, 219, 178, .1); stroke: none; }
.nxe-read svg rect { fill: rgba(0, 140, 254, .55); }
[dir="rtl"] .nxe-read svg { transform: scaleX(-1); }
@media (max-width: 560px) {
  .nxe-ops__pipe { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nxe-ops__reads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Cloud · gated pipeline (vertical timeline beside a sticky head) ---------- */
.nxe-gates .nxe-tl__item { padding-bottom: 0; }
.nxe-gates .nxe-tl__item + .nxe-tl__item { margin-top: .8rem; }
.nxe-gate {
  display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto; gap: 1.2rem; align-items: center;
  padding: 1.1rem 1.3rem; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
  transition: border-color .4s var(--nx-ease), background .4s var(--nx-ease);
}
.nxe-gates .nxe-tl__item.is-on .nxe-gate { border-color: rgba(0, 219, 178, .28); }
.nxe-gate b { font-family: var(--nx-font-display); font-size: 1.2rem; color: #fff; letter-spacing: -.02em; }
.nxe-gate b span { display: block; font-family: var(--nx-font-mono); font-size: .62rem; font-weight: 400; letter-spacing: .14em; color: var(--nx-teal); margin-bottom: .3rem; }
.nxe-gate p { margin: 0; font-size: .92rem; }
.nxe-gate em {
  font-style: normal; display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--nx-font-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(238, 243, 250, .5); padding: .3rem .5rem; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .12);
}
[dir="rtl"] .nxe-gate em { font-family: var(--nx-font); letter-spacing: 0; font-size: .72rem; }
.nxe-gate em svg { width: 11px; height: 11px; color: var(--nx-teal); }
.nxe-gates .nxe-tl__item::before { top: 1.6rem; }
.nxe-gates .nxe-tl__rail, .nxe-gates .nxe-tl__fill { top: 2rem; bottom: 2rem; }
@media (max-width: 700px) {
  .nxe-gate { grid-template-columns: 1fr; gap: .5rem; }
  .nxe-gate em { justify-self: start; }
}

/* ---------- Cloud · tool matrix ---------- */
.nxe-matrix { display: flex; flex-wrap: wrap; gap: 1px; background: var(--nx-line-strong); border: 1px solid var(--nx-line-strong); border-radius: var(--nx-radius-lg); overflow: hidden; }
.nxe-matrix > div { flex: 1 1 15rem; background: var(--nx-bg-soft); padding: 1.2rem 1.3rem 1.3rem; }
.nxe-matrix h3 { margin: 0 0 .8rem; font-family: var(--nx-font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--nx-blue-600); }
.nxe-matrix ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.nxe-matrix li { padding: .45rem .75rem; border-radius: 8px; background: var(--nx-surface); border: 1px solid var(--nx-line); font-size: .88rem; font-weight: 500; color: var(--nx-text); }

/* ---------- Manifesto (positions) ---------- */
.nxe-mani { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; counter-reset: nxemani; }
.nxe-mani li {
  counter-increment: nxemani; position: relative;
  padding: clamp(1.6rem, 1.1rem + 2vw, 3rem) clamp(1rem, .6rem + 2vw, 2.6rem) clamp(1.6rem, 1.1rem + 2vw, 3rem) 0;
  border-top: 1px solid var(--nx-hair-dark);
  color: var(--nx-on-dark-mut); font-size: 1rem; line-height: 1.62;
}
.nxe-mani li:nth-child(2n) { padding-inline-start: clamp(1rem, .6rem + 2vw, 2.6rem); border-inline-start: 1px solid var(--nx-hair-dark); }
.nxe-mani li::before { content: counter(nxemani, decimal-leading-zero); display: block; font-family: var(--nx-font-mono); font-size: .7rem; letter-spacing: .14em; color: var(--nx-teal); margin-bottom: 1.1rem; }
.nxe-mani li strong { display: block; margin-bottom: .7rem; font-family: var(--nx-font-display); font-weight: 600; font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.4rem); line-height: 1.06; letter-spacing: -.035em; color: #fff; }
[dir="rtl"] .nxe-mani li { padding-inline: 0 clamp(1rem, .6rem + 2vw, 2.6rem); }
[dir="rtl"] .nxe-mani li:nth-child(2n) { padding-inline: clamp(1rem, .6rem + 2vw, 2.6rem) 0; }
@media (max-width: 760px) {
  .nxe-mani { grid-template-columns: 1fr; }
  .nxe-mani li, .nxe-mani li:nth-child(2n), [dir="rtl"] .nxe-mani li, [dir="rtl"] .nxe-mani li:nth-child(2n) { padding-inline: 0; border-inline-start: 0; }
}

/* ---------- Cloud · capability bento on a light ground ---------- */
.nxe-cap { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.7rem, .5rem + .8vw, 1.15rem); }
.nxe-cap > * { grid-column: span 2; }
.nxe-cap > .is-wide, .nxe-cap > .is-half { grid-column: span 3; }
.nxe-cap .nx-tile--light { min-height: 0; }
.nxe-cap .nx-tile--light.is-wide { min-height: 15rem; }
.nxe-cap .nx-tile--light.is-wide h3 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); letter-spacing: -.03em; }
.nxe-cap .nxe-kid__path { margin-bottom: .6rem; }
@media (max-width: 992px) { .nxe-cap > *, .nxe-cap > .is-wide, .nxe-cap > .is-half { grid-column: span 3; } }
@media (max-width: 620px) { .nxe-cap { grid-template-columns: 1fr; } .nxe-cap > *, .nxe-cap > .is-wide, .nxe-cap > .is-half { grid-column: auto; } }

/* ---------- Commerce · order loop (hero) ---------- */
.nxe-loop { aspect-ratio: 600 / 430; }
.nxe-loop__core {
  position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%;
  width: 32%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  border: 1px solid rgba(0, 219, 178, .3);
  background: radial-gradient(circle, rgba(0, 219, 178, .12), transparent 70%);
  font-size: clamp(.55rem, 2cqi, .74rem);
}
.nxe-loop__core::before {
  content: ''; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .18);
  animation: nxe-spin 40s linear infinite;
}
@keyframes nxe-spin { to { transform: rotate(360deg); } }
.nxe-loop__core span { font-family: var(--nx-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--nx-teal); line-height: 1.5; padding: 0 1em; }
[dir="rtl"] .nxe-loop__core span { font-family: var(--nx-font); letter-spacing: 0; font-size: 1.1em; }
@media (prefers-reduced-motion: reduce) { .nxe-loop__core::before { animation: none; } }

/* ---------- Commerce · platform spectrum ---------- */
.nxe-spec { position: relative; margin: 0 0 clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); padding: 2.6rem 0 0; }
.nxe-spec__axis { position: relative; height: 1px; background: linear-gradient(90deg, var(--nx-teal), rgba(255, 255, 255, .25) 50%, var(--nx-blue)); }
[dir="rtl"] .nxe-spec__axis { background: linear-gradient(270deg, var(--nx-teal), rgba(255, 255, 255, .25) 50%, var(--nx-blue)); }
.nxe-spec__ends { display: flex; justify-content: space-between; margin-top: .9rem; font-family: var(--nx-font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(238, 243, 250, .5); }
[dir="rtl"] .nxe-spec__ends { font-family: var(--nx-font); letter-spacing: 0; font-size: .8rem; }
.nxe-spec__m {
  position: absolute; bottom: -5px; inset-inline-start: var(--x); translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
}
[dir="rtl"] .nxe-spec__m { translate: 50% 0; }
.nxe-spec__m b { font-size: .8rem; font-weight: 600; color: #fff; white-space: nowrap; }
.nxe-spec__m i { width: 11px; height: 11px; border-radius: 50%; background: var(--nx-navy-deep); border: 2px solid var(--nx-teal); }
.nxe-spec__m.is-custom i { border-color: var(--nx-blue); }
@media (max-width: 560px) { .nxe-spec__m b { font-size: .66rem; } }

/* ---------- Commerce · the systems bus ---------- */
.nxe-bus { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.nxe-bus::before {           /* the spine */
  content: ''; position: absolute; inset-inline-start: 22px; top: 1.6rem; bottom: 1.6rem; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--nx-blue), var(--nx-teal));
}
.nxe-bus__head {
  position: relative; display: flex; align-items: center; gap: .8rem;
  font-family: var(--nx-font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--nx-blue-600);
}
[dir="rtl"] .nxe-bus__head { font-family: var(--nx-font); letter-spacing: 0; font-size: .82rem; }
.nxe-bus__head i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--nx-navy); color: var(--nx-teal); flex: none; }
.nxe-bus__head i svg { width: 20px; height: 20px; }
.nxe-bus > li:not(.nxe-bus__head) {
  position: relative; margin-inline-start: 64px;
  padding: 1.05rem 1.2rem; border-radius: 12px;
  border: 1px solid var(--nx-line); background: var(--nx-surface);
  font-size: .95rem; line-height: 1.55; color: var(--nx-body);
  transition: border-color .35s var(--nx-ease), transform .35s var(--nx-ease);
}
.nxe-bus > li:not(.nxe-bus__head)::before {   /* the stub off the spine */
  content: ''; position: absolute; top: 50%; inset-inline-end: 100%; width: 41px; height: 1px; background: var(--nx-line-strong);
}
.nxe-bus > li:not(.nxe-bus__head)::after {
  content: ''; position: absolute; top: 50%; inset-inline-end: calc(100% + 37px); width: 9px; height: 9px; margin-top: -4px; border-radius: 50%;
  background: var(--nx-bg); border: 2px solid var(--nx-teal);
}
.nxe-bus > li:not(.nxe-bus__head):hover { border-color: var(--nx-blue); transform: translateX(4px); }
[dir="rtl"] .nxe-bus > li:not(.nxe-bus__head):hover { transform: translateX(-4px); }
.nxe-bus strong { color: var(--nx-text); }

/* ---------- Commerce · sticky media story ---------- */
.nxe-mstory { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.nxe-mstory .nx-media { aspect-ratio: 4 / 5; }
.nxe-mstory .nxe-story__steps { margin-top: 1.6rem; }
.nxe-mstory .nx-media img { width: 100%; height: 100%; object-fit: cover; }
.nxe-mstory .nxe-story__step { font-size: .98rem; }
@media (max-width: 992px) { .nxe-mstory { grid-template-columns: 1fr; } .nxe-mstory .nx-media { aspect-ratio: 16 / 10; } }

/* ---------- Section heads on this family ---------- */
.nxe-head-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(1.4rem, 1rem + 3vw, 4rem); align-items: end; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.4rem); }
.nxe-head-split h2 { margin: 0; }
.nxe-head-split .nx-lead { margin: 0; }
@media (max-width: 900px) { .nxe-head-split { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .nxe-layer::after, .nxe-bus-v i::after, .nxe-gn--hub::after, .nxe-ops__pipe li::after { animation: none; }
  .nxe-layer::after { opacity: 0; }
  .nxe-ops__pipe li::after { opacity: .6; }
}

/* a heading used as a child-page title (Arabic hubs keep their h3s) */
.nxe-kid h3.nxe-kid__title { margin: 0; color: inherit; }

/* Arabic is a joined script: mono tracking pulls its letters apart. On this
   family's Arabic pages the chapter names and eyebrows keep the face and
   lose the tracking (recommended as a shared fix in nexla.css). */
[dir="rtl"] .nx-chapter__t,
[dir="rtl"] .nx-eyebrow,
[dir="rtl"] .nx-crumbs { letter-spacing: 0; font-family: var(--nx-font); }
[dir="rtl"] .nx-chapter__t { font-size: .82rem; }

/* ==========================================================================
   Launch pass (2026-11-12): clarity over effects.
   Every section reads as its own block — explicit ground, a 1px divider and
   the same generous padding; headers stack label → H2 → subtitle on the
   start edge; type is capped; decorative loops are switched off.
   ========================================================================== */
.nx-section {
  padding-block: clamp(4rem, 2.8rem + 4.5vw, 7rem);
  border-top: 1px solid var(--nx-line-strong);
}
.nx-section--dark, .nx-section--deep { border-top-color: var(--nx-hair-dark); }
.nx-section--dark { background: var(--nx-navy); }          /* no glow bleeding across the edge */
.nx-section .nx-chapter { margin-bottom: clamp(1.4rem, 1rem + 1.2vw, 2.2rem); }

/* headers: label, H2, subtitle — stacked, start-aligned */
.nxe-head-split { grid-template-columns: minmax(0, 1fr); gap: 1rem; max-width: 52rem; align-items: start; }
.nx-section .nx-head .nx-lead, .nxe-head-split .nx-lead { margin-top: .4rem; }

/* type caps */
.nxe-hero h1, .nxe-hero .nx-display { font-size: clamp(2.2rem, 1rem + 3.3vw, 4.25rem); }
.nx-section h2, .nx-cta h2 { font-size: clamp(1.85rem, 1.15rem + 2.2vw, 3.25rem); }
.nxe-story__step strong { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); }
.nxe-mani li strong { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); }
.nxe-arch__label b { font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); }
.nxe-kid__title, .nxe-cap .nx-tile--light.is-wide h3, .nxe-vs__k b { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); }
.nx-section p, .nx-section .nx-checks li, .nxe-story__step, .nxe-bus > li, .nxe-vs > li { max-width: 68ch; }
.nx-section .nx-lead { max-width: 62ch; }

/* the sticky photograph sits after the text, so the header keeps the start edge */
.nxe-mstory > .nxe-story__aside { order: 2; }

/* timelines on dark grounds: body spans read as text */
.nxe-tl:not(.nxe-tl--light) .nxe-tl__item > span:not(.nxe-tl__n) { display: block; color: var(--nx-on-dark-mut); font-size: .92rem; line-height: 1.58; }
/* the loop marker on a light ground */
.nx-section:not(.nx-section--dark):not(.nx-section--deep) .nxe-tl__loop { color: var(--nx-muted); }
.nx-section:not(.nx-section--dark):not(.nx-section--deep) .nxe-tl__loop i { border-color: var(--nx-line-strong); }

/* calmer diagrams: keep the wire pulses and the trace, drop the loops */
.nxe-layer::after, .nxe-motion .nxe-stack > .nxe-layer::after { animation: none; opacity: 0; }
.nxe-gn--hub::after { animation: none; opacity: 0; }
.nxe-loop__core::before { animation: none; }
.nxe-ops__pipe li::after { animation: none; opacity: .6; }
.nxe-fig { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(2, 14, 38, .94); }
