.story-frame--outro {
  position: relative;
  color: #000;
}

.story-outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
  padding: 48px 24px 64px;
  box-sizing: border-box;
}

.story-outro__intro {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: min(800px, 100%);
  text-align: center;
}

.story-outro__intro-line {
  margin: 0;
}

.story-outro__animation {
  width: min(812px, 100%);
  height: 586px;
  overflow: visible;
  pointer-events: none;
}

.story-outro__video-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.story-outro__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-outro__media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.story-outro__media.is-paused {
  visibility: hidden;
}

.story-outro__closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(588px, 100%);
  text-align: center;
}

.story-outro__closing-line {
  margin: 0;
}

.story-chapter--6 .story-section--outro .story-outro {
  padding-bottom: 0;
}

.story-outro__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  border-radius: 48px;
  background-color: #0a60ff;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.story-outro__cta:hover {
  background-color: #0952d9;
}

.story-outro__cta:focus-visible {
  outline: 2px solid #0a60ff;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .story-frame--section-9.story-frame--mobile.story-frame--outro {
    display: block;
    padding: 0;
    box-sizing: border-box;
  }

  .story-outro {
    gap: 32px;
    padding: 48px 20px 64px;
  }

  .story-outro__intro {
    gap: 16px;
  }

  .story-outro__animation {
    width: min(100%, calc(320px * var(--artboard-scale, 1)));
    height: calc(220px * var(--artboard-scale, 1));
  }

  .story-outro__closing {
    gap: 20px;
  }

  .story-outro__cta {
    padding: 16px 32px;
    font-size: 14px;
  }
}
