/* /projects/ (tools/site-gen/build_projects.py). Tokens from style.css; spec docs/DESIGN.md. */

/* ---------- Head ---------- */
.pj-head { background: var(--steel-100); border-bottom: 1px solid var(--steel-200); padding: 48px 0 56px; }
.pj-head .wrap > * { max-width: 760px; }
.pj-crumb { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pj-head h1 { margin: 0 0 16px; font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); line-height: 1.06; color: var(--ink); }
.pj-lead { margin: 0 0 24px; font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); }
.pj-lead a { text-decoration: underline; text-underline-offset: 3px; }
.pj-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Letters: thumbnail of the real letter beside the quote ---------- */
/* Grey band: sections alternate white / grey in the order head, clients, letters, clips, demo. */
.pj-letters { background: var(--steel-100); border-top: 1px solid var(--steel-200); }
.letter { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; padding: 48px 0; border-top: 1px solid var(--steel-200); }
.letter-thumb { display: block; overflow: hidden; border: 1px solid var(--steel-200); border-radius: 4px; background: var(--paper);
  box-shadow: 0 1px 2px rgb(17 20 24 / .06), 0 8px 24px rgb(17 20 24 / .06); transition: transform var(--dur-fast) var(--ease-out); }
.letter-thumb:hover { transform: translateY(-4px); }
.letter-thumb img { display: block; width: 100%; height: auto; }
.letter blockquote { margin: 0 0 24px; max-width: 62ch; font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.5; color: var(--ink); }
.letter blockquote::before { content: "\201C"; display: block; height: 40px; font-size: 64px; font-weight: 700; line-height: 1; color: var(--brand-magenta); opacity: .4; }
.letter .who { margin: 0 0 2px; font-weight: 700; color: var(--ink); }
.letter .org { margin: 0 0 8px; color: var(--ink-2); }
.letter .meta { margin: 0 0 16px; font-size: 15px; color: var(--ink-2); }

/* ---------- On site ---------- */
/* Eight application clips, one card each: clip, number, application name, one line. The card links to the application. */
.pj-clips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pj-clip { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--steel-200); border-radius: 8px; background: var(--paper); color: inherit; text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.pj-clip:hover, .pj-clip:focus-visible { color: inherit; border-color: var(--accent); box-shadow: 0 1px 2px rgb(17 20 24 / .06), 0 8px 24px rgb(17 20 24 / .06); }
.pj-clip video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--steel-100); }
.pj-clip-body { display: block; padding: 14px 16px 16px; }
.pj-clip-n { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 8px; border-radius: 6px; background: var(--foam); color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pj-clip-n.fire { background: var(--fire); color: var(--paper); }
.pj-clip h3 { margin: 0 0 6px; font-size: 1.0625rem; line-height: 1.25; color: var(--ink); }
.pj-clip-sub { display: block; margin: -2px 0 6px; font-size: 13px; font-weight: 600; color: var(--fire); }
.pj-clip p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* ---------- Client list: a ruled grid, names only (no logos) ---------- */
.client-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--steel-200); border-left: 1px solid var(--steel-200); }
.client-list li { padding: 16px 20px; border-right: 1px solid var(--steel-200); border-bottom: 1px solid var(--steel-200); font-weight: 600; color: var(--ink); }

@media (max-width: 1023px) {
  .pj-clips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pj-head { padding: 32px 0 40px; }
  .pj-ctas .btn { flex: 1 1 auto; text-align: center; }
  .letter { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 32px 0; }
  .letter-thumb { grid-row: 2; width: 120px; }
  .pj-clips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pj-clip-body { padding: 10px 12px 12px; }
  .pj-clip h3 { font-size: 15px; }
  .pj-clip p { font-size: 13px; }
  .client-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-list li { padding: 12px 14px; font-size: 15px; }
}

/* ============ Copy rewrite (19 Oct 2026): repeat users ============ */
.client-list li.more { color: var(--ink-2); font-weight: 600; background: var(--steel-100); }
.again { margin: 28px 0 0; }
.again h3 { margin: 0 0 6px; font-size: 1.25rem; color: var(--ink); }
.again > p { margin: 0 0 14px; color: var(--ink-2); font-size: 16px; }
.again .again-lead { margin: 0 0 10px; padding: 14px 16px; border-radius: 10px; background: var(--paper); border: 1px solid var(--steel-200); border-left: 3px solid var(--foam-deep); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.again .again-lead b { display: block; margin-bottom: 2px; font-size: 16px; color: var(--ink); }
.again ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.again li { padding: 12px 14px; border: 1px solid var(--steel-200); border-radius: 10px; background: var(--paper); font-weight: 600; font-size: 15px; color: var(--ink); }
@media (min-width: 768px) { .again ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
