/* One case page's own pieces (case QC 12/03). No client names in here: qc-real-series reads served CSS. */

/* A signature that writes itself in the hero: the client's own vector, its letters revealed by the pen strokes it was
   animated with (the same stroke-dashoffset draw as .cm-draw, run once on load). Reduced motion gets the finished name. */
.case-sig { order: 2; margin: clamp(14px, 1.6vw, 20px) 0 0; width: min(300px, 68%); color: var(--ink); }
.case-sig svg { display: block; width: 100%; height: auto; overflow: visible; }
.case-sig .sig-ink { fill: currentColor; }
.case-sig .sig-pen { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: case-sig-draw var(--d, 1.9s) cubic-bezier(.55, 0, .35, 1) var(--w, 0s) forwards; }
@keyframes case-sig-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .case-sig .sig-pen { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 900px) { .case-sig { order: 1; width: min(240px, 62%); } }

/* The hero preview is the work's showreel: its first frame until pressed, then it plays (it has no sound track) */
.case-art.case-reel { aspect-ratio: 4 / 3; max-height: none; background: #0b0b0b; }
.case-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.case-reel .hf-reel { z-index: 3; border: 0; cursor: pointer; left: 16px; bottom: 16px; }
.case-reel .hf-reel:focus-visible { outline: 2px solid var(--ink, #121212); outline-offset: 3px; }
.case-reel.is-playing .hf-reel b::after { left: 9px; top: 8px; width: 8px; height: 10px; border: 0; border-left: 3px solid #f8f6f1; border-right: 3px solid #f8f6f1; }

/* A wide wordmark on the brand stage: the lockup centered and large, the palette in one row under it */
.cm-brand.is-wide .cm-logo { left: 12%; width: 76%; top: 40%; }
.cm-brand.is-wide .cm-pal { left: 30%; right: 30%; top: auto; bottom: 12%; width: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); transform: translateY(calc((1 - var(--p)) * 14%)); }
@media (max-width: 700px) {
  .cm-brand.is-wide .cm-logo { left: 8%; width: 84%; top: 34%; }
  .cm-brand.is-wide .cm-pal { left: 12%; right: 12%; bottom: 8%; }
}
