/*
 * Progressive, one-time reveal for the private infrastructure workflow.
 * The settled state preserves the existing enterprise design exactly.
 */

html.enterprise-flow-motion .enterprise-console .flow-grid article,
html.enterprise-flow-motion .enterprise-console .console-metrics span {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 520ms ease,
        transform 620ms cubic-bezier(0.16, 0.8, 0.25, 1);
}

html.enterprise-flow-motion .enterprise-console .flow-line {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top center;
    transition:
        opacity 320ms ease,
        transform 440ms cubic-bezier(0.16, 0.8, 0.25, 1);
}

html.enterprise-flow-motion .enterprise-console.is-flow-visible .flow-grid article,
html.enterprise-flow-motion .enterprise-console.is-flow-visible .console-metrics span {
    opacity: 1;
    transform: translateY(0);
}

html.enterprise-flow-motion .enterprise-console.is-flow-visible .flow-line {
    opacity: 1;
    transform: scaleY(1);
}

html.enterprise-flow-motion .enterprise-console.is-flow-visible .flow-grid article:nth-of-type(1) {
    transition-delay: 100ms;
}

html.enterprise-flow-motion .enterprise-console.is-flow-visible .flow-grid .flow-line:nth-of-type(1) {
    transition-delay: 270ms;
}

html.enterprise-flow-motion .enterprise-console.is-flow-visible .flow-grid article:nth-of-type(2) {
    transition-delay: 400ms;
}

html.enterprise-flow-motion .enterprise-console.is-flow-visible .flow-grid .flow-line:nth-of-type(2) {
    transition-delay: 570ms;
}

html.enterprise-flow-motion .enterprise-console.is-flow-visible .flow-grid article:nth-of-type(3) {
    transition-delay: 700ms;
}

html.enterprise-flow-motion .enterprise-console.is-flow-visible .console-metrics span:nth-child(1) {
    transition-delay: 880ms;
}

html.enterprise-flow-motion .enterprise-console.is-flow-visible .console-metrics span:nth-child(2) {
    transition-delay: 980ms;
}

html.enterprise-flow-motion .enterprise-console.is-flow-visible .console-metrics span:nth-child(3) {
    transition-delay: 1080ms;
}

@media (prefers-reduced-motion: reduce) {
    html.enterprise-flow-motion .enterprise-console .flow-grid article,
    html.enterprise-flow-motion .enterprise-console .flow-line,
    html.enterprise-flow-motion .enterprise-console .console-metrics span {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
