/*
 * Roar Panther homepage — scroll-controlled orbit carousel.
 * No external font is loaded here. The section deliberately uses the same
 * --font-sans and --font-display variables as the rest of the website.
 */

.rp-discover {
  --rp-progress: 0;
  --rp-ink: var(--nero, #080808);
  --rp-muted: rgba(8, 8, 8, .56);
  --rp-surface: #f7f5ec;
  --rp-line: rgba(8, 8, 8, .18);
  position: relative;
  min-height: var(--rp-discover-scroll-height, 375vh);
  overflow: clip;
  isolation: isolate;
  color: var(--rp-ink);
  background:
    radial-gradient(circle at 18% 76%, rgba(191, 164, 106, .10), transparent 29%),
    radial-gradient(circle at 82% 65%, rgba(8, 8, 8, .045), transparent 27%),
    linear-gradient(180deg, #fbfaf4 0%, var(--rp-surface) 52%, #f4f1e7 100%);
  border-block: 1px solid rgba(8, 8, 8, .065);
  font-family: var(--font-sans, "Questrial", "Inter", "Avenir Next", "Helvetica Neue", Arial, sans-serif);
}

.rp-discover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(90deg, transparent 49.96%, rgba(8, 8, 8, .08) 50%, transparent 50.04%),
    linear-gradient(0deg, transparent 49.96%, rgba(8, 8, 8, .06) 50%, transparent 50.04%);
}

.rp-discover__stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
  user-select: none;
}

.rp-discover__header {
  position: absolute;
  top: clamp(70px, 8.5vh, 112px);
  left: 50%;
  z-index: 1000;
  width: min(1100px, calc(100% - 40px));
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  text-align: center;
  pointer-events: none;
}

.rp-discover__eyebrow {
  margin: 0 0 12px;
  color: var(--rp-muted);
  font-family: var(--font-mono, var(--font-sans));
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.rp-discover__heading {
  margin: 0;
  color: var(--rp-ink);
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(40px, 5.3vw, 82px);
  font-weight: 300;
  line-height: .94;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-wrap: balance;
}

.rp-discover__jump {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: clamp(18px, 2.4vh, 28px);
  padding: 0;
  border: 1px solid var(--rp-ink);
  border-radius: 999px;
  background: var(--rp-ink);
  color: #fff;
  cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
  animation: rp-discover-jump 1.8s ease-in-out infinite;
}

.rp-discover__jump:hover,
.rp-discover__jump:focus-visible {
  transform: translateY(2px) scale(1.06);
  background: transparent;
  color: var(--rp-ink);
  outline: none;
}

.rp-discover__jump svg {
  width: 20px;
  height: 20px;
}

.rp-discover__orbit {
  position: absolute;
  left: 50%;
  top: 55%;
  z-index: 20;
  width: 1px;
  height: 1px;
  transform: translate(-50%, -50%);
  perspective: 1200px;
  transform-style: preserve-3d;
}

.rp-discover__item {
  --rp-x: 0vw;
  --rp-y: 0vh;
  --rp-z: 0px;
  --rp-scale: .7;
  --rp-opacity: 0;
  --rp-blur: 0px;
  --rp-tilt: 0deg;
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(190px, 22vw, 410px);
  aspect-ratio: 1.18 / 1;
  opacity: var(--rp-opacity);
  filter: blur(var(--rp-blur));
  transform:
    translate3d(calc(-50% + var(--rp-x)), calc(-50% + var(--rp-y)), var(--rp-z))
    rotate(var(--rp-tilt))
    scale(var(--rp-scale));
  transform-origin: 50% 58%;
  will-change: transform, opacity, filter;
}

.rp-discover__link,
.rp-discover__image-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.rp-discover__link {
  color: inherit;
  text-decoration: none;
  outline: none;
}

.rp-discover__link:focus-visible {
  border-radius: 26px;
  box-shadow: 0 0 0 3px rgba(191, 164, 106, .58);
}

.rp-discover__image-wrap {
  position: relative;
  transition: transform .28s ease;
}

.rp-discover__image-wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 12%;
  right: 12%;
  bottom: 5%;
  height: 14%;
  border-radius: 50%;
  background: rgba(16, 12, 8, .20);
  filter: blur(20px);
  opacity: .42;
  transform: scaleX(.75);
}

