<style>
/* =============================================================== *
 * NEURAL — Neural Synapse & Lightning Pulse
 * =============================================================== */
:root {
  --axon-black: #0a0c10;
  --axon-deep: #0a0c10;
  --myelin: #e8edf2;
  --pulse-blue: #4da6ff;
  --spark-yellow: #ffd84d;
  --sodium: #a06aff;
  --potassium: #4dd0e1;
  --receptor: #4dff9e;
  --voltage: #50a0ff;
  --border-glow: rgba(80,160,255,0.4);
  --shadow-glow: 0 0 15px rgba(60,140,255,0.3);
  --text-primary: #e8edf2;
  --text-body: #b8c6d8;
  --text-muted: #6a7a90;
  --ff-head: "Orbitron", "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Rajdhani", "Inter", "Segoe UI", system-ui, sans-serif;
  --ff-mono: "Share Tech Mono", "JetBrains Mono", "Consolas", monospace;
  --neural-border: 1px solid var(--border-glow);
  --neural-shadow: var(--shadow-glow);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--axon-black); color: var(--text-body);
  font-family: var(--ff-body); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(77,166,255,0.10) 0%, transparent 18%),
    radial-gradient(circle at 88% 42%, rgba(160,106,255,0.08) 0%, transparent 22%),
    radial-gradient(circle at 32% 78%, rgba(77,208,225,0.07) 0%, transparent 20%),
    radial-gradient(circle at 70% 88%, rgba(255,216,77,0.05) 0%, transparent 16%),
    radial-gradient(circle at 50% 50%, rgba(20,40,80,0.4) 0%, var(--axon-black) 100%);
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 { font-family: var(--ff-head); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; color: var(--text-primary); letter-spacing: 0.04em; }
h1 { font-size: clamp(28px, 4vw, 46px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: clamp(17px, 1.8vw, 21px); }
a { color: var(--pulse-blue); text-decoration: none; transition: color .2s, text-shadow .2s; }
a:hover { color: var(--spark-yellow); text-shadow: 0 0 8px rgba(255,216,77,0.5); }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; color: var(--text-body); }
.mono { font-family: var(--ff-mono); }
.muted { color: var(--text-muted); }

/* ambient canvas */
#neural-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .7; }
#main, .mito-main, .site-header, .site-footer { position: relative; z-index: 1; }

/* scrollbar — vertical conducting current beam */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: rgba(10,12,16,0.8); border-left: 1px solid rgba(80,160,255,0.2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pulse-blue), var(--sodium));
  border-radius: 8px; border: 2px solid rgba(232,237,242,0.3);
  box-shadow: 0 0 10px rgba(77,166,255,0.6);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--spark-yellow), var(--pulse-blue)); }

/* layout */
.layout-with-sidebar { display: grid; grid-template-columns: 1fr; max-width: 1340px; margin: 0 auto; gap: 28px; padding: 0 18px; }
@media (min-width: 1000px) { .layout-with-sidebar { grid-template-columns: 1fr 320px; } }
.layout-main { min-width: 0; }
.eyebrow { display:inline-block; font-family: var(--ff-head); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--spark-yellow); background: rgba(10,12,16,0.7); padding: 6px 14px; border: var(--neural-border); border-radius: 4px; box-shadow: var(--neural-shadow); }
.section-head { margin: 32px 0 18px; }
.section-head h2 { margin-top: 10px; color: var(--text-primary); }
.section-head p { color: var(--text-body); max-width: 65ch; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,12,16,0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-glow); box-shadow: var(--neural-shadow); }
.header-inner { display: flex; align-items: center; gap: 16px; max-width: 1340px; margin: 0 auto; padding: 12px 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 52px; height: 52px; filter: drop-shadow(0 0 8px rgba(77,166,255,0.5)); }
.brand-mark-pulse { transform-origin: 40px 40px; }
.brand-name { font-family: var(--ff-head); font-weight: 700; font-size: 22px; letter-spacing: .18em; display:block; color: var(--text-primary); text-shadow: 0 0 10px rgba(77,166,255,0.6); }
.brand-tag { font-size: 10px; letter-spacing: .22em; color: var(--spark-yellow); text-transform: uppercase; font-family: var(--ff-head); font-weight: 600; }
.main-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
  font-family: var(--ff-head); font-size: 12px; font-weight: 600; letter-spacing: .16em;
  padding: 9px 16px; color: var(--text-body); border: 1px solid transparent;
  border-radius: 4px; transition: all .2s; text-transform: uppercase;
}
.main-nav a:hover { background: rgba(77,166,255,0.12); color: var(--pulse-blue); border-color: var(--border-glow); box-shadow: var(--neural-shadow); }
.main-nav a.active { background: rgba(77,166,255,0.2); color: var(--spark-yellow); border-color: var(--pulse-blue); box-shadow: 0 0 12px rgba(77,166,255,0.5); }
.nav-toggle { display:none; font-family: var(--ff-head); font-weight:700; letter-spacing:.14em; background: rgba(77,166,255,0.2); color: var(--myelin); border:1px solid var(--border-glow); padding:8px 14px; cursor:pointer; border-radius:4px; text-transform: uppercase; }
@media (max-width: 820px) {
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: flex; }
}

