/* ==========================================================================
   PEOPLE — module ticker. people/index.html only.
   Two rows of small product tiles drifting in opposite directions. Each tile:
   a solid icon in one of the four Quorel mark colours, the module name, a
   one-line descriptor and a tiny piece of interface (spark line, bars, ring,
   status dots, check, steps) tinted to match. Rows hold two identical tracks
   and slide by -50% for a seamless loop; screen readers get the plain list.
   ========================================================================== */
.qm-band {
  --blue: var(--mark-blue, #007cfe); --leaf: var(--mark-leaf, #5cb615); --violet: var(--mark-violet, #6a31ee); --orange: var(--mark-orange, #ff8a00);
  position: relative; isolation: isolate; overflow: hidden; padding: 30px 0;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--accent-soft) 60%, var(--bg)) 50%, var(--bg));
  border-block: 1px solid var(--line);
}
/* Edge fades so tiles appear and leave softly. */
.qm-band::before, .qm-band::after { content: ''; position: absolute; top: 0; bottom: 0; width: clamp(40px, 9vw, 180px); z-index: 2; pointer-events: none; }
.qm-band::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.qm-band::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.qm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; padding: 0; }

.qm-rows { display: grid; gap: 16px; }
.qm-row { display: flex; width: max-content; animation: qm-slide 90s linear infinite; }
.qm-row--rev { animation-duration: 104s; animation-direction: reverse; }
.qm-band:hover .qm-row { animation-play-state: paused; }
.qm-track { display: flex; flex: none; gap: 16px; padding-right: 16px; }
@keyframes qm-slide { to { transform: translateX(-50%); } }

/* Tile */
.qm-card {
  --c: var(--blue);
  display: inline-flex; align-items: center; gap: 14px; width: 310px; padding: 14px 16px 14px 14px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 8px 20px -14px rgb(16 24 40 / 22%);
  transition: transform 300ms cubic-bezier(.22, 1, .36, 1), box-shadow 300ms ease, border-color 300ms ease;
}
.qm-card--leaf { --c: var(--leaf); } .qm-card--violet { --c: var(--violet); } .qm-card--orange { --c: var(--orange); }
.qm-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); box-shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 18px 34px -18px color-mix(in srgb, var(--c) 55%, transparent); }
.qm-ico { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px; color: #fff; background: var(--c);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), inset 0 -1px 0 rgb(0 0 0 / 10%); }
.qm-ico svg { width: 21px; height: 21px; }
.qm-txt { flex: 1; min-width: 0; }
.qm-txt b { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: -.015em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qm-txt small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Micro interface, tinted to the tile colour */
.qm-viz { flex-shrink: 0; width: 64px; height: 28px; }
.qm-viz--sq { width: 28px; }
svg.qm-viz rect { fill: color-mix(in srgb, var(--c) 22%, transparent); }
svg.qm-viz rect.qm-hi { fill: var(--c); }
.qm-line { fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qm-area { fill: color-mix(in srgb, var(--c) 14%, transparent); }
.qm-track-c { fill: none; stroke: color-mix(in srgb, var(--c) 18%, transparent); stroke-width: 3.5; }
.qm-ring { fill: none; stroke: var(--c); stroke-width: 3.5; stroke-linecap: round; }
.qm-dots { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; width: auto; }
.qm-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.qm-dots i.qm-off { background: color-mix(in srgb, var(--c) 22%, transparent); }
.qm-check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, transparent); }
.qm-check svg { width: 16px; height: 16px; fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.qm-steps { display: inline-flex; align-items: center; width: auto; }
.qm-steps i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--c) 35%, transparent); }
.qm-steps i.on { background: var(--c); border-color: var(--c); }
.qm-steps b { width: 12px; height: 2px; background: color-mix(in srgb, var(--c) 35%, transparent); }

@media (max-width: 600px) {
  .qm-band { padding: 22px 0; }
  .qm-rows { gap: 12px; }
  .qm-card { width: 286px; padding: 12px 14px 12px 12px; gap: 12px; }
  .qm-ico { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .qm-row { animation: none; width: auto; }
  .qm-track { flex-wrap: wrap; justify-content: center; padding-inline: 16px; }
  .qm-track + .qm-track, .qm-row--rev { display: none; }
  .qm-card { transition: none; }
}
