/* Testimonial composition supplied in the design reference. */
.testimonials{padding:100px 6% 110px;background:#fff;color:#001a3d;color-scheme:light}
.testimonials-intro{max-width:1100px;margin:0 auto;text-align:center}
.testimonials h2{font-family:'Barlow Condensed',sans-serif;font-size:clamp(52px,6.5vw,96px);font-weight:800;line-height:.94;letter-spacing:-.025em}
.testimonials h2 span{color:#006bff}
.testimonials-intro>p{max-width:650px;margin:24px auto 0;font-size:16px;line-height:1.55;color:#263344}
.testimonial-stage{max-width:1000px;margin:34px auto 0;padding:52px 7.5% 112px;background:#f5f6f9;border-radius:24px}
.testimonial-stack{position:relative;isolation:isolate}
.testimonial-stack:before,.testimonial-stack:after{content:'';position:absolute;z-index:-1;background:#fff;border-radius:0 0 10px 10px;box-shadow:0 18px 30px #001a3d0c}
.testimonial-stack:before{inset:30px 8% -56px;opacity:.75}
.testimonial-stack:after{inset:15px 4.5% -31px;opacity:.9}
.testimonial-card{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.9fr);align-items:center;gap:30px;padding:32px;margin:0;border-radius:24px;background:white;box-shadow:0 16px 40px #001a3d09}

.testimonial-content{min-width:0}
.testimonial-quote-mark{display:block;height:55px;color:#006bff;font-family:Georgia,serif;font-size:88px;font-weight:bold;line-height:1}
.testimonial-card blockquote{margin:8px 0 0}
.testimonial-card blockquote p{font-size:clamp(18px,1.55vw,22px);line-height:1.5;font-style:italic;color:#545b6c}
.testimonial-card strong{font-weight:600}
.testimonial-author{margin-top:36px}
.testimonial-author p{font-size:16px;font-weight:600;line-height:1.4}
.testimonial-author span{display:block;margin-top:8px;font-size:14px;line-height:1.4;color:#606779}
.testimonial-control{position:absolute;top:50%;display:grid;place-items:center;width:48px;height:48px;padding:12px;border-radius:50%;border:0;transform:translateY(-50%)}
.testimonial-control:disabled{cursor:default}
.testimonial-control svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.testimonial-prev{left:-24px;background:#e8ebf2;color:#001a3d}
.testimonial-next{right:-24px;background:#006bff;color:#fff;box-shadow:0 3px 5px #006bff33}
@media(max-width:850px){.testimonials{padding:70px 6% 80px}.testimonial-stage{padding:40px 35px 96px}.testimonial-card{padding:28px;gap:24px}.testimonial-author{margin-top:24px}}
@media(max-width:600px){.testimonials h2{font-size:clamp(39px,8.5vw,54px)}.testimonials-intro>p{font-size:16px;margin-top:20px}.testimonial-stage{margin-top:30px;padding:30px 22px 78px;border-radius:18px}.testimonial-card{grid-template-columns:1fr;padding:26px 24px;gap:20px;border-radius:18px}.testimonial-portrait{max-width:190px;margin:auto}.testimonial-quote-mark{height:42px;font-size:74px}.testimonial-card blockquote p{font-size:18px}.testimonial-author{margin-top:24px}.testimonial-control{width:40px;height:40px;padding:8px}.testimonial-prev{left:-20px}.testimonial-next{right:-20px}.testimonial-stack:before{bottom:-42px}.testimonial-stack:after{bottom:-23px}}

.testimonial-stack{perspective:1200px}
.testimonial-card{transform-origin:50% 85%;backface-visibility:hidden;touch-action:pan-y}
.testimonial-card[hidden]{display:none}
.testimonial-stack:before,.testimonial-stack:after{transition:transform .6s cubic-bezier(.22,1,.36,1)}
.testimonial-stack.is-shuffling:before{transform:translateY(-14px) rotate(calc(var(--shuffle-direction,1)*-3deg))}
.testimonial-stack.is-shuffling:after{transform:translateY(-8px) rotate(calc(var(--shuffle-direction,1)*2deg))}
.testimonial-control{z-index:3;transition:background .2s,box-shadow .2s,scale .2s}
.testimonial-control:hover{scale:1.1;box-shadow:0 5px 18px #006bff30}
.testimonial-control:active{scale:.96}
.testimonial-control[aria-disabled=true]{cursor:wait}
.testimonial-stage:focus-visible{outline:3px solid #006bff;outline-offset:7px}
.testimonial-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.motion-paused .testimonial-stack:before,.motion-paused .testimonial-stack:after,.motion-paused .testimonial-control{transition:none}
@media(prefers-reduced-motion:reduce){.testimonial-stack:before,.testimonial-stack:after,.testimonial-control{transition:none}}

/* Separate scroll transforms preserve the existing carousel shuffle. */
.testimonials{overflow:clip}
.has-stack-motion .testimonial-stack:before{translate:var(--back-x,0px) var(--back-y,0px);rotate:var(--back-angle,0deg);scale:var(--back-scale,1);transform-origin:50% 85%}
.has-stack-motion .testimonial-stack:after{translate:var(--middle-x,0px) var(--middle-y,0px);rotate:var(--middle-angle,0deg);scale:var(--middle-scale,1);transform-origin:50% 85%}
.has-stack-motion .testimonial-card{translate:var(--front-x,0px) var(--front-y,0px);rotate:var(--front-angle,0deg);scale:var(--front-scale,1)}

/* Recorded client stories, with the existing scroll stack and shuffle. */
.testimonial-stage{max-width:1100px;position:relative}
.testimonial-card{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.testimonial-video-preview{position:relative;display:block;width:100%;padding:0;aspect-ratio:16/11;overflow:hidden;border-radius:14px;background:#001a3d;isolation:isolate}
.testimonial-video-preview>img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.testimonial-video-preview:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 45%,#00122c99);pointer-events:none;z-index:0}
.testimonial-video-preview:hover>img{transform:scale(1.045)}
.testimonial-play{position:absolute;top:50%;left:50%;translate:-50% -50%;display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:#006bff4d;border:1px solid #ffffff99;color:#ffffffe6;box-shadow:0 4px 18px #00122c26;z-index:1;transition:transform .25s}
.testimonial-play:before,.testimonial-play:after{content:'';position:absolute;inset:-8px;border:1px solid #ffffffb3;border-radius:inherit;animation:testimonial-play-pulse 2.8s ease-out infinite}
.testimonial-play:after{animation-delay:1.4s}
.testimonial-play svg{width:30px;height:30px;fill:currentColor;translate:-2px 0}
.testimonial-video-preview:hover .testimonial-play{transform:scale(1.08)}
.testimonial-watch{position:absolute;left:50%;bottom:16px;translate:-50% 0;display:flex;align-items:center;gap:8px;white-space:nowrap;font:600 14px/1.4 'DM Sans',sans-serif;background:#001a3d90;backdrop-filter:blur(10px);border:1px solid #ffffff40;border-radius:24px;padding:8px 13px;color:#fff;z-index:1}
.testimonial-video-kicker{font-size:12px;font-weight:600;letter-spacing:.1em;color:#006bff;margin-bottom:12px}
.testimonial-video-title{font:800 clamp(32px,3.4vw,48px)/1 'Barlow Condensed',sans-serif;letter-spacing:-.015em;color:#001a3d}
.testimonial-video-description{font-size:16px;line-height:1.5;color:#545b6c;margin-top:14px}
.testimonial-count{position:absolute;bottom:25px;left:0;right:0;text-align:center;font-size:13px;font-weight:600;letter-spacing:.15em;color:#46617e}
.testimonial-video-open{overflow:hidden}
.testimonial-video-dialog{width:min(1000px,92vw);max-height:92svh;margin:auto;padding:18px;border:1px solid #ffffff24;border-radius:20px;background:#001a3d;color:#fff;box-shadow:0 24px 100px #0009;overflow:auto}
.testimonial-video-dialog[open]{animation:testimonial-player-in .22s ease-out}
.testimonial-video-dialog::backdrop{background:#00122cdb;backdrop-filter:blur(10px)}
.testimonial-video-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 16px}
.testimonial-video-dialog h2{font:600 20px/1.3 'DM Sans',sans-serif;letter-spacing:-.02em}
.testimonial-video-close{display:flex;align-items:center;gap:12px;flex-shrink:0;min-height:44px;padding:10px 16px;border-radius:30px;background:#006bff;color:#fff;font-size:14px;font-weight:600}
.testimonial-video-close span{font-size:24px;line-height:1}
.testimonial-player{display:block;width:100%;max-height:72svh;aspect-ratio:16/9;border-radius:10px;background:#000;object-fit:contain}
.testimonial-video-error{padding:16px;font-size:16px}
@keyframes testimonial-play-pulse{0%{transform:scale(.9);opacity:.8}85%,100%{transform:scale(1.4);opacity:0}}
@keyframes testimonial-player-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:600px){.testimonial-card{grid-template-columns:1fr;padding:22px;gap:24px}.testimonial-video-preview{aspect-ratio:16/10}.testimonial-video-title{font-size:36px}.testimonial-video-dialog{padding:12px;border-radius:16px}.testimonial-video-dialog-head{gap:10px}.testimonial-video-dialog h2{font-size:16px}.testimonial-video-close{padding:9px 12px;font-size:12px}.testimonial-count{bottom:18px}}
@media(prefers-reduced-motion:reduce){.testimonial-play:before,.testimonial-play:after,.testimonial-video-dialog[open]{animation:none}.testimonial-play:before,.testimonial-play:after{display:none}.testimonial-video-preview>img,.testimonial-play{transition:none}}
.motion-paused .testimonial-play:before,.motion-paused .testimonial-play:after,.motion-paused .testimonial-video-dialog[open]{animation:none}
.motion-paused .testimonial-play:before,.motion-paused .testimonial-play:after{display:none}
.motion-paused .testimonial-video-preview>img,.motion-paused .testimonial-play{transition:none}

.testimonial-company{display:flex;align-items:center;gap:12px}
.testimonial-company>p{min-width:0}
.testimonial-website{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid #006bff30;border-radius:50%;background:#edf4ff;color:#006bff;transition:background .2s,color .2s,transform .2s}
.testimonial-website svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.testimonial-website:hover{background:#006bff;color:#fff;transform:translateY(-2px)}
.testimonial-website:focus-visible{outline:3px solid #006bff;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.testimonial-website{transition:none}.testimonial-website:hover{transform:none}}
.motion-paused .testimonial-website{transition:none}
.motion-paused .testimonial-website:hover{transform:none}
