:root {
  --ink: #171a1d;
  --muted: #5b646d;
  --line: #d8dde1;
  --paper: #f5f7f6;
  --white: #ffffff;
  --steel: #25313a;
  --moss: #526d5a;
  --moss-dark: #34493a;
  --clay: #a15f42;
  --tile: #2d6f85;
  --shadow: 0 18px 45px rgba(25, 31, 35, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  width: auto;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0;
}

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

.brand small {
  color: currentColor;
  font-size: 0.76rem;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(820px, 100svh);
  overflow: hidden;
  color: var(--white);
}

.hero picture,
.hero picture img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 20, 22, 0.84), rgba(16, 20, 22, 0.52) 48%, rgba(16, 20, 22, 0.18)),
    linear-gradient(180deg, rgba(16, 20, 22, 0.46), rgba(16, 20, 22, 0.2) 46%, rgba(16, 20, 22, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  padding: clamp(128px, 19vh, 210px) 0 150px clamp(18px, 7vw, 96px);
}

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

.hero .eyebrow {
  color: #b9d6dc;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

.hero-actions,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.button:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

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

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

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

.hero-card {
  position: absolute;
  right: clamp(18px, 5vw, 66px);
  bottom: 118px;
  z-index: 1;
  display: grid;
  width: min(330px, 27vw);
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(18, 23, 26, 0.58);
  padding: 22px;
  backdrop-filter: blur(18px);
}

.hero-card strong {
  color: #b9d6dc;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-card span {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 10px;
  font-weight: 800;
}

.hero-facts {
  position: absolute;
  right: clamp(18px, 5vw, 66px);
  bottom: 28px;
  left: clamp(18px, 5vw, 66px);
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.hero-facts span {
  padding: 18px 20px 0 0;
}

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

.intro {
  background: var(--white);
}

.intro-grid,
.featured,
.local,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: start;
}

.intro-grid > *,
.featured > *,
.local > *,
.contact > *,
.section-heading > * {
  min-width: 0;
}

.company-intro {
  margin-bottom: 36px;
}

.intro-grid p,
.feature-copy p,
.section-heading p,
.local p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-row article {
  min-height: 170px;
  background: #f9faf9;
  padding: 24px;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.trust-row span {
  color: var(--muted);
}

.services {
  background: #eef2f0;
}

.section-heading {
  display: flex;
  max-width: 980px;
  flex-direction: column;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

.service-card a {
  display: inline-flex;
  margin-top: 20px;
  color: var(--moss-dark);
  font-weight: 800;
}

.service-number {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--clay);
  font-weight: 800;
}

.service-card p,
.timeline p {
  color: var(--muted);
}

.featured {
  background: var(--steel);
  color: var(--white);
}

.featured .section-kicker {
  color: #9ed0da;
}

.feature-media {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 16px;
  align-items: end;
}

.feature-media img {
  width: 100%;
  height: 520px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.feature-media img + img {
  height: 410px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 12px;
}

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

.reviews {
  background: #eef2f0;
}

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

.reviews-head > div {
  max-width: 850px;
  min-width: 0;
}

.reviews-head .button {
  flex: 0 0 auto;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  display: grid;
  min-height: 320px;
  align-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

.review-rating {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  border-radius: 999px;
  background: #f2e7dc;
  color: var(--clay);
  padding: 8px 13px;
  font-size: 0.82rem;
  font-weight: 800;
}

.review-card p {
  color: var(--muted);
  font-size: 1.04rem;
}

.review-card footer {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.review-card strong {
  font-size: 1rem;
}

.review-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.filter-bar {
  margin-bottom: 28px;
}

.filter-button {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.filter-button.is-active {
  border-color: var(--moss);
  background: var(--moss);
  color: var(--white);
}

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

.gallery-item {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #111;
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
}

.gallery-caption {
  min-height: 96px;
  padding: 16px;
  background: var(--steel);
}

.gallery-caption span,
.image-dialog p {
  display: block;
  margin-bottom: 6px;
  color: #a9cfd6;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-caption strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.process {
  background: #eef2f0;
}

.project-clip {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  background: var(--white);
}

.clip-copy,
.clip-media {
  min-width: 0;
}

.clip-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.clip-points {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.clip-points span {
  background: #f9faf9;
  padding: 15px 16px;
  font-weight: 800;
}

.clip-media video {
  display: block;
  width: 100%;
  max-height: 720px;
  border-radius: 8px;
  background: #111619;
  box-shadow: var(--shadow);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline article {
  min-height: 240px;
  background: var(--white);
  padding: 24px;
}

.timeline span {
  display: block;
  margin-bottom: 44px;
  color: var(--clay);
  font-weight: 800;
}

.local {
  background: var(--white);
  align-items: center;
}

.contact {
  background: var(--steel);
  color: var(--white);
}

.contact .section-kicker {
  color: #9ed0da;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.contact-list span {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-list a {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 12px;
  color: #b9d6dc;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: clamp(20px, 3vw, 30px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 13px 14px;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #b9d6dc;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 66px);
  background: #111619;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.image-dialog {
  width: min(980px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--steel);
  color: var(--white);
  box-shadow: var(--shadow);
}

.image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.image-dialog img {
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
  background: #0c1114;
}

.image-dialog div {
  padding: 18px 22px 22px;
}

.image-dialog h3,
.image-dialog p {
  margin: 0;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

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

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

  .featured,
  .intro-grid,
  .local,
  .contact,
  .project-clip {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }
}

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

  .section-pad {
    overflow: hidden;
    padding-right: 24px;
    padding-left: 24px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .site-nav {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: auto;
    top: auto;
    width: min(430px, calc(100vw - 24px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav a {
    padding: 12px 8px;
    text-align: center;
    font-size: 0.76rem;
  }

  .site-nav a + a {
    border-left: 1px solid var(--line);
  }

  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(16, 20, 22, 0.74), rgba(16, 20, 22, 0.38) 44%, rgba(16, 20, 22, 0.86)),
      rgba(16, 20, 22, 0.28);
  }

  .hero-content {
    width: min(100%, 390px);
    padding: 118px 16px 170px;
  }

  h1 {
    max-width: 11.5ch;
    font-size: clamp(2.35rem, 10vw, 2.85rem);
    line-height: 1.02;
  }

  .hero-copy,
  .hero .eyebrow {
    max-width: 32ch;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8vw, 2.25rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .intro-grid,
  .section-heading {
    width: 100%;
    max-width: 320px;
  }

  .intro-grid p,
  .section-heading p {
    max-width: 30ch;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts span {
    padding: 10px 0 0;
  }

  .service-grid,
  .review-grid,
  .timeline,
  .trust-row,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .reviews-head {
    align-items: start;
    flex-direction: column;
  }

  .service-card,
  .timeline article {
    min-height: 0;
  }

  .service-number,
  .timeline span {
    margin-bottom: 24px;
  }

  .feature-media {
    grid-template-columns: 1fr;
  }

  .feature-media img,
  .feature-media img + img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-button {
    padding-inline: 10px;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 86px;
  }
}

@media (max-width: 360px) {
  .site-nav {
    width: calc(100vw - 24px);
  }

  .site-nav a {
    font-size: 0.68rem;
    padding-inline: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
