/* Scroll effects for homepage sections with "Reveal": true (Home:Sections), driven by js/reveal.js.
   Hidden start states apply only once the script has run (html.rv), so without JS, or with
   reduced motion (the script then does nothing), every section shows as it is. Colours come from
   the theme: dimmed words are the text colour at low opacity. */

/* Heading: words light up one after another while the heading scrolls up the screen */
html.rv .rv-section .rv-word {
    opacity: .2;
    transition: opacity .35s ease;
}
html.rv .rv-section .rv-word.on { opacity: 1; }

/* Photos: open from a thin horizontal strip to full height when they arrive */
html.rv .rv-section .rv-photo {
    clip-path: inset(46% 0 46% 0);
    transform: scale(1.08);
    /* !important: some cards set an inline transition for their hover effect */
    transition: clip-path 1.1s cubic-bezier(.65, 0, .25, 1), transform 1.4s cubic-bezier(.25, 1, .35, 1) !important;
}
html.rv .rv-section .rv-photo.rv-in {
    clip-path: inset(0 0 0 0);
    transform: none;
}

/* Text blocks, cards and buttons: fade up on arrival, staggered via --rv-delay */
html.rv .rv-section .rv-fade {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.25, 1, .35, 1);
    transition-delay: var(--rv-delay, 0s);
}
html.rv .rv-section .rv-fade.rv-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.rv .rv-section .rv-word,
    html.rv .rv-section .rv-photo,
    html.rv .rv-section .rv-fade { opacity: 1; clip-path: none; transform: none; transition: none; }
}
