:root { --motion-ease: cubic-bezier(.22,1,.36,1); }
@keyframes content-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes status-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@media(prefers-reduced-motion:no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy > * { animation: content-in 900ms var(--motion-ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 100ms; }
  .hero-copy > :nth-child(3) { animation-delay: 220ms; }
  .hero-copy > :nth-child(4) { animation-delay: 340ms; }
  .auth-body, .workspace-content { animation: content-in 650ms var(--motion-ease) both; }
  [role="tabpanel"]:not([hidden]), .admin-section:not([hidden]) { animation: content-in 350ms var(--motion-ease) both; }
  dialog[open] { animation: dialog-in 280ms var(--motion-ease) both; }
  dialog[open]::backdrop { animation: status-in 220ms ease both; }
  .form-status:not(:empty) { animation: status-in 220ms ease both; }
}
.button, .btn, .tab, .workspace-nav a {
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 220ms var(--motion-ease), box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.button:active, .btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled, button[aria-busy="true"] { cursor: wait; opacity: .65; }
.field input, .field select, .field textarea { transition: border-color 180ms, box-shadow 180ms; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 3px #ff686e25; }
.site-menu a { position: relative; }
.site-menu a::after { content: ""; position: absolute; height: 1px; bottom: 6px; left: 0; right: 0; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 220ms; }
.site-menu a:hover::after, .site-menu a:focus-visible::after { transform: scaleX(1); }
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
