/*
 * Section reveal (spec p.21): content rises 34px and fades in as it arrives, 90ms between items.
 * Only active once components.js adds .ss-motion, so content is visible without scripts or with reduced motion.
 */

.ss-motion [data-ss-reveal] > * {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 0.9s var(--ss-ease),
        transform 1.05s var(--ss-ease);
    transition-delay: calc(var(--ss-reveal-index, 0) * 90ms);
}

.ss-motion [data-ss-reveal].is-revealed > * {
    opacity: 1;
    transform: none;
}

/* Panels open from a clipped inset to the full frame. */
.ss-motion [data-ss-reveal] > :is(.ss-panel, .ss-invitation) {
    clip-path: inset(7% 5% round var(--ss-radius-card));
    transition:
        opacity 0.9s var(--ss-ease),
        transform 1.05s var(--ss-ease),
        clip-path 1.35s var(--ss-ease);
}

.ss-motion [data-ss-reveal].is-revealed > :is(.ss-panel, .ss-invitation) {
    clip-path: inset(0 round var(--ss-radius-card));
}
