/* ==========================================================================
   Nexlavision homepage — "Many systems, one signal"

   Loaded by the homepage alone (head_extra in src/pages/index.html), on top of
   nexla.css. Every class here is prefixed nxh- and every token derives from the
   brand tokens in nexla.css, so the homepage cannot drift from the palette.

   Hidden or pre-animation states are gated behind .nxh-ready, which nx-home.js
   adds once it is running. If this script never loads — even though nexla.js
   has already set .nx-js — the page still renders complete.
   ========================================================================== */

/* The accent face and its metric-matched fallbacks are defined site-wide in nexla.css. */

.nxh-page {
  --nxh-abyss:   #000716;
  --nxh-sec:     clamp(5rem, 3rem + 6vw, 9.5rem);
  --nxh-glow-b:  rgba(0, 140, 254, .32);
  --nxh-glow-t:  rgba(0, 219, 178, .28);
  --nxh-hair:    rgba(255, 255, 255, .1);
  --nxh-serif:   'Instrument Serif', 'Instrument Serif Fallback', 'Instrument Serif Fallback Alt', Georgia, serif;
  --nxh-amber:   #FFB547;
  background: var(--nx-navy-deep);
}

/* ---------- Accent phrase ----------
   One phrase per headline. Inline-block so the gradient spans the words, not
   the whole line box, and a little end padding so the italic overhang is not
   cut by the .nx-line reveal mask. */
.nxh-serif,
.nx-line > .nxh-serif {
  display: inline-block;
  font-family: var(--nxh-serif);
  font-style: italic; font-weight: 400;
  letter-spacing: -.012em;
  padding-inline-end: .12em; margin-inline-end: -.06em;
  background: linear-gradient(100deg, #5DBBFF 0%, var(--nx-teal) 78%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.nxh-light .nxh-serif {
  /* both ends hold 4.5:1+ on the light ladder */
  background-image: linear-gradient(100deg, var(--nx-blue-600) 0%, #00806A 85%);
}

/* ---------- Chapter marker ----------
   The thread through the page: "NN — Name" on a hairline that draws itself,
   with a pulse travelling along it. */
.nxh-chapter {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--nx-font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--nx-on-dark-mut);
  margin-bottom: clamp(2.4rem, 1.6rem + 2.6vw, 4.2rem);
}
.nxh-chapter__n { color: var(--nx-teal); }
.nxh-chapter__t { white-space: nowrap; }
.nxh-chapter > i {
  position: relative; flex: 1; height: 1px; overflow: hidden;
  background: var(--nxh-hair);
  transform-origin: left center;
  transition: transform 1.4s var(--nx-ease) .15s;
}
.nxh-chapter > i::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 9rem;
  background: linear-gradient(90deg, transparent, var(--nx-teal), transparent);
  animation: nxh-pulse 5.5s var(--nx-ease-in-out) infinite;
}
@keyframes nxh-pulse {
  from { transform: translateX(-9rem); }
  to   { transform: translateX(100vw); }
}
.nx-js .nxh-chapter[data-reveal] > i { transform: scaleX(0); }
.nx-js .nxh-chapter[data-reveal].is-revealed > i { transform: none; }
.nxh-chapter--center { justify-content: center; }
.nxh-light .nxh-chapter { color: var(--nx-muted); }
.nxh-light .nxh-chapter__n { color: var(--nx-blue-600); }
.nxh-light .nxh-chapter > i { background: var(--nx-line-strong); }
.nxh-light .nxh-chapter > i::after {
  background: linear-gradient(90deg, transparent, var(--nx-blue), transparent);
}

/* ---------- Shared pieces ---------- */
.nxh-btn-glass {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.nxh-btn-glass:hover {
  background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .36);
  transform: translateY(-2px);
}

.nxh-textlink {
  display: inline-flex; align-items: center; gap: .5rem; justify-self: start;
  font-weight: 600; font-size: .95rem; color: var(--nx-teal);
  padding-block: .3rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .45s var(--nx-ease), gap .3s var(--nx-ease), color .3s;
}
.nxh-textlink:hover { background-size: 100% 1px; gap: .75rem; }
.nxh-light .nxh-textlink { color: var(--nx-blue-600); }

.nxh-head {
  display: grid; gap: 1.3rem;
  margin-bottom: clamp(3rem, 2rem + 3.4vw, 5.4rem);
}
.nxh-head h2 {
  margin: 0;
  font-size: var(--nx-h2);
  line-height: 1.04; letter-spacing: -.04em;
}
.nxh-head__lead {
  max-width: 38rem; margin: 0;
  font-size: var(--nx-lead); line-height: 1.6;
}
.nxh-head__lead a { color: inherit; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; }
.nxh-light .nxh-head__lead a { color: var(--nx-blue-600); }
.nxh-head__lead a:hover { text-decoration-thickness: 2px; }
.nxh-head--row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; column-gap: 3rem;
}
.nxh-head--row .nxh-head__lead { grid-column: 2; max-width: 30rem; }
.nxh-head--row > div { display: grid; gap: 1.3rem; }

/* ---------- Section grounds ----------
   Each chapter sits on its own ground and alternates light and dark, so the
   start of every section reads at a glance. Where two light grounds meet, a
   hairline marks the boundary. (An earlier version blended chapters into one
   another through long gradients; it looked cinematic and read as one block.) */
