/* Case study template, round 33 (Mo's staging comments, 13 November 2026). Work pages only (inc/r33-case.php).
   Element ids are the case study template's own (Bricks template 74), the same on every work page. */

/* 06ba61a4: the hero is the About page hero (page-hero + page-hero--tuck-bottom, the dark grad shader as its first
   child), and the section below it, the film, rises over it with the About story's rounded top (var(--seam-r)).
   The case study keeps its centred title block. */
#brxe-gtud0p { text-align: center; }
#brxe-gtud0p .case-back { justify-content: center; }
#rr.rr { z-index: 4; border-top-left-radius: var(--seam-r); border-top-right-radius: var(--seam-r);
  padding-top: calc(var(--section-y) * 0.6); }
/* The project facts (client, contribution, format, delivered, deliverables) open the film section, on the same
   width as the film below them. */
#brxe-c33mc1 { position: relative; z-index: 2; }
#brxe-kmwf36.cp-meta { margin: 0 auto; padding-top: 0; border-top: 0; width: min(1600px, 100%); }

/* e599e8bd: the film frame. Full size is at most 1600 by 900 (16:9), never wider than the page's container or taller
   than the screen; r33-case.js scales it up from a smaller window as it scrolls in. The older full bleed
   clip-path reveal in the page bundle is switched off here. */
#rrClip { flex: none; width: min(1600px, 86vw, calc((100svh - 7rem) * 16 / 9)); height: auto; aspect-ratio: 16 / 9;
  border-radius: clamp(1rem, 2vw, 1.75rem); overflow: hidden; clip-path: none !important;
  transform: scale(var(--cad-film-s, 1)); transform-origin: 50% 50%; will-change: transform; cursor: pointer; }
/* The stage is as tall as the film and pins it in the middle of the screen, so the film follows the facts list
   straight away instead of floating in the middle of an empty screen height (most visible at phone widths). */
#rr .rr-sticky { --cad-film-h: min(900px, 48.375vw, calc(100svh - 7rem)); height: auto; overflow: visible;
  top: calc((100svh - var(--cad-film-h)) / 2); margin-top: clamp(1.5rem, 4vw, 3.5rem); }
/* Round 44 (Dan, 6e056f81bdace5a1: "scrolling 4/5 times to get past the video"): no pinned hold. The section is as
   tall as its content, the stage scrolls with the page, and r33-case.js grows the film to full size within the
   scroll that brings it on screen. Was: a 210vh section (150vh on phones) holding the film pinned mid screen. */
#rr.rr { height: auto; padding-bottom: clamp(3rem, 6vw, 5rem); }
#rr .rr-sticky { position: relative; top: auto; }
#rrClip img, #rrClip video { transform: none !important; }
#rrClip .cad-case-film__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
#rrClip [data-cad-vimeo] { opacity: 0; transition: opacity .5s ease; }
#rrClip.is-playing [data-cad-vimeo], #rrClip.is-playing video { opacity: 1; }

/* 791614ac: the button plays or pauses the film in place. Paused: the button sits in the middle of the frame.
   Playing: it steps back and shows again on hover or keyboard focus (always, a little smaller, on touch screens). */
#rrClip .media-play { opacity: 1; pointer-events: none; transition: opacity .28s ease; }
#rrClip .media-play__button { pointer-events: auto; }
#rrClip.is-playing .media-play { opacity: 0; }
#rrClip.is-playing:hover .media-play, #rrClip .media-play:focus-within { opacity: 1; }
#rrClip.is-playing .icon-play { display: none; }
#rrClip.is-playing .icon-pause { display: block; }
#rrClip .media-play__button:focus-visible { outline: 2px solid var(--cyan, #1DBED5); outline-offset: 3px; }
@media (hover: none) {
  #rrClip.is-playing .media-play { opacity: .85; }
}
@media (max-width: 600px) {
  #rrClip { width: 86vw; }
}
@media (prefers-reduced-motion: reduce) {
  #rrClip { transform: none; will-change: auto; }
}

/* ab1ea66c: "Also from this project / The films" sits on the deep navy, so it no longer runs into the navy
   "Keep watching" band below it. Its top seam takes the same colour so the rounded join above stays clean. */
#brxe-5c173z.cp-films { background-color: var(--navy-deep); border-top-color: var(--navy-deep); }

/* Round 37: a band recoloured by inc/r37-bands.php so no two bands in a row share a background. The border colour
   follows, because the rounded joins between bands are drawn with each band's own border. */
.cad-band--deep.brxe-div.brxe-div { background-color: var(--navy-deep); border-color: var(--navy-deep); }
.cad-band--navy.brxe-div.brxe-div { background-color: var(--navy); border-color: var(--navy); }
.cad-band--light.brxe-div.brxe-div { background-color: var(--neutral-light); border-color: var(--neutral-light); color: var(--navy); }
/* A dark band turned light (only when two darks cannot keep the bands apart): dark text, as on the other light bands. */
.cad-band--light.brxe-div.brxe-div .eyebrow { color: var(--navy-a68); }
.cad-band--light.brxe-div.brxe-div :is(h2, h3, .act-copy__p, .credit-row--v1 *) { color: var(--navy); }
.cad-band--light.brxe-div.brxe-div .cp-role__span { color: var(--slate); border-color: var(--slate); }
/* A light band turned dark (quote then results on the full case studies): its gradient goes and its text turns light.
   The white result tiles keep their own dark text. */
[data-seam-was="light"].brxe-div.brxe-div > .grad-hold { display: none; }
[data-seam-was="light"].brxe-div.brxe-div .eyebrow { color: var(--mint-warm-a62); }
[data-seam-was="light"].brxe-div.brxe-div .act-head__h2 { color: var(--mint-warm); }
[data-seam-was="light"].brxe-div.brxe-div .act-head-em { color: var(--cyan); }
[data-seam-was="light"].brxe-div.brxe-div .act-copy__p,
[data-seam-was="light"].brxe-div.brxe-div .res-fact { color: var(--text-dim); border-color: rgba(234, 243, 235, .14); }
[data-seam-was="light"].brxe-div.brxe-div .res-facts { border-color: rgba(234, 243, 235, .14); }
/* Round 37: the response's second paragraph sat flush against the first. */
.cp-response .act-copy__p + .act-copy__p { margin-top: 1.1em; }
