:root {
  --bg: #0c0f14;
  --bg-elevated: #12171f;
  --surface: #181e28;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --accent: #6ee7c5;
  --accent-dim: rgba(110, 231, 197, 0.15);
  --accent-strong: #3dd9b0;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 720px;
  --max-wide: 880px;
}

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

html {
  scroll-behavior: smooth;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.nav__brand {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
}

.nav__brand:hover {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 10vw, 6rem) 1.5rem clamp(1.5rem, 3vw, 2.5rem);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.hero__lede {
  max-width: min(58ch, 100%);
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__accent {
  position: absolute;
  right: -20%;
  top: -40%;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  background: radial-gradient(
    circle at 30% 40%,
    var(--accent-dim) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent-strong);
  color: var(--bg);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}

.section {
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.section--experience {
  border-top: 1px solid var(--border);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.section__head {
  margin-bottom: 2.5rem;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.section__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline__item {
  position: relative;
  padding-left: 1.25rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(
    var(--accent) 0%,
    var(--accent-dim) 40%,
    var(--border) 100%
  );
  border-radius: 2px;
}

.job {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  box-shadow: var(--shadow);
}

.job__header {
  margin-bottom: 1rem;
}

.job__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.job__company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.job__meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}

.job__summary {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

.job__list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.job__list > li {
  margin-bottom: 0.65rem;
}

.job__list > li:last-child {
  margin-bottom: 0;
}

.job__list--nested {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.job__list-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.job__list--nested ul {
  margin: 0;
  padding-left: 1.15rem;
}

.job__list--nested li {
  margin-bottom: 0.5rem;
}

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

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  max-width: var(--max);
}

.edu-card__school {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.edu-card__degree {
  margin: 0;
  color: var(--text-muted);
}

.edu-card__meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}

.section--contact {
  border-top: 1px solid var(--border);
  padding-bottom: clamp(4rem, 12vw, 6rem);
}

.contact-panel {
  background: linear-gradient(
    135deg,
    var(--accent-dim) 0%,
    var(--bg-elevated) 50%
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  max-width: var(--max);
}

.contact-panel__text {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.contact-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-panel__list a {
  font-weight: 600;
}

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

.site-footer p {
  margin: 0;
}

@media (max-width: 600px) {
  .nav__links {
    gap: 1rem;
  }

  .nav__links a {
    font-size: 0.82rem;
  }

  .timeline__item {
    padding-left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
