/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #faf9f0;
  --bg-card: #f3f1e8;
  --bg-card-hover: #ece9dd;
  --text: #1a1815;
  --text-muted: #6b6560;
  --accent: #c8613a;
  --accent-hover: #d97757;
  --border: #e0ddd4;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(250, 249, 240, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 520px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

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

/* ── Section shared ── */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ── About ── */
.about {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.about-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.about-headshot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  flex-shrink: 0;
}

.about-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-topic {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
}

.about-topic:first-child {
  margin-top: 0;
}

.about-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

.about-block {
  margin-bottom: 32px;
}

.about-block:last-child {
  margin-bottom: 0;
}

.about-expandable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.about-block.expanded .about-expandable {
  max-height: 500px;
}

.about-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 4px;
  font-family: inherit;
  transition: color 0.2s;
}

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

/* ── Projects ── */
.projects {
  padding: 100px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.3s;
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: #cbc7bb;
  transform: translateY(-2px);
}

.project-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.project-name {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(200, 97, 58, 0.1);
  color: var(--accent);
}

.project-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s;
}

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

/* ── Experience ── */
.experience {
  padding: 100px 0;
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

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

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  z-index: 1;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: all 0.3s;
}

.timeline-content:hover {
  border-color: #cbc7bb;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.timeline-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-company {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── Connect CTA ── */
.connect {
  padding: 100px 0;
  text-align: center;
}

.connect-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.connect-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.connect-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .project-card {
    padding: 24px;
  }

  .timeline-content {
    padding: 20px 24px;
  }

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

  .connect-title {
    font-size: 2rem;
  }

  .connect-links {
    flex-direction: column;
    align-items: center;
  }
}
