/* Kestrel coffee-cup intro animation
   Ported from the original Prana theme for use with Astra + Astra Child + Elementor Pro */

.animation-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999; /* sits above Astra's sticky header / Elementor popups */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.animation-mask-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.animation-mask-window > span {
    height: 100%;
    width: 100%;
    display: block;
    overflow: hidden;
}

.animation-mask-window-inner {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    position: relative;
}

.animation-mask-container {
    position: relative;
    z-index: 1;
}

.coffee {
    position: relative;
    top: -100px;
    opacity: 0;
}

.coffee-logo {
    position: absolute;
    top: 50%;
    width: 200px;
    opacity: 0;
}

.coffee-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.coffee-smoke {
    width: 80%;
    margin: -30px auto 30px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coffee-smoke span {
    display: inline-block;
    width: 10px;
    height: 40px;
    background-color: #d97b2f; /* swap for your brand orange */
    border-radius: 50px;
    position: relative;
    transform: translateY(100px);
    opacity: 0;
}

.coffee-smoke span:first-child {
    top: 10px;
}

.coffee-smoke span:nth-child(2) {
    top: -30px;
}

.coffee-cup {
    width: 200px;
    height: 200px;
    background-color: transparent;
    border: 15px solid #e6e6e6;
    border-radius: 0 0 60px 60px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.coffee-cup span {
    display: block;
    background-image: url('../img/icon-coffee.png');
    background-repeat: repeat-x;
    background-position: 0 200px;
    width: 200px;
    height: 215px;
    position: absolute;
    left: -15px;
    bottom: -15px;
}

.coffee-holder {
    position: absolute;
    top: calc(50% + 30px);
    right: -40px;
    border: 15px solid #b3b3b3;
    border-left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    border-radius: 0 0 30px 0;
}

/* prevent scroll / layout shift while the animation plays */
body.is-preloading {
    overflow: hidden;
    height: 100vh;
}

/* respect users who've asked for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animation-mask {
        display: none !important;
    }
}
