/* ============================================================
   After Hours — Violet's vault. The locked loot board:
   scattered, taped, blurred. One piece left out in the open.
   ============================================================ */

.vault-hero {
  position: relative;
  z-index: 1;
  padding: 10.5rem var(--gutter) 2.5rem;
  max-width: 90rem;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.vault-hero-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.vault-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  filter: blur(4px) saturate(1.1);
}

.vault-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 5, 18, 0.8) 0%,
      rgba(10, 5, 18, 0.4) 30%,
      rgba(10, 5, 18, 0.7) 70%,
      rgba(10, 5, 18, 1) 100%),
    radial-gradient(circle at 60% 40%, rgba(157, 92, 255, 0.25), transparent 75%);
}

.vault-hero .display {
  font-size: var(--text-hero);
  color: var(--chrome);
  text-transform: uppercase;
}

.vault-hero .lede { margin-top: 1.5rem; }

/* filter row */
.vault-filters {
  margin-top: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  border-bottom: 1px solid rgba(157, 92, 255, 0.2);
  padding-bottom: 1.5rem;
}

.vault-filter {
  padding: 0.5rem 1.3rem;
  border-radius: 3px;
  border: 1px solid rgba(157, 92, 255, 0.3);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: all var(--dur-mid) var(--ease-snap);
}

.vault-filter:hover {
  color: var(--uv);
  border-color: var(--violet);
  transform: translateY(-2px);
}

.vault-filter.is-active {
  background: linear-gradient(135deg, var(--violet), var(--magenta) 130%);
  color: var(--void);
  border-color: transparent;
}

/* evidence-board grid */
.vault-grid {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  overflow-x: clip; /* absorbs the rotation overhang */
  columns: 3;
  column-gap: clamp(0.9rem, 2vw, 1.4rem);
  padding-bottom: 1rem;
}

.vault-item {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: clamp(0.9rem, 2vw, 1.4rem);
  transition: transform var(--dur-mid) var(--ease-snap);
}

.vault-item:nth-child(3n+1) { transform: rotate(-1deg); }
.vault-item:nth-child(3n+2) { transform: rotate(0.8deg); }
.vault-item:nth-child(3n+3) { transform: rotate(-0.5deg); }

.vault-item:hover { transform: rotate(0deg) translateY(-4px); }

.vault-item .ph { width: 100%; }

.vault-item[data-ratio="tall"] .ph { aspect-ratio: 3 / 4.6; }
.vault-item[data-ratio="portrait"] .ph { aspect-ratio: 3 / 4; }
.vault-item[data-ratio="square"] .ph { aspect-ratio: 1; }
.vault-item[data-ratio="wide"] .ph { aspect-ratio: 4 / 3; }

.vault-item:hover .ph-veil {
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  background: rgba(10, 5, 18, 0.07);
}

.vault-item:hover .ph-lock {
  transform: translate(-50%, -50%) scale(1.14) rotate(-6deg);
  box-shadow: 0 0 40px rgba(157, 92, 255, 0.55);
}

.vault-meta {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.8rem;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.vault-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--chrome);
  text-shadow: 0 2px 14px rgba(10, 5, 18, 0.95);
}

.vault-kind {
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chrome);
  background: rgba(10, 5, 18, 0.65);
  border: 1px solid rgba(157, 92, 255, 0.4);
  padding: 0.32rem 0.7rem;
  border-radius: 3px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.vault-kind.free {
  background: var(--acid);
  color: var(--void);
  border-color: transparent;
}

/* the one left out in the open */
.vault-item.is-free .ph-veil,
.vault-item.is-free .ph-lock { display: none; }

.vault-item.is-free .ph {
  box-shadow: 0 0 0 1px rgba(125, 249, 228, 0.6), 0 30px 70px -30px rgba(125, 249, 228, 0.35);
}

/* mid-gallery dare band — full-bleed breakout, clipped by .vault-section */
.vault-section { overflow-x: clip; }

.vault-band {
  margin: var(--space-section) calc(var(--gutter) * -1) 0;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  text-align: center;
  background: linear-gradient(110deg, rgba(29, 16, 51, 0.9), rgba(19, 10, 34, 0.95));
  border-top: 1px solid rgba(157, 92, 255, 0.35);
  border-bottom: 1px solid rgba(157, 92, 255, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}

.vault-band .neon { font-size: clamp(1.5rem, 4vw, 2.4rem); }

.vault-band .display {
  font-size: var(--text-h2);
  color: var(--chrome);
  max-width: 42rem;
  text-transform: uppercase;
}

@media (max-width: 1000px) { .vault-grid { columns: 2; } }
@media (max-width: 620px) { .vault-grid { columns: 1; } }

/* ============================================================
   FIXED MIDDLE BACKGROUND
   ============================================================ */

.vault-fixed-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.vault-fixed-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.15;
  filter: saturate(0.6) blur(1px);
}

.vault-fixed-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(157, 92, 255, 0.10), rgba(10, 5, 18, 0.56) 90%);
}
