@keyframes pulse-down {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}
.mind-stat-value a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mind-stat-value a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.mind-subtitle a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mind-subtitle a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}
.mind-hero {
  padding-top: 7.5rem;
  padding-bottom: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mind-hero::before {
  content: '';
  position: absolute;
  inset: -20% 0;
  background: image-set(url('/images/bg-hero.webp') type('image/webp'), url('/images/bg-hero.png') type('image/png')) center center / cover no-repeat, var(--bg);
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
  transform: translateY(var(--parallax-y, 0));
  will-change: transform;
}
.mind-hero > * {
  position: relative;
  z-index: 1;
}
.mind-hero .hero-eyebrow {
  margin-bottom: 1rem;
}
.mind-hero .mind-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.mind-hero .hero-rule {
  margin-bottom: 1rem;
}
.mind-hero .mind-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}
.mind-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.mind-stat {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--border);
}
.mind-stat:last-child {
  border-right: none;
}
.mind-stat-label {
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}
.mind-stat-value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-primary);
}
.mind-criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 2rem;
}
.mind-criteria-item {
  background: var(--surface);
  padding: 1.25rem 1.5rem;
}
.mind-criteria-name {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.mind-criteria-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.mind-infra {
  border-top: 1px solid var(--border);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.mind-infra::before {
  content: '';
  position: absolute;
  inset: -20% 0;
  background: url('/images/bg-record.png') center center / cover no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
  transform: translateY(var(--parallax-y, 0));
  will-change: transform;
}
.mind-infra > * {
  position: relative;
  z-index: 1;
}
.mind-infra-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.mind-infra-stat {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--border);
}
.mind-infra-stat:last-child {
  border-right: none;
}
.skill-tree-section {
  position: relative;
  padding: 2rem 0 4rem;
  overflow: hidden;
}
.skill-tree-section .container {
  position: relative;
}
.skill-tree-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.skill-tree-lines path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  opacity: 0.25;
  transition: opacity 0.3s ease;
}
.skill-tree-lines path.st-line--coming {
  stroke-dasharray: 6 4;
  animation: st-dash 12s linear infinite;
}
.skill-tree-lines path.st-line--drawn {
  opacity: 0.25;
}
.skill-tree {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 3rem 1.5rem;
  justify-items: center;
  align-items: start;
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}
.st-core-ring        { grid-column: 2; grid-row: 2; }
.st-branch--lab,
.st-branch--intel    { grid-column: 1; grid-row: 1; }
.st-branch--memory,
.st-branch--advisory { grid-column: 2; grid-row: 1; }
.st-branch--framework,
.st-branch--dealflow { grid-column: 3; grid-row: 1; }
.st-branch--intelligence,
.st-branch--verify   { grid-column: 1; grid-row: 2; }
.st-branch--talos,
.st-branch--defi     { grid-column: 3; grid-row: 2; }
.st-branch--identity,
.st-branch--infra    { grid-column: 1; grid-row: 3; }
.st-branch--ping     { grid-column: 2; grid-row: 3; }
.st-branch--community { grid-column: 3; grid-row: 3; }
.st-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.st-leaves {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 280px;
}
.st-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  transition: transform 0.25s ease;
  outline: none;
}
.st-node::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--gold);
  transition: background 0.25s ease;
}
.st-node::after {
  content: '';
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--surface);
  transition: background 0.25s ease;
}
.st-node-label {
  position: relative;
  z-index: 1;
  line-height: 1.3;
  padding: 0 8px;
}
.st-node--core {
  width: 180px;
  height: 180px;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  align-items: center;
}
.st-node--core::before,
.st-node--core::after {
  display: none;
}
.st-core-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
  filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.25));
  transition: opacity 0.4s ease, filter 0.4s ease;
  pointer-events: none;
}
.st-node--core:hover .st-core-icon,
.st-node--core.st-active .st-core-icon {
  opacity: 0.9;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.5));
}
.st-node--core .st-node-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(201, 168, 76, 0.3);
}
.st-branch-icon {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(201, 168, 76, 0.2));
  margin-bottom: 2px;
}
.st-node--branch {
  width: 110px;
  height: 110px;
}
.st-node--branch .st-node-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.st-node--leaf {
  width: 80px;
  height: 80px;
}
.st-node--leaf .st-node-label {
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--text-secondary);
}
.st-unlocked {
  filter: drop-shadow(0 0 6px rgba(181, 160, 112, 0.2));
}
.st-unlocked:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 14px rgba(181, 160, 112, 0.4));
}
.st-unlocked:focus-visible {
  filter: drop-shadow(0 0 14px rgba(181, 160, 112, 0.5));
}
.st-active::before {
  background: var(--gold-hover);
}
.st-active::after {
  background: var(--elevated);
}
.st-active {
  filter: drop-shadow(0 0 18px rgba(181, 160, 112, 0.5));
  transform: scale(1.05);
}
.st-locked {
  opacity: 0.3;
  cursor: default;
  filter: none;
}
.st-locked::before {
  background: var(--border-strong);
}
.st-locked:hover {
  transform: none;
}
.st-coming {
  opacity: 0.55;
  animation: st-pulse 3s ease-in-out infinite;
}
.st-coming::before {
  background: var(--border-strong);
}
.st-coming-label {
  display: block;
  font-size: 0.45rem;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.05em;
}
.st-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 10, 0.7);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}
.st-overlay.st-open {
  opacity: 1;
  visibility: visible;
}
.st-detail {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 36px rgba(0,0,0,0.35);
  z-index: 910;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}
