/* =========================================================
   10MULTIPLY VIDEO TESTIMONIALS
   Portrait / mobile-video presentation
   ========================================================= */

.tm-video-testimonials{
  position:relative;
  padding:clamp(90px,10vw,150px) 0 clamp(90px,9vw,130px);
  background:transparent;
  overflow:hidden;
}
.tm-video-testimonials::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background-image:radial-gradient(
    circle at 1px 1px,
    rgba(23,16,68,.05) 1px,
    transparent 0
  );
  background-size:28px 28px;
}
.tm-video-testimonials::after{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:-1;
  pointer-events:none;
  border-radius:50%;
  background:radial-gradient(
    circle,
    rgba(119,76,247,.10),
    transparent 68%
  );
  opacity:.75;
  transition:transform .45s cubic-bezier(.22,.61,.36,1),opacity .35s ease;
}
.tm-video-testimonials:hover::after{
  transform:translate(-50%,-50%) scale(1.12);
  opacity:1;
}

.tm-testimonials-heading{
  max-width:720px;
  margin:0 auto 48px;
  text-align:center;
}

.tm-eyebrow{
  display:inline-block;
  margin-bottom:12px;
  color:#774CF7;
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.tm-testimonials-heading h2{
  margin:0;
  color:var(--ink,#15235E);
  font-size:clamp(2rem,3.6vw,3rem);
  line-height:1.12;
  font-weight:600;
  letter-spacing:-.035em;
}

.tm-testimonials-heading p{
  max-width:560px;
  margin:18px auto 0;
  color:var(--ink-soft,#565B62);
  font-size:16px;
  line-height:1.6;
}

.tm-testimonials-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  align-items:start;
}

.tm-testimonial-card{
  min-width:0;
}

.tm-video-card{
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
  font:inherit;
}

.tm-video-poster{
  position:relative;
  display:block;
  aspect-ratio:9 / 16;
  width:100%;
  overflow:hidden;
  border-radius:24px;
  background:
    radial-gradient(circle at 50% 20%,rgba(119,76,247,.34),transparent 38%),
    linear-gradient(145deg,#101B4D 0%,#1d1742 55%,#774CF7 140%);
  box-shadow:0 18px 50px rgba(16,27,77,.16);
  isolation:isolate;
}

.tm-video-poster::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom,rgba(0,0,0,.04),rgba(0,0,0,.36)),
    radial-gradient(circle at 50% 68%,rgba(255,255,255,.10),transparent 25%);
}

.tm-video-poster::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:140%;
  height:52%;
  transform:translateX(-50%);
  border-radius:50% 50% 0 0;
  background:linear-gradient(to top,rgba(0,0,0,.35),transparent);
  z-index:-1;
}

