.slide-section {
  padding-block: 60px;
  color: #1A1B20;
}

.slide-section :where(h1, h2, h3) {
  font-family: "Playfair Display", sans-serif;
}

.slides-inner {
  display: flex;
  gap: 24px;
  padding-block: 30px;
  align-items: start;
  max-width: 1146px;
  margin-left: auto;
}

.slide-image-wrapper {
  position: sticky;
  top: 100px;
  width: 100%;
  aspect-ratio: 4/5;
  max-height: 520px;
  max-width: 460px;
}

.slide-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
  border-radius: 0px 26px;
}

.slide-image.is-active {
  opacity: 1;
}

.slide-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* distinct backgrounds so the picture change is unmistakable */
.slide-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.slide-step {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  align-items: flex-start;
  gap: 20px;
}

.slide-step .pill {
  background: #EFE3FF;
  border-radius: 100px;
  color: #755BE2;
  font-size: 12.5px;
  font-weight: 500;
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  padding: 3px 15px;
}

.slide-step h3 {
  font-size: 34px;
  margin-bottom: 0;
  font-family: 'Playfair Display';
  font-weight: 500;
}

.slide-step p {
  font-size: 17px;
  line-height: 1.6;
}

/* [data-anim] {
  opacity: 0;
} */

.slide-image {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide-image.is-active {
  opacity: 1;
}

.slide-content .slide-step .image-wrapper {
  width: 100%;
  margin-bottom: 24px;
}

.slide-content .slide-step .image-wrapper img {
  aspect-ratio: 280 / 320;
  border-top-right-radius: 26px;
  border-bottom-left-radius: 26px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-section .slide-step .beat-meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 360px;
  padding-left: 14px;
}

.slide-section .slide-step .beat-meta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  border-left: 3px solid #755BE2;
  height: calc(100% - 20px);
}

.slide-section .slide-step .beat-meta span {
  font-size: 30px;
  font-weight: 600;
  font-family: "Playfair Display", sans-serif;
  ;
}

.slide-section .slide-step .beat-meta .beat-info p {
  color: #9C9C9C;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 4px;
  font-size: 12px;
}

.slide-section .slide-step .beat-meta .beat-info a {
    color: #1A1B20;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-underline-offset: 3px;
}
.slide-step .quote-content {
  padding-left: 16px;
  border-left: 2px solid #755BE2;
  margin: 0 !important;
}
.slide-step .quote-content p{
  font-family: "Playfair Display";
  font-size: 20px;
  font-style: italic;
  line-height: 1.7;
  color: #545454;
      max-width: 390px;
    font-weight: 400;
}
.slide-step .quote-content p + p{
  margin-top: 10px;
}
.slide-step .quote-content .quote-author{
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}
.slide-step .quote-content .quote-author .author-image{
  height: 44px;
  width: 44px;
  border-radius: 50%;
  min-width: 44px;
  background-color: #D9D9D9;
  overflow: hidden;
  position: relative;
}
.slide-step .quote-content .quote-author .author-image img{
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  top: 0;
  left: 0;
}
.slide-step .quote-content .quote-author  span{
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: #545454;
  display: block;
}
.slide-step ul{
      display: flex;
    flex-direction: column;
    list-style: none;
    gap: 15px;
}
.slide-step ul li{
    font-size: 17px;
    color: #1A1B20;
    padding-left: 64px;
    position: relative;
}
.slide-step ul li::before{
    content: '';
    width: 48px;
    border-top: 1px solid #1A1B20;
    position: absolute;
    left: 0;
    top: 13px;
}
.desk-section.closing{
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.desk-section {
  background-color: #FFFFFF;
  padding-bottom: 60px;
  color: #1A1B20;
}

.desk-section :where(h1, h2, h3) {
  font-family: "Playfair Display", sans-serif;
}

.desk-section .desk-wrapper {
  text-align: center;
  position: relative;
  z-index: 1;
  background-color: #FFFFFF;
}

.desk-section .desk-wrapper .pill {
  position: relative;
  z-index: 1;
  background: #EFE3FF;
  border-radius: 100px;
  color: #755BE2;
  font-size: 12.5px;
  font-weight: 500;
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  padding: 3px 15px;
  margin-bottom: 48px;
}

.desk-section .desk-wrapper p {
  max-width: 720px;
  font-family: "Playfair Display", sans-serif;
  ;
  margin-inline: auto;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.143;
  margin-bottom: 48px;
}

.desk-section .desk-wrapper .btn {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: 3px;
  background-color: #1A1B20;
  border-radius: 100px;
  padding: 6px 45px;
  line-height: 1.9;
  min-height: 54px;
  font-family: "Playfair Display", sans-serif;
}

@media (max-width: 991px) {
    .slide-image-wrapper {
        max-width: 300px;
    }
    .slide-step h3,
    .desk-section .section-heading p {
        font-size: 28px;
    }
    .desk-section .desk-wrapper p,
    .video-section .section-heading h2 {
      font-size: 35px;
    }
}


@media (max-width: 820px) {
  /* Hide the sticky desktop image */
  .slide-image-wrapper {
    display: none;
  }

  /* Keep text visible without the desktop JS animation */
  .slide-content .slide-step {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  /* Show the mobile image inside each step */
  .slide-content .slide-step .image-wrapper {
    display: block;
    width: 100%;
    margin-bottom: 24px;
  }

  .slide-content .slide-step .image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 280 / 320;
    object-fit: cover;
  }

  /* Make sure the content can occupy the available width */
  .slides-inner {
    display: block;
    width: 100%;
    margin-inline: auto;
  }

  .slide-content {
    width: 100%;
    min-width: 0;
  }

  .slide-content .slide-step {
    min-height: auto;
  }
}


@media (max-width: 767px) {

  .slide-image-wrapper {
    display: none;
  }

  .slide-step {
    /* gap: 14px; */
    padding: initial;
    padding-bottom: 60px;
  }

  .slides-inner,
  .story-section .story-inner .beat {
    padding-block: initial;
  }

  .desk-section .desk-wrapper .btn {
    padding-inline: 30px;
  }

  .desk-section .desk-wrapper {
    text-align: start;
  }

  .desk-section.closing{
    min-height: unset;
    padding-block: 40px;
  }
}
@media (min-width: 768px) {
  .slide-content .slide-step .image-wrapper {
    display: none;
  }
}