.cinematic-story {
  background: var(--paper);
}

.cinematic-story--cream {
  background: var(--cream);
}

.cinematic-story__frame {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  background: #081116;
}

.cinematic-story__frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.cinematic-story__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 24, 0.9) 0%, rgba(7, 18, 24, 0.7) 36%, rgba(7, 18, 24, 0.16) 72%, rgba(7, 18, 24, 0.08) 100%),
    linear-gradient(0deg, rgba(7, 18, 24, 0.72) 0%, transparent 54%);
}

.cinematic-story--right .cinematic-story__veil {
  background:
    linear-gradient(270deg, rgba(7, 18, 24, 0.92) 0%, rgba(7, 18, 24, 0.7) 36%, rgba(7, 18, 24, 0.14) 72%, rgba(7, 18, 24, 0.06) 100%),
    linear-gradient(0deg, rgba(7, 18, 24, 0.72) 0%, transparent 54%);
}

.cinematic-story__overlay {
  position: absolute;
  z-index: 1;
  left: clamp(1.5rem, 5vw, 5rem);
  bottom: clamp(1.5rem, 5vw, 4.5rem);
  width: min(650px, 76%);
  color: #fff;
}

.cinematic-story--right .cinematic-story__overlay {
  right: clamp(1.5rem, 5vw, 5rem);
  left: auto;
}

.cinematic-story__index {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.48rem 0.68rem;
  background: rgba(5, 17, 13, 0.8);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cinematic-story__overlay .eyebrow {
  margin-bottom: 0.85rem;
}

.cinematic-story__overlay h2 {
  max-width: 640px;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.3rem, 4.3vw, 4.7rem);
  line-height: 0.98;
  text-wrap: balance;
}

.cinematic-story__overlay > p:last-child {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.58;
}

.cinematic-story__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5.5rem);
  padding-top: clamp(2.2rem, 4vw, 4rem);
}

.cinematic-story__details > * {
  min-width: 0;
}

.cinematic-story__details h3 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.12;
}

.cinematic-story__details p {
  color: var(--muted);
}

.cinematic-story__details p:first-child {
  margin-top: 0;
}

.cinematic-story__details .arrow-link {
  margin-top: 1.25rem;
}

@media (max-width: 800px) {
  .cinematic-story__details {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 640px) {
  .cinematic-story.section-pad {
    padding-block: 3.4rem;
  }

  .cinematic-story__frame {
    aspect-ratio: 1672 / 941;
  }

  .cinematic-story__veil,
  .cinematic-story--right .cinematic-story__veil {
    background:
      linear-gradient(0deg, rgba(7, 18, 24, 0.96) 0%, rgba(7, 18, 24, 0.72) 58%, rgba(7, 18, 24, 0.2) 100%);
  }

  .cinematic-story__overlay,
  .cinematic-story--right .cinematic-story__overlay {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: auto;
  }

  .cinematic-story__index {
    margin-bottom: 0.45rem;
    padding: 0.3rem 0.45rem;
    font-size: 0.55rem;
  }

  .cinematic-story__overlay .eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.58rem;
  }

  .cinematic-story__overlay h2 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.45rem, 7.2vw, 1.85rem);
    line-height: 1;
  }

  .cinematic-story__overlay > p:last-child {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .cinematic-story__details {
    padding-top: 1.8rem;
  }
}
