.page-testimonials {
  background: #fff;
}

.page-testimonials .testimonials-hero {
  position: relative;
  min-height: 680px;
  padding: 168px 0 78px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 15%, rgba(5,88,234,.17), transparent 27%),
    radial-gradient(circle at 78% 78%, rgba(249,30,101,.16), transparent 32%),
    linear-gradient(135deg, #fff 0%, #f8f3ff 54%, #fff2f7 100%);
}

.page-testimonials .testimonials-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image: radial-gradient(rgba(99,5,244,.3) 1px, transparent 1px);
  background-size: 27px 27px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 90%);
}

.page-testimonials .testimonials-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1.04fr) minmax(340px,.96fr);
  gap: 58px;
  align-items: center;
}

.page-testimonials .testimonials-hero-copy h1 {
  max-width: 790px;
  margin-top: 24px;
  letter-spacing: -.055em;
}

.page-testimonials .testimonials-hero-copy > p {
  max-width: 720px;
  margin-top: 25px;
  color: #554e62;
  font-size: 18px;
}

.page-testimonials .testimonials-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.page-testimonials .testimonials-hero-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 670px;
  margin-top: 25px;
  padding: 14px 16px;
  border: 1px solid rgba(99,5,244,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 14px 35px rgba(42,22,92,.07);
  color: #655e70;
  font-size: 13px;
}

.page-testimonials .testimonials-hero-note strong {
  flex: 0 0 auto;
  color: var(--purple);
}

.page-testimonials .proof-orbit {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.page-testimonials .proof-orbit::before,
.page-testimonials .proof-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(99,5,244,.2);
}

.page-testimonials .proof-orbit::before { width: 395px; height: 395px; }
.page-testimonials .proof-orbit::after { width: 285px; height: 285px; border-style: dashed; }

.page-testimonials .proof-orbit-core {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  padding: 30px;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, var(--pink), var(--purple) 58%, var(--blue));
  box-shadow: 0 38px 90px rgba(99,5,244,.31);
}

.page-testimonials .proof-orbit-core small {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.page-testimonials .proof-orbit-core strong {
  margin-top: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 31px;
  line-height: 1;
}

.page-testimonials .proof-orbit-core span {
  margin-top: 10px;
  color: rgba(255,255,255,.78);
  font-size: 11px;
}

.page-testimonials .proof-orbit-chip {
  position: absolute;
  z-index: 3;
  min-width: 155px;
  padding: 12px 14px;
  border: 1px solid rgba(17,24,39,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 17px 44px rgba(42,22,92,.14);
  color: #423a50;
  font-size: 11px;
  font-weight: 800;
}

.page-testimonials .proof-orbit-chip span {
  display: block;
  margin-top: 3px;
  color: #8a8293;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-testimonials .proof-orbit-chip.c1 { top: 36px; left: 0; }
.page-testimonials .proof-orbit-chip.c2 { top: 84px; right: -8px; }
.page-testimonials .proof-orbit-chip.c3 { bottom: 66px; left: -14px; }
.page-testimonials .proof-orbit-chip.c4 { bottom: 24px; right: 12px; }

.page-testimonials .testimonials-switch-wrap {
  position: sticky;
  top: 96px;
  z-index: 20;
  padding: 18px 0;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(17,24,39,.08);
}

.page-testimonials .testimonials-switch {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  max-width: 720px;
  margin-inline: auto;
  padding: 8px;
  border: 1px solid rgba(17,24,39,.1);
  border-radius: 18px;
  background: #f5f1fb;
  box-shadow: 0 14px 36px rgba(42,22,92,.08);
}

.page-testimonials .testimonial-tab {
  min-height: 52px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #635b6d;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .25s ease;
}

.page-testimonials .testimonial-tab:hover { color: var(--purple); }
.page-testimonials .testimonial-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg,var(--pink),var(--purple) 58%,var(--blue));
  box-shadow: 0 12px 30px rgba(99,5,244,.24);
}

.page-testimonials .testimonial-panel[hidden] { display: none !important; }

.page-testimonials .cohort-proof-strip {
  padding: 32px 0;
  background: var(--ink-2);
  color: #fff;
}

.page-testimonials .cohort-proof-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  background: rgba(255,255,255,.11);
}

.page-testimonials .cohort-proof-grid > div {
  min-height: 126px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink-2);
}

.page-testimonials .cohort-proof-grid strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 30px;
  line-height: 1;
}

.page-testimonials .cohort-proof-grid span {
  margin-top: 8px;
  color: rgba(255,255,255,.57);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-testimonials .testimonial-section-head {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(310px,.92fr);
  gap: 46px;
  align-items: end;
}

.page-testimonials .testimonial-section-head .section-intro {
  justify-self: end;
  margin-top: 0;
}

.page-testimonials .featured-story-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
  margin-top: 42px;
}

.page-testimonials .featured-story-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(17,24,39,.1);
  border-radius: 27px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(42,22,92,.09);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.page-testimonials .featured-story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(42,22,92,.15);
}

