:root {
  --ink: #111418;
  --ink-soft: #303841;
  --paper: #faf8f2;
  --white: #ffffff;
  --line: rgba(17, 20, 24, 0.13);
  --teal: #00a99d;
  --teal-dark: #08766f;
  --amber: #e9a72f;
  --brick: #b85042;
  --shadow: 0 24px 70px rgba(17, 20, 24, 0.18);
}

* {
  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;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(250, 248, 242, 0.94);
  box-shadow: 0 10px 40px rgba(17, 20, 24, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.74rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.84;
}

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

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88vh;
  padding: 128px clamp(18px, 4vw, 56px) 42px;
  color: var(--white);
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.88) 0%, rgba(17, 20, 24, 0.62) 38%, rgba(17, 20, 24, 0.2) 100%),
    linear-gradient(0deg, rgba(17, 20, 24, 0.65) 0%, rgba(17, 20, 24, 0) 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(4rem, 11vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

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

.hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
}

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

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

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

.button-primary {
  color: var(--ink);
  background: var(--amber);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}

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

.hero-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 210px));
  gap: 1px;
  width: min(440px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-panel div {
  padding: 18px;
  background: rgba(17, 20, 24, 0.3);
}

.metric {
  display: block;
  margin-bottom: 4px;
  color: var(--amber);
  font-size: 2rem;
  font-weight: 900;
}

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

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.78fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.section-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.work-band {
  background: var(--paper);
}

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

.service-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(17, 20, 24, 0.06);
}

.service-icon {
  display: inline-grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 38px;
  color: var(--white);
  background: var(--teal-dark);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
}

.service-card:nth-child(2) .service-icon {
  background: var(--brick);
}

.service-card:nth-child(3) .service-icon {
  color: var(--ink);
  background: var(--amber);
}

.service-card p,
.timeline-step p {
  margin: 16px 0 0;
  color: var(--ink-soft);
}

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

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.timeline-step {
  min-height: 260px;
  padding: 28px;
  background: #1a1f24;
}

.timeline-step span {
  display: inline-block;
  margin-bottom: 50px;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-step p {
  color: rgba(255, 255, 255, 0.74);
}

.focus-band {
  background: var(--white);
}

.focus-list {
  display: grid;
  gap: 10px;
}

.focus-list p {
  margin: 0;
  padding: 18px 20px;
  border-left: 5px solid var(--teal);
  background: #f3f4ef;
  font-weight: 800;
}

.focus-list p:nth-child(2n) {
  border-left-color: var(--amber);
}

.focus-list p:nth-child(3n) {
  border-left-color: var(--brick);
}

.contact-band {
  background: #ebe8df;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 20, 24, 0.18);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fcfbf8;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 169, 157, 0.14);
}

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

.form-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
}

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

  .nav-toggle {
    display: inline-grid;
    width: 42px;
    aspect-ratio: 1;
    place-items: center;
    gap: 5px;
    border: 1px solid currentColor;
    border-radius: 6px;
    color: inherit;
    background: transparent;
  }

  .nav-toggle span:not(.sr-only) {
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px 18px 18px;
    color: var(--ink);
    background: rgba(250, 248, 242, 0.97);
    box-shadow: 0 18px 42px rgba(17, 20, 24, 0.12);
    transform: translateY(-12px);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 15px 0;
    border-top: 1px solid var(--line);
  }

  .hero {
    min-height: 86vh;
    padding-top: 108px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(17, 20, 24, 0.9) 0%, rgba(17, 20, 24, 0.64) 72%, rgba(17, 20, 24, 0.26) 100%),
      linear-gradient(0deg, rgba(17, 20, 24, 0.68) 0%, rgba(17, 20, 24, 0) 48%);
  }

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

  .hero-panel {
    justify-self: start;
    margin-top: 34px;
  }

  .service-card,
  .timeline-step {
    min-height: auto;
  }

  .timeline-step span,
  .service-icon {
    margin-bottom: 24px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(3.1rem, 17vw, 4.5rem);
  }

  .brand span:last-child {
    max-width: 12ch;
  }

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

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

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