/* ---------- HERO: Synaptic Discharge Field & Action Potential ---------- */
.synaptic-cleft {
  position: relative; margin: 24px 0; padding: 26px 22px 30px;
  background: radial-gradient(ellipse at center, rgba(20,40,80,0.8) 0%, var(--axon-black) 100%);
  border: var(--neural-border); border-radius: 12px;
  box-shadow: var(--neural-shadow), inset 0 0 40px rgba(10,12,16,0.6);
  overflow: hidden;
}
.presynaptic-line { position: absolute; top: 6px; left: 0; right: 0; height: 24px; z-index: 1; pointer-events: none; opacity: 0.6; }
.receptor-array { position: absolute; bottom: 4px; left: 0; right: 0; height: 22px; display: flex; justify-content: space-around; align-items: flex-end; z-index: 1; pointer-events: none; }
.receptor-protein { width: 16px; height: 18px; background: #1a3a5c; clip-path: polygon(50% 0%, 100% 100%, 0% 100%); opacity: 0.7; transition: background .3s; }
.synaptic-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; max-width: 880px; margin: 0 auto;
}
@media (max-width: 700px) { .synaptic-grid { grid-template-columns: repeat(2, 1fr); } }

/* synaptic vesicle — floating spherical vesicle */
.synaptic-vesicle {
  position: relative; aspect-ratio: 1 / 1; cursor: pointer;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(200,220,255,0.6), rgba(60,120,200,0.4));
  border: 1px solid rgba(150,200,255,0.5);
  box-shadow: 0 0 15px rgba(60,140,255,0.3), inset 0 0 20px rgba(10,12,16,0.4);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
  display: flex; align-items: center; justify-content: center;
}
.synaptic-vesicle:hover { box-shadow: 0 0 30px rgba(255,216,77,0.7), inset 0 0 20px rgba(10,12,16,0.4); }
.synaptic-vesicle .vesicle-image {
  width: 86%; height: 86%; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(232,237,242,0.4);
  box-shadow: 0 0 12px var(--chamber-accent, var(--pulse-blue));
  filter: contrast(1.1) saturate(1.1); transition: transform .3s;
}
/* amino-acid molecule light points ringing the vesicle */
.synaptic-vesicle::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 2%, var(--spark-yellow) 2px, transparent 3px),
    radial-gradient(circle at 98% 50%, var(--sodium) 2px, transparent 3px),
    radial-gradient(circle at 50% 98%, var(--potassium) 2px, transparent 3px),
    radial-gradient(circle at 2% 50%, var(--receptor) 2px, transparent 3px),
    radial-gradient(circle at 80% 12%, var(--spark-yellow) 1.5px, transparent 2px),
    radial-gradient(circle at 12% 80%, var(--potassium) 1.5px, transparent 2px);
  opacity: 0.85;
}
.synaptic-vesicle::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 14px; height: 14px; z-index: 3;
  background: radial-gradient(circle, var(--sodium), transparent 60%);
  border-radius: 50%; opacity: 0.7;
}
.vesicle-wrap { display: flex; flex-direction: column; align-items: center; }
.vesicle-label { position: relative; z-index: 3; margin-top: 10px; text-align: center; }
.vesicle-label b { display:block; font-family: var(--ff-head); font-size: 12px; color: var(--text-primary); }
.vesicle-label span { color: var(--spark-yellow); font-family: var(--ff-mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* action potential waveform band across vesicles */
.ap-waveform { position: absolute; top: 50%; left: 0; width: 40%; height: 30px; z-index: 4; pointer-events: none; transform: translateY(-50%); }
.depolarization-band { position: absolute; top: 0; bottom: 0; width: 40px; z-index: 1; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,216,77,0.35), transparent); }

