/* The reading plane stays still. Perspective belongs only to decorative art. */
[data-motion-layer] {
  --motion-depth: .3;
  pointer-events: none;
  transform: translate3d(calc(var(--motion-x, 0px) * var(--motion-depth)), calc(var(--motion-y, 0px) * var(--motion-depth)), 0);
}
[data-motion-layer="middle"] { --motion-depth: .65; }
[data-motion-layer="front"] { --motion-depth: 1; }
[aria-hidden="true"][data-motion-art] {
  pointer-events: none;
  transform: perspective(1100px) translate3d(calc(var(--motion-x, 0px) * .35), calc(var(--motion-y, 0px) * .35), 0) rotateX(var(--motion-tilt-x, 0deg)) rotateY(var(--motion-tilt-y, 0deg));
  transform-origin: 50% 55%;
}
[aria-hidden="true"][data-motion-art]::after {
  content: "";
  position: absolute;
  inset: 14% 18% 17%;
  border-radius: 44% 45% 35% 42%;
  background: radial-gradient(ellipse at var(--motion-light-x, 50%) var(--motion-light-y, 50%), rgba(255, 255, 255, .42), rgba(255, 255, 255, .09) 30%, transparent 62%);
  opacity: .7;
  pointer-events: none;
}
.motion-active [data-motion-layer], .motion-active [aria-hidden="true"][data-motion-art] { will-change: transform; }
/* These controls keep their existing focus outline and do not move their text. */
:is(.button, .login-link, .menu-toggle, .product-tab) { position: relative; }
:is(.button, .login-link, .menu-toggle, .product-tab):active { box-shadow: inset 0 2px 7px rgba(20, 65, 73, .15), inset 0 1px 0 rgba(255, 255, 255, .4); }
:is(.button, .login-link, .menu-toggle, .product-tab) > .motion-press {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.motion-press::before {
  content: "";
  position: absolute;
  bottom: 1px;
  left: var(--press-x, 50%);
  width: 46%;
  height: 1px;
  background: #fff0cc; box-shadow: 0 0 5px #ffeeb6;
  transform: translateX(-50%) scaleX(.08);
  opacity: 0;
  animation: glass-press 480ms ease-out;
}
@keyframes glass-press {
  0% { opacity: .7; transform: translateX(-50%) scaleX(.08); }
  100% { opacity: 0; transform: translateX(-50%) scaleX(1); }
}
@media (prefers-reduced-motion: reduce), (prefers-reduced-transparency: reduce), (hover: none), (pointer: coarse) {
  [data-motion-layer], [aria-hidden="true"][data-motion-art] { transform: none; will-change: auto; }
  [aria-hidden="true"][data-motion-art]::after { display: none; }
  .glass-liquid { transform: none !important; }
}
@media (prefers-reduced-motion: reduce), (prefers-reduced-transparency: reduce) {
  .motion-press { display: none !important; }
}
@media print {
  [data-motion-layer], [aria-hidden="true"][data-motion-art], .motion-press { display: none !important; }
}

@media screen and (prefers-reduced-motion: no-preference) and (prefers-reduced-transparency: no-preference) {
  .js .proof-panel:not([hidden]) .fragment-question { animation: reveal-question .32s ease-out both; }
  @keyframes reveal-question {
    from { opacity: .35; transform: translateY(3px); }
    to { opacity: 1; transform: none; }
  }
}
