:root {
  --nw-ease: cubic-bezier(0.23, 1, 0.32, 1);
}


.shout-works {
  position: relative;
}

.shout-index a {
  position: relative;
}

.shout-index .project-title {
  color: inherit;
  font-size: inherit;
  transition: transform 200ms var(--nw-ease), opacity 160ms ease;
}

.shout-index a > span:first-child {
  transition: opacity 160ms ease;
}

.shout-index a::before {
  content: "←";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--bone);
  opacity: 0;
  transform: translateX(7px);
  transition: opacity 160ms ease, transform 200ms var(--nw-ease);
}

.shout-index a::after {
  content: "";
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--bone-faint);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms var(--nw-ease);
}

.shout-index a.is-preview {
  color: var(--bone);
}

.shout-index a.is-preview > span:first-child {
  opacity: 0;
}

.shout-index a.is-preview .project-title {
  transform: translateX(-5px);
}

.shout-index a.is-preview::before {
  opacity: 1;
  transform: none;
}

.shout-index a.is-preview::after {
  transform: scaleX(1);
}

.shout-index a:active .project-title {
  transform: translateX(-9px);
}

.shout-index a:focus-visible .project-title,
.shout-index a:focus-visible > span:first-child,
.shout-index a:focus-visible::before,
.shout-index a:focus-visible::after {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .shout-index .project-title,
  .shout-index a > span:first-child,
  .shout-index a::before,
  .shout-index a::after {
    transition: none;
  }
}

.pf {
  position: absolute;
  right: calc(100% + 32px);
  bottom: calc(50% - 93.75px);
  z-index: 3;
  width: 300px;
  aspect-ratio: 16 / 10;
  pointer-events: none;
  opacity: 0;
  translate: 0 0;
  scale: 1;
  transform-origin: 100% 50%;
  transition: opacity 160ms ease, translate 320ms var(--nw-ease), scale 140ms var(--nw-ease);
}

.pf-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 14px;
  background-color: #181818;
  clip-path: inset(0 0 0 100% round 14px);
  transform: translateX(14px);
  transition: clip-path 160ms var(--nw-ease), transform 160ms var(--nw-ease);
}

.pf-clip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(245, 237, 232, 0.2);
}

.pf.is-open {
  opacity: 1;
  transition-duration: 200ms, 320ms, 140ms;
}

.pf.is-open .pf-clip {
  clip-path: inset(0 0 0 0 round 14px);
  transform: none;
  transition-duration: 260ms;
}

.pf.is-pressed {
  scale: 0.93;
}

.pf-item {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 200ms ease, transform 260ms var(--nw-ease);
}

.pf-item.is-current {
  z-index: 1;
  opacity: 1;
  transform: none;
}

.pf-item img,
.pf-item video {
  position: absolute;
  left: 0;
  top: calc(-1 * var(--crop-top, 0%));
  display: block;
  width: 100%;
  height: calc(100% + var(--crop-top, 0%));
  object-fit: cover;
}

.pf-item video {
  opacity: 0;
  transition: opacity 160ms ease;
}

.pf-item.is-live video {
  opacity: 1;
}

.pf.is-instant,
.pf.is-instant .pf-clip,
.pf.is-instant .pf-item,
.pf.is-instant .pf-item video {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .pf {
    transition: opacity 120ms ease;
  }

  .pf-clip,
  .pf.is-open .pf-clip {
    clip-path: inset(0 0 0 0 round 14px);
    transform: none;
    transition: none;
  }

  .pf-item {
    transform: none;
    transition: opacity 120ms ease;
  }

  .pf.is-pressed {
    scale: 0.95;
  }
}

@media (max-width: 1000px), not all and (hover: hover) and (pointer: fine) {
  .pf {
    display: none;
  }
}
