/* ============================================================================
   polish.css — case-study beautification layer (loaded ONLY by the 17 case
   pages, right after case.css). Never edit case.css (shared with services).
   Goal: beautify the shared template without adding/removing/reordering
   sections. Measured in-browser at 1760x821 / 1440 / 1920 / 1280 / 390.

   --wrap max-width 1600 + --pad clamp(20,4.4vw,72)  (a.css)
   --hd header 76px (fixed, overlays section tops) · chat button 56px, 20px off
   ============================================================================ */

/* ----------------------------------------------------------------------------
   DESKTOP: sections that read as ONE VIEW (a heading + a single bounded visual)
   centre inside one screen so the eyebrow, heading and whole visual are seen at
   once. Gated to >=1024px; phones/tablets keep the natural scrolling flow.
   Candidates: .cs-idea (the big idea statement) and .cs-live-sec (live piece).
   Long content (galleries, films, split text, lists) is left to scroll.
   ---------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .cs-idea.cs-sec,
  .cs-live-sec {
    min-height: 100svh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--hd, 76px) + clamp(12px, 3vh, 36px));
    padding-bottom: clamp(88px, 11vh, 120px);
  }
  /* once the section is a flex column its .wrap child shrinks to content and
     drifts — pin it back to the full container width. */
  .cs-idea.cs-sec > .wrap,
  .cs-live-sec > .wrap { width: 100%; }

  /* The Idea: scale the statement with the smaller of width/height so the whole
     quote stays visible; a touch smaller than the base clamp for breathing room. */
  .cs-idea .cs-quote { font-size: clamp(2.6rem, min(5.6vw, 9vh), 6.2rem); }
  .cs-idea .cs-lead { margin-top: clamp(20px, 3vh, 32px); }
  .cs-idea .cs-traits { margin-top: clamp(24px, 4vh, 48px); }

  /* The live piece: cap the frame so heading + frame share one screen, and keep
     its left edge flush with the eyebrow/heading (full container width). */
  .cs-live-sec .cs-live {
    margin-top: clamp(20px, 3.4vh, 44px);
    max-height: min(64vh, 60svh);
  }

  /* short laptops: tighten type and frame so nothing is clipped */
  @media (max-height: 720px) {
    .cs-idea .cs-quote { font-size: clamp(2.2rem, 7.4vh, 4.3rem); }
    .cs-idea .cs-lead { margin-top: 16px; }
    .cs-idea .cs-traits { margin-top: 22px; }
    .cs-live-sec .cs-live { max-height: 56svh; }
  }
}

/* review 13 Nov 2026 (responsive pass): the cover images are 1200-1280px files; on 2560-3440px screens they were
   stretched to the full width (2-3x) and went soft. From 2000px they stop at 1920px, centred with rounded corners. */
@media (min-width: 2000px) {
  .cs-hero-img { max-width: 1920px; margin-inline: auto; border-radius: 20px; }
}
