/* ===== Página de portfólio ===== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav__current { color: var(--text); }

.page-hero { padding-top: 48px; padding-bottom: 40px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; margin-bottom: 16px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 640px; }

/* ----- Filtros ----- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.chip { font: inherit; font-weight: 600; font-size: 15px; color: var(--muted); background: transparent; border: 1px solid #3A4352; border-radius: 999px; padding: 12px 20px; min-height: 44px; cursor: pointer; transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease; }
.chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }
.chip:active { transform: scale(.96); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ----- Catálogo ----- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.project { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, opacity .3s ease; }
.project:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 16px 32px rgba(0, 0, 0, .35); }
.project[hidden] { display: none; }
.project__thumb { position: relative; aspect-ratio: 4 / 3; background: #1E2530; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.project__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project:hover .project__thumb img { transform: scale(1.06); }
.placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 14px; background: repeating-linear-gradient(135deg, #1E2530 0 14px, #1A202A 14px 28px); }
.placeholder svg { width: 40px; height: 40px; }
.project__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project__body h3 { font-size: 22px; }
.project__body p { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 10px; }
.project__cta { margin-top: auto; align-self: flex-start; }
.empty { color: var(--muted); padding: 48px 0; text-align: center; }

/* ----- Mídias ----- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 40px; }
.media { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #1E2530; display: block; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.media:hover { transform: translateY(-6px) scale(1.02); border-color: var(--accent); box-shadow: 0 14px 28px rgba(0, 0, 0, .35); }
.media:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.media:hover img { transform: scale(1.08); }
.media__badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(14, 17, 22, .85); color: var(--text); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.media__badge svg { width: 12px; height: 12px; fill: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 16px; }

.cta { padding-top: 96px; }

@media (prefers-reduced-motion: reduce) {
  .project:hover, .media:hover, .chip:hover { transform: none; }
  .project:hover .project__thumb img, .media:hover img { transform: none; }
}
.media .project__thumb { position: absolute; inset: 0; aspect-ratio: auto; }
