:root {
  --paper: #f6f1e8;
  --paper-2: #fffaf0;
  --ink: #27231d;
  --muted: #6d6254;
  --line: #ded0bc;
  --soil: #2f2218;
  --clay: #b85b36;
  --green: #29492e;
  --gold: #e0b33c;
  --white: #fffefa;
  --shadow: 0 22px 70px rgba(69, 48, 29, 0.14);
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(246, 241, 232, 0.98));
  color: var(--ink);
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  background: rgba(255, 254, 250, 0.86);
  border-bottom: 1px solid rgba(86, 56, 35, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(39, 35, 29, 0.12);
  border-radius: var(--radius);
  object-fit: cover;
}

.brand small {
  color: var(--clay);
  font-size: 0.72em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.94rem;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
}

.header-link {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.header-action,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.header-action,
.submit-button {
  background: var(--gold);
  color: var(--soil);
}

.button.primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(41, 73, 46, 0.18);
}

.button.secondary {
  background: var(--paper-2);
  border-color: var(--line);
  color: var(--soil);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 44px;
  width: min(1180px, calc(100% - 40px));
  margin: 58px auto 0;
  align-items: start;
}

.hero-copy {
  padding-top: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.8rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-proof div {
  padding: 18px 22px 18px 0;
}

.hero-proof div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.hero-proof dt {
  font-size: 1.32rem;
  font-weight: 850;
}

.hero-proof dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lead-form {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(86, 56, 35, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-head h2 {
  margin-bottom: 20px;
  font-size: 1.55rem;
}

.lead-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--soil);
  font-size: 0.82rem;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  margin-bottom: 16px;
  background: #fbf7ef;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.lead-form input,
.lead-form select {
  height: 46px;
  padding: 0 13px;
}

.lead-form textarea {
  min-height: 112px;
  padding: 12px 13px;
  line-height: 1.45;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-hint {
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.submit-button {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.wide-photo,
.services,
.steps,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.wide-photo {
  position: relative;
  height: 330px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid rgba(86, 56, 35, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 25px 80px rgba(69, 48, 29, 0.14);
}

.wide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(47, 34, 24, 0.58));
}

.wide-photo figcaption {
  position: absolute;
  z-index: 1;
  bottom: 22px;
  left: 22px;
  max-width: 460px;
  margin: 0;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 850;
}

.services {
  padding: 84px 0 54px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 28px;
}

.section-heading h2,
.steps h2 {
  max-width: 660px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: 0.98;
}

.section-heading p {
  max-width: 390px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.service-grid article {
  min-height: 190px;
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-grid h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.service-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.steps {
  padding: 54px;
  background: var(--soil);
  border-radius: var(--radius);
  color: var(--white);
}

.steps .eyebrow {
  color: #f4c95f;
}

.steps h2 {
  max-width: 860px;
  margin-bottom: 34px;
}

.steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 254, 250, 0.18);
}

.steps strong {
  font-size: 1.18rem;
}

.steps span {
  color: rgba(255, 254, 250, 0.72);
  line-height: 1.5;
}

.engine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 24px auto 0;
  padding: 34px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.engine h2 {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.engine p:not(.eyebrow) {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.engine-actions {
  display: grid;
  gap: 10px;
  min-width: 210px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 34px 0 44px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer > a {
  color: var(--green);
  font-weight: 850;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 40px));
  padding: 15px 16px;
  background: var(--soil);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--white);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(224, 179, 60, 0.72);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .hero-copy {
    padding-top: 16px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 14px;
  }

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

  .steps ol {
    grid-template-columns: 1fr;
  }

  .engine {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header,
  .hero,
  .wide-photo,
  .services,
  .steps,
  .engine,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(3.15rem, 14vw, 4.8rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-proof,
  .form-row,
  .service-grid,
  .engine-actions,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .header-actions {
    gap: 8px;
  }

  .header-link {
    display: none;
  }

  .hero-proof div,
  .hero-proof div + div {
    padding: 14px 0;
    border-left: 0;
  }

  .hero-proof div + div {
    border-top: 1px solid var(--line);
  }

  .lead-form,
  .steps {
    padding: 20px;
  }

  .service-grid article {
    min-height: 0;
  }

  .wide-photo {
    height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
