/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */

.nav-active {
  color: var(--gold) !important;
}

.portfolio-hero {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(237, 233, 224, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 233, 224, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.portfolio-hero .hero-tagline {
  color: var(--gold);
  animation: none;
}

.portfolio-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}

.portfolio-hero-title em {
  font-style: normal;
  color: var(--gold);
}

.portfolio-hero-sub {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 420px;
  line-height: 1.7;
}

.portfolio-section {
  padding: 80px 5%;
  background: var(--bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: var(--border);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,13,11,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-caption {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }

  .portfolio-hero {
    padding: 100px 6% 50px;
  }
}