/* Shared layout fixes for the homepage, About page, and combined site. */
.tface.photo {
  background: var(--black);
}

.tface.photo::before {
  content: none;
}

.tface.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

html {
  scroll-padding-top: 84px;
  scroll-padding-bottom: 100px;
}

/* Clipping decoration must not turn the body into a sticky scroll container. */
@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

:where(.hero-in, .offer-grid, .pains, .sgrid, .sitem, .case, .quotes,
  .quote, .tgrid, .tmember, .steps, .price-grid, .tier, .cta-grid,
  .foot-top, .story-grid, .ngrid, .fgrid, .vgrid, .tlrow, form) > * {
  min-width: 0;
}

.btn {
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

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

form > button {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
  scroll-margin-block: 100px;
}

.deliver .cost {
  flex-wrap: wrap;
}

.price-foot {
  max-width: none;
  margin: 0;
  padding: 18px 24px;
  background: var(--black);
}

@media (max-width: 1200px) {
  .nav ul {
    display: none;
  }
}

@media (max-width: 900px) {
  .offer-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 28px;
  }

  .catch,
  .catch:hover {
    --lift: 0px;
    transform: none;
  }

  .catch h2,
  .catch form,
  .catch > p,
  .catch .kicker {
    transform: none;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .hero h1 {
    font-size: clamp(34px, 9.5vw, 60px);
    line-height: 1.02;
  }

  .hero-lede,
  .offer p,
  .deliver li {
    font-size: 16px;
    line-height: 1.6;
  }

  .deliver {
    padding: 24px;
  }

  .deliver h3 {
    font-size: 24px;
  }

  .ctaband {
    align-items: stretch;
  }

  .ctaband .btn {
    width: 100%;
  }

  .sticky {
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .sticky .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    padding: 12px 8px;
    font-size: clamp(10px, 2.7vw, 12px);
    letter-spacing: .06em;
  }

  .foot-base {
    padding-bottom: 24px;
  }

  .socials {
    justify-content: flex-start;
  }

  .foot-mail a {
    font-size: clamp(21px, 5.4vw, 38px);
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .nav-in {
    gap: 8px;
  }

  .nav .mark {
    flex-shrink: 0;
    font-size: clamp(16px, 4.4vw, 19px);
  }

  .nav-cta {
    min-width: 0;
  }

  .nav .btn {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 10px;
    letter-spacing: .05em;
  }

  form {
    grid-template-columns: minmax(0, 1fr);
  }

  .catch,
  .formcard {
    padding: 22px;
  }

  .sitem {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .metrics {
    padding: 18px 16px;
  }

  .tier {
    gap: 12px;
  }

  .tier .fig {
    white-space: normal;
  }

  .tier .inc span {
    max-width: 100%;
  }

  .price-foot {
    padding: 18px;
  }

  summary {
    gap: 14px;
    line-height: 1.4;
  }
}