.st-detail.st-open {
  transform: translateX(0);
}
.st-detail-close {
  position: sticky;
  top: 0;
  float: right;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  margin: 1rem;
  border-radius: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.st-detail-close:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.st-detail-header {
  padding: 2rem 2rem 1rem;
  clear: both;
}
.st-detail-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.st-detail-status.st-status--coming {
  border-color: var(--text-muted);
  color: var(--text-muted);
}
.st-detail-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin: 0;
}
.st-detail-body {
  padding: 0 2rem 2rem;
}
.st-detail-body .mind-endpoint-grid,
.st-detail-body .mind-criteria-grid,
.st-detail-body .mind-stats-grid,
.st-detail-body .mind-source-grid,
.st-detail-body .mind-community-grid,
.st-detail-body .mind-infra-stats {
  grid-template-columns: 1fr;
}
.st-detail-body .mind-pipeline {
  grid-template-columns: 1fr;
  gap: 0;
}
.st-detail-body .mind-pipeline-arrow {
  padding: 0.5rem 0;
  transform: rotate(90deg);
}
.st-detail-body .mind-wallet-arch {
  flex-direction: column;
  align-items: stretch;
}
.st-detail-body .mind-wallet-grid {
  grid-template-columns: 1fr;
}
.st-detail-body .mind-wallet-connector {
  padding: 0.5rem 0;
  transform: rotate(90deg);
  text-align: center;
}
.st-detail-body .mind-identities {
  flex-direction: column;
  gap: 1.5rem;
}
.st-detail-body .mind-exo-card {
  flex-direction: column;
  text-align: center;
  gap: 1rem;
  padding: 1.25rem;
}
.st-detail-body .mind-stat,
.st-detail-body .mind-infra-stat {
  border-right: none;
  border-bottom: 1px solid var(--border);
}
.st-detail-body .mind-stat:last-child,
.st-detail-body .mind-infra-stat:last-child {
  border-bottom: none;
}
.st-detail-body .mind-advisory-sub {
  margin-top: 1.5rem;
}
.st-detail-body .mind-advisory-sub:first-child {
  margin-top: 0;
}
.st-content-store {
  display: none !important;
}
@keyframes st-dash {
  to { stroke-dashoffset: -100; }
}
@keyframes st-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.35; }
}
@keyframes st-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.st-node {
  opacity: 0;
}
.st-tree-visible .st-node {
  animation: st-fade-in 0.5s ease forwards;
}
.st-tree-visible .st-node.st-coming {
  animation: st-fade-in 0.5s ease forwards, st-pulse 3s 0.6s ease-in-out infinite;
}
.st-tree-visible .st-core-ring .st-node {
  animation-delay: 0s;
}
.st-tree-visible .st-branch:nth-child(2) .st-node--branch { animation-delay: 0.1s; }
.st-tree-visible .st-branch:nth-child(3) .st-node--branch { animation-delay: 0.15s; }
.st-tree-visible .st-branch:nth-child(4) .st-node--branch { animation-delay: 0.2s; }
.st-tree-visible .st-branch:nth-child(5) .st-node--branch { animation-delay: 0.25s; }
.st-tree-visible .st-branch:nth-child(6) .st-node--branch { animation-delay: 0.3s; }
.st-tree-visible .st-branch:nth-child(7) .st-node--branch { animation-delay: 0.35s; }
.st-tree-visible .st-node--leaf { animation-delay: 0.5s; }
.neural-canvas {
  position: relative;
  width: 100%;
  max-width: 880px;
  height: 880px;
  margin: 0 auto;
}
.neural-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(196, 168, 98, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 25%, transparent 78%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 25%, transparent 78%);
}
.neural-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.neural-paths path {
  fill: none;
  stroke-width: 1.1;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.7s ease, stroke-width 0.3s ease;
  filter: drop-shadow(0 0 5px var(--path-color, rgba(196, 168, 98, 0.4)));
}
.neural-paths path.drawn {
  opacity: 0.65;
}
.neural-paths path.flowing {
  stroke-dasharray: 3 7;
  animation: neuralPulse 4s linear infinite;
}
.neural-paths path.highlighted {
  opacity: 1;
  stroke-width: 1.8;
}
.neural-paths path[data-family="lab"]          { stroke: #2ea9a1; --path-color: rgba(46, 169, 161, 0.45); }
.neural-paths path[data-family="memory"]       { stroke: #a78bfa; --path-color: rgba(167, 139, 250, 0.45); }
.neural-paths path[data-family="framework"]    { stroke: #c4a862; --path-color: rgba(196, 168, 98, 0.45); }
.neural-paths path[data-family="intelligence"] { stroke: #fbbf24; --path-color: rgba(251, 191, 36, 0.45); }
.neural-paths path[data-family="talos"]        { stroke: #e05252; --path-color: rgba(224, 82, 82, 0.45); }
.neural-paths path[data-family="identity"]     { stroke: #5a8ab5; --path-color: rgba(90, 138, 181, 0.45); }
.neural-paths path[data-family="ping"]         { stroke: #34d399; --path-color: rgba(52, 211, 153, 0.45); }
.neural-paths path[data-family="community"]    { stroke: #d97a8e; --path-color: rgba(217, 122, 142, 0.45); }
.branch-group {
  display: contents;
}
.leaf-cluster {
  display: contents;
}
.neuron {
  position: absolute;
  top: 50%;
  left: 50%;
  background: linear-gradient(180deg, #16191f 0%, #0c0e12 100%);
  border: 1px solid rgba(196, 168, 98, 0.18);
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-mono);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.neuron::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: var(--neuron-glow, transparent);
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.neuron:hover::before { opacity: 0.55; }
.neuron.st-active {
  border-color: var(--neuron-color, #c4a862);
  background: linear-gradient(180deg, #1c2028 0%, #0e1115 100%);
  z-index: 15;
}
.neuron.st-active::before { opacity: 0.75; }
.neuron-label {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: center;
  line-height: 1.1;
}
.neuron:hover .neuron-label,
.neuron.st-active .neuron-label {
  color: var(--text-primary);
}
.neuron-glyph {
  font-size: 1.125rem;
  color: var(--neuron-color, #c4a862);
  line-height: 1;
}
.neuron--core {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #1a1d24 0%, #0c0e12 100%);
  border: 1.5px solid rgba(196, 168, 98, 0.45);
  --neuron-color: #c4a862;
  --neuron-glow: radial-gradient(circle, rgba(196, 168, 98, 0.5), transparent);
  transform: translate(-50%, -50%);
  z-index: 10;
  padding: 0;
  gap: 0;
}
.neuron--core::before {
  inset: -12px;
  filter: blur(20px);
  opacity: 0.4;
}
.neuron--core:hover::before { opacity: 0.7; }
.neuron--core:hover {
  transform: translate(-50%, -50%) scale(1.05);
}
.neuron--core .brain-svg {
  width: 110px;
  height: 110px;
  display: block;
  overflow: visible;
}
.neuron-label--core {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--gold, #c4a862);
  text-transform: uppercase;
}
.brain-hemi { transition: stroke-opacity 0.6s ease; }
.neuron--core:hover .brain-hemi { stroke-opacity: 0.8; }
.synapse {
  transform-origin: center;
  transform-box: fill-box;
  animation: synapsePulse 2.6s ease-in-out infinite;
}
.synapse-1 { animation-delay: 0s; }
.synapse-2 { animation-delay: 0.4s; }
.synapse-3 { animation-delay: 0.8s; }
.synapse-4 { animation-delay: 1.2s; }
.synapse-5 { animation-delay: 1.6s; }
.synapse-6 { animation-delay: 2.0s; }
.synapse-core { animation-delay: 0.2s; animation-duration: 1.8s; }
.brain-core-glow {
  animation: coreGlow 3s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.neuron--branch {
  width: 108px;
  min-height: 64px;
  border-radius: 14px;
  border-width: 1.5px;
  transform: translate(-50%, -50%)
             rotate(var(--angle, 0deg))
             translateY(calc(-1 * var(--radius, 0px)))
             rotate(calc(-1 * var(--angle, 0deg)));
}
.neuron--branch:hover {
  transform: translate(-50%, -50%)
             rotate(var(--angle, 0deg))
             translateY(calc(-1 * var(--radius, 0px)))
             rotate(calc(-1 * var(--angle, 0deg)))
             scale(1.08);
}
.neuron--branch.st-active {
  transform: translate(-50%, -50%)
             rotate(var(--angle, 0deg))
             translateY(calc(-1 * var(--radius, 0px)))
             rotate(calc(-1 * var(--angle, 0deg)))
             scale(1.1);
}
.neuron--leaf {
  min-width: 92px;
  min-height: 36px;
  border-radius: 10px;
  font-size: 0.5625rem;
  padding: 0.3rem 0.7rem;
  background: linear-gradient(180deg, rgba(20, 23, 29, 0.9) 0%, rgba(10, 12, 16, 0.95) 100%);
  border-color: rgba(196, 168, 98, 0.1);
  transform: translate(-50%, -50%)
             rotate(var(--angle, 0deg))
             translateY(calc(-1 * var(--radius, 0px)))
             rotate(calc(-1 * var(--angle, 0deg)));
}
.neuron--leaf:hover {
  transform: translate(-50%, -50%)
             rotate(var(--angle, 0deg))
             translateY(calc(-1 * var(--radius, 0px)))
             rotate(calc(-1 * var(--angle, 0deg)))
             scale(1.1);
}
.neuron--leaf.st-active {
  transform: translate(-50%, -50%)
             rotate(var(--angle, 0deg))
             translateY(calc(-1 * var(--radius, 0px)))
             rotate(calc(-1 * var(--angle, 0deg)))
             scale(1.12);
}
.neuron--leaf .neuron-label {
  font-size: 0.5625rem;
}
.neuron[data-family="lab"]          { --neuron-color: #2ea9a1; --neuron-glow: radial-gradient(circle, rgba(46, 169, 161, 0.55), transparent); }
.neuron[data-family="memory"]       { --neuron-color: #a78bfa; --neuron-glow: radial-gradient(circle, rgba(167, 139, 250, 0.55), transparent); }
.neuron[data-family="framework"]    { --neuron-color: #c4a862; --neuron-glow: radial-gradient(circle, rgba(196, 168, 98, 0.55), transparent); }
.neuron[data-family="intelligence"] { --neuron-color: #fbbf24; --neuron-glow: radial-gradient(circle, rgba(251, 191, 36, 0.55), transparent); }
.neuron[data-family="talos"]        { --neuron-color: #e05252; --neuron-glow: radial-gradient(circle, rgba(224, 82, 82, 0.55), transparent); }
.neuron[data-family="identity"]     { --neuron-color: #5a8ab5; --neuron-glow: radial-gradient(circle, rgba(90, 138, 181, 0.55), transparent); }
.neuron[data-family="ping"]         { --neuron-color: #34d399; --neuron-glow: radial-gradient(circle, rgba(52, 211, 153, 0.55), transparent); }
.neuron[data-family="community"]    { --neuron-color: #d97a8e; --neuron-glow: radial-gradient(circle, rgba(217, 122, 142, 0.55), transparent); }
.neuron[data-family]:hover {
  border-color: var(--neuron-color);
}
.neuron[data-family].st-active {
  border-color: var(--neuron-color);
}
.neuron[data-family]:hover .neuron-glyph,
.neuron[data-family].st-active .neuron-glyph {
  filter: drop-shadow(0 0 6px var(--neuron-color));
}
.neural-canvas .neuron {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, border-color 0.3s ease;
}
.neural-canvas.st-tree-visible .neuron {
  opacity: 1;
}
.neural-canvas .neuron--core { transition-delay: 0s; }
.neural-canvas .neuron--branch { transition-delay: 0.3s; }
.neural-canvas .neuron--leaf { transition-delay: 0.6s; }

/* === mind.html inline style block === */
    .mem-trigger {
      display:inline-flex;flex-direction:column;align-items:center;gap:0.75rem;
      cursor:pointer;padding:1.5rem;border-radius:50%;
      border:1px solid var(--border);background:var(--surface);
      transition:all 0.4s cubic-bezier(0.4,0,0.2,1);
      position:relative;
    }
    .mem-trigger:hover {
      border-color:rgba(46,169,161,0.4);
      background:rgba(46,169,161,0.05);
      box-shadow:0 0 40px rgba(46,169,161,0.1);
      transform:scale(1.05);
    }
    .mem-trigger:hover .mem-core { opacity:1; }
    .mem-trigger:hover .mem-node { opacity:1; }
    .mem-trigger:hover .mem-line { opacity:0.6; }
    .mem-trigger:hover .mem-ring { opacity:0.5; }
    .mem-label {
      font-family:var(--font-mono);font-size:0.5625rem;color:var(--text-muted);
      letter-spacing:0.15em;text-transform:uppercase;
      position:absolute;bottom:-1.5rem;
      transition:color 0.3s;
    }
    .mem-trigger:hover .mem-label { color:var(--accent); }

    /* Subtle rotation animation */
    .mem-ring-outer { animation:memSpin 20s linear infinite; transform-origin:40px 40px; }
    .mem-ring-mid { animation:memSpin 15s linear infinite reverse; transform-origin:40px 40px; }
    .mem-ring-inner { animation:memPulse 3s ease-in-out infinite; transform-origin:40px 40px; }
    .mem-core { animation:memPulse 2s ease-in-out infinite; transform-origin:40px 40px; }
    .mem-node { animation:memFloat 4s ease-in-out infinite; }
    .mem-node:nth-child(5) { animation-delay:0.5s; }
    .mem-node:nth-child(6) { animation-delay:1s; }
    .mem-node:nth-child(7) { animation-delay:1.5s; }
    .mem-node:nth-child(8) { animation-delay:2s; }
    .mem-node:nth-child(9) { animation-delay:2.5s; }

    @keyframes memSpin { to { transform:rotate(360deg); } }
    @keyframes memPulse { 0%,100%{opacity:0.3}50%{opacity:0.8} }
    @keyframes memFloat { 0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)} }

    /* Modal */
    .mem-modal {
      display:none;position:fixed;top:0;left:0;right:0;bottom:0;
      background:rgba(0,0,0,0);z-index:9999;
      align-items:center;justify-content:center;padding:20px;cursor:pointer;
      transition:background 0.4s;
    }
    .mem-modal.open { display:flex;background:rgba(0,0,0,0.92); }
    .mem-modal-inner {
      position:relative;max-width:1000px;max-height:90vh;overflow:auto;
      border-radius:12px;background:#0a0c10;border:1px solid #1a1e28;cursor:default;
      transform:scale(0.3);opacity:0;
      transition:transform 0.5s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease;
    }
    .mem-modal.open .mem-modal-inner { transform:scale(1);opacity:1; }
    .mem-close {
      position:sticky;top:12px;float:right;margin:12px;
      background:rgba(10,12,16,0.8);border:1px solid #1a1e28;border-radius:6px;
      color:#555d6b;font-size:1.25rem;cursor:pointer;z-index:1;
      line-height:1;padding:4px 10px;transition:all 0.2s;
    }
    .mem-close:hover { color:#e8ecf2;border-color:#2ea9a1; }

/* ============================================================
   MOBILE — vertical accordion (added 2026-05-26 per mobile UX review)
   Below 768px the skill-tree becomes a stacked list. Branches are
   tappable full-width rows; leaves reveal in a grid when expanded
   via .st-expanded (toggled by the existing JS isMobile branch).
   ============================================================ */
@media (max-width: 768px) {
  .skill-tree-section { padding: 0 0 2rem; }
  .skill-tree-section .container { padding: 0 1rem; }

  .neural-canvas {
    height: auto !important;
    min-height: 0;
    display: block;
    padding: 1.5rem 0 0;
  }
  .neural-paths,
  .neural-grid { display: none !important; }

  /* Core: static, centered, smaller */
  .neural-canvas .neuron--core {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    height: 180px;
  }
  .neural-canvas .neuron--core .brain-svg {
    width: 130px;
    height: 130px;
  }
  .neuron-label--core {
    font-size: 0.75rem;
    margin-top: 0.5rem;
  }

  /* Branch groups stack vertically */
  .branch-group {
    display: block !important;
    margin: 0.5rem 0;
    border-top: 1px solid var(--border);
  }
  .branch-group:last-child {
    border-bottom: 1px solid var(--border);
  }

  /* Branch buttons become full-width row triggers */
  .neural-canvas .neuron--branch {
    position: static !important;
    transform: none !important;
    width: 100%;
    min-height: 56px;
    padding: 1rem 1.25rem;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    justify-content: flex-start;
    font-size: 0.9375rem;
    border: none;
  }
  .neural-canvas .neuron--branch .neuron-glyph {
    font-size: 1.25rem;
    flex-shrink: 0;
  }
  .neural-canvas .neuron--branch .neuron-label {
    margin-left: 0;
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
  }
  /* Chevron indicator (after label) */
  .neural-canvas .neuron--branch::after {
    content: '+';
    margin-left: auto;
    font-family: var(--font-mono);
    color: var(--gold);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
  }
  .branch-group.st-expanded .neural-canvas .neuron--branch::after,
  .branch-group.st-expanded > .neuron--branch::after {
    transform: rotate(45deg);
  }

  /* Leaf cluster — hidden by default, grid when branch expanded */
  .leaf-cluster {
    display: none !important;
    padding: 0 1rem 1rem 2.75rem;
  }
  .branch-group.st-expanded .leaf-cluster,
  .branch-group.st-expanded > .leaf-cluster {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .neural-canvas .neuron--leaf {
    position: static !important;
    transform: none !important;
    width: 100%;
    min-height: 44px;
    padding: 0.625rem 0.875rem;
    text-align: left;
    border-radius: 6px;
    background: rgba(196, 168, 98, 0.05);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .neural-canvas .neuron--leaf .neuron-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    text-transform: none;
  }
  .neural-canvas .neuron--leaf:active,
  .neural-canvas .neuron--leaf.st-active {
    background: rgba(196, 168, 98, 0.12);
    border-color: var(--gold);
  }

  /* Detail panel: full-screen modal style on mobile */
  .st-detail {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-left: none !important;
    border-radius: 0 !important;
  }
}

/* ============================================================
   prefers-reduced-motion (added 2026-05-26 per UX review)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .neural-paths path,
  .neural-paths path.flowing,
  .synapse,
  .brain-hemi,
  .brain-core-glow,
  .neuron,
  .st-detail,
  .st-overlay {
    animation: none !important;
    transition: none !important;
  }
}
