* {
  box-sizing: border-box;
}

html,
body {
  width: 320px;
  height: 250px;
  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: 320px;
  height: 250px;
  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;
}

.shade {
  position: absolute;
  inset: 0;
  background: #021e4080;
}

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

.logo {
  position: absolute;
  top: 30px;
  left: 20px;
  z-index: 1;
  width: 40px;
  height: auto;
}

.texts .text {
  position: absolute;
  top: 70px;
  left: 80px;
  z-index: 1;
  max-width: 225px;
  opacity: 0;
  text-shadow: 0 1px 6px rgba(2, 30, 64, 0.6);
  animation: rotate-copy 18s linear 1 both;
}

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

.text .content {
  font-size: 18px;
  line-height: 1.12;
}

.text-1 .content {
  font-size: 36px;
  line-height: 1;
  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;
  left: 20px;
  bottom: 15px;
  z-index: 2;
  padding: 0.4em 1em;
  border-radius: 30px;
  background: #ff6422;
  color: #021e40;
  font-size: 14px;
  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: 80%;
  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;
  }
}
