/* Shared styles + motion support for the testimonials wall (.rv). Pairs with js/pages/story-motion.js. */

/* CTA buttons. */
.sp-btn { display:inline-flex; align-items:center; justify-content:center; min-height:54px; padding:15px 28px; border-radius:8px; border:1px solid transparent; font-size:15px; font-weight:600; line-height:1.2; transition:background .2s ease, border-color .2s ease, color .2s ease; }
.sp-btn--primary, .sp-btn--primary:focus { background:#138b4c; color:#fff; }
.sp-btn--primary:hover { background:#0f6f3c; color:#fff; }
.sp-btn--ghost, .sp-btn--ghost:focus { background:transparent; color:#fff; border-color:rgba(255,255,255,.45); }
.sp-btn--ghost:hover { background:rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.7); }
.sp-btn:focus-visible { outline:3px solid #2ec77e; outline-offset:3px; }

/* Off-screen start positions must never create a horizontal scrollbar. */
.rv { overflow-x:clip; }

/* Hide the intro until GSAP takes over, so the opening reveal does not flash.
   The class is added in <head> only when motion is allowed, and removed again
   after 1s as a safety net; if the script arrives later it skips the intro reveal. */
html.al-motion .rv-intro__title, html.al-motion .rv-intro__lead, html.al-motion .rv-toolbar { visibility:hidden; }

/* Word masks for split headings: the extra bottom padding keeps descenders (g, p, y) from clipping. */
.al-word { display:inline-block; overflow:hidden; vertical-align:top; padding-bottom:.12em; margin-bottom:-.12em; }
.al-word__inner { display:inline-block; will-change:transform; }

/* Hover physics: images ease in slightly on hover. */
.rv-thumb img { transition:transform .7s cubic-bezier(.22,.61,.36,1); }
.rv-card:hover .rv-thumb img { transform:scale(1.05); }

@media (prefers-reduced-motion:reduce) {
    .rv-thumb img { transition:none; }
    .rv-card:hover .rv-thumb img { transform:none; }
}
