.collection-grid .product-card {
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}

/* Give the story copy enough room to read naturally on wide screens. */
.story-section {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.story-copy {
  width: 100%;
  max-width: none;
  padding-inline: clamp(48px, 6vw, 110px);
}

.story-copy > p:not(.eyebrow) {
  max-width: 620px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  margin-bottom: 70px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 18px;
}

.section-heading h2,
#collection-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.section-heading h2 em,
#collection-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.section-heading .text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .28s ease, color .28s ease, border-color .28s ease, transform .28s ease, box-shadow .28s ease;
}

.section-heading .text-link:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(24, 17, 12, 0.12);
}

.section-heading .text-link span:last-child {
  display: inline-block;
  transition: transform .28s cubic-bezier(.25, 1, .5, 1);
}

.section-heading .text-link:hover span:last-child {
  transform: translate(3px, -3px);
}

.section-heading .text-link:active {
  transform: translateY(0);
}

.section-heading .text-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .section-heading .text-link,
  .section-heading .text-link span:last-child {
    transition: none;
    transform: none;
  }
}

.collection-grid .product-card:nth-child(2) {
  transition-delay: .12s;
}

.collection-grid .product-card:nth-child(3) {
  transition-delay: .24s;
}

.collection-grid .product-image {
  position: relative;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(.77, 0, .18, 1);
}

.collection-grid .product-card.visible .product-image {
  clip-path: inset(0);
}

.collection-grid .product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: opacity .55s ease;
  will-change: opacity;
}

.collection-grid .product-image .product-image-base {
  opacity: 1;
}

.collection-grid .product-image .product-image-focus {
  opacity: 0;
}

.collection-grid .product-card {
  cursor: pointer;
}

.collection-grid .product-card.is-jewellery-focus .product-image-base {
  opacity: 0;
}

.collection-grid .product-card.is-jewellery-focus .product-image-focus {
  opacity: 1;
}

.collection-grid .product-card:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .collection-grid .product-card,
  .collection-grid .product-image,
  .collection-grid .product-image img {
    transition: none;
  }

  .collection-grid .product-image {
    clip-path: none;
  }
}

.collection-grid[data-horizontal-scroll] {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-right: -8vw;
  padding-right: 8vw;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.collection-grid[data-horizontal-scroll].is-dragging {
  cursor: grabbing !important;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.collection-grid[data-horizontal-scroll] img {
  -webkit-user-drag: none;
  user-drag: none;
}

.collection-grid[data-horizontal-scroll]::-webkit-scrollbar {
  display: none;
}

.collection-scroll-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}

.collection-scroll-controls button {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.collection-scroll-controls button:hover:not(:disabled),
.collection-scroll-controls button:focus-visible {
  background: var(--ink);
  color: #fff;
}

.collection-scroll-controls button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.collection-scroll-controls button:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.collection-grid[data-horizontal-scroll] .product-card {
  flex: 0 0 clamp(280px, 29vw, 440px);
  margin-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.collection-grid[data-horizontal-scroll] .product-card:nth-child(3n+2) {
  margin-top: 72px;
}

.collection-grid[data-horizontal-scroll]:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 8px;
}

@media (max-width: 800px) {
  .section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
  }

  .section-heading .eyebrow {
    margin-bottom: 14px;
  }

  .section-heading h2,
  #collection-title {
    font-size: clamp(28px, 6vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 100%;
  }

  .section-heading .text-link {
    margin-top: 24px;
    align-self: flex-start;
  }

  .story-copy {
    padding-inline: 7vw;
  }

  .collection-grid[data-horizontal-scroll] {
    margin-right: -7vw;
    padding-right: 7vw;
  }

  .collection-grid[data-horizontal-scroll] .product-card {
    flex-basis: min(76vw, 380px);
  }

  .collection-grid[data-horizontal-scroll] .product-card:nth-child(3n+2) {
    margin-top: 0;
  }

  .collection-scroll-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading .eyebrow {
    margin-bottom: 10px;
    font-size: 9.5px;
    letter-spacing: .22em;
  }

  .section-heading h2,
  #collection-title {
    font-size: clamp(23px, 6.4vw, 32px);
    line-height: 1.16;
    letter-spacing: -0.015em;
    overflow-wrap: break-word;
  }

  .section-heading .text-link {
    margin-top: 20px;
    padding: 11px 20px;
    font-size: 9.5px;
    gap: 14px;
  }
}

@media (max-width: 360px) {
  .section-heading h2,
  #collection-title {
    font-size: clamp(20px, 6vw, 24px);
    line-height: 1.18;
  }

  .section-heading .text-link {
    padding: 10px 16px;
    font-size: 9px;
    gap: 12px;
  }
}
