/*
 * NOVEX MAGNETS / MODELED RISK FIELD
 * The visual shell may move. The signed payload, model, and canvas contracts may not.
 */

body.nx-magnets-page {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--nx-ink) !important;
  color: var(--nx-white) !important;
  font-family: var(--nx-body) !important;
  -webkit-font-smoothing: antialiased;
}

.nx-magnets-page *,
.nx-magnets-page *::before,
.nx-magnets-page *::after {
  box-sizing: border-box;
}

.nx-magnets-page h1,
.nx-magnets-page h2,
.nx-magnets-page h3,
.nx-magnets-page p {
  text-wrap: pretty;
}

.nx-magnets-page h1,
.nx-magnets-page h2,
.nx-magnets-page h3 {
  font-family: var(--nx-display) !important;
}

.nx-magnets-page a { color: inherit; }

.nx-magnets-page .nx-header {
  background: rgba(10, 13, 15, 0.88);
  border-bottom-color: var(--nx-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nx-magnets-page .nx-header.is-scrolled { background: rgba(10, 13, 15, 0.98); }
.nx-magnets-page .nx-header::before { display: none; }
.nx-magnets-page .nx-nav a[aria-current="page"] { color: var(--nx-white) !important; box-shadow: inset 0 -1px var(--nx-blue); }

/* Hero */

.hero {
  position: relative;
  min-height: 880px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(99, 217, 229, 0.04) 50%, transparent calc(50% + 0.5px)),
    var(--nx-ink);
}

.hero::before {
  position: absolute;
  top: -30%;
  right: -11%;
  width: min(72vw, 1040px);
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(99, 217, 229, 0.14), rgba(99, 217, 229, 0.028) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  top: 124px;
  right: max(24px, calc((100vw - var(--nx-width)) / 2));
  content: "02 / MAGNETS";
  color: var(--nx-muted);
  font: 500 11px/1 var(--nx-mono);
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
}

.nm-hero__inner {
  position: relative;
  display: grid;
  width: min(calc(100% - 48px), var(--nx-width));
  min-height: 880px;
  margin: 0 auto;
  padding: 148px 0 40px;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
}

.nm-hero__copy { max-width: 820px; }
.hero .nx-kicker { color: var(--nx-blue) !important; }

.hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--nx-white) !important;
  font-size: clamp(72px, 8vw, 116px) !important;
  font-weight: 500 !important;
  line-height: 0.88;
  letter-spacing: -0.07em !important;
}

.hero h1 em { color: var(--nx-blue); font-style: normal; }

.nm-hero__lede {
  max-width: 690px;
  margin: 30px 0 0;
  color: var(--nx-copy) !important;
  font-size: clamp(16px, 1.18vw, 19px);
  font-weight: 450;
  line-height: 1.72;
}

.nm-orbit {
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(13, 18, 20, 0.9);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.nm-orbit__head,
.nm-live__bar {
  display: flex;
  min-height: 58px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--nx-copy);
  border-bottom: 1px solid var(--nx-line);
  font: 500 11px/1.4 var(--nx-mono);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.nm-orbit__head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nx-green);
  font-weight: 500;
}

.nm-orbit__head strong i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.nm-orbit__field {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  background:
    linear-gradient(rgba(99, 217, 229, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 217, 229, 0.035) 1px, transparent 1px),
    #0b0f11;
  background-size: 44px 44px;
}

.nm-orbit__axis,
.nm-orbit__ring,
.nm-orbit__sweep,
.nm-orbit__node { position: absolute; display: block; }

.nm-orbit__axis { background: rgba(99, 217, 229, 0.12); }
.nm-orbit__axis--x { top: 50%; right: 0; left: 0; height: 1px; }
.nm-orbit__axis--y { top: 0; bottom: 0; left: 50%; width: 1px; }

