.stories {
  padding: clamp(48px, 6vw, 96px) 0 clamp(72px, 8vw, 120px);
}

.stories__intro {
  display: grid;
  grid-template-columns: minmax(0, 555px) minmax(0, 458px);
  gap: clamp(24px, 4vw, 58px);
  align-items: end;
  width: 100%;
  margin-inline: auto;
  padding: 0 var(--content-inset) clamp(36px, 4vw, 64px);
}

.stories__title {
  font-size: clamp(40px, 3.6vw, 62px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.stories__intro-text {
  max-width: 458px;
  margin-bottom: 8px;
  font-size: clamp(18px, 1.3vw, 22px);
  line-height: 1.45;
}

.stories__slider {
  position: relative;
}

.stories__viewport {
  overflow: hidden;
  margin-top: -80px;
  margin-bottom: -72px;
  padding: 80px 0 72px var(--content-inset);
}

.stories__track {
  display: flex;
  gap: 26px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stories__slide {
  position: relative;
  flex: 0 0 min(1452px, calc(100vw - var(--page-pad) - 110px));
  height: clamp(520px, 50vw, 760px);
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 -16px 54px #09153c, 0 28px 54px rgba(9, 21, 60, 0.55);
  opacity: 0.4;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stories__slide.is-active {
  opacity: 1;
}

.stories__image,
.stories__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stories__image {
  object-fit: cover;
  object-position: center 35%;
}

.stories__shade {
  background: linear-gradient(215deg, rgba(20, 37, 92, 0) 42%, #14255c 92%);
}

.stories__quote {
  position: absolute;
  z-index: 1;
  right: 8%;
  bottom: 9%;
  left: 6%;
  max-width: 760px;
  margin: 0;
  font-size: clamp(32px, 3.7vw, 64px);
}

.stories__mark {
  position: absolute;
  top: -0.84em;
  left: -0.72em;
  width: 2.06em;
  height: auto;
  opacity: 0.95;
}

.stories__text {
  position: relative;
  max-width: 16ch;
  font-size: 1em;
  font-weight: 500;
  line-height: 1.1;
}

.stories__glyph {
  position: absolute;
  top: -0.15em;
  left: -0.42em;
  font-size: 1.15em;
  font-weight: 500;
  line-height: 1;
}

.stories__byline {
  display: flex;
  flex-direction: column;
  margin-top: 22px;
}

.stories__name {
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}

.stories__role {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.stories__next,
.stories__prev {
  position: absolute;
  z-index: 2;
  top: calc(80px + (100% - 80px - 72px) / 2);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.stories__next {
  left: calc(var(--content-inset) + min(1452px, 100vw - var(--page-pad) - 110px));
}

.stories__prev {
  left: var(--content-inset);
}

.stories__prev[hidden] {
  display: none;
}

.stories__next img,
.stories__prev img {
  display: block;
  width: 90.579px;
  height: 90.579px;
}

.stories__prev img {
  transform: scaleX(-1);
}

@media (max-width: 860px) {
  .stories__intro {
    grid-template-columns: 1fr;
  }

  .stories__slide {
    flex-basis: calc(100vw - (var(--page-pad) * 2));
    height: 520px;
  }

  .stories__next,
  .stories__prev {
    transform: translateY(-50%);
  }

  .stories__next {
    left: auto;
    right: calc(var(--page-pad) + 16px);
  }

  .stories__prev {
    left: calc(var(--page-pad) + 16px);
  }

  .stories__next img,
  .stories__prev img {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stories__track,
  .stories__slide {
    transition: none;
  }
}