.nxh-sec {
  position: relative; isolation: isolate;
  overflow-x: clip;                 /* glows may not widen the page; clip, unlike hidden, keeps sticky working */
  padding-block: var(--nxh-sec);
  color: var(--nx-on-dark-mut);
}
.nxh-sec h2, .nxh-sec h3 { color: #fff; }
.nxh-sec--deep  { background: var(--nx-navy-deep); }
.nxh-sec--dark  { background: var(--nx-navy); }
.nxh-sec--light { background: var(--nx-bg); }
.nxh-sec--soft  { background: var(--nx-bg-soft); }
.nxh-sec--tint  { background: var(--nx-bg-tint); }
.nxh-light { color: var(--nx-body); }
.nxh-light h2, .nxh-light h3 { color: var(--nx-text); }
.nxh-light + .nxh-light { border-top: 1px solid var(--nx-line-strong); }
.nxh-sec--deep + .nxh-sec--dark, .nxh-sec--dark + .nxh-sec--deep { border-top: 1px solid var(--nxh-hair); }

/* ==========================================================================
   00 · Hero — Convergence
   ========================================================================== */
.nxh-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(660px, 100svh);
  display: flex; align-items: flex-end;
  padding: clamp(7.5rem, 6rem + 4vw, 10rem) 0 clamp(1.4rem, 1rem + 1vw, 2.2rem);
  background: var(--nx-navy-deep);
  color: #fff;
}
.nxh-hero__light {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42rem 30rem at 64% 44%, rgba(0, 140, 254, .24), transparent 62%),
    radial-gradient(26rem 20rem at 66% 47%, rgba(0, 219, 178, .16), transparent 60%),
    radial-gradient(70rem 40rem at 10% 120%, rgba(0, 140, 254, .14), transparent 60%),
    linear-gradient(180deg, transparent 60%, var(--nx-navy-deep) 100%);
}
/* a faint measuring grid, fading toward the edges */
.nxh-hero__light::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 76px 76px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(70% 70% at 60% 45%, #000 20%, transparent 75%);
}
.nxh-hero__canvas {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; pointer-events: none;
}

.nxh-hero__labels { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.nxh-hero__labels li {
  position: absolute; left: 0; top: 0;
  padding: .32rem .6rem; border-radius: 999px;
  font-family: var(--nx-font-mono); font-size: .68rem; letter-spacing: .04em; white-space: nowrap;
  color: rgba(255, 255, 255, .58);
  background: rgba(1, 17, 47, .55);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .9s var(--nx-ease);
  will-change: transform;
}
.nxh-hero__labels li[data-side="order"] {
  color: var(--nx-teal); border-color: rgba(0, 219, 178, .4);
  box-shadow: 0 0 24px -6px rgba(0, 219, 178, .55);
}
.nxh-hero__labels li.is-placed { opacity: 1; }

.nxh-hero__inner {
  position: relative; z-index: 1;
  display: grid;
  transform: translate3d(0, calc(var(--hp, 0) * -70px), 0);
  opacity: calc(1 - var(--hp, 0) * .7);
}
.nxh-hero .nx-eyebrow { color: var(--nx-teal); }
.nxh-hero__title {
  margin: 1.4rem 0 0;
  /* sized so the longest line stays clear of the lens at ~75% of the width */
  font-size: clamp(2.05rem, .9rem + 3.9vw, 5rem);
  line-height: .98; letter-spacing: -.048em; font-weight: 600;
  color: #fff; max-width: 13em;
}
.nxh-hero__title .nxh-serif { font-size: 1.09em; line-height: .95; letter-spacing: -.02em; }

.nxh-hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 36rem) minmax(0, 1fr);
  gap: 1.8rem clamp(2rem, 6vw, 7rem);
  align-items: end;
  margin-top: clamp(2rem, 1.2rem + 2.6vw, 3.6rem);
}
.nxh-hero__lead {
  grid-column: 1; margin: 0;
  font-size: clamp(1.02rem, .95rem + .32vw, 1.2rem); line-height: 1.6;
  color: rgba(238, 243, 250, .78);
}
.nxh-hero__cta { grid-column: 1; }
.nxh-hero__caps {
  grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: end;
  display: grid; grid-template-columns: repeat(2, max-content); gap: .9rem 2.4rem;
  margin: 0; padding: 0; list-style: none;
}
.nxh-hero__caps li {
  display: flex; align-items: baseline; gap: .7rem;
  font-family: var(--nx-font-mono); font-size: .78rem; letter-spacing: .06em;
  color: rgba(255, 255, 255, .74);
}
.nxh-hero__caps span { color: var(--nx-teal); font-size: .66rem; }

.nxh-hero__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  margin-top: clamp(2rem, 1.4rem + 2vw, 3.4rem);
  padding-top: 1.2rem; border-top: 1px solid var(--nxh-hair);
}
.nxh-chapter--hero { margin: 0; }
.nxh-hero__scroll {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--nx-font-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--nx-on-dark-mut);
}
.nxh-hero__scroll i {
  position: relative; width: 1px; height: 30px; overflow: hidden; background: var(--nxh-hair);
}
.nxh-hero__scroll i::after {
  content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 12px;
  background: var(--nx-teal);
  animation: nxh-drop 2.2s var(--nx-ease-in-out) infinite;
}
@keyframes nxh-drop { from { transform: translateY(-12px); } to { transform: translateY(30px); } }

/* ==========================================================================
   01 · Position
   ========================================================================== */
