:root {
  --ink: #242424;
  --muted: #9a9a9a;
  --rule: #8d8d8d;
  --paper: #fdfdfd;
  --footer: #171716;
  --content-max: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.25;
}

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

.site {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.header {
  min-height: 180px;
  display: grid;
  grid-template-columns: 185px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 22px 12px 28px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  width: 150px;
  height: 150px;
  align-items: center;
}

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

.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.6vw, 82px);
  font-size: clamp(16px, 1.55vw, 22px);
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

.navigation a {
  position: relative;
  padding: 12px 0;
}

.navigation a::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.navigation a:hover::after,
.navigation a[aria-current="page"]::after { transform: scaleX(1); }

.nav-contact,
.outline-button {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 12px 19px 11px;
  font-size: clamp(14px, 1.3vw, 20px);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}

.nav-contact {
  background: var(--footer);
  color: #fff;
  border-color: var(--footer);
  white-space: nowrap;
}

.nav-contact:hover { background: #fff; color: var(--ink); }
.outline-button:hover { background: var(--footer); color: #fff; }

.intro-label {
  margin: 0;
  padding: 21px 22px 0;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 700;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) minmax(460px, 1.38fr);
  gap: clamp(34px, 4.5vw, 80px);
  align-items: center;
  padding: clamp(40px, 5vw, 88px) clamp(22px, 4vw, 70px) clamp(52px, 6vw, 96px);
}

.hero--home { padding-top: 38px; }

.home-services-line {
  margin: 0;
  padding: 18px 14px 0;
  font-size: clamp(14px, 1.34vw, 20px);
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.hero__copy { align-self: stretch; display: flex; flex-direction: column; }

.hero__title {
  margin: 0;
  max-width: 510px;
  font-size: clamp(30px, 3.35vw, 53px);
  line-height: 1.09;
  letter-spacing: -.035em;
  font-weight: 700;
}

.hero__text {
  max-width: 470px;
  margin: auto 0 0;
  font-size: clamp(18px, 1.8vw, 27px);
  line-height: 1.1;
  font-weight: 700;
}

.hero__image {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1.78 / 1;
  object-fit: cover;
  display: block;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 58px);
  padding: 0 clamp(22px, 4vw, 70px) clamp(42px, 4.5vw, 78px);
}

.feature {
  display: grid;
  grid-template-columns: clamp(54px, 5.5vw, 85px) 1fr;
  align-items: center;
  gap: 13px;
}

.feature img { width: 100%; max-height: 86px; object-fit: contain; }

.feature h3,
.feature p { margin: 0; }

.feature h3 {
  font-size: clamp(12px, 1.13vw, 17px);
  line-height: 1.02;
  font-weight: 800;
  text-transform: uppercase;
}

.feature p {
  margin-top: 9px;
  font-size: clamp(10px, .88vw, 13px);
  line-height: 1.12;
  font-weight: 600;
}

.section {
  border-top: 1px solid var(--rule);
  padding: clamp(42px, 5vw, 80px) clamp(22px, 4vw, 70px);
}

.section-heading { text-align: center; }

.eyebrow {
  margin: 0 0 14px;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.15vw, 49px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(17px, 3vw, 52px);
  padding-top: clamp(38px, 5vw, 75px);
}

.service { text-align: center; }

.service img {
  width: clamp(94px, 10vw, 150px);
  aspect-ratio: 1;
  object-fit: contain;
}

.service__number {
  margin: 8px 0 3px;
  color: #a9a9a9;
  font-size: clamp(15px, 1.35vw, 21px);
  line-height: 1;
  font-weight: 700;
}

.service h3 {
  margin: 0;
  min-height: 37px;
  font-size: clamp(13px, 1.18vw, 18px);
  line-height: .98;
  font-weight: 800;
  text-transform: uppercase;
}

.service p {
  margin: 8px 0 0;
  font-size: clamp(12px, 1.14vw, 17px);
  line-height: 1.12;
}

.projects-preview { padding: clamp(48px, 5vw, 86px) 0 0; }

.projects-preview .section-heading { padding: 0 clamp(22px, 4vw, 70px); }

.project-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(33px, 4vw, 66px);
}

.project-preview {
  display: block;
  overflow: hidden;
  background: #ececec;
}

.project-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1.62 / 1;
  object-fit: cover;
  transition: transform .35s ease;
}

.project-preview:hover img { transform: scale(1.045); }

.project-preview span {
  display: block;
  padding: 9px 6px 16px;
  text-align: center;
  font-size: clamp(12px, 1.25vw, 17px);
  font-weight: 800;
  text-transform: uppercase;
}

.projects-preview .outline-button { display: table; margin: 28px auto 0; }

.contact-cta {
  padding: clamp(65px, 9vw, 140px) clamp(20px, 6vw, 120px) clamp(125px, 14vw, 220px);
  text-align: center;
}

.contact-cta p {
  max-width: 920px;
  margin: clamp(65px, 8vw, 125px) auto clamp(75px, 9vw, 140px);
  font-size: clamp(17px, 1.65vw, 25px);
  line-height: 1.13;
  font-weight: 700;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4.5vw, 74px);
  padding-top: clamp(56px, 7vw, 105px);
}

