
/* ============================================================
   SUN LAB — Neuroscience Research
   Programmer / ASCII Art / Monospace Theme
   Palette: "Fluorescence" (WCAG-AA tuned) — revised Jun 2026
   ============================================================ */

:root {
  --bg: #0c0c0c;
  --bg-alt: #111111;
  --surface: #1a1a1a;
  --surface-hover: #222222;
  --border: #333333;
  --border-dim: #222222;
  --text: #00ff00;
  --text-muted: #808080;
  --text-dim: #555555;
  --accent: #00ff00;
  --accent-dim: #00aa00;
  --accent-secondary: #00ff00;
  --accent-warn: #ffaa00;
  --font-mono: 'Courier New', 'Courier', monospace;
  --transition: all 0.2s ease;
}

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

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

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: var(--accent); }

/* ============================================================
   ASCII ART UTILITIES
   ============================================================ */

.ascii-art {
  font-family: var(--font-mono);
  white-space: pre;
  line-height: 1.2;
  color: var(--accent);
  overflow-x: auto;
}

.ascii-box {
  border: 1px solid var(--border);
  padding: 1rem;
  background: var(--surface);
  font-family: var(--font-mono);
  white-space: pre-wrap;
  line-height: 1.4;
  color: var(--text);
  overflow-x: auto;
}

.ascii-box .comment { color: var(--text-dim); }
.ascii-box .keyword { color: var(--accent); }
.ascii-box .string { color: var(--accent-secondary); }
.ascii-box .number { color: var(--accent-warn); }

/* ============================================================
   NAVIGATION
   ============================================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
}

.nav-logo pre {
  margin: 0;
  line-height: 1;
  font-size: 0.7rem;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::before {
  content: '[';
  color: var(--text-dim);
  margin-right: 0.2rem;
  opacity: 0;
  transition: var(--transition);
}

.nav-links a::after {
  content: ']';
  color: var(--text-dim);
  margin-left: 0.2rem;
  opacity: 0;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::before,
.nav-links a:hover::after,
.nav-links a.active::before,
.nav-links a.active::after {
  opacity: 1;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

#neural-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 900px;
  width: 100%;
}

.hero-prompt {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.hero-prompt::before {
  content: '$ ';
  color: var(--accent);
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: bold;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 65ch;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-hover);
}

.btn-primary {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.hero-scroll::before {
  content: '> ';
  color: var(--accent);
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: 4rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.section-alt { background: var(--bg-alt); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-header h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: bold;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 65ch;
}

/* ============================================================
   TERMINAL BOX
   ============================================================ */

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.terminal-header {
  background: var(--bg-alt);
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-header::before {
  content: '● ● ●';
  color: var(--text-dim);
  letter-spacing: 0.3em;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text);
}

.terminal-body .cmd { color: var(--accent); }
.terminal-body .cmd::before { content: '$ '; color: var(--text-dim); }
.terminal-body .output { color: var(--text-muted); margin-left: 1.5rem; margin-bottom: 0.5rem; }
.terminal-body .comment { color: var(--text-dim); }

/* ============================================================
   RESEARCH CARDS
   ============================================================ */

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.research-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: var(--transition);
}

.research-card:hover { border-color: var(--accent-dim); }

.research-card::before {
  content: '// ';
  color: var(--text-dim);
  font-size: 0.8rem;
}

.research-card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: bold;
  color: var(--accent);
  margin: 0.5rem 0 0.75rem;
}

.research-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg);
}

.tag:hover { border-color: var(--accent-dim); color: var(--accent); }

/* method cluster label */
.method-cluster { margin-bottom: 2rem; }
.method-cluster-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
}
.method-cluster-label::before { content: '##'; color: var(--text-dim); }
.method-cluster-label .ln { flex: 1; height: 1px; background: var(--border); }

/* ============================================================
   PUBLICATIONS
   ============================================================ */

