:root {
  --bg: #ffffff;
  --text: #111111;
  --text-dim: #767676;
  --border: #e6e6e6;
  --max-width: 1080px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.nav-cta {
  font-weight: 700;
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
}

/* Hero */
.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  min-height: 2.4em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.cursor {
  display: inline-block;
  width: 0.05em;
  height: 0.85em;
  margin-left: 0.06em;
  background: var(--text);
  vertical-align: -0.05em;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-text {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 420px;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  border: 1px solid var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn-filled {
  background: var(--text);
  color: var(--bg);
}

.btn-filled:hover {
  background: transparent;
  color: var(--text);
}

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

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-static {
  color: var(--text-dim);
  border-color: var(--border);
  cursor: default;
}

/* Sections */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 56px;
  letter-spacing: -0.01em;
}

.summary {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.8;
}

/* Experience */
.job {
  padding-top: 48px;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.job:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.job-header h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.job-company {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 4px;
}

.job-dates {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.job-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

.job-points li {
  position: relative;
  padding-left: 24px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

.job-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text);
}

.job-points li strong {
  color: var(--text);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
}

.skill-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.skill-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Contact */
.contact-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Footer */
.footer {
  padding: 40px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--text);
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  z-index: 90;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--text);
  color: var(--bg);
}

/* Mobile */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px;
    gap: 20px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .job-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
