:root {
  --bg: oklch(0.985 0.004 90);
  --ink: oklch(0.22 0.02 260);
  --ink-soft: oklch(0.30 0.015 260);
  --muted: oklch(0.46 0.015 260);
  --faint: oklch(0.55 0.01 260);
  --line: oklch(0.90 0.008 260);
  --accent: oklch(0.40 0.12 254);
  --accent-hover: oklch(0.30 0.11 254);
  --accent-soft-bg: oklch(0.93 0.025 254);
  --accent-soft-text: oklch(0.30 0.11 254);
  --border-outline: oklch(0.88 0.008 260);
  --white: oklch(1 0 0);
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Public Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}

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

::selection { background: oklch(0.93 0.03 254); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 24px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Side nav ---------- */

.side-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.nav-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--white);
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px oklch(0.22 0.02 260 / 0.12);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(0.80 0.008 260);
  transition: all 0.25s ease;
}

.side-nav a.active .nav-label { opacity: 1; }
.side-nav a.active .nav-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
}

/* ---------- Resume FAB ---------- */

.resume-fab {
  position: fixed;
  top: 24px;
  right: 70px;
  z-index: 40;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 11px 18px;
  border-radius: 100px;
  box-shadow: 0 6px 20px oklch(0.22 0.02 260 / 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.resume-fab:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px oklch(0.22 0.02 260 / 0.32);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 9vw;
  overflow: hidden;
  background: radial-gradient(600px circle at 50% 50%, oklch(0.96 0.02 254 / 0.6), transparent 70%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-orb--a {
  top: -140px;
  left: -120px;
  width: 480px;
  height: 480px;
  background: oklch(0.93 0.03 254 / 0.7);
  filter: blur(10px);
  animation: floatOrb 14s ease-in-out infinite;
}
.hero-orb--b {
  bottom: -180px;
  right: 6vw;
  width: 420px;
  height: 420px;
  background: oklch(0.96 0.015 90);
  filter: blur(6px);
  animation: floatOrb 18s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  max-width: 900px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  animation: fadeUp 0.7s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
  animation: fadeUp 0.8s ease both 0.08s;
}

.hero-lead {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--muted);
  max-width: 640px;
  margin: 26px 0 0;
  line-height: 1.5;
  animation: fadeUp 0.8s ease both 0.16s;
}

.word-chip {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent-soft-text);
  background: var(--accent-soft-bg);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
  animation: fadeUp 0.8s ease both 0.24s;
}

.btn {
  font-weight: 600;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1.5px solid var(--border-outline);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-location {
  position: absolute;
  bottom: 36px;
  left: 9vw;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-location-rule {
  width: 26px;
  height: 1px;
  background: var(--faint);
}

/* ---------- Shared section bits ---------- */

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.section-num--light { color: oklch(0.72 0.02 254); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.01em;
  margin: 0 0 56px;
}
.section-title--light { color: var(--white); max-width: 700px; }

/* ---------- About ---------- */

.about {
  padding: 160px 9vw;
  background: var(--white);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

.about-side {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.headshot {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-soft-bg), oklch(0.90 0.02 254));
  color: var(--accent-soft-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: -0.02em;
}

.about-content { max-width: 680px; }
.about-content .section-title { margin-bottom: 28px; }

.about-text {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.about-text:last-child { margin-bottom: 0; }

/* ---------- Experience ---------- */

.experience { padding: 160px 9vw; }

.timeline { position: relative; max-width: 900px; }

.timeline-line {
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 56px 48px;
}

.timeline-dot {
  position: absolute;
  left: 2px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: oklch(0.80 0.008 260);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--line);
}
.timeline-dot--current { background: var(--accent); }

.timeline-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 6px;
}

.timeline-role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 4px;
}

.timeline-company {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}

.timeline-summary {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 12px;
  max-width: 700px;
}

.timeline-bullets {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-bullets li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.timeline-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.stack-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-soft-text);
  background: var(--accent-soft-bg);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ---------- Skills ---------- */

.skills {
  padding: 160px 0;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.skills-head { padding: 0 9vw; }

.marquee {
  width: 100%;
  overflow: hidden;
  padding: 0 0 64px 9vw;
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  white-space: nowrap;
  color: oklch(0.85 0.01 260);
  padding: 10px 22px;
  border: 1px solid oklch(0.38 0.015 260);
  border-radius: 100px;
}

.skills-grid {
  padding: 0 9vw;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
  max-width: 1100px;
}

.col-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: oklch(0.72 0.02 254);
  margin-bottom: 20px;
}
.col-label--dark { color: var(--muted); }

.leadership-list { display: flex; flex-direction: column; gap: 14px; }
.leadership-item { font-size: 18px; font-weight: 500; color: oklch(0.95 0.005 260); }

.lang-list { display: flex; flex-direction: column; gap: 16px; }
.lang-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-bottom: 6px;
}
.lang-row span:first-child { font-weight: 600; }
.lang-level {
  color: oklch(0.72 0.02 254);
  font-family: var(--font-mono);
  font-size: 12px;
}
.lang-bar {
  height: 4px;
  background: oklch(0.38 0.015 260);
  border-radius: 4px;
  overflow: hidden;
}
.lang-bar-fill {
  height: 100%;
  background: oklch(0.65 0.13 254);
  border-radius: 4px;
}

/* ---------- Education ---------- */

.education { padding: 160px 9vw; background: var(--white); }

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1100px;
}

.edu-item {
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.edu-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.edu-school {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 6px;
}
.edu-degree { font-size: 15px; color: var(--ink-soft); margin-bottom: 6px; }
.edu-dates { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.cert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}
.cert-text { font-size: 16px; line-height: 1.5; color: var(--ink); font-weight: 500; }

/* ---------- Contact ---------- */

.contact {
  padding: 180px 9vw;
  background: oklch(0.965 0.006 90);
  text-align: center;
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 60px);
  letter-spacing: -0.02em;
  margin: 0 auto 28px;
  max-width: 760px;
  line-height: 1.1;
}

.contact-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact .btn-outline { border-color: oklch(0.80 0.008 260); }

.footer-note {
  margin-top: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}

/* ---------- Reveal-on-scroll ---------- */

.timeline-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .side-nav { display: none; }
  .resume-fab { right: 20px; top: 16px; padding: 9px 14px; font-size: 11px; }

  .about {
    grid-template-columns: 1fr;
    padding: 100px 7vw;
    gap: 32px;
  }
  .about-side { position: static; flex-direction: row; align-items: center; }
  .headshot { width: 96px; height: 96px; font-size: 28px; }

  .experience, .education { padding: 100px 7vw; }
  .hero { padding: 0 7vw; }
  .hero-location { left: 7vw; }
  .skills-head, .marquee, .skills-grid { padding-left: 7vw; padding-right: 7vw; }
  .contact { padding: 120px 7vw; }
}