.rp-discover__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 22px 28px rgba(24, 18, 12, .15));
  -webkit-user-drag: none;
}

.rp-discover__item.is-active .rp-discover__image-wrap {
  transform: translateY(-5px);
}

.rp-discover__item.is-active .rp-discover__image {
  filter: drop-shadow(0 30px 34px rgba(24, 18, 12, .21));
}

.rp-discover__footer {
  position: absolute;
  left: clamp(20px, 4.2vw, 76px);
  right: clamp(20px, 4.2vw, 76px);
  bottom: clamp(30px, 4.2vh, 56px);
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 28px;
}

.rp-discover__active-product {
  min-width: 0;
  display: grid;
  align-content: end;
  justify-items: start;
}

.rp-discover__counter {
  margin-bottom: 7px;
  color: var(--rp-muted);
  font-family: var(--font-mono, var(--font-sans));
  font-size: 9px;
  letter-spacing: .24em;
}

.rp-discover__active-title {
  max-width: min(390px, 30vw);
  overflow: hidden;
  color: var(--rp-ink);
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(18px, 1.55vw, 27px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.025em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rp-discover__active-meta,
.rp-discover__active-price {
  color: var(--rp-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .08em;
}

.rp-discover__active-meta {
  max-width: min(390px, 30vw);
  margin-top: 7px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rp-discover__active-price {
  justify-self: end;
  align-self: end;
  color: var(--rp-ink);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rp-discover__scroll-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  align-self: end;
  color: var(--rp-ink);
  font-family: var(--font-mono, var(--font-sans));
  font-size: 11px;
  line-height: 1;
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rp-discover__scroll-cue i {
  display: block;
  width: clamp(52px, 5.4vw, 92px);
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transform: scaleX(calc(.28 + (var(--rp-progress) * .72)));
}

.rp-discover__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  height: 2px;
  overflow: hidden;
  background: rgba(8, 8, 8, .08);
}

.rp-discover__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold, #bfa46a);
  transform: scaleX(var(--rp-progress));
  transform-origin: left center;
  will-change: transform;
}

@keyframes rp-discover-jump {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 1050px) {
  .rp-discover__item {
    width: clamp(170px, 28vw, 330px);
  }

  .rp-discover__active-title,
  .rp-discover__active-meta {
    max-width: 32vw;
  }
}

@media (max-width: 700px) {
  .rp-discover {
    min-height: max(var(--rp-discover-scroll-height), 340vh);
  }

  .rp-discover__stage {
    min-height: 560px;
  }

  .rp-discover__header {
    top: clamp(72px, 10vh, 96px);
    width: calc(100% - 28px);
  }

  .rp-discover__heading {
    font-size: clamp(36px, 12vw, 58px);
  }

  .rp-discover__jump {
    width: 42px;
    height: 42px;
    margin-top: 16px;
  }

  .rp-discover__orbit {
    top: 53%;
  }

  .rp-discover__item {
    width: clamp(150px, 48vw, 220px);
  }

  .rp-discover__footer {
    left: 16px;
    right: 16px;
    bottom: 28px;
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .rp-discover__active-title {
    max-width: 56vw;
    font-size: 18px;
  }

  .rp-discover__active-meta,
  .rp-discover__active-price {
    display: none;
  }

  .rp-discover__scroll-cue {
    justify-self: end;
    gap: 12px;
    font-size: 10px;
  }

  .rp-discover__scroll-cue i {
    width: 38px;
  }
}

@media (max-height: 680px) and (min-width: 701px) {
  .rp-discover__header {
    top: 48px;
  }

  .rp-discover__heading {
    font-size: clamp(36px, 5vw, 64px);
  }

  .rp-discover__jump {
    width: 40px;
    height: 40px;
    margin-top: 14px;
  }

  .rp-discover__orbit {
    top: 56%;
  }

  .rp-discover__footer {
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-discover {
    min-height: 100svh;
  }

  .rp-discover__jump {
    display: none;
    animation: none;
  }

  .rp-discover__item,
  .rp-discover__image-wrap {
    transition: none;
  }
}
