:root {
  --ink: #17191d;
  --muted: #666d76;
  --paper: #f6f3ed;
  --white: #ffffff;
  --charcoal: #242933;
  --red: #a93628;
  --sand: #d6c3a4;
  --steel: #5e7483;
  --line: rgba(23, 25, 29, 0.14);
  --shadow: 0 22px 60px rgba(23, 25, 29, 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.55;
}

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

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

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(246, 243, 237, 0.95);
  box-shadow: 0 12px 30px rgba(23, 25, 29, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
  font-size: 13px;
}

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

.brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.brand small {
  color: currentColor;
  font-size: 12px;
  opacity: 0.76;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  opacity: 0.84;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2200&q=84") center / cover;
  filter: contrast(1.05) saturate(0.9);
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(20, 24, 30, 0.9), rgba(20, 24, 30, 0.52) 58%, rgba(20, 24, 30, 0.82)),
    linear-gradient(0deg, rgba(20, 24, 30, 0.94), rgba(20, 24, 30, 0.1) 48%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  min-height: 92vh;
  padding: 138px clamp(18px, 4vw, 54px) 54px;
}

.hero-content {
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--sand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
}

.hero-content p:not(.eyebrow) {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

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

.hero-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.hero-card span,
.contact-panel span {
  display: block;
  color: var(--sand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card a,
.contact-panel > a {
  display: block;
  margin-top: 12px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.05;
}

.hero-card p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.section {
  padding: clamp(66px, 9vw, 116px) clamp(18px, 4vw, 54px);
}

.summary {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  background: var(--white);
}

.summary > p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.services {
  background: var(--paper);
}

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

.service-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 25, 29, 0.06);
}

.service-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.service-grid p,
.project-list p,
.process-grid p,
.contact p {
  margin: 10px 0 0;
  color: var(--muted);
}

.projects {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(300px, 1fr);
  min-height: 650px;
  color: var(--white);
  background: var(--charcoal);
}

.project-photo {
  min-height: 420px;
  background:
    linear-gradient(rgba(36, 41, 51, 0.12), rgba(36, 41, 51, 0.36)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1400&q=84") center / cover;
}

.project-content {
  display: grid;
  align-content: center;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 72px);
}

.project-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.project-list div {
  padding: 22px;
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.08);
}

.project-list p {
  color: rgba(255, 255, 255, 0.72);
}

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

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-grid article {
  min-height: 220px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid strong {
  display: block;
  font-size: 22px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(24, 29, 36, 0.96), rgba(24, 29, 36, 0.78)),
    url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.contact p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.contact-panel {
  padding: 24px;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-panel span {
  color: var(--red);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(169, 54, 40, 0.2);
  border-color: var(--red);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.72);
  background: #15181d;
}

.site-footer span {
  color: var(--white);
  font-weight: 900;
}

@media (max-width: 1040px) {
  .service-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border-radius: 4px;
    color: var(--ink);
    background: rgba(246, 243, 237, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .hero-inner,
  .summary,
  .projects,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 100vh;
    padding-top: 116px;
  }
}

@media (max-width: 600px) {
  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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