/* Progressive motion: readable without JS, static under reduced-motion settings. */
.ecosystem.section { padding-block: 52px; border-bottom: 1px solid var(--line); }
.ecosystem-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.ecosystem-heading h2 { margin-top: 12px; font-size: clamp(28px, 3vw, 40px); }
.ecosystem-heading > p { max-width: 420px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.ecosystem-window { overflow-x: auto; margin: 30px -16px 24px; padding: 10px 16px; }
.ecosystem-track { display: flex; width: max-content; }
.ecosystem-logos { display: flex; align-items: center; gap: 64px; padding: 0 64px 0 0; margin: 0; list-style: none; }
.ecosystem-logos li { width: 204px; flex: 0 0 204px; text-align: center; }
.ecosystem-mark { display: flex; align-items: center; justify-content: center; height: 84px; overflow: hidden; }
.ecosystem-mark img { width: 200px; height: 68px; object-fit: contain; mix-blend-mode: multiply; }
.ecosystem-logos li > span { display: block; margin-top: 14px; color: var(--muted); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.ecosystem-gmail { gap: 12px; }
.ecosystem-gmail img { width: 62px; height: 62px; }
.ecosystem-gmail strong { font: 500 37px/1 Arial, sans-serif; letter-spacing: -1.6px; color: #50545a; }
.ecosystem-dsc img { transform: scale(2.9); }
.ecosystem.is-ready .ecosystem-window { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ecosystem.is-ready .ecosystem-track { animation: ecosystem-drift 54s linear infinite; }
.ecosystem.is-paused .ecosystem-track,
.ecosystem.is-offscreen .ecosystem-track,
.motion-tab-hidden .ecosystem-track { animation-play-state: paused; }
.ecosystem.is-ready .ecosystem-window:focus { overflow-x: auto; mask-image: none; }
.carousel-toggle { display: block; margin: 0 0 18px auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.carousel-toggle[hidden] { display: none; }
.carousel-toggle:focus-visible { outline: 2px solid var(--text-accent); outline-offset: 3px; }
/* Enlarge the original panel row as well as the new ecosystem strip. */
.security-retrofit .brand-logos { gap: 24px; overflow: hidden; }
.security-retrofit .brand-logos img { width: min(29%, 155px); height: 62px; }
.security-retrofit .brand-logos img:first-child { width: min(24%, 120px); transform: scale(2.6); margin-inline: 18px; }
@keyframes ecosystem-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .button { transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease; }
  .button:hover { transform: translateY(-3px); box-shadow: 0 8px 20px #061c9012; }
  .button:active { transform: translateY(0); }
  .button > span,.text-link > span,.security-paths b { display: inline-block; transition: transform .25s ease; }
  .button:hover > span,.text-link:hover > span,.security-paths a:hover b { transform: translate(3px, -3px); }
  .vertical-card,.product-link { transition: transform .35s ease, box-shadow .35s ease; }
  .vertical-card:hover,.product-link:hover { transform: translateY(-6px); }
  .security-paths a::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: var(--text-accent); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
  .security-paths a:hover::after,.security-paths a:focus-visible::after { transform: scaleX(1); }
}
@media (max-width: 720px) {
  .ecosystem-heading { display: block; }
  .ecosystem-heading > p { margin-top: 18px; }
  .ecosystem-window { margin-block: 22px; }
  .ecosystem-logos { gap: 40px; padding-right: 40px; }
  .ecosystem-logos li { width: 180px; flex-basis: 180px; }
  .ecosystem-mark img { max-width: 176px; }
  .ecosystem-gmail img { max-width: 56px; }
  .security-retrofit .brand-logos { gap: 14px; }
  .security-retrofit .brand-logos img:first-child { margin-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ecosystem.is-ready .ecosystem-window { overflow-x: auto; mask-image: none; }
  .ecosystem.is-ready .ecosystem-track { animation: none; }
}

.ecosystem-mark img[src$="genetec.svg"] { filter: brightness(0); opacity: .85; }
.ecosystem-window:focus-visible { outline: 2px solid var(--text-accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .ecosystem-logos[aria-hidden="true"] { display: none; }
}
