#services { padding-bottom: clamp(20px, 3vw, 36px); }
/* "Built on global frameworks": two lanes sliding in opposite directions. */

.section.tools-band { padding: clamp(24px, 3vw, 36px) 0 clamp(26px, 3.4vw, 40px); background: var(--panel); border-block: 1px solid var(--line); }
.stack-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(14px, 2vw, 20px); }
.stack-head h2 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.1; }
.stack-head p { margin: 6px 0 0; font-size: 1.02rem; color: var(--ink-2); text-align: left; max-width: 34rem; }

.stack-lanes { display: grid; gap: 10px; overflow: hidden; padding: 2px 0; }
/* soft fade at both ends */
.stack-lane {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.stack-track { display: flex; gap: 10px; width: max-content; list-style: none; margin: 0; padding: 0; }

.tool {
  display: inline-flex; align-items: center; gap: 12px; flex: none;
  height: 54px; padding: 0 20px 0 9px; border: 1.5px solid var(--line); border-radius: 2px; background: var(--surface);
  font-weight: 700; font-size: 1rem; color: var(--ink); white-space: nowrap;
}
.tool svg { width: 36px; height: 36px; padding: 8px; border-radius: 3px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); fill: var(--c); box-sizing: border-box; }
:root[data-theme="dark"] .tool svg { background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tool svg { background: #fff; } }

@media (prefers-reduced-motion: no-preference) {
  .stack-track { animation: stack-right 60s linear infinite; }
  .stack-lane-2 .stack-track { animation-name: stack-left; animation-duration: 70s; }
  .stack-lanes:hover .stack-track { animation-play-state: paused; }
}
@keyframes stack-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes stack-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* reduced motion: no sliding, show each tool once, wrapped */
@media (prefers-reduced-motion: reduce) {
  .stack-lane { -webkit-mask-image: none; mask-image: none; }
  .stack-track { width: auto; flex-wrap: wrap; }
  .tool[aria-hidden="true"] { display: none; }
}
@media (max-width: 640px) { .stack-head { flex-wrap: wrap; align-items: flex-start; } .tool { height: 48px; font-size: .95rem; padding-right: 16px; } .tool svg { width: 32px; height: 32px; padding: 7px; } }
