/* Stack marquee section */
.stack{
  position: relative;
  z-index: 3;
  padding: 88px 0 96px;
  border-top: 1px solid var(--border-soft);
}
.st-head{
  max-width: var(--maxw);
  margin: 0 auto 64px;
  padding: 0 var(--pad-x) 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: clamp(20px, 4vw, 60px);
  border-bottom: 1px solid var(--border-soft);
}
.st-eyebrow{
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: -0.025em;
  margin: 0;
}
.st-eyebrow .serif{ color: var(--accent); font-size: 1.05em; }
.st-intro{
  margin: 0; max-width: 36ch;
  font-size: 13.5px; line-height: 1.55;
  color: var(--fg-2);
  text-align: right; justify-self: end;
}

.st-marquee{
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  overflow: hidden;
}
.st-fade{
  position: absolute; top: 0; bottom: 0; width: 18%;
  pointer-events: none; z-index: 5;
}
.st-fade-l{ left: 0; background: linear-gradient(90deg, var(--bg) 0%, transparent 100%); }
.st-fade-r{ right: 0; background: linear-gradient(270deg, var(--bg) 0%, transparent 100%); }

.st-row{
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.st-track{
  display: flex;
  gap: 14px;
  width: max-content;
  animation: st-scroll 50s linear infinite;
  will-change: transform;
}
.st-r .st-track{ animation-direction: reverse; animation-duration: 60s; }
.st-marquee:hover .st-track{ animation-play-state: paused; }
@keyframes st-scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.st-pill{
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  font-size: 14.5px;
  color: var(--fg-2);
  white-space: nowrap;
  transition: color .25s ease, border-color .25s ease,
              background .25s ease, transform .25s ease, opacity .25s ease;
}
.st-row:hover .st-pill{ opacity: 0.45; }
.st-row:hover .st-pill:hover{
  opacity: 1;
  color: var(--fg);
  border-color: rgba(168,85,247,0.45);
  background: rgba(168,85,247,0.08);
  transform: scale(1.06);
}
.st-glyph{
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--fg);
}
.st-row:hover .st-pill:hover .st-glyph{
  background: rgba(168,85,247,0.18);
  border-color: rgba(168,85,247,0.45);
  color: var(--fg);
}

@media (max-width: 920px){
  .stack{ padding: 80px 0 100px; }
  .st-head{ grid-template-columns: 1fr; gap: 14px; padding: 0 20px 24px; margin-bottom: 32px; }
  .st-intro{ text-align: left; justify-self: start; }
  .st-pill{ padding: 11px 18px; font-size: 13.5px; }
}
