:root {
  --ink: #18211f;
  --muted: #66716e;
  --paper: #f7f3ed;
  --surface: #ffffff;
  --line: #ded8cf;
  --steel: #2f3d42;
  --clay: #b55f36;
  --moss: #58715f;
  --gold: #d7a84d;
  --shadow: 0 24px 60px rgba(24, 33, 31, 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.5;
}

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

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, 56px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 243, 237, 0.94);
  box-shadow: 0 12px 40px rgba(24, 33, 31, 0.12);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 2px solid currentColor;
  font-weight: 800;
  letter-spacing: 0;
}

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

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

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

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

.main-nav a {
  opacity: 0.82;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  padding: 10px;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 148px clamp(18px, 5vw, 72px) 44px;
  color: #fff;
  overflow: hidden;
}

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

.hero-media {
  background:
    url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1800&q=85") center / cover;
  transform: scale(1.02);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(16, 24, 22, 0.9) 0%, rgba(16, 24, 22, 0.62) 42%, rgba(16, 24, 22, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-bottom: 76px;
}

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

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

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

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 9vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

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

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

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.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;
  font-weight: 800;
  cursor: pointer;
}

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

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

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

.hero-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(820px, 100%);
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero-panel div {
  padding: 20px;
  background: rgba(24, 33, 31, 0.58);
}

.hero-panel strong {
  display: block;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1;
}

.hero-panel span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

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

.section-band {
  background: var(--surface);
}

.intro,
.services,
.capabilities,
.projects,
.method,
.contact {
  padding: clamp(64px, 9vw, 118px) 0;
}

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

.intro-grid p:last-child {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.section-heading.split {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 32px;
  max-width: none;
  align-items: end;
}

.section-heading.split > p {
  margin: 0;
  color: var(--muted);
}

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

.service-card {
  min-height: 260px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

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

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

.capability-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
}

.image-tile {
  min-height: 560px;
  background: var(--steel);
  overflow: hidden;
}

.image-tile img {
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

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

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--steel);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  background: var(--moss);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.project-card {
  display: grid;
  min-height: 320px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}

.project-card.large {
  grid-row: span 2;
}

.project-card img {
  height: 240px;
  object-fit: cover;
}

.project-card.large img {
  height: 520px;
}

.project-card div {
  padding: 22px;
}

.project-card span {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.timeline article {
  min-height: 280px;
  padding: 28px;
  background: var(--paper);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 70px;
  color: #fff;
  background: var(--steel);
  font-weight: 900;
}

.contact-cta {
  max-width: 860px;
}

.site-footer {
  padding: 30px 0;
  color: #fff;
  background: var(--ink);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-grid p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

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

  .main-nav {
    position: absolute;
    top: calc(100% - 8px);
    left: 18px;
    right: 18px;
    display: none;
    padding: 16px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .hero {
    min-height: 920px;
  }

  .hero-content {
    padding-bottom: 28px;
  }

  .intro-grid,
  .capability-grid,
  .section-heading.split,
  .project-grid,
  .contact-cta {
    grid-template-columns: 1fr;
  }

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

  .project-card.large {
    grid-row: auto;
  }

  .project-card.large img,
  .project-card img {
    height: 320px;
  }
}

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

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

  .hero {
    min-height: 820px;
    padding-top: 120px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(16, 24, 22, 0.78) 0%, rgba(16, 24, 22, 0.9) 100%);
  }

  .hero-panel,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-panel div,
  .service-card,
  .timeline article {
    min-height: auto;
  }

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

  .image-tile,
  .image-tile img {
    min-height: 360px;
  }

  .footer-grid {
    display: grid;
  }
}
