/* Keep the existing iPhone artwork and its display aperture, turned sideways. */
.story-intro__lead {
  max-width: none;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.story-intro__lead h2 {
  max-width: 16ch;
  font-size: clamp(2.25rem, 4.2vw, 3.65rem);
  line-height: 1.06;
}

.story-video {
  min-width: 0;
  width: 100%;
  margin: 0;
}

.story-video__device {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1774 / 887;
  filter: drop-shadow(0 1rem 1.2rem rgb(7 28 51 / 0.16));
}

.story-video__screen {
  position: absolute;
  inset: 9.2% 3% 9.2% 2.9%;
  overflow: hidden;
  border-radius: 5.8% / 12%;
  background: #050709;
  color: #fff;
}

.story-video__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050709;
}

.story-video__frame {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 200%;
  max-width: none;
  transform: translate(-50%, -50%) rotate(90deg);
  pointer-events: none;
  user-select: none;
}

.story-video__play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.8rem;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: center;
  text-shadow: 0 1px 6px rgb(0 0 0 / 0.85);
  cursor: pointer;
  transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: transparent;
}

.story-video__play[hidden],
.story-video__error[hidden] {
  display: none;
}

.story-video__play-icon {
  display: grid;
  width: clamp(2.75rem, 4.2vw, 4rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.8);
  border-radius: 50%;
  background: rgb(6 21 28 / 0.76);
  box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.25);
  transition: background-color 150ms ease;
}

.story-video__play-icon svg {
  width: 50%;
  height: 50%;
  fill: currentColor;
}

.story-video__play:hover .story-video__play-icon {
  background: #066b79;
}

.story-video__play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  background: rgb(6 21 28 / 0.82);
}

.story-video__player:focus-visible {
  outline: 3px solid #00d4e6;
  outline-offset: -4px;
}

.story-video__play-label,
.story-video__duration {
  padding-inline: 0.4rem;
  border-radius: 0.25rem;
  background: rgb(6 21 28 / 0.7);
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}

.story-video__duration {
  font-size: 0.7rem;
  font-weight: 500;
}

.story-video__error {
  margin: 0.75rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.story-video__error a {
  display: inline-block;
  color: var(--color-text);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 55.99rem) {
  .story-intro__lead {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
  }

  .story-intro__lead h2 {
    max-width: 21ch;
    font-size: clamp(2rem, 5.7vw, 3.25rem);
  }

  .story-video {
    max-width: 44rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-video__play-icon {
    transition: none;
  }
}