/* ---------- synapse strip ---------- */
.synapse-strip { display:flex; gap:8px; flex-wrap:wrap; margin: 22px 0; }
.synapse-strip a {
  font-family: var(--ff-head); font-size: 11px; font-weight: 600; letter-spacing: .14em;
  padding: 8px 14px; background: rgba(10,12,16,0.7); color: var(--text-body);
  border: var(--neural-border); border-radius: 4px; transition: all .2s; text-transform: uppercase;
}
.synapse-strip a:hover, .synapse-strip a.active { background: rgba(77,166,255,0.2); color: var(--spark-yellow); border-color: var(--pulse-blue); box-shadow: var(--neural-shadow); }

/* ---------- bands ---------- */
.energy-band { margin: 36px 0; padding: 22px; background: rgba(10,12,16,0.6); border: var(--neural-border); border-radius: 12px; box-shadow: var(--neural-shadow); position: relative; overflow: hidden; }
.energy-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.10; background-image: repeating-linear-gradient(90deg, transparent 0 18px, rgba(77,166,255,0.4) 18px 19px); }
.band-head { position: relative; z-index: 1; margin-bottom: 14px; }
.band-title { color: var(--spark-yellow); }
.band-sub { color: var(--text-muted); font-family: var(--ff-mono); font-size: 12px; }
.card-stream { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.related-stream { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---------- dendritic tree ---------- */
.dendritic-tree {
  position: relative; padding: 22px; margin: 24px 0;
  background: rgba(10,12,16,0.5); border: var(--neural-border); border-radius: 12px;
  box-shadow: var(--neural-shadow); overflow: hidden;
}
.dendritic-tree::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g stroke='%234da6ff' stroke-width='0.5' fill='none'><path d='M10 100 Q60 40 120 80 T190 60'/><path d='M10 100 Q50 120 90 150 T180 140'/><path d='M10 100 Q80 90 130 110 T190 100'/><circle cx='10' cy='100' r='3' fill='%23ffd84d'/><circle cx='120' cy='80' r='3' fill='%23a06aff'/><circle cx='130' cy='110' r='3' fill='%234dd0e1'/><circle cx='90' cy='150' r='3' fill='%234dff9e'/></g></svg>");
  background-size: 360px 360px;
}

/* Card 1 — Node of Ranvier training card */
.node-of-ranvier {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 16px; min-height: 300px; cursor: pointer;
  background: var(--axon-black); border: 2px solid var(--pulse-blue);
  border-radius: 10px; box-shadow: 0 0 25px rgba(77,166,255,0.5);
  overflow: hidden; transition: transform .25s, box-shadow .25s; z-index: 1;
}
.node-of-ranvier:hover { transform: translateY(-4px); box-shadow: 0 0 35px rgba(255,216,77,0.6); border-color: var(--spark-yellow); }
.node-image-wrap { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; border: 1px solid var(--border-glow); box-shadow: 0 0 12px var(--chamber-accent, var(--pulse-blue)); }
.node-image-wrap img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) saturate(1.05); }
.sodium-dots { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.sodium-dot { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--sodium); box-shadow: 0 0 6px var(--sodium); opacity: 0.6; }
.myelin-segment { position: relative; height: 8px; margin: 4px 0; background: linear-gradient(90deg, transparent, rgba(232,237,242,0.25), transparent); border-radius: 4px; }
.node-title { font-family: var(--ff-head); font-weight: 700; font-size: 15px; color: var(--text-primary); }
.node-meta { font-family: var(--ff-mono); font-size: 11px; color: var(--spark-yellow); letter-spacing: .04em; font-weight: 700; }
.node-excerpt { font-size: 12px; color: var(--text-body); opacity: .9; }

/* Card 2 — Axon Trunk feature card */
.axon-trunk {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 0;
  border: var(--neural-border); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #1a1c20, var(--axon-black));
  box-shadow: var(--neural-shadow); transition: transform .25s;
}
.axon-trunk:hover { transform: translateY(-3px); border-color: var(--pulse-blue); }
@media (min-width: 640px) { .axon-trunk { grid-template-columns: 240px 1fr; } }
.axon-img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; filter: contrast(1.1) saturate(1.05); }
.axon-body { padding: 18px; position: relative; }
.axon-body::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.12; background-image: repeating-linear-gradient(90deg, transparent 0 14px, rgba(77,166,255,0.6) 14px 15px); }
.axon-body h3 { color: var(--text-primary); position: relative; z-index: 1; }
.axon-meta { font-family: var(--ff-mono); font-size: 12px; color: var(--spark-yellow); letter-spacing: .04em; font-weight: 700; position: relative; z-index: 1; }
.axon-excerpt { font-size: 14px; color: var(--text-body); position: relative; z-index: 1; }

