/* Corporate memory — neuron figure (home, inside .aw-ontology) */

.nm {
  --nm-bg: #0b8fa8;
  --nm-ink: #e6f7fa;
  --nm-mute: rgba(212, 241, 247, 0.66);
  --nm-faint: rgba(212, 241, 247, 0.42);
  --nm-line: rgba(122, 233, 255, 0.16);
  position: relative;
  margin: 32px 0 0;
  padding: clamp(24px, 3.5vw, 44px);
  background:
    radial-gradient(900px 480px at 46% 46%, rgba(9, 187, 223, 0.12), transparent 65%),
    radial-gradient(600px 360px at 100% 0%, rgba(0, 167, 201, 0.22), transparent 70%),
    var(--nm-bg);
  color: var(--nm-ink);
  border: 1px solid rgba(122, 233, 255, 0.18);
  overflow: hidden;
}

.nm__head { max-width: 760px; margin-bottom: 12px; }
.nm__eyebrow {
  margin: 0 0 12px;
  font: 600 11px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #09bbdf;
}
.nm__title {
  margin: 0;
  font: 500 clamp(28px, 3.6vw, 44px)/1.08 "Newsreader", Georgia, serif;
  letter-spacing: -0.02em;
  color: #fff;
}
.nm__lede { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--nm-mute); }

/* Canvas */
.nm__canvas {
  margin: 8px -8px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  outline: none;
}
.nm__svg { display: block; width: 100%; min-width: 820px; height: auto; font-family: "Source Sans 3", system-ui, sans-serif; }

