/* selected work motion */
.work-title-window {
  position: relative;
  height: calc(var(--type-heading-size) + 8px);
  overflow: hidden;
}

.work-item {
  position: absolute;
  inset: 0 auto auto 0;
  color: var(--soft);
  font-size: var(--type-heading-size);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--type-heading-line);
  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: rgba(255,255,255,.52);
  opacity: 1;
  transform: translateY(0);
}

.work-copy-stack {
  position: relative;
  min-height: clamp(88px, 12svh, 132px);
}

.work-copy {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  transition: opacity .167s linear;
}

.work-copy.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),
    translate var(--project-elevation-duration, .333s) var(--project-elevation-easing, cubic-bezier(.22,1,.36,1)),
    scale var(--project-elevation-duration, .333s) var(--project-elevation-easing, 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);
}

@media (max-width: 920px) {
  .work-copy-stack { display: none; }
  .work-item {
    font-weight: var(--weight-display);
  }
  .work-section .project-card,
  .work-section .project-card.in-view,
  .work-section .project-card.in-view:not(.is-current),
  .work-section .project-card.is-current {
    opacity: 1;
    filter: none;
    transition: none;
  }
}
