/* Story — Figma: dark band, video left, text right + gradient */
.tw-story {
  position: relative;
  background: #060606;
  color: #ffffff;
  overflow: hidden;
  min-height: 823px;
  padding: 172px 0 120px;
}

/* Video on physical left of section */
.tw-story__media {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 676px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.tw-story__poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #060606;
  transition: opacity 0.35s ease;
}

.tw-story__video {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  outline: none;
  background: transparent;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Swap poster → video when ready */
.tw-story__media.is-video-ready .tw-story__video {
  opacity: 1;
}

.tw-story__media.is-video-ready .tw-story__poster {
  opacity: 0;
  pointer-events: none;
}

.tw-story__media:not(.has-poster) .tw-story__video {
  opacity: 1;
}

/* Hide native media UI */
.tw-story__video::-webkit-media-controls,
.tw-story__video::-webkit-media-controls-enclosure,
.tw-story__video::-webkit-media-controls-panel,
.tw-story__video::-webkit-media-controls-start-playback-button,
.tw-story__video::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Gradient from right (solid) → left (transparent) so text sits on dark */
.tw-story__media::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(268.56deg, #060606 20%, rgba(6, 6, 6, 0) 81.59%);
}

.tw-story__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start; /* RTL: content on the right */
  align-items: flex-start;
}

.tw-story__content {
  max-width: 780px;
  width: 100%;
  text-align: right;
}

.tw-story__title {
  margin: 0 0 28px;
  font-size: 50px;
  font-weight: 300;
  line-height: normal;
  letter-spacing: -0.5px;
  color: #fca22b;
}

.tw-story__title p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.tw-story__title strong,
.tw-story__title b {
  font-weight: 600;
  color: #ffffff;
}

.tw-story__text {
  font-size: 20px;
  font-weight: 300;
  line-height: normal;
  letter-spacing: -0.2px;
  color: #ffffff;
  max-width: 779px;
}

.tw-story__text p {
  margin: 0 0 1.15em;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.tw-story__text p:last-child {
  margin-bottom: 0;
}

.tw-story__text strong,
.tw-story__text b {
  font-weight: 500;
  color: #ffffff;
}

/* Tablet: keep video left / text right, give copy more room */
@media (max-width: 1024px) {
  .tw-story {
    min-height: 560px;
    padding: 96px 0 80px;
  }

  .tw-story__media {
    width: 46%;
    max-width: 480px;
  }

  .tw-story__media::before {
    background: linear-gradient(
      268.56deg,
      #060606 8%,
      rgba(6, 6, 6, 0.82) 42%,
      rgba(6, 6, 6, 0) 88%
    );
  }

  .tw-story__inner {
    align-items: center;
    min-height: 368px;
  }

  .tw-story__content {
    max-width: min(520px, 54%);
    padding-inline-start: 28px;
  }

  .tw-story__title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.4px;
  }

  .tw-story__text {
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: -0.15px;
    max-width: 100%;
  }
}

/* Mobile: video on top, text below */
@media (max-width: 768px) {
  .tw-story {
    min-height: 0;
    padding: 0 0 56px;
  }

  .tw-story__media {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    height: clamp(220px, 58vw, 320px);
  }

  .tw-story__media::before {
    background: linear-gradient(
      180deg,
      rgba(6, 6, 6, 0) 35%,
      rgba(6, 6, 6, 0.55) 68%,
      #060606 100%
    );
  }

  .tw-story__inner {
    display: block;
    min-height: 0;
    padding-top: 8px;
  }

  .tw-story__content {
    max-width: 100%;
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    text-align: right;
  }

  .tw-story__title {
    font-size: 28px;
    margin-bottom: 16px;
    line-height: 1.25;
    letter-spacing: -0.3px;
  }

  .tw-story__text {
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -0.1px;
    max-width: 100%;
  }

  .tw-story__text p {
    margin-bottom: 1em;
  }
}