.nxh-position { padding-top: clamp(4rem, 2rem + 5vw, 7rem); }
.nxh-position__grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  gap: 2rem clamp(2rem, 6vw, 7rem); align-items: start;
}
.nxh-position__title {
  margin: .4rem 0 0;
  font-size: var(--nx-h2); line-height: 1.04; letter-spacing: -.04em;
}
.nxh-statement {
  margin: 0;
  font-family: var(--nx-font-display); font-weight: 600;
  font-size: clamp(1.4rem, 1rem + 1.3vw, 2.4rem);
  line-height: 1.22; letter-spacing: -.025em;
  color: #fff; text-wrap: balance;
}
.nxh-statement .nxh-w { transition: color .5s var(--nx-ease); color: rgba(255, 255, 255, .2); }
.nxh-statement .nxh-w.is-lit { color: #fff; }
.nxh-statement .nxh-w.is-key.is-lit { color: var(--nx-teal); }

.nxh-pillars {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem clamp(1.4rem, 2.4vw, 3rem);
  margin: clamp(4rem, 2.4rem + 5vw, 7.5rem) 0 clamp(2rem, 3vw, 3rem);
}
.nxh-pillar { padding-top: 1.4rem; border-top: 1px solid var(--nxh-hair); }
.nxh-pillar em {
  display: block; margin-bottom: .9rem;
  font-family: var(--nx-font-mono); font-style: normal; font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--nx-teal);
}
.nxh-pillar h3 { margin: 0 0 .6rem; font-size: clamp(1.15rem, 1.05rem + .35vw, 1.4rem); letter-spacing: -.02em; }
.nxh-pillar p { margin: 0; font-size: .93rem; line-height: 1.6; }

/* ==========================================================================
   02 · Disciplines
   ========================================================================== */
.nxh-disc-sec .nxh-head { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: end; column-gap: 3rem; }
.nxh-disc-sec .nxh-head h2 { grid-row: 1 / span 2; }
.nxh-disc-sec .nxh-head .nxh-textlink { grid-column: 2; }

