/* blank32 — client work pages. Standalone: these are rendered by PHP, not Next,
   so the house tokens are restated here rather than imported from globals.css. */

@font-face {
  font-family: 'BPmonoRound';
  src: url('/assets/BPmonoRound.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'BPmonoRound';
  src: url('/assets/BPmonoRoundBold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --white: #f5f5f5;
  --black: #0a0a0a;
  --faint: rgba(10, 10, 10, 0.08);
  --soft: rgba(10, 10, 10, 0.55);
  --display: 'BPmonoRound', ui-monospace, monospace;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 24px;
  --measure: 780px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

body.work-body {
  background: var(--white);
  color: var(--black);
  font-family: var(--display);
  line-height: 1.6;
  text-transform: lowercase;   /* house rule: no caps anywhere */
  overflow-x: hidden;
  cursor: none;
}
body.work-body.no-cursor, body.work-body.no-cursor * { cursor: auto; }
body.work-body:not(.no-cursor) * { cursor: none; }

/* proper nouns and pasted copy still deserve their real casing */
.wk-title, .wk-p, .wk-h, .wk-quote, .wk-cap, .wk-sub { text-transform: none; }

/* ── cursor ───────────────────────────────────────────────────────────── */
.wk-cursor {
  position: fixed; top: 0; left: 0; width: 0; height: 0;
  pointer-events: none; z-index: 9999; opacity: 0;
  transition: opacity 0.3s ease;
}
.wk-cursor-dot {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border: 1px solid var(--black); border-radius: 50%;
  transition: width 0.35s var(--ease-expo), height 0.35s var(--ease-expo),
              margin 0.35s var(--ease-expo), background 0.35s var(--ease-expo);
}
.wk-cursor.hovering .wk-cursor-dot {
  width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(10, 10, 10, 0.06);
}

/* ── chrome ───────────────────────────────────────────────────────────── */
.wk-top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  background: rgba(245, 245, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--faint);
  font-size: 13px; letter-spacing: 0.14em;
}
.wk-top-logo { color: var(--black); text-decoration: none; font-weight: 700; letter-spacing: 0.2em; }
.wk-top-slug { color: var(--soft); }

.wk-draft {
  padding: 10px var(--gutter); background: var(--black); color: var(--white);
  font-size: 12px; letter-spacing: 0.16em; text-align: center;
}

.wk-main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 88px var(--gutter) 120px;
}

/* ── hero ─────────────────────────────────────────────────────────────── */
.wk-hero { margin-bottom: 56px; }
.wk-title {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
}
.wk-sub {
  margin-top: 18px; font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--soft); line-height: 1.5; max-width: 46ch;
}

/* ── blocks ───────────────────────────────────────────────────────────── */
.wk-h { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 56px 0 18px; }
.wk-h-xl { font-size: clamp(2rem, 6vw, 3.4rem); }
.wk-h-l  { font-size: clamp(1.6rem, 4.4vw, 2.4rem); }
.wk-h-m  { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.wk-h-s  { font-size: clamp(1rem, 2.2vw, 1.15rem); letter-spacing: 0.08em; color: var(--soft); }
.wk-main > .wk-h:first-child { margin-top: 0; }

.wk-p { font-size: 1rem; line-height: 1.75; margin: 0 0 20px; max-width: 68ch; }

.wk-al-center { text-align: center; margin-left: auto; margin-right: auto; }
.wk-al-right  { text-align: right; }

.wk-fig { margin: 40px 0; }
.wk-fig img, .wk-img { display: block; width: 100%; height: auto; border-radius: 2px; }
.wk-video { display: block; width: 100%; height: auto; border-radius: 2px; background: var(--black); }
.wk-cover { margin-top: 0; }

.wk-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: 2px; overflow: hidden; background: var(--black); }
.wk-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.wk-cap { margin-top: 10px; font-size: 12px; letter-spacing: 0.06em; color: var(--soft); }

/* widths break out of the text measure on wide screens */
.wk-w-wide, .wk-w-full { width: 100%; }
@media (min-width: 900px) {
  .wk-w-wide { width: calc(100% + 120px); margin-left: -60px; }
  .wk-w-full { width: calc(100vw - 2 * var(--gutter)); margin-left: calc(50% - 50vw + var(--gutter)); }
}
.wk-w-normal { width: 100%; }

.wk-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 40px 0; }
.wk-gcell { margin: 0; }
.wk-gcell img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; border-radius: 2px; }

.wk-quote {
  margin: 48px 0; padding-left: 24px; border-left: 2px solid var(--black);
  font-size: clamp(1.15rem, 3vw, 1.5rem); line-height: 1.5;
}
.wk-cite { display: block; margin-top: 14px; font-size: 12px; letter-spacing: 0.12em; color: var(--soft); font-style: normal; }

.wk-divider { border: 0; border-top: 1px solid var(--faint); margin: 56px 0; }

.wk-spacer { height: 40px; }
.wk-sp-s { height: 20px; }
.wk-sp-m { height: 48px; }
.wk-sp-l { height: 96px; }
.wk-sp-xl { height: 160px; }

.wk-btn {
  display: inline-block; margin: 12px 0 40px; padding: 14px 28px;
  border: 1px solid var(--black); color: var(--black); text-decoration: none;
  font-size: 13px; letter-spacing: 0.16em;
  transition: background 0.4s var(--ease-expo), color 0.4s var(--ease-expo), letter-spacing 0.4s var(--ease-expo);
}
.wk-btn:hover { background: var(--black); color: var(--white); letter-spacing: 0.22em; }

/* ── footer + 404 ─────────────────────────────────────────────────────── */
.wk-foot {
  display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap;
  padding: 40px var(--gutter) 56px; border-top: 1px solid var(--faint);
  font-size: 12px; letter-spacing: 0.12em; color: var(--soft);
}
.wk-foot a { color: var(--soft); text-decoration: none; transition: color 0.3s ease; }
.wk-foot a:hover { color: var(--black); }

.wk-404 {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; padding: var(--gutter); text-align: center;
}
.wk-404-logo { font-weight: 700; letter-spacing: 0.24em; color: var(--black); text-decoration: none; margin-bottom: 18px; }
.wk-404-title { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700; }
.wk-404-sub { color: var(--soft); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
