/* Trial Pro client-video showcase: lightweight posters with one click-to-load Vimeo player. */
.client-video-section {
  position: relative;
  overflow: hidden;
  padding: 104px 0 96px;
  background:
    radial-gradient(circle at 8% 12%, rgba(234, 178, 27, .1), transparent 24%),
    linear-gradient(180deg, #fff 0%, #fbf8f1 100%);
  border-block: 1px solid #e1ded6;
}

.client-video-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(31vw, 470px);
  height: 5px;
  background: #eab21b;
}

.client-video-layout {
  display: grid;
  grid-template-columns: minmax(290px, 355px) minmax(0, 1fr);
  gap: clamp(44px, 5vw, 72px);
  align-items: start;
}

.client-video-intro,
.client-video-showcase {
  min-width: 0;
}

.client-video-intro {
  position: sticky;
  top: 202px;
}

.client-video-intro h2 {
  margin: 0 0 24px;
  color: #0d214f;
  font-family: var(--font-display, "Libre Caslon Display", Georgia, serif);
  font-size: clamp(43px, 4.1vw, 59px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}

.client-video-lead {
  margin: 0;
  color: #526075;
  font-family: var(--font-sans, "Libre Franklin", Arial, sans-serif);
  font-size: 14px;
  line-height: 1.75;
}

.client-video-principle {
  position: relative;
  margin: 30px 0 24px;
  padding: 23px 22px 22px 54px;
  color: #fff;
  background: #0d214f;
  border-left: 4px solid #eab21b;
}

.client-video-principle > span {
  position: absolute;
  top: 4px;
  left: 15px;
  color: #eab21b;
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 1;
}

.client-video-principle p {
  margin: 0;
  font-family: var(--font-display, "Libre Caslon Display", Georgia, serif);
  font-size: 18px;
  line-height: 1.38;
}

.client-video-author {
  display: flex;
  align-items: center;
  gap: 13px;
}

.client-video-author img {
  width: 58px;
  height: 58px;
  padding-top: 3px;
  object-fit: cover;
  object-position: 50% 9%;
  background: #e8e4dd;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d5d0c6;
}

.client-video-author strong,
.client-video-author span {
  display: block;
}

.client-video-author strong {
  color: #0d214f;
  font-family: var(--font-sans, "Libre Franklin", Arial, sans-serif);
  font-size: 13px;
}

.client-video-author span {
  margin-top: 2px;
  color: #6a7280;
  font-size: 10px;
  line-height: 1.35;
}

.client-video-library {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-bottom: 5px;
  color: #0d214f;
  border-bottom: 1px solid #b7bdc8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .025em;
}

.client-video-library span {
  color: #b27e00;
  font-size: 15px;
  transition: transform .2s ease;
}

.client-video-library:hover span,
.client-video-library:focus-visible span {
  transform: translateX(4px);
}

.client-video-toolbar {
  min-height: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 25px;
  padding-bottom: 19px;
  border-bottom: 1px solid #d8dbe2;
}

.client-video-toolbar > div:first-child > span,
.client-video-toolbar > div:first-child > strong {
  display: block;
}

.client-video-toolbar > div:first-child > span {
  margin-bottom: 5px;
  color: #a67300;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.client-video-toolbar > div:first-child > strong {
  color: #0d214f;
  font-family: var(--font-display, "Libre Caslon Display", Georgia, serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
}

.client-video-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.client-video-status {
  min-width: 65px;
  color: #7a818e;
  font-size: 10px;
  letter-spacing: .08em;
  text-align: center;
}

.client-video-status b {
  color: #0d214f;
  font-size: 13px;
}

.client-video-controls button {
  width: 44px;
  height: 44px;
  display: grid;
  padding: 0;
  place-items: center;
  color: #0d214f;
  background: #fff;
  border: 1px solid #cfd3dc;
  border-radius: 50%;
  font-size: 17px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.client-video-controls button:hover:not(:disabled),
.client-video-controls button:focus-visible {
  color: #fff;
  background: #0d214f;
  border-color: #0d214f;
  transform: translateY(-2px);
}

.client-video-controls button:focus-visible,
.client-video-trigger:focus-visible,
.client-video-modal-close:focus-visible,
.client-video-library:focus-visible {
  outline: 3px solid rgba(234, 178, 27, .62);
  outline-offset: 3px;
}

.client-video-controls button:disabled {
  opacity: .35;
  cursor: default;
}

.client-video-viewport {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.client-video-viewport::-webkit-scrollbar {
  display: none;
}

.client-video-track {
  width: max-content;
  display: flex;
  gap: 18px;
  padding: 5px 4px 24px;
}

.client-video-card {
  width: clamp(225px, 19vw, 245px);
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9dce3;
  border-radius: 7px;
  box-shadow: 0 13px 30px rgba(13, 33, 79, .08);
  scroll-snap-align: start;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.client-video-card.is-featured {
  width: clamp(250px, 21vw, 270px);
  color: #fff;
  background: #0d214f;
  border-color: #0d214f;
  border-top: 4px solid #eab21b;
}

.client-video-card:hover {
  border-color: #b7bdc9;
  box-shadow: 0 18px 42px rgba(13, 33, 79, .15);
  transform: translateY(-4px);
}

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

.client-video-poster {
  position: relative;
  aspect-ratio: 9 / 16;
  display: block;
  overflow: hidden;
  background: #071739;
}

.client-video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 23, 57, .05) 35%, rgba(7, 23, 57, .7) 100%);
}

.client-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

/* The supplied Vimeo stills are landscape. These focal points preserve each
   client's face when the posters are presented in the requested 9:16 format. */
.client-video-card:nth-child(1) .client-video-poster img { object-position: 61% center; }
.client-video-card:nth-child(2) .client-video-poster img { object-position: 17% center; }
.client-video-card:nth-child(3) .client-video-poster img { object-position: 41% center; }
.client-video-card:nth-child(4) .client-video-poster img { object-position: 36% center; }
.client-video-card:nth-child(5) .client-video-poster img { object-position: 52% center; }
.client-video-card:nth-child(6) .client-video-poster img { object-position: 50% center; }

.client-video-card:hover .client-video-poster img,
.client-video-trigger:focus-visible .client-video-poster img {
  transform: scale(1.035);
}

.client-video-result,
.client-video-duration,
.client-video-play {
  position: absolute;
  z-index: 2;
}

.client-video-result {
  top: 15px;
  left: 15px;
  padding: 7px 10px 6px;
  color: #071739;
  background: #eab21b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .16);
}

.client-video-duration {
  right: 12px;
  bottom: 10px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(3, 13, 35, .78);
  border-radius: 2px;
  font-size: 9px;
  font-weight: 800;
}

.client-video-play {
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #0d214f;
  background: #eab21b;
  border: 5px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 9px 28px rgba(3, 13, 35, .34);
  transform: translate(-50%, -50%);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.client-video-play i {
  width: 0;
  height: 0;
  display: block;
  margin-left: 4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}

.client-video-card:hover .client-video-play,
.client-video-trigger:focus-visible .client-video-play {
  color: #fff;
  background: #0d214f;
  transform: translate(-50%, -50%) scale(1.07);
}

.client-video-copy {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 23px;
}

.client-video-copy small {
  margin-bottom: 9px;
  color: #a97600;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
}

.is-featured .client-video-copy small {
  color: #f2c33d;
}

.client-video-copy strong {
  color: #0d214f;
  font-family: var(--font-display, "Libre Caslon Display", Georgia, serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.14;
}

.is-featured .client-video-copy strong {
  color: #fff;
  font-size: 22px;
}

.client-video-copy > span {
  margin-top: auto;
  padding-top: 15px;
  color: #667080;
  font-size: 10px;
  line-height: 1.45;
}

.is-featured .client-video-copy > span {
  color: #cbd5e8;
}

.client-video-disclaimer {
  max-width: 760px;
  margin: 2px 0 0;
  color: #777f8c;
  font-size: 9px;
  line-height: 1.55;
}

body.client-video-modal-open {
  overflow: hidden;
}

.client-video-modal[hidden] {
  display: none;
}

.client-video-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 28px;
  place-items: center;
}

.client-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 33, .88);
  backdrop-filter: blur(7px);
}

.client-video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 94vw);
  overflow: hidden;
  color: #fff;
  background: #071739;
  border: 1px solid rgba(255, 255, 255, .22);
  border-top: 4px solid #eab21b;
  border-radius: 8px;
  box-shadow: 0 36px 100px rgba(0, 0, 0, .55);
}

