/* ==========================================================================
   Nexus (/nexus/): page styles only. Loads after site.css.
   Night register. Tokens only, no raw colour values.
   Accent --nexus (9.9:1 on navy, 9.1:1 on navy-mid); --nexus-ink on amber fills.
   Signature visual: data flow diagram. Two decorative SVGs (wide and tall)
   share one text equivalent in the figcaption.
   ========================================================================== */

/* Atmosphere: dot field (decorative, aria-hidden) */
.nx-dots{position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(circle, color-mix(in srgb, var(--fog-grey) 14%, transparent) 1px, transparent 1.4px);
  background-size:26px 26px;
  -webkit-mask-image:radial-gradient(ellipse at 50% 40%, black 0%, transparent 70%);
          mask-image:radial-gradient(ellipse at 50% 40%, black 0%, transparent 70%)}

/* Hero: centred copy, diagram below */
.nx-hero__content{align-items:center;text-align:center;padding-bottom:clamp(2rem, 4vw, 2.5rem);gap:1.5rem}
.nx-h1{max-width:14ch}
.nx-lead{max-width:44ch}
.nx-hero__actions{justify-content:center}
.nx-diagram-wrap{position:relative;z-index:2;padding-bottom:clamp(4rem, 8vw, 6rem)}
.nx-diagram{padding:clamp(1rem, 2.4vw, 1.625rem) clamp(1rem, 2.4vw, 1.625rem) 1rem}
.nx-diagram__cap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px;padding-top:12px;border-top:1px solid var(--card-line);font-size:.9375rem;color:var(--text-soft)}

/* Diagram drawing */
.nx-flow{width:100%;height:auto;font-family:var(--font-sans);font-weight:500}
.nx-flow--tall{display:none;max-width:420px;margin-inline:auto}
.nx-in, .nx-out{fill:none;stroke:var(--nexus);stroke-dasharray:4 10}
.nx-in{stroke-opacity:.55;stroke-width:1.6}
.nx-out{stroke-opacity:.75;stroke-width:2}
.nx-node{fill:var(--night-raise);stroke:var(--night-line-strong)}
.nx-node__t{fill:var(--night-text-soft);font-size:14px}
.nx-node__t--sm{font-size:12.5px}
.nx-view-node{fill:var(--night-raise);stroke:color-mix(in srgb, var(--nexus) 45%, transparent)}
.nx-view-node__t{fill:var(--off-white);font-size:15px}
.nx-act-node{fill:var(--nexus)}
.nx-act-node__t{fill:var(--nexus-ink);font-size:15px;font-weight:500}
.nx-core-halo{fill:none;stroke:color-mix(in srgb, var(--nexus) 18%, transparent)}
.nx-core{fill:var(--navy-mid);stroke:color-mix(in srgb, var(--nexus) 50%, transparent);stroke-width:1.5}
.nx-core-ring{fill:none;stroke:color-mix(in srgb, var(--nexus) 35%, transparent);stroke-dasharray:2 6}
.nx-mark{fill:var(--off-white)}
.nx-mark__acc{fill:var(--nexus)}
.nx-mark__beam{opacity:.55}
.nx-core__t{fill:var(--nexus);font-size:15px}
.nx-core__t--sm{font-size:12px}

/* Definition (answer-first) */
.nx-define{font-size:clamp(1.25rem, 2vw, 1.5rem);line-height:1.55;max-width:58ch;color:var(--text)}
.nx-define strong{font-weight:600}

/* Four views */
.nx-split{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1.2fr);gap:clamp(2rem, 5vw, 4.5rem);align-items:center}
.nx-views__head{margin-bottom:0}
.nx-views__head .h2{max-width:14ch}
.nx-views{list-style:none;display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:14px}
.nx-view{display:flex;flex-direction:column;gap:12px;min-height:220px;background:var(--navy)}
.nx-view__k{font-size:.8125rem;color:var(--nexus)}
.nx-view__name{font-size:1.625rem;font-weight:600;letter-spacing:-.02em;line-height:1.2}
.nx-view__body{font-size:1rem;line-height:1.55;color:var(--text-soft)}

/* How it works */
.nx-how{display:grid;grid-template-columns:repeat(auto-fit, minmax(min(440px, 100%), 1fr));gap:clamp(2rem, 5vw, 4.5rem);align-items:start}
.nx-how .h2{max-width:14ch}
.nx-how__sub{max-width:42ch}
.nx-steps{list-style:none;display:flex;flex-direction:column}
.nx-step{display:grid;grid-template-columns:64px minmax(0, 1fr);gap:18px;padding:24px 0;border-bottom:1px solid var(--card-line)}
.nx-step:first-child{padding-top:0}
.nx-step__k{font-size:1.75rem;line-height:1.1;color:var(--nexus)}
.nx-step__copy{display:flex;flex-direction:column;gap:6px}
.nx-step__title{font-size:1.4375rem;font-weight:600;line-height:1.3}
.nx-step__body{font-size:1rem;line-height:1.6;color:var(--text-soft)}

/* Motion: only the core ring breathes (opacity, via .glow in site.css). The flow
   lines stay still: dash offset is not a transform or opacity property. */

@media (max-width: 1100px){
  .nx-views{grid-template-columns:repeat(2, minmax(0, 1fr))}
}
@media (max-width: 859.98px){
  .nx-split{grid-template-columns:minmax(0, 1fr)}
}
@media (max-width: 719.98px){
  .nx-flow--wide{display:none}
  .nx-flow--tall{display:block}
}
@media (max-width: 560px){
  .nx-views{grid-template-columns:minmax(0, 1fr)}
  .nx-view{min-height:0}
  .nx-step{grid-template-columns:48px minmax(0, 1fr);gap:14px}
}
