.nerve-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 3vw, 44px) 0;
  background: var(--cloud);
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
}

.nerve-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 10px;
  background: var(--yellow);
}

.nerve-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px;
  right: -120px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(106, 127, 192, .22);
  border-radius: 50%;
}

.nerve-hero-shell {
  width: min(calc(100% - 56px), 1440px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(350px, .72fr) minmax(680px, 1.28fr);
  gap: clamp(34px, 4vw, 66px);
  align-items: center;
}

.nerve-copy {
  position: relative;
  z-index: 2;
}

.nerve-copy h1 {
  max-width: 12ch;
  margin: 0 0 20px;
  color: var(--navy);
  font-size: clamp(3.5rem, 4vw, 4.4rem);
  line-height: .94;
}

.nerve-copy .lede {
  max-width: 49ch;
  color: var(--navy);
  font-size: 1.04rem;
  line-height: 1.53;
}

.nerve-copy .button-row { margin-top: 24px; }
.nerve-copy .button-secondary { background: rgba(242, 241, 239, .94); }

.nerve-boundary {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  max-width: 54ch;
  margin-top: 20px;
  color: var(--navy);
  font: 740 .72rem/1.45 var(--font-mono);
}

.nerve-boundary::before {
  content: "";
  width: 20px;
  height: 3px;
  margin-top: .5em;
  background: var(--periwinkle);
}

.nerve-boundary > span { min-width: 0; }

.nerve-map-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  background: rgba(242, 241, 239, .98);
  border: 1px solid var(--navy);
  box-shadow: 8px 8px 0 var(--navy);
}

.nerve-map-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 16px;
  background: var(--navy);
  color: var(--cloud);
}

.nerve-map-head span {
  display: block;
  margin-bottom: 3px;
  color: var(--yellow);
  font: 850 .59rem/1.2 var(--font-mono);
  text-transform: uppercase;
}

.nerve-map-head h2 {
  margin: 0;
  color: var(--cloud);
  font-size: 1.2rem;
  line-height: 1.1;
}

.nerve-map-head p {
  margin: 0;
  color: var(--cloud);
  font: 750 .64rem/1.35 var(--font-mono);
  text-align: right;
}

.nerve-map-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--navy);
}

.nerve-map-stages li {
  position: relative;
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: center;
  gap: 1px 8px;
  padding: 9px 11px;
  border-right: 1px solid var(--periwinkle);
}

.nerve-map-stages li:last-child { border-right: 0; }

.nerve-map-stages li:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -8px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  background: var(--yellow);
  color: var(--navy);
  font: 900 .72rem/1 var(--font-mono);
  transform: translateY(-50%);
}

.nerve-map-stages b {
  grid-row: 1 / span 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--yellow);
  color: var(--navy);
  font: 900 .63rem/1 var(--font-mono);
}

.nerve-map-stages span {
  color: var(--navy);
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.05;
}

.nerve-map-stages small {
  color: var(--muted);
  font-size: .61rem;
  font-weight: 680;
  line-height: 1.15;
}

.nerve-map-key {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--navy);
  background: var(--cloud);
  color: var(--navy);
  font: 760 .59rem/1.25 var(--font-mono);
}

.nerve-map-key strong {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  padding: 5px 8px;
  background: var(--periwinkle);
  color: var(--navy);
  font-size: .6rem;
  text-transform: uppercase;
}

.nerve-map-panel[data-active-route="audit"] .nerve-map-key strong {
  background: var(--yellow);
}

.nerve-map-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nerve-map-key i {
  display: inline-block;
  width: 24px;
  height: 0;
  border-top: 3px dashed var(--navy);
}

.nerve-map-key i.approved {
  border-top-style: solid;
  border-top-color: var(--yellow);
}

.nerve-map-visual {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--navy);
}

.nerve-map-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
}

.nerve-grid-field { fill: url("#nerve-grid"); }
.nerve-grid-field + * { vector-effect: non-scaling-stroke; }
#nerve-grid path { stroke: rgba(106, 127, 192, .14); stroke-width: 1; }

