:root {
  --bg: #f6fbf7;
  --bg-soft: #eef7f0;
  --card: rgba(255, 255, 255, 0.9);
  --text: #102418;
  --muted: #516558;
  --line: rgba(16, 36, 24, 0.09);
  --primary: #1f8a5b;
  --primary-dark: #136746;
  --shadow: 0 20px 50px rgba(22, 67, 45, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(84, 177, 126, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(80, 170, 220, 0.09), transparent 28%),
    linear-gradient(180deg, #f8fdf9 0%, #f3faf5 100%);
}

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

.site-shell {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 24px;
  gap: 16px;
}

.brand {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #e8f6ec);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.glass {
  backdrop-filter: blur(16px);
}

.hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
  padding: 42px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.9rem);
}

.lead {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), #32a36c);
  color: white;
  box-shadow: 0 14px 30px rgba(31, 138, 91, 0.23);
}

.button.secondary {
  background: white;
  border: 1px solid var(--line);
}

.quick-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 0;
  margin: 28px 0 0;
  color: var(--muted);
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.metric {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(241, 250, 244, 0.9));
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 18px;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.section {
  margin-top: 28px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.section > .card,
.contact-card,
.timeline-card {
  padding: 28px;
}

.section p {
  line-height: 1.8;
}

.project-grid,
.skills-grid,
.two-col {
  display: grid;
  gap: 20px;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  padding: 28px;
}

.project-card h3,
.skill-block h3,
.timeline-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.project-card ul,
.achievement-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.project-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #edf8f0;
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.skills-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skill-block {
  padding: 24px;
}

.skill-block p,
.timeline-item p,
.timeline-item span,
.footer p {
  color: var(--muted);
}

.two-col {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

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

.contact-card p {
  margin-top: 0;
}

.footer {
  margin-top: 30px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.legal-shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.legal-shell .card {
  padding: 30px;
}

.legal-shell h1 {
  margin-top: 0;
  font-size: 2.4rem;
}

.legal-shell h2 {
  margin-top: 28px;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
  line-height: 1.8;
}

.small-note {
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .hero,
  .project-grid,
  .skills-grid,
  .two-col,
  .footer {
    grid-template-columns: 1fr;
  }

  .footer {
    display: grid;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 20px, 1140px);
  }

  .hero,
  .section > .card,
  .project-card,
  .skill-block,
  .timeline-card,
  .footer,
  .contact-card,
  .legal-shell .card {
    padding: 22px;
  }

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

  .nav {
    justify-content: flex-start;
  }

  .timeline-item {
    flex-direction: column;
  }
}
