/* ==========================================================================
   Case study — benlau-style: sticky metadata sidebar + scrolling main column.
   Loads on top of site.css (tokens, dock, cursor, pills). Page is .page.home.cs
   ========================================================================== */
.cs-shell{display:flex; gap:clamp(40px,5vw,84px); align-items:stretch; height:100dvh; overflow:hidden;
  padding:0 clamp(24px,4vw,72px)}

/* Each column scrolls on its own — the overview and the content move
   independently. overscroll-behavior stops one column's scroll leaking into
   the other (or the page) at its ends. Scrollbars hidden for a clean edge. */
.cs-side,.cs-main{height:100%; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:none}
.cs-side::-webkit-scrollbar,.cs-main::-webkit-scrollbar{width:0; height:0}

/* ---- sidebar ---- */
.cs-side{flex:0 0 auto; width:100%; max-width:336px;
  display:flex; flex-direction:column; padding:clamp(36px,5vw,60px) 2px 150px 0}
.cs-back{display:inline-flex; align-items:center; gap:5px; align-self:flex-start; margin-bottom:28px;
  position:sticky; top:0; z-index:61;
  padding:6px 13px 6px 10px; border-radius:999px; background:var(--surface);
  font-size:13px; font-weight:500; color:var(--sub); text-decoration:none;
  transition:background-color .15s var(--ease), color .15s var(--ease)}
.cs-back svg{width:14px; height:14px}
.cs-back:hover,.cs-back:focus-visible{background:var(--surface-h); color:var(--ink)}
.cs-eyebrow{font-size:13px; font-weight:500; color:var(--sub)}
.cs-title{margin-top:5px; font-size:20px; line-height:1.3; font-weight:500; letter-spacing:-.012em; color:var(--ink)}
.cs-links{display:flex; flex-wrap:wrap; gap:6px; margin-top:14px}
.cs-tags{display:flex; flex-wrap:wrap; gap:6px; margin-top:14px}
.cs-tags span{font-size:12.5px; font-weight:500; color:var(--sub);
  background:var(--surface); padding:4px 10px; border-radius:999px}
.cs-meta{margin-top:26px; display:flex; flex-direction:column; gap:15px}
.cs-meta > div{display:flex; flex-direction:column; gap:3px}
.cs-meta dt{font-size:13px; font-weight:500; color:var(--ink)}
.cs-meta dd{margin:0; font-size:13px; line-height:1.46; color:#5c5c5b}
.cs-cta{margin-top:26px; padding-top:22px; border-top:1px solid #ececea}
.cs-cta p{font-size:13px; line-height:1.45; color:#5c5c5b; margin-bottom:11px}
.cs-cta-row{display:flex; flex-wrap:wrap; gap:8px}
.cs-more{margin-top:24px; padding-top:22px; border-top:1px solid #ececea;
  display:flex; flex-direction:column; gap:13px}
.cs-more-h{font-size:14px; font-weight:500; color:var(--sub)}
.cs-more a{display:flex; align-items:baseline; gap:8px; text-decoration:none}
.cs-more a .t{font-size:14px; font-weight:500; letter-spacing:-.01em; color:var(--ink); white-space:nowrap}
.cs-more a .d{font-size:14px; color:var(--sub)}
.cs-more a:hover .t{text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:2px}

/* ---- main column ---- */
.cs-main{flex:1 1 0; min-width:0; max-width:780px; display:flex; flex-direction:column;
  gap:clamp(44px,5vw,68px); padding:clamp(36px,5vw,60px) 0 150px}
.cs-block{display:flex; flex-direction:column; gap:15px}
.cs-k{font-size:13px; font-weight:500; letter-spacing:.01em; color:var(--mark)}
.cs-block h2{font-size:clamp(21px,1.1rem + .7vw,26px); font-weight:600; letter-spacing:-.02em;
  line-height:1.24; color:var(--ink)}
.cs-block h2 + .cs-k{order:-1}
.cs-block p{font-size:15.5px; line-height:1.62; color:#3a3a38}
.cs-block p + p{margin-top:-4px}
.cs-lead{font-size:17px !important; line-height:1.55 !important; color:var(--ink) !important}
.cs-callout{margin:4px 0 0; padding:15px 18px; background:var(--surface); border:1px solid #ececea;
  border-radius:10px; font-size:14px; line-height:1.5; color:var(--ink)}

.cs-fig{margin:4px 0 0; display:flex; flex-direction:column; gap:12px}
.cs-fig .plate{border-radius:14px; overflow:hidden; background:#f4f4f2; border:1px solid #ececea}
.cs-fig img{display:block; width:100%; height:auto}
.cs-fig figcaption{font-size:13px; line-height:1.5; color:var(--sub)}
.cs-fig figcaption b{color:var(--ink); font-weight:500}

.cs-stats{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 28px}
.cs-stat b{display:block; font-size:27px; font-weight:600; letter-spacing:-.02em; line-height:1; color:var(--ink)}
.cs-stat span{display:block; margin-top:6px; font-size:13px; line-height:1.4; color:var(--sub)}

.cs-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px}
.cs-card{padding:16px 18px; border-radius:12px; background:var(--surface)}
.cs-card b{display:block; font-size:14px; font-weight:500; color:var(--ink)}
.cs-card span{display:block; margin-top:5px; font-size:13px; line-height:1.5; color:#5c5c5b}

.cs-takeaway{padding:22px 24px; border-radius:14px; background:var(--ink); color:#fff}
.cs-takeaway .cs-k{color:#b9b9b7}
.cs-takeaway p{margin-top:10px; font-size:15px; line-height:1.6; color:#ececeb}

.cs-credit{margin-top:8px; font-size:12px; line-height:1.5; color:var(--faint)}

@media (max-width:900px){
  /* one column, normal page scroll — not two independent scrollers */
  .cs-shell{flex-direction:column; gap:40px; height:auto; overflow:visible; padding:40px 24px 130px}
  .cs-side,.cs-main{height:auto; overflow:visible; padding:0}
  .cs-side{max-width:none}
  .cs-back{position:static; z-index:auto}
  .cs-main{max-width:none}
  .cs-grid,.cs-stats{grid-template-columns:1fr}
}
