/* Case study template, round 46 (Mo, 19 November 2026). Work pages only (inc/r46-case.php), after r33-case.css.
   Element ids are the case study template's own (Bricks template 74), the same on every work page. */

/* Hero standfirst (Mo's values). */
.hero-sub--v4.brxe-text-basic { margin: 2rem auto 0; color: var(--text-dim); font-size: 1rem; width: 42ch; max-width: 100%; }

/* The film section has the same space at its top and bottom. The facts row (client, contribution, format, delivered,
   deliverables) shows only on projects with more than a client and format; when it does, it opens the section and
   the film follows it after a set gap. Otherwise the film sits alone with equal space above and below it. */
#rr.rr { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
#rr .rr-sticky { margin-top: 0; }
/* Round 46d (Mo: "reduce the gap between the video and the hero by 60%"): about 200px at 1440 came down to about 80.
   The film still grows from 80% to full size on the same scroll, but from its top edge rather than its centre, so the
   empty band its shrinking left above it goes; the hero's bottom padding and the film section's top padding also
   come in. */
#brxe-gtud0p.page-hero { padding-bottom: clamp(2.5rem, 3.5vw, 3.25rem); }
#rr.rr { padding-top: clamp(1.5rem, 2.2vw, 2rem); }
#rrClip { transform-origin: 50% 0; }
#rr:has(.cp-meta) .rr-sticky { margin-top: clamp(2rem, 4vw, 3.5rem); }

/* The brief and Our response read as a pair: the same title, the same copy size, the same space either side of the
   hairline between them. On the full case studies the brief keeps its mono label and big heading. */
#brxe-qmi672 #brxe-0956b1:not(:has(.act-head__h2)) > .eyebrow,
#brxe-qmi672 .cp-response__h3 {
  font-family: "Outfit", sans-serif; font-size: clamp(1.5rem, 2.1vw, 1.9rem); font-weight: 500; line-height: 1.1;
  letter-spacing: -0.015em; text-transform: none; color: var(--white, #fff); margin: 0;
}
#brxe-qmi672 #brxe-0956b1:not(:has(.act-head__h2)) > .eyebrow::before { display: none; }
#brxe-qmi672 .act-copy__p { font-size: 1.1rem; line-height: 1.6; }
#brxe-qmi672 #brxe-e4nh1z { padding-bottom: clamp(2rem, 4vw, 3rem); }
#brxe-qmi672 #brxe-0wek2q { padding-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 992px) {
  #brxe-qmi672 :is(#brxe-e4nh1z, #brxe-0wek2q) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 38rem); column-gap: clamp(3rem, 6vw, 6rem); align-items: start;
  }
}

/* Keep watching: label, heading, intro and button stack down the left; the next project card sits on the right. */
.single-work .next .next-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.single-work .next .next-copy > * { margin: 0; }

/* Round 46e (Mo: "caption should be closer to the video"): the film caption (cp-reel-caption, under #rr) sat 112px
   below the film. It now sits about 20px under it, on the film's own width so its left edge lines up with the film,
   and the space the film section had at its bottom moves under the caption. */
#rr.rr:has(+ #brxe-tysxf6) { padding-bottom: 0; }
#brxe-tysxf6.cp-reel-caption { padding-top: clamp(1rem, 1.6vw, 1.25rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
#brxe-tysxf6 #brxe-uxpq9c { margin: 0 auto; width: min(1600px, 86vw, calc((100svh - 7rem) * 16 / 9)); max-width: 100%; }

/* Round 46f (Mo: "change white cards to another background colour less harsh on the eyes"): on a results band that
   has been turned dark, the result tiles were pure white panels. They are now a deep slate surface with a hairline
   edge and light type, so they sit in the dark band instead of glaring out of it. White tiles on a light band stay. */
[data-seam-was="light"].brxe-div.brxe-div .res-tile {
  background: var(--slate-2, #103E3B); border: 1px solid rgba(234, 243, 235, .10); box-shadow: none;
}
[data-seam-was="light"].brxe-div.brxe-div .res-tile .k { color: var(--cyan, #1DBED5); }
[data-seam-was="light"].brxe-div.brxe-div .res-tile .v { color: var(--mint-warm, #EAF3EB); }
[data-seam-was="light"].brxe-div.brxe-div .res-tile .note { color: var(--text-dim); }

/* Round 46f (Mo: the films intro "looks off" with only two films): one or two films now fill the row in equal
   columns, and the intro paragraph shares the cards' grid, so it starts on the second card's left edge instead of
   floating over an empty third column. Three or more keep the three column grid. */
@media (min-width: 768px) {
  .cp-films .cp-films-grid:has(> :nth-child(2 of .cp-film):nth-last-child(1 of .cp-film)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-films .cp-films-grid:has(> :nth-child(1 of .cp-film):nth-last-child(1 of .cp-film)) { grid-template-columns: minmax(0, 1fr); max-width: 50%; }
  .cp-films:has(.cp-films-grid > :nth-child(2 of .cp-film):nth-last-child(1 of .cp-film)) .act-head {
    grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1rem, 1.8vw, 1.5rem);
  }
}

/* Round 48 (the delivery rows now have their films): the poster inside a cut preview was positioned against the
   whole row, so it spilled out of its 16:9 frame over the row's title and text and lost the frame's rounded corners.
   The frame is now the positioning box and the poster fills it exactly. */
.cut-row .cut-preview { position: relative; overflow: hidden; }
.cut-row .cut-preview > .cut-preview__div { position: absolute; inset: 0; }
.cut-row .cut-preview img.cad-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Round 49b (Mo: "when three are showing, center them"): a facts row with fewer than all five cells (three or four)
   sits as a centred group under the centred hero instead of filling the left of a five column grid. Each cell keeps
   its left aligned label and value. Phones keep the stacked layout. */
@media (min-width: 768px) {
  #brxe-kmwf36.cp-meta:not(:has(> :nth-child(5))) {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, max-content);
    justify-content: center; column-gap: clamp(3rem, 6vw, 6rem);
  }
  #brxe-kmwf36.cp-meta:not(:has(> :nth-child(5))) > * { max-width: 22rem; }
}

/* Round 51 (Mo: "padding between top and bottom is off when no columns above are added. equal padding please. use
   bottom padding as correct size"): with no facts row, the film section's top padding matches its bottom padding. */
#rr.rr:not(:has(.cp-meta)) { padding-top: clamp(3rem, 6vw, 5rem); }