.nxh-disc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 5vw, 6.5rem); align-items: start;
}
.nxh-disc__item {
  position: relative;
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr);
  padding-block: clamp(1.5rem, 3.4vh, 2.5rem);
  border-top: 1px solid var(--nxh-hair);
}
.nxh-disc__item:last-child { border-bottom: 1px solid var(--nxh-hair); }
.nxh-disc__item::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--nx-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--nx-ease);
}
.nxh-disc__n {
  padding-top: .65rem;
  font-family: var(--nx-font-mono); font-size: .76rem; letter-spacing: .1em;
  color: rgba(157, 174, 203, .7); transition: color .4s;
}
.nxh-disc__body h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem);
  letter-spacing: -.025em; line-height: 1.15;
  color: var(--nx-on-dark-mut); transition: color .45s var(--nx-ease);
}
.nxh-disc__body p { margin: .8rem 0 .9rem; max-width: 34rem; font-size: .97rem; line-height: 1.6; }
.nxh-disc__body a {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .9rem; color: var(--nx-teal);
}
.nxh-disc__body a::after {
  content: ''; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: var(--nx-arrow) center / contain no-repeat; mask: var(--nx-arrow) center / contain no-repeat;
  transition: transform .3s var(--nx-ease);
}
.nxh-disc__body a:hover::after { transform: translateX(4px); }
.nxh-disc__item.is-active::before { transform: none; }
.nxh-disc__item.is-active .nxh-disc__n { color: var(--nx-teal); }
.nxh-disc__item.is-active h3 { color: #fff; }

.nxh-disc__stage {
  position: sticky; top: max(112px, calc(50vh - 17.5rem));
  perspective: 1800px;
}
.nxh-disc__frame {
  position: relative; overflow: hidden;
  min-height: 33rem; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .11);
  background:
    radial-gradient(80% 60% at 70% 0%, rgba(0, 140, 254, .16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .3),
              0 40px 90px -50px rgba(0, 140, 254, .45);
  transform: rotateY(-5deg) rotateX(2.5deg);
  transform-origin: 40% 50%;
}
/* a band of light crosses the glass whenever the view changes */
.nxh-disc__frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .09) 48%, transparent 60%);
  transform: translateX(-120%);
}
.nxh-disc__frame.is-sweep::after { animation: nxh-sweep 1.1s var(--nx-ease) both; }
@keyframes nxh-sweep { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

.nxh-disc__bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .95rem 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.nxh-disc__bar > i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.nxh-disc__bar-t {
  margin-left: auto;
  font-family: var(--nx-font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}

.nxh-disc__view {
  position: absolute; inset: 3.6rem 1.6rem 1.6rem;
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  font-family: var(--nx-font-mono); font-size: .8rem; color: rgba(238, 243, 250, .82);
  opacity: 0; transform: translateY(16px) scale(.985);
  transition: opacity .55s var(--nx-ease), transform .7s var(--nx-ease);
  pointer-events: none;
}
.nxh-disc__view.is-active { opacity: 1; transform: none; }

/* status vocabulary shared by every mock-up */
.nxh-disc__view .ok, .nxh-disc__view .run, .nxh-disc__view .wait {
  display: inline-flex; align-items: center; gap: .45rem;
}
.nxh-disc__view .ok::before, .nxh-disc__view .run::before, .nxh-disc__view .wait::before {
  content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%;
}
.nxh-disc__view .ok::before   { background: var(--nx-teal); box-shadow: 0 0 10px rgba(0, 219, 178, .7); }
.nxh-disc__view .run::before  { background: #4FB4FF; animation: nxh-blink 1.2s ease-in-out infinite; }
.nxh-disc__view .wait::before { background: var(--nxh-amber); animation: nxh-blink 1.6s ease-in-out infinite; }
@keyframes nxh-blink { 50% { opacity: .25; } }

.nxh-v-code__tab {
  align-self: flex-start; padding: .35rem .7rem; border-radius: 6px;
  background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .7); font-size: .72rem;
}
.nxh-v-code__src {
  margin: 0; padding: 1.1rem 1.2rem; border-radius: 10px;
  background: rgba(0, 4, 14, .55); border: 1px solid rgba(255, 255, 255, .06);
  font: inherit; font-size: .78rem; line-height: 1.75; white-space: pre; overflow: hidden;
  color: rgba(238, 243, 250, .82);
}
.nxh-v-code__src .c { color: rgba(157, 174, 203, .7); }
.nxh-v-code__src .k { color: #7CC4FF; }
.nxh-v-code__src .f { color: var(--nx-teal); }
.nxh-v-code__src .del { display: inline-block; width: 100%; color: #FF9F9F; background: rgba(255, 90, 90, .09); }
.nxh-v-code__src .add { display: inline-block; width: 100%; color: #8CF2DC; background: rgba(0, 219, 178, .09); }
.nxh-v-code__checks { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .74rem; }

.nxh-v-trace__goal, .nxh-v-ledger__doc, .nxh-v-order__id {
  padding: .9rem 1.1rem; border-radius: 10px;
  background: rgba(0, 140, 254, .1); border: 1px solid rgba(0, 140, 254, .28);
  font-size: .8rem; line-height: 1.5;
}
.nxh-v-trace__goal b, .nxh-v-ledger__doc b, .nxh-v-order__id b {
  display: block; margin-bottom: .2rem; font-weight: 500; font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase; color: #7CC4FF;
}
.nxh-v-trace ol { display: grid; gap: .55rem; }
.nxh-v-trace li {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .9rem; border-radius: 9px; background: rgba(255, 255, 255, .035);
}
.nxh-v-trace li b { min-width: 5.4rem; font-weight: 500; color: #fff; }
.nxh-v-trace__note { font-size: .7rem; color: rgba(157, 174, 203, .75); }

.nxh-v-pipe__row { display: flex; align-items: center; gap: .5rem; }
.nxh-v-pipe__row span {
  padding: .65rem .8rem; border-radius: 9px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08); font-size: .74rem;
}
.nxh-v-pipe__row i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--nx-teal), #4FB4FF); opacity: .6; }
.nxh-v-pipe__envs { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.nxh-v-pipe__envs div {
  display: grid; gap: .45rem; padding: .9rem 1rem; border-radius: 10px;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07);
}
.nxh-v-pipe__envs b { font-weight: 500; color: #fff; }
.nxh-v-pipe__graph {
  display: flex; align-items: flex-end; gap: 6px; height: 7rem;
  padding: .9rem; border-radius: 10px; background: rgba(0, 4, 14, .45);
}
.nxh-v-pipe__graph i {
  flex: 1; height: 100%; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #4FB4FF, rgba(0, 219, 178, .5));
  transform-origin: bottom; animation: nxh-bar 3.2s var(--nx-ease-in-out) infinite;
}
.nxh-v-pipe__graph i:nth-child(3n)   { animation-delay: -.8s; }
.nxh-v-pipe__graph i:nth-child(3n+1) { animation-delay: -1.6s; }
.nxh-v-pipe__graph i:nth-child(4n)   { animation-delay: -2.3s; }
@keyframes nxh-bar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(.9); } }

.nxh-v-ledger table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.nxh-v-ledger th {
  padding: .55rem .7rem; text-align: left; font-weight: 500; font-size: .64rem;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(157, 174, 203, .8);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.nxh-v-ledger td { padding: .8rem .7rem; border-bottom: 1px solid rgba(255, 255, 255, .06); color: #fff; }
.nxh-v-ledger th:not(:first-child), .nxh-v-ledger td:not(:first-child) { text-align: right; }
.nxh-v-ledger__doc span { color: rgba(238, 243, 250, .7); }
.nxh-v-ledger__state { display: flex; gap: 1.4rem; font-size: .74rem; }

.nxh-v-devices { flex-direction: row; align-items: center; justify-content: center; gap: 0; }
.nxh-v-devices__web, .nxh-v-devices__phone {
  display: flex; flex-direction: column; gap: .6rem; padding: 1rem;
  border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.nxh-v-devices__web { width: 72%; height: 17rem; }
.nxh-v-devices__phone {
  width: 27%; height: 15rem; margin-left: -12%; border-radius: 22px;
  background: rgba(6, 22, 52, .92); box-shadow: -20px 30px 60px -30px rgba(0, 0, 0, .8);
}
.nxh-v-devices i { display: block; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .1); }
.nxh-v-devices i.h { width: 45%; height: 12px; background: rgba(255, 255, 255, .22); }
.nxh-v-devices i.w { width: 70%; }
.nxh-v-devices .g { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; flex: 1; margin-top: .4rem; }
.nxh-v-devices .g i { height: 100%; border-radius: 8px; background: linear-gradient(160deg, rgba(0, 140, 254, .22), rgba(0, 219, 178, .1)); }
.nxh-v-devices__phone b {
  display: block; margin-top: auto; height: 34px; border-radius: 10px; background: var(--nx-grad); opacity: .85;
}

.nxh-v-order ol {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
  padding-top: 1.6rem;
}
.nxh-v-order ol::before {
  content: ''; position: absolute; left: 4px; right: 12%; top: .25rem; height: 2px;
  background: linear-gradient(90deg, var(--nx-teal), #4FB4FF 70%, rgba(255, 255, 255, .12) 70%);
}
.nxh-v-order li { font-size: .74rem; color: rgba(238, 243, 250, .6); }
.nxh-v-order li.ok, .nxh-v-order li.run { color: #fff; }

.nxh-v-flow__nodes, .nxh-v-flow__fan { display: flex; align-items: center; justify-content: center; gap: .6rem; }
.nxh-v-flow__nodes span, .nxh-v-flow__fan span {
  padding: .8rem 1rem; border-radius: 10px; font-size: .76rem;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.nxh-v-flow__nodes span.hub {
  color: #04121F; background: var(--nx-grad); border: 0; font-weight: 500;
  box-shadow: 0 0 40px -6px rgba(0, 219, 178, .6);
}
.nxh-v-flow__nodes i {
  width: 3.4rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--nx-teal) 0 6px, transparent 6px 12px);
  background-size: 24px 2px; animation: nxh-dash 1s linear infinite;
}
@keyframes nxh-dash { to { background-position: 24px 0; } }
.nxh-v-flow__fan { margin-top: 1.4rem; gap: 1rem; }

/* ==========================================================================
   03 · Products — pinned showcase
   ========================================================================== */
@property --nxh-mix { syntax: '<number>'; inherits: true; initial-value: 0; }

.nxh-show-sec { padding-bottom: clamp(4rem, 8vw, 8rem); }
.nxh-show-sec .nxh-head { margin-bottom: clamp(2rem, 4vw, 4rem); }
/* the product finder sits between the heading and the pinned tour */
.nxh-show-sec .nx-finder { margin-bottom: clamp(2.6rem, 5vw, 5rem); }
.nxh-show { position: relative; }
.nxh-show__sticky { position: relative; }
.nxh-show__spot {
  position: absolute; inset: -10% 0 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(48% 62% at 66% 0%,
      color-mix(in srgb, var(--nxh-glow-b), var(--nxh-glow-t) calc(var(--nxh-mix) * 100%)),
      transparent 72%);
  transition: --nxh-mix 1s var(--nx-ease);
}
.nxh-show__track {
  position: relative; z-index: 1;
  display: grid; gap: clamp(5rem, 10vw, 8rem);
}

.nxh-prod {
  display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 4vw, 5rem); align-items: center;
}
.nxh-prod__copy { display: flex; flex-direction: column; align-items: flex-start; }
.nxh-prod__count { font-family: var(--nx-font-mono); font-size: .78rem; letter-spacing: .12em; color: var(--nx-teal); }
.nxh-prod__count i { font-style: normal; color: rgba(157, 174, 203, .7); }
.nxh-sec .nxh-prod__name {
  margin: .7rem 0 1rem;
  font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.75rem);
  line-height: 1; letter-spacing: -.045em;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .62));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nxh-prod__copy p { margin: 0 0 1.4rem; max-width: 24rem; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); line-height: 1.55; }

.nxh-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .42rem .8rem; border-radius: 999px;
  font-family: var(--nx-font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
}
.nxh-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--nx-teal); }
.nxh-chip--early { border-color: rgba(255, 181, 71, .45); }
.nxh-chip--early::before { background: var(--nxh-amber); box-shadow: 0 0 10px rgba(255, 181, 71, .7); }

