.story-video-hero {
  isolation: isolate;
  min-height: 690px;
  background: #17131d;
}

.story-video-hero-media,
.story-video-hero-media::after {
  position: absolute;
  inset: 0;
}

.story-video-hero-media {
  z-index: 0;
  overflow: hidden;
  background: #201929;
  pointer-events: none;
}

.story-video-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.story-video-hero-media::after {
  z-index: 1;
  background: radial-gradient(circle at 72% 35%, rgba(222, 113, 193, 0.18), transparent 32%);
  content: "";
}

.story-video-hero .hero-shade {
  z-index: 1;
  background: linear-gradient(90deg, rgba(18, 14, 25, 0.9), rgba(18, 14, 25, 0.52) 52%, rgba(18, 14, 25, 0.74)), linear-gradient(180deg, rgba(18, 14, 25, 0.42), rgba(18, 14, 25, 0.92));
}

.story-video-hero .hero-copy {
  z-index: 2;
}

.story-video-hero h1 em {
  display: block;
  white-space: normal;
}

.story-video-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -8px auto 24px;
}

.story-video-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(15, 12, 22, 0.32);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 700;
}

.story-video-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 30px auto 0;
}

.story-video-workflow-link {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.story-video-credit {
  max-width: 700px;
  margin: 16px auto 0 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.78rem !important;
  line-height: 1.55 !important;
}

.story-video-status {
  color: #ffd36e;
}

[data-story-create][aria-busy="true"] {
  opacity: 0.65;
  cursor: progress;
}

.story-video-intro {
  background: linear-gradient(180deg, #fff 0%, #faf8fd 100%);
}

.story-video-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 58px;
}

.story-video-intro-grid h2 {
  max-width: 560px;
  margin: 0;
}

.story-video-intro-copy p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  line-height: 1.78;
}

.story-video-intro-copy p:last-child { margin-bottom: 0; }

.story-video-promise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.story-video-promise-grid article {
  min-height: 220px;
  padding: 25px;
  border: 1px solid #e7e0ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 13px 32px rgba(48, 35, 65, 0.07);
}

.story-video-promise-grid svg {
  width: 24px;
  height: 24px;
  margin-bottom: 25px;
  color: #bd4089;
}

.story-video-promise-grid article:nth-child(2) svg { color: #7257d4; }
.story-video-promise-grid article:nth-child(3) svg { color: #2786cb; }
.story-video-promise-grid article:nth-child(4) svg { color: #e37c4a; }

.story-video-promise-grid h3,
.story-video-reference-card h3,
.story-video-example h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
}

.story-video-promise-grid p,
.story-video-reference-card p,
.story-video-example p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.story-video-workflow {
  color: #fff;
  background: #18141e;
  scroll-margin-top: 96px;
}

.story-video-workflow h2,
.story-video-workflow .split-heading > p,
.story-video-workflow .section-kicker { color: #fff; }

.story-video-workflow .split-heading > p { color: rgba(255, 255, 255, 0.64); }
.story-video-workflow .section-kicker { color: #f49dcc; }

.story-video-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 58px 0 0;
  padding: 0;
  list-style: none;
}

.story-video-steps li {
  position: relative;
  padding: 22px 21px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.story-video-steps li::after {
  position: absolute;
  top: 39px;
  right: -24px;
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
  content: "";
}

.story-video-steps li:last-child::after { display: none; }

.story-video-steps span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 35px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #cf4d9b, #7f5ce2);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
}

.story-video-steps h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.04rem;
  line-height: 1.38;
}

.story-video-steps p { margin: 0; color: rgba(255, 255, 255, 0.63); font-size: 0.88rem; line-height: 1.66; }

.story-video-reference-section { background: #faf9fc; }

.story-video-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.story-video-reference-card {
  display: grid;
  min-height: 290px;
  grid-template-columns: minmax(145px, 0.86fr) minmax(0, 1.14fr);
  overflow: hidden;
  border: 1px solid #e4deea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(42, 28, 56, 0.08);
}

.story-video-reference-card img { width: 100%; height: 100%; object-fit: cover; }
.story-video-reference-card > div { padding: 25px 23px; }
.story-video-reference-card span,
.story-video-example span { color: #a23d78; font-size: 0.71rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.story-video-reference-card h3 { margin-top: 10px; }

.story-video-reference-wide { grid-column: span 2; grid-template-columns: minmax(260px, 1.12fr) minmax(0, 0.88fr); }

.story-video-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 800px;
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
}

.story-video-note svg { flex: 0 0 auto; width: 17px; height: 17px; color: #b13d83; }

.story-video-examples { background: #fff; }

.story-video-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.story-video-example {
  overflow: hidden;
  border: 1px solid #e4deea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(42, 28, 56, 0.08);
}

.story-video-example > img,
.story-video-example > video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #17131d; }
.story-video-example > div { padding: 23px 24px 25px; }
.story-video-example h3 { margin-top: 10px; }
.story-video-example-video { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr); }
.story-video-example-video > video { width: 100%; height: 100%; min-height: 270px; }

.story-video-use-cases { background: linear-gradient(180deg, #faf9fc 0%, #f5f3f8 100%); }

.story-video-related { background: #fff; }

.story-video-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.story-video-related-grid a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 21px;
  border: 1px solid #e4deea;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 24px rgba(42, 28, 56, 0.06);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.story-video-related-grid a:hover { border-color: rgba(189, 64, 137, 0.45); box-shadow: 0 14px 30px rgba(42, 28, 56, 0.1); transform: translateY(-2px); }
.story-video-related-grid a > i { grid-row: span 2; color: #b13d83; }
.story-video-related-grid span { font-family: var(--font-display); font-size: 0.98rem; font-weight: 800; }
.story-video-related-grid small { color: var(--ink-soft); font-size: 0.78rem; line-height: 1.5; }
.story-video-related-grid a > svg { grid-row: span 2; width: 18px; height: 18px; color: #b13d83; }

.story-video-final-cta { background: linear-gradient(180deg, #fff 0%, #faf8fd 100%); }

@media (max-width: 1080px) {
  .story-video-promise-grid,
  .story-video-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-video-steps li::after { display: none; }
}

@media (max-width: 800px) {
  .story-video-intro-grid { grid-template-columns: 1fr; gap: 25px; }
  .story-video-reference-grid,
  .story-video-example-grid { grid-template-columns: 1fr; }
  .story-video-reference-wide,
  .story-video-example-video { grid-column: auto; }
  .story-video-example-video { display: block; }
  .story-video-example-video > video { min-height: 0; height: auto; }
  .story-video-related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .story-video-hero { min-height: 0; place-items: start center; padding: 104px 0 58px; }
  .story-video-tags { gap: 6px; margin-bottom: 18px; }
  .story-video-tags span { padding: 6px 9px; font-size: 0.65rem; }
  .story-video-credit { text-align: left; }
  .story-video-promise-grid,
  .story-video-steps { grid-template-columns: 1fr; }
  .story-video-promise-grid article { min-height: auto; }
  .story-video-steps { margin-top: 35px; }
  .story-video-steps span { margin-bottom: 18px; }
  .story-video-reference-card,
  .story-video-reference-wide { grid-template-columns: 112px minmax(0, 1fr); min-height: 250px; }
  .story-video-reference-card > div { padding: 18px 16px; }
  .story-video-reference-card h3,
  .story-video-example h3 { font-size: 1rem; }
  .story-video-reference-card p,
  .story-video-example p { font-size: 0.8rem; }
  .story-video-note { text-align: left; }
}
