:root {
  --ink: #17201d;
  --muted: #65716c;
  --paper: #f7f4ee;
  --panel: #ffffff;
  --line: #ddd6ca;
  --crimson: #a7272b;
  --crimson-dark: #7e1d21;
  --forest: #204238;
  --steel: #60717b;
  --gold: #caa45d;
  --shadow: 0 24px 60px rgba(23, 32, 29, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-solid {
  color: var(--ink);
  background: rgba(247, 244, 238, 0.94);
  box-shadow: 0 10px 34px rgba(23, 32, 29, 0.09);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: var(--crimson);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 700;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.division-link,
.header-action {
  justify-self: end;
  padding: 12px 16px;
  border: 1px solid currentColor;
  font-size: 0.88rem;
  font-weight: 800;
}

.division-link {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.site-header.is-solid .division-link {
  border-color: rgba(23, 32, 29, 0.22);
  background: rgba(167, 39, 43, 0.08);
  color: var(--crimson);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #1e2a27;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 20, 18, 0.82), rgba(14, 20, 18, 0.35) 48%, rgba(14, 20, 18, 0.2)),
    linear-gradient(0deg, rgba(14, 20, 18, 0.76), rgba(14, 20, 18, 0.05) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(850px, calc(100% - 36px));
  margin: 0 auto 170px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--crimson);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-content > p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2.1vw, 1.32rem);
  line-height: 1.58;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 800;
}

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

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

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 28px;
  left: clamp(18px, 4vw, 56px);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(247, 244, 238, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-panel div {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  margin-bottom: 7px;
  color: var(--forest);
  font-size: 1rem;
}

.hero-panel span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro > p,
.contact p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr;
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: var(--forest);
}

.project-card.large {
  grid-row: span 2;
  min-height: 638px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 18, 16, 0.82), rgba(12, 18, 16, 0.05) 58%);
}

.project-card div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 26px;
  color: #fff;
}

.project-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card h3 {
  max-width: 520px;
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 1.08;
}

.project-card p {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: #d8d1c5;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(12, 18, 16, 0.82), rgba(12, 18, 16, 0));
  pointer-events: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.04);
}

.gallery-item span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
}

.services {
  width: 100%;
  max-width: none;
  padding-right: clamp(18px, 4vw, 56px);
  padding-left: clamp(18px, 4vw, 56px);
  background: var(--forest);
  color: #fff;
}

.services .section-heading {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.services .eyebrow {
  color: var(--gold);
}

.service-list {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.18);
}

.service-list article {
  min-height: 270px;
  padding: 28px;
  background: #204238;
}

.service-list span {
  color: var(--gold);
  font-weight: 800;
}

.service-list h3 {
  margin: 34px 0 14px;
  font-size: 1.35rem;
  line-height: 1.16;
}

.service-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.64;
}

.service-list ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.45;
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 16px;
}

.service-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.team {
  padding-bottom: 36px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  box-shadow: 0 1px 0 var(--line);
}

.proof-grid article {
  min-height: 210px;
  padding: 28px;
  background: #fff;
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  margin-bottom: 36px;
  color: var(--forest);
  font-size: 1.2rem;
}

.proof-grid span {
  color: var(--muted);
  line-height: 1.62;
}

.process {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.process > img {
  width: 100%;
  height: min(680px, 72vh);
  min-height: 440px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.timeline {
  display: grid;
  gap: 20px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.timeline strong {
  color: var(--crimson);
}

.timeline span {
  color: var(--muted);
  line-height: 1.58;
}

.other-division {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.other-division div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.other-division h2 {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
}

.other-division p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.button.outline-dark {
  border-color: var(--forest);
  color: var(--forest);
  background: transparent;
}

.contact {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  gap: clamp(30px, 7vw, 90px);
  align-items: start;
  padding-right: clamp(18px, 4vw, 56px);
  padding-left: clamp(18px, 4vw, 56px);
  background: var(--crimson);
  color: #fff;
}

.contact > div {
  max-width: 700px;
  justify-self: end;
}

.contact .eyebrow {
  color: #f4d088;
}

.contact p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
}

.contact address {
  margin-top: 26px;
  color: #fff;
  font-style: normal;
  font-weight: 800;
  line-height: 1.55;
}

.contact-form {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 28px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--forest);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfaf7;
  color: var(--ink);
  padding: 13px 12px;
  outline: 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(167, 39, 43, 0.15);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.76);
  background: #17201d;
  font-size: 0.9rem;
}

.footer span:first-child {
  color: #fff;
  font-weight: 800;
}

.lightbox {
  width: min(980px, calc(100% - 28px));
  border: 0;
  padding: 0;
  background: #111;
  color: #fff;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(5, 8, 7, 0.78);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #111;
}

.lightbox p {
  margin: 0;
  padding: 14px 18px 18px;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero-content {
    margin-bottom: 340px;
  }

  .hero {
    min-height: 1020px;
  }

  .hero-panel,
  .intro,
  .other-division,
  .process,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .featured-grid,
  .service-list,
  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .other-division div {
    grid-template-columns: 1fr;
  }

  .project-card.large {
    grid-column: 1 / -1;
    min-height: 520px;
  }

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

  .contact > div {
    justify-self: start;
  }
}

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

  .brand small,
  .header-action {
    display: none;
  }

  .division-link {
    padding: 10px 11px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 940px;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-bottom: 360px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .hero-panel {
    right: 14px;
    left: 14px;
  }

  .section {
    width: calc(100% - 28px);
    padding: 66px 0;
  }

  .featured-grid,
  .service-list,
  .proof-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card.large {
    min-height: 380px;
  }

  .services,
  .contact {
    padding: 66px 14px;
  }

  .service-list article {
    min-height: 220px;
  }

  .process > img {
    min-height: 360px;
    height: 58vh;
  }

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

  .contact-form {
    padding: 18px;
  }

  .footer {
    display: grid;
  }
}
