/* ==========================================================================
   Formium Alliance — Our Work (case studies)
   Loaded AFTER formium-blog.css: it reuses the same band / sheet / cards / prose / buttons and only adds
   what is specific to the work pages (division tiles, result numbers, snapshot). Scoped under .bl.wk.
   ========================================================================== */
.bl .bl-badge.t-grey, .bl .bl-ph.t-grey { background: var(--paper-2); }
.bl .bl-ph.t-grey { background: linear-gradient(135deg, #e6e8ee, #f1f2f6); }

/* ---------- the four division tiles (they act as tabs) ---------- */
.wk-hero { padding-top: 160px; padding-bottom: 150px; }
.wk-tiles { margin: 44px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; text-align: left; }
.wk-tile { position: relative; display: flex; flex-direction: column; min-height: 196px; padding: 22px 22px 20px; border-radius: 28px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(26, 26, 28, .07); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: left; transition: transform .6s var(--ease), background-color .4s, color .4s, box-shadow .6s var(--ease), border-color .4s; }
.wk-tile:hover { transform: translateY(-5px); background: #fff; box-shadow: 0 28px 50px -30px rgba(26, 26, 28, .35); }
.wk-tile:active { transform: scale(.985); }
.wk-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink-3); }
.wk-tile h3 { margin-top: auto; padding-top: 28px; }
.wk-tile p { margin-top: 8px; font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); max-width: 24ch; transition: color .4s; }
.wk-go { position: absolute; right: 18px; bottom: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; transition: transform .6s var(--ease), background-color .4s; }
.wk-go svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.wk-tile:hover .wk-go { transform: rotate(-45deg); }
.wk-tile.is-on { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 30px 56px -30px rgba(26, 26, 28, .6); }
.wk-tile.is-on h3 { color: #fff; }
.wk-tile.is-on p, .wk-tile.is-on .wk-tile-top { color: rgba(255, 255, 255, .62); }
.wk-tile.is-on .wk-go { background: #fff; transform: rotate(-45deg); }
.wk-tile.is-dim { opacity: .55; }
.wk-tile.is-dim:hover { opacity: 1; }

/* ---------- list header ---------- */
.wk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.wk-head h2 { margin-top: 10px; }
.wk-head .bl-micro { color: var(--ink-3); }
.wk-back { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line-2); font-size: var(--t-small); color: var(--ink); background: #fff; transition: border-color .25s; }
.wk-back:hover { border-color: var(--ink); }

/* ---------- result numbers ---------- */
.wk-stat { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.wk-stat b { font-size: var(--t-title); line-height: 1; letter-spacing: -.03em; font-weight: 400; color: var(--ink); }
.wk-stat span { font-size: var(--t-small); color: var(--ink-2); }
.wk-card .wk-stat b { font-size: clamp(30px, 2.6vw, 38px); }
.wk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.wk-chips span { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: var(--t-micro); font-family: var(--f-mono); color: var(--ink-2); }
.bl-card:hover .wk-chips span { background: var(--paper); }
.wk-client { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: var(--t-small); }
.wk-client i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 1.5px var(--ink); flex: none; }
.bl-feature .wk-stat b { color: #fff; }
.bl-feature .wk-stat span { color: rgba(255, 255, 255, .62); }
.bl-feature .wk-chips span { background: rgba(255, 255, 255, .1); border-color: transparent; color: rgba(255, 255, 255, .75); }
.bl-feature .wk-client { padding-top: 0; margin-top: 24px; color: rgba(255, 255, 255, .64); }

/* empty division */
.wk-empty { text-align: center; padding: 72px 24px; border-radius: 36px; background: var(--paper); }
.wk-empty .bl-badge { margin-bottom: 20px; }
.wk-empty h3 { margin-bottom: 8px; }
.wk-empty p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 26px; }
.wk-empty-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Project page
   ========================================================================== */
.wk-head-art .bl-meta { gap: 8px 12px; }
.wk-results { max-width: 1290px; margin: 28px auto 0; padding-inline: 20px; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; }
.wk-res { padding: 26px 26px 24px; border-radius: 30px; background: var(--paper); }
.wk-res b { display: block; font-size: var(--t-title); line-height: 1; letter-spacing: -.03em; font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.wk-res span { display: block; margin-top: 12px; color: var(--ink-2); font-size: var(--t-small); line-height: 1.45; }
.wk-snap { max-width: 1290px; margin: 14px auto 0; padding-inline: 20px; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; }
.wk-snap div { padding: 20px 24px; border-radius: 26px; border: 1px solid var(--line); }
.wk-snap .bl-micro { display: block; color: var(--ink-3); margin-bottom: 8px; }
.wk-snap b { font-weight: 450; font-size: var(--t-body); line-height: 1.4; }
.wk-body { max-width: 760px; margin: 72px auto 0; padding-inline: 20px; }
.wk-body .bl-prose > h2:first-child { margin-top: 0; }
.wk-more { margin-top: 112px; }

@media (max-width: 980px) {
  .wk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-tile { min-height: 168px; }
  .wk-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-snap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wk-hero { padding-top: 124px; padding-bottom: 110px; }
  .wk-tiles { gap: 10px; margin-top: 32px; }
  .wk-tile { min-height: 148px; padding: 16px 16px 14px; border-radius: 24px; }
  .wk-tile p { display: none; }
  .wk-tile h3 { padding-top: 18px; }
  .wk-go { right: 12px; bottom: 12px; width: 32px; height: 32px; }
  .wk-results, .wk-snap { padding-inline: 14px; gap: 10px; }
  .wk-res { padding: 20px 18px; border-radius: 24px; }
  .wk-snap div { padding: 16px 18px; border-radius: 22px; }
  .wk-body { margin-top: 52px; }
  .wk-more { margin-top: 80px; }
  .wk-empty { padding: 52px 18px; border-radius: 28px; }
}

/* soft cross-fade when a tile switches the list */
#wk-head, #wk-feature, #wk-grid { transition: opacity .22s ease, transform .42s var(--ease); }
#wk-head.is-swap, #wk-feature.is-swap, #wk-grid.is-swap { opacity: 0; transform: translateY(12px); }
#wk-head { scroll-margin-top: 96px; }

/* an odd last tile spans the full row on two-column layouts */
@media (max-width: 980px) {
  .wk-results .wk-res:last-child:nth-child(odd), .wk-snap > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
