/* Shared NOVA series layouts: editorial on Home, expanded library on Custom Jewelry. */

.nova-series-showcase {
  padding-block: clamp(100px, 10vw, 148px);
  border-block: 1px solid var(--nova-color-border);
  background: #f8f6f2;
}

.nova-series-showcase__head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: end;
  gap: clamp(54px, 9vw, 144px);
  max-width: none;
}

.nova-series-showcase__head h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(3.15rem, 4.4vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.nova-series-showcase__head > div:last-child > p {
  max-width: 53ch;
  margin: 0;
  color: var(--nova-color-text-secondary);
  font-size: clamp(0.94rem, 1vw, 1.02rem);
  line-height: 1.72;
}

.nova-series-showcase__link {
  display: inline-flex;
  width: fit-content;
  margin-top: 22px;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nova-series-showcase__link span {
  display: inline-block;
  margin-left: 7px;
  transition: transform 180ms var(--nova-ease-out);
}

.nova-series-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 42px) clamp(18px, 2.4vw, 34px);
  margin-top: clamp(64px, 7vw, 94px);
}

.nova-series-card {
  grid-column: span 2;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.nova-series-card:nth-child(4) { grid-column: 2 / span 2; }

.nova-series-card figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #fff;
}

.nova-series-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 240ms var(--nova-ease-out);
}

.nova-series-card > div { padding: 18px 2px 0; }

.nova-series-card h3 {
  margin: 0;
  font: 400 clamp(1.48rem, 1.8vw, 1.92rem)/1.04 var(--nova-font-heading);
  letter-spacing: -0.025em;
}

.nova-series-card p {
  margin: 9px 0 0;
  color: var(--nova-color-text-secondary);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* Home: one collection story leads, the remaining four form a calmer 2 × 2 edit. */
.nova-series-showcase--home > .nova-container { max-width: var(--nova-home-wide); }
.nova-series-showcase--custom > .nova-container { max-width: 1320px; }

.nova-series-showcase--home .nova-series-grid {
  grid-template-columns: minmax(360px, 1.12fr) repeat(2, minmax(0, 0.94fr));
  gap: clamp(22px, 2.3vw, 34px);
}

.nova-series-showcase--home .nova-series-card { grid-column: auto; }
.nova-series-showcase--home .nova-series-card:nth-child(4) { grid-column: auto; }

.nova-series-showcase--home .nova-series-card:first-child {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
}

.nova-series-showcase--home .nova-series-card:first-child figure {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}

.nova-series-showcase--home .nova-series-card:first-child h3 { font-size: clamp(2rem, 2.6vw, 2.65rem); }
.nova-series-showcase--home .nova-series-card:not(:first-child) figure { aspect-ratio: 1.48 / 1; }

.nova-series-showcase__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  margin-top: clamp(58px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--nova-color-border-strong);
}

.nova-series-showcase__actions p {
  max-width: 62ch;
  margin: 0;
  color: var(--nova-color-text-secondary);
  font-size: 0.73rem;
  line-height: 1.55;
}

.nova-series-showcase .nova-button { justify-self: start; }
.nova-series-showcase .nova-series-card:active,
.nova-series-showcase .nova-button:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .nova-series-showcase__link:hover span { transform: translateX(5px); }
  .nova-series-card:hover img { transform: scale(1.025); }
}

@media (max-width: 1020px) {
  .nova-series-showcase__head { grid-template-columns: 1fr; gap: 24px; }
  .nova-series-showcase__head > div:last-child > p { max-width: 64ch; }

  .nova-series-showcase--custom .nova-series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nova-series-showcase--custom .nova-series-card,
  .nova-series-showcase--custom .nova-series-card:nth-child(4) { grid-column: auto; }
  .nova-series-showcase--custom .nova-series-card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - clamp(18px, 2.4vw, 34px)) / 2);
    justify-self: center;
  }

  .nova-series-showcase--home .nova-series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nova-series-showcase--home .nova-series-card:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .nova-series-showcase--home .nova-series-card:first-child figure { aspect-ratio: 1.65 / 1; }
}

@media (max-width: 720px) {
  .nova-series-showcase { padding-block: 76px; }
  .nova-series-showcase__head h2 { max-width: 13ch; font-size: clamp(2.5rem, 10.8vw, 3rem); }
  .nova-series-grid { gap: 34px 14px; margin-top: 46px; }
  .nova-series-card > div { padding-top: 13px; }
  .nova-series-card h3 { font-size: 1.25rem; }
  .nova-series-card p { margin-top: 7px; font-size: 0.64rem; }
  .nova-series-showcase--home .nova-series-card:first-child h3 { font-size: 1.65rem; }
  .nova-series-showcase__actions { grid-template-columns: 1fr; gap: 20px; margin-top: 44px; }
}

@media (max-width: 520px) {
  .nova-series-showcase--home .nova-series-card:first-child figure { aspect-ratio: 1.25 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  .nova-series-showcase__link span,
  .nova-series-card img { transition-duration: 0.01ms; }
}
