:root {
  --ink: #1d2427;
  --muted: #5b666b;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --line: #d9ded9;
  --green: #315f4f;
  --green-dark: #24483c;
  --copper: #b46f3a;
  --blue: #244d6c;
  --shadow: 0 18px 45px rgba(25, 31, 35, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 238, 0.94);
  border-bottom: 1px solid rgba(29, 36, 39, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 220px;
}

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

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 1.12rem;
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding: clamp(80px, 12vw, 150px) clamp(18px, 6vw, 76px);
  overflow: hidden;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 18, 18, 0.82), rgba(10, 18, 18, 0.46), rgba(10, 18, 18, 0.16));
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--copper);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero .eyebrow {
  color: #f0b47a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 6.25rem;
  line-height: 0.9;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 14px;
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: 1.25rem;
}

.button-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

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

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

.button.secondary {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border-color: rgba(29, 36, 39, 0.16);
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 6vw, 76px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

.section-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.service-grid-main {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(25, 31, 35, 0.06);
}

.service-card {
  padding: 22px;
}

.service-card-large {
  padding: 26px;
}

.service-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 18px;
}

.service-card span {
  color: var(--blue);
  font-weight: 700;
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
}

.service-card p,
.contact-intro p,
.legal-page p,
.about-grid p {
  color: var(--muted);
}

.reference-section {
  background: #edf0ea;
}

.reference-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  max-width: 100%;
  min-width: 0;
}

.project-card:focus-visible,
.button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(180, 111, 58, 0.44);
  outline-offset: 3px;
}

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

.project-card {
  display: grid;
  gap: 12px;
  align-content: start;
  width: 100%;
  padding: 12px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}

.project-card span {
  min-width: 0;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.project-card strong,
.project-card small {
  display: block;
}

.project-card small {
  margin-top: 5px;
  color: var(--muted);
}

.public-reference {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.public-reference span {
  color: var(--blue);
  font-weight: 700;
}

.public-reference h3 {
  margin-top: 8px;
}

.public-reference p,
.public-reference li {
  color: var(--muted);
}

.public-reference ul {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding-left: 18px;
}

.public-reference a {
  color: var(--green-dark);
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cad0cc;
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

select {
  cursor: pointer;
}

.field-hint {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

textarea {
  resize: vertical;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 400;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: hidden;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 18, 0.72);
}

.modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 0.8fr);
  width: min(920px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  min-width: 0;
}

.modal-gallery {
  position: relative;
  height: min(62dvh, 620px);
  min-height: 0;
  background: #111719;
  min-width: 0;
}

.modal-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-prev {
  left: 14px;
}

.gallery-next {
  right: 14px;
}

.gallery-count {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 23, 25, 0.76);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
}

.modal-body {
  padding: clamp(24px, 4vw, 42px);
  overflow: auto;
  min-width: 0;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-open {
  overflow: hidden;
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(300px, 0.74fr);
  gap: 32px;
  align-items: center;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 76px);
  background: #edf0ea;
}

.subpage-hero h1 {
  color: var(--ink);
  font-size: 4.8rem;
}

.subpage-hero p {
  color: var(--muted);
  max-width: 680px;
}

.subpage-hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 0;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.callout {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: #1f2b2a;
  color: #fff;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 94px) clamp(18px, 5vw, 40px);
}

.legal-page h1 {
  color: var(--ink);
  font-size: 4rem;
}

.legal-page section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-page h2 {
  font-size: 1.45rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 6vw, 76px);
  color: #fff;
  background: #1d2427;
}

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

.site-footer a {
  color: #fff;
  text-decoration: none;
}

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

  .main-nav {
    flex-wrap: wrap;
  }

  .service-grid,
  .reference-layout,
  .project-list,
  .contact-section,
  .subpage-hero,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 2.6rem;
  }

  .subpage-hero h1,
  .legal-page h1 {
    font-size: 3.2rem;
  }

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

  .modal-gallery {
    height: min(48dvh, 360px);
    min-height: 0;
  }

  .modal-image {
    min-height: 0;
    max-height: none;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .hero {
    min-height: 72vh;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-text {
    font-size: 1.08rem;
  }

  .subpage-hero h1,
  .legal-page h1 {
    font-size: 2.4rem;
  }

  .service-grid,
  .photo-strip {
    grid-template-columns: 1fr;
  }

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