.nm-orbit__ring {
  top: 50%;
  left: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(99, 217, 229, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.nm-orbit__ring--outer { width: 310px; box-shadow: 0 0 0 54px rgba(99, 217, 229, 0.022); }
.nm-orbit__ring--inner { width: 210px; border-style: dashed; animation: nm-orbit-spin 28s linear infinite; }

.nm-orbit__sweep {
  top: 50%;
  left: 50%;
  width: 192px;
  height: 1px;
  background: linear-gradient(90deg, var(--nx-blue), transparent);
  transform-origin: left center;
  animation: nm-orbit-sweep 7s linear infinite;
}

.nm-orbit__core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 170px;
  aspect-ratio: 1;
  place-content: center;
  gap: 9px;
  text-align: center;
  border: 1px solid rgba(99, 217, 229, 0.4);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 217, 229, 0.14), rgba(10, 13, 15, 0.96) 68%);
  box-shadow: 0 0 50px rgba(99, 217, 229, 0.11);
  transform: translate(-50%, -50%);
}

.nm-orbit__core small,
.nm-orbit__core span { color: var(--nx-muted); font: 500 11px/1 var(--nx-mono); letter-spacing: 0.07em; }
.nm-orbit__core strong { color: var(--nx-white); font: 500 20px/1 var(--nx-mono); }
.nm-orbit__core span { color: var(--nx-blue); }

.nm-orbit__node {
  z-index: 4;
  width: 7px;
  height: 7px;
  border: 1px solid var(--nx-blue);
  border-radius: 50%;
  background: #0b0f11;
  box-shadow: 0 0 12px rgba(99, 217, 229, 0.5);
}

.nm-orbit__node--one { top: 21%; left: 24%; }
.nm-orbit__node--two { top: 30%; right: 18%; }
.nm-orbit__node--three { right: 28%; bottom: 18%; }

.nm-orbit__facts {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--nx-line);
}

.nm-orbit__facts > div { min-width: 0; padding: 15px 16px 17px; border-right: 1px solid var(--nx-line); }
.nm-orbit__facts > div:last-child { border-right: 0; }
.nm-orbit__facts dt { color: var(--nx-muted); font: 500 11px/1 var(--nx-mono); text-transform: uppercase; }
.nm-orbit__facts dd { margin: 7px 0 0; color: var(--nx-white); font: 500 11px/1.35 var(--nx-mono); text-transform: uppercase; }

.nm-hero__boundary {
  grid-column: 1 / -1;
  display: grid;
  padding-top: 22px;
  grid-template-columns: minmax(210px, 0.38fr) 1.62fr;
  align-items: start;
  gap: 30px;
  border-top: 1px solid var(--nx-line);
}

.nm-hero__boundary > span { color: var(--nx-blue); font: 500 11px/1.4 var(--nx-mono); letter-spacing: 0.05em; }
.nm-hero__boundary p { max-width: 900px; margin: 0; color: var(--nx-muted) !important; font: 500 11px/1.7 var(--nx-mono); letter-spacing: 0.02em; text-transform: uppercase; }

/* Live and archived evidence rails */

.gate,
.state-strip {
  width: min(calc(100% - 48px), var(--nx-width));
  margin-inline: auto;
}

.gate {
  display: grid;
  margin-top: 34px;
  padding: 0;
  grid-template-columns: minmax(245px, 0.34fr) 1.66fr;
  border: 1px solid rgba(240, 191, 106, 0.28);
  background: rgba(240, 191, 106, 0.035);
}

