@font-face {
    font-family: 'Acumin Variable Concept';
    src: local('Acumin Variable Concept'),
         local('Acumin Variable Concept ExtraLight'),
         local('Acumin Pro ExtraLight');
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Acumin Variable Concept';
    src: local('Acumin Variable Concept Italic'),
         local('Acumin Variable Concept ExtraLight Italic'),
         local('Acumin Pro ExtraLight Italic');
    font-style: italic;
    font-weight: 200;
    font-display: swap;
}

:root {
    --font-acumin: 'Acumin Variable Concept', 'Helvetica Neue', Arial, sans-serif;
    --footer-height: 64px;
    --footer-blur: 12px;
    --footer-content-y: 0px;
    --aspan-icon-max-height: calc((100dvh - var(--header-height, 96px) - 58px - 84px) * 0.5);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    overflow: hidden;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-acumin);
    font-weight: 200;
    user-select: text;
}

img{
    display: block;
    margin: 0 auto;
    width: min(29vw, 380px);
    height: auto;
    max-height: var(--aspan-icon-max-height);
    object-fit: contain;
    animation: logo-blink 1.2s ease-in-out infinite;
}

@keyframes logo-blink {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 0.28;
        filter: brightness(1.55);
    }
}

a[href] {
    position: relative;
    display: block;
    border-radius: 12px;
    transform-origin: center;
    transition: transform 0.08s ease, color 0.08s ease;
}

a[href]::before,
a[href]::after {
    content: none;
    position: absolute;
    inset: -16px;
    border-radius: 16px;
    opacity: 0;
    pointer-events: none;
}

a[href]::before {
    border: 1px solid rgba(162, 15, 23, 0.24);
    box-shadow:
        0 0 0 0 rgba(162, 15, 23, 0.08),
        0 0 36px rgba(162, 15, 23, 0.08);
}

a[href]::after {
    inset: -6px;
    background: linear-gradient(110deg, transparent 24%, rgba(255, 255, 255, 0.68) 48%, transparent 72%);
    transform: translateX(-60%) rotate(-10deg);
    mix-blend-mode: screen;
}

a[href].is-menu-hint-visible {
    animation: aspan-menu-breathe 2.92s ease-in-out infinite;
}

a[href].is-menu-hint-visible::before {
    animation: none;
}

a[href].is-menu-hint-visible::after {
    animation: none;
}

a[href]:active {
    transform: scale(0.95);
}

@keyframes aspan-menu-breathe {
    0%,
    100% {
        transform: scale(1);
    }

    48% {
        transform: scale(1.055);
    }
}

@keyframes aspan-menu-soft-pulse {
    0%,
    55%,
    100% {
        opacity: 0;
        transform: scale(0.98);
        box-shadow:
            0 0 0 0 rgba(162, 15, 23, 0.08),
            0 0 32px rgba(162, 15, 23, 0.08);
    }

    66% {
        opacity: 1;
        transform: scale(1.02);
        box-shadow:
            0 0 0 10px rgba(162, 15, 23, 0.035),
            0 0 42px rgba(162, 15, 23, 0.1);
    }
}

@keyframes aspan-menu-soft-shine {
    0%,
    60% {
        opacity: 0;
        transform: translateX(-60%) rotate(-10deg);
    }

    70% {
        opacity: 0.35;
    }

    82%,
    100% {
        opacity: 0;
        transform: translateX(60%) rotate(-10deg);
    }
}

.site-copyright {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: var(--footer-height);
    padding: 0 20px;
    font-family: var(--font-acumin);
    font-size: 12px;
    font-weight: 200;
    letter-spacing: 0.08em;
    text-align: center;
    color: #000000;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    user-select: text;
    pointer-events: none;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.site-copyright::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: calc(var(--footer-height) + 180px);
    background: transparent;
    -webkit-backdrop-filter: blur(var(--footer-blur));
    backdrop-filter: blur(var(--footer-blur));
    -webkit-mask-image: linear-gradient(
        to top,
        #000 0%,
        rgba(0, 0, 0, 0.94) 28%,
        rgba(0, 0, 0, 0.72) 54%,
        rgba(0, 0, 0, 0.34) 78%,
        rgba(0, 0, 0, 0.1) 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to top,
        #000 0%,
        rgba(0, 0, 0, 0.94) 28%,
        rgba(0, 0, 0, 0.72) 54%,
        rgba(0, 0, 0, 0.34) 78%,
        rgba(0, 0, 0, 0.1) 92%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 998;
}

.site-copyright::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: calc(var(--footer-height) + 250px);
    background: transparent;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    -webkit-mask-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.58) 0%,
        rgba(0, 0, 0, 0.42) 38%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.07) 88%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.58) 0%,
        rgba(0, 0, 0, 0.42) 38%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.07) 88%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 998;
}

.site-copyright-text {
    position: relative;
    z-index: 1001;
    transform: translateY(var(--footer-content-y));
    transition: transform 0.18s ease-out;
    will-change: transform;
    pointer-events: auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    img {
        width: min(29vw, 240px);
        max-height: var(--aspan-icon-max-height);
    }
}

@media (max-width: 680px) {
    img {
        width: min(calc((100vw - 48px) * 0.5), 160px);
        max-height: var(--aspan-icon-max-height);
    }
}

@media (max-width: 360px) {
    img {
        width: min(calc((100vw - 48px) * 0.5), 150px);
    }
}

@media (prefers-reduced-motion: reduce) {
    a[href].is-menu-hint-visible,
    a[href].is-menu-hint-visible::before,
    a[href].is-menu-hint-visible::after {
        animation: none !important;
    }

    a[href].is-menu-hint-visible::before {
        opacity: 0.45;
    }
}
