:root {
  --ink: #121212;
  --muted: #5f6462;
  --line: #d7ddda;
  --paper: #f7f8f6;
  --white: #ffffff;
  --teal: #14746f;
  --brick: #b6533f;
  --mist: #dfe9e5;
  --shadow: 0 24px 70px rgba(18, 18, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 28px;
  color: var(--white);
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-header.is-scrolled,
.site-header.nav-active {
  color: var(--ink);
  background: rgba(247, 248, 246, 0.94);
  border-color: rgba(18, 18, 18, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 13px;
}

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

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.26) 56%, rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  padding-top: 92px;
  padding-bottom: 110px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #c8f0e9;
}

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

h1 {
  max-width: 740px;
  margin-bottom: 24px;
  font-size: 72px;
  line-height: 0.98;
}

h2 {
  margin-bottom: 20px;
  font-size: 44px;
  line-height: 1.08;
}

h3 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.18;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 21px;
}

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

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

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

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

.button-primary:hover,
.button-primary:focus-visible {
  background: #994431;
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.hero-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-self: end;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-facts div {
  padding: 22px 24px 26px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-facts strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.hero-facts span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.section {
  padding: 96px 0;
}

.split {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 72px;
}

.section-label {
  color: var(--brick);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.intro-copy {
  max-width: 900px;
}

.intro-copy p,
.section-heading p + h2,
.process-copy p + h2,
.contact-copy p + h2 {
  margin-bottom: 0;
}

.intro-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.services-section {
  background: var(--white);
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 280px;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-index {
  display: inline-block;
  margin-bottom: 70px;
  color: var(--brick);
  font-size: 13px;
  font-weight: 800;
}

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

.projects-section {
  background: var(--paper);
}

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

.project-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(18, 18, 18, 0.05);
}

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

.project-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.project-card.featured img {
  height: 680px;
}

.project-info {
  padding: 22px;
}

.project-info span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.project-info h3 {
  margin-bottom: 8px;
}

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

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

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 68px;
  align-items: center;
}

.process-image {
  overflow: hidden;
  border-radius: 8px;
}

.process-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.process-copy .eyebrow {
  color: #9fe6d7;
}

.process-copy h2 {
  max-width: 640px;
}

.process-list {
  display: grid;
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.process-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.process-list span {
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  background: var(--mist);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 56px;
}

.contact-copy h2 {
  max-width: 560px;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  color: var(--muted);
}

.contact-lines a {
  width: max-content;
  border-bottom: 1px solid currentColor;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
}

.contact-form input,
.contact-form select {
  min-height: 46px;
  padding: 0 12px;
}

.contact-form textarea {
  min-height: 140px;
  padding: 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 116, 111, 0.16);
}

.contact-form .button {
  width: max-content;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #0b0b0b;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 34px;
  align-items: center;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--white);
  font-weight: 700;
}

.copyright {
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .site-header {
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: grid;
    gap: 0;
    padding: 18px 20px 24px;
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .hero {
    min-height: 86svh;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-facts,
  .services-grid,
  .projects-grid,
  .process-layout,
  .contact-layout,
  .footer-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    width: 100%;
  }

  .hero-facts div {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .split,
  .process-layout,
  .contact-layout {
    gap: 34px;
  }

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

  .project-card img,
  .project-card.featured img {
    height: 430px;
  }

  .footer-layout {
    align-items: start;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 66px;
    padding: 0 14px;
  }

  .site-nav {
    inset: 66px 0 auto;
  }

  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-content {
    padding-top: 88px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 21px;
  }

  .section {
    padding: 66px 0;
  }

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

  .service-card {
    min-height: 250px;
    padding: 24px;
  }

  .service-index {
    margin-bottom: 46px;
  }

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

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

  .contact-form {
    padding: 20px;
  }
}
