/* 0.8.39.9 — Projects filter bar (mobile-first).
   Stack: cards < filter (30) < menu (45) < header (50).
   Sticky top tracks the real header height. Hidden cards leave the grid. */

/* Menu must always cover the sticky filter when it is open. */
body.p-work .mn{z-index:45}

/* Flush under the fixed header. Solid paper so cards and hero stats never show through. */
body.p-work .fbar{
  position:sticky;
  top:var(--hh);
  z-index:30;
  background:#f5f1e5;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border-bottom:1px solid var(--line,var(--ln,#dcd5c4));
}

/* Do not hide the header on this page — the bar is meant to sit directly under it. */
body.p-work header.hd.up{transform:none}

/* Scrolled (and menu-open) header must be fully opaque so hero stats cannot bleed through. */
body.p-work header.hd.sc,
body.p-work header.hd.sc.ov,
body.p-work.mopen header.hd{
  background:#f5f1e5;
  background-color:#f5f1e5;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

/* Compact header (k83: 64px mobile / 84px desktop). Keep --hh in sync. */
@media (max-width:899px){
  body.p-work:has(header.hd.sc){--hh:64px}
}
@media (min-width:900px){
  body.p-work:has(header.hd.sc){--hh:84px}
}

/* k838.css sets display:flex!important on .pcard, which overrides the UA [hidden] rule
   and leaves invisible cards taking grid space (Hospitality / Architecture look empty on top). */
html body.p-work .pgrid>.pcard.pcard.pcard[hidden]{display:none!important}

/* "Our approach" follows the project grid and is not a filter result.
   Give it a clear break, and put the heading above the photo on small screens
   so the Praveen kitchen image cannot be mistaken for another project card. */
body.p-work .qual{
  padding-top:56px;
  margin-top:8px;
  border-top:1px solid var(--line,var(--ln,#dcd5c4));
}
body.p-work .qual .im{order:2}
body.p-work .qual .qual-copy{order:1}
@media (min-width:960px){
  body.p-work .qual{padding-top:120px;margin-top:24px}
  body.p-work .qual .g{align-items:start}
  body.p-work .qual .im{order:1}
  body.p-work .qual .qual-copy{order:2}
}