.page-testimonials .featured-story-media {
  position: relative;
  height: 320px;
  padding: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 12%, rgba(5,88,234,.16), transparent 29%),
    linear-gradient(145deg,#f8f4ff,#fff1f7);
}

.page-testimonials .featured-story-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 17px 27px rgba(42,22,92,.17));
  transition: transform .35s var(--ease);
}

.page-testimonials .featured-story-card:hover .featured-story-media img { transform: scale(1.025); }

.page-testimonials .featured-proof-chip {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17,20,43,.88);
  backdrop-filter: blur(12px);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-testimonials .featured-story-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.page-testimonials .featured-story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--purple);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-testimonials .featured-story-copy h3 {
  margin-top: 15px;
  font-size: 26px;
  line-height: 1.12;
}

.page-testimonials .featured-story-copy p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
}

.page-testimonials .proof-view-button {
  width: 100%;
  min-height: 45px;
  margin-top: 22px;
  border: 1px solid rgba(99,5,244,.16);
  border-radius: 12px;
  color: var(--purple);
  background: rgba(99,5,244,.06);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .25s ease;
}

.page-testimonials .proof-view-button:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg,var(--pink),var(--purple));
  transform: translateY(-2px);
}

.page-testimonials .proof-library-section { background: #f7f4ff; }

.page-testimonials .proof-library-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.page-testimonials .proof-filter {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(17,24,39,.11);
  border-radius: 999px;
  background: #fff;
  color: #675f70;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: .25s ease;
}

.page-testimonials .proof-filter:hover { color: var(--purple); border-color: rgba(99,5,244,.28); }
.page-testimonials .proof-filter.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--ink-2);
  box-shadow: 0 10px 24px rgba(17,20,43,.16);
}

.page-testimonials .proof-library-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin-top: 30px;
}

.page-testimonials .proof-library-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(17,24,39,.1);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 13px 36px rgba(42,22,92,.07);
  transition: transform .25s var(--ease), opacity .2s ease;
}

.page-testimonials .proof-library-card:hover { transform: translateY(-4px); }
.page-testimonials .proof-library-card.is-filtered-out { display: none; }

.page-testimonials .proof-library-media {
  width: 100%;
  height: 285px;
  padding: 12px;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(145deg,#f7f4ff,#fff);
  cursor: zoom-in;
}

.page-testimonials .proof-library-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-testimonials .proof-library-copy { padding: 16px; }
.page-testimonials .proof-library-copy span {
  color: var(--purple);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.page-testimonials .proof-library-copy h3 {
  margin-top: 7px;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.page-testimonials .proof-disclaimer {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(99,5,244,.13);
  border-radius: 17px;
  background: rgba(255,255,255,.74);
  color: #6e6677;
  font-size: 12px;
}

.page-testimonials .proof-disclaimer strong { color: #3f354b; }

.page-testimonials .service-proof-empty {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr);
  gap: 44px;
  align-items: center;
  padding: 52px;
  border-radius: 31px;
  color: #fff;
  background:
    radial-gradient(circle at 89% 17%, rgba(5,88,234,.48), transparent 28%),
    linear-gradient(135deg,#18142b,#3c176c 60%,#681184);
  box-shadow: 0 30px 80px rgba(42,22,92,.25);
}

.page-testimonials .service-proof-empty h2 { margin-top: 18px; }
.page-testimonials .service-proof-empty p { max-width: 720px; margin-top: 18px; color: rgba(255,255,255,.69); }
.page-testimonials .service-proof-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }

.page-testimonials .service-proof-visual {
  min-height: 320px;
  display: grid;
  place-items: center;
}

.page-testimonials .service-proof-stack {
  position: relative;
  width: min(100%,360px);
  height: 260px;
}

.page-testimonials .service-proof-card {
  position: absolute;
  inset: 0;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 56px rgba(0,0,0,.22);
}

.page-testimonials .service-proof-card:nth-child(1) { transform: translate(-22px,18px) rotate(-5deg); opacity: .46; }
.page-testimonials .service-proof-card:nth-child(2) { transform: translate(18px,-12px) rotate(4deg); opacity: .72; }
.page-testimonials .service-proof-card:nth-child(3) { display: flex; flex-direction: column; justify-content: space-between; }
.page-testimonials .service-proof-card strong { font-family: "Plus Jakarta Sans",sans-serif; font-size: 24px; }
.page-testimonials .service-proof-card span { color: rgba(255,255,255,.62); font-size: 12px; }
.page-testimonials .service-proof-card b { color: #d7c8ff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.page-testimonials .testimonials-final-cta {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 38px;
  align-items: center;
  padding: 48px;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg,var(--pink),var(--purple) 58%,var(--blue));
  box-shadow: 0 30px 80px rgba(99,5,244,.25);
}
.page-testimonials .testimonials-final-cta h2 { margin-top: 17px; }
.page-testimonials .testimonials-final-cta p { max-width: 690px; margin-top: 14px; color: rgba(255,255,255,.75); }
.page-testimonials .testimonials-final-cta > div:last-child { text-align: center; }
.page-testimonials .testimonials-final-cta small { display: block; margin-top: 11px; color: rgba(255,255,255,.65); }

.page-testimonials .proof-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  background: rgba(8,8,16,.88);
  backdrop-filter: blur(14px);
  transition: opacity .25s ease, visibility .25s ease;
}

.page-testimonials .proof-lightbox.is-open { opacity: 1; visibility: visible; }
.page-testimonials .proof-lightbox-dialog {
  position: relative;
  width: min(100%,1040px);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 25px;
  background: #10101b;
  box-shadow: 0 38px 100px rgba(0,0,0,.48);
}

.page-testimonials .proof-lightbox-image-wrap {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 22px;
}

.page-testimonials .proof-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 14px;
}

