/* badkid. - per-project layer on top of the shared ox-* case-study system.
   Typographic opening card (no film): the white wordmark needs no film shadow. */
.bk-open .ox-name img { filter: none; opacity: 0.96; }

/* Dark UI captures. Same reasoning as .ql-plate on QLINE: ox-full and ox-g-*
   crop with object-fit, which would slice an interface in half. These keep
   their natural ratio and are never cropped. */
.bk-plate { margin: 0; }
.bk-plate img,
.bk-plate video { display: block; width: 100%; height: auto; }
.bk-plate figcaption {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

/* Colour canon. Specimens, not swatch cards: a hairline holds each field so
   the near-black still reads as a colour on a near-black page. */
.bk-canon {
  margin-top: clamp(2.6rem, 6vh, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.9rem, 2vw, 1.7rem);
}
.bk-canon > div { display: flex; flex-direction: column; gap: 0.8rem; }
.bk-swatch {
  height: clamp(6rem, 16vh, 10rem);
  border: 1px solid var(--line);
}
.bk-hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  color: var(--ink-dim);
}
.bk-role {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--ink-faint);
  text-wrap: balance;
}

/* The three laws of the interaction language. Editorial rows with hairlines,
   the same grammar as the focus index and the legal pages. */
.bk-laws {
  margin: clamp(2.4rem, 6vh, 3.6rem) 0 0;
  padding: 0;
  list-style: none;
  max-width: 46em;
}
.bk-laws li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  padding: clamp(1.1rem, 2.6vh, 1.7rem) 0;
  border-top: 1px solid var(--line);
}
.bk-laws li:last-child { border-bottom: 1px solid var(--line); }
.bk-law-n {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  padding-top: 0.3em;
}
.bk-laws strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  color: var(--ink);
  text-wrap: balance;
}
.bk-laws span {
  display: block;
  margin-top: 0.4rem;
  color: var(--ink-dim);
  text-wrap: pretty;
}

/* One code artefact, shown as a specimen rather than as something running.
   The ground is badkid near-black, not the page background: this is a quote
   from another brand, and it should look quoted. Monospace comes from the
   system stack on purpose - a third webfont for three lines would cost more
   than it proves (see the performance discipline in HANDOFF 6b). */
.bk-code {
  margin: clamp(2.4rem, 6vh, 3.6rem) 0 0;
  max-width: 30em;
}
.bk-code pre {
  margin: 0;
  padding: clamp(1.3rem, 3.2vh, 2rem) clamp(1.3rem, 3vw, 2rem);
  background: #181818;
  border: 1px solid var(--line);
  overflow-x: auto;
}
.bk-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, "Liberation Mono", monospace;
  font-size: clamp(0.82rem, 1.5vw, 0.94rem);
  line-height: 1.95;
  color: #8f8a80;
  white-space: pre;
}
.bk-code .t-prop { color: #eeeae1; }
.bk-code .t-val { color: #ffc500; }
.bk-code figcaption {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-wrap: pretty;
}

@media (max-width: 720px) {
  .bk-canon { grid-template-columns: repeat(2, 1fr); }
  .bk-laws li { grid-template-columns: 1.9rem 1fr; }
}
