/* ============================================
   NEUROMORPHIC COMPUTING — RESEARCH REPORT 2026
   Retro-futuristic editorial design
   Palette: Deep void · Electric cyan · Warm white · Indigo
   Fonts: Syne (display) + Source Serif 4 (body)
   ============================================ */

:root {
  --void: #050810;
  --void-2: #0c1020;
  --void-3: #111827;
  --indigo: #1A1F3C;
  --indigo-light: #252d52;
  --cyan: #00E5FF;
  --cyan-dim: rgba(0, 229, 255, 0.15);
  --cyan-glow: rgba(0, 229, 255, 0.4);
  --amber: #FFB347;
  --amber-dim: rgba(255, 179, 71, 0.12);
  --warm-white: #EEE8E0;
  --warm-white-dim: rgba(238, 232, 224, 0.6);
  --warm-white-faint: rgba(238, 232, 224, 0.08);
  --border: rgba(238, 232, 224, 0.08);
  --border-cyan: rgba(0, 229, 255, 0.2);
  --nav-h: 52px;
  --toc-w: 220px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--void);
  color: var(--warm-white);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── Neural Canvas ── */
#neural-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ── Top Nav ── */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.topnav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  padding: 0 28px;
}

.nav-label {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.nav-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--warm-white);
  flex: 1;
}

.nav-meta {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  color: var(--warm-white-dim);
  letter-spacing: 0.05em;
}

/* ── Layout ── */
.layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-h);
  position: relative;
  z-index: 1;
}

/* ── TOC Rail ── */
.toc-rail {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  width: var(--toc-w);
  flex-shrink: 0;
  padding: 36px 0 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}

.toc-header {
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 0;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.toc-item:hover,
.toc-item.active {
  border-left-color: var(--cyan);
}

.toc-item.active .toc-num,
.toc-item.active .toc-text {
  color: var(--cyan);
}

.toc-item:hover .toc-text {
  color: var(--warm-white);
}

.toc-num {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: rgba(238, 232, 224, 0.3);
  letter-spacing: 0.05em;
  min-width: 22px;
  transition: color 0.25s;
}

.toc-text {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(238, 232, 224, 0.45);
  transition: color 0.25s;
  line-height: 1.3;
}

.toc-progress {
  margin-top: 24px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-right: 12px;
}

.toc-progress-bar {
  height: 100%;
  background: var(--cyan);
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--cyan-glow);
}

/* ── Main Content ── */
.content {
  flex: 1;
  min-width: 0;
}

/* ── Sections ── */
.section {
  padding: 100px 80px 100px 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.alt-bg {
  background: rgba(26, 31, 60, 0.25);
}

/* ── Hero ── */
.hero-section {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('../neuromorphic_bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 8, 16, 0.7) 0%,
    rgba(26, 31, 60, 0.4) 50%,
    rgba(5, 8, 16, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--warm-white);
  margin-bottom: 28px;
}

.hero-title em {
  font-style: italic;
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
  color: var(--cyan);
}

.hero-subtitle {
  font-size: 17px;
  font-weight: 300;
  color: var(--warm-white-dim);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px 0 0;
}

.stat:first-child { padding-left: 0; }

.stat-val {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: rgba(238, 232, 224, 0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin: 0 32px 0 0;
  flex-shrink: 0;
}

.hero-cta {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--cyan);
  padding: 14px 32px;
  text-decoration: none;
  transition: all 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.hero-cta:hover {
  background: var(--warm-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--cyan-glow);
}

/* ── Chapter Sections ── */
.chapter-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 52px;
}

.ch-glyph {
  font-size: 32px;
  color: var(--cyan);
  opacity: 0.6;
  line-height: 1;
  margin-top: 4px;
  flex-shrink: 0;
}

.ch-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ch-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.ch-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--warm-white);
  line-height: 1.1;
}

.chapter-body {
  max-width: 760px;
}

.lead {
  font-size: 19px;
  font-weight: 400;
  color: var(--warm-white);
  line-height: 1.65;
  margin-bottom: 28px;
}

