/* The 3D artwork is the project cover; the existing UI scene remains available on hover. */
.bento.bento--has-cover {
  height: auto;
  min-height: 0;
  background: linear-gradient(155deg, var(--cover-wash), var(--cover-tone));
}
.bento--booking { --cover-wash: #f8faff; --cover-tone: #d4dff8; }
.bento--prepaid { --cover-wash: #f4f0fb; --cover-tone: #ddd2ee; }
.bento--dovgan { --cover-wash: #fff4ee; --cover-tone: #efd2c4; }
.bento--osi { --cover-wash: #f0f7ff; --cover-tone: #ccdef6; }
.bento--enande { --cover-wash: #fcf9f1; --cover-tone: #e6d9bd; }
.bento--adler { --cover-wash: #fff5f3; --cover-tone: #f2cdc8; }
.bento--neumann { --cover-wash: #f4f6fb; --cover-tone: #d4dae8; }
.bento--roggentin { --cover-wash: #f2f9f2; --cover-tone: #cfe6d0; }
.bento--scanhaus { --cover-wash: #f3f7ff; --cover-tone: #cfe0f6; }
[data-theme="dark"] .bento--booking { --cover-wash: #232a38; --cover-tone: #293958; }
[data-theme="dark"] .bento--prepaid { --cover-wash: #302a40; --cover-tone: #423453; }
[data-theme="dark"] .bento--dovgan { --cover-wash: #35292d; --cover-tone: #503a34; }
[data-theme="dark"] .bento--osi { --cover-wash: #253345; --cover-tone: #29466b; }
[data-theme="dark"] .bento--enande { --cover-wash: #33312b; --cover-tone: #484031; }
[data-theme="dark"] .bento--adler { --cover-wash: #352826; --cover-tone: #52322f; }
[data-theme="dark"] .bento--neumann { --cover-wash: #262a33; --cover-tone: #343b4d; }
[data-theme="dark"] .bento--roggentin { --cover-wash: #26322a; --cover-tone: #2f4a37; }
[data-theme="dark"] .bento--scanhaus { --cover-wash: #232c3a; --cover-tone: #27405f; }
.bento--has-cover .bento__project-link {
  grid-template-rows: minmax(168px, auto) auto;
  gap: 0;
  padding: 0;
}
.bento--has-cover .bento__heading {
  padding: 26px 28px 24px;
}
.project-cover.live-preview {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  margin: -18px 0 0;
  --cover-blend: clamp(38px, 4.3vw, 64px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #00000012 calc(var(--cover-blend) * .18), #00000059 calc(var(--cover-blend) * .42), #000000c2 calc(var(--cover-blend) * .72), #000 var(--cover-blend));
  mask-image: linear-gradient(to bottom, transparent 0, #00000012 calc(var(--cover-blend) * .18), #00000059 calc(var(--cover-blend) * .42), #000000c2 calc(var(--cover-blend) * .72), #000 var(--cover-blend));
  overflow: hidden;
  border: 0;
  border-radius: 0;
}
.project-cover > .project-cover__image {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: normal;
  opacity: 1;
  transform: scale(1);
  transition: opacity 800ms cubic-bezier(.45,0,.55,1), transform 1100ms cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
.bento--prepaid .project-cover > .project-cover__image {
  object-fit: cover;
  mix-blend-mode: normal;
}
.project-cover .preview-art {
  z-index: 1;
  inset: 22px;
  opacity: 1;
  transform: translateY(8px) scale(.985);
  transition: transform 850ms cubic-bezier(.22,.61,.36,1);
}
.bento--has-cover.is-preview-active .project-cover__image {
  transform: scale(1.025);
}
@media (hover: hover) and (pointer: fine) {
  .bento--has-cover .bento__project-link:hover .project-cover__image {
    opacity: 0;
    transform: scale(1.025);
    transition-delay: 160ms, 0ms;
  }
  .bento--has-cover .bento__project-link:hover .preview-art {
    transform: none;
    transition-delay: 160ms;
  }
}
.bento--has-cover .bento__project-link:focus-visible .project-cover__image { opacity: 0; }
.bento--has-cover .bento__project-link:focus-visible .preview-art { transform: none; }
.cs-cover.cs-cover--artwork {
  padding: 0;
  aspect-ratio: 3 / 2;
  background: var(--case-stage);
  overflow: hidden;
  border: 0;
  border-radius: 28px;
}
.cs-cover--artwork img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 700px) {
  .bento--has-cover .bento__project-link { grid-template-rows: minmax(152px, auto) auto; }
  .bento--has-cover .bento__heading { padding: 22px 22px 20px; }
  .project-cover .preview-art { inset: 16px; }
  .cs-cover.cs-cover--artwork { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .bento--has-cover .project-cover__image {
    transform: none !important;
    opacity: 1 !important;
    transition: none;
  }
  .project-cover .preview-art { opacity: 0 !important; transition: none; }
}
