:root {
  --ink: #313131;
  --muted: #686868;
  --paper: #f6f6f4;
  --surface: #ffffff;
  --charcoal: #4d4d4d;
  --coral: #ff834f;
  --red: #ff4949;
  --peach: #ffae78;
  --line: rgba(49, 49, 49, 0.14);
  --shadow: 0 24px 70px rgba(49, 49, 49, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 58px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.header.scrolled {
  color: var(--ink);
  background: rgba(245, 241, 232, 0.94);
  box-shadow: 0 12px 36px rgba(16, 20, 18, 0.08);
  backdrop-filter: blur(14px);
}
.logo img {
  width: clamp(150px, 18vw, 236px);
  height: auto;
  transition: filter 180ms ease;
}
.header:not(.scrolled) .logo img {
  filter: brightness(0) invert(1);
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 800;
}
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}
.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  color: #fff;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.78), rgba(20, 20, 20, 0.24) 58%, rgba(20, 20, 20, 0.52));
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 36px));
  padding: 22vh 0 190px clamp(18px, 7vw, 94px);
}
.kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}
h1 { font-size: clamp(44px, 6vw, 92px); }
h2 { font-size: clamp(34px, 4.7vw, 64px); }
.hero-content p:not(.kicker) {
  max-width: 620px;
  margin: 24px 0 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.55;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 13px 18px;
  font-weight: 900;
}
.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--coral));
}
.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.hero-panel {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: 32px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(720px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(18, 25, 21, 0.48);
  backdrop-filter: blur(12px);
}
.hero-panel div {
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-panel div:last-child { border-right: 0; }
.hero-panel strong, .hero-panel span { display: block; }
.hero-panel span { margin-top: 8px; color: rgba(255, 255, 255, 0.78); }

.section {
  padding: clamp(72px, 9vw, 126px) clamp(18px, 5vw, 72px);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 6vw, 84px);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
.service-grid article {
  min-height: 220px;
  padding: 28px;
  background: var(--paper);
}
h3 {
  margin: 0 0 14px;
  font-size: 23px;
}
p {
  line-height: 1.58;
}
.service-grid p, .steps p, .project-grid p, .contact-copy {
  margin: 0;
  color: var(--muted);
}
.sectors {
  padding: clamp(70px, 8vw, 112px) clamp(18px, 5vw, 72px);
  background: #fff;
}
.sector-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
}
.sector-grid span {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 22px;
  background: var(--surface);
  color: var(--charcoal);
  font-weight: 900;
}

.process {
  padding: clamp(70px, 8vw, 110px) clamp(18px, 7vw, 98px);
  color: #fff;
  background: var(--charcoal);
}
.process h2 { max-width: 800px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.18);
}
.steps div {
  min-height: 170px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.14);
}
.steps span {
  display: block;
  margin-bottom: 34px;
  font-weight: 900;
}
.steps p { color: rgba(255, 255, 255, 0.75); }
.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}
.projects .section-head h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  padding: 0;
  color: inherit;
  text-align: left;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(19, 24, 21, 0.08);
  cursor: pointer;
}
.project-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
}
.project-grid div { padding: 22px; }
.project-card:hover img {
  transform: scale(1.025);
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(34px, 7vw, 96px);
  padding: clamp(72px, 8vw, 118px) clamp(18px, 5vw, 72px);
  background: #fffaf1;
}
.contact-copy { max-width: 560px; margin-top: 22px; }
.contact-cards {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin-top: 28px;
}
.contact-cards a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 15px 16px;
  background: #fff;
}
.contact-cards strong {
  color: var(--ink);
}
.contact-cards span {
  color: var(--muted);
}
.form {
  display: grid;
  gap: 14px;
}
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 15px;
  color: var(--ink);
  background: #fff;
}
.form textarea { resize: vertical; }
.form p {
  min-height: 24px;
  margin: 0;
  color: var(--coral);
  font-weight: 900;
}
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(20, 20, 20, 0.78);
}
.project-modal[hidden] {
  display: none;
}
.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  width: min(1180px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 6px;
  padding: clamp(18px, 3vw, 30px);
  background: #fff;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}
.modal-head {
  align-self: start;
  padding-right: 32px;
}
.modal-head h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
}
.modal-head p:last-child {
  color: var(--muted);
  line-height: 1.58;
}
.modal-gallery {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
}
.modal-gallery img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #f4f4f2;
}
.modal-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}
.modal-thumbs {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.modal-thumbs button {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.modal-thumbs button.active {
  border-color: var(--coral);
}
.modal-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav {
    position: absolute;
    top: 76px;
    right: 18px;
    display: none;
    min-width: 220px;
    padding: 18px;
    border-radius: 6px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .nav.open { display: grid; gap: 16px; }
  .split, .service-grid, .steps, .project-grid, .contact, .modal-panel {
    grid-template-columns: 1fr;
  }
  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -130px 18px 28px;
  }
  .hero { min-height: auto; }
  .hero-content { padding-bottom: 190px; }
  .modal-thumbs {
    grid-column: auto;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .logo img {
    width: 150px;
  }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-panel div { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
  .hero-panel div:last-child { border-bottom: 0; }
  .actions, .btn { width: 100%; }
  .sector-grid {
    grid-template-columns: 1fr;
  }
  .contact-cards a {
    flex-direction: column;
  }
  .modal-gallery {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }
  .modal-arrow {
    width: 40px;
    height: 40px;
  }
  .footer { flex-direction: column; }
}
