/* ============================================================
   Tokens
   ============================================================ */
:root {
  --bg: #0A0E14;
  --surface: #10141D;
  --surface-2: #161B26;
  --border: #232A38;
  --text: #E8EAED;
  --text-dim: #8B93A7;
  --text-faint: #576076;
  --amber: #FF8A3D;
  --amber-soft: #FFB273;
  --teal: #5EEAD4;

  --display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --body: 'Inter', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  --max-w: 1080px;
  --edge: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--edge); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-mark { font-family: var(--mono); font-size: 15px; color: var(--amber); font-weight: 600; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 28px; font-family: var(--mono); font-size: 13px; }
.nav-links a { color: var(--text-dim); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--amber-soft); }
.nav-toggle { display: none; }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
#network-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.65;
}
.hero-content { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,138,61,0.4); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(255,138,61,0); }
}

h1.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.04;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
h1.hero-title span { color: var(--amber); }

.hero-role {
  font-family: var(--mono);
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 36px;
}
.hero-role .cursor {
  display: inline-block;
  width: 9px; height: 18px;
  background: var(--amber);
  margin-left: 2px;
  vertical-align: -3px;
  animation: blink 1.05s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--amber); }
.btn-solid { background: var(--amber); color: #14100A; border-color: var(--amber); font-weight: 600; }
.btn-solid:hover { background: var(--amber-soft); }

/* ============================================================
   Sections
   ============================================================ */
section { padding: 96px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

.section-head { margin-bottom: 48px; }
.section-tag { font-family: var(--mono); font-size: 12px; color: var(--amber-soft); letter-spacing: 0.08em; text-transform: uppercase; }
.section-title { font-family: var(--display); font-size: clamp(28px, 4vw, 38px); margin: 10px 0 0; font-weight: 600; }
.section-sub { color: var(--text-dim); max-width: 620px; margin-top: 14px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.about-grid p { color: var(--text-dim); font-size: 16px; }
.stat-list { display: flex; flex-direction: column; gap: 22px; }
.stat { border-left: 2px solid var(--amber); padding-left: 16px; }
.stat b { display: block; font-family: var(--display); font-size: 24px; color: var(--text); }
.stat span { font-family: var(--mono); font-size: 12px; color: var(--text-faint); }

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Research timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--border);
}
.tl-item:first-child { border-top: none; }
.tl-marker { font-family: var(--mono); font-size: 12px; color: var(--text-faint); padding-top: 4px; }
.tl-marker.active { color: var(--amber); }
.tl-body h3 { font-family: var(--display); margin: 0 0 8px; font-size: 20px; }
.tl-body p { margin: 0 0 12px; color: var(--text-dim); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--mono); font-size: 11px; color: var(--teal); border: 1px solid rgba(94,234,212,0.3); padding: 4px 9px; border-radius: 4px; }

/* Projects */
.grid-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--amber); transform: translateY(-3px); }
.card h3 { font-family: var(--display); margin: 0 0 8px; font-size: 19px; }
.card p { color: var(--text-dim); font-size: 14px; margin: 0 0 16px; }
.card .status { font-family: var(--mono); font-size: 11px; color: var(--amber-soft); }
.card .tags { margin-bottom: 14px; }

@media (max-width: 900px) { .grid-projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-projects { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.contact-link {
  font-family: var(--mono); font-size: 13px;
  border: 1px solid var(--border); border-radius: 6px;
  padding: 14px 20px; display: flex; align-items: center; gap: 10px;
  transition: border-color 0.2s ease, color 0.2s ease;
  color: var(--text-dim);
}
.contact-link:hover { border-color: var(--amber); color: var(--text); }

footer { padding: 40px var(--edge); text-align: center; font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
