.nde-explorer {
  --nde-accent: #4ee1c1;
  --nde-accent-soft: rgba(78, 225, 193, 0.18);
  --nde-marker-position: 8%;
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
  padding: clamp(1rem, 3vw, 2rem);
  color: #f4f7fb;
  background:
    radial-gradient(circle at 8% 0%, var(--nde-accent-soft), transparent 34%),
    linear-gradient(145deg, #070b16 0%, #0d1424 58%, #080c16 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  font-family: inherit;
  line-height: 1.5;
}

.nde-explorer *,
.nde-explorer *::before,
.nde-explorer *::after {
  box-sizing: border-box;
}

.nde-explorer.nde-state-healthy {
  --nde-accent: #5bc8ff;
  --nde-accent-soft: rgba(91, 200, 255, 0.18);
}

.nde-explorer.nde-state-immune {
  --nde-accent: #4ee1c1;
  --nde-accent-soft: rgba(78, 225, 193, 0.18);
}

.nde-explorer.nde-state-chronic {
  --nde-accent: #ffb24a;
  --nde-accent-soft: rgba(255, 178, 74, 0.2);
}

.nde-explorer.nde-state-tumor {
  --nde-accent: #ff6685;
  --nde-accent-soft: rgba(255, 102, 133, 0.2);
}

.nde-header {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.nde-header h3 {
  margin: 0.15rem 0 0.35rem;
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.15;
}

.nde-header p {
  margin: 0;
  color: #c8d1df;
}

.nde-eyebrow {
  color: var(--nde-accent) !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nde-scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.nde-scenario {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0.65rem 0.75rem;
  color: #dce3ed;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nde-scenario:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.nde-scenario:focus-visible {
  outline: 3px solid var(--nde-accent);
  outline-offset: 2px;
}

.nde-scenario.is-active {
  color: #ffffff;
  background: var(--nde-accent-soft);
  border-color: var(--nde-accent);
}

.nde-scenario-number {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #061016;
  background: var(--nde-accent);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}

.nde-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.nde-context > div {
  min-width: 0;
  padding: 0.75rem 0.9rem;
  background: rgba(8, 13, 25, 0.92);
}

.nde-context span,
.nde-outcome span,
.nde-direction-topline span {
  display: block;
  margin-bottom: 0.16rem;
  color: #93a2b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nde-context strong {
  display: block;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 0.94rem;
}

.nde-stage {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) minmax(170px, 1.55fr) minmax(105px, 1fr);
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  min-height: 190px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nde-stage-source,
.nde-stage-target {
  min-width: 0;
  text-align: center;
}

.nde-stage-source strong,
.nde-stage-target strong {
  display: block;
  margin-top: 0.65rem;
  color: #f4f7fb;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.nde-orb {
  position: relative;
  display: grid;
  width: clamp(76px, 10vw, 96px);
  aspect-ratio: 1;
  margin: 0 auto;
  place-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 33% 28%, rgba(255, 255, 255, 0.28), transparent 20%),
    radial-gradient(circle, var(--nde-accent-soft) 0%, rgba(10, 16, 30, 0.96) 70%);
  border: 2px solid var(--nde-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--nde-accent-soft), 0 0 32px var(--nde-accent-soft);
  font-weight: 800;
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

.nde-target-orb::before,
.nde-target-orb::after {
  position: absolute;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--nde-accent);
  border-radius: 50%;
}

.nde-target-orb::before {
  top: 19%;
  right: 22%;
}

.nde-target-orb::after {
  bottom: 22%;
  left: 18%;
}

.nde-transit {
  min-width: 0;
  text-align: center;
}

.nde-reaction {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.25rem 0.6rem;
  color: #f7fbff;
  background: var(--nde-accent-soft);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.nde-flow-line {
  position: relative;
  height: 46px;
  overflow: hidden;
  border-top: 2px solid rgba(255, 255, 255, 0.18);
}

.nde-arrow {
  position: absolute;
  top: -21px;
  right: 0;
  color: var(--nde-accent);
  font-size: 2rem;
  line-height: 1;
}

.nde-particle {
  position: absolute;
  top: 8px;
  left: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #061016;
  background: var(--nde-accent);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--nde-accent);
  font-size: 0.68rem;
  font-weight: 850;
  opacity: 0;
}

.nde-particle-2 { animation-delay: 0.28s !important; }
.nde-particle-3 { animation-delay: 0.56s !important; }
.nde-particle-4 { animation-delay: 0.84s !important; }

.nde-explorer.is-animating .nde-particle {
  animation: nde-flow 1.15s ease-in-out 3;
}

.nde-explorer.is-animating .nde-target-orb {
  animation: nde-target-pulse 0.72s ease-in-out 4;
}

@keyframes nde-flow {
  0% { left: 0; opacity: 0; transform: scale(0.75); }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { left: calc(100% - 34px); opacity: 0; transform: scale(1); }
}

@keyframes nde-target-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.055); }
}