/* Card 3 — mini vesicle quick news */
.mini-vesicle {
  position: relative; display: flex; align-items: center; gap: 14px;
  background: radial-gradient(circle at 16% 50%, rgba(77,166,255,0.22), transparent 40%), rgba(10,12,16,0.7);
  border: var(--neural-border); padding: 14px 18px 14px 60px;
  border-radius: 8px; box-shadow: var(--neural-shadow); transition: transform .2s;
  min-height: 70px; overflow: hidden;
}
.mini-vesicle:hover { transform: translateX(4px); border-color: var(--spark-yellow); }
.mini-orb { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, rgba(200,220,255,0.8), rgba(60,120,200,0.5)); border: 1px solid rgba(150,200,255,0.6); box-shadow: 0 0 12px var(--pulse-blue); }
.mini-title { font-family: var(--ff-head); font-weight: 700; font-size: 14px; color: var(--text-primary); }
.mini-meta { font-family: var(--ff-mono); font-size: 11px; color: var(--spark-yellow); letter-spacing: .04em; font-weight: 700; }

/* stamped tag chips */
.stamped-tags-row { display:flex; flex-wrap:wrap; gap:8px; margin: 14px 0; position: relative; z-index: 1; }
.stamped-tag {
  display:inline-flex; align-items:center; gap:6px;
  background: rgba(77,166,255,0.18); color: var(--spark-yellow);
  padding: 7px 14px; font-family: var(--ff-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(77,166,255,0.5); border-radius: 4px;
  transition: transform .15s, box-shadow .15s;
}
.stamped-tag:hover { transform: translateY(-2px); box-shadow: 0 0 12px rgba(77,166,255,0.5); }

/* ---------- sidebar ---------- */
.layout-sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-block { background: rgba(10,12,16,0.7); border: var(--neural-border); box-shadow: var(--neural-shadow); padding: 16px; border-radius: 10px; backdrop-filter: blur(6px); }
.side-block h3, .side-block h4 { font-family: var(--ff-head); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--spark-yellow); border-bottom: 1px solid var(--border-glow); padding-bottom: 8px; margin-bottom: 12px; }

