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

:root {
  --bg: #ffffff;
  --bg-subtle: #f7f8fa;
  --text: #0d0f14;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --accent: #0057ff;
  --border: #e4e7ec;
  --border-light: #f0f2f5;
  --nav-h: 64px;
  --page-pad: clamp(1.5rem, 5vw, 5rem);
  --max-w: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

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

/* ── Hero ── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 4rem) var(--page-pad) 0;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: center;
  padding-bottom: 4rem;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
}

.hero-text-col {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-sub {
  max-width: 480px;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 4rem;
}

.accent {
  color: var(--text);
  font-weight: 500;
}

.hero-rule {
  height: 1px;
  background: var(--border);
  width: 100%;
}

/* ── About ── */

.about {
  padding: 6rem var(--page-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}

.about-inner {
  max-width: 720px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.about-bio {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.about-links {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  background: var(--text);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.15s, opacity 0.15s;
}

.btn-primary:hover {
  background: #1a1f2e;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem var(--page-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer span {
  font-size: 0.75rem;
  color: var(--muted-light);
}

/* ── Resume: Hero ── */

.resume-hero {
  padding: calc(var(--nav-h) + 5rem) var(--page-pad) 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.resume-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.resume-tagline {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}

/* ── Resume: Body ── */

.resume-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem var(--page-pad) 6rem;
}

.resume-section {
  margin-bottom: 4rem;
}

.resume-section-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.resume-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.resume-entry:last-child {
  border-bottom: none;
}

.resume-entry-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.1rem;
}

.entry-company {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.entry-date {
  font-size: 0.75rem;
  color: var(--muted-light);
  font-weight: 400;
}

.entry-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.entry-list {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.entry-list li {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

.resume-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
}

.resume-section-sm {
  margin-bottom: 0;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-photo {
    max-width: 200px;
    aspect-ratio: 1 / 1;
  }

  .resume-entry {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .resume-lower {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a:nth-child(n+3) {
    display: none;
  }
}
