*,
*::after,
*::before {
    box-sizing: border-box;
}

main {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.frame {
    padding: 3rem 5vw;
    text-align: center;
    position: relative;
    z-index: 1000;
}

.frame__title {
    font-size: 1rem;
    margin: 0 0 1rem;
    font-weight: normal;
}

.frame__links {
    display: inline;
}

.frame__links a:not(:last-child),
.frame__demos a:not(:last-child) {
    margin-right: 1rem;
}

.frame__demos {
    margin: 1rem 0;
}

.frame__demo--current,
.frame__demo--current:hover {
    color: var(--color-text);
    text-decoration: none;
}

.content {
    display: flex;
    flex-direction: column;
    width: 100vw;
    position: relative;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.grid {
    pointer-events: none;
    position: absolute;
    width:110%;
    height: 110%;
    display: grid;
    background-color: #0c0c0c;
}

.grid__item {
    position: relative;
}

.grid--img .grid__item {
    overflow: hidden;
    will-change: transform;
}

.grid__item-img {
    position: relative;
    width: 100%;
    height: 100%;
    background-size:100% 100%;;
}

.grid--img .grid__item-img {

    will-change: transform;
}

/* Shorthand grid-area: grid-row-start / grid-column-start / grid-row-end / grid-column-end */

.pos-1 {
    grid-area: 0 / 0 / 0 / 0;
}


.content__title {
    font-family: bely-display, sans-serif;
    font-weight: 400;
    font-size: 10vw;
    margin: 0;
    line-height: 1;
    position: relative;
}

.content__title-sub {
    color: var(--color-content-title-sub);
    font-size: 4.5vw;
    display: block;
    margin-left: 3vw;
    line-height: 0.5;
}

.cursor {
    display: none;
}

@media screen and (min-width: 53em) {
    .message {
        display: none;
    }
    .frame {
        position: fixed;
        text-align: left;
        z-index: 100;
        top: 0;
        left: 0;
        display: grid;
        align-content: space-between;
        width: 100%;
        max-width: none;
        height: 100%;
        padding: 3rem;
        pointer-events: none;
        grid-template-columns: 75% 25%;
        grid-template-rows: auto auto auto;
        grid-template-areas: 'title links'
							'... ...'
							'... demos';
    }
    .frame__title-wrap {
        grid-area: title;
        display: flex;
    }
    .frame__title {
        margin: 0;
    }
    .frame__tagline {
        position: relative;
        margin: 0 0 0 1rem;
        padding: 0 0 0 1rem;
        opacity: 1;
    }
    .frame__demos {
        margin: 0;
        grid-area: demos;
        justify-self: end;
    }
    .frame__links {
        grid-area: links;
        padding: 0;
        justify-self: end;
    }
    .frame a {
        pointer-events: auto;
    }
    .content {
        height: 100%;
        justify-content: center;
        max-height: none;
    }
}

@media (any-pointer: fine) {
    .cursor {
        position: fixed;
        top: 0;
        left: 0;
        display: block;
        pointer-events: none;
    }
    .cursor__inner {
        fill: var(--cursor-fill);
        stroke: var(--cursor-stroke);
        stroke-width: var(--cursor-stroke-width);
    }
}
