/* Artwork travels between its thumbnail and the accessible museum dialog. */
.neo-artwork-flight {
  position: fixed; left: 0; top: 0; z-index: 1400; margin: 0;
  max-width: none; max-height: none; object-fit: contain;
  transform-origin: 0 0; pointer-events: none; border-radius: 2px;
  background: transparent; will-change: transform;
}
.museum-overlay.has-art-transitions .museum-experience,
.museum-overlay.has-art-transitions .museum-artwork-frame {
  animation: none !important;
}

/* While the room unfolds out of the card, the artwork leads; the toolbar and the description follow it in. */
@keyframes museum-unfold-follow {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
html[data-motion="on"] .museum-overlay.is-unfolding .museum-toolbar,
html[data-motion="on"] .museum-overlay.is-unfolding .museum-panel {
  animation: museum-unfold-follow 420ms cubic-bezier(.22, 1, .36, 1) 260ms both !important;
}

/* Landing (artwork-transition.js): brackets lock on to the artwork, a light flashes across it and a scan line passes. */
.neo-artwork-land {
  --hud: #bafff5;
  position: absolute;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(var(--hud), var(--hud)) left top / 26px 2px,
    linear-gradient(var(--hud), var(--hud)) left top / 2px 26px,
    linear-gradient(var(--hud), var(--hud)) right top / 26px 2px,
    linear-gradient(var(--hud), var(--hud)) right top / 2px 26px,
    linear-gradient(var(--hud), var(--hud)) left bottom / 26px 2px,
    linear-gradient(var(--hud), var(--hud)) left bottom / 2px 26px,
    linear-gradient(var(--hud), var(--hud)) right bottom / 26px 2px,
    linear-gradient(var(--hud), var(--hud)) right bottom / 2px 26px;
  background-repeat: no-repeat;
}
.neo-artwork-land::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f4fffd 20% 80%, transparent);
  box-shadow: 0 0 16px 3px rgba(120, 247, 232, .55);
}
.neo-artwork-land::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(244, 255, 253, .32), rgba(120, 247, 232, .1) 55%, transparent 80%);
  mix-blend-mode: screen;
}
.neo-artwork-land-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 3px 8px;
  background: rgba(3, 5, 6, .78);
  color: var(--hud);
  font: 600 .68rem/1.4 ui-monospace, 'SFMono-Regular', Consolas, monospace;
  letter-spacing: .16em;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
}
@keyframes neo-land-lock {
  0% { opacity: 0; transform: scale(1.06); }
  18% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes neo-land-scan { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes neo-land-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes neo-land-type { to { clip-path: inset(0 0 0 0); } }
html[data-motion="on"] .neo-artwork-land { animation: neo-land-lock 1.8s cubic-bezier(.2, .8, .2, 1) both !important; }
html[data-motion="on"] .neo-artwork-land::before { animation: neo-land-scan 900ms cubic-bezier(.45, .05, .3, 1) 80ms both !important; }
html[data-motion="on"] .neo-artwork-land::after { animation: neo-land-flash 700ms ease-out both !important; }
html[data-motion="on"] .neo-artwork-land-label { animation: neo-land-type 480ms steps(18, end) 300ms both !important; }
