/* ==========================================================================
   Site header: always available, hides on scroll down, reveals on scroll up.
   Driven by the scroll handler in assets/js/main.js ("2. Header").
   ========================================================================== */
.site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020; /* Bootstrap sticky level, below modal backdrops. */
    transform: translate3d(0, 0, 0);
    transition: transform .36s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.site-header.is-hidden {
    transform: translate3d(0, -100%, 0);
    transition-timing-function: cubic-bezier(.4, 0, 1, 1);
    transition-duration: .28s;
}

/* Soft shadow only once the page has scrolled under the header */
.site-header .header-area {
    transition: box-shadow .3s ease;
}
.site-header.is-pinned .header-area {
    box-shadow: 0 10px 30px -14px rgba(2, 26, 71, .28);
}

/* The old "jump to fixed at 400px" behavior is retired */
.site-header .sticky-bar {
    position: static;
    animation: none;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header.is-hidden {
        transition: none;
    }
}
