:root {
  --paper: #f5f6f2;
  --ink: #202722;
  --muted: #68716a;
  --accent: #28684f;
  --line: #d7dcd5;
  --content-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header,
main,
.site-footer {
  width: min(var(--content-width), calc(100% - 3.5rem));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 1.8rem;
}

.header-contact {
  display: flex;
  gap: 1rem;
}

.header-contact a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.main-nav a,
.header-contact a,
.site-footer a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

.header-contact a:hover,
.header-contact a:focus-visible {
  transform: translateY(-1px);
  background: var(--accent);
  color: #fff;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: 4.5rem 0 5rem;
}

.hero-copy {
  min-width: 0;
}

.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
}

.eyebrow,
.section-label,
.project-type {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1.2rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
}

.hero-text {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #20553f;
}

.text-link {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
}

.text-link:hover {
  text-decoration-color: var(--accent);
}

.section {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) 2fr;
  gap: 2rem;
  padding: 2.8rem 0 3.2rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 2rem;
}

.section-label {
  padding-top: 0.4rem;
}

.section-content {
  max-width: 700px;
}

.section-content h2 {
  max-width: 23ch;
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.section-content > p {
  max-width: 60ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project {
  min-width: 0;
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
}

.project-type {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.project h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.project > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.project-link {
  display: inline-flex;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.project-link:hover {
  text-decoration-color: var(--accent);
}

.contact {
  padding-bottom: 3.5rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: 1.5rem;
}

.contact-links a {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.contact-links a:hover {
  text-decoration-color: var(--accent);
}

.contact-links span {
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 1.15rem;
  max-width: 560px;
  margin-top: 2rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact-form button {
  justify-self: start;
  cursor: pointer;
  font-family: inherit;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.form-status[data-state="success"] {
  color: var(--accent);
  font-weight: 700;
}

.form-status[data-state="error"] {
  color: #a23832;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 1.3rem 0 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 2.25rem);
  }

  .site-header {
    min-height: 68px;
    flex-wrap: wrap;
    row-gap: 0.8rem;
    padding: 0.85rem 0;
  }

  .brand {
    margin-right: auto;
  }

  .header-contact {
    order: 2;
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
    gap: 1rem;
  }

  .main-nav a,
  .header-contact a {
    font-size: 0.78rem;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 4rem 0;
  }

  .hero-photo {
    width: min(100%, 360px);
  }

  h1 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  .section {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 0 2.5rem;
  }

  .project-list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
  }

  .project-type {
    margin-bottom: 0.7rem;
  }
}

@media (max-width: 380px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 1.5rem);
  }

  .main-nav {
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}