/* Magnetic flow — collaboration logos as a stack of cards (assets/js/magnetic.js). */

.mf-on .collab__logos {   /* list stays for screen readers */
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0;
}
/* Same breathing room below this section as the other homepage sections (ed-section padding-bottom). */
.ed-section:has(> .collab.mf-on) { padding-bottom: var(--ed-section); }
.mf {
  position: relative; height: clamp(260px, 23vw, 330px); width: 100%;
  touch-action: pan-y; cursor: pointer; user-select: none; -webkit-user-select: none;
}
.mf__card {
  position: absolute; left: 50%; top: 50%;
  width: var(--mf-size, 96px); height: var(--mf-size, 96px);
  margin: calc(var(--mf-size, 96px) / -2) 0 0 calc(var(--mf-size, 96px) / -2);
  border-radius: 20px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px var(--ed-line), 0 14px 30px -16px rgba(0, 0, 0, .4);
  will-change: transform; display: grid; place-items: center;
}
.mf__card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mf__card span { font-size: 11px; text-align: center; padding: 6px; color: #6A6761; }
.mf__hint {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center;
  font-size: 13px; color: var(--ed-muted); transition: opacity .3s ease;
}
.mf.is-open .mf__hint { opacity: 0; }
.mf:focus-visible { outline: 2px solid var(--ed-ink); outline-offset: 4px; border-radius: 16px; }

@media (max-width: 800px) {
  .mf { height: 260px; --mf-size: 80px; }
}