.nxh-prod__link {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1.8rem; padding: .85rem 1.3rem; border-radius: 999px;
  font-weight: 600; font-size: .93rem; color: #fff;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05);
  transition: background-color .3s var(--nx-ease), color .3s, border-color .3s, gap .3s var(--nx-ease);
}
.nxh-prod__link:hover { background: #fff; color: var(--nx-navy); border-color: #fff; gap: .8rem; }

.nxh-prod__stage {
  position: relative; margin: 0;
  aspect-ratio: 16 / 11.2;
  perspective: 2200px; perspective-origin: 50% 40%;
}
.nxh-screen {
  position: absolute; overflow: hidden;
  border-radius: 14px; background: #0B1730;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    0 60px 120px -50px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(0, 0, 0, .35),
    0 40px 100px -40px rgba(0, 140, 254, .4);
  transform-origin: 55% 50%;
  will-change: transform;
}
.nxh-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
/* glass glare; its position moves with the scroll in pinned mode */
.nxh-screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .16) 50%, transparent 62%);
  background-size: 300% 100%;
  background-position: calc(50% + var(--p, 0) * 140%) 0;
}
.nxh-screen--main {
  inset: 0 9% 12% 0;
  transform:
    rotateY(calc(-15deg + var(--px, 0) * 4deg))
    rotateX(calc(6deg - var(--py, 0) * 3deg));
  -webkit-box-reflect: below 18px linear-gradient(transparent 76%, rgba(255, 255, 255, .14));
}
.nxh-screen--side {
  width: 46%; aspect-ratio: 16 / 11; right: 0; bottom: 2%;
  transform:
    rotateY(calc(-15deg + var(--px, 0) * 5deg))
    rotateX(calc(6deg - var(--py, 0) * 4deg));
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(0, 0, 0, .4),
    0 30px 80px -30px rgba(0, 219, 178, .35);
}
.nxh-screen--loupe {
  width: 32%; aspect-ratio: 1; right: 1%; bottom: 4%;
  border-radius: 22px; border-color: rgba(255, 255, 255, .3);
  background-color: #0B1730; background-repeat: no-repeat;   /* image set inline: a url() in a custom property would resolve against this stylesheet */
  background-size: 300% auto;
  background-position: var(--lx) var(--ly);
  transform:
    rotateY(calc(-15deg + var(--px, 0) * 5deg))
    rotateX(calc(6deg - var(--py, 0) * 4deg));
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, .95),
    0 0 0 6px rgba(255, 255, 255, .04),
    0 30px 80px -24px rgba(0, 219, 178, .5);
}

.nxh-show__rail-wrap { display: none; }

