/* Cosmogas: movimento.
   Il movimento rivela una lavorazione o conferma un'azione. Non decora uno scroll.
   Nessun rimbalzo, nessun overshoot, nessun contatore animato. */
:root{
  /* instant: stato di un controllo · fast: colore e bordo · base: accordion, tab, filtro
     slow: overlay, drawer, pannello tecnico · reveal: diagramma che si costruisce */
  --dur-instant:90ms; /* @kind other */
  --dur-fast:140ms; /* @kind other */
  --dur-base:200ms; /* @kind other */
  --dur-slow:320ms; /* @kind other */
  --dur-reveal:520ms; /* @kind other */

  --ease-out:cubic-bezier(.2,.6,.2,1); /* @kind other */
  --ease-in-out:cubic-bezier(.4,.1,.2,1); /* @kind other */
  --ease-exit:cubic-bezier(.4,0,1,1); /* @kind other */


  --transition-control:color var(--dur-fast) var(--ease-out),background-color var(--dur-fast) var(--ease-out),border-color var(--dur-fast) var(--ease-out); /* @kind other */
  --transition-surface:background-color var(--dur-base) var(--ease-out); /* @kind other */
  --transition-layer:opacity var(--dur-slow) var(--ease-out),transform var(--dur-slow) var(--ease-out); /* @kind other */

  /* Hover: scurimento di un grado della scala, non opacità.
     Pressed: grado ulteriore, nessuna riduzione di scala.
     L'immagine in card si ingrandisce del 2% max, solo dove il crop lo giustifica. */
  --hover-image-scale:1.02; /* @kind other */
}
@media (prefers-reduced-motion:reduce){
  :root{
    --dur-instant:0ms; /* @kind other */
    --dur-fast:0ms; /* @kind other */
    --dur-base:0ms; /* @kind other */
    --dur-slow:0ms; /* @kind other */
    --dur-reveal:0ms; /* @kind other */
    --hover-image-scale:1; /* @kind other */
  }
}
