/* ═══════════════════════════════════════
   STACK
═══════════════════════════════════════ */
#stack {
  padding: 8rem 2.5rem;
  border-top: 1px solid var(--bd);
}

.stack-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 5rem;
}
.stack-subtitle {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--mu);
  max-width: 320px;
  line-height: 1.5;
}

/* Group rows */
.stack-groups { display: flex; flex-direction: column; }
.stack-group {
  display: grid;
  grid-template-columns: 170px 1fr;
  border-top: 1px solid var(--bd);
}
.stack-group:last-child { border-bottom: 1px solid var(--bd); }

.stack-group-label-col {
  padding: 2.2rem 1.5rem 2.2rem 0;
  border-right: 1px solid var(--bd);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .3rem;
}
.stack-group-name {
  font-family: var(--f-mono);
  font-size: .5rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mu);
}
.stack-group-sym {
  font-family: var(--f-display);
  font-size: 1rem;
  color: var(--ac);
  letter-spacing: .06em;
}

.stack-pills {
  padding: 1.8rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-content: center;
}

/* ── Tech pill button ──
   No link, just styled interactive button
   Hover: fills from left with foreground color
── */
.sk-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mu);
  background: transparent;
  border: 1px solid var(--bd);
  padding: .5rem 1.1rem;
  border-radius: 2px;
  cursor: default;
  transition: color .25s, border-color .25s;
  user-select: none;
  /* no pointer cursor — these are display items */
}

/* Fill sweep on hover */
.sk-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.sk-pill:hover::before { transform: scaleX(1); }
.sk-pill:hover {
  color: var(--bg);
  border-color: var(--fg);
}

/* Text stays above fill */
.sk-pill span { position: relative; z-index: 1; }

/* Small accent dot per category */
.sk-pill-dot {
  position: relative;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background .25s;
}
.sk-pill:hover .sk-pill-dot { background: var(--bg) !important; }

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
#contact {
  padding: 10rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: 'TALK';
  position: absolute;
  font-family: var(--f-display);
  font-size: 38vw;
  color: var(--bd);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
  user-select: none;
}
.contact-label {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 1.2rem;
  position: relative; z-index: 2;
}
.contact-title {
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 9vw, 9rem);
  line-height: .88;
  margin-bottom: 1.8rem;
  position: relative; z-index: 2;
}
.contact-email {
  display: block;
  position: relative; z-index: 2;
  font-family: var(--f-body);
  font-style: italic;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  color: var(--fg);
  text-decoration: none;
  margin-bottom: 3.5rem;
}
.contact-email::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--ac);
  transition: width .4s;
}
.contact-email:hover::after { width: 50%; }

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative; z-index: 2;
}
.contact-socials a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--f-mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--bd);
  padding: .6rem 1.3rem;
  border-radius: 2px;
  transition: all .22s;
}
.contact-socials a:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  padding: 1.8rem 2.5rem;
  border-top: 1px solid var(--bd);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer p {
  font-family: var(--f-mono);
  font-size: .55rem;
  letter-spacing: .16em;
  color: var(--mu);
}
footer a { color: var(--mu); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--ac); }
.footer-socials { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-socials a {
  font-family: var(--f-mono); font-size: .55rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.footer-mark {
  display: inline-flex; align-items: center;
  opacity: .75; transition: opacity .2s, transform .25s;
}
.footer-mark:hover { opacity: 1; transform: translateY(-1px); }
.footer-mark img {
  height: 22px; width: auto; display: block;
  transition: filter .4s;
}
[data-theme=dark] .footer-mark img {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .55));
}
@media (max-width: 700px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .8rem;
    padding: 1.6rem 1.4rem;
    justify-content: center;
  }
  footer .footer-socials { justify-content: center; }
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 700px) {
  #stack { padding: 5rem 1.5rem; }
  .stack-group { grid-template-columns: 1fr; }
  .stack-group-label-col {
    border-right: none;
    border-bottom: 1px solid var(--bd);
    padding: 1.2rem 0;
    flex-direction: row;
    align-items: center;
    gap: .8rem;
  }
  .stack-pills { padding: 1.4rem 0; }
}
