
#jarvis-service {
    position: relative;
    height: 300vh;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    background: #090909;
    color: #f4f2ed;
    isolation: isolate;
}

#jarvis-service * {
    box-sizing: border-box;
}

#jarvis-service .service-viewport {
    position: sticky;
    top: 0;
    height: 100svh;
    width: 100%;
    overflow: hidden;
    background: #090909;
    font-family: Arial, sans-serif;
}

#jarvis-service #studio {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#jarvis-service canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#jarvis-service .hero-type {
    position: absolute;
    top: 12%;
    width: 100%;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

#jarvis-service .hero-type p {
    font-size: 12px;
    letter-spacing: 2px;
    color: #aaa;
    margin: 0 0 16px;
}

#jarvis-service .hero-type h2 {
    font-size: clamp(48px, 12vw, 180px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.04em;
    color: #f4f2ed;
    margin: 0;
}

#jarvis-service .bottom {
    position: absolute;
    bottom: 10%;
    left: 5%;
    right: 5%;
    z-index: 3;
    pointer-events: none;
}

#jarvis-service .bottom h2 {
    font-size: clamp(22px, 3vw, 44px);
    margin: 0;
    font-weight: 500;
    color: #f4f2ed;
}

#jarvis-service .bottom p {
    color: #aaa;
    font-size: 12px;
    margin-top: 12px;
}

#jarvis-service #status {
    position: absolute;
    bottom: 5%;
    right: 5%;
    font-size: 11px;
    color: #bbb;
    z-index: 5;
}

#jarvis-service .chapter {
    position: absolute;
    top: 32%;
    left: 6%;
    width: min(400px, 85%);
    opacity: 0;
    visibility: hidden;
    z-index: 3;
    pointer-events: none;
    padding: 0;
    margin: 0;
    background: transparent;
}

#jarvis-service .chapter-three {
    left: auto;
    right: 6%;
}

#jarvis-service .chapter .number {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 20px;
}

#jarvis-service .chapter h2 {
    font-size: clamp(36px, 6vw, 85px);
    line-height: 1.1;
    color: #f4f2ed;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 20px #000a;
}

#jarvis-service .chapter .description {
    max-width: 290px;
    font-size: 15px;
    line-height: 1.7;
    color: #eee;
    margin-top: 20px;
    text-shadow: 0 2px 8px #000;
}

#jarvis-service .studio-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        #0008 100%
    );
}

#jarvis-service .scroll-guide {
    position: absolute;
    right: 4%;
    bottom: 20%;
    writing-mode: vertical-rl;
    color: #aaa;
    font-size: 11px;
    z-index: 5;
}

#jarvis-service .progress-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffffff20;
    z-index: 10;
}

#jarvis-service .progress-fill {
    width: 100%;
    height: 100%;
    background: #70d2ff;
    transform: scaleX(0);
    transform-origin: left;
}

#jarvis-service #diagnostic-hud {
    position: absolute;
    top: 22%;
    right: 5%;
    width: 220px;
    z-index: 8;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    padding: 18px;
    color: #70d2ff;
    border-left: 1px solid #29b8ff;
    background: linear-gradient(
        90deg, #0a1e2d99, transparent
    );
}

#jarvis-service .diagnostic-label,
#jarvis-service .diagnostic-caption {
    font-size: 10px;
    margin: 10px 0;
}

#jarvis-service #diagnostic-stage {
    font-size: 13px;
}

#jarvis-service .diagnostic-track {
    height: 2px;
    margin-top: 18px;
    background: #ffffff22;
}

#jarvis-service #diagnostic-progress {
    display: block;
    height: 100%;
    background: #29b8ff;
    transform-origin: left;
    transform: scaleX(0);
}

#jarvis-service .service-disclosure,
#jarvis-service .service-credit {
    position: absolute;
    bottom: 2%;
    font-size: 10px;
    color: #ddd;
    z-index: 12;
}

#jarvis-service .service-disclosure {
    left: 5%;
}

#jarvis-service .service-credit {
    right: 5%;
}

@media(max-width:800px) {

    #jarvis-service .chapter,
    #jarvis-service .chapter-three {
        left: 5%;
        right: auto;
        top: 18%;
    }

    #jarvis-service .chapter h2 {
        font-size: clamp(28px, 8vw, 52px);
    }

    #jarvis-service .chapter .description {
        font-size: 13px;
        max-width: 240px;
    }

    #jarvis-service #diagnostic-hud {
        top: 68%;
        right: 4%;
        width: 155px;
        padding: 10px;
    }

    #jarvis-service .scroll-guide {
        display: none;
    }

    #jarvis-service .service-credit {
        bottom: 1%;
        left: 5%;
        right: auto;
    }

    #jarvis-service .service-disclosure {
        bottom: 4%;
    }
}

@media(prefers-reduced-motion:reduce) {

    #jarvis-service {
        height: 100svh;
    }

    #jarvis-service .scroll-guide,
    #jarvis-service .progress-track {
        display: none;
    }
}

@font-face {font-family:JarvisGeorgian;src:url("assets/fonts/NotoSansGeorgian.ttf") format("truetype");font-weight:100 900;font-display:swap;}
#jarvis-service .service-viewport {font-family:JarvisGeorgian,sans-serif;}
#jarvis-service .hero-type h2 {letter-spacing:-.035em;}


/* Service composition refinement */

#jarvis-service .hero-type p {
    font-size: 15px;
    color: #d3dce3;
    letter-spacing: 1px;
}

#jarvis-service .bottom p {
    font-size: 15px;
    color: #d3dce3;
}

#jarvis-service .chapter {
    top: 12%;
}

#jarvis-service .chapter h2 {
    font-size: clamp(30px, 4.5vw, 64px);
}

#jarvis-service .diagnostic-label,
#jarvis-service .diagnostic-caption {
    font-size: 12px;
}

#jarvis-service #diagnostic-stage {
    font-size: 15px;
}

@media (max-width: 800px) {

    #jarvis-service .hero-type {
        top: 9%;
        padding-inline: 5%;
    }

    #jarvis-service .hero-type h2 {
        font-size: clamp(36px, 11vw, 65px);
    }

    #jarvis-service .chapter,
    #jarvis-service .chapter-three {
        top: 9%;
        left: 5%;
        right: 5%;
        width: auto;
    }

    #jarvis-service .chapter h2 {
        font-size: clamp(28px, 7vw, 40px);
    }

    #jarvis-service .chapter .description {
        font-size: 14px;
        margin-top: 10px;
        max-width: 290px;
    }

    #jarvis-service #diagnostic-hud {
        top: 65%;
        right: 5%;
        width: min(190px, 48%);
    }

    #jarvis-service .bottom {
        bottom: 14%;
    }

    #jarvis-service .bottom p {
        font-size: 14px;
    }
}
