/* ═════════════════════════════════════════════════════════════════
   Case studies: /work (work.php) and /work/<slug> (work-case.php).
   Loaded after blog.css, whose cards, head and prose it reuses.
   Black, white and grey, like the blog.
   ═════════════════════════════════════════════════════════════════ */

/* ─── /work ─────────────────────────────────────────────────────── */
.wk-chips { margin-bottom: 40px; }
.wk-chips button span { margin-left: 4px; font-variant-numeric: tabular-nums; opacity: .6; }
.wk-card[hidden] { display: none; }
.wk-card .bl-card-media video { width: 100%; height: 100%; object-fit: cover; }
.wk-card-meta { margin-bottom: 8px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #71717A; }
.wk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.wk-tags li { padding: 4px 10px; border-radius: 9999px; background: #F4F4F5; font-size: 13px; color: #52525B; }
.wk-empty { padding: 48px 0 24px; font-size: 18px; line-height: 1.6; color: var(--color-text-secondary); }
.wk-empty a { color: var(--color-text-primary); text-decoration: underline; text-underline-offset: 4px; }

/* ─── /work/<slug> ──────────────────────────────────────────────────
   Rows: the title sits in the left column and stays at the top of the
   screen (sticky) while the text beside it scrolls past. Chapters: the
   same, on their own band, with the screens on the right.            */
.wk-case { --wk-stick: calc(var(--header-h, 72px) + 40px); --wk-brand: #18181B; padding-top: 136px; background: #fff; }
.wk-hero { max-width: 980px; }
.wk-logo { display: block; max-width: 160px; max-height: 40px; margin-bottom: 28px; object-fit: contain; }
.wk-title { font-size: clamp(36px, 5.2vw, 72px); font-weight: 300; line-height: 1.04; letter-spacing: -.03em; color: var(--color-text-primary); text-wrap: balance; }
.wk-title strong { font-weight: 600; }
.wk-summary { max-width: 720px; margin-top: 24px; font-size: 20px; line-height: 1.55; color: var(--color-text-secondary); }
.wk-hero-tags { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; padding: 0; list-style: none; }
.wk-hero-tags li { font-size: 14px; color: #52525B; }

.wk-cover { margin: 56px 0 0; overflow: hidden; border-radius: 24px; background: #EFEFF1; aspect-ratio: 16 / 9; }
.wk-cover video, .wk-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.wk-facts-wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding: 28px 0; border-bottom: 1px solid var(--hx-line); }
.wk-facts { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 0; }
.wk-facts dt { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #71717A; }
.wk-facts dd { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--color-text-primary); }
.wk-live { font-size: 15px; font-weight: 500; color: var(--color-text-primary); text-decoration: underline; text-underline-offset: 4px; }

.wk-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding: 88px 0; }
.wk-row + .wk-row { border-top: 1px solid var(--hx-line); }
.wk-row-title { position: sticky; top: var(--wk-stick); font-size: clamp(30px, 3.6vw, 52px); font-weight: 400; line-height: 1.05; letter-spacing: -.025em; color: var(--color-text-primary); scroll-margin-top: var(--wk-stick); }
.wk-row-body { min-width: 0; }
.wk-row-body .bl-prose > :first-child { margin-top: 0; }
.wk-lead > p:first-child { font-size: clamp(22px, 2.3vw, 32px); font-weight: 500; line-height: 1.38; letter-spacing: -.015em; color: var(--color-text-primary); }
.wk-outcomes { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; }
.wk-outcomes h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.01em; color: var(--color-text-primary); }
.wk-outcomes p { margin-top: 8px; font-size: 17px; line-height: 1.6; color: var(--color-text-secondary); }

.wk-chapter { padding: 112px 0; }
.wk-tone-light { background: #fff; }
.wk-tone-soft { background: #F4F4F5; }
.wk-tone-dark { background: #0A0A0A; color: #FAFAFA; }
.wk-tone-brand { background: var(--wk-brand); color: #fff; }
.wk-chapter-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.wk-chapter-textonly { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.wk-sticky { position: sticky; top: var(--wk-stick); }
.wk-chapter h2 { font-size: clamp(26px, 2.8vw, 38px); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; color: inherit; scroll-margin-top: var(--wk-stick); }
.wk-chapter-text { margin-top: 20px; }
.wk-chapter-text p { font-size: 16px; line-height: 1.7; color: #52525B; }
.wk-chapter-text p + p { margin-top: 14px; }
.wk-tone-dark .wk-chapter-text p { color: #A1A1AA; }
.wk-tone-brand .wk-chapter-text p { color: rgba(255, 255, 255, .82); }
.wk-chapter-media { display: grid; gap: 28px; }

.wk-shot { margin: 0; }
.wk-shot img { display: block; width: 100%; height: auto; border-radius: 18px; background: #EFEFF1; }
.wk-tone-dark .wk-shot img { background: #18181B; }
.wk-shot figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: #71717A; }
.wk-tone-dark .wk-shot figcaption { color: #A1A1AA; }
.wk-tone-brand .wk-shot figcaption { color: rgba(255, 255, 255, .78); }

.wk-results-intro { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--color-text-primary); }
.wk-results { display: grid; gap: 36px; margin: 48px 0 0; padding: 0; list-style: none; }
.wk-results strong { display: block; font-size: clamp(44px, 6vw, 84px); font-weight: 300; line-height: 1; letter-spacing: -.035em; color: var(--color-text-primary); }
.wk-results span { display: block; max-width: 520px; margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--color-text-secondary); }

.wk-quote { margin: 0; }
.wk-quote blockquote { margin: 0; }
.wk-quote blockquote p { font-size: clamp(22px, 2.4vw, 30px); font-weight: 400; line-height: 1.4; letter-spacing: -.01em; color: var(--color-text-primary); }
.wk-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 15px; }
.wk-quote figcaption img { width: 44px; height: 44px; border-radius: 9999px; object-fit: cover; }
.wk-quote figcaption b { display: block; color: var(--color-text-primary); }
.wk-quote figcaption span span { display: block; color: var(--color-text-secondary); }

.wk-gallery { padding: 88px 0; border-top: 1px solid var(--hx-line); border-bottom: 1px solid var(--hx-line); }
.wk-gallery-title { margin-bottom: 40px; font-size: clamp(30px, 3.6vw, 52px); font-weight: 400; line-height: 1.05; letter-spacing: -.025em; }
.wk-gallery-list { display: grid; gap: 48px; }
.wk-gallery-list .wk-shot img { border-radius: 22px; }
.wk-gallery-list .wk-shot figcaption { max-width: 760px; margin-top: 14px; font-size: 15px; }

.wk-faq { margin-top: 0; }
.wk-faq summary { font-size: 19px; font-weight: 500; }
.wk-reading { margin: 0; padding: 0; list-style: none; }
.wk-reading li + li { margin-top: 14px; }
.wk-reading a { font-size: 19px; line-height: 1.45; color: var(--color-text-primary); text-decoration: underline; text-decoration-color: #A1A1AA; text-underline-offset: 5px; }
.wk-reading a:hover { text-decoration-color: currentColor; }

.wk-next { padding: 24px 0 96px; background: #fff; }
.wk-next-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; padding-top: 72px; border-top: 1px solid var(--hx-line); color: inherit; text-decoration: none; }
.wk-next-eyebrow { display: block; font-size: 14px; color: var(--color-text-secondary); }
.wk-next-title { display: block; margin-top: 18px; font-size: clamp(28px, 3.2vw, 44px); font-weight: 400; line-height: 1.15; letter-spacing: -.02em; color: var(--color-text-primary); text-wrap: balance; }
.wk-next-arrow { display: inline-block; margin-top: 28px; font-size: 40px; line-height: 1; color: var(--color-text-primary); transition: transform .25s ease; }
.wk-next-link:hover .wk-next-arrow, .wk-next-link:focus-visible .wk-next-arrow { transform: translate(6px, -6px); }
.wk-next-link:hover .wk-next-title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.wk-next-media { display: block; overflow: hidden; border-radius: 20px; background: #EFEFF1; aspect-ratio: 16 / 10; }
.wk-next-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.wk-next-link:hover .wk-next-media img { transform: scale(1.03); }

.wk-cta-wrap { padding: 0 0 96px; background: #fff; }
.wk-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding: 56px 60px; border: 1px solid var(--hx-line); border-radius: 28px; background-color: #fff; background-image: radial-gradient(#E4E4E7 1px, transparent 1px); background-size: 22px 22px; background-position: 0 0; }
.wk-cta-words { flex: 1 1 420px; max-width: 760px; }
.wk-cta-lead { font-size: 19px; color: var(--color-text-secondary); }
.wk-cta-title { margin-top: 8px; font-size: clamp(28px, 3.4vw, 46px); font-weight: 300; line-height: 1.12; letter-spacing: -.02em; color: var(--color-text-primary); }
.wk-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.wk-cta-actions .btn-call { background: #18181B; color: #fff; }
.wk-cta-mail { font-size: 14px; color: var(--color-text-secondary); text-decoration: underline; text-underline-offset: 4px; }

/* ─── Tablet ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .wk-case { padding-top: 120px; }
  .wk-row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; padding: 64px 0; }
  .wk-chapter { padding: 80px 0; }
  .wk-chapter-grid, .wk-chapter-textonly { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
  .wk-next-link { gap: 32px; }
}

/* ─── Phone: one column, nothing sticky ─────────────────────────── */
@media (max-width: 767px) {
  .wk-chips { flex-wrap: nowrap; margin: 0 -20px 32px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
  .wk-chips button { flex: none; height: 44px; }
  .wk-case { padding-top: 96px; }
  .wk-summary { font-size: 17px; }
  .wk-hero-tags { gap: 6px 20px; margin-top: 20px; }
  .wk-cover { margin-top: 32px; border-radius: 16px; }
  .wk-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; width: 100%; }
  .wk-row, .wk-chapter-grid, .wk-chapter-textonly, .wk-next-link { grid-template-columns: minmax(0, 1fr); }
  .wk-row { gap: 18px; padding: 48px 0; }
  .wk-row-title, .wk-sticky { position: static; }
  .wk-row-title { font-size: 30px; }
  .wk-chapter { padding: 56px 0; }
  .wk-chapter-grid { gap: 28px; }
  .wk-chapter-media { gap: 18px; }
  .wk-shot img { border-radius: 14px; }
  .wk-results { gap: 28px; margin-top: 32px; }
  .wk-gallery { padding: 56px 0; }
  .wk-gallery-title { margin-bottom: 24px; font-size: 30px; }
  .wk-gallery-list { gap: 28px; }
  .wk-gallery-list .wk-shot img { border-radius: 14px; }
  .wk-next { padding-bottom: 64px; }
  .wk-next-link { gap: 24px; padding-top: 48px; }
  .wk-next-media { order: -1; }
  .wk-cta-wrap { padding-bottom: 64px; }
  .wk-cta { padding: 32px 24px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .wk-next-arrow, .wk-next-media img { transition: none; }
}
