* {
  box-sizing: border-box;
}

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

body {
  font-family: 'proxima-nova', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.banner {
  display: flex;
  width: 970px;
  height: 300px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #021e40;
}

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

.copy-panel,
.video-panel {
  position: relative;
  width: 50%;
  height: 100%;
  flex: 0 0 50%;
  overflow: hidden;
}

.copy-panel {
  background: linear-gradient(135deg, #084875, #021e40);
}

.logo {
  position: absolute;
  top: 24px;
  left: 28px;
  width: 226px;
  height: auto;
}

.frames {
  position: absolute;
  top: 92px;
  right: 28px;
  bottom: 76px;
  left: 28px;
}

.frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: rotate-copy 16s ease-in-out infinite;
}

.frame-2 {
  animation-delay: 4s;
}

.frame-3 {
  animation-delay: 8s;
}

.frame-4 {
  animation-delay: 12s;
}

.event-date {
  position: absolute;
  bottom: 25px;
  left: 28px;
  /* color: #6cbee6; */
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.video-panel {
  background: #092e48;
}

.cta-block {
  position: absolute;
  right: 22px;

  bottom: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.cta-copy {
  max-width: 330px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.cta-copy span {
  color: #ff6422;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 24px;
  background: #ff6422;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #164e68, #061a30);
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.video-panel.is-playing .event-video {
  opacity: 1;
}

.video-panel.is-playing .video-placeholder {
  visibility: hidden;
}

@keyframes rotate-copy {
  0%,
  18.75% {
    opacity: 1;
  }
  25%,
  93.75% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

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

  .frame-1 {
    opacity: 1;
  }
}
