/**
 * team.css — Suba-Arch Team Section
 * Kompatibel dengan shortcode HTML:
 * .suba-team > .suba-team-card > img + .overlay + .content(.name .role .desc)
 */

:root {
  --gold: #f9d308;
  --bg:   #000;
  --fg:   #f5f5f7;
  --dim:  #86868b;
  --bdr:  rgba(255,255,255,0.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
  --ease: cubic-bezier(0.4,0,0.2,1);
}

/* ── GRID ── */
.suba-team {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), 1fr);
  gap: 14px;
  margin: 0 auto;
  max-width: 640px;          /* kompak — 2 card sedang */
}

/* ── CARD ── */
.suba-team-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  cursor: pointer;
  aspect-ratio: 2/3;         /* ukuran card dikontrol di sini */
}
.suba-team-card::before,
.suba-team-card::after { display: none !important; }

/* ── IMAGE — fill full card ── */
.suba-team-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) brightness(0.75);
  transition: filter 0.7s var(--ease), transform 0.7s var(--ease);
  display: block;
}
.suba-team-card:hover img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.04);
}

/* ── OVERLAY — gradient gelap, selalu ada ── */
.overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.25) 55%,
    transparent      100%
  );
  z-index: 1;
}

/* ── CONTENT — di atas overlay, default tersembunyi ── */
.content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Awalnya turun dan invisible */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.suba-team-card:hover .content {
  opacity: 1;
  transform: none;
}

/* ── NAME ── */
.name {
  font-family: var(--font);
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.2;
  color: var(--fg);
  text-transform: none;
}

/* ── ROLE ── */
.role {
  font-family: var(--font);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}

/* ── DESC ── */
.desc {
  font-family: var(--font);
  font-size: 11px; color: var(--dim);
  line-height: 1.55;
  /* Sembunyikan kalau kosong */
}
.desc:empty { display: none; }

/* ── REVEAL ANIMATION ── */
@keyframes saFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.suba-team-card { animation: saFadeUp 0.65s var(--ease) both; }
.suba-team-card:nth-child(1) { animation-delay: 0s;    }
.suba-team-card:nth-child(2) { animation-delay: 0.08s; }
.suba-team-card:nth-child(3) { animation-delay: 0.16s; }
.suba-team-card:nth-child(4) { animation-delay: 0.24s; }

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .suba-team {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 100%;
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .suba-team          { grid-template-columns: 1fr !important; max-width: 320px; }
  .content            { padding: 20px 16px; }
  .name               { font-size: 14px; }
}