:root {
  --bg: #fbfbf8;
  --surface: #ffffff;
  --ink: #14201d;
  --muted: #65706c;
  --line: #dfe4df;
  --brand: #0f6b58;
  --brand-dark: #10231f;
  --accent: #c67a2f;
  --shadow: 0 22px 70px rgba(18, 32, 29, 0.12);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 251, 248, 0.94);
  border-color: rgba(20, 32, 29, 0.08);
  box-shadow: 0 12px 34px rgba(17, 28, 25, 0.1);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-width: 56px;
  padding: 8px 12px;
  border-radius: 8px;
  color: currentColor;
  font-size: 14px;
  text-align: center;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(15, 107, 88, 0.12);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 84vh;
  overflow: hidden;
  place-items: end start;
  padding: 144px max(24px, calc((100vw - var(--max-width)) / 2)) 72px;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=2400&q=85");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 19, 16, 0.76), rgba(7, 19, 16, 0.35)),
    linear-gradient(0deg, rgba(7, 19, 16, 0.28), rgba(7, 19, 16, 0.12));
}

.hero-content {
  position: relative;
  width: min(680px, 100%);
}

.eyebrow,
.section-kicker,
.project-type {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1b56e;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(72px, 15vw, 172px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2.5vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #0b5a4a;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

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

.section {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-grid,
.section-heading,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.section-body p,
.section-heading p,
.contact-section p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.facts div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.fact-value,
.fact-label {
  display: block;
}

.fact-value {
  color: var(--brand-dark);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.fact-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(17, 28, 25, 0.06);
}

.project-image {
  min-height: 210px;
  background-position: center;
  background-size: cover;
}

.image-one {
  background-image: url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=900&q=80");
}

.image-two {
  background-image: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=900&q=80");
}

.image-three {
  background-image: url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=900&q=80");
}

.card-content {
  padding: 22px;
}

.card-content p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.writing-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.article-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.article-row:hover,
.article-row:focus-visible {
  color: var(--brand);
  outline: none;
}

.article-row time {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.contact-section {
  align-items: center;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-nav a {
    min-width: 0;
    padding: 8px 6px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 172px;
    padding-bottom: 54px;
  }

  .section {
    padding: 64px 0;
  }

  .section-grid,
  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .project-image {
    min-height: 230px;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .facts {
    grid-template-columns: 1fr;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
