* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #02020a;
    overflow: hidden;
}

#bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.marmot {
    position: fixed;
    z-index: 1;
    top: 38.2%;
    left: 61.8%;
    width: clamp(110px, 14vw, 210px);
    height: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 60px rgba(120, 160, 255, 0.15));
    animation: marmot-float 7s ease-in-out infinite;
    will-change: transform;
}

@keyframes marmot-float {
    0%   { transform: translate(-50%, calc(-50% - 6px)) rotate(-1.2deg); }
    50%  { transform: translate(-50%, calc(-50% + 18px)) rotate(1.2deg); }
    100% { transform: translate(-50%, calc(-50% - 6px)) rotate(-1.2deg); }
}

@media (prefers-reduced-motion: reduce) {
    .marmot {
        animation: none;
        transform: translate(-50%, -50%);
    }
}

.email {
    position: fixed;
    bottom: clamp(1.25rem, 3.5vh, 2.25rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    font-weight: 300;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
    padding: 0.5rem 0.75rem;
    transition: color 0.35s ease, text-shadow 0.35s ease, letter-spacing 0.35s ease;
    white-space: nowrap;
}

.email:hover {
    color: rgba(255, 255, 255, 0.98);
    letter-spacing: 0.22em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7),
                 0 0 24px rgba(180, 200, 255, 0.55);
}

.email:focus-visible {
    color: rgba(255, 255, 255, 0.98);
    outline: 1px solid rgba(180, 200, 255, 0.6);
    outline-offset: 6px;
    border-radius: 2px;
}
