/* ── PORTFOLIO ──────────────────────────────────── */
.folio-sec {
  padding: var(--space-2xl) var(--space-lg);
  max-width: 1260px;
  margin: 0 auto;
}

.folio-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 20px;
}

.folio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.folio-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  cursor: none;
  transition: all .5s var(--ease-out);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.fc1 { grid-column: span 8; min-height: 320px; }
.fc2 { grid-column: span 4; }
.fc3 { grid-column: span 4; }
.fc4 { grid-column: span 8; min-height: 300px; }

/* Backgrounds */
.folio-card-bg {
  position: absolute;
  inset: 0;
  transition: transform .6s var(--ease-out);
}
.folio-card:hover .folio-card-bg { transform: scale(1.06); }

.fc1 .folio-card-bg { background: linear-gradient(135deg, #0f0520 0%, #1a0540 40%, #0a1030 100%); }
.fc2 .folio-card-bg { background: linear-gradient(135deg, #050f1a 0%, #0a2035 100%); }
.fc3 .folio-card-bg { background: linear-gradient(135deg, #0f100a 0%, #1a1f05 100%); }
.fc4 .folio-card-bg { background: linear-gradient(135deg, #0a050f 0%, #150a25 60%, #0a1020 100%); }

/* Glow per card */
.folio-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  transition: all .5s;
}
.fc1 .folio-glow { background: rgba(124, 92, 252, .25); top: -40px; right: -40px; }
.fc2 .folio-glow { background: rgba(79, 158, 255, .2);  bottom: -20px; left: -20px; }
.fc3 .folio-glow { background: rgba(74, 222, 128, .15); top: -20px; right: -20px; }
.fc4 .folio-glow { background: rgba(244, 114, 182, .2); top: -40px; left: 30%; }

/* Info overlay */
.folio-info {
  position: relative;
  z-index: 2;
  padding: 24px;
  background: linear-gradient(to top, rgba(8,8,14,.95) 0%, rgba(8,8,14,.4) 60%, transparent 100%);
  padding-top: 60px;
}

.folio-cat {
  font-family: 'Geist Mono', monospace;
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--violet2);
  margin-bottom: 6px;
}

.folio-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.folio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.folio-result {
  font-size: .75rem;
  color: var(--green);
  font-family: 'Geist Mono', monospace;
}

.folio-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Arrow link */
.folio-link {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--text);
  opacity: 0;
  transform: scale(.8);
  transition: all var(--t-med);
}
.folio-card:hover .folio-link { opacity: 1; transform: scale(1); }
.folio-card:hover {
  border-color: rgba(124, 92, 252, .35);
  box-shadow:
    0 0 0 1px rgba(124, 92, 252, .1),
    0 30px 80px rgba(0, 0, 0, .5);
}