p {
  font-size: 16px;
  color: var(--warm-white-dim);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ── Callout Boxes ── */
.callout-box {
  border-left: 3px solid var(--cyan);
  background: var(--cyan-dim);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 4px 4px 0;
}

.callout-box.amber {
  border-left-color: var(--amber);
  background: var(--amber-dim);
}

.callout-box.cyan { border-left-color: var(--cyan); background: var(--cyan-dim); }

.callout-label {
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.callout-box.amber .callout-label { color: var(--amber); }

.callout-box p {
  font-size: 15px;
  color: var(--warm-white);
  margin: 0;
  line-height: 1.7;
}

/* ── Data Grid ── */
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 36px;
}

.data-card {
  background: var(--void-2);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s;
}

.data-card:hover { background: var(--indigo); }

.data-icon {
  font-size: 16px;
  color: var(--cyan);
  opacity: 0.6;
}

.data-val {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.02em;
  line-height: 1;
}

.data-desc {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  color: var(--warm-white-dim);
  letter-spacing: 0.03em;
}

/* ── Hardware Table ── */
.hardware-table {
  border: 1px solid var(--border);
  margin: 32px 0;
  overflow: hidden;
}

.hw-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 2.5fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  align-items: center;
  transition: background 0.2s;
}

.hw-row:last-child { border-bottom: none; }
.hw-row:hover:not(.hw-header) { background: var(--warm-white-faint); }

.hw-header {
  background: var(--indigo);
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-white-dim);
}

.hw-row span {
  font-size: 14px;
  color: var(--warm-white-dim);
}

.hw-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: var(--warm-white) !important;
  font-size: 14px !important;
}

.badge {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.badge-live {
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  border: 1px solid var(--border-cyan);
}

.badge-dev {
  background: rgba(255, 179, 71, 0.1);
  color: var(--amber);
  border: 1px solid rgba(255, 179, 71, 0.2);
}

/* ── Bio Cards ── */
.bio-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.bio-card {
  background: var(--void-2);
  border: 1px solid var(--border);
  padding: 24px;
  transition: border-color 0.25s, transform 0.25s;
}

.bio-card:hover {
  border-color: var(--border-cyan);
  transform: translateY(-3px);
}

.bio-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bio-icon { font-size: 20px; }

.bio-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--warm-white);
  line-height: 1.3;
}

.bio-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--warm-white-dim);
  margin-bottom: 14px;
}

.bio-tag {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* ── Institution List ── */
.inst-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}

.inst-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.inst-item:last-child { border-bottom: none; }

.inst-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.inst-dot.corp { background: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }
.inst-dot.academic { background: #a78bfa; box-shadow: 0 0 8px rgba(167, 139, 250, 0.4); }
.inst-dot.gov { background: var(--amber); box-shadow: 0 0 8px rgba(255, 179, 71, 0.4); }
.inst-dot.startup { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.4); }

.inst-info h4 {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: 8px;
}

.inst-info p {
  font-size: 14px;
  color: var(--warm-white-dim);
  margin-bottom: 10px;
  line-height: 1.65;
}

.inst-tag {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(238, 232, 224, 0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Challenge Grid ── */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 36px;
}

.challenge-item {
  background: var(--void-2);
  padding: 28px 24px;
  transition: background 0.2s;
}

.challenge-item:hover { background: var(--indigo); }

.challenge-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  opacity: 0.7;
}

.challenge-item h4 {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.challenge-item p {
  font-size: 13px;
  color: var(--warm-white-dim);
  line-height: 1.7;
  margin: 0;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), rgba(0, 229, 255, 0.1));
}

.tl-item {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.tl-year {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.02em;
  min-width: 60px;
  line-height: 1.2;
  flex-shrink: 0;
}

.tl-content h4 {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.tl-content p {
  font-size: 14px;
  color: var(--warm-white-dim);
  line-height: 1.7;
  margin: 0;
}

/* ── Conclusion ── */
.conclusion-section {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--void) 100%);
}

.conclusion-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-cyan);
  border: 1px solid var(--border-cyan);
  margin: 48px 0 36px;
}

.c-stat {
  background: rgba(26, 31, 60, 0.6);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.c-val {
  font-family: 'Syne', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.02em;
  line-height: 1;
}

.c-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  color: var(--warm-white-dim);
  letter-spacing: 0.05em;
}

.report-footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
}

.report-footer p {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  color: rgba(238, 232, 224, 0.3);
  letter-spacing: 0.05em;
  margin: 0;
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .toc-rail { display: none; }
  .section { padding: 72px 48px; }
  .hero-section { padding: 72px 48px; }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-cards { grid-template-columns: 1fr; }
  .conclusion-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 24px; }
  .hero-section { padding: 56px 24px; min-height: auto; padding-top: 80px; }
  .hero-title { font-size: 42px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { display: none; }
  .hw-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hw-header { display: none; }
  .challenge-grid { grid-template-columns: 1fr; }
  .conclusion-stats { grid-template-columns: repeat(2, 1fr); }
  .topnav-inner { gap: 12px; }
  .nav-meta { display: none; }
}