.rv-stories {
  position: fixed;
  z-index: 62;
  top: 0;
  left: calc(clamp(216px, 15vw, 304px) + 100px);
  right: clamp(500px, 35vw, 740px);
  height: 74px;
  pointer-events: none;
}

.rv-stories__rail {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  pointer-events: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  scrollbar-width: none;
}

.rv-stories__rail::-webkit-scrollbar {
  display: none;
}

.rv-story-chip {
  appearance: none;
  display: grid;
  grid-template-rows: 48px auto;
  gap: 3px;
  place-items: center;
  width: 48px;
  height: 74px;
  padding: 7px 0 6px;
  border: 0;
  border-left: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background .2s ease;
}

.rv-story-chip + .rv-story-chip {
  margin-left: -8px;
}

.rv-story-chip:hover {
  background: transparent;
  z-index: 3;
}

.rv-story-chip__ring {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 3px;
  border-radius: 999px;
  background: conic-gradient(from 220deg, #6ebd45, #fac775, #85b7eb, #6ebd45);
  box-shadow: 0 0 0 2px rgba(10, 27, 92, .9), 0 12px 28px -18px rgba(0, 0, 0, .85);
}

.rv-story-chip__ring:after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid rgba(110, 189, 69, .62);
  opacity: 0;
  transform: scale(.86);
  transition: opacity .25s ease, transform .25s ease;
}

.rv-story-chip:hover .rv-story-chip__ring:after {
  opacity: 1;
  transform: scale(1);
}

.rv-story-chip--more .rv-story-chip__ring {
  background: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(110, 189, 69, .76));
}

.rv-story-chip--more .rv-story-chip__media {
  background-image: none !important;
  background: rgba(10, 27, 92, .82);
  font-size: 20px;
  letter-spacing: 0;
}

.rv-story-chip__media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 3px solid rgba(10, 27, 92, .92);
  border-radius: inherit;
  background-color: #0a1b5c;
  background-position: center;
  background-size: cover;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: rv-story-float 7s ease-in-out infinite;
  transition: transform .28s ease, filter .28s ease;
}

.rv-story-chip:hover .rv-story-chip__media {
  transform: scale(1.06);
  filter: saturate(1.08) brightness(1.05);
}

.rv-story-chip:nth-child(2) .rv-story-chip__media {
  animation-delay: .7s;
}

.rv-story-chip:nth-child(3) .rv-story-chip__media {
  animation-delay: 1.4s;
}

.rv-story-chip:nth-child(4) .rv-story-chip__media {
  animation-delay: 2.1s;
}

.rv-story-chip:nth-child(5) .rv-story-chip__media {
  animation-delay: 2.8s;
}

@keyframes rv-story-float {
  0%, 100% {
    background-position: center center;
  }
  50% {
    background-position: center 42%;
  }
}

.rv-story-chip__label {
  width: 58px;
  overflow: hidden;
  color: rgba(255, 255, 255, .9);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 8px rgba(5, 11, 46, .72);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rv-story-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  background: rgba(3, 8, 34, .74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity .24s ease, visibility .24s ease;
}

.rv-story-viewer.is-open {
  opacity: 1;
  visibility: visible;
}

.rv-story-phone {
  position: relative;
  width: min(390px, calc(100vw - 34px));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 26px;
  background: #081348;
  box-shadow: 0 40px 110px -28px rgba(0, 0, 0, .8);
  transform: translateY(14px) scale(.97);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.rv-story-viewer.is-open .rv-story-phone {
  transform: translateY(0) scale(1);
}

.rv-story-phone__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.rv-story-phone__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 10, 41, .72), rgba(4, 10, 41, .08) 34%, rgba(4, 10, 41, .84)),
    linear-gradient(130deg, rgba(10, 27, 92, .8), rgba(10, 27, 92, .04) 54%);
}

.rv-story-progress {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  right: 14px;
  display: grid;
  grid-auto-flow: column;
  gap: 5px;
}

.rv-story-progress__bar {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.rv-story-progress__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.rv-story-progress__bar.is-done span,
.rv-story-progress__bar.is-active span {
  width: 100%;
}

.rv-story-head {
  position: absolute;
  z-index: 4;
  top: 28px;
  left: 18px;
  right: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.rv-story-head__logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
}

.rv-story-head__logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.rv-story-head__meta {
  min-width: 0;
}

.rv-story-head__brand {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.rv-story-head__type {
  margin-top: 2px;
  color: rgba(255, 255, 255, .66);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rv-story-close {
  position: absolute;
  z-index: 5;
  top: 27px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.rv-story-body {
  position: absolute;
  z-index: 4;
  left: 24px;
  right: 24px;
  bottom: 26px;
  color: #fff;
}

.rv-story-body__kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(110, 189, 69, .22);
  color: #d9ffca;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rv-story-body__title {
  max-width: 10ch;
  font-size: clamp(34px, 9.5vw, 52px);
  font-weight: 300;
  line-height: .94;
  letter-spacing: 0;
}

.rv-story-body__text {
  margin-top: 15px;
  max-width: 28ch;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.5;
}

.rv-story-body__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #0a1b5c;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rv-story-nav {
  position: absolute;
  z-index: 4;
  top: 96px;
  bottom: 96px;
  width: 44%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rv-story-nav--prev {
  left: 0;
}

.rv-story-nav--next {
  right: 0;
}

@media (max-width: 900px) {
  .rv-stories {
    top: 76px;
    left: 20px;
    right: 20px;
    height: 54px;
    z-index: 42;
  }

  .rv-stories__rail {
    max-width: calc(100vw - 40px);
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 2px;
  }

  .rv-story-chip {
    flex: 0 0 auto;
    width: 38px;
    height: 54px;
    grid-template-rows: 38px 0;
    padding: 0;
  }

  .rv-story-chip + .rv-story-chip {
    margin-left: 0;
  }

  .rv-story-chip__ring {
    width: 38px;
    height: 38px;
    padding: 2px;
    box-shadow: 0 0 0 2px rgba(10, 27, 92, .88), 0 10px 22px -16px rgba(0, 0, 0, .85);
  }

  .rv-story-chip__media {
    border-width: 2px;
    font-size: 9px;
  }

  .rv-story-chip__label {
    display: none;
  }

  .rv-story-chip--more .rv-story-chip__media {
    font-size: 17px;
  }

  .hp-hero {
    padding-top: 156px !important;
  }
}

@media (max-width: 600px) {
  .rv-stories {
    top: 76px;
    left: 20px;
    right: 20px;
  }

  .hp-hero {
    padding-top: 158px !important;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .rv-stories {
    top: 0;
    height: 66px;
  }

  .rv-story-chip {
    width: 44px;
    height: 66px;
    grid-template-rows: 42px auto;
    padding: 6px 0 5px;
  }

  .rv-story-chip__ring {
    width: 42px;
    height: 42px;
  }
}
