/* ═══════════════════════════════════════════════════════
   work.css — Client Work index page
   Extends the V3 design system (style.css). No overrides
   of existing tokens; everything here is wk- prefixed.
   ═══════════════════════════════════════════════════════ */

.wk-main { padding-top: 7.5rem; }

/* ─── PAGE HEAD ─── */
.wk-head { position: relative; padding-bottom: 3rem; }
.wk-head .sec-eyebrow { margin-bottom: 1rem; }

.wk-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: .95;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 1.5rem;
}
.wk-title em {
  font-style: normal;
  background: var(--g-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wk-lede {
  max-width: 62ch;
  color: var(--c-dim);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0 0 2.5rem;
}
.wk-lede strong { color: var(--c-text); font-weight: 500; }

/* ─── STAT STRIP ─── */
.wk-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 3.5rem;
}
.wk-stat { background: var(--c-bg2); padding: 1.5rem 1.25rem; }
.wk-stat b {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1;
  color: #fff;
  letter-spacing: -.02em;
  white-space: nowrap;         /* keeps the "+" on the same line */
}
.wk-stat span {
  display: block;
  margin-top: .55rem;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ─── CONTROLS ─── */
.wk-controls {
  position: sticky;
  top: 64px;                      /* clears the fixed 64px nav */
  z-index: 40;
  padding: 1.1rem 0 .9rem;
  margin-bottom: 1.6rem;
  background: var(--c-bg);        /* opaque: cards must not bleed through */
}
/* soft hand-off from the opaque bar into the grid below */
.wk-controls::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 26px;
  background: linear-gradient(var(--c-bg), transparent);
  pointer-events: none;
}
.wk-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}
.wk-pill {
  font-family: var(--f-body);
  font-size: .8rem;
  font-weight: 500;
  color: var(--c-dim);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: .5rem 1rem;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
}
.wk-pill:hover { color: var(--c-text); border-color: rgba(14,165,233,.35); }
.wk-pill[aria-pressed="true"] {
  color: #fff;
  background: var(--g-blue);
  border-color: transparent;
}
.wk-pill b { font-weight: 600; opacity: .65; margin-left: .35rem; font-variant-numeric: tabular-nums; }

.wk-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 200px;
  margin-left: auto;
}
.wk-search svg {
  position: absolute; left: .85rem; top: 50%;
  transform: translateY(-50%);
  color: var(--c-muted); pointer-events: none;
}
.wk-search input {
  width: 100%;
  font-family: var(--f-body);
  font-size: .85rem;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: .58rem 1rem .58rem 2.4rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.wk-search input::placeholder { color: var(--c-muted); }
.wk-search input:focus {
  border-color: rgba(14,165,233,.5);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

.wk-select {
  font-family: var(--f-body);
  font-size: .8rem;
  color: var(--c-dim);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: .52rem 2rem .52rem 1rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
}
.wk-select:focus { border-color: rgba(14,165,233,.5); }
.wk-select option { background: var(--c-bg2); color: var(--c-text); }

.wk-count {
  font-size: .78rem;
  color: var(--c-muted);
  padding-top: .9rem;
  font-variant-numeric: tabular-nums;
}
.wk-count strong { color: var(--c-text); font-weight: 600; }

/* ─── GRID ─── */
.wk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.wk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s;
}
.wk-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14,165,233,.4);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(14,165,233,.12);
}
.wk-card:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 3px;
}

.wk-shot {
  position: relative;
  aspect-ratio: 1366 / 850;
  background: var(--c-bg2);
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}
.wk-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s var(--ease-out);
}
.wk-card:hover .wk-shot img { transform: scale(1.04); }

/* Fallback tile when no screenshot exists */
.wk-shot--none {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 70% at 50% 40%, rgba(99,102,241,.16), transparent),
    var(--c-bg2);
}
.wk-initials {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: .04em;
  color: rgba(226,232,240,.32);
}

.wk-badge {
  position: absolute;
  top: .7rem; left: .7rem;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--g-blue);
  border-radius: 5px;
  padding: .3rem .5rem;
  box-shadow: 0 3px 12px rgba(14,165,233,.35);
}

.wk-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
}
.wk-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--c-text);
  margin: 0;
  overflow-wrap: anywhere;
}
.wk-card:hover .wk-name { color: #fff; }
.wk-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .7rem;
  color: var(--c-muted);
  margin-top: .1rem;
}
.wk-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 6px var(--c-green);
  flex: none;
}
.wk-host {
  margin-top: auto;
  padding-top: .7rem;
  font-size: .72rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: .35rem;
  overflow-wrap: anywhere;
}
.wk-card:hover .wk-host { color: var(--c-blue); }
.wk-host svg { flex: none; opacity: .7; }

/* ─── EMPTY STATE ─── */
.wk-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--c-muted);
}
.wk-empty b {
  display: block;
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--c-text);
  margin-bottom: .5rem;
  font-weight: 600;
}

/* ─── REVEAL ─── */
.wk-card { opacity: 0; transform: translateY(14px); }
.wk-card.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .wk-card { opacity: 1; transform: none; transition: none; }
  .wk-card:hover { transform: none; }
  .wk-card:hover .wk-shot img { transform: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .wk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-controls { top: 58px; }
  .wk-search { margin-left: 0; order: 10; flex-basis: 100%; }
}
@media (max-width: 560px) {
  .wk-main { padding-top: 6rem; }
  .wk-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .wk-stat { padding: 1.1rem .9rem; }
}

/* ─── VISUALLY-HIDDEN LABELS ─── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