.nde-mechanism {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0.45rem;
  margin: 1rem 0;
}

.nde-mechanism-node {
  display: grid;
  min-height: 74px;
  padding: 0.7rem;
  place-items: center;
  color: #e8edf5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 650;
  text-align: center;
}

.nde-mechanism-arrow {
  align-self: center;
  color: var(--nde-accent);
  font-weight: 800;
}

.nde-direction {
  padding: 0.8rem 0;
}

.nde-direction-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.nde-direction-topline span {
  margin: 0;
}

.nde-direction-topline strong {
  color: var(--nde-accent);
  font-size: 0.9rem;
  text-align: right;
}

.nde-spectrum {
  position: relative;
  height: 10px;
  background: linear-gradient(90deg, #4ee1c1 0%, #f2c94c 52%, #ff6685 100%);
  border-radius: 999px;
}

.nde-spectrum-marker {
  position: absolute;
  top: 50%;
  left: var(--nde-marker-position);
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 4px solid #0c1220;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--nde-accent);
  transform: translate(-50%, -50%);
  transition: left 420ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

.nde-spectrum-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.38rem;
  color: #8e9db2;
  font-size: 0.68rem;
}

.nde-spectrum-labels span:nth-child(2) {
  text-align: center;
}

.nde-spectrum-labels span:last-child {
  text-align: right;
}

.nde-outcome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.65rem;
  padding: 1rem;
  background: var(--nde-accent-soft);
  border-left: 4px solid var(--nde-accent);
  border-radius: 12px;
}

.nde-outcome-symbol {
  color: var(--nde-accent);
  font-size: 1.7rem;
}

.nde-outcome h4 {
  margin: 0;
  color: #ffffff;
  font-size: 1.06rem;
  line-height: 1.25;
}

.nde-outcome p {
  margin: 0.25rem 0 0;
  color: #d6dee9;
  font-size: 0.88rem;
}

.nde-disclaimer {
  margin: 0.8rem 0 0;
  color: #91a0b4;
  font-size: 0.76rem;
  text-align: center;
}

.nde-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 760px) {
  .nde-scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nde-mechanism {
    grid-template-columns: 1fr;
  }

  .nde-mechanism-node {
    min-height: auto;
  }

  .nde-mechanism-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 520px) {
  .nde-explorer {
    border-radius: 18px;
  }

  .nde-scenario-grid,
  .nde-context {
    grid-template-columns: 1fr;
  }

  .nde-context {
    gap: 1px;
  }

  .nde-stage {
    grid-template-columns: minmax(78px, 1fr) minmax(90px, 1.2fr) minmax(78px, 1fr);
    min-height: 170px;
    padding: 0.8rem 0.25rem;
  }

  .nde-stage-source strong,
  .nde-stage-target strong {
    font-size: 0.74rem;
  }

  .nde-orb {
    width: 68px;
    font-size: 0.76rem;
  }

  .nde-reaction {
    font-size: 0.68rem;
  }

  .nde-direction-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }

  .nde-direction-topline strong {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nde-explorer *,
  .nde-explorer *::before,
  .nde-explorer *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

