/* ============================================================
   Palantir-capabilities — case-study "proof" slide components.
   Carried over from the general capabilities deck (its FinOps,
   FactoryOS and PetitionVerify slides have a denser, image-led
   layout than the original palantir case studies). styles.css
   already provides .cs-layout / .cs-metrics / .metric; this file
   adds only what those slides need on top:
     - the .slide.proof compaction + spacing fixes
     - the demo video + image frames
     - the two overlapped-image stacks (mockups, screenshots)
   Kept in a separate file so the carry-over is easy to review and
   doesn't touch the shared styles.css (which the export/print
   HTML also loads).
   ============================================================ */

/* ── Proof / case-study slides — keep content compact under the
   heading so it doesn't stretch to the bottom edge. ── */
.slide.proof .slide-inner { padding-top: 96px !important; padding-bottom: 84px !important; }
.slide.proof .cs-layout { gap: 56px; margin-top: 26px !important; align-items: start; }
.slide.proof .cs-layout > .col { gap: 20px !important; }
.slide.proof .cs-metrics { gap: 16px 48px !important; margin-top: 0 !important; }
.slide.proof .metric-num { font-size: 50px; }
.slide.proof .metric-lbl { font-size: 19px; max-width: 250px; }

/* The shared type scale ships vertical margins on .t-body-md (21px) and
   .t-overline-md (24px). Inside a proof column the flex `gap` already
   owns the rhythm, so those margins stack on top of it. Zero them and
   let `gap` be the single source. */
.slide.proof .cs-layout .col > p,
.slide.proof .cs-layout .t-overline-md {
  margin-top: 0;
  margin-bottom: 0;
}
/* "What we did" heading + its bullet list sit tighter than the blocks. */
.slide.proof .cs-layout .col .col { gap: 10px !important; }

/* ── Case-study image (supplied mockups; black-bg jpgs blend on the slide) ── */
.proof-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
}
/* Case-study demo video (light-bg screen recording) */
.proof-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 38px rgba(0,0,0,0.5);
  background: #fff;
}
.proof-video .proof-img { border-radius: 10px; }

/* ── Overlapped device mockups (FactoryOS) ────────────────────
   factoryos-2 sits on top of factoryos-1, offset to start half way
   down and three quarters across the base image. Percentages are
   fractions of the composite bounding box (337x276.5), derived from
   the native aspect ratios so a higher-res swap needs no change.
   Both PNGs are transparent, so they read directly on the dark
   slide with no framing. ── */
.mockup-stack {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 82.05%;   /* 276.5 / 337 */
}
.mockup-stack img {
  position: absolute;
  display: block;
  height: auto;
}
.mockup-stack .ms-base {
  top: 0;
  left: 0;
  width: 60.53%;            /* 204 / 337 */
}
.mockup-stack .ms-over {
  top: 35.62%;              /* 98.5 / 276.5 — half way down the base */
  left: 45.4%;              /* 153 / 337 — three quarters across the base */
  width: 54.60%;            /* 184 / 337 */
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.65));
}

/* ── Overlapped browser screenshots (PetitionVerify) ──────────
   Raw 16:9 browser captures rather than device mockups, so each
   needs its own chrome (border + radius + shadow) to sit on the
   dark slide. -2 overlaps -1, offset down and to the right. ── */
.shot-stack {
  position: relative;
  width: 100%;
  padding-bottom: 62%;
}
.shot-stack img {
  position: absolute;
  display: block;
  width: 74%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 44px rgba(0,0,0,0.6);
  background: #fff;
}
.shot-stack .ss-base { top: 0; left: 0; }
/* offset far enough that the base stays legible behind the overlay */
.shot-stack .ss-over { top: 32%; left: 26%; }