/* ---- pinned mode: added by nx-home.js at >= 1024px with full motion ---- */
.nxh-show.is-pinned { height: 400vh; }
.nxh-show.is-pinned .nxh-show__sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 64px;                      /* clear the fixed header */
}
.nxh-show.is-pinned .nxh-show__track { display: block; height: min(70vh, 660px); }
.nxh-show.is-pinned .nxh-prod {
  position: absolute; inset: 0 var(--nx-gutter);
  pointer-events: none;
}
.nxh-show.is-pinned .nxh-prod.is-active { pointer-events: auto; }
.nxh-show.is-pinned .nxh-prod__copy {
  opacity: clamp(0, calc(1 - var(--a, 1) * 2), 1);
  transform: translate3d(0, calc(var(--p, 0) * -70px), 0);
}
.nxh-show.is-pinned .nxh-prod__stage {
  opacity: clamp(0, calc(1.25 - var(--a, 1) * 1.5), 1);
}
.nxh-show.is-pinned .nxh-screen--main {
  transform:
    translate3d(calc(var(--p, 0) * -22%), 0, 0)
    rotateY(calc(-15deg - var(--p, 0) * 22deg + var(--px, 0) * 4deg))
    rotateX(calc(6deg - var(--py, 0) * 3deg))
    scale(calc(1 - var(--a, 0) * .14));
}
.nxh-show.is-pinned .nxh-screen--side,
.nxh-show.is-pinned .nxh-screen--loupe {
  transform:
    translate3d(calc(var(--p, 0) * -48%), calc(var(--a, 0) * 30px), 0)
    rotateY(calc(-15deg - var(--p, 0) * 26deg + var(--px, 0) * 5deg))
    rotateX(calc(6deg - var(--py, 0) * 4deg))
    scale(calc(1 - var(--a, 0) * .2));
}
.nxh-show.is-pinned .nxh-show__rail-wrap { display: block; position: relative; z-index: 2; }
.nxh-show__rail {
  display: flex; gap: clamp(1rem, 3vw, 3rem);
  margin-top: clamp(1.6rem, 4vh, 3rem);
}
.nxh-show__rail button {
  display: grid; gap: .6rem; min-width: 7rem; padding: .4rem 0; text-align: left;
  font-family: var(--nx-font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(157, 174, 203, .8); transition: color .3s;
}
.nxh-show__rail button i {
  position: relative; display: block; height: 2px; overflow: hidden; background: rgba(255, 255, 255, .1);
}
.nxh-show__rail button i::after {
  content: ''; position: absolute; inset: 0; background: var(--nx-grad);
  transform: scaleX(var(--f, 0)); transform-origin: left;
}
.nxh-show__rail button[aria-current="true"],
.nxh-show__rail button:hover { color: #fff; }

/* ==========================================================================
   04 · AI & agents
   ========================================================================== */
.nxh-agent {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 7rem); align-items: start;
}
.nxh-agent__copy { display: grid; gap: 1.4rem; justify-items: start; }
.nxh-agent__copy h2 {
  margin: 0; font-size: var(--nx-h2); line-height: 1.04; letter-spacing: -.04em;
}
.nxh-agent__links { width: 100%; margin: 1rem 0 .6rem; }
.nxh-agent__links a {
  position: relative; display: grid; gap: .3rem;
  padding: 1.1rem 2.4rem 1.1rem 0; border-top: 1px solid var(--nxh-hair);
  transition: padding .4s var(--nx-ease);
}
.nxh-agent__links li:last-child a { border-bottom: 1px solid var(--nxh-hair); }
.nxh-agent__links a::after {
  content: ''; position: absolute; right: .3rem; top: 50%; width: 15px; height: 15px; margin-top: -7px;
  background: var(--nx-teal);
  -webkit-mask: var(--nx-arrow) center / contain no-repeat; mask: var(--nx-arrow) center / contain no-repeat;
  transition: transform .35s var(--nx-ease);
}
.nxh-agent__links b { color: #fff; font-weight: 600; font-size: 1.05rem; transition: color .3s; }
.nxh-agent__links span { font-size: .92rem; line-height: 1.5; }
.nxh-agent__links a:hover { padding-left: .6rem; }
.nxh-agent__links a:hover b { color: var(--nx-teal); }
.nxh-agent__links a:hover::after { transform: translateX(4px); }

.nxh-agent__run {
  position: sticky; top: 120px;
  margin: 0; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(0, 219, 178, .12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9), 0 40px 90px -50px rgba(0, 219, 178, .35);
}
.nxh-agent__bar {
  display: flex; align-items: center; gap: .7rem;
  padding: 1rem 1.3rem; border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--nx-font-mono); font-size: .74rem; color: #fff;
}
.nxh-agent__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--nx-teal);
  box-shadow: 0 0 0 0 rgba(0, 219, 178, .6); animation: nxh-ring 2s ease-out infinite;
}
@keyframes nxh-ring { to { box-shadow: 0 0 0 10px rgba(0, 219, 178, 0); } }
.nxh-agent__tag {
  margin-left: auto; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.nxh-agent__run ol { padding: .6rem 1.3rem 1.2rem; }
.nxh-agent__run li {
  display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 1rem; align-items: baseline;
  padding: 1rem 0; border-top: 1px dashed rgba(255, 255, 255, .08);
  font-size: .95rem; line-height: 1.5; color: var(--nx-on-dark);
  transition: opacity .6s var(--nx-ease), transform .6s var(--nx-ease);
}
.nxh-agent__run li:first-child { border-top: 0; }
.nxh-agent__k {
  font-family: var(--nx-font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: #7CC4FF;
}
.nxh-agent__run li.is-gate .nxh-agent__k { color: var(--nxh-amber); }
.nxh-agent__run li.is-done .nxh-agent__k { color: var(--nx-teal); }
.nxh-agent__run li.is-gate {
  margin-inline: -.7rem; padding-inline: .7rem; border-radius: 10px;
  background: rgba(255, 181, 71, .07); border-top-color: transparent;
}
.nxh-ready [data-agent] li { opacity: .14; transform: translateX(-6px); }
.nxh-ready [data-agent] li.is-shown { opacity: 1; transform: none; }
.nxh-ready [data-agent] li.is-current .nxh-agent__k { animation: nxh-blink 1s ease-in-out infinite; }

/* ==========================================================================
   05 · Domains
   ========================================================================== */
.nxh-dom { border-bottom: 1px solid var(--nx-line-strong); }
.nxh-dom__row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 3.6rem minmax(0, 1.25fr) minmax(0, 1fr) 7.5rem;
  gap: 1rem clamp(1.5rem, 3vw, 3rem); align-items: center;
  padding-block: clamp(1.4rem, 1rem + 1.4vw, 2.3rem);
  border-top: 1px solid var(--nx-line-strong);
  color: var(--nx-body);
}
.nxh-dom__row::before {
  content: ''; position: absolute; inset: 0 calc(var(--nx-gutter) * -1); z-index: -1;
  background: linear-gradient(90deg, rgba(0, 140, 254, .07), rgba(0, 219, 178, .05));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--nx-ease);
}
.nxh-dom__n { font-family: var(--nx-font-mono); font-size: .76rem; letter-spacing: .1em; color: var(--nx-muted); }
.nxh-sec .nxh-dom__name {
  margin: 0;
  font-size: clamp(1.6rem, 1.05rem + 1.7vw, 2.75rem); line-height: 1.05; letter-spacing: -.04em;
  color: var(--nx-text);
  transition: transform .6s var(--nx-ease), color .4s;
}
.nxh-dom__text { display: grid; gap: .7rem; font-size: .95rem; line-height: 1.55; }
.nxh-dom__tags {
  font-family: var(--nx-font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--nx-muted);
}
.nxh-dom__thumb {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px;
  box-shadow: var(--nx-shadow-sm);
}
.nxh-dom__row:hover::before,
.nxh-dom__row:focus-visible::before { transform: none; }
.nxh-dom__row:hover .nxh-dom__name,
.nxh-dom__row:focus-visible .nxh-dom__name { transform: translateX(1rem); color: var(--nx-blue-600); }
.nxh-dom__row:hover .nxh-dom__n { color: var(--nx-blue-600); }
.nxh-dom__row--next .nxh-dom__tags { color: var(--nx-blue-600); }
/* which of our own products serve the domain; the industries page links each one */
.nxh-dom__prods { font-size: .84rem; font-weight: 600; color: var(--nx-text); }

