html {
  scroll-behavior: smooth;
}

img {
  height: auto;
}

.btn {
  min-height: 44px;
  line-height: 1.15;
  text-align: center;
}

.nav .brand img {
  padding: 2px;
  border-radius: 10px;
  background: rgba(255, 253, 247, .92);
}

.quote-form textarea {
  min-height: 108px;
  resize: vertical;
}

.service img,
.portfolio img,
.darkcard img,
.service-row img {
  object-position: center;
}

@media (max-width: 900px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .navin {
    height: auto;
    min-height: 68px;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand img {
    height: 40px;
    flex: 0 0 auto;
  }

  .brand span {
    min-width: 0;
    line-height: 1.08;
  }

  .brand small {
    font-size: 10px;
    letter-spacing: .08em;
  }

  .links {
    display: flex;
    gap: 0;
    margin-left: auto;
  }

  .links a:not(.btn) {
    display: none;
  }

  .links .btn,
  .navactions > .btn {
    display: inline-flex;
    padding: 11px 14px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: none;
  }

  .display {
    font-size: clamp(38px, 13vw, 54px);
    line-height: .96;
    letter-spacing: -.035em;
  }

  .lead {
    font-size: clamp(16px, 4.4vw, 19px);
  }

  .section {
    padding: 56px 0;
  }

  .section h2 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.04;
  }

  .pad,
  .panel,
  .planner {
    padding: 22px;
  }

  .footer .wrap {
    display: grid;
    gap: 8px;
  }

  .hero {
    min-height: 640px;
    background-position: center;
  }

  .hero2,
  .hero3,
  .plannerhero {
    padding-top: 58px;
    padding-bottom: 34px;
  }

  .hero4 {
    min-height: 660px;
  }

  .hero4 .wrap {
    padding-bottom: 64px;
  }

  .tile,
  .tile.big {
    min-height: 320px;
  }

  .floating-copy {
    inset: auto 14px 14px;
    padding: 16px;
    border-radius: 20px;
  }

  .portfolio img {
    height: 190px;
  }

  .service-row {
    gap: 16px;
  }

  .service-row img {
    width: 100%;
    height: 190px;
  }

  .darkcard img {
    height: 230px;
  }

  .preview {
    min-height: 420px;
    border-radius: 28px;
  }

  .previewcard {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 18px;
    border-radius: 22px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand small {
    display: none;
  }

  .brand img {
    height: 36px;
  }

  .brand span {
    font-size: 14px;
  }

  .nav .btn {
    width: auto;
    padding: 10px 12px;
    font-size: 11px;
  }

  .btn {
    width: 100%;
  }

  .herocta .call {
    width: auto;
  }

  .herochips,
  .servicebar {
    gap: 8px;
  }

  .pill {
    padding: 7px 10px;
    font-size: 11px;
  }

  .grid3 {
    gap: 16px;
  }

  .portfolio {
    grid-template-columns: 1fr !important;
  }

  .portfolio img {
    height: 220px;
  }

  .tile,
  .tile.big {
    min-height: 280px;
  }

  .choices {
    gap: 10px;
  }

  .choice {
    padding: 16px;
  }

  .preview {
    min-height: 360px;
  }

  .quote-form input,
  .quote-form select,
  .quote-form textarea {
    font-size: 16px;
  }

  .footer {
    padding: 40px 0;
  }
}
