/* ==========================================================================
   Brand identity case studies: what every page shares. Each brand has its own
   idea, its own type and its own stylesheet (st-<brand>.css).
   ========================================================================== */
.st-reel { position: relative; }
.st-reel__stage { position: sticky; top: 0; height: 100vh; min-height: 620px; overflow: hidden; background: var(--bg); contain: layout paint; }
.st-scrolling body { pointer-events: none; }
/* what rises and fades on a stage gets its own layer, so moving it costs no repaint */
.st-reel__stage .st-layer, .st-fall { will-change: transform, opacity; }
.st-cover { position: absolute; inset: 0; margin: 0; overflow: hidden; will-change: transform; }
.st-cover img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; will-change: transform; }
/* a sheet slides up over the stage before it, which sinks a little and dims */
.st-sheet { position: relative; z-index: 1; margin-top: -100vh; background: var(--bg); }
.st-fall { position: absolute; inset: 0; z-index: 9; background: #00000f; opacity: 0; pointer-events: none; }
.st-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; font-size: 15px; }
.st-meta .cs-back { margin: 0; color: inherit; }
.st-meta > span { text-transform: uppercase; letter-spacing: 0.01em; }
.st-meta > span b { margin-right: 12px; font-weight: 400; opacity: 0.72; }
.st-meta > span:last-child { text-align: right; }

/* pictures side by side at one height, each whole: a row's widths follow the pictures' own shapes, so nothing is cropped and no space is left over */
.st-rows { display: grid; gap: 12px; }
.st-row { display: flex; gap: 12px; }
.st-row > figure { flex: var(--ar) 1 0; min-width: 0; margin: 0; overflow: hidden; }
.st-row img { display: block; width: 100%; height: auto; }

/* the reading sections rise with the scroll; where the browser can't tie this to the scroll, they simply sit there */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes st-rise { from { opacity: 0; translate: 0 72px; } }
    [data-st-rise] { animation: st-rise auto linear backwards; animation-timeline: view(); animation-range: entry calc(var(--i, 0) * 16%) entry calc(75% + var(--i, 0) * 16%); }
  }
}

/* without the pinned motion (small screens, reduced motion) every layer simply stacks */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .st-reel { height: auto !important; }
  .st-reel__stage { position: relative; height: auto; min-height: 0; overflow: visible; }
  .st-sheet { margin-top: 0; }
  .st-row { flex-direction: column; }
  .st-row > figure { flex: none; } /* stacked, the shares would set heights of 0; each picture keeps its own */
  /* the page facts: back link on its own line, then client and deliverables */
  .st-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 20px; }
  .st-meta .cs-back { grid-column: 1 / -1; }
  .st-meta > span:last-child { text-align: left; }
  .st-meta > span b { display: block; margin: 0 0 4px; }
  .st-fall, .st-deco { display: none !important; }
  .st-layer { position: relative !important; inset: auto !important; opacity: 1 !important; visibility: visible !important; transform: none !important; clip-path: none !important; width: 100% !important; height: auto !important; }
  img.st-layer, .st-layer img { display: block; width: 100%; height: auto; }
}
