.ent-use-cases {
  --chapter-top: clamp(105px, 13svh, 152px);
  --chapter-bottom: clamp(24px, 4.5svh, 48px);
  position: relative;
  color: #fff;
  background: #1b1025;
}

.ent-use-cases__stage {
  position: relative;
  isolation: isolate;
}

.ent-use-cases__heading,
.ent-use-cases__chapters {
  position: absolute;
  z-index: 5;
  inset-inline: 0;
}

.ent-use-cases__heading {
  top: var(--chapter-top);
  pointer-events: none;
}

.enterprise-page .ent-use-cases__heading h2 {
  font-size: clamp(34px, 3.1vw, 51px);
  line-height: 1.07;
  color: #fff;
}

.ent-use-cases__chapters {
  top: calc(var(--chapter-top) + clamp(99px, 8.9vw, 124px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 46px);
}

.ent-use-cases__chapters a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid #ffffff7a;
  font-size: 14px;
  color: #f3eaf6;
}

.ent-use-cases__chapters a::before {
  content: '';
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 2px;
  background: #efc5fb;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .75, .25, 1);
}

.ent-use-cases__chapters a[aria-current='step'],
.ent-use-cases__chapters a:hover { color: #fff; }

.ent-use-cases__chapters a[aria-current='step']::before,
.ent-use-cases__chapters a:hover::before { transform: scaleX(1); }

.ent-use-cases a:focus-visible {
  outline: 2px solid #f5ccff;
  outline-offset: 5px;
}

.ent-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 150px 68px;
}

.ent-scene:first-child { padding-top: calc(var(--chapter-top) + 185px); }

.ent-scene--operations { --photo-position: 57% 50%; --photo-ground: #423448; }
.ent-scene--finance { --photo-position: 56% 49%; --photo-ground: #3e3641; }
.ent-scene--it { --photo-position: 54% 50%; --photo-ground: #333646; }

.ent-scene__photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  margin: 0;
  background: var(--photo-ground);
  pointer-events: none;
}

.ent-scene__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position);
}

.ent-scene__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #171020 0%, #171020dc 16%, #17102026 59%, #17102019 74%, #171020b3 100%),
    linear-gradient(90deg, #2110299e 0%, #2110294d 47%, transparent 88%);
}

.ent-scene__body { position: relative; z-index: 4; }
.ent-scene__copy { max-width: 44rem; }

.ent-scene__copy h3 {
  max-width: 13.5em;
  color: #fff;
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.07;
  text-wrap: balance;
}

.ent-scene__copy p {
  max-width: 39rem;
  margin-top: 17px;
  color: #faeffc;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}

.ent-scene__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 14px;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #ffffff85;
  text-underline-offset: .3em;
  font-size: 14px;
}

.ent-scene__link:hover { color: #efc5fb; }
.ent-scene__link span { font-size: 18px; }

/* Keep the frame stable while native scrolling advances through its photographs. */
.ent-use-cases[data-scroll-story] { height: 270vh; height: 270svh; }

.ent-use-cases[data-scroll-story] .ent-use-cases__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.ent-use-cases[data-scroll-story] .ent-use-cases__chapters {
  top: auto;
  bottom: var(--chapter-bottom);
}

.ent-use-cases[data-scroll-story] .ent-scene {
  position: absolute;
  inset: 0;
  isolation: auto;
  min-height: 0;
  padding-block: 0 calc(var(--chapter-bottom) + 78px);
  pointer-events: none;
}

.ent-use-cases[data-scroll-story] .ent-scene__photo { z-index: 0; }
.ent-use-cases[data-scroll-story] .ent-scene--finance .ent-scene__photo { z-index: 1; }
.ent-use-cases[data-scroll-story] .ent-scene--it .ent-scene__photo { z-index: 2; }
.ent-use-cases[data-scroll-story] .ent-scene[aria-hidden='true'] .ent-scene__copy { visibility: hidden; }
.ent-use-cases[data-scroll-story] .ent-scene:not([aria-hidden='true']) .ent-scene__copy {
  animation: enter-scene-copy .38s cubic-bezier(.2, .75, .25, 1) both;
}
.ent-use-cases[data-scroll-story] .ent-scene:not([aria-hidden='true']) .ent-scene__link { pointer-events: auto; }

@keyframes enter-scene-copy {
  from { opacity: .66; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 650px) {
  .ent-use-cases { --chapter-top: 102px; --chapter-bottom: max(19px, env(safe-area-inset-bottom)); }
  .enterprise-page .ent-use-cases__heading h2 { font-size: 34px; }
  .ent-use-cases__chapters a { font-size: 12px; }
  .ent-scene { padding-bottom: 48px; }
  .ent-scene__copy h3 { font-size: clamp(32px, 8.4vw, 42px); }
  .ent-scene__copy p { font-size: 15px; }
  .ent-scene__photo::after {
    background: linear-gradient(0deg, #171020 2%, #171020e5 21%, #1710203d 59%, #1710203d 70%, #171020b3 100%);
  }
  .ent-use-cases[data-scroll-story] .ent-scene { padding-bottom: calc(var(--chapter-bottom) + 62px); }
}
