/* The unturned page and its curled corner share a continuous card edge. */
.project-card { position: relative; }
.project-card:has(.project-paper-tab) .project-actions { min-height: 2.05rem; }
.project-paper-tab {
  position: absolute;
  z-index: 5;
  inset: auto 0 0 auto;
  width: 154px;
  height: 46px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  text-decoration: none;
  color: #f4faff;
}
.project-paper-tab__sheet {
  position: absolute;
  inset: auto 0 0 auto;
  width: 154px;
  height: 88px;
  pointer-events: none;
  transform-origin: bottom right;
  filter: drop-shadow(-5px -2px 7px #030811aa);
  transition: transform 180ms ease, filter 180ms ease;
}
.project-paper-tab__caption {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  padding: 0 .82rem .62rem 0;
  z-index: 1;
  font-size: .73rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 3px #061322, 0 0 4px #061322;
}
.project-paper-tab:is(:hover,:focus-visible) .project-paper-tab__sheet {
  transform: scale(1.09, 1.15);
  filter: brightness(1.17) drop-shadow(-7px -4px 9px #030811cb);
}
.project-paper-tab:active .project-paper-tab__sheet { transform: scale(.98, .96); }
.project-paper-tab:focus-visible { outline: 2px solid #e6f5ff; outline-offset: -5px; }
@media (max-width: 500px) {
  .project-paper-tab, .project-paper-tab__sheet { width: 139px; }
  .project-paper-tab__sheet { height: 79px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-paper-tab__sheet { transition: none; }
  .project-paper-tab:is(:hover,:focus-visible,:active) .project-paper-tab__sheet { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  :root::view-transition-group(root),
  :root::view-transition-old(root),
  :root::view-transition-new(root) { animation: none; }
  :root:active-view-transition-type(project-unfold)::view-transition-group(root) { animation-duration: 445ms; }
  :root:active-view-transition-type(project-unfold)::view-transition-old(root) {
    animation: joycat-fold-hold 445ms ease-out both;
  }
  :root:active-view-transition-type(project-unfold)::view-transition-new(root) {
    transform-origin: right 48%;
    animation: joycat-unfold 445ms cubic-bezier(.2,.75,.24,1) both;
  }
}
@keyframes joycat-fold-hold { to { filter: brightness(.57); } }
@keyframes joycat-unfold {
  from { transform: perspective(1000px) rotateY(-67deg) scaleX(.36); filter: brightness(.72) drop-shadow(-16px 6px 18px #0009); opacity: .5; }
  70% { filter: brightness(1) drop-shadow(-5px 2px 8px #0005); opacity: 1; }
  to { transform: perspective(1000px) rotateY(0) scaleX(1); filter: none; opacity: 1; }
}
