/* selected work motion */
.work-title-window {
  position: relative;
  height: clamp(32px, 3vw, 42px);
  overflow: hidden;
}

.work-item {
  position: absolute;
  inset: 0 auto auto 0;
  color: var(--soft);
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 460;
  letter-spacing: -.055em;
  line-height: 1;
  opacity: 0;
  transform: translateY(calc(var(--project-offset, 1) * 105%));
  transition:
    transform .333s cubic-bezier(0,0,0,1),
    opacity .133s cubic-bezier(.75,0,.85,1);
}

.work-item.is-active {
  color: var(--ink);
  opacity: 1;
  transform: translateY(0);
}

.work-detail-stack {
  position: relative;
  margin-top: auto;
  min-height: 230px;
}

.work-detail {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 34px;
  opacity: 0;
  transition: opacity .167s linear;
}

.work-detail.is-active {
  opacity: 1;
  transition-delay: .167s;
}

.work-section .project-card {
  opacity: .2;
  transform: translateY(0);
  filter: saturate(.78) brightness(.7);
  transition:
    opacity .167s linear,
    filter .167s linear,
    border-color .167s linear,
    transform .333s cubic-bezier(.22,1,.36,1);
}

.work-section .project-card.in-view:not(.is-current) {
  opacity: .2;
  filter: saturate(.78) brightness(.7);
}

.work-section .project-card.is-current {
  opacity: 1;
  border-color: rgba(241,255,46,.28);
  filter: saturate(1.08) brightness(1.1);
}

.work-section .project-card:hover {
  transform: translateY(-4px) scale(1.006);
}

@media (max-width: 920px) {
  .work-title-window { height: clamp(30px, 9vw, 42px); }
  .work-detail-stack { display: none; }
  .work-item {
    font-size: clamp(24px, 9vw, 42px);
    font-weight: 720;
  }
  .work-section .project-card,
  .work-section .project-card.in-view {
    opacity: 1;
    filter: saturate(1.04) brightness(1.08);
  }
}
