:root {
  --scroll-progress: 0;
  --pointer-x: 50%;
  --pointer-y: 32%;
}

.scroll-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: calc(var(--scroll-progress) * 100%);
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, #a95418, #e2b884 55%, #6f6642);
  box-shadow: 0 0 18px rgba(169, 84, 24, .45);
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(.985);
  transition: opacity .85s cubic-bezier(.2,.72,.2,1), transform .85s cubic-bezier(.2,.72,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

[data-depth] {
  --parallax-y: 0px;
  transform: translate3d(0, var(--parallax-y), 0);
  will-change: transform;
}

.depth-stage { perspective: 1100px; perspective-origin: var(--pointer-x) var(--pointer-y); }
.tilt-surface {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --base-tilt-y: 0deg;
  --base-tilt-z: 0deg;
  --lift: 0px;
  transform: perspective(1050px) translate3d(0, var(--lift), 0) rotateX(var(--tilt-x)) rotateY(calc(var(--tilt-y) + var(--base-tilt-y))) rotateZ(var(--base-tilt-z));
  transform-style: preserve-3d;
  transition: transform .42s cubic-bezier(.2,.72,.2,1), box-shadow .42s ease;
  will-change: transform;
}
.tilt-surface > * { transform: translateZ(18px); }
.tilt-surface:hover { --lift: -7px; }

.testimonial-proof {
  position: relative;
  max-width: 100%;
  margin-top: 58px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 34px;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(226,184,132,.18), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 32px 80px rgba(0,0,0,.22);
  overflow: hidden;
}
.testimonial-proof::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.08) 48%, transparent 70%);
  transform: translateX(-80%);
  content: "";
  animation: proofSheen 9s ease-in-out infinite;
}
@keyframes proofSheen { 0%, 62%, 100% { transform: translateX(-80%); } 78% { transform: translateX(80%); } }
.testimonial-proof__eyebrow { margin: 0 0 8px; color: #e2b884; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.testimonial-proof__title { max-width: 670px; margin: 0; color: #fffdf9; font-family: var(--title, Georgia, serif); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 400; line-height: 1.02; }
.testimonial-proof__lead { max-width: 610px; margin: 14px 0 0; color: rgba(255,255,255,.72); }
.testimonial-proof__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 2.2vw, 28px);
  margin-top: 36px;
  perspective: 1200px;
}
.proof-shot {
  position: relative;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: rgba(255,253,249,.96);
  box-shadow: 0 28px 60px rgba(0,0,0,.28);
  overflow: hidden;
}
.proof-shot:nth-child(1) { --base-tilt-y: 4deg; --base-tilt-z: -1.3deg; }
.proof-shot:nth-child(2) { margin-top: 34px; }
.proof-shot:nth-child(3) { --base-tilt-y: -4deg; --base-tilt-z: 1.3deg; }
.proof-shot.tilt-surface {
  transform: perspective(1050px) translate3d(0, var(--lift), 0) rotateX(var(--tilt-x)) rotateY(calc(var(--tilt-y) + var(--base-tilt-y))) rotateZ(var(--base-tilt-z));
}
.proof-shot img { display: block; width: 100%; height: auto; border-radius: 17px; background: #efe7df; }
.proof-shot figcaption { padding: 12px 8px 7px; color: #604c40; font-size: .76rem; font-weight: 800; text-align: center; }
.proof-shot .proof-shot__stamp {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  padding: 6px 9px;
  border: 1px solid rgba(111,102,66,.18);
  border-radius: 999px;
  color: #6f6642;
  background: rgba(255,253,249,.92);
  box-shadow: 0 8px 20px rgba(70,56,47,.12);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Prova social precisa estar legível antes mesmo do primeiro frame de animação. */
.testimonials .section-title,
.testimonials .section-lead {
  opacity: 1 !important;
  transform: none !important;
}

.bio-premium::before,
.bio-premium::after {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  content: "";
}
.bio-premium::before { top: -140px; right: -120px; background: rgba(169,84,24,.16); }
.bio-premium::after { bottom: -170px; left: -120px; background: rgba(111,102,66,.2); }
.bio-premium .shell { position: relative; isolation: isolate; }
.bio-premium .shell::before {
  position: absolute;
  z-index: -1;
  inset: 20px -18px 0;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,255,255,.18));
  box-shadow: 0 32px 90px rgba(70,56,47,.13);
  backdrop-filter: blur(22px);
  content: "";
}
.bio-premium .portrait-wrap { filter: drop-shadow(0 24px 28px rgba(70,56,47,.2)); }
.bio-premium .link-card { backdrop-filter: blur(16px); }
.bio-premium .link-card--primary { background: linear-gradient(135deg, #9c4814, #bd6828); }
.bio-premium .profile-seal { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 6px 10px; border: 1px solid rgba(111,102,66,.2); border-radius: 999px; color: #6f6642; background: rgba(255,253,249,.64); font-size: .65rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.bio-premium .profile-seal::before { width: 7px; height: 7px; border-radius: 50%; background: #5f8d5f; box-shadow: 0 0 0 4px rgba(95,141,95,.13); content: ""; }

@media (max-width: 900px) {
  .testimonial-proof { border-radius: 26px; }
  .testimonial-proof__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .proof-shot:nth-child(n) { margin-top: 0; transform: none; }
}

@media (max-width: 600px) {
  .scroll-progress { height: 2px; }
  .testimonial-proof { margin-inline: -8px; padding: 24px 14px; }
  .testimonial-proof__grid {
    display: grid;
    width: 100%;
    margin: 28px 0 0;
    padding: 0;
    gap: 18px;
    overflow: visible;
  }
  .proof-shot {
    width: 100%;
    min-height: 0;
  }
  .bio-premium .shell::before { inset: 12px -6px 0; border-radius: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-depth], .tilt-surface, .proof-shot:nth-child(n) { transform: none !important; transition: none !important; }
  .testimonial-proof::before { animation: none; }
  .scroll-progress { display: none; }
}
