/* =========================================================
   AIVELLE COLLECTIONS
========================================================= */

.collections-intro {
  padding: clamp(150px, 17vw, 250px) 0 clamp(80px, 9vw, 130px);
  background:
    radial-gradient(circle at 78% 30%, rgba(255,255,255,.035), transparent 34%),
    var(--black);
}

.collections-title {
  margin: 0;
  color: white;
  font-size: clamp(64px, 9.5vw, 152px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.065em;
}

.collections-deck {
  max-width: 650px;
  margin: clamp(42px, 5vw, 72px) 0 0 auto;
  color: var(--mist);
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.25;
  letter-spacing: -.02em;
}

.collections-stage {
  position: relative;
  padding: 0 0 clamp(50px, 6vw, 90px);
  overflow: hidden;
  background: var(--white);
}

.collections-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(18px, 2.4vw, 42px);
  width: max-content;
  min-height: clamp(590px, 70vw, 840px);
  padding: 30px 0;
  outline: none;
  perspective: 1700px;
  will-change: transform;
  transition: transform .85s var(--ease);
}

.collection-card {
  position: relative;
  flex: 0 0 clamp(300px, 31vw, 500px);
  height: clamp(520px, 61vw, 760px);
  opacity: .48;
  transform: scale(.84) translateZ(-120px);
  transition:
    transform .8s var(--ease),
    opacity .65s ease,
    filter .65s ease;
}

.collection-card.is-active {
  z-index: 4;
  opacity: 1;
  transform: scale(1) translateZ(0);
}

.collection-card:not(.is-active):hover {
  opacity: .78;
  transform: scale(.89) translateX(10px) translateZ(-70px);
}

.collection-card-link,
.collection-card-media {
  display: block;
  width: 100%;
  height: 100%;
}

.collection-card-media {
  position: relative;
  overflow: hidden;
  background: #111;
}

.collection-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*filter: grayscale(100%);*/
  transform: scale(1.01);
  transition:
    transform 1.2s var(--ease),
    filter .75s ease;
}

.collection-card.is-active:hover .collection-card-media img {
  transform: scale(1.045);
}

.collection-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(5,5,5,.95) 0%,
      rgba(5,5,5,.35) 42%,
      rgba(5,5,5,.06) 75%,
      rgba(5,5,5,.24) 100%
    );
}

.collection-card-copy {
  position: absolute;
  left: clamp(24px, 3vw, 42px);
  right: clamp(24px, 3vw, 42px);
  bottom: clamp(28px, 4vw, 54px);
  z-index: 2;
}

.collection-card-number {
  margin: 0 0 18px;
  color: var(--mist);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.collection-card-copy h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.055em;
}

