/* ============================================================
   PPSN — Portfolio Page CSS (page-portfolio)
   Uses shared utilities/components from style.css:
   - .u-stats-bar, .u-stat-num, .u-stat-lbl, .u-stat-divider
   - .proj-card-img, .pci-*
   - .u-cta-title
   ============================================================ */

/* ── FILTER STRIP ── */
#page-portfolio .filter-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border: 1px solid var(--rule);
  background: white;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#page-portfolio .filter-strip::-webkit-scrollbar {
  display: none;
}

#page-portfolio .filter-btn {
  background: white;
  border: none;
  border-right: 1px solid var(--rule);
  color: var(--mid);
  font-size: .78rem;
  font-weight: 500;
  padding: .65rem 1.2rem;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all .18s;
  font-family: var(--ff);
  white-space: nowrap;
}

#page-portfolio .filter-btn:last-child { border-right: none }
#page-portfolio .filter-btn.active,
#page-portfolio .filter-btn:hover {
  background: var(--ink);
  color: white;
}

/* ── Section-engineering-value: special layout ── */
#page-portfolio #section-engineering-value .proj-card-img {
  align-items: flex-start;
}

/* ── SECTION DIVIDERS ── */
#page-portfolio .proj-section-head {
  padding: .75rem 0;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

#page-portfolio .proj-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -.01em;
}

#page-portfolio .proj-section-count {
  font-size: .68rem;
  color: var(--pale);
  font-weight: 400;
  letter-spacing: .04em;
}

/* ── CLIENT LOGOS SECTION ── */
#page-portfolio .client-logo-box {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  transition: background .2s;
}

#page-portfolio .client-logo-box img {
  max-height: 100px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

#page-portfolio .client-logo-box span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--mid);
  text-align: center;
  line-height: 1.3;
}

/* ── RESPONSIVE ── */
@media(max-width:767px) {
  #page-portfolio #section-engineering-value .proj-card-img {
    flex-direction: column;
  }
  #page-portfolio #section-engineering-value .pci-thumb {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 200px;
  }
  #page-portfolio #section-engineering-value .pci-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  #page-portfolio .filter-strip {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  #page-portfolio .filter-btn { flex-shrink: 0 }
}

/* ── PORTFOLIO CTA SECTION ── */
#page-portfolio .portfolio-cta {
  background: var(--ink);
}

#page-portfolio .portfolio-cta-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: white;
  font-weight: 700;
}

#page-portfolio .portfolio-cta-desc {
  color: rgba(255, 255, 255, .45);
  font-weight: 300;
}
