/* Case-study cards + bottom-sheet viewer (/consulting/). Slides themselves: slides.css (synced). */
.work-band {
  width: min(1120px, calc(100vw - 32px));
  position: relative; left: 50%; transform: translateX(-50%);
  margin: 28px 0 36px;
}
.wc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.wc-grid > li { display: flex; margin: 0; padding: 0; }
.wc-img img { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.wc-grid > li::before { content: none; }
.wc-card {
  flex: 1; display: flex; flex-direction: column; text-align: left; font: inherit; color: var(--text);
  background: linear-gradient(160deg, var(--panel-2), #12122a 70%);
  border: 1px solid var(--line); border-radius: 16px; padding: 0; cursor: pointer; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.wc-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 14px 34px rgba(210,13,116,.22); }
.wc-card:focus-visible { outline: 3px solid var(--build); outline-offset: 3px; }
.wc-img { display: block; position: relative; background: #fbfcff; }
.wc-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--primary), var(--build)); }
.wc-img img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.wc-meta { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.wc-who { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--build); }
.wc-title { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.wc-sum { color: var(--mute); font-size: 15px; line-height: 1.5; }
.wc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.wc-tags span { font-family: var(--mono); font-size: 11px; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.wc-open { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--link); }
.wc-card:hover .wc-open { color: var(--primary-2); }

/* bottom sheet */
html.wc-lock { overflow: hidden; }
.wc-sheet {
  position: fixed; inset: auto 0 0 0; margin: 0 auto; width: min(1180px, 100vw); max-width: 100vw;
  max-height: 92vh; max-height: 92dvh; height: auto;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0;
  background: var(--bg); color: var(--text); padding: 0;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 -18px 60px rgba(0,0,0,.5);
  transition: translate .28s cubic-bezier(.2,.8,.2,1), opacity .28s, overlay .28s allow-discrete, display .28s allow-discrete;
  translate: 0 100%; opacity: 1;
}
.wc-sheet:not([open]) { display: none; }
.wc-sheet[open] { translate: 0 0; }
@starting-style { .wc-sheet[open] { translate: 0 100%; } }
.wc-sheet::backdrop { background: rgba(8,6,20,.7); backdrop-filter: blur(3px); transition: opacity .28s, overlay .28s allow-discrete, display .28s allow-discrete; opacity: 1; }
@starting-style { .wc-sheet[open]::backdrop { opacity: 0; } }
.wc-grab { flex: none; display: grid; place-items: center; height: 26px; cursor: grab; touch-action: none; background: var(--panel-2); }
.wc-grab::before { content: ""; width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); }
.wc-head { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 20px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.wc-dlg-who { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--build); }
.wc-dlg-title { margin: 2px 0 0; font-size: clamp(17px, 2.2vw, 22px); }
.wc-body { flex: 1 1 auto; overflow: auto; padding: 16px 20px; overscroll-behavior: contain; }
.wc-foot { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel-2); }
.wc-foot .wc-nav { display: flex; align-items: center; gap: 10px; }
.wc-btn { font: 600 14px var(--sans); min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--text); cursor: pointer; }
.wc-btn:hover { border-color: var(--build); color: var(--build); }
.wc-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.wc-btn.primary:hover { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }
.wc-btn:focus-visible { outline: 3px solid var(--build); outline-offset: 2px; }
.wc-more { font: 600 14px var(--sans); color: var(--link); white-space: nowrap; }
.wc-dots { display: flex; gap: 2px; }
.wc-dots button { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; }
.wc-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); }
.wc-dots button[aria-current="true"]::before { background: var(--build); border-color: var(--build); }
.wc-body .slide ul { list-style: disc; }
.wc-body .slide li::before { content: none; }
@media (max-width: 640px) {
  .wc-grid { grid-template-columns: 1fr; }
  .wc-head, .wc-body, .wc-foot { padding-left: 14px; padding-right: 14px; }
  .wc-foot { flex-wrap: wrap; }
  .wc-more { order: 3; width: 100%; text-align: center; }
  .wc-btn { padding: 10px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .wc-card, .wc-sheet, .wc-sheet::backdrop { transition: none; }
  .wc-card:hover { transform: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.work-band a { text-decoration: none; }
.wc-dlg-title { color: #fff; }
.wc-btn { white-space: nowrap; }
