#jarvis-automotive {
    position: relative;
    height: 300vh;
    background: #090909;
    color: #f4f2ed;
    isolation: isolate;
}

#jarvis-automotive .automotive-viewport {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100svh;
    overflow: hidden;
    background: #090909;
}

#jarvis-automotive #studio {
    position: absolute;
    inset: 0;
}

#jarvis-automotive canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#jarvis-automotive .hero-type {
    position: absolute;
    top: 8%;
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

#jarvis-automotive .hero-type h2 {
    font-size: clamp(40px, 9vw, 140px);
    line-height: 1.1;
    margin: 0;
}

#jarvis-automotive .bottom {
    position: absolute;
    bottom: 8%;
    left: 6%;
    z-index: 3;
    pointer-events: none;
}

#jarvis-automotive .chapter {
    position: absolute;
    left: 6%;
    top: 28%;
    width: min(340px, 85%);
    opacity: 0;
    visibility: hidden;
    z-index: 3;
    pointer-events: none;
}

#jarvis-automotive .chapter h2 {
    font-size: clamp(30px, 5vw, 76px);
    line-height: 1.15;
    margin: 0 0 20px;
}

#jarvis-automotive .chapter p {
    font-size: 16px;
    line-height: 1.7;
}

#jarvis-automotive .chapter-three {
    left: auto;
    right: 6%;
}

#jarvis-automotive #status {
    position: absolute;
    right: 5%;
    bottom: 5%;
    z-index: 5;
    font-size: 12px;
    color: #ccc;
}

#jarvis-automotive .scroll-guide {
    position: absolute;
    bottom: 15%;
    right: 5%;
    z-index: 5;
    font-size: 12px;
}

#jarvis-automotive .progress-track {
    position: absolute;
    top: 0;
    width: 100%;
    height: 3px;
    background: #ffffff20;
    z-index: 6;
}

#jarvis-automotive .progress-fill {
    width: 100%;
    height: 100%;
    background: #e7bf59;
    transform: scaleX(0);
    transform-origin: left center;
}

#jarvis-automotive .concept-notice {
    position: absolute;
    bottom: 2%;
    left: 6%;
    font-size: 12px;
    color: #ccc;
    z-index: 5;
}

@media (max-width: 760px) {
    #jarvis-automotive .chapter {
        left: 6%;
        right: auto;
        top: 12%;
    }

    #jarvis-automotive .chapter p {
        font-size: 14px;
    }

    #jarvis-automotive .scroll-guide {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #jarvis-automotive {
        height: 100svh;
    }

    #jarvis-automotive .progress-track,
    #jarvis-automotive .scroll-guide {
        display: none;
    }
}

/* Composition refinement */

#jarvis-automotive .chapter-four {
    top: 9%;
    left: 6%;
    right: 6%;
    width: auto;
    max-width: 560px;
}

#jarvis-automotive .chapter-four h2 {
    font-size: clamp(28px, 3.8vw, 54px);
    margin-bottom: 12px;
}

@media (max-width: 799px) {

    #jarvis-automotive .hero-type {
        top: 10%;
        padding: 0 6%;
        box-sizing: border-box;
    }

    #jarvis-automotive .hero-type h2 {
        font-size: clamp(32px, 9vw, 52px);
    }

    #jarvis-automotive .chapter {
        top: 10%;
        left: 6%;
        right: 6%;
        width: auto;
        max-width: none;
    }

    #jarvis-automotive .chapter h2 {
        font-size: clamp(28px, 7vw, 40px);
        margin-bottom: 10px;
    }

    #jarvis-automotive .chapter p {
        font-size: 15px;
        line-height: 1.5;
    }

    #jarvis-automotive .bottom {
        bottom: 12%;
        right: 6%;
    }
}
