:root {
    --full_height: 100vh;
    --bg_color: rgb(17, 17, 17);
    --text-color: #B1B1B1;
    --marshall-gold: #D2B45D;
}

@media only screen and ( max-width: 425px ) {
    :root {
        --full_height: 90vh;
    }
}

/* ––––––––– */

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

body {
    background-color: var(--bg_color);
    color: var(--text-color);
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    margin: 0;
    padding: 0;
}

b {
    color: white;
    font-weight: 600;
}

spline-viewer {
    --viewer-height: var(--full_height);
    position: absolute;
    top: calc((var(--full_height) - var(--viewer-height)) / 2);
    width: 100vw;
    height: var(--viewer-height);
    opacity: 0;
}

/* The scene camera keeps its vertical field of view, so on a portrait screen the wide amp
   fills the width. A shorter canvas, centred in the hero, scales the model down. */
@media ( max-aspect-ratio: 4/5 ) {
    spline-viewer {
        --viewer-height: min(var(--full_height), 120vw);
    }
}

.fade-in {
    animation-name: fadeIn;
    animation-duration: 2s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(90%);}
    to {opacity: 1; transform: scale(100%);}
}

.back-title {
    position: absolute;
    top: 0;
    width: 100%;
    height: var(--full_height);
    background-image: url("/images/CRUNCH.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}

.doubler {
    pointer-events: none;
    opacity: 20%;
    z-index: 1;
    background-image: url("/images/CRUNCH_2.svg");
}

.loader-wrapper {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: var(--full_height);
}

.loader-wrapper span {
    font-size: 30px;
    background-color: var(--bg_color);
    color: white;
    width: 100%;
    text-align: center;
}

.loader-wrapper span::after {
    background-color: var(--marshall-gold);
    content: '';
    width: 100%;
    display: block;
    height: 2px;

    animation-name: loading;
    animation-duration: 5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes loading {
    from    {   width: 0%;      }
    to      {   width: 100%;    }
}

.noscript {
    position: absolute;
    width: 100%;
    top: 50%;
    margin: 0;
    text-align: center;
    color: white;
    z-index: 3;
}

.logo {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    top: 2em;
    font-weight: 400;
    z-index: 3;
}

.logo img {
    display: block;
    margin: 0 29px 0 30px;
}

.header {
    display: flex;
    width: 100%;
    height: var(--full_height);
}

.more-content {
    background-color: var(--bg_color);
    padding: 20px 20px;
    max-width: 500px;
    margin: auto;
}

.more-content p {
    line-height: 22px;
}

.move-down {
    display: flex;
    justify-content: center;
    height: 70px;
    width: 100%;
    align-self: end;
    z-index: 2;
}

.move-down img {
    width: 60px;
}

.scroll-mark {
    height: 1px;
    position: relative;
    transform: translateY(-200px);
}

/* Strip along the left edge above the viewer, so a phone can still scroll the page there */
.scroll-grab {
    position: absolute;
    left: 0;
    height: var(--full_height);
    width: 20vw;
    z-index: 10;
}

.product-logo {
    display: flex;
    justify-content: center;
    margin: 1em 0 1.7em;
}

.product-logo img {
    width: 170px;
    height: auto;
}

.tech-details {
    margin: 2em 0;
}

.tech-details h3 {
    margin-top: 0;
}

.tech-details li {
    margin-bottom: 10px;
}

.button {
    display: block;
    background-color: var(--marshall-gold);
    text-align: center;
    padding: 20px;
    margin: 40px 0 6px;
    color: var(--bg_color);
    font-weight: 500;
}

footer {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto 40px;
    padding: 20px 20px 0;
}

footer a {
    color: gray;
}

.made-by {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
}

.made-by img {
    display: block;
    margin: 10px;
}

.disclaimer {
    position: relative;
    color: var(--bg_color);
    background-color: white;
    margin: 0;
    padding: 1.5em 2em;
    font-weight: 400;
}

.disclaimer::before,
.disclaimer::after {
    content: '';
    position: absolute;
    width: 0;
    --corner-cut-size: 20px;
}

.disclaimer::before {
    left: 0; top: 0;
    border-bottom: var(--corner-cut-size) solid white;
    border-left: var(--corner-cut-size) solid var(--bg_color);
}

.disclaimer::after {
    right: 0; bottom: 0;
    border-bottom: var(--corner-cut-size) solid var(--bg_color);
    border-left: var(--corner-cut-size) solid white;
}

.disclaimer-tip {
    margin: -20px 0 0 90px;
}