.pub-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.pub-filter {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pub-filter button {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.pub-filter button::before { content: '['; color: var(--text-dim); margin-right: 2px; }
.pub-filter button::after { content: ']'; color: var(--text-dim); margin-left: 2px; }

.pub-filter button:hover { border-color: var(--accent-dim); color: var(--accent); }
.pub-filter button.active { border-color: var(--accent); color: var(--accent); background: var(--surface-hover); }

.pub-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.pub-year-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-secondary);
  font-weight: bold;
}
.pub-year-divider::before { content: '//'; color: var(--text-dim); }
.pub-year-divider .ln { flex: 1; height: 1px; background: var(--border); }
.pub-year-divider:first-child { margin-top: 0; }

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pub-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  transition: var(--transition);
}

.pub-item:hover { border-color: var(--accent-dim); }
.pub-item.is-hidden { display: none; }

.pub-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: bold;
  min-width: 2rem;
}
.pub-number::before { content: '['; color: var(--text-dim); }
.pub-number::after { content: ']'; color: var(--text-dim); }

.pub-content h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.pub-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pub-meta .journal { color: var(--accent-secondary); }
.pub-meta .new { color: var(--accent-warn); font-weight: bold; }
.pub-meta .preprint { color: var(--text-dim); }
.pub-meta .cover { color: var(--accent); }

.pub-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pub-link {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.pub-link:hover { border-color: var(--accent); color: var(--accent); }

/* superseded preprint note */
.pub-superseded {
  font-size: 0.72rem;
  color: var(--accent-warn);
  margin-top: 0.4rem;
}
.pub-superseded::before { content: '↳ '; }

/* ============================================================
   PEOPLE
   ============================================================ */

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.person-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.person-card:hover { border-color: var(--accent-dim); }

.person-photo {
  width: 100%;
  background: linear-gradient(165deg, #ddd7c6 0%, #c6bfac 48%, #a39c8a 100%);
  padding: 15px 15px 26px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* power LED on the bezel */
.person-photo::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #36ff6a;
  box-shadow: 0 0 7px rgba(54,255,106,0.9);
}

.crt-screen {
  position: relative;
  height: 230px;
  border-radius: 22px / 30px;
  overflow: hidden;
  background: #03130a;
  box-shadow: inset 0 0 26px rgba(0,0,0,0.85), 0 1px 0 rgba(255,255,255,0.3);
}

.crt-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: none;
  transition: var(--transition);
}

.crt-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.22) 2px 3px),
    radial-gradient(125% 120% at 50% 42%, transparent 56%, rgba(0,0,0,0.5) 100%);
  box-shadow: inset 0 0 34px rgba(0,255,0,0.12);
}

.crt-screen::before {
  content: 'root@sunlab:~$';
  position: absolute;
  left: 10px;
  bottom: 7px;
  z-index: 2;
  font: 9px/1 'Courier New', monospace;
  color: rgba(120,255,150,0.5);
  letter-spacing: 0.04em;
  pointer-events: none;
}

.person-card:hover .crt-screen img { filter: brightness(1.13); }

