/* ==========================================================================
   Works Archive — works.html
   Gaya khusus halaman archive: hero, baris meta, dan grid project.
   Dipakai bersama site.css (reset, tema, nav, footer, reveal).
   ========================================================================== */

/* ----------------------------- Hero archive ----------------------------- */

.wa-hero {
  padding-top: clamp(140px, 18vw, 260px);
  padding-bottom: clamp(60px, 8vw, 120px);
}

.wa-hero__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--wa-muted);
  margin-bottom: clamp(20px, 3vw, 40px);
}

.wa-hero__title {
  font-size: clamp(64px, 13vw, 190px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.wa-hero__sub {
  margin-top: clamp(28px, 4vw, 56px);
  max-width: 560px;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--wa-muted);
}

/* ------------------------------- Meta row ------------------------------- */

.wa-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: clamp(24px, 3vw, 48px);
  border-bottom: 1px solid var(--wa-line);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wa-muted);
}

.wa-meta__count {
  color: var(--wa-fg);
}

/* ----------------------------- Grid project ----------------------------- */

.wa-works {
  padding-bottom: clamp(80px, 10vw, 150px);
}

.wa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
}

/* Card: bahasa desain sama dengan marquee home (radius, shadow, hover) */
.wa-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--wa-radius);
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  transition: transform .45s var(--wa-ease), box-shadow .45s var(--wa-ease);
}

.wa-card:hover,
.wa-card:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

.wa-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--wa-ease);
}

.wa-card:hover img {
  transform: scale(1.06);
}

.wa-card__num,
.wa-card__year {
  position: absolute;
  top: 16px;
  z-index: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.wa-card__num {
  left: 18px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 14px;
}

.wa-card__year {
  right: 18px;
  letter-spacing: .1em;
}

.wa-card__caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 40px 20px 16px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
}

.wa-card__title {
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.15;
}

.wa-card__tag {
  flex: none;
  font-size: clamp(10px, .8vw, 12px);
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .75;
  white-space: nowrap;
}

/* ------------------------------ Responsif ------------------------------- */

@media screen and (max-width: 991px) {
  .wa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .wa-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-card,
  .wa-card img {
    transition: none;
  }
}
