@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
    --clr-accent: #cd412b;
    --clr-accent-rgb: 205, 65, 43;
    --clr-text: #e4dad1;
    --clr-text-rgb: 228, 218, 209;
}

body {
    background-color: #262626;
    color: var(--clr-text);
    overflow: auto;
    font-family: "Bebas Neue", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body:after {
    background-image: url("/assets/media/granularity.png");
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 500;
    pointer-events: none;
    opacity: .6;
}

.hero {
    height: 100vh;
    height: 100svh;
    width: 100%;
    background-image: url("");
    background-size: 700px 700px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 30px;
}

.hero-content {
    width: clamp(10px, 100%, 900px);
}

.hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: -1;
    object-fit: cover;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.hero-title {
    width: 100%;
    height: clamp(40px, 20vw, 100px);
}

svg.text-animation text {
    --rgb-clr: var(--clr-text-rgb);
    animation: stroke-draw 2s infinite alternate;
    stroke-width: 2;
    dominant-baseline: central;
    text-anchor: middle;
    transform: translate(50%, 50%);
    stroke: rgb(var(--rgb-clr));
    font-size: clamp(30px, 20vw, 100px);
}

svg.text-animation:nth-of-type(1) text {
    --rgb-clr: var(--clr-accent-rgb);
}

@keyframes stroke-draw {
    0% {
        fill: rgba(var(--rgb-clr), 0.2);
        stroke: rgb(var(--rgb-clr));
        stroke-dashoffset: 25%;
        stroke-dasharray: 0 50%;
        stroke-width: 2;
    }

    20% {
        fill: rgba(var(--rgb-clr), 0.2);
        stroke: rgb(var(--rgb-clr));
    }

    100% {
        fill: rgb(var(--rgb-clr));
        stroke: rgba(var(--rgb-clr), 0);
        stroke-dashoffset: -25%;
        stroke-dasharray: 50% 0;
        stroke-width: 3;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    max-width: 400px;
}

.hero-buttons > * {
    flex: 1;
}

.button {
    padding: .3rem .7rem;
    background-color: #fff;
    color: #151413;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    border: 0;
    cursor: pointer;
    text-transform: uppercase;
    transition: all .15s ease;
}

.button.is-outline {
    color: #e4dad1;
    border: 2px solid #4c4946;
    background-color: #2a2928;
}

.button.is-outline:hover {
    background-color: #4c4946;
}