body {
  overflow: auto !important;
}

html {
  scroll-behavior: smooth;
}

@keyframes joshHeroCtaFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.josh-hero-spline {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #050505 !important;
}

.josh-hero-spline .josh-hero-image-bg {
  display: none !important;
}

.josh-hero-spline::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 24vh;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.36) 56%, #050505 100%);
}

.josh-hero-spline-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  contain: paint;
  pointer-events: none;
  opacity: 1;
}

.josh-hero-spline-scene.is-loaded,
.josh-hero-spline-scene.is-fallback {
  opacity: 1;
}

.josh-hero-spline-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.88) 19%, rgba(5, 5, 5, 0.28) 52%, rgba(5, 5, 5, 0.58) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.5) 0%, rgba(5, 5, 5, 0.08) 43%, rgba(5, 5, 5, 0.78) 80%, #050505 100%);
}

.josh-hero-video-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.78) contrast(1.08) brightness(0.78);
}

.josh-hero-spline-fallback {
  display: none;
}

.josh-hero-spline-scene.is-fallback .josh-hero-spline-fallback {
  opacity: 0;
}

.josh-hero-copy-block {
  position: relative;
  z-index: 4;
  pointer-events: auto;
  width: min(44rem, calc(100vw - 4rem)) !important;
  margin-left: max(2rem, calc((100vw - 72rem) / 2)) !important;
  margin-right: auto !important;
  text-align: left !important;
  align-items: flex-start !important;
}

.josh-hero-copy-block * {
  text-align: left !important;
}

.josh-hero-copy-block .mx-auto {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.josh-hero-copy-block .h-px {
  display: none !important;
}

.josh-hero-spline [data-testid="hero-title"] {
  max-width: 11ch;
}

.josh-hero-work-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  margin-top: 1.65rem;
  padding: 0.86rem 1.18rem;
  border: 1px solid rgba(192, 160, 128, 0.34);
  border-radius: 999px;
  background: rgba(192, 160, 128, 0.16);
  color: #f8f4ee;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  opacity: 0;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(30px);
  animation: joshHeroCtaFadeIn 1s ease forwards;
  animation-delay: 120ms;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.josh-hero-work-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(192, 160, 128, 0.58);
  background: rgba(192, 160, 128, 0.24);
}

#work-with-josh {
  scroll-margin-top: 1rem;
}

@media (max-width: 820px) {
  .josh-hero-spline-scene {
    inset: 0;
    width: 100%;
    min-width: 0;
    opacity: 1;
  }

  .josh-hero-spline-scene.is-loaded,
  .josh-hero-spline-scene.is-fallback {
    opacity: 1;
  }

  .josh-hero-spline-scene::after {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.76) 0%, rgba(5, 5, 5, 0.28) 54%, rgba(5, 5, 5, 0.66) 100%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.54) 0%, rgba(5, 5, 5, 0.12) 42%, rgba(5, 5, 5, 0.82) 78%, #050505 100%);
  }

  .josh-hero-video-bg {
    object-position: center center;
    filter: saturate(0.72) contrast(1.04) brightness(0.68);
  }

  .josh-hero-copy-block {
    width: min(100%, calc(100vw - 3rem)) !important;
    margin-left: 1.5rem !important;
    margin-right: 1.5rem !important;
    text-align: center !important;
    align-items: center !important;
  }

  .josh-hero-copy-block * {
    text-align: center !important;
  }

  .josh-hero-copy-block .mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .josh-hero-work-cta {
    margin-top: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .josh-hero-work-cta {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
