/* ==========================================================================
   EWD Site — "Trusted Worldwide" client-proof section
   Sits directly below the hero: a centered mission statement, three
   animated stat counters in glass tiles, and an infinite auto-scrolling
   marquee of client logos with soft edge-fade masks and a hover-brighten/
   pause-on-hover interaction. Ambient glow + grid background reuses the
   same visual language as the robot/insights sections. Self-contained;
   reuses the design tokens declared on :root in style.css and the
   site-wide [data-reveal-on-scroll] system in reveal.js.
   ========================================================================== */

.trust {
    position: relative;
    padding: 60px 0 60px;
    overflow: hidden;
}

.trust__inner {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */

.trust__header {
    max-width: 956px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust__header h2 {
  font-family: var(--font-body);
  color: var(--text);
  color: #FFF;
  font-size: 48px;
  font-weight: 600;
  line-height: 58px; 
  letter-spacing: -0.48px;
  text-transform: capitalize;
  margin-bottom: 37px;
}

.trust__text {
    max-width: 894px;
    font-family: var(--font-body);
    color: #E6E5E5;
    font-size: 19px;
    font-weight: 300;
    line-height: 33px;
}

/* ---------- Bottom row: clients (left) / stats (right) ---------- */

.trust__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    /* align-items: center; */
    margin-top: 42px;
    padding: 0 55px;
}

/* ---------- Stats (flat numbers, no card chrome) ---------- */

.trust__stats {
    display: flex;
    justify-content: flex-end;
    gap: 69px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust__stat {
  text-align: right;
}

.trust__stat dd {
    margin: 0;
    text-align: center;
    display: flex;
    font-family: var(--font-third);
    color: var(--text);
    font-size: 52px;
    font-weight: 500;
    line-height: 76px;
    letter-spacing: -2.08px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.trust__stat-num {
    /* display: inline-block;
    font-family: var(--font-third);
    color: var(--text);
    font-size: 52px;
    font-weight: 500;
    line-height: 90px;
    letter-spacing: -2.08px; */
}

.trust__stat-label {
    font-family: var(--font-heading);
    color: var(--text);
    font-size: 19px;
    font-weight: 400;
    line-height: 33px;
    letter-spacing: -0.19px;
}

/* ---------- Logo marquee ---------- */

.trust__clients {
  min-width: 0;
}

.trust__marquee-label {
    font-family: var(--font-heading);
    color: var(--text);
    font-size: 19px;
    font-style: normal;
    font-weight: 400;
    line-height: 50px;
    letter-spacing: -0.19px;
    text-align: center;
    margin-bottom: 2px;
}

.trust__marquee {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 0;
  /* border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%); */
}

.trust__track {
    display: flex;
    align-items: center;
    gap: 50px;
    width: max-content;
    /* animation: trust-marquee-scroll 26s linear infinite; */
}

/* .trust.is-paused .trust__track,
.trust__marquee:hover .trust__track {
  animation-play-state: paused;
} */

.trust__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* height: 46px; */
}

.trust__logo img {
  display: block;
  /* max-height: 30px; */
  width: auto;
  /* opacity: 0.5; */
  transition: opacity 0.35s var(--ease-out), filter 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.trust__logo:hover img {
  /* opacity: 1; */
  transform: translateY(-2px) scale(1.06);
  filter: drop-shadow(0 0 14px rgba(44, 59, 108, 0.55));
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 760px) {
  .trust__bottom {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust__stats {
    justify-content: center;
    gap: 2rem;
  }

  .trust__stat {
    text-align: center;
  }

  /* .trust__stat-num {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
  } */

  .trust__stat-label {
    font-size: 0.8rem;
  }

  .trust__marquee-label {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .trust__stats {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .trust__track {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }

  .trust__logo[aria-hidden="true"] {
    display: none;
  }

  .trust__stat {
    transition: none;
  }
}

/* ==========================================================================
   "Clients Worked With Us" band — a second, simpler client-proof block
   (single large counter + logo marquee) that sits between Services and
   the Case Study showcase. Reuses .trust__marquee-wrap/.trust__marquee/
   .trust__track/.trust__logo above; [data-trust] on the section wires it
   into the same counter/marquee init in trust.js.
   ========================================================================== */

.clients-band {
    position: relative;
    /* padding: 110px 0 80px; */
    padding: 70px 0 35px;
    overflow: hidden;
}

.clients-band__stat {
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 27px;
    justify-content: center;
}

.clients-band__heading {
    font-family: var(--font-heading);
    color: var(--text);
    font-size: 36px;
    font-weight: 600;
    line-height: 45px;
    letter-spacing: -0.36px;
    text-transform: capitalize;
    max-width: 280px;
}

.clients-band__number {
    margin: 0;
    font-family: var(--font-heading);
    color: var(--text);
    font-size: 101px;
    font-weight: 700;
    line-height: 99px;
}

.clients-band__caption {
    font-family: var(--font-heading);
    color: var(--text);
    font-size: 20px;
    font-style: normal;
    font-weight: normal;
    line-height: 33px;
    letter-spacing: -0.2px;
    text-align: center;
    opacity: 0.52;
}

.clients-band .trust__marquee-wrap {
  margin-top: 35px;
}

.clients-band__inner .trust__marquee {
    display: flex;
    justify-content: center;
}