/* ═════════ PROJECTS · SECTION 3 · ALL WORK (filter by industry) ═════════
   The cards use the shared work-card look (.sd4-card, solution/section4.css). */
.pr-section3 {
  position: relative;
  padding: 90px 0 100px;
}

.pr3-intro {
  min-height: 3.3em;
}

.pr3-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.pr3-f {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}

.pr3-f span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-faint);
  transition: color 0.3s;
}

.pr3-f:hover {
  color: var(--text);
  border-color: rgba(91, 149, 255, 0.45);
}

.pr3-f.is-on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 24px -6px var(--blue-glow);
}

.pr3-f.is-on span {
  color: rgba(255, 255, 255, 0.7);
}

.pr3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* hidden by the filter (the card's own display:flex would otherwise win) */
.pr3-grid > [hidden] {
  display: none;
}

/* ─── project card extras ─── */
.pr3-card .sd4-mark {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

.pr3-card .sd4-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pr3-card .sd4-info h3 {
  font-size: 1.35rem;
}

.pr3-card .sd4-info p {
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.pr3-scope {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
  transition: color 0.4s;
}

.pr3-card:hover .pr3-scope {
  color: var(--blue-soft);
}

@media (max-width: 1000px) {
  .pr3-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .pr-section3 { padding: 70px 0 80px; }
  .pr3-intro { min-height: 0; }
  /* one swipeable row of filters on phones */
  .pr3-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .pr3-filters::-webkit-scrollbar { display: none; }
}

@media (max-width: 640px) {
  .pr3-grid { grid-template-columns: 1fr; }
}
