* {
  box-sizing: border-box;
}

html,
body {
  width: 980px;
  height: 300px;
  margin: 0;
  overflow: hidden;
}

body {
  background: #021e40;
  color: #fff;
  font-family: 'proxima-nova', Arial, sans-serif;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.banner {
  position: relative;
  display: block;
  width: 980px;
  height: 300px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background-image: linear-gradient(#084875, #021e40);
}

.banner:focus-visible {
  outline: 2px solid #ff6422;
  outline-offset: -2px;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Film fills the banner and fades into blue behind the text, as in Orbit One. */
.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #021e40 0%,
    #021e40f2 28%,
    #021e40a6 44%,
    #021e4000 62%
  );
}

/* Angled navy panel on the right, as in the Orbit One banner. */
.panel {
  position: absolute;
  right: -160px;
  bottom: -100px;
  width: 40%;
  height: 150%;
  background: linear-gradient(#03417f, #021e40, #021e40);
  transform: rotate(13deg);
}

.logo {
  position: absolute;
  top: 50px;
  right: 30px;
  z-index: 1;
  width: 160px;
  height: auto;
}

.texts .text {
  position: absolute;
  top: 50%;
  left: 40px;
  z-index: 1;
  width: 370px;
  transform: translateY(-50%);
  opacity: 0;
  animation: rotate-copy 18s linear 1 both;
}

.text .title {
  color: #6cbee6;
  font-size: 20px;
  font-style: italic;
  margin-bottom: 6px;
}

.text .content {
  font-size: 30px;
  line-height: 1.1;
}

.text-1 .content {
  font-size: 48px;
  white-space: nowrap;
  margin-bottom: 10px;
}

.texts .text-2 {
  animation-delay: 4.5s;
}

.texts .text-3 {
  animation-delay: 9s;
}

/* The last text fades in and stays: the banner stops after one 18 s run. */
.texts .text-4 {
  animation: last-copy 0.5s linear 13.5s 1 both;
}

/* One 18 s run: each text shows for 4.5 s with 0.5 s crossfades. */
@keyframes rotate-copy {
  0% {
    opacity: 0;
  }
  2.78%,
  25% {
    opacity: 1;
  }
  27.78%,
  100% {
    opacity: 0;
  }
}

.cta {
  position: absolute;
  right: 35px;
  bottom: 30px;
  z-index: 2;
  padding: 0.4em 1em;
  border-radius: 30px;
  background: #ff6422;
  color: #021e40;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background-image: linear-gradient(#084875, #021e40);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hover-logo {
  width: 55%;
  height: auto;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.banner:hover .hover,
.banner:hover .hover-logo {
  opacity: 1;
}

@keyframes last-copy {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .texts .text {
    animation: none;
  }

  .texts .text-1 {
    opacity: 1;
  }
}
