/* Home — 01b Service marquee (decorative; real service links live in the sections) */
.mx-marquee {
  position: relative; overflow: hidden;
  background: var(--mx-night); color: #fff;
}
/* Edge fades: words dissolve into the strip instead of being cut off. The right fade is wider
   and solid under the pause button (which sits above it, z-index 2, focus ring included). */
.mx-marquee::before, .mx-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; pointer-events: none;
}
.mx-marquee::before { left: 0; width: clamp(32px, 6vw, 96px); background: linear-gradient(90deg, var(--mx-night), transparent); }
.mx-marquee::after { right: 0; width: clamp(96px, 12vw, 180px); background: linear-gradient(270deg, var(--mx-night) 40%, transparent); }
.mx-marquee__track { display: flex; width: max-content; animation: mx-marquee 46s linear infinite; }
.mx-marquee__track:hover,
.mx-marquee.is-paused .mx-marquee__track,
.mx-marquee.is-offscreen .mx-marquee__track { animation-play-state: paused; } /* .is-offscreen: 01b-marquee.js */
.mx-marquee__list { display: flex; align-items: center; list-style: none; margin: 0; padding: 24px 0; }
.mx-marquee__list li { display: flex; align-items: center; white-space: nowrap; }
.mx-marquee__list li::after {
  content: ""; width: 14px; height: 14px; margin-inline: 36px; border-radius: 4px; transform: rotate(45deg);
  background: var(--svc, var(--mx-accent));
}
.mx-marquee__list span {
  font: 650 clamp(1.5rem, 1rem + 1.6vw, 2.4rem)/1.1 var(--mx-font-display); letter-spacing: -0.04em; color: #fff;
}
.mx-marquee__list li:nth-child(even) span {
  font-family: var(--mx-font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: rgba(255,255,255,.75);
}
.mx-marquee__toggle {
  position: absolute; z-index: 2; right: 12px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.3); background: var(--mx-night); color: #fff; font-size: 13px;
  box-shadow: none;
}
.mx-marquee__toggle:hover { background: var(--mx-night-2); }
@keyframes mx-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mx-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .mx-marquee__list + .mx-marquee__list { display: none; }
  .mx-marquee__toggle { display: none; }
  .mx-marquee::before, .mx-marquee::after { display: none; }
  /* The still strip wraps into centred rows (swatch first) instead of overflowing both edges (all widths) */
  .mx-marquee__list { width: 100%; flex-wrap: wrap; justify-content: center; gap: 4px 22px; padding: 22px var(--mx-gutter); }
  .mx-marquee__list li { flex-direction: row-reverse; }
  .mx-marquee__list li::after { width: 11px; height: 11px; margin: 0 12px 0 0; border-radius: 3px; }
  .mx-marquee__list span { font-size: clamp(1.15rem, .8rem + 1vw, 1.6rem); }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) { /* phones + tablets: as the m2 layer drew it */
  .mx-marquee__list { gap: 2px 18px; padding-block: 18px; }
  .mx-marquee__list li::after { width: 9px; height: 9px; margin: 0 10px 0 0; border-radius: 2px; }
  .mx-marquee__list span { font-size: 1.15rem; }
}

/* ===== Mobile layer (<=1023): m2-hero (marquee) ===== */
/* Folded from _mobile-wip/m2-hero.css (the reduced-motion wrap now lives in the base block above, all widths).
   JS (M2 drift): the last IIFE in 01b-marquee.js. */
@media (max-width: 1023px) and (hover: none) { /* no sticky hover pause after a tap */
  .mx-marquee:not(.is-paused):not(.is-offscreen) .mx-marquee__track:hover { animation-play-state: running; }
}
/* ===== /Mobile layer: m2-hero (marquee) ===== */
