.hero {
  position: relative;
  isolation: isolate;
  margin-inline: -8px;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: system-ui, sans-serif;
}

.hero__inner {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: minmax(min-content, 5fr) minmax(16px, 1fr);
  align-items: end;
  height: 80vh;
  height: 80svh;
  min-height: min-content;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(12px, 4vw, 40px);
}

.hero__content {
  margin-block-start: clamp(16px, 4vw, 32px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.45rem, 7.3vw, 4.15rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 22px rgb(var(--color-navy-rgb) / 50%);
}

.hero h1 span {
  display: block;
}

.hero__subtitle {
  max-width: 42ch;
  margin: 18px 0 0;
  color: var(--color-white);
  font-size: clamp(1.0625rem, 2.35vw, 1.75rem);
  font-weight: 650;
  line-height: 1.35;
}

.hero__primary {
  box-sizing: border-box;
  display: inline-block;
  max-width: 100%;
  margin-top: 26px;
  padding: 14px 20px;
  border-radius: 8px;
  background: var(--color-red);
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.hero__primary:hover {
  background: var(--color-red-deep);
}

.hero a:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 4px;
}

.hero__media {
  position: absolute;
  z-index: -1;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.hero__media img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media img {
  object-position: 66% 30%;
}

.hero__video {
  opacity: 0;
}

.hero__video--playing {
  opacity: 1;
  transition: opacity 220ms ease;
}

.hero__media::after {
  position: absolute;
  inset: 0;
  background: rgb(var(--color-navy-rgb) / 70%);
  pointer-events: none;
  content: "";
}

@media (max-width: 760px) {
  .hero__media img {
    object-position: 70% 30%;
  }
}
