@font-face {
    font-family: 'Metal Mania';
    src: url('fonts/Metal-Mania-latin-v23.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

.public-hero[data-hero-motion]:not([data-hero-motion="fallback"], [data-hero-motion="fallback-paused"])::before {
    animation: none;
}

.public-hero[data-hero-motion="fallback-paused"]::before {
    animation-play-state: paused;
}

.public-hero-film-frame,
.public-hero-film-window {
    display: contents;
}

.public-hero-film {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 64% center;
    pointer-events: none;
}

.public-hero[data-hero-video-visible] .public-hero-film {
    z-index: -1;
}

.public-hero[data-hero-video-visible]::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(90deg, rgb(16 14 11 / .89), rgb(16 14 11 / .53) 54%, rgb(16 14 11 / .12)),
        linear-gradient(0deg, var(--color-bg-canvas), transparent 25%);
}

.public-hero-media-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.public-hero-motion-toggle {
    position: absolute;
    inset: 0;
    inset-inline-start: 70%;
    z-index: 2;
    appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    outline: none;
    cursor: pointer;
}

.public-hero-motion-toggle[hidden] {
    display: none;
}

.public-hero-motion-toggle:focus-visible {
    outline: 2px solid var(--color-brand-primary);
    outline-offset: -4px;
}

.public-hero-title-line {
    display: block;
}

.public-hero-title-primary {
    color: var(--color-brand-primary);
    font-size: clamp(2.55rem, 5.15vw, 4.75rem);
    font-weight: 700;
    line-height: 1;
}

.public-hero-title-secondary {
    margin-top: .4rem;
    color: #f08e86;
    font: 400 clamp(1.55rem, 2.85vw, 2.5rem)/1.16 'Metal Mania', var(--font-family-display);
    letter-spacing: .015em;
    text-shadow: 0 .12em .28em #180607;
}

.public-hero-title-support {
    max-width: 44ch;
    margin-top: .65rem;
    color: var(--color-fg-primary);
    font-size: clamp(.875rem, 1.4vw, 1rem);
    line-height: 1.4;
}

@media (prefers-reduced-motion: no-preference) {
    .public-hero[data-hero-title-entrance] :is(.public-hero-title-line, .public-hero-title-support) {
        animation: public-hero-title-arrive .75s ease-out backwards;
    }

    .public-hero[data-hero-title-entrance] .public-hero-title-secondary {
        animation-delay: .16s;
    }

    .public-hero[data-hero-title-entrance] .public-hero-title-support {
        animation-delay: .28s;
    }
}

@keyframes public-hero-title-arrive {
    from { opacity: .9; transform: translateY(.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
    .public-hero-motion-toggle {
        inset-inline-start: 0;
    }

    .public-hero-film-frame {
        display: grid;
        overflow: hidden;
        border: 1px solid var(--color-border-default);
        border-radius: var(--radius-md);
        background: linear-gradient(150deg, var(--color-bg-canvas), var(--color-bg-surface));
    }

    .public-hero-film-copy {
        padding: .85rem .85rem .75rem;
        background: var(--color-bg-canvas);
    }

    .public-hero-title-primary {
        font-size: clamp(1.85rem, 9.2vw, 2.75rem);
    }

    .public-hero-title-secondary {
        font-size: clamp(1.28rem, 5.6vw, 1.75rem);
    }

    .public-hero-title-support {
        margin-top: .5rem;
    }

    .public-hero-film-window {
        display: block;
        position: relative;
        isolation: isolate;
        overflow: hidden;
        aspect-ratio: 16 / 9;
        background: var(--color-bg-surface);
    }

    .public-hero-film-window::before {
        position: absolute;
        inset: 0;
        content: "";
        background: url('brand/xqarin-hero-768.webp') right center / cover;
    }

    .public-hero[data-hero-save-data] .public-hero-film-frame,
    .public-hero[data-hero-motion-disabled] .public-hero-film-frame {
        display: contents;
    }

    .public-hero[data-hero-save-data] .public-hero-film-window,
    .public-hero[data-hero-motion-disabled] .public-hero-film-window {
        display: none;
    }

    .public-hero[data-hero-save-data] .public-hero-film-copy,
    .public-hero[data-hero-motion-disabled] .public-hero-film-copy {
        padding: 0;
        background: none;
    }

    .public-hero[data-hero-motion]::before {
        animation: none;
    }

    .public-hero-film {
        object-position: center;
        z-index: 0;
        opacity: 0;
    }

    .public-hero[data-hero-video-visible] .public-hero-film {
        z-index: 0;
        opacity: 1;
    }

    .public-hero[data-hero-video-visible]::after {
        display: none;
    }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
    .public-hero[data-hero-motion="fallback"] .public-hero-film-window::before,
    .public-hero[data-hero-motion="fallback-paused"] .public-hero-film-window::before {
        animation: public-hero-arrive 4.5s ease-out;
    }

    .public-hero[data-hero-motion="fallback-paused"] .public-hero-film-window::before {
        animation-play-state: paused;
    }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
    .public-hero-film-frame {
        display: contents;
    }

    .public-hero-film-window {
        display: none;
    }

    .public-hero-film-copy {
        padding: 0;
        background: none;
    }
}
