:root {
  --background: #f8f7f4;
  --surface: #ffffff;
  --text: #1c2623;
  --muted: #5f6b67;
  --border: #d9dfdc;
  --accent: #365f55;
  --accent-dark: #28483f;
  --accent-light: #e5eeea;
  --max-width: 1180px;
  --shadow: 0 18px 50px rgba(28, 38, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0;
}

.site-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

main {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  min-height: 680px;
  padding: 70px 0 110px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.25rem, 7vw, 6rem);
  font-weight: 650;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 620;
}

h3 {
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.hero-summary {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--border);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.section {
  padding: 110px 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  min-height: 350px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.project-card-featured {
  background: var(--accent-light);
}

.project-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-type {
  margin: 0 0 40px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card p:not(.project-type) {
  color: var(--muted);
}

.project-card a {
  margin-top: auto;
  padding-top: 28px;
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

.section-action {
  margin-top: 38px;
}

.text-link {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.about-preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 9vw, 130px);
}

.about-preview p {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 60px;
  }

  .hero-content {
    order: 1;
  }

  .hero-image {
    order: 2;
    max-width: 520px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .about-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .hero {
    padding: 48px 0 80px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .section {
    padding: 80px 0;
  }

  .project-card {
    min-height: 310px;
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
    gap: 20px;
  }
}
