/* =========================================================
   Archive — list / index of works
   ========================================================= */

.archive-hero {
  padding: 200px 48px 80px;
  position: relative;
  background: var(--bg-0);
  overflow: hidden;
}

.archive-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse at center, var(--mist-pink-glow), transparent 60%);
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
}

.archive-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.archive-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-0);
  margin: 20px 0 32px;
}

.archive-title em {
  font-style: italic;
  color: var(--mist-pink);
  font-weight: 300;
}

.archive-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.7;
}

/* Filter bar */
.archive-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  flex-wrap: wrap;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(9,9,15,0.85);
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: transparent;
  transition: all 0.3s var(--ease-out);
  font-weight: 500;
}

.filter-chip:hover {
  color: var(--text-0);
  border-color: var(--border-strong);
}

.filter-chip.active {
  background: var(--text-0);
  color: var(--bg-0);
  border-color: var(--text-0);
}

.archive-count {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.archive-count em {
  color: var(--mist-pink);
  font-style: normal;
}

/* List view */
.archive-list {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 48px 140px;
}

.archive-row {
  display: grid;
  grid-template-columns: 80px 1fr 220px 140px 80px 40px;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: all 0.4s var(--ease-out);
}

.archive-row::before {
  content: '';
  position: absolute;
  left: -16px;
  right: -16px;
  top: 0; bottom: 0;
  background: var(--surface);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}

.archive-row:hover::before {
  opacity: 1;
}

.archive-row:hover .row-title {
  color: var(--mist-pink);
}

.row-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
}

.row-title-group {
  min-width: 0;
}

.row-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.15;
  color: var(--text-0);
  font-weight: 400;
  font-style: italic;
  transition: color 0.4s var(--ease-out);
  margin-bottom: 4px;
}

.row-subtitle {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}

.row-category {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
}

.row-client {
  font-size: 12px;
  color: var(--text-3);
}

.row-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.06em;
}

.row-arrow {
  color: var(--text-3);
  transition: all 0.4s var(--ease-out);
  text-align: right;
}

.archive-row:hover .row-arrow {
  color: var(--mist-pink);
  transform: translateX(4px);
}

/* Preview image on hover (desktop only) */
.row-preview {
  position: fixed;
  width: 360px;
  height: 220px;
  pointer-events: none;
  z-index: 200;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
}

.row-preview.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.row-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Empty state */
.archive-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-3);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
}

/* Responsive */
@media (max-width: 1024px) {
  .archive-hero { padding: 160px 24px 60px; }
  .archive-filters { padding: 18px 24px; }
  .archive-list { padding: 40px 24px 100px; }
  .archive-row {
    grid-template-columns: 50px 1fr 100px 40px;
    gap: 18px;
  }
  .row-category, .row-client { display: none; }
  .row-preview { display: none; }
}

@media (max-width: 600px) {
  .archive-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 22px 0;
  }
  .row-num { display: none; }
  .row-year { display: none; }
  .row-arrow { font-size: 18px; }
}
