body.is-depth-blur-open {
  overflow: hidden;
}

.depth-blur-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  --highlight-card-width: 320px;
  --highlight-card-pad-inline: clamp(14px, calc(var(--highlight-card-width) * 0.072), 20px);
  --highlight-card-pad-top: clamp(14px, calc(var(--highlight-card-width) * 0.06), 20px);
  --highlight-card-pad-bottom: clamp(14px, calc(var(--highlight-card-width) * 0.072), 24px);
  --highlight-card-eyebrow-size: clamp(10px, calc(var(--highlight-card-width) * 0.033), 11px);
  --highlight-card-headline-size: clamp(17px, calc(var(--highlight-card-width) * 0.063), 21px);
  --highlight-card-footer-size: clamp(12px, calc(var(--highlight-card-width) * 0.042), 14px);
  --highlight-card-tight-leading: clamp(18px, calc(var(--highlight-card-width) * 0.066), 22px);
  --highlight-card-headline-leading: clamp(
    1.12,
    calc(1.12 + ((var(--highlight-card-width) - 236px) / 124px) * 0.08),
    1.2
  );
  --highlight-track-gap: 24px;
  --highlight-focus-overscan: 12px;
  --highlight-edge-inset: clamp(8px, 1.5vw, 16px);
  --highlight-grid-inset: max(16px, calc((100vw - min(var(--content-max-width), calc(100vw - 40px))) / 2));
  background: transparent;
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
  --overlay-content-tx: 0px;
  --overlay-content-ty: 0px;
  --overlay-content-sx: 1;
  --overlay-content-sy: 1;
  --overlay-content-radius: 0px;
  --overlay-origin-x: 50vw;
  --overlay-origin-y: 50vh;
  transition: opacity 360ms cubic-bezier(0, 0, 0.2, 1);
}

.depth-blur-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(17 17 17 / 98%);
  opacity: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 0;
  pointer-events: none;
  will-change: opacity;
  transition:
    background-color 360ms cubic-bezier(0, 0, 0.2, 1),
    opacity 220ms cubic-bezier(0, 0, 0.2, 1);
}

.depth-blur-overlay.is-opening::before,
.depth-blur-overlay.is-open::before {
  opacity: 1;
}

.depth-blur-overlay.is-opening,
.depth-blur-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-out;
}

.depth-blur-overlay.is-opening {
  transition-duration: 90ms;
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.depth-blur-overlay.is-closing {
  transition-duration: 280ms;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.depth-blur-overlay-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
  transform-origin: center center;
  transform-style: preserve-3d;
  perspective: 1400px;
  transform: translate3d(var(--overlay-content-tx), var(--overlay-content-ty), 0)
    scale(var(--overlay-content-sx), var(--overlay-content-sy));
  border-radius: var(--overlay-content-radius);
  opacity: 1;
  filter: saturate(0.9) blur(2px);
  transition:
    transform 620ms cubic-bezier(0.05, 0.75, 0.15, 1),
    border-radius 560ms cubic-bezier(0.05, 0.75, 0.15, 1),
    opacity 300ms cubic-bezier(0, 0, 0.2, 1),
    filter 480ms cubic-bezier(0, 0, 0.2, 1);
  will-change: transform, border-radius, opacity, filter;
}

.depth-blur-overlay.is-open .depth-blur-overlay-content {
  filter: saturate(1) blur(0);
}

.depth-blur-overlay.is-closing .depth-blur-overlay-content {
  transition-duration: 320ms, 300ms, 240ms, 220ms;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1), cubic-bezier(0.4, 0, 1, 1), cubic-bezier(0.4, 0, 1, 1), cubic-bezier(0.4, 0, 1, 1);
}

.depth-blur-overlay-title {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: clamp(84px, 18vh, 176px);
  transform: translate(-50%, 0);
  width: 100%;
  margin: 0;
  padding: 0 20px;
  text-align: center;
  color: var(--color-text-content-overlay-title);
  font-family: "Fragment Mono", monospace;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.28px;
  pointer-events: none;
}

