/* ============================================================
   The Vault — locked gallery. Blurred desire, one free taste.
   ============================================================ */

/* ---------- fixed blurred background ---------- */

.atmosphere {
  background: none;
}

.atmosphere::after { display: none; }

.atmosphere::before {
  content: "";
  position: fixed;
  inset: -24px;
  z-index: -2;
  background: url("../assets/vault-bg2.jpg") center / cover no-repeat;
  filter: blur(10px);
}

.vault-tint {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 50% at 80% 12%, rgba(221, 139, 168, 0.10), transparent 70%),
    radial-gradient(60% 50% at 10% 88%, rgba(185, 92, 127, 0.09), transparent 70%),
    rgba(21, 6, 16, 0.46);
  pointer-events: none;
}

.vault-hero {
  position: relative;
  padding: 10rem var(--gutter) clamp(3rem, 8vh, 6rem);
  max-width: 90rem;
  margin: 0 auto;
  min-height: 100vh;          /* full-screen opener before the grid */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ---------- vault backdrop ----------
   Same treatment as the home hero: full-bleed, lightly
   defocused, with a wine scrim weighted to the copy side. */

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

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg,
      rgba(21, 6, 16, 0.93) 0%,
      rgba(21, 6, 16, 0.84) 20%,
      rgba(21, 6, 16, 0.5) 38%,
      rgba(21, 6, 16, 0.16) 62%,
      rgba(21, 6, 16, 0.1) 100%),
    radial-gradient(60% 55% at 68% 30%, rgba(221, 139, 168, 0.14), transparent 72%),
    linear-gradient(180deg, transparent 68%, rgba(21, 6, 16, 0.96) 100%);
}

@media (max-width: 900px) {
  .vault-hero { min-height: 92vh; }
  .hero-bg img { object-position: center; filter: blur(5px) saturate(1.1); }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(21,6,16,.6) 0%, rgba(21,6,16,.45) 40%, rgba(21,6,16,.96) 100%);
  }
}

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

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

/* filter row */
.vault-filters {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(221, 139, 168, 0.15);
  padding-bottom: 1.6rem;
}

.vault-filter {
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(221, 139, 168, 0.25);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: all var(--dur-mid) var(--ease-velvet);
}

.vault-filter:hover { color: var(--rose-glow); border-color: var(--rose); }

.vault-filter.is-active {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: var(--wine);
  border-color: transparent;
}

/* masonry-ish vault grid */
.vault-grid {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  columns: 3;
  column-gap: clamp(0.9rem, 2vw, 1.5rem);
  padding-bottom: 1rem;
}

.vault-item {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: clamp(0.9rem, 2vw, 1.5rem);
}

.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(21, 6, 16, 0.07);
}

.vault-item:hover .ph-lock {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 40px rgba(240, 168, 192, 0.35);
}

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

.vault-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream);
  text-shadow: 0 2px 14px rgba(21, 6, 16, 0.9);
}

.vault-kind {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(21, 6, 16, 0.55);
  border: 1px solid rgba(221, 139, 168, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.vault-kind.free {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: var(--wine);
  border-color: transparent;
}

/* the one unlocked taste */
.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(240, 168, 192, 0.5), 0 30px 70px -30px rgba(221, 139, 168, 0.4);
}

/* unlock band mid-gallery */
.vault-band {
  margin: var(--space-section) calc(var(--gutter) * -1) 0;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  text-align: center;
  background: linear-gradient(120deg, rgba(64, 20, 46, 0.7), rgba(35, 9, 26, 0.9));
  border-top: 1px solid rgba(221, 139, 168, 0.2);
  border-bottom: 1px solid rgba(221, 139, 168, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.vault-band .script { font-size: clamp(2rem, 5vw, 3.2rem); }

.vault-band .display {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  color: var(--cream);
  max-width: 42rem;
}

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

/* Touch devices: ensure teaser previews are enticing and visible without requiring mouse hover */
@media (hover: none) {
  .vault-item .ph-veil {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(21, 6, 16, 0.12);
  }
  .vault-item:active .ph-veil {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(21, 6, 16, 0.05);
  }
}
