/* ── Reset & Base ─────────────────────────────────────────── */

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

:root {
  --text:        #111111;
  --text-muted:  #555555;
  --accent:      #2563eb;
  --border:      #e5e5e5;
  --bg:          #ffffff;
  --max-width:   720px;
  --nav-height:  56px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* ── Nav ──────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ── Layout ───────────────────────────────────────────────── */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* ── Hero ─────────────────────────────────────────────────── */

#hero {
  padding-top: 6rem;
  padding-bottom: 5rem;
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
}

/* ── About ────────────────────────────────────────────────── */

#about h2,
#experience h2,
#education h2,
#patents h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

#about p {
  color: var(--text);
  max-width: 600px;
}

#about p + p {
  margin-top: 1rem;
}

/* ── Experience ───────────────────────────────────────────── */

.job {
  margin-bottom: 3rem;
}

.job:last-child {
  margin-bottom: 0;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.job-header h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.company {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.dates {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 0.15rem;
}

.job ul {
  padding-left: 1.25rem;
  color: var(--text);
}

.job li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #333;
}

/* ── Team label (within a job) ────────────────────────────── */

.team {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* ── Patents ──────────────────────────────────────────────── */

.patents {
  margin-top: 1.5rem;
}

.patent-item {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.patent-num {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Footer ───────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

footer p {
  display: flex;
  gap: 1.5rem;
}

footer a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: var(--text);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 600px) {
  nav {
    padding: 0 1.25rem;
  }

  main {
    padding: 0 1.25rem;
  }

  footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .job-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .dates {
    font-size: 0.8rem;
  }
}
