[x-cloak] { display: none !important; }

/* Offset in-page anchors below the sticky header */
html { scroll-padding-top: 6rem; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.js-reveal [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.read-more-fade {
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* Hero slider */
.hero-slide { opacity: 0; transition: opacity 1s ease; }
.hero-slide.is-active { opacity: 1; }

/* The leaving slide keeps the same animation, so it does not jump back while fading out */
.hero-slide.is-active img,
.hero-slide.is-leaving img { animation: ken-burns 8s ease-out forwards; }

@keyframes ken-burns { from { transform: scale(1); } to { transform: scale(1.12); } }

/* Autoplay progress line; its animationend advances the slider */
.hero-progress { transform-origin: left; animation: hero-progress 6s linear forwards; }

@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
    .hero-slide img { animation: none !important; }
}
