@property --fx-hero-p {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

:root {
    --fx-hero-p: 0;
}

@supports (overflow-x: clip) {
    main {
        overflow-x: clip;
    }
}

.hero-stage {
    position: relative;
}

.fx-motion .hero-container {
    transform-origin: 50% 38%;
    transform: scale(calc(1 - var(--fx-hero-p) * 0.075));
    will-change: transform;
}

.fx-motion .hero-content-side {
    background: transparent;
    transform: translate3d(0, calc(var(--fx-hero-p) * -30vh), 0);
}

.fx-motion .hero-content-side,
.fx-motion .hero-image-side {
    opacity: clamp(0, calc((0.8 - var(--fx-hero-p)) / 0.35), 1);
}

.fx-motion .hero-image-main {
    transform-origin: 50% 50%;
    transform: translate3d(0, calc(var(--fx-hero-p) * 3%), 0) scale(1.08);
    will-change: transform;
}

.fx-motion .scroll-indicator {
    opacity: calc(1 - var(--fx-hero-p) * 3);
    transform: translateX(-50%) translateY(calc(var(--fx-hero-p) * 14px));
}

.fx-pin .hero-stage {
    height: calc(100vh + 100vh);
    height: calc(100dvh + 100dvh);
}

.fx-pin .hero-stage > .hero {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
}

.fx-pin .services-section {
    position: relative;
    z-index: 2;
    margin-top: -100vh;
    margin-top: -100dvh;
    border-top-left-radius: calc(44px - var(--fx-hero-p) * 34px);
    border-top-right-radius: calc(44px - var(--fx-hero-p) * 34px);
    box-shadow: 0 -24px 60px rgba(24, 24, 24, calc(0.12 - var(--fx-hero-p) * 0.12));
    overflow: hidden;
}

.fx-motion .fx-reveal.fx-up {
    opacity: 0;
    transform: translate3d(0, 44px, 0);
}

.fx-motion .fx-reveal.fx-zoom {
    opacity: 0;
    transform: scale(0.965);
}

.fx-motion .fx-reveal.fx-wipe {
    opacity: 0;
    clip-path: inset(-25% -8% 100% -8%);
}

.fx-motion .fx-reveal.fx-in {
    transition-property: opacity, transform, clip-path, border-color, box-shadow;
    transition-duration: 900ms, 1050ms, 900ms, 300ms, 300ms;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--fx-delay, 0ms);
}

.fx-motion .fx-reveal.fx-up.fx-in {
    opacity: 1;
    transform: none;
}

.fx-motion .fx-reveal.fx-zoom.fx-in {
    opacity: 1;
    transform: none;
}

.fx-motion .fx-reveal.fx-wipe.fx-in {
    opacity: 1;
    clip-path: inset(-25% -8% -25% -8%);
}

.fx-motion .section-header > h2,
.fx-motion .priceHours-title > h2,
.fx-motion .map-title > h2 {
    transform: translate3d(0, var(--fx-title-y, 0px), 0);
    will-change: transform;
}

.fx-motion .section-header > h2.fx-in,
.fx-motion .priceHours-title > h2.fx-in,
.fx-motion .map-title > h2.fx-in {
    transition-property: opacity, clip-path;
    transition-duration: 900ms, 900ms;
}

.fx-motion .fx-panel-section {
    position: relative;
    border-top-left-radius: calc(var(--fx-edge, 0) * 44px);
    border-top-right-radius: calc(var(--fx-edge, 0) * 44px);
    box-shadow: 0 -18px 44px rgba(24, 24, 24, calc(var(--fx-edge, 0) * 0.12));
}

.fx-motion .fx-panel-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--primary-black);
    opacity: var(--fx-dim, 0);
    pointer-events: none;
}

.fx-motion .services-section > .section-content,
.fx-motion .pricing-hours-section > .section-content,
.fx-motion .location > .map-title,
.fx-motion .location > .location-cards-switch {
    transform: translate3d(0, var(--fx-shift, 0px), 0) scale(var(--fx-scale, 1));
    opacity: var(--fx-alpha, 1);
    will-change: transform, opacity;
}

.pricing-hours-section {
    padding: var(--space-xxl) 0 var(--space-xl);
}

.priceHours-title {
    margin-bottom: var(--space-xl);
}

.salon-hours-card {
    margin-bottom: var(--space-lg);
}

@media screen and (min-width: 992px) {
    .salon-hours-card {
        margin-bottom: var(--space-xl);
    }
}

@media print {
    .fx-pin .hero-stage {
        height: auto;
    }

    .fx-pin .hero-stage > .hero {
        position: static;
        height: auto;
        min-height: auto;
    }

    .fx-pin .services-section {
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .fx-motion .fx-reveal {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }
}
