/* ══════════════════════════════════════════════════════
   ARCHIVE PAGE — archive.css
   Extends style.css + sky.css for the sunset-sky variant.
   All section containers transparent — canvas sky shows through.
══════════════════════════════════════════════════════ */

/* ── 1. Nuclear transparent reset (archive-specific containers) ── */
.archive-page,
.archive-header,
.archive-header-inner,
.archive-filters-wrap,
.archive-main,
.archive-empty {
  background:      transparent !important;
  backdrop-filter: none        !important;
  -webkit-backdrop-filter: none !important;
  border:          none        !important;
  box-shadow:      none        !important;
}

/* ── 2. Page layout ── */
.archive-page {
  display: block;
  position: relative;
}

/* ── 3. Archive Header — matches homepage About section style ── */
.archive-header {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height, 72px) + 80px) var(--gutter, 48px) 80px;
}

.archive-header-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Eyebrow: em dash prefix, small wide-tracked all-caps sans-serif ── */
.archive-eyebrow {
  display: block;                        /* block so text-align:center works cleanly */
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12px;                       /* small, as spec'd */
  font-weight: 600;                      /* medium-bold */
  letter-spacing: 0.22em;               /* very wide tracking */
  text-transform: uppercase;            /* all caps */
  color: #D946A8 !important;            /* vivid magenta/hot pink */
  margin-bottom: 10px;                  /* ~8px gap below eyebrow */
  text-align: center;
  padding-left: 0;                      /* em dash replaces the ::before line */
}

/* No ::before line — em dash in text serves as the prefix accent */
.archive-eyebrow::before { display: none; }

/* ── Title: heavy editorial serif, large, near-black, centered ── */
.archive-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(56px, 7.5vw, 92px); /* 72–96px desktop fluid */
  font-weight: 800;                     /* heavy/black weight */
  color: #0D0D2B !important;            /* very dark navy near-black */
  line-height: 1.05;                    /* tight editorial */
  letter-spacing: -0.02em;             /* slightly tight */
  margin: 0 0 20px;
  text-align: center;
}

/* Italic period — stays magenta */
.archive-title-em {
  font-style: italic;
  font-weight: 800;
  color: #D946A8 !important;            /* matching eyebrow magenta */
}

/* Sub: dark grey */
.archive-sub {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 400;
  color: #555555 !important;            /* dark grey */
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}


/* ── 4. Filter bar ── */
.archive-filters-wrap {
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter, 48px) 56px;
}

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  background: rgba(255, 248, 235, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(180, 120, 60, 0.18);
  border-radius: 100px;
  padding: 10px 16px;
}

.filter-pill {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(80, 45, 15, 0.75);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 100px;
  padding: 7px 18px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  background: rgba(200, 100, 32, 0.10);
  color: #8B3020;
}

.filter-pill.is-active {
  background: #1a1008;
  color: #fff;
  border-color: #1a1008;
}


/* ── 5. Archive grid ── */
.archive-main {
  padding: 0 var(--gutter, 48px) 0;
  max-width: 1300px;
  margin: 0 auto;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

@media (max-width: 1024px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .archive-grid { grid-template-columns: 1fr; }
  .archive-filters { border-radius: 20px; padding: 12px; }
}


/* ── 6. Archive cards — match homepage project-card style ── */
.archive-card {
  background: #111 !important;          /* dark base — image fills it */
  border-radius: 16px;
  overflow: hidden;
  border: none !important;
  box-shadow: 0 4px 24px rgba(100, 50, 10, 0.08) !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
  position: relative;                   /* overlay anchor */
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22) !important;
}

.archive-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(200,160,100,0.18) 0%, rgba(220,180,130,0.28) 100%);
  display: block;
  transition: transform 0.42s ease;     /* gentle zoom on hover */
}

.archive-card:hover .archive-card-img {
  transform: scale(1.05);
}

/* ── Card overlay: hidden until hover ── */
.archive-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 22px 24px;
  /* dark gradient rises from the bottom of the image */
  background: linear-gradient(
    to top,
    rgba(5, 2, 0, 0.82) 0%,
    rgba(10, 5, 2, 0.55) 55%,
    transparent 100%
  );
  /* hidden by default */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.30s ease, transform 0.30s ease;
}

.archive-card:hover .archive-card-body {
  opacity: 1;
  transform: translateY(0);
}

.archive-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.archive-tag {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 215, 160, 0.95);     /* warm white on dark */
  background: rgba(255, 180, 80, 0.18);
  border-radius: 4px;
  padding: 3px 8px;
}

.archive-year {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin-left: auto;
  letter-spacing: 0.04em;
}

.archive-card-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  color: #ffffff;                       /* white on dark overlay */
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.archive-card-desc {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 13px;
  line-height: 1.60;
  color: rgba(255, 255, 255, 0.72);     /* soft white */
  margin: 0;
}


/* ── 7. Empty state ── */
.archive-empty {
  display: none;
  text-align: center;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 16px;
  color: rgba(80, 50, 20, 0.55);
  padding: 80px 0;
}


/* ── 8. Reveal animations (reuse homepage pattern) ── */
.reveal-item,
.reveal-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-item.is-visible,
.reveal-card.is-visible {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }


/* ── 9. Nav — active state for archive link ── */
.nav-link--active {
  font-weight: 700 !important;
  opacity: 1 !important;
}


/* ── 10. Footer ── */
/* Inherits .footer from style.css + .footer overrides from sky.css */


/* ════════════════════════════════════════
   11. THUY KIEU — EXPLODE EFFECT
════════════════════════════════════════ */

/* Video cover inside card */
.archive-card-video-wrap {
  overflow: hidden;
}

/* Inner wrapper: clips video + overlay to rounded rect */
.explode-inner {
  display: block;
  width: 100%;
  position: relative;   /* anchor for .archive-card-body overlay */
  overflow: hidden;
  border-radius: 16px;
}
.archive-card-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.42s ease;
}
.archive-card--explode:hover .archive-card-video-wrap video {
  transform: scale(1.05);
}

/* Explode card: overflow must be visible so nothing clips cluster */
.archive-card--explode {
  overflow: visible !important;
  z-index: 1;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.archive-card--explode:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.30) !important;
  z-index: 300;
}

/* Full-page backdrop tint — toggled by JS (no blur: too expensive with many cards) */
.explode-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(250, 246, 240, 0.72);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  /* transition only used for show; hide is instant via JS */
  transition: opacity 0.20s ease;
}
.explode-backdrop.is-active {
  opacity: 1;
}

/* Explosion images — appended to <body> by JS, position:fixed */
.explode-img {
  position: absolute;
  width: auto;
  height: 260px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  object-fit: cover;
  pointer-events: none;
  z-index: 310;
  opacity: 0;
  /* Start collapsed at card centre, JS sets left/top */
  transform: translate(-50%, -50%) scale(0.4);
  transition:
    transform 0.48s cubic-bezier(0.34, 1.52, 0.64, 1),
    opacity   0.32s ease;
}
.explode-img.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);  /* rotation set inline by JS */
}