.tm-poster-2{
  background:
    radial-gradient(circle at 45% 30%,rgba(119,76,247,.4),transparent 34%),
    linear-gradient(155deg,#15235E,#101B4D 58%,#4e34a9);
}

.tm-poster-3{
  background:
    radial-gradient(circle at 55% 25%,rgba(119,76,247,.45),transparent 34%),
    linear-gradient(145deg,#101B4D,#241b52 58%,#774CF7);
}

.tm-poster-4{
  background:
    radial-gradient(circle at 42% 24%,rgba(119,76,247,.38),transparent 34%),
    linear-gradient(155deg,#18285e,#101B4D 58%,#6034D8);
}

.tm-video-play{
  position:absolute;
  left:50%;
  top:50%;
  width:62px;
  height:62px;
  transform:translate(-50%,-50%);
  display:grid;
  place-items:center;
  padding-left:3px;
  border-radius:50%;
  background:#774CF7;
  color:#fff;
  font-size:18px;
  box-shadow:0 14px 35px rgba(0,0,0,.22);
  transition:transform .3s cubic-bezier(.22,.61,.36,1),
             background .2s ease;
  z-index:2;
}

.tm-video-duration{
  position:absolute;
  left:16px;
  top:16px;
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(0,0,0,.26);
  color:#fff;
  font-size:10px;
  font-weight:600;
  letter-spacing:.04em;
  backdrop-filter:blur(10px);
}

.tm-video-meta{
  display:block;
  padding:16px 4px 0;
}

.tm-video-meta strong{
  display:block;
  color:var(--ink,#15235E);
  font-size:17px;
  line-height:1.25;
  font-weight:600;
}

.tm-video-meta span{
  display:block;
  margin-top:5px;
  color:var(--ink-soft,#565B62);
  font-size:13px;
  line-height:1.45;
  font-weight:400;
}

.tm-video-card:hover .tm-video-play{
  transform:translate(-50%,-50%) scale(1.08);
  background:#000;
}

.tm-video-card:focus-visible{
  outline:3px solid rgba(119,76,247,.35);
  outline-offset:5px;
  border-radius:26px;
}

@media(max-width:1100px){
  .tm-testimonials-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-width:760px;
    margin:0 auto;
  }

  .tm-video-poster{
    max-width:310px;
    margin:0 auto;
  }
}

@media(max-width:620px){
  .tm-video-testimonials{
    padding:72px 0 86px;
  }

  .tm-testimonials-heading{
    margin-bottom:34px;
    padding:0 18px;
  }

  .tm-testimonials-heading h2{
    font-size:clamp(1.85rem,8vw,2.45rem);
  }

  .tm-testimonials-heading p{
    font-size:14px;
  }

  .tm-testimonials-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    padding:0 16px;
  }

  .tm-video-poster{
    border-radius:18px;
  }

  .tm-video-play{
    width:50px;
    height:50px;
    font-size:15px;
  }

  .tm-video-meta{
    padding-top:11px;
  }

  .tm-video-meta strong{
    font-size:14px;
  }

  .tm-video-meta span{
    font-size:11px;
  }

  .tm-video-duration{
    left:10px;
    top:10px;
    font-size:9px;
  }
}

@media(max-width:380px){
  .tm-testimonials-grid{
    grid-template-columns:1fr;
    max-width:250px;
    margin:0 auto;
    padding:0 14px;
  }
}

.tm-testimonial-iframe{
  display:block;
  width:100%;
  height:100%;
  border:0;
  border-radius:inherit;
  background:#000;
}
.tm-video-stop{
  position:absolute;
  top:12px;
  right:12px;
  z-index:5;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.25);
  border-radius:50%;
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  backdrop-filter:blur(8px);
}
.tm-video-stop:hover{
  background:#774CF7;
}
.tm-video-unavailable{
  aspect-ratio:9/16;
  display:grid;
  place-items:center;
  padding:28px;
  border-radius:24px;
  background:#101B4D;
  color:#fff;
  text-align:center;
  font-size:13px;
  line-height:1.5;
}

/* =========================================================
   FINAL CLIENT STORIES / ASSET POLISH
   ========================================================= */

/* Header logo */
.nav-logo img,
.nav-logo > img{
  display:block;
  width:148px;
  max-width:148px;
  height:auto;
  object-fit:contain;
}

/* Process/application dummy imagery */
.process-dummy-image{
  display:block;
  width:100%;
  height:150px;
  object-fit:cover;
  border-radius:20px;
  margin-bottom:18px;
}

/* Client Stories heading uses the same small rounded heading panel
   language as Our Edge. The testimonial section itself stays transparent. */
.tm-client-stories-heading{
  position:relative;
  max-width:760px;
  margin:0 auto 44px;
  padding:28px 34px;
  border:1px solid var(--limestone-line);
  border-radius:28px;
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 45px -28px rgba(16,27,77,.20);
}

/* Keep the existing heading typography; only the wording was shortened. */
.tm-client-stories-heading .tm-testimonials-title,
.tm-client-stories-heading #tm-testimonials-title{
  margin:0;
}

/* Existing testimonial cards use bundled cover images without changing
   their original typography/layout. */
.tm-video-poster{
  background-image:
    linear-gradient(to bottom,rgba(0,0,0,.03),rgba(0,0,0,.28)),
    var(--tm-cover);
  background-size:cover;
  background-position:center;
}

/* Dummy video state stays visually clean until real video URL is replaced. */
.tm-video-unavailable{
  background:var(--graphite);
}

/* Mobile */
@media(max-width:760px){
  .nav-logo img,
  .nav-logo > img{width:132px;max-width:132px;}
  .tm-client-stories-heading{
    padding:22px 20px;
    border-radius:24px;
    margin-bottom:30px;
  }
  .process-dummy-image{
    height:125px;
    border-radius:16px;
  }
}

/* =========================================================
   FINAL REFERENCE MATCH — PROCESS + CLIENT STORIES
   ========================================================= */

/* Process visual boxes: the supplied process images live INSIDE
   the intended mock-card areas, not as extra images above the section. */
.process-visual .mock-card{
  overflow:hidden;
  position:relative;
  min-height:100%;
}
.process-visual .mock-card img{
  display:block;
  width:100%;
  height:100%;
  min-height:360px;
  object-fit:cover;
  object-position:center;
  border-radius:inherit;
}
@media(max-width:760px){
  .process-visual .mock-card img{
    min-height:260px;
  }
}

/* Testimonial poster covers use the local case-study images only
   in the testimonial cards. */
.tm-video-poster[data-cover]{
  background-image:
    linear-gradient(to bottom,rgba(15,10,55,.05),rgba(15,10,55,.28)),
    var(--tm-cover-image);
  background-size:cover;
  background-position:center;
}
.tm-video-poster[data-cover]::before{
  background:linear-gradient(to bottom,rgba(15,10,55,0),rgba(15,10,55,.30));
}

/* Case Studies-style Client Stories heading.
   No separate section background. */
.tm-testimonials-heading{
  max-width:1180px;
  margin:0 auto 54px;
  text-align:center;
}
.tm-testimonials-heading .tm-eyebrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 28px;
  margin:0 0 34px;
  border:1px solid rgba(16,27,77,.16);
  border-radius:999px;
  background:rgba(255,255,255,.76);
  color:var(--signal-blue);
  font-family:var(--site-font-family);
  font-size:18px;
  line-height:1;
  font-weight:600;
  letter-spacing:0;
  text-transform:none;
  box-shadow:0 2px 10px rgba(16,27,77,.04);
}
.tm-testimonials-heading #tm-testimonials-title{
  max-width:1120px;
  margin:0 auto;
  color:var(--ink);
  font-family:var(--site-font-family);
  font-size:clamp(3.25rem,7vw,6.5rem);
  line-height:.92;
  font-weight:700;
  letter-spacing:-.055em;
  text-transform:uppercase;
  text-wrap:balance;
}
.tm-testimonials-heading #tm-testimonials-title .accent{
  color:var(--signal-blue);
  font-weight:700;
}
.tm-testimonials-heading p{
  max-width:620px;
  margin:24px auto 0;
  color:var(--ink-soft);
  font-family:var(--site-font-family);
  font-size:16px;
  line-height:1.55;
  font-weight:400;
}
@media(max-width:760px){
  .tm-testimonials-heading{
    margin-bottom:38px;
    padding:0 16px;
  }
  .tm-testimonials-heading .tm-eyebrow{
    min-height:46px;
    padding:0 20px;
    margin-bottom:24px;
    font-size:15px;
  }
  .tm-testimonials-heading #tm-testimonials-title{
    font-size:clamp(2.35rem,12vw,4rem);
    line-height:.96;
    letter-spacing:-.045em;
  }
  .tm-testimonials-heading p{
    font-size:14px;
  }
}