.depth-blur-overlay.is-open:not(.is-closing) .depth-blur-overlay-title {
  animation: depthOverlayTitleIn 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.depth-blur-overlay.is-closing .depth-blur-overlay-title {
  animation: depthOverlayTitleOut 180ms cubic-bezier(0.4, 0, 1, 1) both;
}

.depth-blur-overlay-track {
  width: 100%;
  display: flex;
  gap: var(--highlight-track-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 32px;
  padding-bottom: 32px;
  padding-left: calc(var(--highlight-grid-inset) + var(--highlight-focus-overscan) + var(--highlight-edge-inset));
  padding-right: calc(var(--highlight-grid-inset) + var(--highlight-focus-overscan) + var(--highlight-edge-inset));
  margin: -32px 0;
  pointer-events: auto;
  cursor: zoom-out;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-padding-left: calc(var(--highlight-grid-inset) + var(--highlight-focus-overscan) + var(--highlight-edge-inset));
  scroll-padding-right: calc(var(--highlight-grid-inset) + var(--highlight-focus-overscan) + var(--highlight-edge-inset));
  overscroll-behavior-x: contain;
}

.depth-blur-overlay-track::-webkit-scrollbar {
  display: none;
}

.depth-blur-overlay-nav {
  width: 100%;
  padding: 0 calc(var(--highlight-grid-inset) + var(--highlight-edge-inset));
  display: flex;
  justify-content: center;
  gap: 4px;
  pointer-events: auto;
  cursor: zoom-out;
}

.depth-blur-overlay-nav-button {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 120ms cubic-bezier(0.22, 1, 0.36, 1);
  background-image: none !important;
}

.depth-blur-overlay-nav-icon {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
  transform: scale(1);
  transition:
    transform 120ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 140ms ease,
    opacity 140ms ease;
}

.depth-blur-overlay-nav-button:hover,
.depth-blur-overlay-nav-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.depth-blur-overlay-nav-button:hover .depth-blur-overlay-nav-icon,
.depth-blur-overlay-nav-button:focus-visible .depth-blur-overlay-nav-icon {
  filter: brightness(1.1);
  outline: none;
}

.depth-blur-overlay-nav-button.is-nav-pressed .depth-blur-overlay-nav-icon {
  transform: scale(0.86);
  filter: brightness(0.94);
  transition-duration: 60ms, 100ms, 100ms;
}

.depth-blur-overlay-nav-button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.depth-blur-overlay-nav-button:disabled .depth-blur-overlay-nav-icon {
  filter: saturate(0.7);
}

.depth-blur-overlay.is-open:not(.is-closing) .depth-blur-overlay-nav-button {
  animation: depthNavButtonIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--nav-button-index, 0) * 24ms);
}

.depth-blur-overlay.is-closing .depth-blur-overlay-nav-button {
  animation: depthNavButtonOut 180ms cubic-bezier(0.4, 0, 1, 1) both;
  animation-delay: calc(var(--nav-button-index, 0) * 24ms);
  pointer-events: none;
}

@keyframes depthNavButtonIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes depthNavButtonOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-12px);
    opacity: 0;
  }
}

