/* Keep the existing portfolio and gallery structure, with glass-framed covers. */
.collections .collection-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.collections .collection-cover {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 4.5;
  border-radius: 18px;
  background: linear-gradient(148deg, #d6baf476, #a663d429 45%, #fff4 100%);
  padding: 1px;
  box-shadow: 0 16px 36px #03010672, 0 0 24px #9c55d319;
}
.collections .collection-link {
  display: flex;
  align-items: stretch;
  border-radius: 17px;
  text-decoration: none;
  background: #191322;
}
.collections .collection-link::after {
  inset: 0;
  background: linear-gradient(180deg, #140e241c, #110a182e 40%, #0d091695 67%, #0a0813f5),
              linear-gradient(145deg, #f5e1ff22, transparent 31%);
  box-shadow: inset 0 1px 0 #fff5, inset 0 0 23px #e6c8ff17;
}
.collections .collection-caption {
  gap: 12px;
  padding: clamp(16px, 2vw, 28px);
  text-shadow: 0 2px 10px #06030d;
}
.collections .collection-caption h3 { font-size: clamp(1.25rem, 2.45vw, 2rem); }
.collections .collection-count { font-size: clamp(.875rem, 1.4vw, 1.05rem); }
.collections .collection-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid #f4dfff70;
  border-radius: 50%;
  background: #150b22a8;
}
.collections .reel-background { object-position: 50% 43%; }
.collections .reel-motion {
  position: absolute;
  z-index: 1;
  inset-block-start: 9px;
  inset-inline-end: 9px;
  min-height: 44px;
  border: 1px solid #f4dfff73;
  border-radius: 999px;
  padding-inline: 12px;
  color: white;
  background: #120a1fdf;
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}
.collections .reel-motion[hidden] { display: none; }
.collections .collection-panel { grid-row: 2; }

@media (max-width: 760px) {
  .collections .collection-grid { grid-template-columns: minmax(0, 1fr); }
  .collections :is(#videos, #photos, #styling, .collection-panel) {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
  }
  .collections :is(#photos, #styling) { aspect-ratio: 16 / 9; }
  .collections #videos { aspect-ratio: 4 / 3; }
  .collections .collection-caption h3 { font-size: clamp(1.25rem, 5.7vw, 1.75rem); }
}

/* An opaque header avoids repeatedly blurring the moving video underneath it. */
@media (hover: none), (max-width: 760px) {
  header { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: #100d17; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes floor-arrival {
    from { transform: translateY(26px); }
    to { transform: translateY(0); }
  }
  .lift-heading.arriving { animation: floor-arrival 340ms cubic-bezier(.2,.7,.3,1); }
  @supports (animation-timeline: view()) and (animation-range: entry 0% cover 20%) {
    .lift-heading {
      animation: floor-arrival 1s linear both;
      animation-timeline: view(block);
      animation-range: entry 0% cover 20%;
    }
  }
  .collection-cover.arriving:not(:focus-within) {
    animation: glass-arrival 400ms cubic-bezier(.18,.72,.25,1) var(--drop-delay, 0ms) backwards;
  }
  @keyframes glass-arrival {
    from { opacity: .74; transform: perspective(780px) translate3d(0,-32px,-28px) rotateX(11deg); }
    to { opacity: 1; transform: none; }
  }
}