.nm__stage-n { font: 600 11px "IBM Plex Mono", monospace; fill: #09bbdf; letter-spacing: 0.12em; }
.nm__stage-t { font: 500 22px "Newsreader", Georgia, serif; fill: #fff; }
.nm__stage-s { font: 400 13px "Source Sans 3", sans-serif; fill: var(--nm-faint); }

.nm__in rect { fill: rgba(255, 255, 255, 0.04); stroke: rgba(122, 233, 255, 0.28); }
.nm__in circle { fill: #7ae9ff; }
.nm__in--field circle { fill: #09bbdf; }
.nm__in text { font: 600 13px "Source Sans 3", sans-serif; fill: #e6f7fa; }
.nm__bracket { font: 600 10px "IBM Plex Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--nm-faint); }
.nm__brline { stroke: rgba(122, 233, 255, 0.22); stroke-width: 1; fill: none; }

.nm__dend { fill: none; stroke: url(#nm-dend); stroke-width: 1.8; stroke-linecap: round; }
.nm__twig { fill: none; stroke: rgba(122, 233, 255, 0.3); stroke-width: 1.2; stroke-linecap: round; }
.nm__pulse { fill: #e0faff; filter: url(#nm-glow); }
.nm__pulse--out { fill: var(--c); }

.nm__ring { transition: opacity 0.35s ease; }
.nm__ring-band { fill: none; stroke: var(--c); stroke-opacity: 0.06; stroke-width: 30; transition: stroke-opacity 0.35s ease; }
.nm__ring-line { fill: none; stroke: var(--c); stroke-opacity: 0.7; stroke-width: 1.6; stroke-linecap: round; }
.nm__node { fill: var(--c); filter: url(#nm-glow); }
.nm__chord { fill: none; stroke: var(--c); stroke-opacity: 0.18; stroke-width: 1; }
.nm__ring-label { font: 600 10.5px "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--c); }

.nm__svg.is-focus .nm__ring { opacity: 0.18; }
.nm__svg.is-focus .nm__ring.is-on { opacity: 1; }
.nm__svg.is-focus .nm__ring.is-on .nm__ring-band { stroke-opacity: 0.2; }

.nm__core-ring { fill: none; stroke: #7ae9ff; stroke-width: 1.5; }
.nm__core-t { font: 600 15px "Source Sans 3", sans-serif; fill: #0b8fa8; }
.nm__core-s { font: 500 11px "Source Sans 3", sans-serif; fill: rgba(11, 143, 168, 0.78); }
.nm__live { fill: #0b8fa8; }
.nm__live-dot { fill: #34d399; }
.nm__live-t { font: 600 9px "IBM Plex Mono", monospace; fill: #e6f7fa; letter-spacing: 0.08em; }

.nm__flow { stroke: rgba(122, 233, 255, 0.45); stroke-width: 1.2; stroke-dasharray: 3 5; fill: none; }
.nm__flow-t { font: 500 12.5px "Source Sans 3", sans-serif; fill: var(--nm-mute); }
.nm__flow-t--b { fill: var(--nm-faint); }

.nm__axon { stroke: url(#nm-axon); stroke-width: 4; stroke-linecap: round; fill: none; }
.nm__myelin { fill: rgba(122, 233, 255, 0.18); stroke: rgba(122, 233, 255, 0.6); }
.nm__axon-t { font: 600 10px "IBM Plex Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--nm-faint); }
.nm__branch { fill: none; stroke: var(--c); stroke-opacity: 0.55; stroke-width: 2; stroke-linecap: round; }
.nm__bouton { fill: var(--c); filter: url(#nm-glow); }
.nm__bouton-ring { fill: none; stroke: var(--c); stroke-width: 1.5; }
.nm__term-t { font: 600 16px "Source Sans 3", sans-serif; fill: #fff; }
.nm__term-s { font: 400 12.5px "Source Sans 3", sans-serif; fill: var(--nm-mute); }
.nm__clip rect { fill: rgba(251, 113, 133, 0.12); stroke: rgba(251, 113, 133, 0.5); }
.nm__clip text { font: 600 10px "IBM Plex Mono", monospace; letter-spacing: 0.06em; fill: #fda4af; }

/* Layer cards */
.nm__layers { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--nm-line); }
.nm__sub {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  margin: 0 0 16px;
  font: 600 11px/1.4 "IBM Plex Mono", monospace;
  letter-spacing: 0.12em; text-transform: uppercase; color: #09bbdf;
}
.nm__sub span { color: var(--nm-faint); letter-spacing: 0.06em; text-transform: none; font-family: "Source Sans 3", sans-serif; font-size: 13px; font-weight: 400; }
.nm__layer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .nm__layer-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .nm__layer-list { grid-template-columns: repeat(5, 1fr); } }
.nm-layer {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 16px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--nm-line);
  border-top: 2px solid var(--c);
  cursor: default;
  outline: none;
  transition: background-color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.nm-layer:hover,
.nm-layer:focus-visible,
.nm-layer.is-on { background: rgba(255, 255, 255, 0.06); transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, transparent); border-top-color: var(--c); }
.nm-layer__n { font: 600 11px "IBM Plex Mono", monospace; color: var(--c); letter-spacing: 0.1em; }
.nm-layer h4 { margin: 0; font: 600 17px/1.2 "Source Sans 3", sans-serif; color: #fff; }
.nm-layer__q { margin: 0; font: italic 500 15px/1.3 "Newsreader", Georgia, serif; color: var(--c); }
.nm-layer p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--nm-mute); }
.nm-layer dl { display: flex; gap: 8px; margin: 2px 0 0; font-size: 12.5px; }
.nm-layer dt { color: var(--nm-faint); }
.nm-layer dd { margin: 0; color: #e6f7fa; font-weight: 600; }
.nm-layer blockquote {
  margin: auto 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--c);
  background: rgba(0, 0, 0, 0.18);
  font: 400 13px/1.45 "Source Sans 3", sans-serif;
  color: #d4f1f7;
}

/* Outcomes */
.nm__unlocks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .nm__unlocks { grid-template-columns: repeat(3, 1fr); } }
.nm__unlocks li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--nm-line);
  background: linear-gradient(135deg, rgba(9, 187, 223, 0.1), rgba(0, 167, 201, 0.04));
}
.nm__unlocks b { font: 600 16px/1.2 "Source Sans 3", sans-serif; color: #fff; }
.nm__unlocks b::before { content: "→ "; color: #09bbdf; }
.nm__unlocks span { font-size: 14px; line-height: 1.5; color: var(--nm-mute); }

@media (max-width: 860px) {
  .nm__canvas::after {
    content: "Swipe to follow the signal →";
    display: block; margin: 6px 8px 0;
    font: 500 12px "Source Sans 3", sans-serif; color: var(--nm-faint);
  }
}