@keyframes depthOverlayTitleIn {
  from {
    transform: translate(-50%, 10px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes depthOverlayTitleOut {
  from {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, 12px);
    opacity: 0;
  }
}

.depth-highlight-card {
  --card-enter-from-x: 0px;
  --card-enter-from-y: 24px;
  --card-enter-rotate-x: 1.1deg;
  --card-enter-rotate-y: 0deg;
  --card-enter-rotate-z: 0deg;
  --card-enter-scale: 0.955;
  --card-enter-origin-x: 50%;
  --card-enter-origin-y: 50%;
  flex: 0 0 var(--highlight-card-width);
  aspect-ratio: 4 / 5;
  min-height: 0;
  border-radius: 15px;
  border: 2px solid transparent;
  background: var(--color-surface-inverse);
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  overflow: hidden;
  position: relative;
  transform: translate3d(var(--card-enter-from-x), var(--card-enter-from-y), -4px)
    rotateX(var(--card-enter-rotate-x))
    rotateY(var(--card-enter-rotate-y))
    rotateZ(var(--card-enter-rotate-z))
    scale(var(--card-enter-scale));
  transform-origin: var(--card-enter-origin-x) var(--card-enter-origin-y);
  opacity: 0;
  backface-visibility: hidden;
  will-change: transform, opacity;
  cursor: default;
}

.depth-highlight-card.is-selected,
.depth-highlight-card:focus-visible {
  border-color: transparent;
  box-shadow: inset 0 0 0 4px var(--color-border-accent-brand);
  outline: none;
}

.depth-highlight-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.depth-highlight-card-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.depth-highlight-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.depth-highlight-card-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  color: #313949;
  pointer-events: none;
}

.depth-highlight-card-copy--top {
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--highlight-card-pad-top) var(--highlight-card-pad-inline) var(--highlight-card-pad-bottom);
  background: linear-gradient(180deg, rgba(245, 245, 245, 0.92) 0%, rgba(245, 245, 245, 0) 100%);
}

.depth-blur-overlay-track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.depth-highlight-card-copy--bottom {
  bottom: 0;
  padding: var(--highlight-card-pad-bottom) var(--highlight-card-pad-inline) clamp(12px, calc(var(--highlight-card-width) * 0.048), 16px);
  background: linear-gradient(0deg, rgba(245, 245, 245, 0.92) 0%, rgba(245, 245, 245, 0) 100%);
}

.depth-highlight-card-eyebrow {
  margin: 0;
  font-family: "Fragment Mono", monospace;
  font-size: var(--highlight-card-eyebrow-size);
  font-weight: 400;
  line-height: var(--highlight-card-tight-leading);
  letter-spacing: -0.22px;
}

.depth-highlight-card-headline {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: var(--highlight-card-headline-size);
  font-weight: 600;
  line-height: var(--highlight-card-headline-leading);
  letter-spacing: -0.21px;
  text-wrap: balance;
}

.depth-highlight-card-footer {
  margin: 0;
  font-family: "Fragment Mono", monospace;
  font-size: var(--highlight-card-footer-size);
  font-weight: 400;
  line-height: var(--highlight-card-tight-leading);
  letter-spacing: -0.28px;
  overflow-wrap: anywhere;
}

.depth-highlight-card--dark {
  background: #000000;
}

.depth-highlight-card--dark .depth-highlight-card-copy {
  color: #f5f5f5;
}

.depth-highlight-card--dark .depth-highlight-card-copy--top {
  background: none;
}

.depth-highlight-card--dark .depth-highlight-card-copy--bottom {
  background: none;
}

.depth-highlight-card--blue {
  background: #4d4cf5;
}

.depth-highlight-card--blue .depth-highlight-card-copy {
  color: #f5f5f5;
}

.depth-highlight-card--blue .depth-highlight-card-copy--top {
  background: none;
}

.depth-highlight-card--blue .depth-highlight-card-copy--bottom {
  background: none;
}

.depth-blur-overlay.is-open:not(.is-closing) .depth-highlight-card {
  animation: depthHighlightCardIn 360ms cubic-bezier(0.16, 0.84, 0.24, 1) forwards;
  animation-delay: calc(var(--card-stagger-index, 0) * 26ms);
}

.depth-highlight-card-description {
  margin: 0;
  font-family: "Fragment Mono", monospace;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.2px;
  color: var(--color-text-on-light-primary);
}