.gate-labels { display: grid; padding: 22px; align-content: start; justify-items: start; gap: 12px; border-right: 1px solid rgba(240, 191, 106, 0.2); }
.gate-badge { color: #f4cc83; font: 500 11px/1.4 var(--nx-mono); letter-spacing: 0.07em; }
.gate > div:last-child { padding: 22px clamp(22px, 4vw, 54px); }
.gate h2 { margin: 0; color: var(--nx-white) !important; font-size: 18px !important; font-weight: 600 !important; }
.gate p { max-width: 1040px; margin: 10px 0 0; color: var(--nx-copy) !important; font-size: 14px; line-height: 1.65; }
.gate p strong { color: var(--nx-white); }

.status {
  display: inline-flex;
  min-height: 30px;
  padding: 0 10px;
  align-items: center;
  gap: 8px;
  color: #f4cc83;
  border: 1px solid rgba(240, 191, 106, 0.38);
  background: rgba(240, 191, 106, 0.07);
  font: 500 11px/1 var(--nx-mono);
  letter-spacing: 0.05em;
}

.status[data-state="current"] { color: var(--nx-green); border-color: rgba(88, 211, 154, 0.38); background: rgba(88, 211, 154, 0.07); }
.status[data-state="unavailable"] { color: var(--nx-red); border-color: rgba(239, 119, 124, 0.4); background: rgba(239, 119, 124, 0.07); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }

.state-strip {
  display: grid;
  margin-top: 12px;
  grid-template-columns: minmax(320px, 1.35fr) repeat(3, minmax(160px, 0.65fr));
  border-top: 1px solid var(--nx-line);
  border-left: 1px solid var(--nx-line);
  background: #0d1214;
}

.state-copy,
.metric { min-width: 0; min-height: 112px; padding: 20px; border-right: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); }
.state-copy > span,
.metric > span { display: block; color: var(--nx-muted); font: 500 11px/1.3 var(--nx-mono); letter-spacing: 0.05em; text-transform: uppercase; }
.state-copy strong,
.metric strong { display: block; margin-top: 11px; color: var(--nx-white); font-size: 14px; font-weight: 600; line-height: 1.4; }
.state-copy p { margin: 8px 0 0; color: var(--nx-copy) !important; font-size: 12px; line-height: 1.55; }
.metric strong { font: 500 12px/1.55 var(--nx-mono); }
.metric small { display: block; margin-top: 7px; color: var(--nx-muted); font: 500 10px/1.45 var(--nx-mono); overflow-wrap: anywhere; }
.state-strip--historical { margin-top: 44px; margin-bottom: 36px; }

/* Signed V5 heatmap */

.nm-live {
  padding: clamp(100px, 10vw, 150px) max(24px, calc((100vw - var(--nx-width)) / 2));
  background: var(--nx-ink);
}

.nm-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: clamp(40px, 7vw, 100px);
}

.nm-section-head .nx-kicker { color: var(--nx-blue) !important; }
.nm-section-head h2 { margin: 0; color: var(--nx-white) !important; font-size: clamp(54px, 6.6vw, 94px) !important; font-weight: 500 !important; line-height: 0.94; letter-spacing: -0.062em !important; }
.nm-section-head > p { max-width: 520px; margin: 0 0 6px; color: var(--nx-copy) !important; font-size: 16px; font-weight: 450; line-height: 1.7; }

.nm-live__instrument {
  margin-top: 76px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #080b0e;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.nm-live__bar strong { color: var(--nx-blue); font-weight: 500; }

.v5-boundary {
  display: grid;
  min-height: 82px;
  padding: 16px 18px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--nx-line);
  background: rgba(99, 217, 229, 0.045);
}