/* ---- home-page PI intro card ---- */
.pi-card {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.pi-portrait {
  flex: 0 0 auto;
  width: 168px;
  position: relative;
  background: linear-gradient(165deg, #ddd7c6 0%, #c6bfac 48%, #a39c8a 100%);
  padding: 9px 9px 15px;
}
.pi-portrait .scr {
  position: relative;
  border-radius: 16px / 20px;
  overflow: hidden;
  background: #03130a;
  box-shadow: inset 0 0 18px rgba(0,0,0,0.85), 0 1px 0 rgba(255,255,255,0.3);
}
.pi-portrait .scr img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.pi-portrait .scr::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.22) 2px 3px),
    radial-gradient(125% 120% at 50% 42%, transparent 56%, rgba(0,0,0,0.5) 100%);
  box-shadow: inset 0 0 26px rgba(0,255,0,0.12);
}
.pi-portrait::after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #36ff6a;
  box-shadow: 0 0 6px rgba(54,255,106,0.9);
}
.pi-body { flex: 1 1 300px; }
.pi-body h3 {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.pi-body .pi-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.pi-body .pi-line {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 62ch;
  margin-bottom: 1.2rem;
}

/* monogram avatar (placeholder for missing headshots) */
.avatar-mono {
  width: 100%;
  height: 240px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(0,255,0,.05) 0 8px, transparent 8px 16px),
    var(--bg-alt);
  overflow: hidden;
}
.avatar-mono .initials {
  font-family: var(--font-mono);
  font-size: 3.4rem;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 0.05em;
  z-index: 1;
}
.avatar-mono .ph-tag {
  position: absolute;
  bottom: 0.5rem; left: 0; right: 0;
  text-align: center;
  font-size: 0.62rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.person-info { padding: 1rem; }

.person-info h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.person-role {
  font-size: 0.8rem;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.person-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.person-link {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.person-link:hover { border-color: var(--accent); color: var(--accent); }

/* alumni — more compact rows */
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}
.alumni-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  transition: var(--transition);
}
.alumni-card:hover { border-color: var(--accent-dim); }
.alumni-card h3 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.alumni-card .alumni-role {
  font-size: 0.75rem;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}
.alumni-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   STATS
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat-item:hover { border-color: var(--accent-dim); }

.stat-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   FEATURED PAPER
   ============================================================ */

.featured-paper {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.featured-content .badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--accent-warn);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--accent-warn);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.featured-content h3 {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--text);
}

.featured-content p {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.featured-image {
  border: 1px solid var(--border);
  background: var(--bg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   IMAGES / GALLERY
   ============================================================ */

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.img-card {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16/10;
  position: relative;
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.img-card:hover img { filter: brightness(1.1); }

.img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.8);
  padding: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  border-top: 1px solid var(--border);
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.contact-info p { margin-bottom: 1.5rem; font-size: 0.85rem; color: var(--text-muted); }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.contact-detail .icon {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1rem;
  min-width: 1.5rem;
}

.contact-detail div strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.15rem;
}

.contact-detail div span,
.contact-detail div a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.contact-detail div a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
}

.form-group label::before { content: '> '; color: var(--accent); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }

.form-group textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* social / code link row */
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  background: var(--surface);
  transition: var(--transition);
}
.link-chip:hover { border-color: var(--accent); color: var(--accent); }
.link-chip .sig { color: var(--accent); }

/* embedded map */
.map-embed {
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; filter: grayscale(20%) invert(0); }
.map-caption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  background: var(--bg-alt);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
}

.footer-brand .sig { color: var(--accent); }
.footer-brand .inst { color: var(--text-muted); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy { color: var(--text-dim); font-size: 0.75rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor::after {
  content: '_';
  animation: blink 1s infinite;
  color: var(--accent);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ============================================================
   TRANSCRIPTOMICS FIGURE BLOCKS
   ============================================================ */

.fig { margin-bottom: 2.5rem; }
.fig:last-child { margin-bottom: 0; }

.fig-frame {
  border: 1px solid var(--border);
  background: #000;
  overflow: hidden;
  transition: var(--transition);
}
.fig-frame:hover { border-color: var(--accent-dim); }

.fig-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.fig-head::before {
  content: '\25CF \25CF \25CF';
  color: var(--text-dim);
  letter-spacing: 0.25em;
  font-size: 0.6rem;
}
.fig-head .fname { margin-left: auto; color: var(--accent-dim); }

.fig-frame img { width: 100%; height: auto; display: block; }

.fig-cap {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 78ch;
}
.fig-cap .lab { color: var(--accent); font-weight: bold; }

.fig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  align-items: start;
}
.fig-grid .fig { margin-bottom: 0; }

.fig-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-dim);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.fig-note .sig { color: var(--accent-secondary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .nav-links.active { display: flex; }

  .mobile-toggle { display: block; }

  .hero { padding: 5rem 1rem 2rem; }

  .section { padding: 3rem 1rem; }

  .featured-paper,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pub-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .fig-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
