:root {
  --bg: #0c0c0c;
  --bg-card: #1a1a1a;
  --text: #e8e8e8;
  --text-dim: #888;
  --text-ghost: #444;
  --accent: #a0cfb0;
  --accent-dim: rgba(160, 207, 176, 0.15);
  --prediction: rgba(255,255,255,0.30);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'DM Sans', -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  font-weight: 400; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--bg); }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem; background: rgba(12,12,12,0.85);
  backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-logo { font-family: var(--mono); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em; }
.nav-logo .pred { color: var(--prediction); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; color: var(--text-dim);
  transition: color 0.3s; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* PAGES */
.page { display: none; min-height: 100vh; padding-top: 5rem; }
.page.active { display: block; }

/* HERO */
.hero { padding: 8rem 3rem 5rem; max-width: 900px; }
.hero-autocomplete {
  font-family: var(--mono); font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 300; line-height: 1.4; margin-bottom: 1rem; min-height: 2.8em;
}
.hero-autocomplete .typed { color: var(--text); }
.hero-autocomplete .predicted {
  color: var(--prediction); opacity: 0; filter: blur(4px);
  transition: opacity 0.45s ease, filter 0.45s ease;
}
.hero-autocomplete .predicted.visible { opacity: 1; filter: blur(0); }
.hero-autocomplete .predicted.accepted { color: rgba(255,255,255,0.62); transition: color 1.5s ease; }
.hero-autocomplete .cursor {
  display: inline-block; width: 2px; height: 1.1em; background: var(--accent);
  vertical-align: text-bottom; margin-left: 2px; animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-subtitle {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dim); margin-top: 2rem;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero-subtitle.visible { opacity: 1; }

/* ABOUT */
.about-section { padding: 0 3rem 5rem; max-width: 900px; }
.about-text { font-size: 1.1rem; line-height: 1.75; max-width: 650px; }
.about-text p + p { margin-top: 1.2rem; }
.about-text a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(160,207,176,0.3); transition: border-color 0.3s; }
.about-text a:hover { border-color: var(--accent); }
.affiliations { display: flex; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.06); }
.affiliation { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--text-dim); line-height: 1.6; }
.affiliation strong { color: var(--text); font-weight: 500; display: block; }

/* NEWS */
.news-section { padding: 0 3rem 6rem; max-width: 900px; }
.section-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-ghost); margin-bottom: 2rem; }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.04); }
.news-date { font-family: var(--mono); font-size: 0.75rem; color: var(--text-ghost); padding-top: 0.15rem; }
.news-content { font-size: 0.95rem; color: var(--text-dim); line-height: 1.6; }
.news-content a { color: var(--accent); text-decoration: none; }
.news-tag { display: inline-block; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.5rem; background: var(--accent-dim); color: var(--accent); border-radius: 2px; margin-right: 0.5rem; }

/* HIRING BANNER */
.hiring-banner {
  margin: 0 3rem 3rem; max-width: calc(900px - 6rem); padding: 1.5rem 2rem;
  background: var(--accent-dim); border: 1px solid rgba(160,207,176,0.15);
  border-radius: 3px; display: flex; align-items: center; gap: 1rem;
}
.hiring-banner .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s ease infinite; flex-shrink: 0; }
@keyframes pulse-dot { 0%,100%{opacity:1}50%{opacity:0.3} }
.hiring-banner p { font-size: 0.9rem; }
.hiring-banner a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* PEOPLE */
.people-header { padding: 6rem 3rem 3rem; max-width: 900px; }
.page-title { font-family: var(--mono); font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 300; margin-bottom: 0.5rem; }
.page-title .pred { color: var(--prediction); }
.people-grid { padding: 0 3rem 6rem; max-width: 900px; }
.person-card { display: grid; grid-template-columns: 140px 1fr; gap: 2.5rem; padding: 2.5rem 0; border-top: 1px solid rgba(255,255,255,0.06); }
.person-photo-placeholder {
  width: 140px; height: 170px; background: var(--bg-card); border-radius: 3px;
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.person-photo-placeholder::after { content:''; width:60px; height:60px; border-radius:50%; background:rgba(255,255,255,0.06); position:absolute; top:35px; }
.person-photo-placeholder::before { content:''; width:100px; height:80px; border-radius:50%; background:rgba(255,255,255,0.04); position:absolute; top:90px; }
.person-photo {
  width: 140px; height: 170px; border-radius: 3px; object-fit: cover; display: block;
  filter: grayscale(20%) brightness(0.85);
}
.person-info h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 0.3rem; }
.person-role { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 1rem; }
.person-bio { font-size: 0.95rem; color: var(--text-dim); line-height: 1.7; max-width: 500px; }
.person-links { margin-top: 1rem; display: flex; gap: 1.2rem; }
.person-links a { font-family: var(--mono); font-size: 0.7rem; color: var(--text-ghost); text-decoration: none; letter-spacing: 0.04em; transition: color 0.3s; }
.person-links a:hover { color: var(--text); }
.join-section { padding: 0 3rem 6rem; max-width: 900px; }
.join-box { padding: 2.5rem; border: 1px dashed rgba(255,255,255,0.1); border-radius: 3px; }
.join-box h3 { font-family: var(--mono); font-size: 0.85rem; font-weight: 400; letter-spacing: 0.06em; margin-bottom: 0.8rem; }
.join-box p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; }
.join-box a { color: var(--accent); text-decoration: none; }

/* RESEARCH */
.research-header { padding: 6rem 3rem 2rem; max-width: 900px; }
.research-intro { padding: 0 3rem 4rem; max-width: 900px; }
.research-intro p { font-size: 1.05rem; color: var(--text-dim); line-height: 1.75; max-width: 650px; }
.research-threads { padding: 0 3rem 6rem; max-width: 900px; }
.thread { padding: 2.5rem 0; border-top: 1px solid rgba(255,255,255,0.06); }
.thread-number { font-family: var(--mono); font-size: 0.7rem; color: var(--text-ghost); letter-spacing: 0.1em; margin-bottom: 0.8rem; }
.thread h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 1rem; }
.thread p { font-size: 0.95rem; color: var(--text-dim); line-height: 1.75; max-width: 600px; }
.thread .methods { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.method-tag { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.04em; padding: 0.3rem 0.7rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 2px; color: var(--text-dim); }

/* FOOTER */
footer { padding: 3rem; border-top: 1px solid rgba(255,255,255,0.04); display: flex; justify-content: space-between; align-items: center; max-width: 900px; }
footer .footer-left { font-family: var(--mono); font-size: 0.7rem; color: var(--text-ghost); line-height: 1.8; }
footer .footer-right { display: flex; gap: 1.5rem; }
footer .footer-right a { font-family: var(--mono); font-size: 0.7rem; color: var(--text-ghost); text-decoration: none; transition: color 0.3s; }
footer .footer-right a:hover { color: var(--text); }

/* FADE IN */
.fade-in { opacity: 0; transform: translateY(12px); animation: fadeUp 0.6s ease forwards; }
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width:680px) {
  nav { padding: 1rem 1.5rem; }
  .hero,.about-section,.news-section,.people-header,.people-grid,.research-header,.research-intro,.research-threads,footer,.join-section,.hiring-banner { padding-left:1.5rem; padding-right:1.5rem; margin-left:0; margin-right:0; }
  .hero { padding-top: 5rem; }
  .news-item { grid-template-columns: 1fr; gap: 0.3rem; }
  .person-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .affiliations { flex-direction: column; gap: 1rem; }
  .nav-links { gap: 1.5rem; }
}
