/* ——— Explore & Enjoy ——— */
/* Fluid layout tuned at --layout-ref-w (798px); section bg keeps design aspect ratio. */

.explore {
  position: relative;
  width: 100%;
  aspect-ratio: var(--explore-aspect-w) / var(--explore-aspect-h);
  overflow: hidden;
  container-type: inline-size;
}

.explore__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--asset-explore-bg) center / 100% 100% no-repeat;
}

.explore__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding:
    calc(44 * 100cqw / var(--layout-ref-w))
    calc(40 * 100cqw / var(--layout-ref-w))
    calc(36 * 100cqw / var(--layout-ref-w));
  box-sizing: border-box;
}

.explore__header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: calc(12 * 100cqw / var(--layout-ref-w));
  margin-bottom: calc(18 * 100cqw / var(--layout-ref-w));
}

.explore__title {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-size: calc(38 * 100cqw / var(--layout-ref-w));
  font-weight: 400;
  font-style: normal;
  line-height: 1.05;
  color: var(--color-ink);
}

.explore__title em {
  font-style: italic;
}

.explore__caption {
  flex: 0 1 auto;
  max-width: calc(330 * 100cqw / var(--layout-ref-w));
  margin:
    calc(6 * 100cqw / var(--layout-ref-w))
    0
    0
    calc(14 * 100cqw / var(--layout-ref-w));
  font-family: var(--font-sans);
  font-size: calc(12 * 100cqw / var(--layout-ref-w));
  font-weight: 400;
  line-height: 1.48;
  color: var(--color-ink);
}

.explore__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.explore__more {
  margin: calc(12 * 100cqw / var(--layout-ref-w)) 0 0;
  text-align: center;
}

.explore__more-link {
  display: inline-flex;
  align-items: center;
  gap: calc(5 * 100cqw / var(--layout-ref-w));
  font-family: var(--font-sans);
  font-size: calc(12 * 100cqw / var(--layout-ref-w));
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--color-ink);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.explore__more-link::after {
  content: "→";
  font-size: 1em;
  line-height: 1;
}

.explore__more-link:hover,
.explore__more-link:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.explore-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  background: #fff;
}

.explore-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex: 0 0 auto;
  line-height: 0;
  box-sizing: border-box;
  border: 1px solid #fff;
  background: #e8e6e1;
}

.explore-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.explore-card__body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding:
    calc(10 * 100cqw / var(--layout-ref-w))
    calc(10 * 100cqw / var(--layout-ref-w))
    calc(26 * 100cqw / var(--layout-ref-w));
  background: #fff;
  text-align: center;
  box-sizing: border-box;
}

.explore-card__title {
  margin: 0 0 calc(6 * 100cqw / var(--layout-ref-w));
  font-family: var(--font-serif);
  font-size: calc(13.5 * 100cqw / var(--layout-ref-w));
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-ink);
}

.explore-card__desc {
  margin: 0;
  max-width: calc(196 * 100cqw / var(--layout-ref-w));
  font-family: var(--font-sans);
  font-size: calc(9 * 100cqw / var(--layout-ref-w));
  font-weight: 400;
  line-height: 1.38;
  color: var(--color-ink);
}

.explore-card__cta {
  position: absolute;
  right: calc(8 * 100cqw / var(--layout-ref-w));
  bottom: calc(8 * 100cqw / var(--layout-ref-w));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(20 * 100cqw / var(--layout-ref-w));
  height: calc(20 * 100cqw / var(--layout-ref-w));
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #111;
  color: #fff;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
}

.explore-card__cta svg {
  width: calc(7 * 100cqw / var(--layout-ref-w));
  height: calc(7 * 100cqw / var(--layout-ref-w));
}

@media (max-width: 1023px) {
  .explore {
    aspect-ratio: unset;
    overflow: hidden;
  }

  .explore__bg {
    background: none;
  }

  .explore__bg::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: 140vmax;
    height: 140vmax;
    background: var(--asset-explore-bg) center / cover no-repeat;
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .explore__inner {
    height: auto;
    min-height: 100%;
    padding: 2.5rem 0 2.25rem;
  }

  .explore__header {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-inline: 1.25rem;
    text-align: center;
  }

  .explore__title {
    font-size: clamp(2rem, 8.5vw, 2.5rem);
    line-height: 1.05;
  }

  .explore__caption {
    max-width: 22rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .explore__cards {
    display: flex;
    align-items: stretch;
    gap: 0.875rem;
    width: 100%;
    margin: 0;
    padding: 0.25rem 1.25rem 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .explore__cards::-webkit-scrollbar {
    display: none;
  }

  .explore-card {
    flex: 0 0 min(82vw, 20rem);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .explore-card__body {
    padding: 0.75rem 0.75rem 2rem;
  }

  .explore-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    line-height: 1.2;
  }

  .explore-card__desc {
    max-width: none;
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .explore-card__cta {
    right: 0.5rem;
    bottom: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
  }

  .explore-card__cta svg {
    width: 0.5625rem;
    height: 0.5625rem;
  }

  .explore__more {
    margin: 1rem 0 0;
    padding-inline: 1.25rem;
    text-align: center;
  }

  .explore__more-link {
    font-size: 0.875rem;
    gap: 0.25rem;
  }
}