/* EMG monitor */
.emg-monitor { background: var(--axon-black); border: 1px solid #1a3a5c; border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.emg-channel { position: relative; height: 40px; overflow: hidden; background: rgba(20,40,80,0.4); border-radius: 4px; border: 1px solid rgba(80,160,255,0.2); transition: transform .2s; }
.emg-channel.active { transform: scale(1.04); border-color: var(--spark-yellow); box-shadow: 0 0 12px rgba(255,216,77,0.4); }
.emg-trace { position: absolute; top: 0; left: 0; height: 100%; width: 200%; }
.emg-trace svg { width: 100%; height: 100%; display: block; }
.emg-meta { font-family: var(--ff-mono); font-size: 10px; color: var(--text-muted); display: flex; justify-content: space-between; }
.scent-hint { font-size: 11px; color: var(--text-muted); margin-top: 8px; font-style: italic; text-align: center; }

/* neural spectrum comments */
.spectrum-chart { display: flex; align-items: flex-end; gap: 6px; height: 100px; padding: 8px; background: rgba(20,40,80,0.3); border-radius: 6px; border: 1px solid rgba(80,160,255,0.2); }
.spectrum-bar { flex: 1; border-radius: 3px 3px 0 0; min-height: 8px; transition: height .4s; }
.spectrum-bar.excite { background: linear-gradient(180deg, var(--spark-yellow), rgba(255,216,77,0.3)); box-shadow: 0 0 8px rgba(255,216,77,0.5); }
.spectrum-bar.agree { background: linear-gradient(180deg, var(--receptor), rgba(77,255,158,0.3)); box-shadow: 0 0 8px rgba(77,255,158,0.5); }
.spectrum-bar.question { background: linear-gradient(180deg, var(--pulse-blue), rgba(77,166,255,0.3)); box-shadow: 0 0 8px rgba(77,166,255,0.5); }
.spectrum-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.spectrum-item { font-family: var(--ff-mono); font-size: 11px; color: var(--text-body); padding: 6px 10px; background: rgba(10,12,16,0.6); border-left: 3px solid var(--pulse-blue); border-radius: 3px; }
.spectrum-item .sp-meta { color: var(--spark-yellow); display: block; font-size: 10px; }

/* H-reflex voting */
.h-reflex-vote { position: relative; padding: 8px; }
.h-reflex-readout { font-family: var(--ff-mono); font-size: 16px; font-weight: bold; color: var(--spark-yellow); text-align: center; text-shadow: 0 0 8px rgba(255,216,77,0.5); margin: 8px 0; }
.h-reflex-option { margin: 10px 0; }
.h-reflex-curve { height: 28px; width: 100%; opacity: 0.4; transform-origin: left center; }
.h-reflex-curve svg { width: 100%; height: 100%; display: block; }
.h-reflex-stim { display: block; width: 100%; padding: 8px; background: rgba(77,166,255,0.2); color: var(--myelin); border: 1px solid var(--border-glow); font-family: var(--ff-head); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: 4px; transition: all .15s; }
.h-reflex-stim:hover { background: rgba(255,216,77,0.2); border-color: var(--spark-yellow); color: var(--spark-yellow); }
.ion-splash { position: absolute; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; left: 50%; top: 50%; }

/* firing frequency calendar */
.freq-calendar { position: relative; height: 110px; display: flex; align-items: flex-end; gap: 4px; padding: 8px; background: rgba(20,40,80,0.3); border-radius: 6px; border: 1px solid rgba(80,160,255,0.2); }
.freq-bar { flex: 1; background: linear-gradient(180deg, var(--pulse-blue), rgba(77,166,255,0.2)); border-radius: 3px 3px 0 0; box-shadow: 0 0 6px rgba(77,166,255,0.4); min-height: 4px; }
.freq-bar.today { background: linear-gradient(180deg, var(--spark-yellow), rgba(255,216,77,0.2)); box-shadow: 0 0 10px rgba(255,216,77,0.6); }
.freq-axis-x { font-family: var(--ff-mono); font-size: 9px; color: var(--text-muted); letter-spacing: .12em; text-transform: uppercase; text-align: center; margin-top: 6px; }

/* ---------- pagination ---------- */
.pagination { display:flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pagination a, .pagination span { font-family: var(--ff-head); font-weight: 700; padding: 8px 14px; border: var(--neural-border); background: rgba(10,12,16,0.7); color: var(--text-body); border-radius: 4px; }
.pagination a:hover { background: rgba(77,166,255,0.2); color: var(--spark-yellow); border-color: var(--pulse-blue); box-shadow: var(--neural-shadow); }
.pagination .current { background: rgba(77,166,255,0.3); color: var(--spark-yellow); border-color: var(--pulse-blue); box-shadow: 0 0 12px rgba(77,166,255,0.5); }

/* ---------- detail page ---------- */
.detail-breadcrumb { font-family: var(--ff-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 16px; display:flex; gap:8px; flex-wrap: wrap; align-items: center; letter-spacing: .08em; }
.detail-breadcrumb a { color: var(--pulse-blue); }
.neural-detail { background: rgba(10,12,16,0.6); border: var(--neural-border); border-radius: 12px; box-shadow: var(--neural-shadow); padding: 26px; }
.detail-head { margin-bottom: 18px; }
.crista-tagline { font-family: var(--ff-mono); font-size: 12px; color: var(--spark-yellow); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.detail-title { color: var(--text-primary); text-shadow: 0 0 12px rgba(77,166,255,0.5); }
.detail-meta { font-family: var(--ff-mono); font-size: 13px; color: var(--text-muted); }
.meta-chamber { color: var(--pulse-blue); }
.meta-dot { color: var(--text-muted); margin: 0 6px; }
.meta-year { color: var(--text-body); }

.neural-seal { position: relative; width: 100%; max-width: 420px; margin: 0 auto 18px; aspect-ratio: 1; }
.seal-node { position: absolute; inset: 0; border: 2px solid var(--pulse-blue); border-radius: 12px; box-shadow: 0 0 25px var(--chamber-accent, var(--pulse-blue)); overflow: hidden; }
.seal-image { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) saturate(1.05); }
.seal-glow { position:absolute; inset:0; background: radial-gradient(circle at 30% 30%, rgba(77,166,255,0.3), transparent 60%); pointer-events: none; }

.neural-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 18px 0; }
.stat-block { background: rgba(10,12,16,0.7); border: var(--neural-border); padding: 10px 14px; border-radius: 6px; box-shadow: var(--neural-shadow); }
.stat-label { display: block; font-family: var(--ff-mono); font-size: 10px; color: var(--text-muted); letter-spacing: .12em; text-transform: uppercase; }
.stat-value { display: block; font-family: var(--ff-head); font-size: 20px; color: var(--spark-yellow); margin: 4px 0; }
.stat-value em { font-style: normal; font-size: 12px; color: var(--text-muted); }
.stat-bar { display: block; height: 4px; background: rgba(80,160,255,0.2); border-radius: 2px; overflow: hidden; }
.stat-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pulse-blue), var(--spark-yellow)); box-shadow: 0 0 6px var(--pulse-blue); }