.value { text-align: center; }
.value img { width: clamp(118px, 12vw, 180px); height: 125px; object-fit: contain; }
.value h3 { margin: 17px 0 4px; font-size: clamp(14px, 1.35vw, 20px); line-height: 1.02; text-transform: uppercase; }
.value p { margin: 0; font-size: clamp(14px, 1.3vw, 19px); line-height: 1.08; }

.team-section { min-height: 660px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  padding-top: clamp(56px, 7vw, 110px);
}

.team-card {
  padding: 16px 12px 14px;
  border: 1px solid var(--rule);
  text-align: center;
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.5;
  font-weight: 700;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  max-width: 900px;
  margin: clamp(92px, 11vw, 175px) auto 0;
}

.contact-detail { text-align: center; }
.contact-detail img { width: 67px; height: 67px; object-fit: cover; border-radius: 19px; }
.contact-detail h3 { margin: 12px 0 1px; font-size: clamp(24px, 2.25vw, 34px); }
.contact-detail p { margin: 0; color: #b1b1b1; font-size: clamp(15px, 1.35vw, 20px); font-weight: 700; }

.map-wrap { padding: clamp(75px, 9vw, 140px) clamp(20px, 6vw, 110px) clamp(70px, 8vw, 120px); }
.map-wrap iframe { display: block; width: 100%; min-height: 500px; border: 0; }

.references-section { padding-top: clamp(40px, 5vw, 72px); }

.references-section .section-heading { margin-bottom: clamp(37px, 5vw, 76px); }

.reference-list {
  max-width: 1120px;
  margin: 0 auto;
}

.reference-card {
  display: grid;
  grid-template-columns: 190px 160px 1fr;
  gap: 22px;
  align-items: start;
  margin: 0 0 8px;
}

.reference-card__image,
.reference-card__placeholder {
  width: 190px;
  height: 150px;
  display: block;
  object-fit: cover;
  border: 1px solid #d4d4d4;
}

.reference-card__image { cursor: zoom-in; }
.reference-card__image:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.reference-card__placeholder {
  padding: 34px;
  object-fit: contain;
  opacity: .18;
}

.reference-card h3,
.reference-card p { margin: 0; }

.reference-card h3 {
  padding-top: 10px;
  font-size: 16px;
  line-height: 1.05;
  font-weight: 800;
}

.reference-card p {
  padding-top: 10px;
  font-size: 14px;
  line-height: 1.14;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 295px;
  gap: 30px;
  padding: 40px clamp(32px, 6vw, 110px);
  background: var(--footer);
  color: #fff;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand img { width: 190px; height: 145px; object-fit: contain; object-position: left top; }
.footer-brand p { max-width: 330px; margin: 10px 0 0; font-size: 15px; line-height: 1.05; }
.footer-details { align-self: center; justify-self: end; min-width: 275px; font-size: 15px; line-height: 1.1; }
.footer-details p { margin: 0; }
.footer-details h3 { margin: 35px 0 12px; font-size: 15px; font-weight: 500; }
.socials { display: flex; align-items: center; gap: 18px; }
.socials a { display: block; width: 38px; height: 38px; transition: transform .2s ease; }
.socials a:hover { transform: translateY(-2px); }
.socials img { display: block; width: 100%; height: 100%; object-fit: contain; }

body.gallery-is-open { overflow: hidden; }

.gallery-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 62px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 13px;
  padding: 22px;
  background: rgba(10, 10, 9, .96);
  color: #fff;
}

.gallery-lightbox[hidden] { display: none; }

.gallery__topbar,
.gallery__bottom { grid-column: 1 / -1; }

.gallery__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
}

.gallery__status,
.gallery__caption { margin: 0; font-weight: 700; }
.gallery__status { font-size: 15px; letter-spacing: .06em; }
.gallery__caption { padding: 0 4px 10px; font-size: 18px; }
.gallery__controls { display: flex; gap: 9px; }