.v5-boundary-badge {
  display: inline-flex;
  min-height: 30px;
  padding: 0 10px;
  align-items: center;
  color: var(--nx-blue);
  border: 1px solid rgba(99, 217, 229, 0.38);
  font: 500 11px/1 var(--nx-mono);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.v5-boundary strong { display: block; color: var(--nx-white); font-size: 14px; font-weight: 600; }
.v5-boundary p { margin: 6px 0 0; color: var(--nx-copy) !important; font-size: 12px; line-height: 1.5; }

.nm-canvas-frame { padding: 18px 18px 0; background: #050708; }

canvas.v5-main {
  display: block;
  width: 100%;
  height: 440px;
  border: 1px solid rgba(99, 217, 229, 0.2);
  border-bottom: 0;
  background: #020308;
}

canvas.v5-vol {
  display: block;
  width: 100%;
  height: 60px;
  border: 1px solid rgba(99, 217, 229, 0.2);
  border-top: 1px solid rgba(99, 217, 229, 0.1);
  background: #020308;
}

.v5-legend { padding: 14px 18px 0; background: #050708; }
.v5-cbar { height: 8px; background: linear-gradient(90deg, rgb(60,35,130) 0%, rgb(168,85,247) 20%, rgb(0,212,255) 45%, rgb(16,185,129) 65%, rgb(255,215,0) 85%, rgb(245,158,11) 100%); }
.v5-cb-labels { display: flex; margin-top: 6px; justify-content: space-between; gap: 10px; color: #aab5b8; font: 500 11px/1.4 var(--nx-mono); text-transform: uppercase; }

.v5-status {
  min-height: 48px;
  margin: 0;
  padding: 15px 18px;
  color: var(--nx-copy);
  border-bottom: 1px solid var(--nx-line);
  background: #050708;
  font: 500 11px/1.5 var(--nx-mono);
  text-transform: uppercase;
}

.v5-status[data-state="CURRENT"] { color: var(--nx-green); }
.v5-status[data-state="STALE"] { color: #f4cc83; }
.v5-status[data-state="UNAVAILABLE"] { color: var(--nx-red); }

.magnets-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--nx-line); }
.magnet-card { min-width: 0; min-height: 164px; padding: 22px 18px; border-right: 1px solid var(--nx-line); border-bottom: 3px solid #ffd329; background: #0c1113; }
.magnet-card:last-child { border-right: 0; }
.magnet-card.rank-2 { border-bottom-color: var(--nx-green); }
.magnet-card.rank-3 { border-bottom-color: var(--nx-blue); }
.magnet-rank { color: var(--nx-muted); font: 500 11px/1.4 var(--nx-mono); letter-spacing: 0.07em; }
.magnet-price { margin-top: 20px; overflow: hidden; color: #ffd65a; font: 500 clamp(18px, 1.6vw, 26px)/1 var(--nx-mono); text-overflow: ellipsis; white-space: nowrap; }
.magnet-card.rank-2 .magnet-price { color: var(--nx-green); }
.magnet-card.rank-3 .magnet-price { color: var(--nx-blue); }
.magnet-dist,
.magnet-qty { margin-top: 10px; color: var(--nx-copy); font: 500 11px/1.35 var(--nx-mono); }
.magnet-qty { margin-top: 5px; color: var(--nx-muted); }

/* Historical comparison lab */

.nm-lab {
  padding: clamp(100px, 10vw, 150px) max(24px, calc((100vw - var(--nx-width)) / 2));
  color: var(--nx-ink);
  background: var(--nx-paper);
}

.nm-section-head--paper .nx-kicker { color: var(--nx-blue-dark) !important; }
.nm-section-head--paper h2 { color: var(--nx-ink) !important; }
.nm-section-head--paper > p { color: var(--nx-paper-copy) !important; }

.workspace {
  margin-top: 76px;
  overflow: hidden;
  border: 1px solid rgba(10, 13, 15, 0.24);
  background: var(--nx-ink);
  box-shadow: 0 30px 90px rgba(10, 13, 15, 0.14);
}

.toolbar {
  display: flex;
  min-height: 104px;
  padding: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--nx-line);
  background: #11171a;
}

.control-row { display: flex; flex-wrap: wrap; gap: 28px; }
.control-label { display: block; margin-bottom: 9px; color: var(--nx-muted); font: 500 11px/1 var(--nx-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.control-group { display: flex; border: 1px solid var(--nx-line); background: #090d0f; }
.control-group button { min-width: 64px; min-height: 42px; padding: 0 14px; color: var(--nx-copy); border: 0; border-right: 1px solid var(--nx-line); background: transparent; font: 500 11px/1 var(--nx-mono); cursor: pointer; }
.control-group button:last-child { border-right: 0; }
.control-group button:hover { color: var(--nx-white); }
.control-group button[aria-pressed="true"] { color: var(--nx-ink); background: var(--nx-blue); }
.control-group button:disabled { opacity: 0.45; cursor: not-allowed; }

.terminal-action { max-width: 620px; text-align: right; }
.action-row { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.terminal-action a { display: inline-flex; min-height: 44px; padding: 0 14px; align-items: center; justify-content: center; color: var(--nx-ink); border: 1px solid var(--nx-blue); background: var(--nx-blue); font: 500 11px/1 var(--nx-mono); text-decoration: none; text-transform: uppercase; }
.terminal-action .scanner-link { color: var(--nx-white); border-color: var(--nx-line); background: transparent; }
.terminal-action a:not([href]) { color: var(--nx-muted); border-color: var(--nx-line); background: transparent; pointer-events: none; }
.terminal-action p { margin: 9px 0 0; color: var(--nx-muted) !important; font: 500 11px/1.5 var(--nx-mono); }

.map-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr); }
.map-panel { min-width: 0; padding: clamp(22px, 3vw, 42px); border-right: 1px solid var(--nx-line); }
.panel-head { display: flex; margin-bottom: 28px; align-items: end; justify-content: space-between; gap: 28px; }
.panel-head > div > span,
.side-panel > span { color: var(--nx-blue); font: 500 11px/1 var(--nx-mono); letter-spacing: 0.06em; }
.panel-head h2,
.side-panel h2 { margin: 11px 0 0; color: var(--nx-white) !important; font-size: clamp(28px, 3vw, 42px) !important; font-weight: 500 !important; }
.panel-head p,
.side-panel .sub { margin: 7px 0 0; color: var(--nx-copy) !important; font-size: 12px; line-height: 1.5; }
.scale-note { max-width: 320px; color: var(--nx-muted) !important; font: 500 11px/1.55 var(--nx-mono) !important; text-align: right; }

.zone-ladder { display: grid; margin: 0; padding: 0; gap: 9px; list-style: none; }
.zone-row { display: grid; min-height: 76px; padding: 13px 15px; grid-template-columns: minmax(190px, 0.72fr) minmax(130px, 1fr) minmax(130px, 0.55fr); align-items: center; gap: 18px; border: 1px solid var(--nx-line); background: #111619; }
.zone-row[data-band="high"] { border-color: rgba(255, 211, 41, 0.33); }
.zone-row[data-band="elevated"] { border-color: rgba(88, 211, 154, 0.3); }
.zone-identity { display: grid; grid-template-columns: 30px 1fr; align-items: center; column-gap: 9px; }
.zone-rank { grid-row: 1 / 3; color: var(--nx-muted); font-size: 11px; }
.zone-price { color: var(--nx-white); font-size: 15px; font-weight: 600; }
.zone-side { color: var(--nx-muted); font: 500 11px/1.3 var(--nx-mono); }
.zone-meter { height: 8px; overflow: hidden; background: #070a0c; }
.zone-meter-fill { display: block; height: 100%; background: linear-gradient(90deg, #8457e6, #63d9e5, #58d39a, #ffd329); }
.zone-metrics { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.risk-band { display: inline-flex; min-height: 28px; padding: 0 8px; align-items: center; color: var(--nx-blue); border: 1px solid currentColor; font: 500 9px/1 var(--nx-mono); letter-spacing: 0.05em; }
.zone-row[data-band="high"] .risk-band,
.top-zones li[data-band="high"] .risk-band { color: #ffd65a; }
.zone-row[data-band="elevated"] .risk-band,
.top-zones li[data-band="elevated"] .risk-band { color: var(--nx-green); }
.zone-row[data-band="low"] .risk-band,
.top-zones li[data-band="low"] .risk-band { color: var(--nx-muted); }
.zone-distance { color: var(--nx-copy); font-size: 11px; white-space: nowrap; }

.side-panel { padding: clamp(22px, 3vw, 38px); background: #0d1214; }
.top-zones { display: grid; margin: 28px 0 0; padding: 0; gap: 10px; list-style: none; }
.top-zones li { min-height: 142px; padding: 18px; border: 1px solid var(--nx-line); background: #111619; }
.top-zones li > div { display: flex; margin-bottom: 16px; align-items: start; justify-content: space-between; gap: 12px; }
.top-zones strong { color: var(--nx-white); font-size: 15px; font-weight: 600; }
.top-rank { color: var(--nx-muted); font-size: 9px; }
.top-zones p { margin: 13px 0 0; color: var(--nx-copy) !important; font-size: 11px; line-height: 1.5; }

.unavailable { margin-top: 18px; padding: 38px; border: 1px solid rgba(239, 119, 124, 0.34); background: rgba(239, 119, 124, 0.06); text-align: center; }
.unavailable strong { display: block; color: var(--nx-white); }
.unavailable span { display: block; margin-top: 7px; color: var(--nx-copy); font-size: 12px; }

/* Methodology and route */

.nm-method {
  padding: clamp(100px, 10vw, 150px) max(24px, calc((100vw - var(--nx-width)) / 2));
  background: var(--nx-ink-2);
}

.nm-method > header { display: grid; grid-template-columns: minmax(0, 1fr); }
.nm-method .nx-kicker { color: var(--nx-blue) !important; }
.nm-method h2 { max-width: 940px; margin: 0; color: var(--nx-white) !important; font-size: clamp(54px, 6.6vw, 94px) !important; font-weight: 500 !important; line-height: 0.94; letter-spacing: -0.062em !important; }

.methodology { display: grid; margin-top: 76px; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--nx-line); border-left: 1px solid var(--nx-line); }
.method-card { min-height: 310px; padding: clamp(26px, 3vw, 42px); border-right: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); background: var(--nx-ink); }
.method-card > span { color: var(--nx-blue); font: 500 11px/1 var(--nx-mono); letter-spacing: 0.06em; }
.method-card strong { display: block; max-width: 340px; margin-top: 72px; color: var(--nx-white); font-size: 24px; font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; }
.method-card p { margin: 22px 0 0; color: var(--nx-copy) !important; font-size: 14px; line-height: 1.65; }
.method-card code { color: var(--nx-blue); font: 500 11px/1.4 var(--nx-mono); }

details { margin-top: 18px; border: 1px solid var(--nx-line); background: var(--nx-ink); }
summary { display: flex; min-height: 64px; padding: 0 18px; align-items: center; justify-content: space-between; gap: 20px; color: var(--nx-white); font-size: 14px; font-weight: 600; cursor: pointer; }
summary span { color: var(--nx-blue); font: 500 11px/1 var(--nx-mono); text-transform: uppercase; }
.details-body { display: grid; padding: 0 18px 24px; grid-template-columns: repeat(3, 1fr); gap: 28px; color: var(--nx-copy); font-size: 13px; line-height: 1.65; }
.details-body p { margin: 0; }
.details-body strong { color: var(--nx-white); }

.nm-route {
  display: grid;
  padding: clamp(100px, 10vw, 150px) max(24px, calc((100vw - var(--nx-width)) / 2));
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: end;
  gap: clamp(60px, 9vw, 140px);
  color: var(--nx-ink);
  background: var(--nx-blue);
}

.nm-route .nx-kicker { color: var(--nx-ink) !important; }
.nm-route h2 { margin: 0; color: var(--nx-ink) !important; font-size: clamp(50px, 6vw, 86px) !important; font-weight: 500 !important; line-height: 0.94; letter-spacing: -0.06em !important; }
.nm-route ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(10, 13, 15, 0.3); }
.nm-route li { display: grid; min-height: 88px; padding: 0 4px; grid-template-columns: 42px 1fr auto; align-items: center; gap: 16px; border-bottom: 1px solid rgba(10, 13, 15, 0.3); }
.nm-route li > span,
.nm-route li small,
.nm-route li > a { color: var(--nx-blue-copy); font: 500 11px/1 var(--nx-mono); text-decoration: none; text-transform: uppercase; }
.nm-route li div { display: grid; gap: 7px; }
.nm-route li strong { color: var(--nx-ink); font-size: 17px; font-weight: 600; }
.nm-route li > a { color: var(--nx-ink); font-size: 16px; }

[data-reveal].is-reveal-ready { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--nx-ease), transform 800ms var(--nx-ease); }
[data-reveal].is-reveal-ready.is-visible { opacity: 1; transform: none; }

@keyframes nm-orbit-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes nm-orbit-sweep { to { transform: rotate(360deg); } }

@media (max-width: 1160px) {
  .nm-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr); gap: 48px; }
  .state-strip { grid-template-columns: 1.2fr repeat(3, 0.7fr); }
  .magnets-row { grid-template-columns: repeat(3, 1fr); }
  .magnet-card:nth-child(3) { border-right: 0; }
  .magnet-card:nth-child(n + 4) { border-top: 1px solid var(--nx-line); }
  .map-grid { grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.62fr); }
}

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero::after { display: none; }
  .nm-hero__inner { min-height: 0; padding-top: 124px; grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 46px; }
  .nm-orbit { width: min(100%, 680px); }
  .nm-hero__boundary { grid-template-columns: 1fr; gap: 10px; }
  .gate { grid-template-columns: 1fr; }
  .gate-labels { display: flex; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid rgba(240, 191, 106, 0.2); }
  .state-strip { grid-template-columns: 1fr 1fr; }
  .state-copy { grid-column: 1 / -1; }
  .metric:last-child { grid-column: 1 / -1; }
  .nm-section-head { grid-template-columns: 1fr; gap: 28px; }
  .nm-section-head > p { margin: 0; }
  .magnets-row { grid-template-columns: repeat(2, 1fr); }
  .magnet-card:nth-child(3) { border-right: 1px solid var(--nx-line); }
  .magnet-card:nth-child(even) { border-right: 0; }
  .magnet-card:nth-child(n + 3) { border-top: 1px solid var(--nx-line); }
  .toolbar { align-items: stretch; flex-direction: column; }
  .terminal-action { max-width: none; text-align: left; }
  .action-row { justify-content: flex-start; }
  .map-grid { grid-template-columns: 1fr; }
  .map-panel { border-right: 0; border-bottom: 1px solid var(--nx-line); }
  .side-panel { padding-bottom: 38px; }
  .top-zones { grid-template-columns: repeat(3, 1fr); }
  .methodology { grid-template-columns: 1fr; }
  .method-card { min-height: 0; }
  .method-card strong { margin-top: 42px; }
  .details-body { grid-template-columns: 1fr; }
  .nm-route { grid-template-columns: 1fr; gap: 54px; }
}

@media (max-width: 560px) {
  .nm-hero__inner { width: calc(100% - 24px); padding: 110px 0 26px; }
  .hero h1 { font-size: clamp(56px, 16.5vw, 78px) !important; line-height: 0.9; }
  .nm-hero__lede { font-size: 16px; line-height: 1.65; }
  .nm-orbit__field { min-height: 330px; }
  .nm-orbit__ring--outer { width: 230px; }
  .nm-orbit__ring--inner { width: 168px; }
  .nm-orbit__sweep { width: 145px; }
  .nm-orbit__core { width: 144px; }
  .nm-orbit__facts { grid-template-columns: 1fr; }
  .nm-orbit__facts > div { display: flex; padding: 12px 14px; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--nx-line); }
  .nm-orbit__facts > div:last-child { border-bottom: 0; }
  .nm-orbit__facts dd { margin: 0; text-align: right; }
  .gate,
  .state-strip { width: calc(100% - 24px); }
  .gate-labels { align-items: flex-start; flex-direction: column; }
  .state-strip { grid-template-columns: 1fr; }
  .state-copy,
  .metric { grid-column: auto !important; min-height: 0; }
  .nm-live,
  .nm-lab,
  .nm-method,
  .nm-route { padding: 82px 12px; }
  .nm-section-head h2,
  .nm-method h2,
  .nm-route h2 { font-size: clamp(44px, 13.5vw, 60px) !important; }
  .nm-live__instrument,
  .workspace,
  .methodology { margin-top: 52px; }
  .nm-live__bar { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 12px; }
  .v5-boundary { grid-template-columns: 1fr; }
  .nm-canvas-frame { padding: 10px 10px 0; }
  canvas.v5-main { height: 330px; }
  canvas.v5-vol { height: 62px; }
  .v5-legend { padding-inline: 10px; }
  .v5-cb-labels span:nth-child(2),
  .v5-cb-labels span:nth-child(4),
  .v5-cb-labels span:nth-child(5) { display: none; }
  .v5-status { padding-inline: 10px; overflow-wrap: anywhere; }
  .magnets-row { grid-template-columns: 1fr; }
  .magnet-card,
  .magnet-card:nth-child(3) { min-height: 0; border-right: 0; border-top: 1px solid var(--nx-line); }
  .toolbar { padding: 14px 12px; }
  .control-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
  .control-group { width: 100%; }
  .control-group button { min-width: 0; flex: 1; }
  .action-row { display: grid; grid-template-columns: 1fr; }
  .terminal-action a { width: 100%; }
  .map-panel,
  .side-panel { padding: 24px 14px; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .scale-note { max-width: none; text-align: left; }
  .zone-row { grid-template-columns: 1fr auto; gap: 10px 12px; }
  .zone-meter { grid-column: 1 / -1; grid-row: 2; }
  .zone-metrics { grid-column: 2; grid-row: 1; }
  .zone-distance { display: none; }
  .top-zones { grid-template-columns: 1fr; }
  .method-card { padding: 28px 20px; }
  .method-card strong { margin-top: 36px; }
}

@media (max-width: 360px) {
  .nm-orbit__head { align-items: flex-start; flex-direction: column; padding-block: 13px; }
  .nm-orbit__node { display: none; }
  .nm-route li { grid-template-columns: 32px 1fr auto; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .nm-orbit__ring--inner,
  .nm-orbit__sweep { animation: none; }
  [data-reveal].is-reveal-ready { opacity: 1; transform: none; }
}
