.credentials-section {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 120px) clamp(14px, 4vw, 60px) clamp(74px, 9vw, 120px);
  background:
    linear-gradient(rgba(151, 7, 71, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 7, 71, 0.035) 1px, transparent 1px),
    #f8f3f5;
  background-size: 36px 36px;
  color: #22161c;
}

.credentials-inner {
  width: min(1260px, 100%);
  margin: 0 auto;
}

.credentials-heading {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.credentials-heading .kicker {
  color: #970747;
}

.credentials-heading h2 {
  margin: 10px 0 16px;
  color: #24151d;
}

.credentials-heading p:last-child {
  max-width: 680px;
  margin: 0 auto;
  color: #6f5d66;
  font-size: 1rem;
  line-height: 1.65;
}

.credentials-carousel {
  position: relative;
}

.credentials-stage {
  position: relative;
  width: 100%;
  height: clamp(330px, 48vw, 610px);
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.credentials-stage.is-dragging {
  cursor: grabbing;
}

.credentials-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(640px, 58vw);
  aspect-ratio: 1.295 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(61, 35, 47, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(58, 28, 42, 0.18);
  cursor: pointer;
  transform-origin: center;
  transition:
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 420ms ease,
    filter 420ms ease;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, opacity, filter;
}

.credentials-carousel.is-strip .credentials-card {
  transition: none;
}

.credentials-card img {
  user-select: none;
  -webkit-user-drag: none;
}

.credentials-card:focus-visible,
.credentials-arrow:focus-visible,
.credentials-view:focus-visible,
.credentials-dot:focus-visible,
.credentials-dialog-close:focus-visible {
  outline: 3px solid #970747;
  outline-offset: 4px;
}

.credentials-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.credentials-card[data-crop="cpr"] {
  aspect-ratio: 1.295 / 1;
}

.credentials-card[data-crop="cpr"] img {
  object-fit: contain;
}

.credentials-card[data-offset="0"] {
  z-index: 10;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) translateZ(110px) scale(1);
}

.credentials-card[data-offset="-1"] {
  z-index: 7;
  opacity: 0.72;
  filter: saturate(0.7) brightness(0.88);
  transform: translate(-93%, -50%) translateZ(-70px) rotateY(34deg) scale(0.74);
}

.credentials-card[data-offset="1"] {
  z-index: 7;
  opacity: 0.72;
  filter: saturate(0.7) brightness(0.88);
  transform: translate(-7%, -50%) translateZ(-70px) rotateY(-34deg) scale(0.74);
}

.credentials-card[data-offset="-2"] {
  z-index: 4;
  opacity: 0.28;
  filter: grayscale(0.35) brightness(0.8);
  transform: translate(-119%, -50%) translateZ(-190px) rotateY(44deg) scale(0.56);
}

.credentials-card[data-offset="2"] {
  z-index: 4;
  opacity: 0.28;
  filter: grayscale(0.35) brightness(0.8);
  transform: translate(19%, -50%) translateZ(-190px) rotateY(-44deg) scale(0.56);
}

.credentials-card[data-offset="hidden"] {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translateZ(-260px) scale(0.42);
}

.credentials-arrow {
  position: absolute;
  z-index: 20;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  border: 1px solid rgba(151, 7, 71, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #970747;
  box-shadow: 0 12px 30px rgba(75, 24, 48, 0.14);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.credentials-arrow:hover {
  background: #970747;
  color: #fff;
}

.credentials-prev {
  left: 0;
}

.credentials-next {
  right: 0;
}

.credentials-meta {
  min-height: 126px;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.credentials-count {
  color: #970747;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.credentials-meta h3 {
  margin: 0;
  color: #24151d;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0;
}

.credentials-meta p {
  margin: 0;
  color: #74636b;
  font-size: 0.92rem;
}

.credentials-view {
  margin-top: 5px;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: #970747;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.credentials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.credentials-dot {
  width: 9px;
  height: 9px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ccb9c2;
  cursor: pointer;
}

.credentials-dot[aria-current="true"] {
  background: #970747;
  transform: scale(1.35);
}

.credentials-dialog {
  width: min(1180px, calc(100% - 26px));
  max-width: 1180px;
  max-height: calc(100vh - 26px);
  padding: 54px 14px 14px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #170d12;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.46);
}

.credentials-dialog::backdrop {
  background: rgba(20, 8, 14, 0.8);
  backdrop-filter: blur(8px);
}

.credentials-dialog-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 98px);
  object-fit: contain;
  background: #fff;
}

.credentials-dialog-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 780px) {
  .credentials-stage {
    height: 430px;
  }

  .credentials-card {
    width: min(560px, 78vw);
  }

  .credentials-card[data-offset="-1"] {
    transform: translate(-100%, -50%) translateZ(-70px) rotateY(34deg) scale(0.65);
  }

  .credentials-card[data-offset="1"] {
    transform: translate(0%, -50%) translateZ(-70px) rotateY(-34deg) scale(0.65);
  }

  .credentials-card[data-offset="-2"],
  .credentials-card[data-offset="2"] {
    opacity: 0;
    pointer-events: none;
  }

  .credentials-arrow {
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .credentials-prev {
    left: calc(50% - 66px);
  }

  .credentials-next {
    right: calc(50% - 66px);
  }
}

@media (max-width: 560px) {
  .hero {
    order: 1;
  }

  .credentials-section {
    order: 2;
    padding: 58px 12px 70px;
  }

  .plan-video-section {
    order: 3;
  }

  .featured-reel:not(.plan-video-section) {
    order: 4;
  }

  .contact-section {
    order: 5;
  }

  .app-section {
    order: 6;
  }

  .proof-section {
    order: 7;
  }

  .instagram-section {
    order: 8;
  }

  .results-gallery {
    order: 9;
  }

  .macro-section {
    order: 10;
  }

  .youtube-section {
    order: 11;
  }

  .disclaimer-section {
    order: 12;
  }

  .credentials-heading {
    margin-bottom: 26px;
  }

  .credentials-heading h2 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .credentials-stage {
    height: 330px;
  }

  .credentials-card {
    width: 78vw;
  }

  .credentials-card[data-offset="-1"] {
    transform: translate(-106%, -50%) translateZ(-80px) rotateY(38deg) scale(0.58);
  }

  .credentials-card[data-offset="1"] {
    transform: translate(6%, -50%) translateZ(-80px) rotateY(-38deg) scale(0.58);
  }

  .credentials-meta {
    min-height: 142px;
    padding: 0 12px;
  }

  .credentials-meta h3 {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .credentials-card {
    transition: opacity 160ms ease;
  }
}