.gallery__button,
.gallery__nav,
.gallery__thumb {
  border: 1px solid rgba(255, 255, 255, .58);
  color: #fff;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.gallery__button { padding: 9px 12px; font-size: 14px; }
.gallery__button:hover,
.gallery__button:focus-visible { background: #fff; color: #111; }

.gallery__stage {
  grid-column: 2;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  background: #000;
  border: 1px solid rgba(255, 255, 255, .24);
}

.gallery__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery__nav {
  align-self: center;
  width: 50px;
  height: 62px;
  font-size: 34px;
  line-height: 1;
}

.gallery__nav--prev { grid-column: 1; }
.gallery__nav--next { grid-column: 3; }
.gallery__nav:hover,
.gallery__nav:focus-visible { background: #fff; color: #111; }

.gallery__bottom { min-width: 0; }
.gallery__strip { display: flex; gap: 8px; overflow-x: auto; padding: 3px 2px 6px; }
.gallery__thumb { flex: 0 0 76px; width: 76px; height: 60px; padding: 0; opacity: .56; overflow: hidden; }
.gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover,
.gallery__thumb:focus-visible,
.gallery__thumb.is-active { opacity: 1; outline: 2px solid #fff; outline-offset: 1px; }

@media (max-width: 980px) {
  body { padding: 0; }
  .site { width: 100%; border-right: 0; border-left: 0; }
  .header { grid-template-columns: 112px 1fr auto; min-height: 128px; padding: 8px 16px; gap: 10px; }
  .brand { width: 104px; height: 108px; }
  .navigation { gap: 20px; font-size: 14px; }
  .nav-contact { font-size: 13px; padding: 11px 10px; }
  .hero { grid-template-columns: .8fr 1.2fr; gap: 28px; }
  .feature-strip { gap: 22px; }
  .feature { grid-template-columns: 52px 1fr; gap: 9px; }
  .feature p { display: none; }
  .reference-card { grid-template-columns: 150px 132px 1fr; gap: 15px; }
  .reference-card__image, .reference-card__placeholder { width: 150px; height: 120px; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .header { grid-template-columns: 84px 1fr; min-height: 110px; padding: 7px 13px; }
  .brand { width: 78px; height: 88px; }
  .navigation { justify-content: space-between; gap: 0; width: 100%; font-size: 14px; letter-spacing: -.025em; }
  .navigation a { padding: 7px 0; }
  .nav-contact { display: none; }
  .intro-label { padding: 19px 22px 0; font-size: 16px; }
  .home-services-line { padding: 18px 18px 0; font-size: 12px; line-height: 1.3; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 42px 22px 44px; }
  .hero__copy { gap: 25px; }
  .hero__text { margin: 0; }
  .hero__title { font-size: clamp(32px, 9.5vw, 42px); }
  .hero__text { font-size: 20px; line-height: 1.18; }
  .hero__image { aspect-ratio: 1.62 / 1; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); padding: 0 22px 38px; gap: 25px 15px; }
  .feature { grid-template-columns: 62px 1fr; gap: 11px; }
  .feature h3 { font-size: 14px; line-height: 1.1; }
  .feature p { display: block; margin-top: 7px; font-size: 13px; line-height: 1.2; }
  .feature img { max-height: 68px; }
  .section { padding: 48px 22px; }
  .eyebrow { margin-bottom: 12px; font-size: 16px; }
  .section-heading h2 { font-size: clamp(31px, 9vw, 40px); }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 38px 18px; }
  .service:last-child { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .service h3 { min-height: 43px; font-size: 15px; line-height: 1.04; }
  .service p { margin-top: 9px; font-size: 14px; line-height: 1.18; }
  .service__number { font-size: 18px; }
  .project-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .project-preview:last-child { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .project-preview span { padding: 10px 6px 17px; font-size: 14px; }
  .contact-cta { padding: 62px 24px 105px; }
  .contact-cta p { margin: 58px auto 75px; font-size: 18px; line-height: 1.2; }
  .values-grid, .team-grid { grid-template-columns: 1fr; }
  .values-grid { gap: 48px; }
  .value img { height: 115px; }
  .value h3 { margin-top: 19px; font-size: 17px; }
  .value p { font-size: 16px; line-height: 1.16; }
  .team-section { min-height: 0; }
  .team-card { padding: 17px 12px; font-size: 18px; }
  .contact-details { grid-template-columns: 1fr; gap: 48px; margin-top: 85px; }
  .contact-detail h3 { font-size: 28px; }
  .contact-detail p { font-size: 16px; line-height: 1.2; }
  .map-wrap { padding: 70px 20px; }
  .map-wrap iframe { min-height: 330px; }
  .reference-list { max-width: 520px; }
  .reference-card { grid-template-columns: 136px 1fr; gap: 15px; margin-bottom: 28px; }
  .reference-card__image, .reference-card__placeholder { width: 136px; height: 108px; grid-row: span 2; }
  .reference-card h3 { padding: 0; font-size: 17px; line-height: 1.14; }
  .reference-card p { padding: 0; font-size: 15px; line-height: 1.28; }
  .site-footer { grid-template-columns: 1fr; min-height: 0; padding: 38px 28px; }
  .footer-brand img { width: 160px; height: 120px; }
  .footer-brand p, .footer-details { font-size: 16px; line-height: 1.18; }
  .footer-details { justify-self: start; min-width: 0; }
  .footer-details h3 { margin-top: 28px; }
  .gallery-lightbox { grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 9px; padding: 12px; }
  .gallery__topbar { align-items: flex-start; }
  .gallery__controls { gap: 6px; }
  .gallery__status { font-size: 14px; }
  .gallery__button { min-height: 42px; padding: 9px 13px; font-size: 14px; }
  .gallery__nav { width: 46px; height: 62px; font-size: 30px; }
  .gallery__caption { padding-bottom: 12px; font-size: 17px; }
  .gallery__thumb { flex-basis: 70px; width: 70px; height: 54px; }
}
