/* Shared case study formatting system: heading hierarchy + stat block.
   Loaded after each page's inline <style> block so these rules win on
   equal specificity without needing to touch the per-page styles. */

.cs-section h2{
  font-weight:700;
  font-size:clamp(26px, 3vw, 30px);
  letter-spacing:-0.01em;
}
.cs-section h3{
  font-family:'IBM Plex Mono', monospace;
  font-weight:500;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:0.06em;
  color:var(--ink-soft);
  margin:36px 0 12px;
}
.cs-section h3:first-of-type{margin-top:0;}
.cs-section p .semibold{
  font-weight:600;
  color:var(--ink);
}

.cs-stats{
  display:flex;
  flex-wrap:wrap;
  gap:26px 40px;
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid var(--line);
}
.cs-stat{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.cs-stat-label{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.05em;
  color:var(--gray);
}
.cs-stat-value{
  font-family:'DM Sans', sans-serif;
  font-weight:700;
  font-size:19px;
  letter-spacing:-0.005em;
  color:var(--ink);
}

@media (max-width:640px){
  .cs-stats{gap:18px 28px;}
}

/* LIGHTBOX */
.cs-img img[data-full]{
  cursor:zoom-in;
}
.lightbox{
  display:none;
  position:fixed;
  inset:0;
  z-index:100;
  background:rgba(10,10,10,0.92);
  align-items:center;
  justify-content:center;
  padding:40px;
}
.lightbox.is-open{display:flex;}
.lightbox-img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close{
  position:fixed;
  top:20px;
  right:24px;
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.3);
  background:rgba(255,255,255,0.06);
  color:#fff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.lightbox-close:hover{background:rgba(255,255,255,0.16);}
