/* ─────────────────────────────────────────────────────────────────────────────
   cases.css: /portfolio and the 18 case studies (BC-4 of the builtos.com Commercial Pages plan,
   approved as recommended 2026-11-11). Only what show.css's patterns do not already draw:

     G1  .bo-op--case   CASE-HDR: P1's split, with a back pill, the logo eyebrow, a 46 px H1 and, on the
                        right, the building itself, sharp (the asset screen on "The record", the render on
                        "The 3D model"), with "Play the walkthrough" opening hero/<building>.mp4.
     G3  .bo-cs-sum     the summary beside the render with two hotspots (P2 + P5).
     G4  .bo-cs-clips   the clip row as P7: mid-film stills and cropped screens, no lightbox (every case-study
                        film shows the app's old names in its chrome, so none plays).
     G5  .bo-cs-shot    a real screen every couple of paragraphs of the article (P3).
     G6  .bo-cs-recent  Recent: each row leads with its building's logo at 62 px.
     F2  .bo-cs-arch    nine building cards, two links each (decision 6), industry tabs.
   Colours are the theme's tokens, so the light/dark toggle works. Cached 30 days: bump ?v= on all 19 pages.
   ───────────────────────────────────────────────────────────────────────────── */

/* the logos (carousel/*.svg): in colour on light; grey and light on dark, as P3's captions draw them */
.bo-cs-logo{display:block;width:auto!important;max-width:62px!important;height:24px!important;object-fit:contain!important;margin:0!important}
:root:not([data-color-scheme="light"]) .bo-cs-logo{filter:grayscale(1) invert(1) brightness(1.6)}

/* ── G1 CASE-HDR ── */
.bo-cs-back{display:inline-flex;align-items:center;gap:8px;padding:7px 14px 7px 10px;border:1px solid var(--jkd-border);border-radius:999px;
  font-size:13.5px;line-height:1;color:var(--jkd-text);text-decoration:none;transition:border-color .2s,color .2s}
.bo-cs-back:hover{border-color:var(--jkd-border-active);color:var(--jkd-heading)}
.bo-cs-back .iconoir{font-size:13px}
.bo-cs-eye{display:flex;align-items:center;gap:12px;margin:24px 0 16px;font:400 11.5px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.1em;text-transform:uppercase;color:var(--show-eye)}
.bo-cs-eye .bo-cs-logo{padding-right:12px;border-right:1px solid var(--jkd-border);box-sizing:content-box}
/* the case study's <article> already clears the fixed menu (130 px; 105 px on a phone), so P1's own clearance goes */
.single-project .bo-op--case{padding-top:clamp(8px,1.6vw,24px)}
.bo-op--case .bo-op__h{font-size:clamp(36px,3.6vw,46px);line-height:1.06;font-weight:500}
.bo-op--case .bo-op__card .bo-cs-pic{position:absolute;inset:0;width:100%!important;height:100%!important;max-height:none;margin:0;
  object-fit:cover!important;object-position:var(--op-pos,center)!important;display:block}
.bo-op--case .bo-op__watch{gap:8px;padding:8px 14px 8px 12px}
.bo-cs-ws{display:none}
.single-project .bo-op--case{padding-bottom:clamp(28px,3.4vw,48px)}
@media(max-width:767px){
  .single-project .bo-op--case{padding-top:0}
  .bo-cs-wl{display:none}.bo-cs-ws{display:inline}
  .bo-cs-eye{margin:18px 0 12px}
  .bo-op--case .bo-op__h{font-size:clamp(28px,8vw,34px)}
  .bo-op--case .bo-op__sub{font-size:15.5px}
}
/* G2, About Project + the walkthrough: the header above is its own section now, so its panel loses the
   space the old full-bleed header had reserved */
.single-project .project-header.bo-cs-about{padding-top:0;margin-top:0;min-height:0}

/* ── G3 summary ── */
.single-project .bo-cs-sum.bb-sec{padding-top:0}
.bo-cs-more{display:inline-flex;align-items:center;gap:8px;margin-top:24px;font-size:15px;color:var(--show-eye);text-decoration:none}
.bo-cs-more:hover{text-decoration:underline;text-underline-offset:3px}
.bo-cs-sum .bo-mt__list li{cursor:pointer}

