:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #5b666b;
  --line: #d9dfdc;
  --paper: #f7f6f1;
  --white: #ffffff;
  --green: #3f7c27;
  --green-dark: #25531e;
  --lime: #d9e873;
  --clay: #ad6747;
  --shadow: 0 18px 55px rgba(23, 33, 38, 0.14);
  --radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 223, 220, 0.86);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}

.brand strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.2;
}

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

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #edf2ea;
  color: var(--green-dark);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 128px clamp(18px, 6vw, 84px) 46px;
  isolation: isolate;
}

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

.hero picture {
  z-index: -2;
}

.hero picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 26, 23, 0.9) 0%, rgba(16, 26, 23, 0.58) 48%, rgba(16, 26, 23, 0.2) 100%),
    linear-gradient(0deg, rgba(16, 26, 23, 0.58) 0%, rgba(16, 26, 23, 0) 45%);
}

.hero-content {
  width: min(760px, 100%);
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lime);
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.2rem, 7vw, 5.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.06rem, 2vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: var(--white);
}

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

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.13);
}

.button.dark {
  border-color: var(--ink);
  color: var(--ink);
}

.button.dark:hover,
.button.dark:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.intro,
.section,
.contact-section,
.site-footer {
  padding-right: clamp(18px, 6vw, 84px);
  padding-left: clamp(18px, 6vw, 84px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(240px, 0.68fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  padding-top: 54px;
  padding-bottom: 54px;
  background: var(--white);
}

.intro h2 {
  max-width: 720px;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
}

.intro-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-copy p + p {
  margin-top: 14px;
}

.intro-image {
  align-self: center;
  min-height: 260px;
  max-height: 380px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d7ddd8;
  box-shadow: var(--shadow);
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding-top: 84px;
  padding-bottom: 84px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.process-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 36px rgba(23, 33, 38, 0.06);
}

.service-card {
  min-height: 230px;
  padding: 24px;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #ecf3e7;
  color: var(--green-dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.service-card p,
.project-copy p,
.process-intro p,
.process-list p,
.process-note p,
.contact-content p,
.site-footer p,
.legal-document p {
  color: var(--muted);
}

.projects {
  background: #eef0ea;
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  margin-top: 34px;
}

.project-feature.reverse {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.project-feature.reverse .project-media {
  order: 2;
}

.project-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d7ddd8;
  box-shadow: var(--shadow);
}

.project-media img,
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media {
  aspect-ratio: 16 / 10;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: transparent;
  box-shadow: none;
}

.before-after img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.before-after.mobile-slider {
  display: block;
}

.mobile-slider .slider-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  overflow: visible;
}

.mobile-slider .slider-button,
.mobile-slider .slider-dots {
  display: none;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-track img {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
}

.slider-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: rgba(16, 23, 26, 0.62);
  color: var(--white);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.85rem;
  line-height: 0;
  transform: translateY(-50%);
}

.slider-button:hover,
.slider-button:focus-visible {
  background: rgba(16, 23, 26, 0.86);
  outline: none;
}

.slider-prev {
  left: 14px;
}

.slider-next {
  right: 14px;
}

.slider-dots {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: flex;
  justify-content: center;
  gap: 7px;
  pointer-events: none;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
}

.slider-dots span.is-active {
  background: var(--white);
}

.project-copy {
  max-width: 620px;
}

.project-copy p {
  margin: 18px 0 0;
}

.check-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
}

.process-section {
  background: var(--white);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.process-intro p {
  margin: 20px 0 0;
  font-size: 1.06rem;
}

.process-panel {
  padding: clamp(22px, 4vw, 34px);
}

.process-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.process-list li:first-child {
  padding-top: 0;
}

.process-list li:last-child {
  border-bottom: 0;
}

.process-list span {
  display: block;
  color: var(--clay);
  font-size: 0.9rem;
  font-weight: 900;
}

.process-list h3 {
  font-size: 1.2rem;
}

.process-list p {
  margin: 8px 0 0;
}

.process-note {
  margin-top: 24px;
  padding: 18px;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: #f3f6ef;
}

.process-note strong {
  display: block;
  margin-bottom: 6px;
}

.process-note p {
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr 0.8fr;
  gap: 8px;
  height: min(46vw, 520px);
  min-height: 320px;
  padding: 8px;
  background: var(--ink);
}

.gallery img {
  min-width: 0;
}

.gallery img:nth-child(2),
.gallery img:nth-child(4) {
  object-position: center;
}

.contact-section {
  padding-top: 88px;
  padding-bottom: 88px;
  background: var(--green-dark);
  color: var(--white);
}

.contact-content {
  width: min(790px, 100%);
}

.contact-content .section-kicker {
  color: var(--lime);
}

.contact-content p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-note {
  margin-top: 18px;
  font-size: 0.95rem;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 34px;
  padding-top: 44px;
  padding-bottom: 44px;
  background: #10171a;
  color: var(--white);
}

.footer-brand {
  font-weight: 900;
}

.footer-brand img {
  background: var(--white);
}

.site-footer p {
  max-width: 580px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  outline: none;
}

.legal-page {
  background: var(--white);
}

.legal-main {
  min-height: 100vh;
  padding: calc(76px + clamp(38px, 6vw, 82px)) clamp(22px, 5vw, 62px) clamp(42px, 6vw, 82px);
}

.legal-document {
  width: min(860px, 100%);
}

.legal-document h1 {
  max-width: none;
  color: var(--ink);
  font-size: clamp(2.3rem, 6vw, 4.6rem);
}

.legal-document h2 {
  margin-top: 36px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.legal-document p {
  max-width: 760px;
  margin: 14px 0 0;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-feature,
  .project-feature.reverse,
  .intro,
  .process-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .project-feature.reverse .project-media {
    order: 0;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .gallery img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 92vh;
    padding: 104px 18px 34px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 9vw, 3rem);
  }

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

  .button {
    width: 100%;
  }

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .intro-image {
    min-height: 230px;
    max-height: 300px;
  }

  .service-grid,
  .before-after,
  .gallery {
    grid-template-columns: 1fr;
  }

  .project-media {
    aspect-ratio: 4 / 3;
  }

  .before-after.mobile-slider {
    display: block;
    background: #d7ddd8;
    box-shadow: var(--shadow);
  }

  .mobile-slider .slider-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
  }

  .mobile-slider .slider-button {
    display: flex;
  }

  .mobile-slider .slider-dots {
    display: flex;
  }

  .process-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .before-after:not(.mobile-slider) img,
  .gallery img {
    aspect-ratio: 3 / 4;
  }

  .before-after.mobile-slider img {
    flex: 0 0 100%;
    min-width: 100%;
    border-radius: 0;
    box-shadow: none;
    scroll-snap-align: start;
  }
}
