:root {
  color-scheme: light;
  --background: #f8f7f2;
  --foreground: #171916;
  --muted: #62675e;
  --accent: #1d6f5f;
  --accent-dark: #0d4339;
  --amber: #bb7b2a;
  --paper: #fffdf8;
  --line: #dbded5;
  --ink-soft: rgba(23, 25, 22, 0.72);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

p {
  margin: 0;
}

.site-main {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 64px);
  color: #fffdf8;
  mix-blend-mode: difference;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  flex: 0 0 auto;
  background: currentColor;
  mask: url("../img/logo-mark.0b34c1965a9e.svg") center / contain no-repeat;
  -webkit-mask: url("../img/logo-mark.0b34c1965a9e.svg") center / contain no-repeat;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.88rem;
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 120px clamp(20px, 5vw, 64px) 34px;
  background: #1b1b17;
  color: #fffdf8;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 12, 10, 0.82) 0%, rgba(10, 12, 10, 0.54) 38%, rgba(10, 12, 10, 0.12) 76%),
    linear-gradient(0deg, rgba(10, 12, 10, 0.74) 0%, rgba(10, 12, 10, 0.06) 45%);
}

.hero-content {
  width: min(100%, 860px);
  padding-block: 56px;
}

.eyebrow,
.section-kicker {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 0;
  max-width: 12ch;
  font-size: clamp(4rem, 9vw, 8.8rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.lead {
  margin: 24px 0 0;
  max-width: 680px;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 750;
  line-height: 1;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fffdf8;
}

.button.ghost {
  color: #fffdf8;
  background: rgba(255, 253, 248, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 720px);
  margin: 0;
  border: 1px solid rgba(255, 253, 248, 0.22);
  background: rgba(255, 253, 248, 0.22);
}

.hero-stats div {
  padding: 18px;
  background: rgba(12, 16, 13, 0.58);
  backdrop-filter: blur(12px);
}

.hero-stats dt {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 8px 0 0;
  font-weight: 750;
}

.section {
  padding: clamp(64px, 9vw, 132px) clamp(20px, 5vw, 64px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 8vw, 120px);
  align-items: start;
}

h2 {
  margin: 12px 0 0;
  max-width: 14ch;
  font-size: clamp(2.4rem, 5vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-grid > p,
.contact-section > p {
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.65;
}

.service-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  background: var(--line);
}

.service-band article {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 48px);
  background: var(--paper);
}

.service-band span,
.case-index {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
}

h3 {
  margin: 14px 0 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.service-band p,
.case-row p:not(.case-index),
.process-steps p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.case-section {
  background: #151713;
  color: #fffdf8;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 42px;
}

.case-list {
  border-top: 1px solid rgba(255, 253, 248, 0.18);
}

.case-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: clamp(20px, 5vw, 80px);
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.18);
}

.case-row p:not(.case-index) {
  max-width: 760px;
  color: rgba(255, 253, 248, 0.7);
}

.process-section {
  background: #edf1ea;
}

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

.process-steps article {
  min-height: 260px;
  padding: clamp(22px, 3vw, 36px);
  background: #f8f7f2;
}

.process-steps strong {
  display: block;
  color: var(--accent-dark);
  font-size: 3rem;
  line-height: 1;
}

.contact-section {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--foreground);
  color: #fffdf8;
}

.contact-section h2 {
  max-width: 15ch;
}

.contact-section p {
  max-width: 720px;
  margin-top: 24px;
  color: rgba(255, 253, 248, 0.72);
}

.contact-section .button {
  width: fit-content;
  margin-top: 32px;
}

@media (max-width: 640px) {
  .topbar {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding: 24px;
    padding-top: 96px;
  }

  .hero-image {
    object-position: 62% center;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .hero-stats,
  .intro-grid,
  .service-band,
  .section-heading,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    margin-top: 8px;
  }

  .section {
    padding-inline: 24px;
  }

  .service-band {
    padding-inline: 0;
  }

  .service-band article,
  .process-steps article {
    min-height: auto;
  }

  .case-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
