.site-header {
    position: relative;
}

.site-header [data-mascot-nav] {
    position: relative;
    z-index: 2;
}

.mouse-mascot-fence {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    visibility: hidden;
}

.mouse-mascot-fence.is-perched {
    z-index: 3;
}

.mouse-mascot {
    position: absolute;
    top: 0;
    left: 0;
    width: 68px;
    height: 40px;
    transform-origin: center bottom;
    will-change: transform;
    filter: drop-shadow(0 3px 2px rgba(28, 68, 95, .2));
    pointer-events: none;
    touch-action: none;
    user-select: none;
    cursor: grab;
}

.mouse-mascot[data-state="dragging"],
.mouse-mascot-dragging, .mouse-mascot-dragging * {
    cursor: grabbing !important;
    user-select: none !important;
}

.mouse-mascot[data-state="dragging"],
.mouse-mascot[data-state="landing"],
.mouse-mascot[data-state="recovering"],
.mouse-mascot[data-state="crawling_back"] {
    transform: rotate(var(--mascot-angle, 0deg)) scaleX(var(--mascot-scale-x, 1)) scaleY(var(--mascot-scale-y, 1));
}

.mouse-mascot[data-state="dragging"] {
    transform-origin: center center;
    transform: rotate(var(--mascot-angle, 0deg)) scaleX(var(--mascot-scale-x, -1)) scaleY(var(--mascot-scale-y, 1));
    transition: transform .2s ease-out;
}

.mouse-mascot[data-state="falling_forward"] {
    transform-origin: center center;
    transform: rotate(var(--fall-rotation, -80deg)) scaleX(var(--mascot-scale-x, 1)) scaleY(var(--mascot-scale-y, 1));
}

.mouse-mascot[data-state="dragging"] .mouse-mascot-body {
    transform: translateY(-4px) scale(.94, .88);
    animation: mascot-wriggle .54s ease-in-out infinite alternate;
}

.mouse-mascot[data-state="dragging"] .mouse-mascot-head {
    transform: translateY(-6px) rotate(-8deg);
}

.mouse-mascot[data-state="dragging"] .mouse-mascot-back-foot {
    animation: mascot-kick .48s ease-in-out infinite alternate;
    transform-box: fill-box;
    transform-origin: center top;
}

.mouse-mascot[data-state="dragging"] .mouse-mascot-back-foot:nth-of-type(3) {
    animation-delay: -.24s;
}

.mouse-mascot[data-state="dragging"] .mouse-mascot-paws {
    opacity: 1;
    transform: translateY(2px);
}

.mouse-mascot[data-state="dragging"] .mouse-mascot-paws path {
    animation: mascot-wave .4s ease-in-out infinite alternate;
    transform-box: fill-box;
    transform-origin: center top;
}

.mouse-mascot[data-state="dragging"] .mouse-mascot-paws path + path {
    animation-delay: -.2s;
}

.mouse-mascot[data-state="dragging"] .mouse-mascot-tail {
    animation: mascot-tail-sway .64s ease-in-out infinite alternate;
    transform-box: fill-box;
    transform-origin: right center;
}

.mouse-mascot[data-state="falling_forward"] .mouse-mascot-paws {
    opacity: 1;
    animation: mascot-reach .24s ease-out both;
}

.mouse-mascot[data-state="falling_forward"] .mouse-mascot-body {
    animation: mascot-tumble .24s ease-in both;
}

.mouse-mascot[data-state="falling_forward"] .mouse-mascot-tail {
    transform: rotate(var(--tail-angle, 0deg));
    transform-box: fill-box;
    transform-origin: right center;
}

.mouse-mascot[data-state="landing"] .mouse-mascot-art {
    animation: mascot-land .26s ease-out both;
}

.mouse-mascot[data-state="recovering"] .mouse-mascot-art {
    animation: mascot-recover .42s ease-in-out both;
}

.mouse-mascot[data-state="crawling_back"] .mouse-mascot-art {
    transform: scaleY(.8);
}

.mouse-mascot[data-state="crawling_back"] .mouse-mascot-body {
    animation: mascot-crawl-body .36s ease-in-out infinite alternate;
}

.mouse-mascot[data-state="crawling_back"] .mouse-mascot-head {
    transform: translateX(-3px) scale(.86, .8);
}

.mouse-mascot[data-state="crawling_back"] .mouse-mascot-paws {
    opacity: 1;
}