.tm-poster-1[data-cover]{--tm-cover-image:url("assets/images/cs-monthly.jpg");}

.tm-poster-2[data-cover]{--tm-cover-image:url("assets/images/cs-quarterly.jpg");}

.tm-poster-3[data-cover]{--tm-cover-image:url("assets/images/cs-launch.jpg");}

.tm-poster-4[data-cover]{--tm-cover-image:url("assets/images/cs-weekly.jpg");}

/* FINAL CLIENT STORIES TYPOGRAPHY ALIGNMENT */
.tm-testimonials-heading .tm-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  min-height:0;
  margin-bottom:20px;
  border-radius:999px;
  font-size:13px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:.01em;
  background:var(--limestone-card);
  border:1px solid var(--limestone-line);
  color:var(--signal-blue);
  box-shadow:none;
}
.tm-testimonials-heading #tm-testimonials-title{
  font-weight:800;
}
.tm-testimonials-heading #tm-testimonials-title .accent{
  font-weight:800;
}

/* FINAL — Client Stories typography aligned to .section-head / Our Edge */
.tm-testimonials-heading{
  max-width:760px !important;
  margin:0 auto 48px !important;
  padding:0 !important;
  text-align:center !important;
}
.tm-testimonials-heading .tm-eyebrow{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:0 !important;
  padding:8px 16px !important;
  margin:0 0 20px !important;
  border-radius:999px !important;
  border:1px solid rgba(23,16,68,.12) !important;
  background:#fff !important;
  color:#774CF7 !important;
  font-size:13px !important;
  font-weight:600 !important;
  letter-spacing:.01em !important;
  line-height:1.2 !important;
  text-transform:none !important;
  box-shadow:none !important;
}
.tm-testimonials-heading #tm-testimonials-title{
  max-width:680px !important;
  margin:0 auto !important;
  color:#171044 !important;
  font-size:clamp(2rem,3.6vw,3rem) !important;
  line-height:1.12 !important;
  font-weight:800 !important;
  letter-spacing:-.02em !important;
  text-transform:uppercase !important;
}
.tm-testimonials-heading #tm-testimonials-title .accent{
  color:#774CF7 !important;
  font-weight:800 !important;
}
.tm-testimonials-heading p{
  max-width:560px !important;
  margin:18px auto 0 !important;
  color:#625B7A !important;
  font-size:18px !important;
  line-height:1.6 !important;
  font-weight:400 !important;
}
@media(max-width:760px){
  .tm-testimonials-heading{
    max-width:680px !important;
    margin-bottom:38px !important;
    padding:0 16px !important;
  }
  .tm-testimonials-heading .tm-eyebrow{
    font-size:13px !important;
    margin-bottom:18px !important;
  }
  .tm-testimonials-heading #tm-testimonials-title{
    font-size:30px !important;
    line-height:1.18 !important;
    letter-spacing:-.02em !important;
  }
  .tm-testimonials-heading p{
    font-size:16px !important;
  }
}

