/* Both the plate and its link inherit exactly the same depth at each instant. */
@property --assembly-spread {
  syntax: "<number>";
  inherits: true;
  initial-value: 74;
}
/* 10.9 seconds: open for 2.2s, hold open for 6.5s, close for 2.2s. */
@keyframes open-assembly {
  0%, 100% { --assembly-spread: 12; }
  20.18348624%, 79.81651376% { --assembly-spread: 94; }
}
@media (prefers-reduced-motion: no-preference) {
  [data-assembly][data-assembly-sequence] {
    animation: open-assembly 10.9s cubic-bezier(.45, 0, .55, 1) infinite both paused;
  }
  [data-assembly][data-assembly-sequence="playing"] { animation-play-state: running; }
  [data-assembly][data-assembly-sequence]:has([data-layer]:is(:focus, :active)) { animation-play-state: paused; }
}
[data-assembly] { --assembly-spread: 74; }
.assembly-stack { position: relative; aspect-ratio: 900 / 780; }
.assembly-slice {
  pointer-events: none;
  user-select: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(calc(var(--depth) * var(--assembly-spread) * .12%));
}

.sys-motion-toggle {
  position: absolute;
  inset-inline-end: 1rem;
  bottom: 0;
  padding: .25rem .4rem;
  min-height: 32px;
  border: 0;
  background: transparent;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: #c1d2d1;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.sys-motion-toggle:not(:focus-visible) {
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.sys-motion-toggle:focus-visible { color: #eef2ed; background: #132226; outline: 2px solid var(--plate-signal, #6de5df); }