/* cursor-following photograph (fine pointers, wide screens) */
.nxh-dom.is-follow .nxh-dom__row { grid-template-columns: 3.6rem minmax(0, 1.25fr) minmax(0, 1fr); }
.nxh-dom.is-follow .nxh-dom__thumb { display: none; }
.nxh-follow {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: clamp(16rem, 20vw, 22rem); aspect-ratio: 4 / 3;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(1, 17, 47, .55);
  clip-path: inset(50% 50% 50% 50% round 16px);
  transition: clip-path .55s var(--nx-ease);
  will-change: transform, clip-path;
}
.nxh-follow.is-on { clip-path: inset(0 0 0 0 round 16px); }
.nxh-follow img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform .8s var(--nx-ease); }
.nxh-follow.is-on img { transform: none; }

/* ==========================================================================
   06 · Stack   (the cards themselves are the shared .nx-stack component)
   ========================================================================== */
.nxh-stack-sec { padding-bottom: clamp(3rem, 6vw, 6rem); }
.nxh-dom-sec { padding-top: clamp(1rem, 3vw, 3rem); }

/* ==========================================================================
   07 · Method
   ========================================================================== */
.nxh-method .nx-story__sticky h2 {
  margin: 0 0 1.2rem;
  font-size: var(--nx-h2); line-height: 1.04; letter-spacing: -.04em;
}
.nxh-method .nx-lead { margin-bottom: 1.6rem; }
.nxh-method__panel { margin-top: clamp(2rem, 3vw, 3rem); perspective: none; }
/* the sticky column only sticks when it fits on screen */
@media (max-height: 960px) {
  .nxh-method .nx-story__sticky { position: static; }
}

/* ==========================================================================
   08 · CTA — one signal
   ========================================================================== */
