/* LASTVEL Collections page — cinematic wall choreography */

.collections-page {
  --lv-collections-void: #12100f;
  background: var(--lv-color-canvas-espresso);
  color: #fff;
}

.collections-page .site-header--scrolled .site-header__inner {
  background: rgba(28, 25, 23, 0.92);
}

.collections-page .nav-desktop a[aria-current="page"],
.collections-page .mobile-menu a[aria-current="page"],
.collections-page .site-footer a[aria-current="page"] {
  opacity: 1;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--lv-color-champagne, #d3b793);
}

/* ——— Intro ——— */
.collections-intro {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--lv-header-height-desktop, 6rem) + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: clamp(4.5rem, 8vw, 6.5rem);
  padding-inline: 16px;
  /* Soft wall overlap only under the clear text band — keep copy readable */
  margin-bottom: -48px;
}

@media (max-width: 767px) {
  .collections-intro {
    padding-top: calc(var(--lv-header-height-mobile, 4.5rem) + clamp(2.25rem, 8vw, 3.5rem));
    padding-bottom: clamp(3.25rem, 10vw, 4.5rem);
    margin-bottom: -32px;
  }
}

.collections-intro__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.collections-intro .eyebrow {
  color: var(--lv-color-champagne, #d3b793);
  margin-bottom: var(--lv-space-4);
}

.collections-intro h1 {
  margin: 0 0 var(--lv-space-10);
  color: #fff;
  font-weight: var(--lv-weight-light);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
}

.collections-intro .reveal-copy {
  margin: 0 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.6;
}

.collections-intro .reveal-eyebrow {
  opacity: 0;
  transition: opacity 400ms var(--lv-ease-editorial, cubic-bezier(0.625, 0.05, 0, 1));
}

.collections-intro .reveal-eyebrow.is-in {
  opacity: 1;
}

.collections-intro .reveal-copy {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(16px);
  transition:
    opacity 650ms var(--lv-ease-editorial, cubic-bezier(0.625, 0.05, 0, 1)),
    filter 650ms var(--lv-ease-editorial, cubic-bezier(0.625, 0.05, 0, 1)),
    transform 650ms var(--lv-ease-editorial, cubic-bezier(0.625, 0.05, 0, 1));
}

.collections-intro .reveal-copy.is-in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.collections-intro__word {
  display: inline-block;
  white-space: nowrap;
}

.collections-intro__char,
.collections-intro__word-anim {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(16px);
  transition:
    opacity 650ms var(--lv-ease-editorial, cubic-bezier(0.625, 0.05, 0, 1)),
    filter 650ms var(--lv-ease-editorial, cubic-bezier(0.625, 0.05, 0, 1)),
    transform 650ms var(--lv-ease-editorial, cubic-bezier(0.625, 0.05, 0, 1));
}

.collections-intro__char.is-in,
.collections-intro__word-anim.is-in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

html.reduce-motion .collections-intro .reveal-eyebrow,
html.reduce-motion .collections-intro .reveal-copy,
html.reduce-motion .collections-intro__char,
html.reduce-motion .collections-intro__word-anim {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
}

/* ——— Visual wall ——— */
.collections-wall {
  position: relative;
  z-index: 1;
  padding-inline: 16px;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: visible;
}

.collections-wall__gradient {
  position: absolute;
  inset-inline: 0;
  z-index: 3;
  pointer-events: none;
}

.collections-wall__gradient--top {
  top: 0;
  height: 266px;
  background: linear-gradient(
    to bottom,
    var(--lv-color-canvas-espresso) 0%,
    rgba(28, 25, 23, 0.88) 28%,
    rgba(28, 25, 23, 0) 100%
  );
}

.collections-wall__gradient--bottom {
  bottom: 0;
  height: 340px;
  /* Soft dissolve into warm near-black — last images remain partially readable */
  background: linear-gradient(
    to top,
    var(--lv-collections-void) 0%,
    rgba(18, 16, 15, 0.92) 18%,
    rgba(18, 16, 15, 0.55) 48%,
    rgba(18, 16, 15, 0) 100%
  );
}

@media (max-width: 767px) {
  .collections-wall__gradient--top {
    height: 180px;
  }

  .collections-wall__gradient--bottom {
    height: 240px;
  }
}

.collections-wall__grid {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: none;
  position: relative;
  z-index: 1;
  /* Keep final row clear of the densest fade */
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.collections-wall__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translate3d(0, 0, 0);
}

/* Even columns begin lower (0, 2, 4) */
.collections-wall__col--offset {
  padding-top: 72px;
}

@media (min-width: 768px) {
  .collections-wall__col--offset {
    padding-top: 96px;
  }
}

@media (min-width: 1200px) {
  .collections-wall__col--offset {
    padding-top: 160px;
  }
}

.collections-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 11px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1715;
  min-height: var(--lv-target-min);
  text-align: start;
  color: inherit;
}

.collections-tile:focus-visible {
  outline: none;
  box-shadow: var(--lv-focus-ring);
  z-index: 1;
}

.collections-tile__media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: inherit;
  aspect-ratio: var(--tile-aspect, 3 / 4);
}

.collections-tile--tall .collections-tile__media {
  --tile-aspect: 3 / 4.6;
}

.collections-tile--md .collections-tile__media {
  --tile-aspect: 3 / 4;
}

.collections-tile--short .collections-tile__media {
  --tile-aspect: 1 / 1.05;
}

.collections-tile--ratio-square.collections-tile--short .collections-tile__media,
.collections-tile--ratio-square.collections-tile--md .collections-tile__media {
  --tile-aspect: 1 / 1;
}

