/* Tooling is a credibility footnote, not a selling point — it sits
   below the work and takes less vertical space than it used to. */

#techstack {
  padding: var(--section-padding-sm);
  background: var(--black);
  border-top: 1px solid var(--grey-2);
}
.techstack-header {
  margin-bottom: 36px;
}
.techstack-grid {
  display: grid;
  /* 16 tiles — fixed counts give even rows; auto-fill left a ragged
     half-row that read as unfinished. */
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}
.tech-tile {
  background: var(--grey-1);
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  transition: background-color var(--transition-base),
              border-color var(--transition-base);
  cursor: default;
}
.tech-tile img,
.tech-tile svg {
  width: 36px;
  height: 36px;
  filter: grayscale(100%) opacity(0.7);
  transition: filter var(--transition-base);
}

/* Without the hover gate these icons stay grey forever on touch. */
@media (hover: hover) and (pointer: fine) {
  .tech-tile:hover {
    border-color: var(--grey-2);
    background: #222222;
  }
  .tech-tile:hover img,
  .tech-tile:hover svg {
    filter: grayscale(0%) opacity(1);
  }
}
@media (hover: none) {
  .tech-tile img,
  .tech-tile svg {
    filter: grayscale(0%) opacity(0.9);
  }
}

.tech-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-4);
  text-align: center;
  letter-spacing: 0.1em;
}