/* Process images stay inside their existing boxes; no image shadow. */
.process-visual .mock-card,
.process-visual .mock-card img{
  box-shadow:none !important;
  filter:none !important;
}
.process-visual .mock-card img{
  border-radius:inherit;
}


/* =========================================================
   FINAL FINAL — CLIENT STORIES = OUR EDGE HEADING SCALE
   ========================================================= */
.tm-testimonials-heading{
  width:100% !important;
  max-width:1180px !important;
  margin:0 auto 48px !important;
  padding:0 32px !important;
  text-align:center !important;
}

.tm-testimonials-heading #tm-testimonials-title{
  display:block !important;
  width:100% !important;
  max-width:900px !important;
  margin:0 auto !important;
  padding:0 !important;

  /* EXACTLY the normal section-heading scale */
  font-size:clamp(2rem,3.6vw,3rem) !important;
  line-height:1.12 !important;
  font-weight:800 !important;
  letter-spacing:-0.02em !important;
  font-family:var(--site-font-family) !important;
  color:#171044 !important;
  text-transform:uppercase !important;
  text-wrap:balance !important;
}

.tm-testimonials-heading #tm-testimonials-title .accent{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  color:#774CF7 !important;
  font-size:inherit !important;
  line-height:inherit !important;
  font-weight:inherit !important;
  letter-spacing:inherit !important;
  text-transform:inherit !important;
}

@media(max-width:760px){
  .tm-testimonials-heading{
    max-width:100% !important;
    margin-bottom:38px !important;
    padding:0 18px !important;
  }

  .tm-testimonials-heading #tm-testimonials-title{
    max-width:680px !important;
    font-size:30px !important;
    line-height:1.18 !important;
    font-weight:800 !important;
    letter-spacing:-0.02em !important;
  }
}

/* =========================================================
   FINAL TESTIMONIAL MEDIA + MOBILE WIDTH FIX
   ========================================================= */

/* Real cover image element — avoids broken relative CSS asset paths. */
.tm-video-cover{
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* Keep the play/duration controls above the real cover image. */
.tm-video-poster .tm-video-play,
.tm-video-poster .tm-video-duration{
  z-index:3;
}

/* Self-hosted video playback inside the same portrait box. */
.tm-testimonial-video{
  position:absolute;
  inset:0;
  z-index:2;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border:0;
  border-radius:inherit;
  background:#000;
}

/* Stop button stays above the video. */
.tm-video-poster .tm-video-stop{
  z-index:5;
}

/* Remove the old narrow 250px mobile cap.
   Keep the same left/right breathing room as the rest of the site. */
@media(max-width:620px){
  .tm-testimonials-grid{
    width:100%;
    max-width:none !important;
    margin:0 !important;
    padding-left:20px !important;
    padding-right:20px !important;
    box-sizing:border-box;
  }
}

@media(max-width:480px){
  .tm-testimonials-grid{
    grid-template-columns:1fr !important;
    gap:22px !important;
    padding-left:20px !important;
    padding-right:20px !important;
  }

  .tm-video-poster{
    width:100%;
    max-width:100% !important;
    margin:0 !important;
    border-radius:20px;
  }
}

@media(max-width:380px){
  .tm-testimonials-grid{
    grid-template-columns:1fr !important;
    max-width:none !important;
    padding-left:20px !important;
    padding-right:20px !important;
  }
}

/* Cache-busting cover declarations from the older stylesheet are
   intentionally neutralized; JS now inserts the actual image element. */
.tm-video-poster[data-cover]{
  background-image:none !important;
}
