#helmet-experience {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background: #111;
}

/* Background image moves independently from the helmet */
.helmet-background {
    position: absolute;
    z-index: 0;
    inset: -4%;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    transform: translate3d(0, 0, 0) scale(1.08);
    transform-origin: center;
    will-change: transform;
}

/* Three.js layer */
.helmet-canvas {
    position: absolute;
    z-index: 1;
    inset: 0;
}

.helmet-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;

    /*
     * Required so one-finger gestures rotate the helmet.
     * Note that users cannot vertically scroll while touching the canvas.
     */
    touch-action: none;
    cursor: grab;
}

.helmet-canvas canvas:active {
    cursor: grabbing;
}

/* HTML content above the canvas */
.helmet-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap:5vh;
    
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(30px, 6vw, 80px) 24px;

    pointer-events: none;
}

.helmet-title {
    max-width: 900px;
    margin: 0;

    color: #fff;
    font-size: clamp(38px, 6vw, 92px);
    font-weight: 700;
    line-height: 0.95;
    text-align: center;
    text-wrap: balance;

    visibility: hidden;
    perspective: 600px;
}

.helmet-title__word {
    display: inline-block;
    white-space: nowrap;
}

.helmet-title__char {
    display: inline-block;
    will-change: transform, opacity;
    display: none;
}

.helmet-participate {
    padding: 15px 30px;
    border: 0;
    border-radius: 999px;

    background: #fff;
    color: #111;

    font: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
    pointer-events: auto;

    opacity: 0;
    visibility: hidden;
}

input,
button{
    pointer-events: auto;
}

/* Loading overlay */
.helmet-loader {
    position: absolute;
    z-index: 10;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #111;
    color: #fff;
}

.helmet-loader__content {
    width: min(340px, calc(100% - 48px));
}

.helmet-loader__label {
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.helmet-loader__track {
    position: relative;
    width: 100%;
    height: 4px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.helmet-loader__bar {
    position: absolute;
    inset: 0;

    background: #fff;
    border-radius: inherit;

    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.helmet-loader__percent {
    margin-top: 10px;
    font-size: 13px;
    text-align: right;
}

@media (prefers-reduced-motion: reduce) {
    .helmet-background {
        transform: scale(1.04);
    }
}