.matrix-flow { margin: 18px 0; }
.flow-title { color: var(--text-primary); border-bottom: 1px solid var(--border-glow); padding-bottom: 8px; }
.matrix-text { font-size: 15px; line-height: 1.75; color: var(--text-body); margin: 0 0 1em; }
.matrix-list { list-style: none; padding: 0; }
.matrix-list li { padding: 8px 0; border-bottom: 1px dashed rgba(80,160,255,0.2); color: var(--text-body); }
.matrix-list li b { color: var(--spark-yellow); }

.ion-stamps { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.ion-chip { font-family: var(--ff-mono); font-size: 10px; padding: 4px 10px; background: rgba(77,166,255,0.18); color: var(--spark-yellow); border: 1px solid rgba(77,166,255,0.5); border-radius: 4px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }

.external-link { margin: 18px 0; }
.external-anchor { display: inline-block; padding: 10px 18px; background: rgba(77,166,255,0.2); color: var(--myelin); border: var(--neural-border); border-radius: 4px; font-family: var(--ff-head); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; box-shadow: var(--neural-shadow); }
.external-anchor:hover { background: rgba(255,216,77,0.2); color: var(--spark-yellow); border-color: var(--spark-yellow); }

.related-chamber { margin-top: 32px; }
.related-head { color: var(--spark-yellow); margin-bottom: 12px; }

/* ---------- static pages ---------- */
.static-hero { margin-bottom: 24px; }
.chamber-hero { background: rgba(10,12,16,0.6); border: var(--neural-border); border-radius: 12px; padding: 26px; box-shadow: var(--neural-shadow); }
.chamber-stamp { font-family: var(--ff-mono); font-size: 12px; color: var(--spark-yellow); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.chamber-title { color: var(--text-primary); text-shadow: 0 0 12px rgba(77,166,255,0.5); }
.chamber-count { font-family: var(--ff-mono); font-size: 13px; color: var(--text-muted); }
.static-lede { font-size: 17px; color: var(--text-body); max-width: 65ch; font-style: italic; }
.static-body { background: rgba(10,12,16,0.5); border: var(--neural-border); border-radius: 12px; padding: 22px; box-shadow: var(--neural-shadow); }
.static-section { margin-bottom: 22px; }
.static-section h2 { color: var(--spark-yellow); border-bottom: 1px solid var(--border-glow); padding-bottom: 8px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.contact-card { background: rgba(10,12,16,0.7); border: var(--neural-border); padding: 16px; border-radius: 8px; box-shadow: var(--neural-shadow); }
.contact-card h3 { color: var(--spark-yellow); }
.contact-link { font-family: var(--ff-mono); color: var(--pulse-blue); }

/* ---------- search ---------- */
.search-chamber { background: rgba(10,12,16,0.6); border: var(--neural-border); border-radius: 12px; padding: 22px; box-shadow: var(--neural-shadow); margin-top: 18px; }
.search-form { display: flex; align-items: center; gap: 8px; background: var(--axon-black); border: var(--neural-border); box-shadow: var(--neural-shadow); padding: 6px 10px; border-radius: 4px; }
.search-label { font-family: var(--ff-mono); font-size: 11px; color: var(--spark-yellow); letter-spacing: .12em; text-transform: uppercase; }
.search-input { flex: 1; border: none; background: transparent; font-family: var(--ff-mono); font-size: 14px; padding: 8px; outline: none; color: var(--myelin); }
.search-input::placeholder { color: var(--text-muted); }
.search-submit { padding: 8px 18px; background: rgba(77,166,255,0.25); color: var(--myelin); border: 1px solid var(--border-glow); font-family: var(--ff-head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: 4px; }
.search-submit:hover { background: rgba(255,216,77,0.25); color: var(--spark-yellow); border-color: var(--spark-yellow); }
.search-count { font-family: var(--ff-mono); font-size: 11px; color: var(--text-muted); margin-top: 10px; }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 12px; margin-top: 16px; }
.search-cell { display: flex; gap: 10px; background: rgba(10,12,16,0.7); border: var(--neural-border); padding: 10px; box-shadow: var(--neural-shadow); border-radius: 6px; }
.search-cell .sc-thumb { width: 56px; height: 64px; flex-shrink: 0; overflow: hidden; border: 1px solid var(--border-glow); border-radius: 4px; }
.search-cell .sc-thumb img { width:100%; height:100%; object-fit: cover; }
.search-cell .sc-meta { display:block; font-family: var(--ff-mono); font-size: 11px; color: var(--spark-yellow); letter-spacing: .04em; font-weight: 700; }
.search-cell .sc-body b { color: var(--text-primary); font-family: var(--ff-head); }

/* ---------- footer: Motor End Plate & Neural Archive ---------- */
.site-footer { position: relative; margin-top: 60px; background: var(--axon-black); border-top: 1px solid var(--border-glow); overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: repeating-linear-gradient(90deg, transparent 0 6px, rgba(80,160,255,0.08) 6px 7px);
}
.site-footer::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4;
  background-image:
    radial-gradient(circle at 6% 18%, var(--pulse-blue) 2px, transparent 3px),
    radial-gradient(circle at 22% 32%, var(--spark-yellow) 2px, transparent 3px),
    radial-gradient(circle at 40% 14%, var(--pulse-blue) 2px, transparent 3px),
    radial-gradient(circle at 58% 30%, var(--sodium) 2px, transparent 3px),
    radial-gradient(circle at 74% 16%, var(--pulse-blue) 2px, transparent 3px),
    radial-gradient(circle at 90% 34%, var(--spark-yellow) 2px, transparent 3px),
    radial-gradient(circle at 14% 70%, var(--pulse-blue) 2px, transparent 3px),
    radial-gradient(circle at 36% 82%, var(--sodium) 2px, transparent 3px),
    radial-gradient(circle at 62% 74%, var(--spark-yellow) 2px, transparent 3px),
    radial-gradient(circle at 84% 86%, var(--pulse-blue) 2px, transparent 3px);
}
.motor-end-plate { position: relative; padding: 32px 18px 24px; overflow: hidden; }
.endplate-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto; }

/* quantal vesicle (classic archive) */
.quantal-vesicle {
  position: relative; aspect-ratio: 1 / 1.1; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, rgba(60,120,200,0.3), rgba(10,12,16,0.6));
  border: var(--neural-border); box-shadow: var(--neural-shadow);
  border-radius: 10px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  padding: 12px; transition: all .25s;
}
.quantal-vesicle:hover { transform: translateY(-3px); border-color: var(--spark-yellow); box-shadow: 0 0 20px rgba(255,216,77,0.5); }
.quantal-vesicle img { position: relative; z-index: 2; width: 86%; height: 68%; object-fit: cover; border: 1px solid var(--border-glow); border-radius: 6px; opacity: .9; }
.quantal-vesicle .quantal-title { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-family: var(--ff-head); font-size: 11px; color: var(--text-primary); text-align: center; z-index: 3; padding: 0 6px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }

/* fiber type history */
.fiber-wall { position: relative; z-index: 1; max-width: 980px; margin: 24px auto 0; padding: 16px 18px; background: rgba(10,12,16,0.6); border: var(--neural-border); border-radius: 10px; }
.fiber-bundle { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fiber-tag { display: inline-block; padding: 5px 10px; font-family: var(--ff-mono); font-size: 10px; font-weight: 700; border-radius: 4px; letter-spacing: .12em; text-transform: uppercase; }
.fiber-i { background: rgba(216,58,42,0.3); color: #ff8a7a; border: 1px solid rgba(216,58,42,0.6); }
.fiber-ii { background: rgba(232,237,242,0.15); color: var(--myelin); border: 1px solid rgba(232,237,242,0.5); }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 1200px; margin: 0 auto; padding: 28px 18px; position: relative; z-index: 1; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-col h4 { font-family: var(--ff-head); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--spark-yellow); margin-bottom: 10px; border-bottom: 1px solid var(--border-glow); padding-bottom: 6px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; }
.footer-col a { color: var(--text-body); opacity: .9; }
.footer-col a:hover { opacity: 1; color: var(--spark-yellow); }
.neural-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.neural-logo .brand-mark { width: 52px; height: 52px; }
.neural-name { font-family: var(--ff-head); font-weight: 700; font-size: 20px; letter-spacing: .16em; color: var(--text-primary); text-shadow: 0 0 10px rgba(77,166,255,0.6); }
.neural-tag { font-size: 10px; letter-spacing: .18em; color: var(--spark-yellow); text-transform: uppercase; font-family: var(--ff-head); font-weight: 600; }

/* subscribe cell — microelectrode piercing fiber */
.subscribe-cell { position: relative; background: rgba(10,12,16,0.7); border: var(--neural-border); padding: 16px; margin-top: 12px; box-shadow: var(--neural-shadow); border-radius: 10px; overflow: hidden; }
.subscribe-form { display: flex; flex-direction: column; gap: 10px; }
.subscribe-form label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-family: var(--ff-head); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.subscribe-form input { padding: 10px; border: var(--neural-border); background: var(--axon-black); color: var(--myelin); font-family: var(--ff-mono); font-size: 14px; border-radius: 4px; }
.subscribe-form input:focus { outline: 1px solid var(--spark-yellow); box-shadow: 0 0 8px rgba(255,216,77,0.4); }
.stim-trigger { align-self: flex-start; padding: 12px 22px; background: rgba(77,166,255,0.25); color: var(--myelin); border: 1px solid var(--pulse-blue); font-family: var(--ff-head); font-weight: 700; letter-spacing: .14em; cursor: pointer; box-shadow: var(--neural-shadow); text-transform: uppercase; border-radius: 4px; }
.stim-trigger:hover { background: rgba(255,216,77,0.25); color: var(--spark-yellow); border-color: var(--spark-yellow); }
.subscribe-confirm { background: rgba(77,255,158,0.18); color: var(--receptor); padding: 12px; margin-top: 8px; font-family: var(--ff-head); font-size: 12px; letter-spacing: .1em; border: 1px solid rgba(77,255,158,0.5); text-align: center; border-radius: 4px; }
.subscribe-confirm::before { content: "DISCHARGE CONFIRMED "; color: var(--spark-yellow); font-weight: 700; }

.tagline-line { font-family: var(--ff-mono); font-size: 13px; letter-spacing: .16em; text-align: center; padding: 20px; border-top: 1px solid var(--border-glow); border-bottom: 1px solid var(--border-glow); color: var(--spark-yellow); display: flex; align-items: center; justify-content: center; gap: 12px; text-transform: uppercase; position: relative; z-index: 1; }
.footer-bottom { text-align: center; padding: 14px; font-family: var(--ff-mono); font-size: 11px; color: var(--text-muted); letter-spacing: .12em; text-transform: uppercase; position: relative; z-index: 1; }

/* exit arrow */
.exit-arrow { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; background: rgba(77,166,255,0.3); color: var(--myelin); border: 1px solid var(--pulse-blue); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; box-shadow: 0 0 18px rgba(77,166,255,0.5); z-index: 60; border-radius: 50%; }
.exit-arrow.show { opacity: 1; pointer-events: auto; }
.exit-arrow:hover { background: rgba(255,216,77,0.3); border-color: var(--spark-yellow); }
.exit-arrow svg { width: 22px; height: 22px; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity:1; transform:none; } }

