/* The StartupLeads — Testimonials page
   Single, consolidated stylesheet. Video thumbnails use true 9:16 ratio.
   Keep brand-system.css loaded after this stylesheet. */

/* Page hero */
.ts-gradient { color: #25B8F5; }
.ts-hero { position: relative; overflow: hidden; padding: 95px 0 58px; background: radial-gradient(ellipse at 50% 10%, rgba(8,120,232,.14),transparent 62%),#0A1120; }
.ts-hero::after { content: ''; position: absolute; inset: 0; opacity: .22; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size: 84px 84px; }
.ts-center { position: relative; z-index: 1; text-align: center; }
.ts-eyebrow { display: flex; align-items: center; gap: 12px; color: #25B8F5; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 700; }
.ts-center .ts-eyebrow,.ts-eyebrow-centered { justify-content: center; }
.ts-eyebrow i { display: inline-block; width: 28px; height: 3px; background: #0878E8; transform: skew(-25deg); }
.ts-hero h1 { margin: 24px auto; max-width: 1050px; color: #fff; font: 700 clamp(44px,5vw,64px)/1.12 'Space Grotesk',sans-serif; letter-spacing: -.045em; }
.ts-hero p { max-width: 760px; margin: 0 auto; color: #AABBD0; font-size: 18px; line-height: 1.8; }
.ts-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.ts-pills span { border: 1px solid #253A55; padding: 9px 17px; border-radius: 999px; background: #14243C; color: #AABBD0; font-size: 13px; }
.ts-scroll-link { display: inline-block; margin-top: 24px; color: #25B8F5; font-size: 14px; text-decoration: none; }
.ts-scroll-link span { margin-left: 8px; }

/* Video gallery: four portrait cards per desktop row */
.ts-videos { padding: 64px 0 80px; background: #0A1120; }
.ts-section-top { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.ts-section-top h2 { margin: 16px 0 8px; font: 700 clamp(34px,4vw,44px)/1.15 'Space Grotesk',sans-serif; letter-spacing: -.045em; }
.ts-section-top p { margin: 0; color: #AABBD0; font-size: 17px; }
.ts-video-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; width: 100%; }
.ts-video-card { display: flex; flex-direction: column; min-width: 0; background: #14243C; border: 1px solid #253A55; border-radius: 12px; overflow: hidden; transition: border-color .2s ease; }
.ts-video-card:hover { border-color: #0878E8; }
.ts-video-play { position: relative; display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 9 / 16; padding: 0; margin: 0; border: 0; overflow: hidden; background: #0A1120; color: #fff; cursor: pointer; flex: 0 0 auto; }
.ts-video-play img.ts-vimeo-thumbnail { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; object-position: center; transform: none; pointer-events: none; }
.ts-video-play video.ts-video-preview { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; pointer-events: none; }
.ts-play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: #0878E8; font-size: 23px; line-height: 1; box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.ts-video-play:hover .ts-play-icon { background: #0752B8; }
.ts-video-play:focus-visible { outline: 3px solid #25B8F5; outline-offset: -3px; }
.ts-video-card-info { flex: 1; padding: 16px 15px 18px; background: #14243C; }
.ts-video-card-info h3 { margin: 0 0 6px; color: #fff; font: 700 15px/1.45 'Space Grotesk',sans-serif; overflow-wrap: anywhere; }
.ts-video-card-info p { margin: 0; color: #AABBD0; font: 400 13px/1.6 Inter,sans-serif; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ts-video-empty { grid-column: 1/-1; border: 1px dashed #253A55; border-radius: 12px; padding: 40px 20px; text-align: center; color: #AABBD0; }
.ts-gallery-actions { display: none; }
.ts-video-card[hidden] { display: flex !important; }

/* Vimeo popup player */
.ts-player-modal[hidden] { display: none !important; }
.ts-player-modal { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 20px; }
.ts-player-backdrop { position: absolute; inset: 0; background: rgba(2,7,16,.92); }
.ts-player-window { position: relative; width: min(100%,550px); max-height: 95vh; overflow: hidden; border: 1px solid #253A55; border-radius: 12px; background: #14243C; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.ts-player-top { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.ts-player-top h2 { flex: 1; min-width: 0; margin: 0; color: white; font: 700 17px/1.4 'Space Grotesk',sans-serif; }
.ts-player-description { display: none; }
.ts-player-top button { border: 0; background: transparent; color: white; font-size: 32px; line-height: 1; cursor: pointer; }
.ts-player-window video,.ts-player-window iframe { display: block; width: 100%; height: min(75vh,870px); aspect-ratio: 9/16; border: 0; background: #000; }
.ts-player-modal-open { overflow: hidden; }

/* Google Reviews */
.ts-google { background: #0D1829; padding: 100px 0 110px; }
.ts-big-heading { margin: 22px 0 50px; text-align: center; color: white; font: 700 clamp(36px,5vw,64px)/1.15 'Space Grotesk',sans-serif; letter-spacing: -.045em; }
.ts-big-heading span { color: #AABBD0; }
.ts-review-layout { display: grid; grid-template-columns: 205px minmax(0,1fr); gap: 22px; align-items: center; }
.ts-rating-panel { text-align: center; }
.ts-trust-title { color: white; font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.ts-rating-large { margin-top: 5px; color: white; font-size: 60px; font-weight: 800; line-height: 1.2; }
.ts-stars { color: #F6BD16; font-size: 21px; letter-spacing: 1px; white-space: nowrap; }
.ts-rating-panel p { margin: 9px 0; color: #AABBD0; font-size: 12px; }
.ts-google-word { display: flex; justify-content: center; margin: 16px 0 24px; font-size: 32px; font-weight: 700; letter-spacing: -.08em; }
.ts-google-word span:nth-child(1),.ts-google-word span:nth-child(4) { color: #4285F4; }
.ts-google-word span:nth-child(2),.ts-google-word span:nth-child(6) { color: #EA4335; }
.ts-google-word span:nth-child(3) { color: #FBBC05; }
.ts-google-word span:nth-child(5) { color: #34A853; }
.ts-review-cta { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 13px 17px; border-radius: 8px; background: #0878E8; color: white; font-size: 12px; font-weight: 700; text-decoration: none; }
.ts-review-cta:hover { background: #0752B8; }
.ts-reviews-area { min-width: 0; }
.ts-review-slider { display: flex; gap: 12px; overflow-x: auto; padding: 3px 2px 12px; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.ts-review-slider::-webkit-scrollbar { display: none; }
.ts-review-card { position: relative; flex: 0 0 calc((100% - 24px)/3); min-width: 0; min-height: 300px; display: flex; flex-direction: column; padding: 18px 15px; border: 1px solid #253A55; border-radius: 12px; background: #14243C; scroll-snap-align: start; overflow: hidden; }
.ts-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ts-avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; border-radius: 50%; background: #3567A4; color: white; font-size: 16px; font-weight: 700; }
.ts-card-top h3 { margin: 0; color: white; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.ts-card-top small { color: #AABBD0; font-size: 10px; }
.ts-g-icon { margin-left: auto; color: #4285F4; font-size: 19px; font-weight: 800; }
.ts-review-card .ts-stars { margin-bottom: 10px; font-size: 17px; }
.ts-review-card p { margin: 0 0 16px; color: #F5F8FC; font-size: 12px; line-height: 1.65; }
.ts-review-card a { margin-top: auto; color: #AABBD0; font-size: 11px; text-decoration: none; }
.ts-review-card a:hover { color: #25B8F5; }
.ts-quote { position: absolute; right: 12px; bottom: -8px; color: #668AB2; opacity: .45; font: 64px Georgia,serif; pointer-events: none; }
.ts-slider-controls { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 12px; }
.ts-slider-controls span { margin-right: auto; color: #AABBD0; font-size: 12px; }
.ts-slider-controls button { width: 42px; height: 42px; border: 1px solid #253A55; border-radius: 50%; background: #14243C; color: white; cursor: pointer; font-size: 22px; }
.ts-slider-controls button:hover { background: #0752B8; }

/* Final CTA */
.ts-final { padding: 85px 0 110px; background: #0A1120; }
.ts-final-box { padding: 65px 28px; border: 1px solid #253A55; border-radius: 12px; text-align: center; background: radial-gradient(ellipse at 50% 0%,rgba(8,120,232,.13),transparent 68%),#14243C; }
.ts-final-box .ts-eyebrow { justify-content: center; }
.ts-final-box h2 { max-width: 800px; margin: 20px auto; color: white; font: 700 clamp(34px,4vw,52px)/1.16 'Space Grotesk',sans-serif; letter-spacing: -.045em; }
.ts-final-box p { max-width: 650px; margin: 0 auto 28px; color: #AABBD0; font-size: 16px; line-height: 1.8; }
.ts-final-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.ts-final-buttons a { text-decoration: none; }

/* Responsive */
@media (max-width: 1100px) {
  .ts-review-layout { grid-template-columns: 1fr; }
  .ts-rating-panel { margin-bottom: 12px; }
}
@media (max-width: 1050px) {
  .ts-video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .ts-review-card { flex-basis: calc((100% - 12px)/2); }
}
@media (max-width: 700px) {
  .ts-hero { padding: 75px 0 52px; }
  .ts-hero p { font-size: 16px; }
  .ts-videos,.ts-google { padding: 58px 0; }
  .ts-section-top { display: block; }
  .ts-section-top p { font-size: 15px; }
  .ts-final { padding: 55px 0; }
  .ts-final-box { padding: 55px 18px; }
}
@media (max-width: 560px) {
  .ts-video-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .ts-review-card { flex-basis: 88%; padding: 20px; }
  .ts-review-card p { font-size: 13px; }
  .ts-player-modal { padding: 10px; }
  .ts-player-top h2 { font-size: 15px; }
  .ts-slider-controls span { font-size: 10px; }
}

/* Portrait testimonials: background fill with uncropped artwork foreground */
.ts-videos .ts-video-grid .ts-video-play{position:relative;width:100%;height:auto!important;min-height:0!important;aspect-ratio:9/16!important;overflow:hidden;background:#14243C;isolation:isolate;}
.ts-videos .ts-video-grid .ts-video-play img.ts-thumbnail-backdrop{position:absolute!important;inset:-12%!important;width:124%!important;height:124%!important;object-fit:cover!important;filter:blur(22px) brightness(.45)!important;z-index:0!important;pointer-events:none;}
.ts-videos .ts-video-grid .ts-video-play img.ts-vimeo-thumbnail{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;z-index:1!important;pointer-events:none;}
.ts-videos .ts-video-grid .ts-video-play .ts-play-icon{z-index:2!important;}
.ts-videos .ts-video-grid .ts-video-play:hover img.ts-vimeo-thumbnail{transform:none!important;}

/* Keep original portrait artwork single-layered. */
.ts-videos .ts-video-grid .ts-video-play img.ts-thumbnail-backdrop { display:none!important; }
.ts-videos .ts-video-grid .ts-video-play:hover img.ts-vimeo-thumbnail,
.ts-videos .ts-video-grid .ts-video-play:focus-visible img.ts-vimeo-thumbnail { filter:none!important; transform:none!important; }
