/* Occamy case study (staging page 750): page-level rules only, from the approved page design
   "Occamy — Case Study Page Design" 1794517256-f794 (the helmet styles of Main.dc.html) and the media manifest.
   Everything else is the design system (system.css, 1794507177-8075) and the theme's WordPress glue (site.css,
   inc/case-study.php, inc/occamy.php). Nothing here restyles a shared component. The design's inline span, ratio and
   focal properties are set here by class; fill frames (pf-fill) are groups around their image:
   identity row 1: occ-equation-cell (fill) 5 + occ-creature 7; row 2: occ-oval-cell (fill) 3 + occ-primary 6 +
   occ-mono-cell (fill) 3; AI scenes: occ-scene-lead, occ-scene; mockup row: occ-mockup (occ-gallery-3up);
   applications: occ-takeaway 5 + occ-apron-cell (fill) 7. */

/* Viewer: the identity artwork (the SVGs and the equation, the page's only PNG) is black on transparent, so in the
   viewer it sits on the surface ground, as on the page, never on the viewer's dark backdrop (the 30 Story Coffee
   treatment, extended to the transparent PNG). */
.pswp__img:is([src$=".svg"], [src$=".png"]):not(.pswp__img--placeholder) { background-color: var(--pf-color-surface); }

/* 1 · Identity: the text on columns 1–6; then row 1, the equation (fill) beside the creature mark (2:1 reference),
   5 + 7, 3 + 5, stacked; then row 2, oval (fill), full logo (2:1 reference), O monogram (fill), 3 + 6 + 3, 2 + 4 + 2,
   stacked. Fill frames are 2:1 on 4 columns. Logo sizes come from the files' own margins. */
.occ-identity-text { --pf-s8: 1 / span 6; --pf-s12: 1 / span 6; }
.occ-equation-cell { --pf-ratio-4: 2 / 1; --pf-s8: 1 / span 3; --pf-s12: 1 / span 5; }
.occ-creature { --pf-ratio: 2 / 1; --pf-s8: 4 / -1; --pf-s12: 6 / -1; }
.occ-oval-cell { --pf-ratio-4: 2 / 1; --pf-s8: 1 / span 2; --pf-s12: 1 / span 3; }
.occ-primary { --pf-ratio: 2 / 1; --pf-s8: 3 / span 4; --pf-s12: 4 / span 6; }
.occ-mono-cell { --pf-ratio-4: 2 / 1; --pf-s8: 7 / -1; --pf-s12: 10 / -1; }

/* 2 · AI scenes: square frames, 4 + 4 + 4; on 8 columns the exterior full width, then the two interiors 4 + 4. */
.occ-scene-lead { --pf-ratio: 1 / 1; --pf-s8: 1 / -1; --pf-s12: span 4; }
.occ-scene { --pf-ratio: 1 / 1; --pf-s8: span 4; --pf-s12: span 4; }

/* Mockup row: 3:2 frames, 4 + 4 + 4, stacked on phones. APPROVED PAGE EXCEPTION (12 Nov 2026; page-scoped, not a
   shared rule): on the 8-column grid the row stays one row of equal thirds. Range syntax, so no fractional section
   width falls between conditions. */
.occ-mockup { --pf-ratio: 3 / 2; --pf-s12: span 4; }
@container pf-section (width >= 600px) and (width < 1024px) {
  .pf-gallery-grid.occ-gallery-3up { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--pf-grid-gap); }
  .pf-gallery-grid.occ-gallery-3up > * { grid-column: auto; }
}

/* 3 · Applications: the takeaway cup (square reference) beside the apron (fill), 5 + 7, 3 + 5, stacked; the apron at its
   recorded focal point, 4:5 on phones. */
.occ-takeaway { --pf-ratio: 1 / 1; --pf-s8: 1 / span 3; --pf-s12: 1 / span 5; }
.occ-apron-cell { --pf-ratio-4: 4 / 5; --pf-s8: 4 / -1; --pf-s12: 6 / -1; }
.occ-apron-cell img { --pf-focus: 76% 50%; }
