/* ── Projects (the feed at /projects and the pages of projects added since Stage 2) ── */

.pj-index { background: #0a0a0a; padding: 160px 40px 120px; }
.pj-index > .section-label,
.pj-index > .section-title,
.pj-filter,
.pj-grid,
.pj-empty { max-width: 1400px; margin-left: auto; margin-right: auto; }

/* category filter */
.pj-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; margin-bottom: 36px; }
.pj-filter[hidden] { display: none; }
.pj-chip {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 20px;
  min-height: 44px;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.pj-chip:hover { border-color: #c9a84c; color: #c9a84c; }
.pj-chip[aria-pressed="true"] { background: #c9a84c; border-color: #c9a84c; color: #0a0a0a; }
.pj-chip:focus-visible { outline: 3px solid #e2c47a; outline-offset: 2px; }

/* cards: every cover is cropped to the same shape; the project's own page shows each photo whole */
.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
.pj-card[hidden] { display: none; }
.pj-card { position: relative; min-width: 0; }
.pj-card-link { display: block; color: inherit; text-decoration: none; }
.pj-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: #111; }
.pj-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.pj-card-link:hover .pj-card-img img,
.pj-card-link:focus-visible .pj-card-img img { transform: scale(1.05); }
.pj-card-link:focus-visible { outline: 3px solid #e2c47a; outline-offset: 4px; }
.pj-noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-family: 'Barlow Condensed', sans-serif; letter-spacing: 3px; text-transform: uppercase; font-size: 13px; }
.pj-card-meta { padding: 14px 2px 0; }
.pj-cat { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #c9a84c; margin-right: 10px; }
.pj-draft { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; background: #c9a84c; color: #0a0a0a; padding: 2px 8px; }
.pj-card-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; line-height: 1.15; color: #fff; margin: 6px 0 4px; overflow-wrap: anywhere; }
.pj-card-date { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin: 0; }
.pj-empty { font-family: 'Barlow', sans-serif; color: rgba(255,255,255,0.7); margin-top: 24px; }

/* one project's own page */
.pj-page { max-width: 1100px; margin: 0 auto; padding: 160px 40px 120px; }
.pj-top { max-width: 800px; }
.pj-top .project-back { margin-bottom: 36px; }
.pj-draft-banner { background: #c9a84c; color: #0a0a0a; font-family: 'Barlow Condensed', sans-serif; letter-spacing: 2px; font-weight: 700; padding: 10px 14px; margin: 0 0 24px; text-transform: uppercase; font-size: 14px; }
.pj-title { overflow-wrap: anywhere; }
.pj-facts { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 8px 0 28px; padding: 0; }
.pj-facts div { min-width: 0; }
.pj-facts dt { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #c9a84c; }
.pj-facts dd { margin: 2px 0 0; font-family: 'Barlow', sans-serif; font-size: 17px; color: rgba(255,255,255,0.9); overflow-wrap: anywhere; }
.pj-summary { font-family: 'Barlow', sans-serif; font-size: clamp(18px, 2vw, 22px); line-height: 1.6; color: #fff; margin: 0 0 32px; overflow-wrap: anywhere; }
.pj-write { max-width: 800px; margin-bottom: 48px; overflow-wrap: anywhere; }
/* photos: shown whole at their own shape, never cropped */
.pj-photos { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.pj-photo { margin: 0; }
.pj-photo img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.pj-cta { max-width: 800px; }

@media (max-width: 1024px) { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .pj-index { padding: 120px 20px 80px; }
  .pj-page { padding: 120px 20px 80px; }
  .pj-facts { gap: 8px 28px; }
}
@media (max-width: 560px) { .pj-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pj-card-img img { transition: none; } }