.page-testimonials .proof-lightbox-caption {
  padding: 16px 22px;
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.05);
  font-size: 13px;
}

.page-testimonials .proof-lightbox-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.6);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

body.proof-lightbox-open { overflow: hidden; }

@media (max-width: 1050px) {
  .page-testimonials .testimonials-hero { min-height: auto; padding: 156px 0 70px; }
  .page-testimonials .testimonials-hero-grid,
  .page-testimonials .testimonial-section-head,
  .page-testimonials .service-proof-empty,
  .page-testimonials .testimonials-final-cta { grid-template-columns: 1fr; }
  .page-testimonials .proof-orbit { max-width: 620px; width: 100%; margin: 0 auto; }
  .page-testimonials .testimonial-section-head .section-intro { justify-self: start; margin-top: 18px; }
  .page-testimonials .featured-story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-testimonials .proof-library-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .page-testimonials .testimonials-final-cta > div:last-child { text-align: left; }
}

@media (max-width: 780px) {
  .page-testimonials .testimonials-switch-wrap { top: 78px; padding: 12px 0; }
  .page-testimonials .cohort-proof-grid { grid-template-columns: repeat(2,1fr); }
  .page-testimonials .featured-story-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-right: calc((100vw - var(--container)) / -2);
    padding-right: 20px;
  }
  .page-testimonials .featured-story-grid::-webkit-scrollbar { display: none; }
  .page-testimonials .featured-story-card { flex: 0 0 min(82vw,360px); scroll-snap-align: start; }
  .page-testimonials .proof-library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-testimonials .proof-library-media { height: 255px; }
}

@media (max-width: 720px) {
  .page-testimonials .testimonials-hero { padding: 132px 0 58px; }
  .page-testimonials .testimonials-hero-copy > p { font-size: 16px; }
  .page-testimonials .testimonials-hero-actions .btn { width: 100%; }
  .page-testimonials .proof-orbit { min-height: 350px; }
  .page-testimonials .proof-orbit::before { width: 310px; height: 310px; }
  .page-testimonials .proof-orbit::after { width: 225px; height: 225px; }
  .page-testimonials .proof-orbit-core { width: 165px; height: 165px; padding: 22px; }
  .page-testimonials .proof-orbit-core strong { font-size: 23px; }
  .page-testimonials .proof-orbit-chip { min-width: 125px; padding: 9px 10px; font-size: 9px; }
  .page-testimonials .proof-orbit-chip.c1 { left: 0; top: 24px; }
  .page-testimonials .proof-orbit-chip.c2 { right: 0; top: 63px; }
  .page-testimonials .proof-orbit-chip.c3 { left: 0; bottom: 50px; }
  .page-testimonials .proof-orbit-chip.c4 { right: 3px; bottom: 17px; }
  .page-testimonials .testimonial-tab { min-height: 48px; font-size: 11px; }
  .page-testimonials .cohort-proof-grid > div { min-height: 105px; padding: 18px; }
  .page-testimonials .cohort-proof-grid strong { font-size: 25px; }
  .page-testimonials .featured-story-media { height: 285px; }
  .page-testimonials .featured-story-copy { padding: 21px; }
  .page-testimonials .featured-story-copy h3 { font-size: 23px; }
  .page-testimonials .service-proof-empty,
  .page-testimonials .testimonials-final-cta { padding: 32px 24px; }
  .page-testimonials .service-proof-visual { min-height: 270px; }
}

@media (max-width: 520px) {
  .page-testimonials .testimonials-switch { gap: 6px; padding: 6px; }
  .page-testimonials .testimonial-tab { padding: 0 9px; font-size: 10px; }
  .page-testimonials .cohort-proof-grid { grid-template-columns: 1fr 1fr; }
  .page-testimonials .cohort-proof-grid span { font-size: 9px; }
  .page-testimonials .proof-library-grid { grid-template-columns: 1fr; }
  .page-testimonials .proof-library-media { height: 330px; }
  .page-testimonials .proof-lightbox { padding: 10px; }
  .page-testimonials .proof-lightbox-dialog { max-height: calc(100vh - 20px); border-radius: 18px; }
  .page-testimonials .proof-lightbox-image-wrap { padding: 14px; }
}

/* Keep content visible if animation libraries fail. */
.page-testimonials .reveal { opacity: 1; transform: none; }