.mouse-mascot[data-state="crawling_back"] .mouse-mascot-paws path,
.mouse-mascot[data-state="crawling_back"] .mouse-mascot-back-foot {
    animation: mascot-crawl-foot .32s ease-in-out infinite alternate;
    transform-box: fill-box;
    transform-origin: center top;
}

.mouse-mascot[data-state="crawling_back"] .mouse-mascot-paws path + path,
.mouse-mascot[data-state="crawling_back"] .mouse-mascot-back-foot:nth-of-type(3) {
    animation-delay: -.16s;
}

.mouse-mascot[data-state="crawling_back"] .mouse-mascot-tail {
    animation: mascot-crawl-tail .48s ease-in-out infinite alternate;
    transform-box: fill-box;
    transform-origin: right center;
}

.mouse-mascot[data-state="pointer_perched"] .mouse-mascot-body {
    transform: translateY(2px) scaleY(.83);
}

.mouse-mascot[data-state="pointer_perched"] .mouse-mascot-head {
    transform: translateY(2px) rotate(-5deg);
}

.mouse-mascot-art {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.mouse-mascot-art > g,
.mouse-mascot-art > g * {
    pointer-events: visiblePainted;
}

.mouse-mascot[data-state="falling_forward"] .mouse-mascot-art > g,
.mouse-mascot[data-state="falling_forward"] .mouse-mascot-art > g *,
.mouse-mascot[data-state="landing"] .mouse-mascot-art > g,
.mouse-mascot[data-state="landing"] .mouse-mascot-art > g *,
.mouse-mascot[data-state="recovering"] .mouse-mascot-art > g,
.mouse-mascot[data-state="recovering"] .mouse-mascot-art > g *,
.mouse-mascot[data-state="crawling_back"] .mouse-mascot-art > g,
.mouse-mascot[data-state="crawling_back"] .mouse-mascot-art > g * {
    pointer-events: none;
}

.mouse-mascot[data-state="perching"] .mouse-mascot-body,
.mouse-mascot[data-state="perching"] .mouse-mascot-body *,
.mouse-mascot[data-state="resting"] .mouse-mascot-body,
.mouse-mascot[data-state="resting"] .mouse-mascot-body *,
.mouse-mascot:not([data-state="perching"]):not([data-state="resting"]) .mouse-mascot-paws,
.mouse-mascot:not([data-state="perching"]):not([data-state="resting"]) .mouse-mascot-paws * {
    pointer-events: none;
}

.mouse-mascot-body,
.mouse-mascot-head {
    transform-box: fill-box;
    transform-origin: center bottom;
}

.mouse-mascot-tail {
    fill: none;
    stroke: #d49d9f;
    stroke-width: 3.5;
    stroke-linecap: round;
}

.mouse-mascot-back-foot {
    fill: #d6b2b0;
    stroke: #b99494;
    stroke-width: 1;
}

.mouse-mascot-torso {
    fill: url(#mascot-fur);
    stroke: #c9c3bd;
    stroke-width: 1.2;
}

.mouse-mascot-belly {
    fill: #faf7f3;
    opacity: .8;
}

.mouse-mascot-fur-line {
    fill: none;
    stroke: #ccc7c1;
    stroke-width: .8;
    stroke-linecap: round;
    opacity: .65;
}

.mouse-mascot-face {
    fill: url(#mascot-face);
    stroke: #c8c1ba;
    stroke-width: 1.2;
}

.mouse-mascot-ear-back,
.mouse-mascot-ear {
    fill: url(#mascot-ear);
    stroke: #bd9192;
    stroke-width: 1;
}

.mouse-mascot-ear-back {
    opacity: .7;
}

.mouse-mascot-ear-inner {
    fill: #d59b9d;
    opacity: .75;
}

.mouse-mascot-cheek,
.mouse-mascot-whiskers {
    fill: none;
    stroke-linecap: round;
}

.mouse-mascot-cheek {
    stroke: #c9bbb5;
    stroke-width: 1;
}

.mouse-mascot-whiskers {
    stroke: #8e8884;
    stroke-width: .9;
}

.mouse-mascot-eye {
    fill: #7b343d;
}

.mouse-mascot-eye-glint {
    fill: #fff;
}

.mouse-mascot-nose,
.mouse-mascot-lick {
    fill: #d79099;
}

.mouse-mascot-lick {
    opacity: 0;
}

.mouse-mascot-paws {
    fill: url(#mascot-fur);
    stroke: #c8b8b5;
    stroke-width: 1.3;
    opacity: 0;
}

.mouse-mascot[data-state="running"] .mouse-mascot-body,
.mouse-mascot[data-state="chasing_pointer"] .mouse-mascot-body,
.mouse-mascot[data-state="following"] .mouse-mascot-body,
.mouse-mascot[data-state="returning"] .mouse-mascot-body {
    animation: mascot-run .24s ease-in-out infinite alternate;
}

.mouse-mascot[data-state="running"] .mouse-mascot-head,
.mouse-mascot[data-state="chasing_pointer"] .mouse-mascot-head,
.mouse-mascot[data-state="following"] .mouse-mascot-head,
.mouse-mascot[data-state="returning"] .mouse-mascot-head {
    animation: mascot-run .24s ease-in-out infinite alternate-reverse;
}

.mouse-mascot[data-state="grooming"] .mouse-mascot-head {
    animation: mascot-groom .55s ease-in-out 3;
}

.mouse-mascot[data-state="grooming"] .mouse-mascot-lick {
    animation: mascot-tongue .55s ease-in-out 3;
}

.mouse-mascot[data-state="perching"] .mouse-mascot-body,
.mouse-mascot[data-state="resting"] .mouse-mascot-body {
    opacity: 0;
}

.mouse-mascot[data-state="perching"] .mouse-mascot-body {
    transition: opacity .35s ease-out;
}

.mouse-mascot[data-state="perching"] .mouse-mascot-paws,
.mouse-mascot[data-state="resting"] .mouse-mascot-paws {
    opacity: 1;
}

.mouse-mascot[data-state="perching"] .mouse-mascot-head,
.mouse-mascot[data-state="perching"] .mouse-mascot-paws {
    animation: mascot-climb .38s ease-out both;
}

.mouse-mascot[data-state="resting"] .mouse-mascot-head {
    animation: mascot-look 4s ease-in-out infinite;
}

.mouse-mascot[data-state="resting"] .mouse-mascot-nose {
    animation: mascot-nose 1.6s ease-in-out infinite;
}

@keyframes mascot-run {
    to { transform: translateY(-2px); }
}

@keyframes mascot-groom {
    50% { transform: rotate(-9deg) translateY(1px); }
}

@keyframes mascot-tongue {
    45% { opacity: 1; transform: translateY(3px); }
    70% { opacity: 0; }
}

@keyframes mascot-look {
    25% { transform: rotate(-10deg) translateX(-2px); }
    65% { transform: rotate(9deg) translateX(2px); }
}

@keyframes mascot-climb {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes mascot-nose {
    50% { opacity: .65; }
}

@keyframes mascot-land {
    0% { transform: scaleY(.66) scaleX(1.08); }
    45% { transform: translateY(-5px) scaleY(1.08) scaleX(.96); }
    100% { transform: scale(1); }
}

@keyframes mascot-recover {
    50% { transform: translateY(-2px) scaleY(1.04); }
    100% { transform: scale(1); }
}

@keyframes mascot-wriggle {
    from { transform: translateY(-4px) rotate(-3deg) scale(.94, .88); }
    to { transform: translateY(-2px) rotate(3deg) scale(.96, .91); }
}

@keyframes mascot-kick {
    from { transform: translateY(4px) rotate(-15deg); }
    to { transform: translateY(7px) rotate(19deg); }
}

@keyframes mascot-wave {
    from { transform: translateY(-1px) rotate(-19deg); }
    to { transform: translateY(4px) rotate(24deg); }
}

@keyframes mascot-tail-sway {
    from { transform: rotate(calc(26deg + var(--tail-angle, 0deg))); }
    to { transform: rotate(calc(39deg + var(--tail-angle, 0deg))); }
}

@keyframes mascot-reach {
    from { transform: translateY(0) rotate(10deg); }
    to { transform: translateY(7px) rotate(-9deg); }
}

@keyframes mascot-tumble {
    from { transform: translateY(-4px) scale(.94, .88); }
    to { transform: translateY(2px) scale(1.03, .8); }
}

@keyframes mascot-crawl-body {
    from { transform: translateY(0) scaleY(.76); }
    to { transform: translateY(-1px) scaleY(.82); }
}

@keyframes mascot-crawl-foot {
    from { transform: translateX(-2px) rotate(-8deg); }
    to { transform: translateX(2px) rotate(8deg); }
}

@keyframes mascot-crawl-tail {
    from { transform: rotate(-9deg); }
    to { transform: rotate(9deg); }
}

@media (max-width: 991.98px), (prefers-reduced-motion: reduce) {
    .mouse-mascot-fence {
        display: none;
    }
}
