/* ==========================================================================
   4. STORY BANNER (V6). A wide rounded banner with an italic serif headline, one sentence and a pill on a cream fade over a lifestyle photograph (slow parallax drift, kit data-speed).
   The copy sits on the left over a cream fade (ink on the fade >= 7:1 over any photograph); on phones the copy sits under the photograph on a sand panel.
   ========================================================================== */
.story__card { position: relative; isolation: isolate; display: grid; overflow: hidden; border-radius: var(--r-card-lg); background: var(--sand); box-shadow: var(--shadow-1); }
.story__media { position: relative; block-size: clamp(15rem, 62vw, 22rem); overflow: hidden; }
.story__pic { position: absolute; inset: -8% 0; display: block; }
.story__img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 68% 24%; }
.story__copy { position: relative; z-index: 2; display: grid; justify-items: start; gap: 1rem; padding: clamp(1.4rem, 4vw, 2rem); background: var(--sand); }
.story__title { margin: 0; max-inline-size: 17ch; font: italic 400 clamp(2.3rem, 1.5rem + 3.6vw, 4.6rem)/1 var(--font-serif); letter-spacing: var(--tracking-display); color: var(--cocoa); text-wrap: balance; }
.story__title em { font-style: italic; }
.story__text { margin: 0; max-inline-size: 36ch; font-size: var(--fs-md); line-height: 1.5; color: var(--ink); }
.story__copy .btn { margin-block-start: .4rem; }
.story .ai-chip { inset-block-end: .7rem; inset-inline-end: .7rem; }
@media (min-width: 48em) {
  .story__card { display: grid; min-block-size: clamp(24rem, 36vw, 36rem); }   /* the copy is IN FLOW (grid), so the card always grows to fit headline + text + button, also on short screens */
  .story__media { position: absolute; inset: 0; block-size: auto; }
  .story__card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(var(--cream-rgb), .96) 0, rgba(var(--cream-rgb), .88) 28%, rgba(var(--cream-rgb), .5) 44%, rgba(var(--cream-rgb), 0) 58%); }
  .story__copy { position: relative; grid-area: 1 / 1; inline-size: min(58%, 46rem); align-content: center; padding: clamp(2rem, 4vw, 4rem); background: transparent; }
  .story__title { max-inline-size: 21ch; font-size: clamp(2.3rem, 1.5rem + 3.6vw, min(4.6rem, 11vh)); }
}
