/* =========================================================
   Design tokens
========================================================= */
:root{
  --bg: #0A0E14;
  --panel: #10151D;
  --panel-alt: #0D1219;
  --border: #202836;
  --text: #E7ECF2;
  --text-muted: #8E9BAE;
  --accent: #4FD1C5;
  --accent-warm: #F2994A;

  --font-display: 'Space Grotesk', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --content-width: 760px;
  --nav-height: 68px;
}

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

html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

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

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

a{ color: inherit; }

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip-link{
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--accent);
  color: #06110F;
  padding: .6rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  transition: top .2s ease;
  z-index: 100;
}
.skip-link:focus{ top: 1rem; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =========================================================
   Header / nav
========================================================= */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

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

.nav-name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.nav-links a{
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

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

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* =========================================================
   Hero
========================================================= */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-height) 1.5rem 4rem;
  overflow: hidden;
}

#fieldCanvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-content{
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.hero-kicker{
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.hero-title{
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

.hero-tagline{
  max-width: 560px;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2.2rem;
}

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

.btn{
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn-primary{
  background: var(--accent);
  color: #06110F;
}
.btn-primary:hover{ background: #6FE0D5; }

.btn-ghost{
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }

/* =========================================================
   Sections
========================================================= */
.section{
  padding: 5.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

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

.section-inner{
  max-width: var(--content-width);
  margin: 0 auto;
}

.section h2{
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
}

.empty-state{
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  color: var(--text-muted);
}
.empty-state p{ margin: 0; }

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

.timeline-item{
  position: relative;
  padding: 0 0 2.4rem 1.8rem;
}
.timeline-item:last-child{ padding-bottom: 0; }

.timeline-item::before{
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-warm);
}

.timeline-year{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline-body h3{
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.timeline-org{
  color: var(--text);
  font-weight: 500;
  margin: 0 0 0.35rem;
}

.timeline-desc{
  color: var(--text-muted);
  margin: 0;
}

/* =========================================================
   Contact
========================================================= */
.contact-lede{
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.contact-email{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.contact-email:hover{ border-color: var(--accent); }

.contact-note{
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 1rem;
}

/* =========================================================
   Footer
========================================================= */
.site-footer{
  padding: 2.2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 760px){
  .nav-toggle{ display: flex; }

  .nav-links{
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform .25s ease;
  }

  .nav-links.open{ transform: translateY(0); }

  .nav-links li{ border-top: 1px solid var(--border); }

  .nav-links a{
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: none;
  }

  .section{ padding: 3.5rem 1.25rem; }
}
