/* Pellegrinello · portfolio page (draft v4). Uses the tokens of styles.css. */

.pf-hero, .pf-work {
  background: linear-gradient(90deg, rgba(243,239,230,.58) 0%, rgba(243,239,230,.45) 50%, rgba(243,239,230,0) 78%);
}
@media (max-width: 900px) { .pf-hero, .pf-work { background: rgba(243,239,230,.45); } }

.pf-hero { padding: 72px 0 24px; }
.pf-title { font-size: clamp(30px, 4.4vw, 52px); margin-top: 16px; }
.pf-about { display: flex; gap: 24px; align-items: center; margin-top: 28px; max-width: 860px; }
.pf-photo {
  flex: 0 0 140px; width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--gold);
}
.pf-role {
  display: inline-block; margin-bottom: 10px; padding: 5px 14px;
  border: 1px solid var(--gold); border-radius: 999px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ouro-tinta, var(--gold-text));
}
.pf-intro { font-size: 18px; color: var(--muted); line-height: 1.6; }

.pf-work { padding: 24px 0 80px; }
.pf-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.pf-filter {
  background: transparent; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; font-size: 14px; color: var(--taupe); transition: all .2s ease;
}
.pf-filter:hover { border-color: var(--gold); color: var(--ink); }
.pf-filter.active { background: var(--ink); border-color: var(--ink); color: var(--creme-claro, #F3EFE6); }

.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pf-grid { grid-template-columns: 1fr; } .pf-about { flex-direction: column; align-items: flex-start; } }

.pf-card {
  text-align: left; padding: 0; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--gold); }
.pf-cover { aspect-ratio: 4 / 3; overflow: hidden; background: var(--creme, #E5DFD1); }
.pf-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pf-card:hover .pf-cover img { transform: scale(1.04); }
.pf-meta { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.pf-meta h3 { font-size: 19px; }
.pf-type { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.pf-client { font-size: 14px; color: var(--taupe); }

/* placeholder cover while there is no image */
.pf-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.pf-ph svg { width: 44px; height: 50px; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.pf-ph-brand { background: linear-gradient(135deg, #E5DFD1, #F3EFE6); }
.pf-ph-illustration { background: linear-gradient(135deg, #DCE3DA, #F3EFE6); }

.pf-cta { margin-top: 44px; }

/* project detail */
.pf-modal {
  width: min(960px, 92vw); max-height: 88vh; overflow: auto; margin: auto;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 36px 30px;
  background: var(--creme-claro, #F3EFE6); color: var(--ink);
}
.pf-modal::backdrop { background: rgba(40,36,32,.55); }
.pf-close {
  position: sticky; top: 0; float: right; background: transparent; border: none;
  font-size: 30px; line-height: 1; color: var(--taupe);
}
.pf-modal h2 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0 8px; }
.pf-desc { margin: 16px 0 22px; font-size: 17px; color: var(--muted); line-height: 1.6; max-width: 62ch; }
.pf-gallery { display: grid; gap: 14px; }
.pf-gallery img { width: 100%; border-radius: var(--radius-sm); display: block; }
.pf-gallery .pf-ph { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); }
