header {
    position: relative;
    height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--black);
    color: var(--white);
}

header canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

header h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(3rem, 12vw, 14rem);
    font-weight: 400;
    line-height: .9;
    letter-spacing: 0;
    color: var(--white);
}

/* header .note {
    position: absolute;
    left: var(--margin);
    right: var(--margin);
    bottom: clamp(6rem, 14vh, 10rem);
    z-index: 3;
    margin: 0;
    color: rgb(255 255 255 / .72);
    font-size: clamp(1rem, .8vw + .85rem, 1.35rem);
    font-weight: 380;
    line-height: 1.08;
    letter-spacing: 0;
    text-align: center;
} */

body.is-webgl header {
    height: calc(var(--app-viewport-height, 100dvh) * 1.9);
    min-height: calc(var(--app-viewport-height, 100dvh) * 1.9);
    display: block;
    background: var(--paper);
    color: var(--black);
}
body.is-webgl header canvas {
    position: fixed;
    top: 0;
    height: 100vh;
    height: 100lvh;
    height: 100dvh;
    height: var(--app-canvas-height, 100lvh);
    opacity: 1;
}
body.is-webgl header h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
body.is-webgl .header-note {
    position: fixed;
    color: rgb(255 255 255 / .74);
    mix-blend-mode: difference;
}
body .scroll-indicator {
    color: rgb(255 255 255 / .62);
}
body.is-webgl .scroll-indicator {
    top: calc(var(--app-viewport-height, 100dvh) - clamp(4.5rem, 8dvh, 5.5rem));
    bottom: auto;
    color: rgb(255 255 255 / .68);
    mix-blend-mode: difference;
}
body.is-webgl main {
    margin-top: calc(var(--app-viewport-height, 100dvh) * -.8);
}

@media (max-width: 800px) {
    body.is-webgl main {
        margin-top: calc(var(--app-viewport-height, 100dvh) * -.45);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    header {
        height: 70vh;
        min-height: 70vh;
    }
    main {
        margin-top: 0;
        border-radius: 0;
    }
}
