/* Portafolio — builds on styles.css */

.nav-links a[aria-current="page"] {
  color: #000;
}

.pf-hero {
  padding-bottom: 96px;
}

.pf-stats {
  margin-top: 40px;
  padding: 22px 0;
}

.pf-stats div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pf-stats strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pf-stats span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.46);
}

/* ---------- Featured ---------- */

.pf-featured-section {
  padding: 96px 80px;
  box-shadow: inset 0 1px 0 var(--line);
}

.pf-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  padding: 44px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.03);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.pf-eyebrow,
.pf-people-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.46);
}

.pf-featured h2 {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.pf-lead {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.68);
}

.pf-featured .pf-tags {
  margin-top: 26px;
}

.pf-people {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pf-person {
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.pf-person h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
}

.pf-person p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
}

/* ---------- Work ---------- */

.pf-work {
  padding: 96px 80px;
  box-shadow: inset 0 1px 0 var(--line);
}

.pf-work .services-head {
  margin-top: 0;
}

.pf-filters {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-filter {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.72);
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pf-filter span {
  margin-left: 4px;
  color: rgba(0, 0, 0, 0.4);
  font-variant-numeric: tabular-nums;
}

.pf-filter:hover {
  opacity: 0.82;
}

.pf-filter.is-active {
  background: #000;
  box-shadow: none;
  color: #fff;
}

.pf-filter.is-active span {
  color: rgba(255, 255, 255, 0.6);
}

.pf-filter:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.pf-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
}

.pf-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.03);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.pf-card:hover {
  transform: translateY(-4px);
  background: rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 18px 48px rgba(0, 0, 0, 0.08);
}

.pf-card-wide {
  grid-column: span 2;
}

.pf-card.is-hidden {
  display: none;
}

.pf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pf-num {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.38);
}

.pf-status {
  padding: 5px 10px;
  border-radius: 100px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.62);
  white-space: nowrap;
}

.pf-status.is-wip {
  background: #000;
  box-shadow: none;
  color: #fff;
}

.pf-card h3 {
  margin-top: 34px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.pf-sector {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.46);
}

.pf-desc {
  flex: 1;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
}

.pf-tags {
  margin-top: 20px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-tags li {
  padding: 5px 10px;
  border-radius: 100px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.7);
}

.pf-empty {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
}

/* ---------- CTA ---------- */

.pf-cta {
  padding: 64px 36px;
  text-align: center;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.03);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.pf-cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.pf-cta p {
  max-width: 520px;
  margin: 18px auto 28px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.6);
}

/* ---------- Phone ---------- */

@media (max-width: 1199px) {
  .pf-hero {
    padding-bottom: 64px;
  }

  .pf-stats {
    margin-top: 32px;
    gap: 18px;
  }

  .pf-stats strong {
    font-size: 38px;
  }

  .pf-featured-section {
    padding: 56px 20px;
  }

  .pf-featured {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 26px;
  }

  .pf-featured h2 {
    font-size: 52px;
  }

  .pf-lead {
    font-size: 16px;
  }

  .pf-work {
    padding: 56px 20px 68px;
  }

  .pf-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pf-card {
    min-height: 0;
    padding: 22px;
  }

  .pf-card-wide {
    grid-column: auto;
  }

  .pf-card h3 {
    font-size: 28px;
  }

  .pf-cta {
    padding: 40px 24px;
  }

  .pf-cta h2 {
    font-size: 38px;
    line-height: 1.04;
  }
}
