:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --text: #172321;
  --muted: #64716e;
  --line: #e1e8e5;
  --accent: #187c68;
  --accent-dark: #105b4d;
  --shadow: 0 18px 50px rgba(29, 55, 48, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 246, 0.92);
  border-bottom: 1px solid rgba(225, 232, 229, 0.9);
  backdrop-filter: blur(14px);
}
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.06em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--muted); font-size: 0.88rem; font-weight: 600; transition: color 180ms ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent); }
.nav-contact { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.menu-button { display: none; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu-button span { display: block; width: 23px; height: 2px; margin: 5px; background: var(--text); transition: 180ms ease; }

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  align-items: center;
  gap: 72px;
  padding-block: 82px;
}
.eyebrow { margin: 0 0 17px; color: var(--accent); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3.4rem, 7vw, 6.1rem); line-height: 0.99; letter-spacing: -0.075em; }
.hero-text { max-width: 640px; margin: 25px 0 0; color: var(--muted); font-size: 1.04rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 7px; font-size: 0.88rem; font-weight: 700; transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.button-secondary { border-color: var(--line); background: var(--surface); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }
.quick-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 45px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.quick-details div { display: grid; gap: 3px; }
.quick-details dt { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }
.quick-details dd { margin: 0; font-size: 0.8rem; font-weight: 700; }
.hero-card { aspect-ratio: 0.82; border: 1px solid #dfe9e5; border-radius: 14px; background: radial-gradient(circle at 85% 12%, rgba(24, 124, 104, 0.13), transparent 34%), linear-gradient(145deg, #fff, #edf3f0); padding: 25px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); }
.hero-card-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.73rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-card strong { font-size: clamp(6rem, 10vw, 8.5rem); line-height: 0.8; letter-spacing: -0.09em; color: var(--accent); }
.hero-card p { margin: 0; color: var(--muted); font-size: 0.8rem; }

.section { padding-block: 100px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 220px 1fr; align-items: start; margin-bottom: 52px; }
.section-heading h2, .contact h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -0.065em; }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 76px; }
.lead { max-width: 650px; margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.95rem); line-height: 1.48; letter-spacing: -0.03em; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; }
.about-stats div { display: grid; gap: 4px; border-left: 1px solid var(--line); padding-left: 17px; }
.about-stats strong { font-size: 2rem; letter-spacing: -0.06em; }
.about-stats span { color: var(--muted); font-size: 0.74rem; }

.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.timeline-meta { display: grid; align-content: start; gap: 7px; color: var(--muted); font-size: 0.75rem; }
.timeline-meta span:last-child { color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.timeline-content h3 { margin: 0; font-size: 1.4rem; letter-spacing: -0.03em; }
.company { margin: 4px 0 17px; color: var(--accent); font-weight: 600; }
.timeline-content ul { max-width: 760px; margin: 0; padding-left: 18px; color: var(--muted); }
.timeline-content li + li { margin-top: 6px; }

.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); }
.skills-grid article { min-height: 230px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 180ms ease; }
.skills-grid article:hover { background: #f0f6f3; }
.skills-grid h3 { margin: 0 0 38px; font-size: 0.94rem; }
.skills-grid p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { min-height: 310px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 25px; background: var(--surface); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.project-card:hover { transform: translateY(-4px); border-color: #b7d5cb; box-shadow: var(--shadow); }
.project-number { color: var(--accent); font-size: 0.76rem; font-weight: 700; }
.project-type { color: var(--accent); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.project-card h3 { margin: 7px 0 10px; font-size: 1.25rem; letter-spacing: -0.03em; }
.project-card div:last-child p:last-child { margin: 0; color: var(--muted); font-size: 0.88rem; }

.contact { min-height: 430px; display: flex; flex-direction: column; justify-content: center; }
.contact h2 { max-width: 800px; }
.contact > p:not(.eyebrow) { max-width: 660px; color: var(--muted); }
.contact-links { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.contact-links a { min-height: 48px; display: inline-flex; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 7px; padding: 0 14px; background: var(--surface); font-size: 0.82rem; transition: border-color 180ms ease, color 180ms ease; }
.contact-links a:hover { border-color: var(--accent); color: var(--accent); }
.contact-links span { color: var(--accent); }
.footer { display: flex; justify-content: space-between; align-items: center; min-height: 88px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }
.footer p { margin: 0; }
.footer a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 38px; }
  .hero-card { min-height: 250px; aspect-ratio: auto; }
  .hero-card strong { font-size: 7rem; }
  .section-heading, .timeline-item { grid-template-columns: 150px 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 250px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 32px, 1120px); }
  .nav { height: 66px; }
  .menu-button { display: block; }
  .nav-links { position: absolute; left: 16px; right: 16px; top: 66px; display: none; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 8px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px; }
  .nav-contact { border: 0; border-radius: 6px; }
  .hero { min-height: auto; padding-block: 58px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4rem); }
  .hero-text { font-size: 0.96rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .quick-details { grid-template-columns: 1fr; gap: 12px; margin-top: 34px; }
  .hero-card { min-height: 210px; }
  .section { padding-block: 72px; }
  .section-heading { grid-template-columns: 1fr; gap: 9px; margin-bottom: 34px; }
  .section-heading h2, .contact h2 { font-size: 2.55rem; }
  .about-stats { gap: 8px; }
  .about-stats div { padding-left: 10px; }
  .about-stats strong { font-size: 1.55rem; }
  .about-stats span { font-size: 0.68rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 17px; }
  .timeline-meta { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .skills-grid article { min-height: 175px; }
  .skills-grid h3 { margin-bottom: 25px; }
  .contact-links { flex-direction: column; align-items: stretch; }
  .contact-links a { justify-content: space-between; }
  .footer { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
