:root {
  --compact-max: 1240px;
}

.header-inner {
  width: min(var(--compact-max), calc(100% - 48px));
  min-height: 72px;
  gap: 28px;
}

.brand-name {
  font-size: 1.7rem;
}

.brand-subtitle {
  font-size: 0.66rem;
}

.main-nav {
  gap: 26px;
}

.header-cta {
  padding: 10px 16px;
}

.footer-inner {
  width: min(var(--compact-max), calc(100% - 48px));
}

.compact-home {
  overflow: hidden;
}

.compact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  min-height: 500px;
  border-bottom: 1px solid var(--warm-gray);
}

.compact-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px max(32px, calc((100vw - var(--compact-max)) / 2));
}

.compact-hero__copy .eyebrow {
  margin-bottom: 16px;
}

.compact-hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: clamp(2.65rem, 4.2vw, 4.15rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.compact-hero__lead {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.compact-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.compact-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--moss);
  font-size: 0.78rem;
}

.compact-hero__meta span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--moss);
  vertical-align: 0.1em;
}

.compact-hero__image {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: var(--sage);
}

.compact-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.compact-hero__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 335px;
  padding: 16px 20px;
  background: rgba(24, 52, 46, 0.94);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.03rem;
  line-height: 1.35;
}

.compact-section {
  padding: 52px 32px;
}

.compact-section__inner {
  width: min(var(--compact-max), 100%);
  margin-inline: auto;
}

.compact-section__head {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  gap: 32px 68px;
  align-items: end;
  margin-bottom: 26px;
}

.compact-section__head h2 {
  margin: 7px 0 0;
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
}

.compact-section__head > p:last-child {
  max-width: 640px;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.compact-problems {
  background: var(--white);
}

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

.compact-problem {
  min-height: 176px;
  padding: 22px;
  border-right: 1px solid var(--warm-gray);
  border-bottom: 1px solid var(--warm-gray);
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.compact-problem:hover {
  z-index: 1;
  background: var(--sage);
  transform: translateY(-2px);
}

.compact-problem__number {
  display: block;
  margin-bottom: 18px;
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 600;
}

.compact-problem h3 {
  margin: 0 0 8px;
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.12;
}

.compact-problem p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.compact-service {
  border-block: 1px solid var(--warm-gray);
  background: var(--sage);
}

.compact-service-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 64px;
  align-items: center;
}

.compact-service-copy h2 {
  margin: 8px 0 14px;
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 3vw, 3.05rem);
  font-weight: 500;
  line-height: 1.04;
}

.compact-service-copy > p:not(.section-kicker) {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.compact-service-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 22px;
}

.compact-service-facts span {
  padding: 7px 10px;
  border: 1px solid rgba(24, 52, 46, 0.18);
  border-radius: 3px;
  background: rgba(255, 253, 248, 0.52);
  color: var(--forest);
  font-size: 0.77rem;
  font-weight: 600;
}

.compact-output {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--white);
  box-shadow: 0 14px 40px rgba(24, 52, 46, 0.08);
}

.compact-output article {
  min-height: 126px;
  padding: 20px;
  border-right: 1px solid var(--warm-gray);
  border-bottom: 1px solid var(--warm-gray);
}

.compact-output article:nth-child(2n) {
  border-right: 0;
}

.compact-output article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.compact-output span {
  display: block;
  margin-bottom: 8px;
  color: var(--slate);
  font-size: 0.69rem;
  font-weight: 600;
}

.compact-output h3 {
  margin: 0 0 6px;
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: 1.17rem;
  font-weight: 500;
}

.compact-output p {
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.45;
}

.compact-method {
  background: var(--paper);
}

.compact-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: start;
}

.compact-method h2 {
  margin: 8px 0 12px;
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
}

.compact-method-intro p:last-child {
  max-width: 480px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.compact-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--warm-gray);
}

.compact-step {
  padding: 17px 18px 14px 0;
  border-bottom: 1px solid var(--warm-gray);
}

.compact-step:nth-child(3n + 2),
.compact-step:nth-child(3n + 3) {
  padding-left: 18px;
  border-left: 1px solid var(--warm-gray);
}

.compact-step span {
  color: var(--slate);
  font-size: 0.68rem;
  font-weight: 600;
}

.compact-step h3 {
  margin: 7px 0 4px;
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 500;
}

.compact-step p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
}

.compact-trust {
  padding: 38px 32px;
  background: var(--forest);
  color: var(--white);
}

.compact-trust__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  width: min(var(--compact-max), 100%);
  margin-inline: auto;
}

.compact-trust h2 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
}

.compact-trust p {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.9rem;
}

.compact-trust .button-primary {
  border-color: var(--white);
  background: var(--white);
  color: var(--forest);
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .compact-hero {
    grid-template-columns: 1fr 0.9fr;
  }

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

  .compact-service-grid,
  .compact-method-grid {
    gap: 38px;
  }
}

@media (max-width: 800px) {
  .compact-hero,
  .compact-service-grid,
  .compact-method-grid,
  .compact-section__head,
  .compact-trust__inner {
    grid-template-columns: 1fr;
  }

  .compact-hero__copy {
    padding: 48px 24px;
  }

  .compact-hero__image {
    min-height: 300px;
  }

  .compact-section {
    padding: 42px 24px;
  }

  .compact-section__head,
  .compact-trust__inner {
    gap: 18px;
  }

  .compact-service-grid,
  .compact-method-grid {
    gap: 30px;
  }
}

@media (max-width: 560px) {
  .compact-hero h1 {
    font-size: 2.65rem;
  }

  .compact-problem-grid,
  .compact-output,
  .compact-steps {
    grid-template-columns: 1fr;
  }

  .compact-problem {
    min-height: 0;
  }

  .compact-output article,
  .compact-output article:nth-child(2n),
  .compact-output article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--warm-gray);
  }

  .compact-output article:last-child {
    border-bottom: 0;
  }

  .compact-step:nth-child(3n + 2),
  .compact-step:nth-child(3n + 3) {
    padding-left: 0;
    border-left: 0;
  }

  .compact-hero__actions {
    flex-direction: column;
  }

  .compact-hero__actions .button,
  .compact-trust .button {
    width: 100%;
  }
}
