/* Home "Our Collections" section: product groups stand like stone slabs; the active one widens to open. */
.nv-collections {
  --nv-navy: #263450;
  --nv-gold: #ba8d40;
  background: #fff;
  color: var(--nv-navy);
  padding: clamp(5rem, 10vw, 9rem) var(--nv-gutter);
}

.nv-collections__inner {
  max-width: var(--nv-col, 1680px);
  margin: 0 auto;
}

/* Headline with the intro stacked under it. */
.nv-collections__head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.nv-collections__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.5rem;
  font-family: Sohne, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--nv-navy);
}

.nv-collections__eyebrow::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nv-gold);
}

.nv-collections__title {
  margin: 0;
  font-family: Luxia, Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 3.6vw, 3.75rem);
  line-height: 1.1;
  color: var(--nv-navy);
}

.nv-collections__title em {
  font-family: 'Luxia Display', Georgia, serif;
  font-style: normal;
  color: inherit;
}

.nv-collections__intro {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  font-family: Sohne, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--nv-ink);
}

/* Slabs */
.nv-collections__slabs {
  display: flex;
  gap: 0.75rem;
  height: clamp(26rem, 62vh, 36rem);
}

.nv-collections__slab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  opacity: 0;
  transform: translateY(2.5rem);
  transition:
    flex-grow 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.8s ease calc(var(--i) * 0.1s),
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 0.1s);
}

.nv-collections.is-inview .nv-collections__slab {
  opacity: 1;
  transform: none;
}

.nv-collections__slab.is-active {
  flex-grow: 3.4;
}

.nv-collections__slab img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nv-collections__slab.is-active img {
  transform: scale(1);
}

.nv-collections__slab::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 28, 44, 0.85) 0%, rgba(21, 28, 44, 0.25) 45%, rgba(21, 28, 44, 0.15) 100%);
  transition: background-color 0.5s ease;
}

.nv-collections__slab:not(.is-active)::after {
  background-color: rgba(21, 28, 44, 0.25);
}

.nv-collections__slab:focus-visible {
  box-shadow: inset 0 0 0 2px var(--nv-gold);
}

/* Gold edge, like the bar in the Novalis mark, on the open slab. */
.nv-collections__slab::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 3px;
  background: var(--nv-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
}

.nv-collections__slab.is-active::before {
  transform: scaleX(1);
}

/* Closed slab: number at the top, category running up the side. */
.nv-collections__num {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  font-family: Sohne, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
}

.nv-collections__label {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 2;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  font-family: Sohne, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.35s ease;
}

.nv-collections__slab.is-active .nv-collections__label {
  opacity: 0;
}

/* Open slab: the collection. */
.nv-collections__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: min(30rem, 100%);
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.nv-collections__slab.is-active .nv-collections__body {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease 0.35s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s;
}
.nv-collections__post-title {
  margin: 0 0 0.9rem;
  font-family: Luxia, Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  line-height: 1.15;
  color: #fff;
}
/* "Explore collection" badge: a gold disc with the words turning around it. It appears in the
   upper part of the open slab while the pointer is over it (or it has keyboard focus), once the
   slab has finished opening. The whole slab is the link; the badge only marks it. */
.nv-collections__badge {
  position: absolute;
  top: 33%;
  left: 50%;
  z-index: 3;
  width: 8.75rem;
  height: 8.75rem;
  margin: -4.375rem 0 0 -4.375rem;
  pointer-events: none;
}

.nv-collections__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nv-collections__ring text {
  fill: #fff;
  /* A soft shadow under the letters keeps them readable over light stone and marble photos. */
  filter: drop-shadow(0 1px 2px rgba(21, 28, 44, 0.6));
  font-family: Sohne, Arial, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.nv-collections__ring g {
  transform-origin: 70px 70px;
  animation: nv-ring-turn 12s linear infinite paused;
}

.nv-collections__disc {
  position: absolute;
  inset: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--nv-gold);
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nv-collections__disc svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--nv-navy);
  stroke-width: 1.6;
  stroke-linecap: square;
}

.nv-collections__slab.is-active:hover .nv-collections__disc,
.nv-collections__slab.is-active:focus-visible .nv-collections__disc {
  transform: scale(1);
  transition-delay: 0.35s;
}

.nv-collections__slab.is-active:hover .nv-collections__ring,
.nv-collections__slab.is-active:focus-visible .nv-collections__ring {
  opacity: 1;
  transform: none;
  transition-delay: 0.45s;
}

.nv-collections__slab.is-active:hover .nv-collections__ring g,
.nv-collections__slab.is-active:focus-visible .nv-collections__ring g {
  animation-play-state: running;
}

@keyframes nv-ring-turn {
  to { transform: rotate(360deg); }
}

/* Touch screens have no hover: the badge shows on the open slab, still. */
@media (hover: none) {
  .nv-collections__slab.is-active .nv-collections__disc {
    transform: scale(1);
    transition-delay: 0.35s;
  }
  .nv-collections__slab.is-active .nv-collections__ring {
    opacity: 1;
    transform: none;
    transition-delay: 0.45s;
  }
}
/* Sizes and pieces in the range, laid out like small tiles. */
.nv-collections__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.nv-collections__spec {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: Sohne, Arial, sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(21, 28, 44, 0.25);
}

.nv-collections__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.nv-collections__all {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: Sohne, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nv-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--nv-gold);
  padding-bottom: 0.4rem;
  transition: color 0.3s ease;
}

.nv-collections__all:hover,
.nv-collections__all:focus-visible {
  color: var(--nv-navy);
  border-bottom-color: var(--nv-navy);
}

/* Phones: slabs stack and open vertically. */
@media (max-width: 767px) {
  .nv-collections__slabs {
    flex-direction: column;
    height: auto;
    gap: 0.5rem;
  }
  .nv-collections__slab {
    flex: none;
    height: 4.5rem;
    transition:
      height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 0.8s ease calc(var(--i) * 0.1s),
      transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 0.1s);
  }
  .nv-collections__slab.is-active {
    height: 28rem;
  }
  .nv-collections__foot {
    justify-content: flex-start;
  }
  .nv-collections__num {
    top: 50%;
    transform: translateY(-50%);
  }
  .nv-collections__slab.is-active .nv-collections__num {
    top: 1.25rem;
    transform: none;
  }
  .nv-collections__badge {
    top: 30%;
    width: 7.5rem;
    height: 7.5rem;
    margin: -3.75rem 0 0 -3.75rem;
  }
  .nv-collections__label {
    left: 3.25rem;
    top: 50%;
    bottom: auto;
    writing-mode: horizontal-tb;
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nv-collections__slab,
  .nv-collections__slab img,
  .nv-collections__slab::before,
  .nv-collections__body,
  .nv-collections__ring,
  .nv-collections__disc {
    transition: none !important;
  }
  .nv-collections__ring g {
    animation: none;
  }
}