@keyframes depthHighlightCardIn {
  from {
    transform: translate3d(var(--card-enter-from-x), var(--card-enter-from-y), -4px)
      rotateX(var(--card-enter-rotate-x))
      rotateY(var(--card-enter-rotate-y))
      rotateZ(var(--card-enter-rotate-z))
      scale(var(--card-enter-scale));
    opacity: 0;
  }
  52% {
    opacity: 0.78;
  }
  86% {
    transform: translate3d(0, -0.25px, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1.0005);
    opacity: 1;
  }
  to {
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    opacity: 1;
  }
}

.depth-blur-overlay-close {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transform-origin: 50% 50%;
  background-image: none !important;
  will-change: transform;
  transition:
    transform 140ms ease,
    filter 140ms ease;
}

.depth-blur-overlay.is-open:not(.is-closing) .depth-blur-overlay-close {
  animation: depthCloseButtonSpinIn 680ms linear both;
  animation-delay: 0s;
}

.depth-blur-overlay.is-closing .depth-blur-overlay-close {
  animation: depthCloseButtonSpinOut 260ms linear both;
}

.depth-blur-overlay-close-icon {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  pointer-events: none;
}

.depth-blur-overlay.is-open:not(.is-closing) .depth-blur-overlay-close-icon {
  animation: depthCloseIconSpringIn 320ms linear both;
}

.depth-blur-overlay.is-closing .depth-blur-overlay-close-icon {
  animation: depthCloseIconSpringOut 200ms linear both;
}

.depth-blur-overlay.is-open:not(.is-closing):not(.is-opening) .depth-blur-overlay-close:hover,
.depth-blur-overlay.is-open:not(.is-closing):not(.is-opening) .depth-blur-overlay-close:focus-visible {
  transform: translateX(-50%) scale(1.02);
  filter: brightness(1.1);
  outline: none;
  background-image: none !important;
}

.depth-blur-overlay-close:active {
  transform: translateX(-50%) scale(0.98);
}

.depth-blur-overlay-close.is-close-pressed {
  transform: translateX(-50%) scale(0.94);
}

@keyframes depthCloseButtonSpinIn {
  0% {
    transform: translateX(-50%) rotate(-456deg);
  }
  60% {
    transform: translateX(-50%) rotate(-137deg);
  }
  84% {
    transform: translateX(-50%) rotate(-28deg);
  }
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
}

@keyframes depthCloseButtonSpinOut {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }
  60% {
    transform: translateX(-50%) rotate(-137deg);
  }
  84% {
    transform: translateX(-50%) rotate(-28deg);
  }
  100% {
    transform: translateX(-50%) rotate(-456deg);
  }
}

@keyframes depthCloseIconSpringIn {
  0% {
    transform: scale(0);
  }
  68% {
    transform: scale(1.08);
  }
  84% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes depthCloseIconSpringOut {
  0% {
    transform: scale(1);
  }
  16% {
    transform: scale(0.96);
  }
  32% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .depth-blur-overlay.is-open:not(.is-closing) .depth-blur-overlay-close {
    animation: none;
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }

  .depth-blur-overlay.is-closing .depth-blur-overlay-close {
    animation: none;
  }

  .depth-blur-overlay-close,
  .depth-blur-overlay-close-icon {
    transition: none;
  }

  .depth-blur-overlay.is-open:not(.is-closing) .depth-blur-overlay-close-icon {
    animation: none;
    transform: scale(1);
  }

  .depth-blur-overlay.is-closing .depth-blur-overlay-close-icon {
    animation: none;
  }
}

@media (max-width: 760px) {
  .depth-blur-overlay {
    --highlight-track-gap: 12px;
    --highlight-focus-overscan: 10px;
    --highlight-edge-inset: 12px;
    --highlight-grid-inset: 12px;
  }

  .depth-blur-overlay-content {
    gap: 12px;
  }

  .depth-blur-overlay-track {
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: -20px;
    margin-bottom: -20px;
  }

  .project-copy-footer {
    gap: 12px;
  }

  .project-copy-meta {
    flex: 1 1 auto;
    min-width: 0;
  }

  .project-copy-action-wrap {
    width: auto;
    flex: 0 0 auto;
  }
}
