@font-face {
    font-family: 'Eyesome Script';
    src: url('/fonts/Eyesome-Script.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.hero-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: #ffffff;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.hero-loader.is-done {
    opacity: 0;
}

.hero-loader-svg {
    width: min(80vw, 480px);
    height: auto;
    overflow: visible;
}

.hero-loader-letter {
    font-family: 'Eyesome Script', cursive;
    font-size: 110px;
    font-weight: 400;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    fill: #666666;
    fill-opacity: 0;
    stroke: #666666;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    paint-order: stroke fill;
}

.hero-loader-amp {
    font-size: 88px;
}

.hero-loader-subtitle {
    margin: 0;
    color: #999999;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    opacity: 0;
    text-transform: uppercase;
    animation: fadeInLoaderSubtitle 0.5s ease 0.5s forwards;
}

.hero-loader.is-animating .hero-loader-letter {
    animation: heroLoaderDraw 0.9s cubic-bezier(0.65, 0, 0.35, 1) var(--delay, 0s) forwards;
}

@keyframes fadeInLoaderSubtitle {
    to {
        opacity: 1;
    }
}

@keyframes heroLoaderDraw {
    from {
        stroke-dashoffset: 1200;
        fill-opacity: 0;
    }

    to {
        stroke-dashoffset: 0;
        fill-opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-loader-letter {
        animation: none !important;
        stroke-dashoffset: 0;
        fill-opacity: 1;
    }
}
