:root {
  --ink: #1f251e;
  --muted: #626b5c;
  --paper: #fbfaf4;
  --warm: #ede4d1;
  --leaf: #174f38;
  --leaf-2: #2e7a4f;
  --bark: #503728;
  --line: rgba(31, 37, 30, 0.16);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", "Avenir Next", "Helvetica Neue", sans-serif;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 244, 0.94);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: block;
  width: 76px;
  height: 76px;
  overflow: hidden;
  background: rgba(251, 250, 244, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  font-size: 0.96rem;
}

.main-nav a,
.header-action,
.hero-actions a,
.service-copy a,
.quote-form button,
footer a {
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.main-nav a:hover {
  opacity: 0.72;
}

.header-action {
  padding: 11px 15px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.06);
}

.header-action:hover {
  background: var(--white);
  color: var(--leaf);
}

.site-header.is-scrolled .header-action:hover {
  background: var(--leaf);
  color: var(--white);
  border-color: var(--leaf);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero picture,
.hero picture img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
  transform: scale(1.04);
  animation: settleImage 1200ms ease-out forwards;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 20, 16, 0.76), rgba(16, 20, 16, 0.28) 48%, rgba(16, 20, 16, 0.08)),
    linear-gradient(0deg, rgba(16, 20, 16, 0.64), rgba(16, 20, 16, 0.02) 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  padding: 0 0 clamp(54px, 11vh, 108px) clamp(18px, 6vw, 76px);
  color: var(--white);
}

.hero-content p {
  margin: 0 0 16px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.hero-content h1 {
  margin: 0;
  max-width: 10ch;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(4rem, 11vw, 9.8rem);
  line-height: 0.86;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-content span {
  display: block;
  width: min(560px, 100%);
  margin-top: 24px;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.45;
}

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

.hero-actions a,
.service-copy a,
.quote-form button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--leaf);
}

.hero-actions a + a {
  background: transparent;
  color: var(--white);
}

.hero-actions a:hover,
.service-copy a:hover,
.quote-form button:hover {
  background: var(--leaf);
  border-color: var(--leaf);
  color: var(--white);
}

.hero-actions a + a:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--leaf);
}

.section-pad {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 70px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

h2 {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: 0;
}

.intro p,
.service-copy p,
.work-heading p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.service-band {
  background: var(--leaf);
  color: var(--white);
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(42px, 7vw, 104px);
}

.service-copy {
  position: sticky;
  top: 110px;
  align-self: start;
}

.service-copy p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.76);
}

.service-copy a {
  margin-top: 30px;
  border-color: var(--warm);
  background: var(--warm);
  color: var(--leaf);
}

.services-list {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.services-list div {
  display: grid;
  grid-template-columns: 52px minmax(150px, 0.6fr) minmax(190px, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.services-list span {
  color: rgba(255, 255, 255, 0.52);
}

.services-list strong {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
}

.services-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.work {
  background: var(--paper);
}

.work-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}

.work-heading h2 {
  max-width: 9ch;
}

.work-heading p {
  width: min(420px, 100%);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.work-grid figure {
  position: relative;
  min-height: 470px;
  margin: 0;
  overflow: hidden;
  background: var(--warm);
}

.work-grid figure.wide {
  grid-column: span 2;
}

.work-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms ease;
}

.work-grid figure:hover img {
  transform: scale(1.035);
}

.work-grid figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  font-weight: 600;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.65);
}

.process {
  background: var(--warm);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 92px);
}

.process ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line);
}

.process li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 70px minmax(150px, 0.55fr) minmax(180px, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.process li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--leaf);
  font-weight: 700;
}

.process strong {
  font-size: clamp(1.15rem, 2vw, 1.42rem);
}

.process span {
  color: var(--muted);
  line-height: 1.55;
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 0.72fr);
  gap: clamp(34px, 8vw, 110px);
  align-items: start;
  background: var(--paper);
}

.contact-copy p {
  margin-top: 22px;
  max-width: 520px;
}

.quote-form {
  display: grid;
  gap: 18px;
  padding-top: 5px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--bark);
  font-weight: 700;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  resize: vertical;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(23, 79, 56, 0.12);
}

.quote-form button {
  justify-content: center;
  width: fit-content;
  border-color: var(--leaf);
  background: var(--leaf);
  color: var(--white);
  cursor: pointer;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--leaf);
  line-height: 1.45;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 70px);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

footer img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--warm);
}

footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

footer a:hover {
  color: var(--warm);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes settleImage {
  to {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 12px;
  }

  .main-nav {
    display: none;
  }

  .brand {
    width: 58px;
    height: 58px;
  }

  .hero {
    min-height: 94svh;
  }

  .hero-content {
    padding-right: 18px;
  }

  .intro,
  .service-layout,
  .process-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-copy {
    position: static;
  }

  .services-list div,
  .process li {
    grid-template-columns: 44px 1fr;
  }

  .services-list p,
  .process span {
    grid-column: 2;
  }

  .work-heading {
    display: grid;
    align-items: start;
  }

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

  .work-grid figure,
  .work-grid figure.wide {
    grid-column: auto;
    min-height: 420px;
  }

  footer {
    display: grid;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    width: 52px;
    height: 52px;
  }

  .header-action {
    padding: 9px 11px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 100svh;
    align-items: flex-end;
  }

  .hero-content {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }

  .hero-content p {
    margin-bottom: 10px;
    font-size: 0.95rem;
  }

  .hero-content h1 {
    max-width: 9ch;
    font-size: clamp(2.9rem, 16.5vw, 4.25rem);
    line-height: 0.9;
  }

  .hero-content span {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.36;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
    width: min(100%, 330px);
    margin-top: 18px;
  }

  .hero-actions a,
  .service-copy a,
  .quote-form button {
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
  }

  .section-pad {
    padding: 64px 16px;
  }

  h2 {
    font-size: clamp(2.25rem, 13vw, 3.2rem);
  }

  .work-grid figure,
  .work-grid figure.wide {
    min-height: 360px;
  }
}
