.drawer-opening {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none;
  border: 0; padding: 0; margin: 0; overflow: hidden; color: var(--ink); background: transparent;
}
.drawer-opening::backdrop { background: transparent; }
.drawer-opening[open] { display: grid; place-items: center; }
.opening-surface { position: absolute; inset: 0; background: var(--paper); }
.opening-surface::before { position: absolute; inset: 5%; content: ""; border-block: 1px solid var(--line); }
.opening-stage { position: relative; isolation: isolate; width: min(82vw, 590px, 95svh); aspect-ratio: 1.45; }
.opening-tray-back, .opening-tray-front { position: absolute; left: 10%; right: 10%; bottom: 9%; }
.opening-tray-back {
  height: 48%; background: #797e66; border: 1px solid #555d4e;
  clip-path: polygon(0 9%, 4% 9%, 6% 0, 33% 0, 36% 9%, 100% 9%, 100% 100%, 0 100%);
}
.opening-tray-front {
  z-index: 2; height: 34%; display: grid; place-items: center;
  background: linear-gradient(176deg, #aeb099, #a3a68e 58%, #979c84); border: 1px solid #565e4c;
  border-top: 4px double #5d634f; box-shadow: inset 0 -6px 0 #868d75, inset 0 -7px 0 #62695480;
  transform: perspective(400px) rotateX(-5deg); transform-origin: bottom;
}
.label-holder {
  position: relative; min-width: 42%; padding: 5px 15px; text-align: center;
  background: #c9bf9b; border: 1px solid #62604d; box-shadow: inset 0 1px 0 #f8edcc, 0 2px 2px #3a3e2d50;
}
.label-holder::before, .label-holder::after {
  content: ""; width: 4px; height: 4px; position: absolute; top: calc(50% - 2px); background: #585849; border-radius: 50%;
}
.label-holder::before { left: 5px; } .label-holder::after { right: 5px; }
.label-holder span { display: block; padding: .14em .47em; border: 1px solid #83806a; background: #f7f2df; font: italic clamp(18px, 3vw, 33px)/1.1 var(--serif); letter-spacing: -.04em; }
.opening-shadow { z-index: -1; position: absolute; left: 10%; right: 9%; bottom: 6%; height: 11%; border-radius: 50%; background: #393c2e33; filter: blur(9px); }
.opening-print, .opening-flight { background: #fffdf5; padding: 4px 4px 9px; border: 1px solid #797a6d; box-shadow: 1px 3px 5px #34382c29; }
.opening-print {
  position: absolute; width: 36%; left: 50%; bottom: 41%; transform-origin: center;
  animation: deal-print 860ms var(--delay) cubic-bezier(.19,.86,.25,1) both;
}
.opening-print img, .opening-flight img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.opening-print:nth-child(1) { --spread: -144%; --lift: 6%; --angle: -23deg; --delay: 120ms; }
.opening-print:nth-child(2) { --spread: -81%; --lift: -11%; --angle: -10deg; --delay: 195ms; }
.opening-print:nth-child(3) { --spread: -17%; --lift: -9%; --angle: 9deg; --delay: 265ms; }
.opening-print:nth-child(4) { --spread: 42%; --lift: 5%; --angle: 22deg; --delay: 335ms; }
@keyframes deal-print {
  0% { transform: translate(-50%, 65%) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  75% { transform: translate(var(--spread), calc(var(--lift) - 4%)) rotate(var(--angle)); }
  100% { transform: translate(var(--spread), var(--lift)) rotate(var(--angle)); }
}
.opening-flight { position: fixed; top: 0; left: 0; z-index: 2; transform-origin: 0 0; pointer-events: none; }
.drawer-opening.is-filing .opening-stage { animation: shelve-tray 610ms cubic-bezier(.55,.02,.75,.45) both; }
.drawer-opening.is-filing .opening-surface { animation: uncover-desk 650ms ease both; }
@keyframes shelve-tray { to { transform: translateY(36svh) scale(.92); opacity: 0; } }
@keyframes uncover-desk { 15% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .drawer-opening[open] { display: none; }
}