@keyframes vesicle-fuse { 0% { transform: translateY(0); } 100% { transform: translateY(8px) scale(1.05); } }
@keyframes depolarization-wave { 0% { transform: translateX(-30%); opacity: 0; } 30% { opacity: 0.9; } 100% { transform: translateX(130%); opacity: 0; } }
@keyframes saltatory-conduction { 0%, 100% { box-shadow: 0 0 25px rgba(77,166,255,0.5); } 50% { box-shadow: 0 0 40px rgba(255,216,77,0.8); } }
@keyframes axoplasmic-flow { 0% { transform: translateY(0); opacity: 0.3; } 50% { opacity: 0.8; } 100% { transform: translateY(-20px); opacity: 0; } }
@keyframes exocytosis { 0% { transform: translateX(-30px) scale(0.4); opacity: 0; } 60% { transform: translateX(0) scale(1.1); opacity: 1; } 100% { transform: translateX(0) scale(1); opacity: 1; } }
@keyframes h-reflex { 0% { transform: scaleY(1); } 30% { transform: scaleY(1); } 60% { transform: scaleY(1.8); } 100% { transform: scaleY(1); } }

@media (max-width: 600px) {
  .card-stream { grid-template-columns: 1fr; }
  .synaptic-grid { grid-template-columns: 1fr; }
}
</style>