:root {
  --bg: #07111a;
  --bg-card: #122433;
  --ink: #e8eef3;
  --muted: #9bb0c0;
  --line: rgba(255,255,255,.1);
  --teal: #2ee6a6;
  --gold: #e0c07a;
  --radius: 20px;
  --max: 1080px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: #8fffd4; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h);
  z-index: 50;
  background: rgba(7,17,26,.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled {
  background: rgba(7,17,26,.92);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}
.brand span { color: var(--teal); }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .95rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
  background: rgba(255,255,255,.07);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 42px; height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  padding: calc(var(--nav-h) + 24px) 0 48px;
}
.hero.compact { min-height: 42vh; padding: calc(var(--nav-h) + 48px) 0 40px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(46,230,166,.16), transparent 60%),
    radial-gradient(700px 500px at 90% 10%, rgba(74,163,232,.14), transparent 55%),
    linear-gradient(180deg, #07111a 0%, #0a1926 55%, #07111a 100%);
}
.hero-content { text-align: center; max-width: 820px; }
.eyebrow {
  color: var(--teal);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
}
.hero h1 .phd {
  display: block;
  margin-top: .18em;
  font-size: .42em;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--teal);
}
.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px; height: 28px;
  margin: 8px auto 0;
  background: linear-gradient(var(--teal), transparent);
  animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip {
  0%, 100% { transform: scaleY(.4); opacity: .3; }
  50% { transform: scaleY(1); opacity: 1; }
}
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--muted);
  max-width: 620px;
  margin: 16px auto 0;
}

section { padding: 72px 0; }
.section-kicker {
  color: var(--teal);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: 10px;
}
h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 16px;
}
h3 { font-size: 1.12rem; margin-bottom: 8px; }
.prose { color: var(--muted); max-width: 68ch; }
.prose + .prose { margin-top: 14px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 168px;
  color: inherit;
  opacity: 0;
  transform: translateY(16px);
  transition: border-color .25s ease, transform .45s ease, opacity .45s ease, background .25s ease;
}
.card.in { opacity: 1; transform: none; }
a.card:hover { border-color: var(--teal); transform: translateY(-4px); color: inherit; background: #163044; }
.card p { color: var(--muted); }
.card .go { display: inline-block; margin-top: 14px; color: var(--teal); font-weight: 600; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill {
  font-size: .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,.03);
}

.timeline { position: relative; margin-top: 36px; padding-left: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: rgba(46,230,166,.14);
  border-radius: 2px;
}
.timeline::after {
  content: "";
  position: absolute;
  left: 7px; top: 8px; width: 2px; height: 0;
  background: linear-gradient(var(--teal), rgba(46,230,166,.2));
  border-radius: 2px;
  transition: height 1.4s ease;
}
.timeline.on::after { height: calc(100% - 16px); }
.t-item {
  position: relative;
  margin: 0 0 14px 28px;
  padding: 18px 20px 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  opacity: 0;
  transform: translateY(18px);
}
.t-item.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
.t-item:last-child { margin-bottom: 0; }
.t-item.t-now { border-color: rgba(46,230,166,.35); }
.t-dot {
  position: absolute; left: -32px; top: 22px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(46,230,166,.28);
  transform: scale(.6);
  transition: transform .4s ease;
}
.t-item.in .t-dot { transform: scale(1); }
.t-now .t-dot { animation: pulse 2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 3px rgba(46,230,166,.28); }
  70% { box-shadow: 0 0 0 12px rgba(46,230,166,0); }
  100% { box-shadow: 0 0 0 3px rgba(46,230,166,.28); }
}
.t-when {
  color: var(--teal);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.t-item h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.22rem;
  margin: 0 0 6px;
}
.t-item p { color: var(--muted); font-size: .92rem; line-height: 1.5; max-width: 62ch; }

.gate { max-width: 420px; margin: 0 auto; text-align: center; }
.gate input {
  width: 100%;
  margin: 16px 0;
  background: #0b1722;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  text-align: center;
}
.hidden { display: none; }
.gate-error { color: #e0c07a; font-size: .9rem; min-height: 1.2em; }

.pub {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(10px);
}
.pub.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.pub:first-of-type { border-top: 1px solid var(--line); }
.year { font-family: "Source Serif 4", serif; color: var(--teal); font-weight: 600; }
.pub h3 { font-size: 1.02rem; margin-bottom: 6px; }
.pub .meta { color: var(--muted); font-size: .92rem; }
.cites { color: var(--gold); font-size: .85rem; white-space: nowrap; }

.form { display: grid; gap: 12px; max-width: 720px; }
.form input, .form textarea {
  width: 100%;
  background: #0b1722;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.form textarea { min-height: 140px; resize: vertical; }
.note { font-size: .85rem; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}
.btn-primary { background: var(--teal); color: #062018; width: fit-content; }
.btn-primary:hover { background: #8fffd4; color: #062018; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: .9rem;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    display: none;
    flex-direction: column;
    padding: 12px 20px 20px;
    background: rgba(7,17,26,.97);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 54px 1fr; }
  .cites { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .t-item, .pub { opacity: 1; transform: none; }
  .scroll-hint::after, .t-now .t-dot { animation: none; }
  .timeline::after { transition: none; height: 100%; }
}
