/* =========================================================================
   EVENT CASA — Stories We've Celebrated
   Desktop values are px on the 1920 design (× var(--u)), from the header bottom.
   ========================================================================= */
.stories {
  position: relative;
  padding-bottom: calc(38 * var(--u));
}
.ptitle--stories { height: calc(410.5 * var(--u)); }

/* ---------- Feature block: 2 stacked · big centre · 2 stacked ---------- */
.stories__feature {
  display: grid;
  grid-template-columns: calc(429 * var(--u)) calc(790.5 * var(--u)) calc(429 * var(--u));
  column-gap: calc(44 * var(--u));
  row-gap: calc(38.9 * var(--u));
  justify-content: center;
  align-items: start;
}
.story-card--a { grid-column: 1; grid-row: 1; }
.story-card--d { grid-column: 1; grid-row: 2; }
.story-card--b { grid-column: 2; grid-row: 1 / 3; }
.story-card--c { grid-column: 3; grid-row: 1; }
.story-card--e { grid-column: 3; grid-row: 2; }

/* ---------- Row of four ---------- */
.stories__row {
  display: grid;
  grid-template-columns: repeat(4, calc(406 * var(--u)));
  column-gap: calc(36.8 * var(--u));
  justify-content: center;
  margin-top: calc(80 * var(--u));
}

/* ---------- Card ---------- */
.story-card { display: block; color: var(--ink); }
.story-card__media {
  position: relative; display: block; overflow: hidden;
  height: calc(492 * var(--u));                 /* row cards */
  background: var(--tan);
}
.story-card--a .story-card__media,
.story-card--c .story-card__media { height: calc(520 * var(--u)); }
.story-card--d .story-card__media,
.story-card--e .story-card__media { height: calc(588 * var(--u)); }
.story-card--b .story-card__media { height: calc(1189 * var(--u)); }

/* Image layer is taller than its frame so it can drift on scroll */
.story-card__img {
  position: absolute; left: 0; right: 0; top: -7%; bottom: -7%;
  display: block; will-change: transform;
}
.story-card__img picture { display: block; width: 100%; height: 100%; }
.story-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.story-card__cap {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: calc(11.3 * var(--u));
  font-family: var(--f-body); font-weight: 400;
  font-size: max(13px, calc(23 * var(--u))); line-height: 1.339;
}
.story-card__name {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease-out);
}
.story-card__year { letter-spacing: .1em; margin-right: -.1em; }
@media (hover: hover) {
  .story-card:hover .story-card__img img { transform: scale(1.05); }
  .story-card:hover .story-card__name { background-size: 100% 1px; }
}

.stories__flourish {
  display: block;
  width: calc(151.6 * var(--u)); height: auto;
  margin: calc(66 * var(--u)) auto 0;
}

/* ---------- Tablet & mobile ---------- */
@media (max-width: 1099px) {
  .ptitle--stories { height: auto; }
  .ptitle--stories { --tfs: clamp(18px, 5.5vw, 58px); --sbm: 133; }
  .stories { padding-bottom: 48px; }
  .stories__grid { padding: 0 16px; max-width: 760px; margin: 40px auto 0; }
  .stories__feature,
  .stories__row {
    grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 22px;
  }
  .story-card--b { grid-column: 1 / -1; grid-row: auto; order: -1; }
  .story-card--a, .story-card--c, .story-card--d, .story-card--e { grid-column: auto; grid-row: auto; }
  .story-card__media,
  .story-card--a .story-card__media,
  .story-card--c .story-card__media,
  .story-card--d .story-card__media,
  .story-card--e .story-card__media,
  .story-card--b .story-card__media { height: auto; aspect-ratio: 406 / 492; }
  .story-card--b .story-card__media { aspect-ratio: 4 / 5; }
  .stories__row { margin-top: 22px; }
  .story-card__cap { margin-top: 8px; font-size: 14px; }
  .story-card--b .story-card__cap { font-size: 16px; }
  .stories__flourish { width: 104px; margin-top: 48px; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .story-card__cap { font-size: 16px; }
  .story-card--b .story-card__cap { font-size: 18px; }
}
