:root {
  --bg: #0a0e14;
  --bg-elev: #10151d;
  --bg-elev-2: #161c26;
  --border: #232b38;
  --text: #e6ebf2;
  --text-dim: #8b96a8;
  --accent: #3ddc84;
  --accent-dim: #2a9e5f;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 860px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(61, 220, 132, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(61, 220, 132, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

a { color: inherit; text-decoration: none; }

code {
  font-family: var(--mono);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  padding: 0.1em 0.45em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 5vw, 3rem);
  background: rgba(10, 14, 20, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.brand-icon { color: var(--accent); display: inline-flex; }
.brand-name .accent { color: var(--accent); }

.site-nav { display: flex; gap: clamp(1rem, 3vw, 1.75rem); }

.site-nav a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--accent); }

/* Main / layout */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem);
}

.section { padding: 5rem 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: none; }

.section-title {
  font-family: var(--mono);
  font-size: 1.4rem;
  margin: 0 0 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tag {
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
}

.section-lede { color: var(--text-dim); max-width: 60ch; }

/* Hero */
.hero {
  padding: clamp(4rem, 12vh, 7rem) 0 4.5rem;
}

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--mono);
  font-size: clamp(2.1rem, 6vw, 3.3rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.typewriter {
  display: block;
  font-size: 1.05rem;
  color: var(--text-dim);
  font-weight: 500;
  height: 1.4em;
}

.typewriter::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-role {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.25rem 0 1.25rem;
}

.hero-role .dim { color: var(--text-dim); font-weight: 400; }

.hero-lede {
  color: var(--text-dim);
  max-width: 62ch;
  margin-bottom: 2.25rem;
}

/* Buttons */
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #05130a;
}

.btn-primary:hover { background: #55e69a; }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg-elev);
}

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

/* About */
.about-grid p {
  color: var(--text-dim);
  margin: 0 0 1.1rem;
  max-width: 68ch;
}

.about-grid strong { color: var(--text); }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}

.timeline li {
  position: relative;
  padding: 0 0 1.9rem 1.75rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-dim);
}

.timeline li.is-current::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.15);
}

.timeline-year {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.timeline-body h3 { margin: 0 0 0.15rem; font-size: 1rem; }
.timeline-body p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* Lab */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.lab-card {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 1.4rem;
  background: var(--bg-elev);
}

.lab-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.lab-card h3 {
  font-family: var(--mono);
  font-size: 0.95rem;
  margin: 0.9rem 0 0.35rem;
  color: var(--text);
}

.lab-card p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.25rem, 5vw, 3rem);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: var(--mono);
}

@media (max-width: 560px) {
  .site-nav { gap: 0.85rem; }
  .site-nav a { font-size: 0.78rem; }
}
