/* Motion enhances the page; all content remains visible without JavaScript. */
:root {
    --motion-ease: cubic-bezier(.22, 1, .36, 1)
}

section[id] {
    scroll-margin-top: 100px
}

.hero {
    background-image: none;
    background-color: var(--color-ink-deep);
    isolation: isolate
}

.hero::before {
    display: none !important
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.hero .eyebrow {
    animation: enter .8s var(--motion-ease) both
}

.hero h1 {
    animation: enter 1.1s .1s var(--motion-ease) both
}

.hero p {
    animation: enter 1s .22s var(--motion-ease) both
}

.hero-actions {
    animation: enter 1s .32s var(--motion-ease) both
}

.hero-stat {
    animation: enter 1s .45s var(--motion-ease) both
}

.motion-pending {
    opacity: 0;
    translate: 0 24px
}

.motion-reveal {
    transition: opacity .8s var(--motion-ease), translate .8s var(--motion-ease);
    transition-delay: var(--reveal-delay, 0ms)
}

.motion-reveal:focus-within {
    opacity: 1;
    translate: 0 0;
    transition-delay: 0ms
}

.service,
.team-card {
    transition: transform .45s var(--motion-ease), box-shadow .45s ease, background-color .3s ease, border-color .3s ease
}

.service .num {
    display: inline-block;
    transition: transform .45s var(--motion-ease)
}

.button,
.nav-cta,
.ghost {
    transition: transform .3s var(--motion-ease), background-color .3s ease, color .3s ease
}

.drawer-nav-items>a:not(.nav-cta),
.links>a:not(.nav-cta) {
    position: relative
}

.drawer-nav-items>a:not(.nav-cta)::after,
.links>a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    background: var(--color-brand-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--motion-ease)
}

.drawer-nav-items>a:focus-visible::after,
.links>a:focus-visible::after {
    transform: scaleX(1)
}

.map-point .dot {
    transition: background-color .3s ease, box-shadow .3s ease
}

.map-point.selected .dot {
    box-shadow: 0 0 0 5px rgba(215, 25, 32, .12), 0 5px 18px rgba(181, 18, 27, .2)
}

.back-to-top {
    position: fixed;
    z-index: 950;
    right: 26px;
    bottom: 26px;
    width: 52px;
    height: 52px;
    border: 1px solid var(--color-overlay-white-35);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-brand-primary);
    color: var(--color-white);
    box-shadow: 0 14px 34px rgba(27, 29, 32, .22), 0 4px 12px rgba(181, 18, 27, 0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px) scale(0.92);
    transition: opacity .35s cubic-bezier(0.16, 1, 0.3, 1), visibility .35s ease, transform .35s cubic-bezier(0.16, 1, 0.3, 1), background-color .25s ease, box-shadow .25s ease;
    will-change: transform, opacity;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top.is-footer-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(24px) scale(0.85) !important;
}

.back-to-top svg {
    display: block;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.back-to-top span {
    font-size: 1.55rem;
    line-height: 1;
    transform: translateY(-1px);
}

.back-to-top:focus-visible {
    outline: 3px solid var(--color-overlay-brand-28);
    outline-offset: 4px;
}

@media(hover:hover) and (pointer:fine) {
    .links>a:hover::after {
        transform: scaleX(1)
    }

    .button:hover,
    .nav-cta:hover {
        transform: translateY(-3px)
    }

    .service:hover .num {
        transform: none
    }

    .team-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 38px #24272b12
    }

    .back-to-top:hover {
        background: var(--color-ink);
        transform: translateY(-4px)
    }
}

@media(max-width:850px) {
    .hero::before {
        background-position: 62% center
    }
}

@media(max-width:560px) {
    .hero::before {
        background-position: 67% center
    }

    .motion-pending {
        translate: 0 14px
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important
    }

    .motion-pending {
        opacity: 1;
        translate: none
    }

    .service:hover,
    .team-card:hover,
    .button:hover,
    .nav-cta:hover {
        transform: none
    }
}