/* ==========================================================================
   Tech stack
   Six grouped cards, each naming where that part of the stack is used and
   what it is built from. Self-contained: nothing here restyles another
   section, so the file can be removed and only this section changes.
   ========================================================================== */

/* The shared section header is a two-column grid, so the eyebrow takes a row
   of its own above the heading instead of stealing the heading's column. */
.stack-sec .sec-head .eyebrow {
  grid-column: 1 / -1;
  justify-self: start;
  margin-bottom: -1.25rem;
}

.stk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.stk-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.25rem, 2.2vw, 1.8rem);
  border: 1px solid #262624;
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.stk-card header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.stk-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--grey);
}

.stk-card h3 {
  font-weight: 600;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  letter-spacing: -0.02em;
}

.stk-card > p {
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.6;
}

.stk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: auto 0 0;
  padding: 0.35rem 0 0;
  list-style: none;
}

.stk-chips li {
  padding: 0.35rem 0.7rem;
  border: 1px solid #303030;
  border-radius: 999px;
  background: #0f0f0f;
  color: var(--soft);
  font-size: 0.82rem;
  line-height: 1.3;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

/* Pointer devices only: a chip is not interactive, it just answers the hover. */
@media (hover: hover) {
  .stk-chips li:hover {
    border-color: #4d4d49;
    color: var(--white);
  }
}

@media (max-width: 1080px) {
  .stk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .stk-grid {
    grid-template-columns: 1fr;
  }
}
