/* RAYN Jarvis homepage hero. */
.rayn-home-v5 .v5-hero-video {
  position: relative;
  isolation: isolate;
  min-height: clamp(42rem, 78vh, 54rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 48%, rgba(78, 209, 160, .11), transparent 34rem),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .045), transparent 24rem),
    linear-gradient(135deg, #070908 0%, #0b0f0c 52%, #080a09 100%);
  color: #fff;
}

.rayn-home-v5 .v5-hero-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 6rem 6rem;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .28), transparent 58%);
  pointer-events: none;
}

.rayn-home-v5 .v5-hero-video__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(32rem, 1.2fr);
  gap: clamp(3rem, 6vw, 6.5rem);
  align-items: center;
  padding-top: clamp(8.5rem, 13vh, 11rem);
  padding-bottom: clamp(4rem, 7vh, 6rem);
}

.rayn-home-v5 .v5-hero-video__content {
  max-width: 37rem;
}

.rayn-home-v5 .v5-hero-video .v5-kicker {
  margin: 0 0 1.35rem;
  color: #99e4c8;
}

.rayn-home-v5 .v5-hero-video h1 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-family: var(--v5-serif);
  font-size: clamp(3.45rem, 5vw, 5.9rem);
  font-weight: 450;
  letter-spacing: -.055em;
  line-height: .92;
  text-wrap: balance;
}

.rayn-home-v5 .v5-hero-video__content > p:not(.v5-kicker) {
  max-width: 34rem;
  margin: 1.55rem 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.65;
}

.rayn-home-v5 .v5-hero-video__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  margin-top: 2rem;
}

.rayn-home-v5 .v5-hero-video .v5-button {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.35rem;
  border: 1px solid #fff;
  background: #fff;
  color: #0b0e0c;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.rayn-home-v5 .v5-hero-video .v5-button:hover,
.rayn-home-v5 .v5-hero-video .v5-button:focus-visible {
  background: transparent;
  color: #fff;
  transform: translateY(-1px);
}

.rayn-home-v5 .v5-hero-video .v5-link--inverse {
  color: rgba(255, 255, 255, .9);
}

.rayn-home-v5 .v5-hero-video .v5-link--inverse::after {
  background: rgba(255, 255, 255, .45);
}

.rayn-home-v5 .v5-hero-video__media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(153, 228, 200, .34);
  border-radius: clamp(1.35rem, 2.1vw, 2rem);
  background: #030504;
  box-shadow:
    0 2.75rem 7rem rgba(0, 0, 0, .48),
    0 0 0 1px rgba(255, 255, 255, .035) inset;
  transform: translateZ(0);
}

.rayn-home-v5 .v5-hero-video__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 4rem rgba(78, 209, 160, .07) inset;
  pointer-events: none;
}

.rayn-home-v5 .v5-hero-video__media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #030504;
  filter: none;
}

@media (max-width: 1100px) {
  .rayn-home-v5 .v5-hero-video {
    min-height: auto;
  }

  .rayn-home-v5 .v5-hero-video__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    padding-top: 9rem;
    padding-bottom: 4rem;
  }

  .rayn-home-v5 .v5-hero-video__content {
    max-width: 48rem;
  }

  .rayn-home-v5 .v5-hero-video h1 {
    max-width: 12ch;
    font-size: clamp(3.8rem, 8vw, 6.2rem);
  }

  .rayn-home-v5 .v5-hero-video__content > p:not(.v5-kicker) {
    max-width: 42rem;
  }

  .rayn-home-v5 .v5-hero-video__media {
    max-width: 58rem;
  }
}

@media (max-width: 780px) {
  .rayn-home-v5 .v5-hero-video__layout {
    gap: 2.5rem;
    padding-top: 8rem;
    padding-bottom: 3.25rem;
  }

  .rayn-home-v5 .v5-hero-video h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 13vw, 4.8rem);
  }

  .rayn-home-v5 .v5-hero-video__content > p:not(.v5-kicker) {
    font-size: 1rem;
  }

  .rayn-home-v5 .v5-hero-video__media {
    border-radius: 1.25rem;
  }
}

@media (max-width: 520px) {
  .rayn-home-v5 .v5-hero-video__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .rayn-home-v5 .v5-hero-video .v5-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rayn-home-v5 .v5-hero-video .v5-button {
    transition: none;
  }
}
