/* BT clients component, ported 1:1 from the Next.js sample (Tailwind + motion). Scoped to .btc / .btc-modal */

.btc,
.btc-modal {
  --btc-paper: #f3f5f7;
  --btc-ink: #0a1b33;
  --btc-ink-soft: #3b4a5e;
  --btc-brand: #00428a;
  --btc-sky: #90caf9;
  --btc-line: #d5dce4;
  --btc-night: #071426;
  /* motion springs sampled as CSS linear(): Reveal 120/20, modal 260/26 */
  --btc-spring-reveal: linear(0, 0.0107, 0.0391, 0.0802, 0.1301, 0.1856, 0.2442, 0.304, 0.3635, 0.4214, 0.4771, 0.5298, 0.5793, 0.6254, 0.6678, 0.7067, 0.7421, 0.7741, 0.803, 0.8288, 0.8518, 0.8723, 0.8903, 0.9062, 0.9201, 0.9323, 0.9429, 0.9521, 0.96, 0.9668, 0.9726, 0.9775, 0.9817, 0.9853, 0.9883, 0.9908, 0.9929, 0.9946, 0.996, 0.9971, 1);
  --btc-spring-modal: linear(0, 0.0182, 0.0653, 0.1317, 0.2096, 0.2933, 0.3781, 0.4609, 0.5394, 0.612, 0.6779, 0.7366, 0.7882, 0.8327, 0.8707, 0.9026, 0.929, 0.9506, 0.9679, 0.9815, 0.9919, 0.9998, 1.0054, 1.0093, 1.0118, 1.0132, 1.0138, 1.0137, 1.0132, 1.0123, 1.0113, 1.0102, 1.009, 1.0078, 1.0067, 1.0057, 1.0048, 1.0039, 1.0032, 1.0025, 1);
  --btc-display: "Bricolage Grotesque", system-ui, sans-serif;
  --btc-sans: "Instrument Sans", system-ui, sans-serif;
  --btc-mono: "JetBrains Mono", ui-monospace, monospace;

  font-family: var(--btc-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--btc-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Local reset so theme/Bootstrap globals don't leak in */
:where(.btc, .btc-modal) *,
:where(.btc, .btc-modal) *::before,
:where(.btc, .btc-modal) *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}
:where(.btc, .btc-modal) ul {
  list-style: none;
}
:where(.btc, .btc-modal) img,
:where(.btc, .btc-modal) svg,
:where(.btc, .btc-modal) iframe {
  display: block;
  vertical-align: middle;
}
:where(.btc, .btc-modal) h2,
:where(.btc, .btc-modal) h3,
:where(.btc, .btc-modal) h4 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-transform: none;
}
:where(.btc, .btc-modal) button {
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.btc :focus:not(:focus-visible),
.btc-modal :focus:not(:focus-visible) {
  outline: none;
}
.btc :focus-visible,
.btc-modal :focus-visible {
  outline: 2px solid var(--btc-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Section ---------- */
.btc {
  border-top: 1px solid var(--btc-line);
  border-bottom: 1px solid var(--btc-line);
  background: #fff;
  padding: 6rem 0;
}
.btc-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Reveal: fade + rise once in view */
.btc-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms var(--btc-spring-reveal), transform 560ms var(--btc-spring-reveal);
  transition-delay: var(--delay, 0s);
}
.btc-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Heading */
.btc-heading {
  max-width: 48rem;
}
.btc-eyebrow {
  font-family: var(--btc-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--btc-brand);
}
.btc .btc-title {
  margin-top: 1rem;
  font-family: var(--btc-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--btc-ink);
}
.btc-title span {
  color: var(--btc-brand);
}
.btc-body {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--btc-ink-soft);
}

/* Logo marquee */
.btc-marquee {
  --gap: 4rem;
  display: flex;
  gap: var(--gap);
  overflow: hidden;
  margin-top: 3.5rem;
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.btc-marquee__track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: var(--gap);
  animation: btc-marquee 45s linear infinite;
}
.btc-marquee:hover .btc-marquee__track {
  animation-play-state: paused;
}
@keyframes btc-marquee {
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}
.btc-marquee img {
  height: 2.5rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.15s, filter 0.15s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.btc-marquee img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* Testimonials */
.btc-testimonials {
  margin-top: 6rem;
}
.btc .btc-subtitle {
  font-family: var(--btc-display);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--btc-ink);
}
.btc-cards {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}
.btc-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  border: 1px solid var(--btc-line);
  border-radius: 1.5rem;
  background: var(--btc-paper);
  padding: 0.75rem;
}
.btc-thumb {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
}
.btc-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.btc-thumb:hover img {
  transform: scale(1.05);
}
.btc-thumb__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(7 20 38 / 0.6), transparent);
}
.btc-thumb__play {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #fff;
  color: var(--btc-brand);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.btc-thumb:hover .btc-thumb__play {
  transform: scale(1.1);
}
.btc-figure {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem 0.75rem 0.75rem;
}
.btc-figure blockquote {
  flex: 1;
  line-height: 1.625;
  color: var(--btc-ink-soft);
  font-size: 1rem;
  font-style: normal;
}
.btc-figure figcaption {
  margin-top: 1.5rem;
  border-top: 1px solid var(--btc-line);
  padding-top: 1rem;
}
.btc .btc-figure h4 {
  font-family: var(--btc-display);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: var(--btc-ink);
}
.btc-figure p {
  font-family: var(--btc-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--btc-brand);
}

/* ---------- Video modal ---------- */
.btc-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(7 20 38 / 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.35, 1);
}
.btc-modal[hidden] {
  display: none;
}
.btc-modal.is-open {
  opacity: 1;
}
.btc-modal__inner {
  width: 100%;
  max-width: 56rem;
  transform: translateY(20px) scale(0.92);
  transition: transform 500ms var(--btc-spring-modal);
}
.btc-modal.is-open .btc-modal__inner {
  transform: none;
}
.btc-modal.is-closing {
  opacity: 0;
  transition-duration: 0.15s;
}
.btc-modal.is-closing .btc-modal__inner {
  transform: scale(0.96);
  transition: transform 0.15s ease-out;
}
.btc-modal__head {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.btc-modal .btc-modal__name {
  font-family: var(--btc-display);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: #fff;
}
.btc-modal .btc-modal__role {
  font-family: var(--btc-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--btc-sky);
}
.btc-modal__close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}
.btc-modal__close:hover {
  background: rgb(255 255 255 / 0.2);
}
.btc-modal__video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  background: #000;
}
.btc-modal__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Breakpoints (Tailwind sm / md / lg) ---------- */
@media (min-width: 640px) {
  .btc-container {
    padding: 0 1.5rem;
  }
  .btc .btc-title {
    font-size: 3rem;
  }
  .btc-marquee img {
    height: 3rem;
  }
  .btc .btc-subtitle {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}
@media (min-width: 768px) {
  .btc-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .btc {
    padding: 8rem 0;
  }
  .btc .btc-title {
    font-size: 3.75rem;
  }
}

/* Same as motion's reducedMotion="user": transforms jump, opacity still fades; marquee stops */
@media (prefers-reduced-motion: reduce) {
  .btc *,
  .btc-modal,
  .btc-modal * {
    transition-property: opacity, color, background-color, border-color, filter !important;
  }
  .btc-marquee__track {
    animation: none;
  }
}
