.c-visual-story {
  position: relative;
  width: 100%;
  background: var(--color-surface-primary);
  direction: ltr;
}

.c-visual-story__stage {
  background: var(--color-brand);
}

.c-visual-story__image,
.c-visual-story__placeholder,
.c-visual-story__panel {
  width: 100%;
  aspect-ratio: 430 / 241;
}

.c-visual-story__image {
  object-fit: cover;
  object-position: center;
}

.c-visual-story__placeholder {
  display: block;
  background: var(--color-neutral-100);
}

.c-visual-story__panel {
  display: flex;
  align-items: flex-start;
  padding: 2.75rem var(--space-5);
  overflow: hidden;
  background: var(--color-brand);
}

.c-visual-story__title {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  gap: 2rem;
  margin: 0;
  color: var(--color-text-inverse);
  font-family: var(--font-family-title);
  font-size: clamp(2.75rem, 12vw, 4.5rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: var(--letter-spacing-tight);
}

.c-visual-story__title span {
  overflow-wrap: anywhere;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .c-visual-story--has-image .c-visual-story__title span {
    background-image: var(--visual-story-image);
    background-position: var(--visual-story-text-bg-x, center) var(--visual-story-text-bg-y, center);
    background-repeat: no-repeat;
    background-size: var(--visual-story-text-bg-size);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.c-visual-story.is-parallax-ready {
  height: 56.0465vw;
  min-height: 0;
  background: var(--color-brand);
}

.c-visual-story.is-parallax-ready .c-visual-story__stage {
  position: relative;
  height: 56.0465vw;
  overflow: clip;
  isolation: isolate;
}

.c-visual-story.is-parallax-ready .c-visual-story__image {
  position: absolute;
  z-index: var(--z-base);
  inset: -10%;
  width: 120%;
  height: 120%;
  max-width: none;
  aspect-ratio: auto;
  transform: translate3d(0, var(--visual-story-image-y), 0);
  will-change: transform;
}

.c-visual-story.is-parallax-ready .c-visual-story__panel {
  position: absolute;
  z-index: var(--z-raised);
  inset: 0;
  height: auto;
  aspect-ratio: auto;
  transform: translate3d(0, var(--visual-story-panel-y), 0);
  will-change: transform;
}

.c-visual-story.is-parallax-ready .c-visual-story__title {
  transform: translate3d(0, var(--visual-story-copy-y), 0);
  will-change: transform;
}

@media (min-width: 48rem) {
  .c-visual-story__panel {
    padding: 8vw 6vw;
  }

  .c-visual-story__title {
    gap: 7vw;
    font-size: clamp(4.5rem, 12vw, 8rem);
  }
}

@media (min-width: 64rem) {
  .c-visual-story__image,
  .c-visual-story__placeholder,
  .c-visual-story__panel {
    aspect-ratio: 1440 / 807;
  }

  .c-visual-story__panel {
    padding: 7.625rem 5.83%;
  }

  .c-visual-story__title {
    gap: 5.375rem;
    font-size: clamp(7.5rem, 12vw, 11rem);
    letter-spacing: -0.25rem;
    white-space: nowrap;
  }

  .c-visual-story.is-parallax-ready {
    height: 150svh;
    min-height: 42rem;
  }

  .c-visual-story.is-parallax-ready .c-visual-story__stage {
    position: sticky;
    inset-block-start: 0;
    height: 100svh;
  }

  .c-visual-story.is-parallax-ready .c-visual-story__image {
    inset: -15%;
    width: 130%;
    height: 130%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-visual-story,
  .c-visual-story__stage,
  .c-visual-story__image,
  .c-visual-story__panel,
  .c-visual-story__title {
    transform: none !important;
  }
}