.nxh-cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(7rem, 4rem + 9vw, 13rem);
  background: var(--nx-navy-deep); color: var(--nx-on-dark-mut);
  text-align: center;
}
.nxh-cta::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(40rem 26rem at 50% 50%, rgba(0, 140, 254, .2), transparent 65%);
}
.nxh-cta__canvas {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  /* the lines converge on the message and disappear into it rather than crossing the copy */
  -webkit-mask-image: radial-gradient(ellipse 34% 42% at 50% 52%, transparent 45%, #000 100%);
          mask-image: radial-gradient(ellipse 34% 42% at 50% 52%, transparent 45%, #000 100%);
}
.nxh-cta__inner { display: grid; justify-items: center; }
.nxh-cta h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.2rem, 1.1rem + 3.2vw, 4rem); line-height: 1.02; letter-spacing: -.045em;
  color: #fff;
}
.nxh-cta h2 .nx-line > span { display: block; }
.nxh-cta p { max-width: 36rem; margin: 0 auto 2.2rem; font-size: var(--nx-lead); line-height: 1.6; }
.nxh-cta .nx-btn-row { justify-content: center; }
.nxh-cta__note.nxh-cta__note {
  margin: 1.6rem 0 0;
  font-family: var(--nx-font-mono); font-size: .72rem; letter-spacing: .1em; color: rgba(157, 174, 203, .8);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nxh-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nxh-hero__foot { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 1023px) {
  .nxh-prod { grid-template-columns: 1fr; }
  .nxh-prod__stage { order: -1; width: min(100%, 44rem); }
  .nxh-agent { grid-template-columns: 1fr; }
  .nxh-agent__run { position: relative; top: 0; }
  .nxh-position__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nxh-disc { grid-template-columns: 1fr; }
  .nxh-disc__stage { display: none; }
  .nxh-disc__item h3 { color: #fff; }
  .nxh-disc__item .nxh-disc__n { color: var(--nx-teal); }
  .nxh-disc-sec .nxh-head,
  .nxh-head--row { grid-template-columns: 1fr; }
  .nxh-disc-sec .nxh-head h2 { grid-row: auto; }
  .nxh-disc-sec .nxh-head .nxh-textlink,
  .nxh-head--row .nxh-head__lead { grid-column: 1; }

  .nxh-hero__foot { grid-template-columns: 1fr; }
  .nxh-hero__caps { grid-column: 1; grid-row: auto; justify-self: start; }

  .nxh-dom__row { grid-template-columns: 2.4rem minmax(0, 1fr) 6rem; }
  .nxh-dom__text { grid-column: 2 / -1; grid-row: 2; }
  .nxh-dom__thumb { grid-column: 3; grid-row: 1; }
}

@media (max-width: 700px) {
  .nxh-hero__labels { display: none; }
  .nxh-pillars { grid-template-columns: 1fr; }
  .nxh-disc__item { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .nxh-v-code__src { font-size: .7rem; }
  .nxh-screen--main { inset: 0 6% 14% 0; }
}

@media (max-width: 560px) {
  .nxh-hero__title { font-size: clamp(1.9rem, 8.1vw, 2.6rem); }
  .nxh-hero__caps { grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; }
  .nxh-hero__scroll { display: none; }
  .nxh-chapter__t { white-space: normal; }
  .nxh-agent__run li { grid-template-columns: 1fr; gap: .3rem; }
  .nxh-dom__row { grid-template-columns: minmax(0, 1fr) 5rem; }
  .nxh-dom__n { display: none; }
  .nxh-dom__text { grid-column: 1 / -1; }
  .nxh-dom__thumb { grid-column: 2; }
}

/* ==========================================================================
   Reduced motion: nexla.css already collapses every transition and animation
   site-wide; these remove the remaining scroll-linked offsets and loops.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .nxh-hero__inner { transform: none; opacity: 1; }
  .nxh-chapter > i::after,
  .nxh-hero__scroll i::after,
  .nxh-v-pipe__graph i,
  .nxh-v-flow__nodes i,
  .nxh-agent__dot { animation: none; }
  .nxh-disc__frame { transform: none; }
}

/* ==========================================================================
   Light-ground variants (chapters 01 and 03 sit on light grounds)
   ========================================================================== */
.nxh-light .nxh-statement { color: var(--nx-text); }
.nxh-light .nxh-statement .nxh-w { color: rgba(11, 22, 49, .2); }
.nxh-light .nxh-statement .nxh-w.is-lit { color: var(--nx-text); }
.nxh-light .nxh-statement .nxh-w.is-key.is-lit { color: var(--nx-blue-600); }
.nxh-light .nxh-pillar { border-top-color: var(--nx-line-strong); }
.nxh-light .nxh-pillar em { color: var(--nx-blue-600); }

.nxh-light .nxh-show__spot { display: none; }
.nxh-light .nxh-prod__count { color: var(--nx-blue-600); }
.nxh-light .nxh-prod__count i { color: var(--nx-muted); }
.nxh-sec.nxh-light .nxh-prod__name { background: none; color: var(--nx-text); }
.nxh-light .nxh-chip { color: var(--nx-text); border-color: var(--nx-line-strong); background: var(--nx-surface); }
.nxh-light .nxh-prod__link { color: var(--nx-text); border-color: var(--nx-line-strong); background: var(--nx-surface); }
.nxh-light .nxh-prod__link:hover { background: var(--nx-navy); color: #fff; border-color: var(--nx-navy); }
.nxh-light .nxh-screen {
  border-color: rgba(1, 17, 47, .12);
  box-shadow: 0 50px 90px -50px rgba(1, 17, 47, .5), 0 0 0 1px rgba(1, 17, 47, .06);
}
.nxh-light .nxh-screen--main { -webkit-box-reflect: none; }
.nxh-light .nxh-screen--loupe { border-color: var(--nx-surface); box-shadow: 0 40px 80px -36px rgba(1, 17, 47, .55), 0 0 0 6px rgba(255, 255, 255, .7); }
.nxh-light .nxh-show__rail button { color: var(--nx-muted); }
.nxh-light .nxh-show__rail button i { background: var(--nx-line-strong); }
.nxh-light .nxh-show__rail button[aria-current="true"],
.nxh-light .nxh-show__rail button:hover { color: var(--nx-text); }

/* ---------- 03 Products: the product's own logo, two actions, six products ---------- */
.nxh-sec .nxh-prod__name--logo { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem); background: none; color: var(--nx-text); -webkit-background-clip: border-box; background-clip: border-box; }
.nxh-prod__logo { display: block; width: auto; height: clamp(40px, 30px + 1.6vw, 58px); }
.nxh-prod__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.nxh-prod__actions .nxh-prod__link { margin-top: 0; }
.nxh-light .nxh-prod__link--main { background: var(--nx-navy); color: #fff; border-color: var(--nx-navy); }
.nxh-light .nxh-prod__link--main:hover { background: var(--nx-blue-600, #0072D6); border-color: var(--nx-blue-600, #0072D6); }
/* Real captures are 16:9: show the whole screen rather than the 16:11 crop of the drawn ones. */
.nxh-prod__stage--real { aspect-ratio: 16 / 9.6; }
.nxh-prod__stage--real .nxh-screen--main { inset: 0; }
.nxh-show.is-pinned { height: 600vh; }
.nxh-custom { margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; max-width: 62ch; font-size: 1rem; line-height: 1.65; color: var(--nx-body); }
.nxh-custom a { color: var(--nx-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* A second chip under the stage: says when the screens beside it are drawn, not captured. */
.nxh-chip--note { margin-top: .5rem; }
.nxh-chip--note::before { background: var(--nx-muted); }
.nxh-show.is-pinned .nxh-prod__stage--real .nxh-screen--main { inset: 0 7% 0 0; }
