/* Compact technology ribbons, balanced against the larger editorial sections. */
.tech-stack {
  width: calc(100% + 2 * var(--shell-pad, 0.5rem));
  margin-inline: calc(-1 * var(--shell-pad, 0.5rem));
  padding: var(--section-pad-y) 0;
  color: var(--ink);
}
.tech-stack__inner {
  width: min(var(--section-max, 104rem), 100%);
  margin-inline: auto;
  padding-inline: calc(
    var(--shell-pad, 0.5rem) + var(--section-pad-x, 0.75rem)
  );
}
.tech-stack__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.4rem;
}
.tech-stack .section-index {
  margin-bottom: 0.9rem;
}
.tech-stack__title {
  margin: 0;
  font:
    800 clamp(3rem, 7.5vw, 5.45rem)/0.95 "Codec Cold",
    system-ui,
    sans-serif;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}
.tech-stack__title .split-word:last-child .char-mask:last-child .char {
  color: var(--accent);
}
.tech-stack__intro {
  margin: 0 0 0.15rem;
  color: #77736e;
  font:
    400 0.85rem/1.7 "Inter",
    system-ui,
    sans-serif;
}
.tech-stack__surface {
  padding: 0;
}
.tech-lane {
  min-width: 0;
}
.tech-lane + .tech-lane {
  margin-top: 0.6rem;
}
.tech-ribbon {
  cursor: grab;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: 0.45rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 10px;
}
.tech-ribbon.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.tech-ribbon::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.tech-ribbon__track,
.tech-ribbon__list {
  display: flex;
  width: max-content;
  gap: 2.5rem;
}
.tech-ribbon__list {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 0 0 auto;
}
.tech-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 112px;
  height: 50px;
}
.tech-chip img {
  width: 112px;
  height: 37px;
  object-fit: contain;
  transition: transform 400ms var(--ease-out);
}
.tech-ribbon.is-looping {
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 3%,
    #000 97%,
    transparent
  );
}
.tech-ribbon.is-looping .tech-ribbon__track {
  animation: tech-ribbon-flow 65s linear infinite;
  animation-play-state: paused;
}
.tech-stack.is-in-view .tech-ribbon.is-looping .tech-ribbon__track {
  animation-play-state: var(--ribbon-visibility, running);
}
.tech-lane--platforms .tech-ribbon.is-looping .tech-ribbon__track {
  animation-direction: reverse;
  animation-duration: 75s;
}
.tech-ribbon.is-browsing,
.tech-ribbon:focus-visible {
  overflow-x: auto;
  mask-image: none;
}
.tech-ribbon.is-browsing .tech-ribbon__track,
.tech-ribbon:focus-visible .tech-ribbon__track {
  animation: none;
}
@keyframes tech-ribbon-flow {
  to {
    transform: translateX(calc(-1 * var(--ribbon-distance)));
  }
}
@media (hover: hover) and (pointer: fine) {
  .tech-ribbon:hover .tech-ribbon__track {
    animation-play-state: paused !important;
  }
  .tech-chip:hover img {
    transform: scale(1.05);
  }
}
@media (max-width: 767px) {
  .tech-stack__head {
    display: block;
    margin-bottom: 1.1rem;
  }
  .tech-stack__title {
    text-align: center;
  }
  .tech-stack__intro {
    margin-top: 0.75rem;
    font-size: 0.8rem;
  }
  .tech-chip {
    flex-basis: 96px;
    height: 44px;
  }
  .tech-chip img {
    width: 96px;
    height: 32px;
  }
  .tech-ribbon__track,
  .tech-ribbon__list {
    gap: 8px;
  }
}
@media (max-width: 560px) {
  .tech-stack__title {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tech-ribbon.is-looping {
    overflow-x: auto;
    mask-image: none;
  }
  .tech-ribbon.is-looping .tech-ribbon__track {
    animation: none;
  }
  .tech-ribbon [aria-hidden="true"] {
    display: none;
  }
  .tech-chip,
  .tech-chip img {
    transition: none;
  }
  .tech-chip:hover img {
    transform: none;
  }
}
