:root {
  --ink: #0D111A;
  --accent: #3A5CF6;
  --cream: #FFFFFF;

  --text-body: #1B1F2B;
  --text-muted: #4B5563;
  --text-faint: #8A93A3;
  --text-nav: #5B6472;
  --text-skill: #1F2430;
  --text-light-body: #C4CBD9;
  --text-edu-detail: #5B6472;
  --text-footer: #6B7386;

  --border: #E4E7EC;
  --border-card: #E2E5EA;
  --border-card-divider: #EDEFF2;

  --bg-projects: #F4F6F9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-body);
  overflow-x: hidden;
}

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

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

::selection {
  background: var(--accent);
  color: var(--ink);
}

.wrap {
  width: 100%;
}

/* TOP BAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar .brand {
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}

.topbar nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-nav);
}

.topbar nav a {
  color: inherit;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 56px 120px;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  letter-spacing: -0.01em;
  font-weight: 600;
  font-size: 58px;
  line-height: 1.08;
  margin: 0 0 28px;
  color: var(--ink);
  text-wrap: pretty;
}

.hero p.lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 36px;
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover {
  color: var(--cream);
  opacity: 0.92;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  gap: 8px;
}

.hero .location {
  margin-top: 44px;
  font-size: 14px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.hero .headshot-wrap {
  display: flex;
  justify-content: center;
}

.headshot {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
}

/* SECTION - dark (Background / Contact) */
.section-dark {
  background: var(--ink);
  padding: 120px 56px;
  scroll-margin-top: 80px;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-dark h2 {
  letter-spacing: -0.01em;
  font-weight: 600;
  font-size: 38px;
  color: var(--cream);
  margin: 0 0 40px;
  max-width: 720px;
  text-wrap: pretty;
}

.bg-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.bg-copy p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-light-body);
  margin: 0;
}

/* PROJECTS */
.section-projects {
  background: var(--bg-projects);
  padding: 120px 56px;
  scroll-margin-top: 80px;
}

.section-projects .section-inner {
  max-width: 1200px;
}

.section-projects h2,
.section-light h2 {
  letter-spacing: -0.01em;
  font-weight: 600;
  font-size: 38px;
  color: var(--ink);
  margin: 0 0 56px;
  max-width: 640px;
  text-wrap: pretty;
}

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

.project-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card .row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-company {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}

.project-tag {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.project-card h3 {
  letter-spacing: -0.01em;
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}

.project-card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  flex-grow: 1;
}

.project-metrics {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-card-divider);
}

.metric-value {
  letter-spacing: -0.01em;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.metric-label {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* SKILLS */
.section-light {
  padding: 120px 56px;
  scroll-margin-top: 80px;
}

.section-light .section-inner {
  max-width: 1100px;
}

/* Skills and Experience share the same (cream) background with no color
   break between them, so the two 120px section paddings stack into 240px
   of unbroken empty space. Tighten the seam and mark it with the same
   hairline used elsewhere on the site (skill-row / job-row / education-block)
   so the transition reads as deliberate rather than accidental. */
#skills {
  padding-bottom: 48px;
}

#experience {
  padding-top: 48px;
}

#experience .section-inner {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.skill-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.skill-row .skill-title {
  letter-spacing: -0.01em;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.skill-pill {
  padding: 8px 16px;
  background: var(--bg-projects);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-skill);
  white-space: nowrap;
}

/* EXPERIENCE + EDUCATION */
.section-experience .section-inner {
  max-width: 1000px;
}

.job-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.job-dates {
  font-size: 14px;
  color: var(--text-faint);
}

.job-company {
  letter-spacing: -0.01em;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 6px;
}

.job-role {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-skill);
  margin-bottom: 10px;
}

.job-summary {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.education-block {
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.education-heading {
  letter-spacing: -0.01em;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 32px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 56px;
}

.edu-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-skill);
}

.edu-detail {
  font-size: 15px;
  color: var(--text-edu-detail);
  margin-top: 4px;
  line-height: 1.5;
}

/* CONTACT / CTA */
.section-contact {
  background: var(--ink);
  padding: 120px 56px 80px;
  scroll-margin-top: 80px;
}

.section-contact .section-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-contact h2 {
  letter-spacing: -0.01em;
  font-weight: 600;
  font-size: 42px;
  color: var(--cream);
  margin: 0 0 24px;
  text-wrap: pretty;
}

.section-contact .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-light-body);
  margin: 0 0 44px;
}

.contact-btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-accent {
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  padding: 15px 30px;
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 15px 30px;
  font-weight: 500;
}

.btn-text-light {
  background: transparent;
  color: var(--text-light-body);
  padding: 15px 30px;
  font-weight: 500;
}

.contact-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: var(--text-footer);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .topbar {
    padding: 16px 24px;
  }

  .topbar nav {
    gap: 18px;
    font-size: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 64px 24px 80px;
    gap: 40px;
  }

  .hero .headshot-wrap {
    order: -1;
  }

  .headshot {
    width: 220px;
    height: 220px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .section-dark,
  .section-projects,
  .section-light,
  .section-contact {
    padding: 72px 24px;
  }

  .section-contact {
    padding-bottom: 56px;
  }

  .bg-copy,
  .project-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .skill-row,
  .job-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .skill-pill {
    white-space: normal;
  }

  .section-dark h2,
  .section-projects h2,
  .section-light h2 {
    font-size: 28px;
  }

  .section-contact h2 {
    font-size: 30px;
  }
}

@media (max-width: 560px) {
  .nav-toggle {
    display: flex;
  }

  .topbar nav {
    display: none;
  }

  .topbar nav.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 24px 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
  }

  .topbar nav.open a {
    padding: 14px 0;
    border-top: 1px solid var(--border);
  }

  .topbar nav.open a:first-child {
    border-top: none;
  }
}
