html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-padding-top: 7.5rem;
  scroll-behavior: smooth;
}

#send-message {
  scroll-margin-top: 7rem;
}

body {
  overflow-x: hidden;
  max-width: 100%;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

img.absolute,
section img.absolute {
  max-width: none;
  width: 100%;
  height: 100%;
}

.hero-photo {
  max-width: none;
}

.container-x {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.site-logo,
.site-logo-footer {
  width: auto;
  max-width: none;
  object-fit: contain;
  background: #fff;
  border-radius: 2px;
}

.site-logo {
  height: 3.25rem !important;
  padding: 0.15rem 0.3rem;
}

.site-logo-light,
.site-logo-footer {
  background: transparent;
  padding: 0;
}

.site-logo-footer {
  height: 3.25rem;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

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

a[href^="mailto:"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 640px) {
  .site-logo {
    height: 4.4rem !important;
    padding: 0.2rem 0.4rem;
  }

  .site-logo-light {
    padding: 0;
  }

  .site-logo-footer {
    height: 4.4rem;
    padding: 0;
  }

  .container-x {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 1023px) {
  h2.whitespace-nowrap,
  .whitespace-nowrap.text-3xl {
    white-space: normal !important;
  }
}

@media (max-width: 639px) {
  h1 {
    font-size: clamp(1.7rem, 7.4vw, 2.25rem) !important;
    line-height: 1.18 !important;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: clamp(1.35rem, 6vw, 1.85rem) !important;
    line-height: 1.25 !important;
    overflow-wrap: break-word;
  }

  h3 {
    overflow-wrap: break-word;
  }

  .py-24,
  .py-24.md\:py-32 {
    padding-top: 3.25rem !important;
    padding-bottom: 3.25rem !important;
  }

  .py-16 {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .tracking-\[0\.4em\],
  .tracking-\[0\.3em\] {
    letter-spacing: 0.12em !important;
  }

  header .container-x {
    height: 4.75rem;
  }

  .hero-photo {
    object-position: 68% center;
  }

  .p-8,
  .p-10,
  .p-8.md\:p-12,
  .p-8.md\:p-10 {
    padding: 1.25rem !important;
  }

  .mt-14 {
    margin-top: 2rem !important;
  }

  .gap-16 {
    gap: 2rem !important;
  }

  .gap-12 {
    gap: 1.75rem !important;
  }

  footer .container-x {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .aspect-\[21\/9\] {
    aspect-ratio: 4 / 3 !important;
    min-height: 220px;
  }

  .py-16.md\:py-20 a.inline-flex {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  footer .container-x.grid {
    text-align: center;
    justify-items: center;
  }

  footer .container-x.grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  footer .flex.items-center.shrink-0 {
    justify-content: center;
  }

  footer p.max-w-xs {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  footer .mt-8.flex {
    justify-content: center;
  }

  footer ul {
    width: 100%;
  }

  footer li.flex {
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
  }
}