.nerve-territory {
  fill: rgba(106, 127, 192, .045);
  stroke: rgba(106, 127, 192, .55);
  stroke-width: 1;
  stroke-dasharray: 7 7;
  vector-effect: non-scaling-stroke;
}

.nerve-territory-label {
  fill: var(--navy);
  font: 850 9px var(--font-mono);
}

.nerve-context-route {
  fill: none;
  stroke: var(--periwinkle);
  stroke-width: 1.25;
  opacity: .27;
  vector-effect: non-scaling-stroke;
}

.nerve-context-node {
  opacity: .44;
}

.nerve-context-node circle {
  fill: var(--cloud);
  stroke: var(--periwinkle);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.nerve-context-node text {
  fill: var(--navy);
  font: 760 11px var(--font-body);
}

.nerve-candidate-route,
.nerve-approved-route {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.nerve-candidate-route {
  stroke: var(--periwinkle);
  stroke-width: 1.5;
  stroke-dasharray: 6 7;
  opacity: .5;
}

.nerve-candidate-route.is-active {
  stroke: var(--navy);
  stroke-width: 3.5;
  opacity: 1;
  animation: nerve-route-flow 1.25s linear infinite;
}

.nerve-map-panel[data-active-route="audit"] .nerve-candidate-route.is-active {
  stroke: var(--yellow);
  stroke-dasharray: none;
  filter: drop-shadow(0 0 3px rgba(245, 183, 0, .55));
  animation: none;
}

.nerve-approved-route {
  stroke: var(--yellow);
  stroke-width: 4.5;
  filter: drop-shadow(0 0 3px rgba(245, 183, 0, .55));
}

.nerve-map-panel:not([data-active-route="audit"]) .nerve-approved-route {
  stroke: var(--navy);
  stroke-width: 3.5;
  stroke-dasharray: 8 7;
  filter: none;
  animation: nerve-route-flow 1.25s linear infinite;
}

.nerve-source-node rect {
  fill: var(--cloud);
  stroke: var(--navy);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.nerve-source-node { cursor: pointer; }

.nerve-source-node.is-active rect {
  fill: var(--yellow);
  stroke-width: 2.5;
  filter: drop-shadow(4px 4px 0 rgba(1, 30, 96, .2));
}

.nerve-source-node text,
.nerve-target-node text,
.nerve-review-node text {
  fill: var(--navy);
  pointer-events: none;
}

.nerve-source-node .node-kicker,
.nerve-target-node .node-kicker {
  font: 850 9px var(--font-mono);
}

.nerve-source-node .node-title,
.nerve-target-node .node-title {
  font: 850 13px var(--font-body);
}

.nerve-review-node rect {
  fill: var(--navy);
  stroke: var(--yellow);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.nerve-review-node > text:first-of-type {
  fill: var(--navy);
  font: 900 10px var(--font-mono);
}

.nerve-review-node .node-note,
.nerve-target-node .node-note {
  fill: var(--navy);
  font: 730 9px var(--font-body);
}

.nerve-target-node rect {
  fill: var(--cloud);
  stroke: var(--yellow);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.nerve-target-node .node-kicker { fill: var(--navy); }
.nerve-map-panel[data-active-route="audit"] .nerve-target-node .node-kicker { fill: var(--success); }

.nerve-route-pulse {
  fill: var(--yellow);
  stroke: var(--navy);
  stroke-width: 2;
  transform-origin: 478px 175px;
  animation: nerve-pulse 1.8s ease-in-out infinite;
  vector-effect: non-scaling-stroke;
}

.nerve-map-panel:not([data-active-route="audit"]) .nerve-route-pulse { fill: var(--cloud); }

.nerve-mobile-route { display: none; }

.nerve-route-picker {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: stretch;
  border-bottom: 1px solid var(--navy);
}

.nerve-route-picker > span {
  display: flex;
  align-items: center;
  padding: 11px 13px;
  border-right: 1px solid var(--navy);
  box-shadow: inset 5px 0 var(--yellow);
  color: var(--navy);
  font: 850 .62rem/1.25 var(--font-mono);
  text-transform: uppercase;
}

.nerve-route-picker > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nerve-route-picker button {
  min-width: 0;
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 10px;
  border: 0;
  border-right: 1px solid var(--periwinkle);
  background: var(--cloud);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.nerve-route-picker button:last-child { border-right: 0; }
.nerve-route-picker button span { font-size: .73rem; font-weight: 850; }
.nerve-route-picker button small { color: var(--muted); font: 740 .59rem/1.2 var(--font-mono); }

.nerve-route-picker button:hover,
.nerve-route-picker button:focus-visible,
.nerve-route-picker button.is-active {
  background: var(--navy);
  color: var(--cloud);
}

.nerve-route-picker button:hover small,
.nerve-route-picker button:focus-visible small,
.nerve-route-picker button.is-active small { color: var(--yellow); }

.nerve-proof {
  display: grid;
  grid-template-columns: minmax(140px, .68fr) minmax(185px, 1fr) minmax(255px, 1.45fr) minmax(135px, .7fr);
  grid-template-areas: "head route details link";
  background: var(--cloud);
}

.nerve-proof-head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-right: 1px solid var(--periwinkle);
  box-shadow: inset 5px 0 var(--yellow);
}

.nerve-proof-head span,
.nerve-proof-route > span,
.nerve-proof-details span {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
  font: 850 .55rem/1.2 var(--font-mono);
  text-transform: uppercase;
}

.nerve-proof-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: .91rem;
  line-height: 1.15;
}

.nerve-proof-head > strong {
  width: fit-content;
  color: var(--success);
  font-size: .72rem;
}

.nerve-proof-head > strong.is-pending {
  padding: 4px 6px;
  background: var(--periwinkle);
  color: var(--navy);
}

.nerve-proof-route {
  grid-area: route;
  padding: 14px;
  border-right: 1px solid var(--periwinkle);
}

.nerve-proof-route strong {
  color: var(--navy);
  font-size: .76rem;
  line-height: 1.35;
}

.nerve-proof-route i {
  display: inline-block;
  margin-inline: 4px;
  color: var(--yellow);
  font: 900 1rem/1 var(--font-mono);
}

.nerve-proof-details {
  grid-area: details;
  display: grid;
  grid-template-columns: minmax(110px, .65fr) minmax(150px, 1.35fr);
}

.nerve-proof-details > div {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--periwinkle);
}

.nerve-proof-details > div:last-child { border-right: 0; }

.nerve-proof-details mark {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  padding: 4px 6px;
  font-size: .7rem;
  font-weight: 850;
}

.nerve-proof-details strong {
  display: block;
  color: var(--navy);
  font-size: .7rem;
  line-height: 1.35;
}

.nerve-proof > a {
  grid-area: link;
  min-height: 112px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border-left: 1px solid var(--navy);
  background: var(--yellow);
  color: var(--navy);
  font-size: .73rem;
  font-weight: 850;
  text-decoration: none;
}

.nerve-proof > a:hover,
.nerve-proof > a:focus-visible { background: var(--navy); color: var(--cloud); }

@keyframes nerve-route-flow {
  to { stroke-dashoffset: -30; }
}

@keyframes nerve-pulse {
  0%, 100% { opacity: .55; transform: scale(.78); }
  50% { opacity: 1; transform: scale(1.25); }
}

@media (max-width: 1260px) {
  .nerve-hero-shell {
    grid-template-columns: minmax(320px, .68fr) minmax(620px, 1.32fr);
    gap: 30px;
  }
  .nerve-copy h1 { font-size: 3.65rem; }
  .nerve-map-head { min-height: 66px; }
  .nerve-map-svg { min-height: 290px; }
  .nerve-proof { grid-template-columns: 135px minmax(170px, 1fr) minmax(235px, 1.4fr) minmax(125px, .7fr); }
}

@media (max-width: 1080px) {
  .nerve-hero { padding: 44px 0 58px; }
  .nerve-hero-shell {
    grid-template-columns: 1fr;
    gap: 38px;
    width: min(calc(100% - 48px), 900px);
  }
  .nerve-copy { max-width: 680px; }
  .nerve-copy h1 { max-width: 12ch; font-size: 4rem; }
  .nerve-map-panel { width: 100%; }
}

@media (max-width: 760px) {
  .nerve-hero {
    padding: 30px 0 44px;
  }
  .nerve-hero::before { width: 6px; }
  .nerve-hero::after { display: none; }
  .nerve-hero-shell {
    width: min(calc(100% - 28px), 720px);
    gap: 28px;
  }
  .nerve-copy h1 {
    max-width: 11ch;
    margin-bottom: 14px;
    font-size: 2.82rem;
  }
  .nerve-copy .lede { font-size: .96rem; }
  .nerve-copy .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 18px;
  }
  .nerve-copy .button { width: 100%; justify-content: center; }
  .nerve-boundary { margin-top: 16px; font-size: .68rem; }

  .nerve-map-panel { box-shadow: 5px 5px 0 var(--navy); }
  .nerve-map-head {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 13px 14px;
  }
  .nerve-map-head p { text-align: left; }
  .nerve-map-stages {
    grid-template-columns: 1fr 1fr;
  }
  .nerve-map-stages li {
    min-height: 59px;
    padding: 8px 10px;
  }
  .nerve-map-stages li:nth-child(2) { border-right: 0; }
  .nerve-map-stages li:nth-child(-n+2) { border-bottom: 1px solid var(--periwinkle); }
  .nerve-map-stages li::after { display: none !important; }
  .nerve-map-key {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
    padding: 10px 12px;
  }
  .nerve-map-key strong {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }
  .nerve-map-key span { white-space: normal; }

  .nerve-map-svg { display: none; }
  .nerve-mobile-route {
    display: grid;
    gap: 8px;
    padding: 14px;
  }
  .nerve-mobile-route > div {
    min-height: 62px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--navy);
    background: var(--cloud);
  }
  .nerve-mobile-route > div:first-child { border-left: 6px solid var(--yellow); }
  .nerve-mobile-route > div:nth-of-type(2) { background: var(--navy); color: var(--cloud); }
  .nerve-mobile-route > div:last-child { border: 3px solid var(--yellow); }
  .nerve-mobile-route small {
    color: inherit;
    font: 850 .6rem/1.2 var(--font-mono);
    text-transform: uppercase;
  }
  .nerve-mobile-route strong { color: inherit; font-size: .82rem; line-height: 1.25; }
  .nerve-mobile-route > span {
    color: var(--yellow);
    font: 900 1.1rem/1 var(--font-mono);
    text-align: center;
  }

  .nerve-route-picker {
    grid-template-columns: 1fr;
  }
  .nerve-route-picker > span {
    min-height: 42px;
    border-right: 0;
    border-bottom: 1px solid var(--navy);
  }
  .nerve-route-picker > div { grid-template-columns: 1fr; }
  .nerve-route-picker button {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px solid var(--periwinkle);
  }
  .nerve-route-picker button:last-child { border-bottom: 0; }
  .nerve-route-picker button span { font-size: .77rem; }

  .nerve-proof {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "route"
      "details"
      "link";
  }
  .nerve-proof-head {
    align-items: center;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--periwinkle);
  }
  .nerve-proof-route {
    border-right: 0;
    border-bottom: 1px solid var(--periwinkle);
  }
  .nerve-proof-details {
    grid-template-columns: 1fr;
  }
  .nerve-proof-details > div {
    border-right: 0;
    border-bottom: 1px solid var(--periwinkle);
  }
  .nerve-proof-details > div:last-child { border-bottom: 0; }
  .nerve-proof > a {
    min-height: 48px;
    align-items: center;
    flex-direction: row;
    border-left: 0;
  }
}

@media (max-width: 390px) {
  .nerve-copy h1 { font-size: 2.52rem; }
  .nerve-map-stages li { grid-template-columns: 25px minmax(0, 1fr); padding-inline: 8px; }
  .nerve-map-stages b { width: 25px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .nerve-candidate-route,
  .nerve-approved-route,
  .nerve-route-pulse { animation: none !important; }
  .nerve-route-pulse { opacity: 1; transform: none; }
}
