/*
 * Roar Panther — Proof, Not Praise
 * Premium editorial homepage customer-story section.
 */

.rp-proof-story {
  --rp-proof-bg: #fcfaf6;
  --rp-proof-text: #29251f;
  --rp-proof-muted: #6c655d;
  --rp-proof-bronze: var(--rp-accent, #a87542);
  --rp-proof-line: rgba(105, 79, 51, 0.13);
  width: 100%;
  overflow: hidden;
  padding-block: clamp(34px, 4.4vh, 58px) clamp(24px, 3.4vh, 42px);
  color: var(--rp-proof-text);
  background:
    radial-gradient(circle at 12% 18%, rgba(230, 215, 191, 0.18), transparent 25%),
    linear-gradient(180deg, #fcfaf6 0%, #faf7f0 100%);
  font-family: var(--font-sans, "Questrial", sans-serif);
}

.rp-proof-story__container {
  display: grid;
  gap: clamp(18px, 2.2vh, 28px);
}

.rp-proof-story__hero {
  display: grid;
  grid-template-columns: minmax(310px, 0.4fr) minmax(0, 0.6fr);
  min-height: clamp(420px, 54vh, 550px);
  background: rgba(255, 255, 255, 0.17);
}

.rp-proof-story__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(26px, 3vw, 52px) clamp(24px, 3.6vw, 58px) clamp(24px, 3vw, 46px) 0;
}

.rp-proof-story__eyebrow {
  margin: 0 0 12px;
  color: var(--rp-proof-bronze);
  font: 500 0.72rem/1.4 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.rp-proof-story h2 {
  margin: 0;
  color: var(--rp-proof-text);
  font: 300 clamp(2.4rem, 4vw, 5rem)/0.96 var(--font-display, "Questrial", sans-serif);
  letter-spacing: -0.048em;
}

.rp-proof-story__intro {
  max-width: 38ch;
  margin: 18px 0 0;
  color: var(--rp-proof-muted);
  font: 400 clamp(0.92rem, 0.95vw, 1.04rem)/1.68 var(--font-sans, "Questrial", sans-serif);
}

.rp-proof-story__review {
  position: relative;
  min-height: 190px;
  margin-top: clamp(24px, 3vh, 34px);
  transition:
    opacity 320ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-proof-story__quote-mark {
  display: block;
  height: 30px;
  color: var(--rp-proof-bronze);
  font: 300 4.4rem/0.8 Georgia, serif;
}

.rp-proof-story blockquote {
  max-width: 15ch;
  margin: 6px 0 0;
  color: var(--rp-proof-text);
  font: 300 clamp(1.75rem, 2.45vw, 3.25rem)/1.08 var(--font-display, "Questrial", sans-serif);
  letter-spacing: -0.037em;
  text-wrap: balance;
}

.rp-proof-story__rating {
  display: flex;
  gap: 3px;
  margin-top: 15px;
}

.rp-proof-story__rating span {
  color: rgba(168, 117, 66, 0.22);
  font-size: 0.72rem;
}

.rp-proof-story__rating span.is-filled {
  color: rgba(168, 117, 66, 0.88);
}

.rp-proof-story__metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin: 11px 0 0;
  color: #625b53;
  font: 500 0.64rem/1.45 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rp-proof-story__metadata i {
  color: var(--rp-proof-bronze);
  font-style: normal;
}

.rp-proof-story__customer {
  margin: 7px 0 0;
  color: #847b72;
  font: 400 0.78rem/1.4 var(--font-sans, "Questrial", sans-serif);
}

.rp-proof-story__product-link,
.rp-proof-story__reviews-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #83562d;
  font: 500 0.72rem/1.35 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.07em;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: color 240ms ease, transform 240ms ease;
}

.rp-proof-story__product-link {
  margin-top: 12px;
}

.rp-proof-story__product-link:hover,
.rp-proof-story__reviews-link:hover {
  color: var(--rp-proof-text);
}

.rp-proof-story__product-link:hover span:last-child,
.rp-proof-story__reviews-link:hover span:last-child {
  transform: translateX(3px);
}

.rp-proof-story__navigation {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding-top: 18px;
}

.rp-proof-story__navigation[hidden] {
  display: none;
}

.rp-proof-story__nav-button {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(95, 72, 48, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
  color: #554d45;
  cursor: pointer;
  font-size: 1rem;
  transition:
    color 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.rp-proof-story__nav-button:hover {
  color: var(--rp-proof-bronze);
  border-color: rgba(168, 117, 66, 0.55);
  transform: translateY(-2px);
}

.rp-proof-story__progress {
  display: flex;
  align-items: center;
  gap: 7px;
}

.rp-proof-story__progress button {
  appearance: none;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(100, 75, 48, 0.18);
  cursor: pointer;
  transition:
    width 260ms ease,
    background 260ms ease;
}

.rp-proof-story__progress button.is-active {
  width: 23px;
  border-radius: 999px;
  background: var(--rp-proof-bronze);
}

.rp-proof-story__index {
  min-width: 50px;
  color: #83796f;
  font: 500 0.64rem/1 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.1em;
}

.rp-proof-story__reviews-link {
  margin-top: 12px;
}

.rp-proof-story__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #eee5d6;
  isolation: isolate;
}

.rp-proof-story__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.rp-proof-story__image.is-current {
  z-index: 1;
  transition:
    opacity 580ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-proof-story__image.is-next {
  z-index: 2;
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  transform: scale(1.025);
}

.rp-proof-story__image-edge {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 3;
  width: 13%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(252, 250, 246, 0.72) 0%,
    rgba(252, 250, 246, 0.12) 60%,
    transparent 100%
  );
}

.rp-proof-story.is-changing .rp-proof-story__review {
  opacity: 0;
  transform: translateY(-10px);
}

.rp-proof-story.is-changing .rp-proof-story__image.is-current {
  opacity: 0.18;
  transform: scale(0.99);
}

.rp-proof-story.is-changing .rp-proof-story__image.is-next {
  animation: rp-proof-image-reveal 680ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rp-proof-story.is-settling .rp-proof-story__review {
  animation: rp-proof-copy-settle 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rp-proof-story__journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 18px 0 14px;
  border-top: 1px solid var(--rp-proof-line);
  border-bottom: 1px solid var(--rp-proof-line);
  list-style: none;
}

.rp-proof-story__journey::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 29px;
  height: 1px;
  background: rgba(168, 117, 66, 0.32);
  transform: scaleX(1);
  transform-origin: left center;
}

.rp-proof-story__journey li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-areas:
    "node node"
    "icon copy";
  gap: 9px 12px;
  min-width: 0;
  padding: 0 clamp(12px, 1.3vw, 24px);
  border-right: 1px solid var(--rp-proof-line);
}

.rp-proof-story__journey li:last-child {
  border-right: 0;
}

.rp-proof-story__journey-node {
  grid-area: node;
  display: flex;
  align-items: center;
  min-height: 22px;
}

.rp-proof-story__journey-node b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fcfaf6;
  color: var(--rp-proof-bronze);
  box-shadow: 0 0 0 1px rgba(168, 117, 66, 0.38);
  font: 500 0.6rem/1 var(--font-sans, "Questrial", sans-serif);
}

.rp-proof-story__journey-icon {
  grid-area: icon;
  display: block;
  width: 38px;
  height: 38px;
  color: rgba(139, 96, 55, 0.82);
}

.rp-proof-story__journey-icon svg,
.rp-proof-story__proof-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rp-proof-story__journey-copy {
  grid-area: copy;
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.rp-proof-story__journey-copy strong {
  color: #83572f;
  font: 500 0.68rem/1.3 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rp-proof-story__journey-copy span {
  color: #766e66;
  font: 400 0.76rem/1.4 var(--font-sans, "Questrial", sans-serif);
}

.rp-proof-story__proofs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rp-proof-story__proof {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 64px;
  padding: 8px clamp(14px, 1.5vw, 26px);
  border-right: 1px solid var(--rp-proof-line);
}

.rp-proof-story__proof:last-child {
  border-right: 0;
}

.rp-proof-story__proof[hidden] {
  display: none;
}

.rp-proof-story__proof-icon {
  display: block;
  width: 38px;
  height: 38px;
  color: rgba(139, 96, 55, 0.76);
}

.rp-proof-story__proof > span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rp-proof-story__proof strong {
  color: #4f4942;
  font: 500 0.66rem/1.3 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rp-proof-story__proof small {
  color: #817970;
  font: 400 0.74rem/1.35 var(--font-sans, "Questrial", sans-serif);
}

.rp-proof-story:not(.is-visible) .rp-proof-story__eyebrow,
.rp-proof-story:not(.is-visible) h2,
.rp-proof-story:not(.is-visible) .rp-proof-story__intro,
.rp-proof-story:not(.is-visible) .rp-proof-story__review,
.rp-proof-story:not(.is-visible) .rp-proof-story__navigation,
.rp-proof-story:not(.is-visible) .rp-proof-story__media,
.rp-proof-story:not(.is-visible) .rp-proof-story__journey li,
.rp-proof-story:not(.is-visible) .rp-proof-story__proof {
  opacity: 0;
}

.rp-proof-story:not(.is-visible) .rp-proof-story__eyebrow,
.rp-proof-story:not(.is-visible) h2,
.rp-proof-story:not(.is-visible) .rp-proof-story__intro,
.rp-proof-story:not(.is-visible) .rp-proof-story__review,
.rp-proof-story:not(.is-visible) .rp-proof-story__navigation,
.rp-proof-story:not(.is-visible) .rp-proof-story__proof {
  transform: translateY(14px);
}

.rp-proof-story:not(.is-visible) .rp-proof-story__media {
  clip-path: inset(0 0 0 100%);
}

.rp-proof-story:not(.is-visible) .rp-proof-story__journey::before {
  transform: scaleX(0);
}

.rp-proof-story__eyebrow,
.rp-proof-story h2,
.rp-proof-story__intro,
.rp-proof-story__review,
.rp-proof-story__navigation,
.rp-proof-story__media,
.rp-proof-story__journey li,
.rp-proof-story__journey::before,
.rp-proof-story__proof {
  transition:
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 780ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-proof-story.is-visible h2 { transition-delay: 70ms; }
.rp-proof-story.is-visible .rp-proof-story__intro { transition-delay: 120ms; }
.rp-proof-story.is-visible .rp-proof-story__review { transition-delay: 180ms; }
.rp-proof-story.is-visible .rp-proof-story__media { transition-delay: 120ms; }
.rp-proof-story.is-visible .rp-proof-story__journey li:nth-child(1) { transition-delay: 300ms; }
.rp-proof-story.is-visible .rp-proof-story__journey li:nth-child(2) { transition-delay: 360ms; }
.rp-proof-story.is-visible .rp-proof-story__journey li:nth-child(3) { transition-delay: 420ms; }
.rp-proof-story.is-visible .rp-proof-story__journey li:nth-child(4) { transition-delay: 480ms; }
.rp-proof-story.is-visible .rp-proof-story__proof:nth-child(1) { transition-delay: 560ms; }
.rp-proof-story.is-visible .rp-proof-story__proof:nth-child(2) { transition-delay: 610ms; }
.rp-proof-story.is-visible .rp-proof-story__proof:nth-child(3) { transition-delay: 660ms; }

@keyframes rp-proof-image-reveal {
  from {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

@keyframes rp-proof-copy-settle {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Compact desktop/laptop composition, including 1366 × 768. */
@media (min-width: 1025px) and (max-height: 840px) {
  .rp-proof-story {
    padding-block: 22px 18px;
  }

  .rp-proof-story__container {
    gap: 14px;
  }

  .rp-proof-story__hero {
    min-height: 390px;
  }

  .rp-proof-story__content {
    padding-block: 22px;
  }

  .rp-proof-story h2 {
    font-size: clamp(2.2rem, 3.55vw, 4rem);
  }

  .rp-proof-story__intro {
    margin-top: 12px;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .rp-proof-story__review {
    min-height: 168px;
    margin-top: 18px;
  }

  .rp-proof-story blockquote {
    font-size: clamp(1.55rem, 2.15vw, 2.65rem);
  }

  .rp-proof-story__rating {
    margin-top: 10px;
  }

  .rp-proof-story__product-link {
    margin-top: 8px;
  }

  .rp-proof-story__navigation {
    padding-top: 10px;
  }

  .rp-proof-story__journey {
    padding-block: 12px 10px;
  }

  .rp-proof-story__journey::before {
    top: 23px;
  }

  .rp-proof-story__journey li {
    gap: 5px 10px;
  }

  .rp-proof-story__journey-icon {
    width: 31px;
    height: 31px;
  }

  .rp-proof-story__journey-copy span {
    font-size: 0.68rem;
  }

  .rp-proof-story__proof {
    min-height: 54px;
  }

  .rp-proof-story__proof-icon {
    width: 31px;
    height: 31px;
  }
}

/* Tablet: image first, story below, 2 × 2 journey. */
@media (max-width: 1024px) {
  .rp-proof-story {
    padding-block: clamp(56px, 8vw, 84px) clamp(42px, 6vw, 66px);
  }

  .rp-proof-story__hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .rp-proof-story__media {
    order: 1;
    aspect-ratio: 3 / 2;
  }

  .rp-proof-story__content {
    order: 2;
    padding: 30px 0 0;
  }

  .rp-proof-story__image-edge {
    display: none;
  }

  .rp-proof-story__intro {
    max-width: 54ch;
  }

  .rp-proof-story blockquote {
    max-width: 19ch;
  }

  .rp-proof-story__review {
    min-height: 0;
  }

  .rp-proof-story__navigation {
    margin-top: 18px;
  }

  .rp-proof-story__journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .rp-proof-story__journey::before {
    display: none;
  }

  .rp-proof-story__journey li {
    min-height: 106px;
    padding-block: 15px;
    border-bottom: 1px solid var(--rp-proof-line);
  }

  .rp-proof-story__journey li:nth-child(2n) {
    border-right: 0;
  }

  .rp-proof-story__journey li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

/* Mobile: one-column story and vertical journey. */
@media (max-width: 640px) {
  .rp-proof-story {
    padding-block: 54px 44px;
  }

  .rp-proof-story__container {
    gap: 24px;
  }

  .rp-proof-story h2 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .rp-proof-story__intro {
    margin-top: 16px;
    font-size: 0.94rem;
  }

  .rp-proof-story__media {
    aspect-ratio: 4 / 3;
  }

  .rp-proof-story__image {
    object-position: center center;
  }

  .rp-proof-story__content {
    padding-top: 24px;
  }

  .rp-proof-story__review {
    margin-top: 22px;
  }

  .rp-proof-story__quote-mark {
    height: 24px;
    font-size: 3.7rem;
  }

  .rp-proof-story blockquote {
    max-width: 100%;
    font-size: clamp(1.65rem, 8vw, 2.45rem);
  }

  .rp-proof-story__navigation {
    flex-wrap: wrap;
    gap: 11px;
  }

  .rp-proof-story__progress {
    order: 2;
  }

  .rp-proof-story__index {
    order: 3;
  }

  .rp-proof-story__journey {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    border-bottom: 0;
  }

  .rp-proof-story__journey::before {
    display: block;
    left: 17px;
    right: auto;
    top: 24px;
    bottom: 24px;
    width: 1px;
    height: auto;
    transform: scaleY(1);
    transform-origin: top center;
  }

  .rp-proof-story__journey li {
    grid-template-columns: 35px 34px minmax(0, 1fr);
    grid-template-areas: "node icon copy";
    align-items: center;
    gap: 11px;
    min-height: 88px;
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rp-proof-line);
  }

  .rp-proof-story__journey li:last-child {
    border-bottom: 0;
  }

  .rp-proof-story__journey-node {
    justify-content: center;
  }

  .rp-proof-story__journey-icon {
    width: 32px;
    height: 32px;
  }

  .rp-proof-story__journey-copy span {
    font-size: 0.74rem;
  }

  .rp-proof-story__proofs {
    grid-template-columns: 1fr;
  }

  .rp-proof-story__proof {
    min-height: 70px;
    border-right: 0;
    border-bottom: 1px solid var(--rp-proof-line);
    padding-inline: 0;
  }

  .rp-proof-story__proof:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-proof-story *,
  .rp-proof-story *::before,
  .rp-proof-story *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 180ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .rp-proof-story__media {
    clip-path: none !important;
  }

  .rp-proof-story__journey::before {
    transform: none !important;
  }
}