.client-video-modal-head {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 14px 18px 14px 25px;
}

.client-video-modal-head p {
  min-width: 0;
  margin: 0;
}

.client-video-modal-head span,
.client-video-modal-head strong {
  display: block;
}

.client-video-modal-head p > span {
  margin-bottom: 3px;
  color: #f2c33d;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}

.client-video-modal-head strong {
  overflow: hidden;
  font-family: var(--font-display, "Libre Caslon Display", Georgia, serif);
  font-size: 20px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-video-modal-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  padding: 0 0 3px;
  place-items: center;
  color: #0d214f;
  background: #eab21b;
  border: 0;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.client-video-modal-frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

.client-video-modal-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.client-video-modal-note {
  margin: 0;
  padding: 13px 25px 16px;
  color: #aeb9ce;
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 1020px) {
  .client-video-section {
    padding: 82px 0;
  }

  .client-video-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .client-video-intro {
    position: static;
    max-width: 760px;
  }

  .client-video-intro h2 {
    max-width: 670px;
  }

  .client-video-principle {
    max-width: 610px;
  }

  .client-video-card {
    width: min(32vw, 250px);
  }

  .client-video-card.is-featured {
    width: min(36vw, 280px);
  }
}

@media (max-width: 660px) {
  .client-video-section {
    padding: 64px 0 58px;
  }

  .client-video-layout {
    gap: 42px;
  }

  .client-video-intro h2 {
    font-size: 43px;
  }

  .client-video-lead {
    font-size: 13px;
  }

  .client-video-principle {
    margin-top: 25px;
    padding: 20px 18px 20px 49px;
  }

  .client-video-principle p {
    font-size: 17px;
  }

  .client-video-toolbar {
    align-items: flex-end;
  }

  .client-video-toolbar > div:first-child > strong {
    max-width: 225px;
    font-size: 17px;
  }

  .client-video-status {
    display: none;
  }

  .client-video-controls button {
    width: 42px;
    height: 42px;
  }

  .client-video-track {
    gap: 13px;
  }

  .client-video-card,
  .client-video-card.is-featured {
    width: min(70vw, 260px);
  }

  .client-video-copy,
  .is-featured .client-video-copy {
    min-height: 155px;
    padding: 20px;
  }

  .client-video-copy strong,
  .is-featured .client-video-copy strong {
    font-size: 20px;
  }

  .client-video-play {
    width: 56px;
    height: 56px;
  }

  .client-video-modal {
    padding: 14px;
  }

  .client-video-modal-dialog {
    width: 100%;
  }

  .client-video-modal-head {
    min-height: 68px;
    padding: 12px 13px 12px 17px;
  }

  .client-video-modal-head strong {
    max-width: calc(100vw - 100px);
    font-size: 16px;
  }

  .client-video-modal-close {
    width: 40px;
    height: 40px;
  }

  .client-video-modal-note {
    padding: 11px 17px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-video-viewport {
    scroll-behavior: auto;
  }

  .client-video-card,
  .client-video-poster img,
  .client-video-play,
  .client-video-controls button,
  .client-video-library span {
    transition: none;
  }
}