/* ── G4 the three views ── */
.single-project .bo-cs-clips.bo-show-sec{padding-top:clamp(24px,3vw,48px)}

/* ── G5 a screen in the article ── */
.single-project .project-content .bo-cs-shot{margin:34px 0 30px}
.single-project .project-content .bo-cs-shot figcaption{margin:0;text-align:left}
.single-project .project-content .bo-cs-shot figcaption .bo-cs-logo{position:absolute;left:6px;top:11px;max-width:22px!important;height:22px!important}

/* ── G6 Recent: a logo where the round photo was ── */
.single-project .bo-cs-recent .portfolio-recent-media.bo-cs-rlogo{width:62px;height:28px;min-width:62px;border-radius:0;overflow:visible;
  display:flex;align-items:center;background:none}
.single-project .bo-cs-recent .portfolio-recent-media.bo-cs-rlogo img{width:auto!important;max-width:62px!important;height:22px!important;object-fit:contain!important;
  border-radius:0!important;transform:none!important}

/* ── G7 / F4 PRODUCES as P7 inside the theme's centred block ── */
.bo-cs-produces{text-align:left;width:100%}
.bo-cs-produces .bo-measure{color:inherit;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}

/* ── F2 the nine buildings ── */
.bo-cs-tabs{margin:clamp(24px,3vw,36px) 0 0}
.bo-cs-tabs ul{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.bo-cs-tab{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px;border:1px solid var(--jkd-border);border-radius:999px;
  font-size:14.5px;line-height:1;color:var(--jkd-heading);text-decoration:none;transition:border-color .2s,background-color .2s}
.bo-cs-tab span{font:400 11.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--jkd-text)}
.bo-cs-tab:hover{border-color:var(--jkd-border-active);color:var(--jkd-heading)}
.bo-cs-tab.is-active{background:var(--jkd-accent,#00ff85);border-color:var(--jkd-accent,#00ff85);color:#0b0b0b}
.bo-cs-tab.is-active span{color:#0b0b0b;opacity:.65}
.bo-cs-tab:focus-visible{outline:2px solid var(--show-g);outline-offset:2px}
.bo-cs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,1.8vw,24px);margin-top:clamp(24px,3vw,36px)}
.bo-cs-card{display:flex;flex-direction:column;min-width:0;padding:10px 10px 18px;border:1px solid var(--jkd-border);border-radius:18px;
  background:var(--jkd-bg-secondary);box-shadow:var(--show-sh)}
.bo-cs-card[hidden]{display:none}
.bo-cs-card__pic{display:block;overflow:hidden;border-radius:11px;aspect-ratio:16/10;background:var(--jkd-dark)}
.bo-cs-card__pic img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;margin:0;transition:transform .5s ease}
.bo-cs-card:hover .bo-cs-card__pic img{transform:scale(1.03)}
.bo-cs-card__meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 8px 0;
  font:400 11px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--jkd-text)}
.bo-cs-card__meta .bo-cs-logo{flex:none;height:20px!important}
.bo-cs-card__h{margin:10px 8px 0;font-size:18px;line-height:1.3;font-weight:400;letter-spacing:-.01em;color:var(--jkd-heading);text-wrap:pretty}
.bo-cs-card__name{display:block;margin-bottom:2px;font-weight:600}
.bo-cs-card__links{display:flex;flex-wrap:wrap;gap:8px;margin:auto 8px 0;padding-top:18px}
.bo-cs-card__links a{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 14px;border:1px solid var(--jkd-border);border-radius:999px;
  font-size:14px;color:var(--jkd-heading);text-decoration:none;transition:border-color .2s,background-color .2s}
.bo-cs-card__links a:hover{border-color:var(--jkd-border-active)}
.bo-cs-card__links .bo-cs-card__rec{background:var(--jkd-accent,#00ff85);border-color:var(--jkd-accent,#00ff85);color:#0b0b0b}
.bo-cs-card__links .bo-cs-card__rec:hover{border-color:#0b0b0b}
@media(max-width:1024px){.bo-cs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
  .bo-cs-grid{grid-template-columns:1fr}
  .bo-cs-card__links a{min-height:44px}
  .bo-cs-tab{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.bo-cs-card__pic img{transition:none}.bo-cs-card:hover .bo-cs-card__pic img{transform:none}}