.collections-tile__media-shift {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  left: -12%;
  top: -12%;
  transform: translate3d(0, var(--media-drift-y, 0%), 0) scale(calc(1.06 * var(--media-hover-scale, 1)));
  transition: transform var(--lv-duration-fast, 300ms) var(--lv-ease-standard, ease);
}

.collections-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--tile-focal, 50% 45%);
  display: block;
}

.collections-tile__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.18);
  opacity: 0.55;
  transition: opacity var(--lv-duration-fast, 300ms) var(--lv-ease-standard, ease);
  pointer-events: none;
  z-index: 1;
}

.collections-tile__expand {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(28, 25, 23, 0.35);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--lv-duration-fast, 300ms) var(--lv-ease-standard, ease),
    transform var(--lv-duration-fast, 300ms) var(--lv-ease-standard, ease);
  pointer-events: none;
  z-index: 3;
}

.collections-tile__expand::before,
.collections-tile__expand::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.collections-tile__expand::before {
  width: 10px;
  height: 1px;
}

.collections-tile__expand::after {
  width: 1px;
  height: 10px;
}

/* Captions */
.collections-tile__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 2.75rem 0.75rem 0.75rem;
  text-align: start;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(18, 16, 15, 0.88) 0%,
    rgba(18, 16, 15, 0.5) 55%,
    rgba(18, 16, 15, 0) 100%
  );
  color: #f7f1e8;
}

.collections-tile__caption--center {
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem 0.75rem;
  background: linear-gradient(
    to top,
    rgba(18, 16, 15, 0.62) 0%,
    rgba(18, 16, 15, 0.32) 50%,
    rgba(18, 16, 15, 0.5) 100%
  );
}

.collections-tile__caption-eyebrow {
  display: block;
  font-family: var(--lv-font-ui);
  font-size: clamp(0.5625rem, 2.4vw, 0.6875rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.86;
  margin-bottom: 0.3rem;
}

.collections-tile__caption-title {
  display: block;
  font-family: var(--lv-font-editorial);
  font-weight: var(--lv-weight-light);
  font-size: clamp(0.875rem, 3.6vw, 1.35rem);
  line-height: 1.2;
  margin: 0 0 0.2rem;
}

.collections-tile__caption-supporting {
  display: block;
  font-family: var(--lv-font-ui);
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  line-height: 1.35;
  opacity: 0.82;
  margin: 0;
}

@media (max-width: 767px) {
  .collections-tile__caption {
    padding: 2rem 0.55rem 0.55rem;
  }

  .collections-tile__caption-supporting {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .collections-tile:hover,
  .collections-tile:focus-visible {
    --media-hover-scale: 1.02;
  }

  .collections-tile:hover .collections-tile__overlay,
  .collections-tile:focus-visible .collections-tile__overlay {
    opacity: 0.78;
  }

  .collections-tile:hover .collections-tile__expand,
  .collections-tile:focus-visible .collections-tile__expand {
    opacity: 1;
    transform: translateY(0);
  }
}

html.reduce-motion .collections-tile__media-shift {
  transform: scale(1.06) !important;
  transition: none !important;
  will-change: auto;
}

html.reduce-motion .collections-tile__overlay,
html.reduce-motion .collections-tile__expand {
  transition: none !important;
}

html.reduce-motion .collections-tile:hover,
html.reduce-motion .collections-tile:focus-visible {
  --media-hover-scale: 1;
}

html.reduce-motion .collections-wall__col {
  transform: none !important;
  will-change: auto;
}

/* ——— Footer stage ——— */
.collections-footer-stage {
  position: relative;
  background: var(--lv-collections-void);
  padding-top: clamp(160px, 28svh, 260px);
  overflow: hidden;
}

@media (max-width: 767px) {
  .collections-footer-stage {
    padding-top: 22svh;
  }
}

.collections-page .site-footer {
  color: rgba(255, 255, 255, 0.85);
  transform: translate3d(0, var(--footer-rise-y, 384px), 0);
}

.collections-page .site-footer.is-settled {
  transform: none;
}

.collections-page .site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.collections-page .site-footer__statement {
  opacity: var(--footer-statement-opacity, 0.18);
  transform: translate3d(0, var(--footer-statement-y, 60px), 0);
}

.collections-page .site-footer.is-settled .site-footer__statement {
  opacity: 1;
  transform: none;
}

.collections-page .site-footer__grid {
  opacity: var(--footer-grid-opacity, 0.35);
  transform: translate3d(0, var(--footer-grid-y, 40px), 0);
}

.collections-page .site-footer.is-settled .site-footer__grid {
  opacity: 1;
  transform: none;
}

html.reduce-motion .collections-page .site-footer,
html.reduce-motion .collections-page .site-footer__statement,
html.reduce-motion .collections-page .site-footer__grid {
  transform: none !important;
  opacity: 1 !important;
}

html.reduce-motion .collections-footer-stage {
  padding-top: clamp(4rem, 12vw, 6rem);
}

/* Lightbox */
.collections-lightbox .lightbox__panel {
  transition: opacity var(--lv-duration-fast, 300ms) var(--lv-ease-standard, ease),
    transform var(--lv-duration-fast, 300ms) var(--lv-ease-standard, ease);
}

html.reduce-motion .collections-lightbox .lightbox__panel {
  transition: none !important;
}

.collections-lightbox:not(.is-open) {
  display: none;
}

body.is-collections-lightbox-open {
  overflow: hidden;
}
