/**
 * Scroll in/out — same motion language as assistant (omforhandla).
 * .reveal starts off-frame; .is-visible brings it in; leaving the viewport
 * sends it out again (down or up depending on scroll direction).
 */

.reveal {
    opacity: 0;
    transform: translateY(36px) scale(0.985);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal.reveal-left {
    transform: translateX(-40px) scale(0.985);
}

.reveal.reveal-right {
    transform: translateX(40px) scale(0.985);
}

.reveal.reveal-scale {
    transform: scale(0.94);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal.reveal--up:not(.is-visible) {
    transform: translateY(-36px) scale(0.985);
}

.reveal.reveal-left.reveal--up:not(.is-visible),
.reveal.reveal-right.reveal--up:not(.is-visible) {
    transform: translateY(-28px) scale(0.985);
}

.reveal-delay { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.26s; }

.reveal.card-hover.is-visible:hover {
    transform: translateY(-4px);
}

.page-hero-photo {
    position: relative;
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 30px 70px -25px rgba(15, 23, 42, 0.32);
    border: 1px solid color-mix(in srgb, var(--brand, #7c3aed) 18%, #e2e8f0);
    background: #e2e8f0;
}

.text-white .page-hero-photo,
section[style*="--gradient"] .page-hero-photo {
    border-color: color-mix(in srgb, white 35%, transparent);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.35);
}

.dark .page-hero-photo {
    border-color: color-mix(in srgb, var(--brand, #7c3aed) 28%, #1e293b);
    background: #0f172a;
}

.page-hero-photo-img {
    display: block;
    width: 100%;
    height: 16rem;
    object-fit: cover;
    object-position: 50% 32%;
}

.page-hero-photo-tint {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--brand, #7c3aed) 28%, transparent) 0%, transparent 48%),
        linear-gradient(0deg, color-mix(in srgb, #0f172a 28%, transparent) 0%, transparent 52%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.page-hero-photo--band .page-hero-photo-img {
    height: 14rem;
}

@media (min-width: 640px) {
    .page-hero-photo-img { height: 20rem; }
    .page-hero-photo--band .page-hero-photo-img { height: 16rem; }
}

@media (min-width: 1024px) {
    .page-hero-photo-img { height: 26rem; }
    .page-hero-photo--band .page-hero-photo-img { height: 18rem; }
}

.page-photo-split {
    display: grid;
    gap: 1.75rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .page-photo-split {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 2.5rem;
    }

    .page-photo-split--flip {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }

    .page-photo-split--flip .page-hero-photo {
        order: -1;
    }
}

.page-photo-split--banner {
    align-items: stretch;
}

@media (min-width: 1024px) {
    .page-photo-split--banner .page-hero-photo {
        display: flex;
        height: 100%;
        min-height: 24rem;
    }

    .page-photo-split--banner .page-hero-photo-img {
        flex: 1 1 auto;
        width: 100%;
        height: 100%;
        min-height: 24rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.reveal-left,
    .reveal.reveal-right,
    .reveal.reveal-scale,
    .reveal.reveal--up:not(.is-visible) {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