.collection-card-copy > p:not(.collection-card-number) {
  margin: 17px 0 0;
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.collection-card-accent {
  display: inline-block;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid currentColor;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ruby-accent { color: #9e1b32; }
.autumn-accent { color: #b85f3d; }
.azure-accent { color: #2577a8; }
.violet-accent { color:darkviolet; }

.collection-gate {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  padding: clamp(28px, 4vw, 54px);
  background: linear-gradient(135deg, rgba(5,5,5,.94), rgba(5,5,5,.78));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    transform .72s var(--ease),
    opacity .48s ease,
    visibility .48s ease;
}

/*
 * Open the membership panel for every locked collection card:
 * - guest: signed out
 * - inactive: signed in without current premium access
 */
.collection-card:is(
  [data-access="guest"],
  [data-access="inactive"]
).is-gate-open .collection-gate {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.collection-card[data-access="member"] .collection-gate {
  display: none;
}

.collection-gate-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.collection-gate-status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(200,162,90,.55);
}

.collection-gate h3 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.045em;
}

.collection-gate p:not(.collection-gate-status) {
  margin: 26px 0 0;
  color: var(--mist);
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.7;
}

.collection-gate-join {
  display: inline-flex;
  margin-top: 30px;
  padding: 14px 20px;
  border: 1px solid var(--accent);
  color: var(--black);
  background: var(--accent);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.collection-gate-signin {
  display: block;
  width: fit-content;
  margin-top: 17px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.collections-control {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--paper);
  background: rgba(5,5,5,.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-50%);
  cursor: pointer;
}

.collections-control--previous { left: 28px; }
.collections-control--next { right: 28px; }

.collections-control:disabled {
  opacity: .28;
  cursor: default;
  pointer-events: none;
}

.collections-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.collections-pagination button {
  position: relative;
  width: 46px;
  height: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.collections-pagination button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(35, 35, 35, .28);
  transform: translateY(-50%);
  transform-origin: center;
  transition: background-color .4s ease, transform .4s var(--ease);
}

.collections-pagination button.is-active::before {
  background: var(--accent);
  transform: translateY(-50%) scaleX(1.28);
}

.collections-coming {
  padding: clamp(70px, 8vw, 110px) 0;
  background: #090909;
}

.collections-coming-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: end;
}

.collections-coming-heading .section-intro {
  max-width: 520px;
  justify-self: end;
}

.collections-coming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 34px);
  margin-top: clamp(60px, 7vw, 100px);
}

.coming-card-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(125deg, transparent, rgba(255,255,255,.045), transparent),
    repeating-linear-gradient(135deg, rgba(255,255,255,.022) 0 1px, transparent 1px 34px),
    #0f0f0f;
}

.coming-card-media span {
  color: rgba(255,255,255,.35);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.coming-card .meta { margin-top: 18px; }

.coming-card h3 {
  margin: 8px 0 0;
  color: var(--paper);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 400;
}

@media (max-width: 1080px) {
  .collections-control {
    display: none;
  }

  .collections-stage {
    overflow: hidden;
  }

  .collections-track {
    box-sizing: border-box;

    width: 100%;
    max-width: 100vw;
    min-height: clamp(590px, 118vw, 760px);

    margin-left: 0;
    padding: 30px 10vw;

    justify-content: flex-start;
    gap: 22px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-padding-inline: 10vw;
    scrollbar-width: none;

    touch-action: pan-x pan-y pinch-zoom;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;

    transform: none !important;
    transition: none !important;
    perspective: none;
    will-change: auto;
  }

  .collections-track::-webkit-scrollbar {
    display: none;
  }

  .collection-card {
    flex: 0 0 min(74vw, 520px);

    scroll-snap-align: center;
    scroll-snap-stop: normal;

    opacity: .72;
    transform: scale(.91);
  }

  .collection-card.is-active {
    opacity: 1;
    transform: scale(1);
  }

  .collection-card:not(.is-active):hover {
    opacity: .72;
    transform: scale(.91);
  }

  .collection-card-media img {
    -webkit-user-drag: none;
    user-select: none;
  }

  .collections-pagination {
    position: relative;
    z-index: 12;

    min-height: 18px;
    margin-top: 18px;
  }
}

@media (max-width: 760px) {
  .collections-intro {
    padding-top: 132px;
  }

  .collections-deck {
    margin-left: 0;
  }

  .collections-track {
    min-height: 690px;
    padding-inline: 8vw;
    scroll-padding-inline: 8vw;
    gap: 18px;
  }

  .collection-card {
    flex: 0 0 84vw;
    height: 650px;
  }

  .collections-coming-heading,
  .collections-coming-grid {
    grid-template-columns: 1fr;
  }

  .collections-coming-heading .section-intro {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .collections-track {
    min-height: 610px;
  }

  .collection-card {
    flex-basis: 84vw;
    height: 570px;
  }

  .collection-gate {
    padding: 24px;
  }

  .collection-gate h3 {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection-card,
  .collection-card-media img,
  .collection-gate {
    transition: none;
  }
}

@media (max-width: 600px) {

    .coming-soon-popup {
        right: 50%;
        transform: translate(50%, -50%) translateY(12px);
    }

    .coming-soon-popup.show {
        transform: translate(50%, -50%) translateY(0);
    }

    .editorial-coming-soon .coming-soon-popup,
    .editorial-coming-soon .coming-soon-popup.show {
        transform: none;
    }

}

/* =================================================
   04. Coming Soon interactions
================================================= */

.coming-soon-link {
    position: relative;
}

.coming-soon-popup {
    position: absolute;
    top: 50%;
    right: 70px;
    z-index: 20;

    padding: 12px 18px;

    border: 1px solid var(--accent);
    border-radius: 12px;

    color: var(--accent);
    background: #0b0b0b;

    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    opacity: 0;
    pointer-events: none;
    white-space: nowrap;

    transform: translateY(-50%) translateX(15px);

    transition:
        opacity .45s ease,
        transform .45s ease;
}

.coming-soon-popup.show {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.editorial-coming-soon {
    position: relative;
}

.editorial-coming-soon .coming-soon-centre-layer {
    position: absolute;
    inset: 0;
    z-index: 5;

    display: grid;
    place-items: center;

    pointer-events: none;
}

.editorial-coming-soon .coming-soon-popup {
    position: static;

    width: max-content;
    max-width: calc(100% - 32px);
    margin: 0;

    text-align: center;
    white-space: nowrap;

    transform: none;
}

.editorial-coming-soon .coming-soon-popup.show {
    transform: none;
}

.archive-item-title {
      font-size: clamp(18px, 2vw, 32px);
      letter-spacing: -.025em;
    }

.archive-item-subtitle {
    display: block;
    margin-top: 6px;
    font-size: .65em;
    font-weight: 400;
    letter-spacing: .02em;
    opacity: .58;
}

/* Desktop gallery viewport */
@media (min-width: 1081px) {
  .collections-stage {
    --collections-left-inset: max(6vw, 72px);
  }

  .collections-track {
    margin-left: var(--collections-left-inset);
  }
}
