.build-scene-web {
    background:
        radial-gradient(ellipse at 54% 65%, #203f66 0%, transparent 70%),
        linear-gradient(140deg, #152239, #0b1423 80%);
}

.build-scene-web::before,
.build-scene-web::after {
    background-image:
        linear-gradient(#9bc6ff24 1px, transparent 1px),
        linear-gradient(90deg, #9bc6ff24 1px, transparent 1px);
}

.web-deck {
    position: absolute;
    inset: auto 9% 10%;
    height: 29%;
    border: 1px solid #709fd2;
    border-radius: 1.8cqw;
    background:
        repeating-linear-gradient(90deg, #9dc7f925 0 1px, transparent 1px 5cqw),
        repeating-linear-gradient(0deg, #9dc7f925 0 1px, transparent 1px 3cqw),
        linear-gradient(150deg, #476b91, #1e3556 65%, #365479);
    box-shadow: 0 1.1cqw 0 #0c182a, 0 3cqw 4cqw #070e1ccb;
    transform: perspective(42cqw) rotateX(48deg) rotateZ(-5deg);
}

.web-browser {
    position: absolute;
    inset: 18% 13% 24% 11%;
    contain: layout;
    transform: rotate(-5deg) skewY(2deg);
}

.web-outline {
    position: absolute;
    inset: -.9cqw;
    border: 1px dashed #91c4ff;
    border-radius: 2.5cqw;
    opacity: 0;
}

.web-outline::after {
    content: "";
    position: absolute;
    inset: 13% 0 0 23%;
    border-top: 1px dashed #91c4ff;
    border-left: 1px dashed #91c4ff;
}

.web-shell {
    --entry-x: 4cqw;
    --entry-y: -15cqw;
    --entry-rotate: 11deg;
    --entry-delay: .52s;
    position: absolute;
    inset: 0;
    border: 1px solid #d9eaff;
    border-radius: 1.85cqw;
    background:
        linear-gradient(150deg, #f3faff, #a8beda) border-box;
    box-shadow: .7cqw 1cqw 0 #213658, .85cqw 1.15cqw 0 #789cc2, 1.8cqw 3cqw 3cqw #081324ba;
}

.web-toolbar {
    --entry-x: -20cqw;
    --entry-y: -10cqw;
    --entry-rotate: -14deg;
    --entry-delay: 1.32s;
    position: absolute;
    inset: .7cqw .7cqw auto;
    height: 14%;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 3cqw;
    padding-inline: 1.15cqw;
    border: 1px solid #7294bd;
    border-radius: 1.15cqw 1.15cqw .35cqw .35cqw;
    color: #dbe9ff;
    background: linear-gradient(100deg, #162b46, #26496e);
    font: 650 1.55cqw/1 ui-monospace, Consolas, monospace;
}

.web-toolbar > span:last-child {
    justify-self: center;
    width: 42%;
    padding: .6cqw 1cqw;
    border: 1px solid #53779a;
    border-radius: .4cqw;
    background: #122138;
    text-align: center;
}

.web-controls {
    display: flex;
    gap: .5cqw;
}

.web-controls i {
    width: .75cqw;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #84b3ed;
}

.web-controls i:first-child { background: #ff956d; }
.web-controls i:last-child { background: #74dfbb; }

.web-sidebar {
    --entry-x: -17cqw;
    --entry-y: 9cqw;
    --entry-rotate: -17deg;
    --entry-delay: 1.75s;
    position: absolute;
    inset: 18% auto .7cqw .7cqw;
    display: flex;
    flex-direction: column;
    gap: 1.8cqw;
    width: 20%;
    padding: 1.5cqw 1.2cqw;
    border-radius: .55cqw;
    color: #bed5fa;
    background: linear-gradient(165deg, #162d4c 19%, #233c60);
    font-size: 1.75cqw;
}

.web-sidebar b {
    padding: .65cqw .8cqw;
    border-radius: .45cqw;
    color: #f0f6ff;
    background: #345982;
}

.web-sidebar span {
    padding-left: .8cqw;
}

.web-dashboard {
    position: absolute;
    inset: 18% .7cqw .7cqw 23%;
    display: grid;
    grid-template: minmax(0, 1.65fr) minmax(0, 1fr) / repeat(2, minmax(0, 1fr));
    gap: .85cqw;
}

.web-banner {
    --entry-x: 18cqw;
    --entry-y: -11cqw;
    --entry-rotate: 16deg;
    --entry-delay: 2.04s;
    position: relative;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 2cqw;
    border-radius: .75cqw;
    color: #f6fbff;
    background:
        radial-gradient(ellipse at 83% 47%, #437cb890, transparent 67%),
        linear-gradient(110deg, #1b3664 15%, #284f7a 90%);
    font-size: 3.45cqw;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.web-banner strong {
    position: relative;
    z-index: 1;
}

.web-towers {
    position: absolute;
    inset: 13% 5% 0 auto;
    display: flex;
    align-items: end;
    gap: .6cqw;
    width: 38%;
    transform: rotate(-15deg) skewY(15deg);
}

.web-towers i {
    flex: 1;
    height: 63%;
    border: 1px solid #aad9ffb5;
    background:
        repeating-linear-gradient(0deg, transparent 0 .85cqw, #50aff957 .9cqw 1cqw),
        linear-gradient(90deg, #cef0fd 0%, #92bfff 15%, #3e77b4 81%);
    box-shadow: .5cqw -.55cqw #7099cf, 1cqw -1cqw #a3c3e3;
}

.web-towers i:nth-child(2) { height: 95%; }
.web-towers i:nth-child(3) { height: 74%; }
.web-towers i:nth-child(4) { height: 49%; }

.web-stat {
    --entry-x: 6cqw;
    --entry-y: 17cqw;
    --entry-rotate: -15deg;
    --entry-delay: 2.55s;
    display: grid;
    align-content: center;
    gap: .3cqw;
    padding: .85cqw 1.6cqw;
    border: 1px solid #d0e1fa;
    border-radius: .65cqw;
    color: #354d69;
    background: linear-gradient(140deg, #f4f9ff, #dcecff);
    font-size: 1.8cqw;
    line-height: 1.1;
}

.web-stat strong {
    color: #163d70;
    font-size: 3.25cqw;
}

.web-stat:last-child {
    --entry-x: 16cqw;
    --entry-y: 11cqw;
    --entry-rotate: 13deg;
    --entry-delay: 2.84s;
}

.build-scene-web .build-activation {
    background: radial-gradient(ellipse at 47% 53%, #d2eaff9e, transparent 69%);
}

.build-scene-ai {
    background:
        radial-gradient(ellipse at 51% 52%, #5b372c 0%, transparent 67%),
        linear-gradient(145deg, #2b1b22, #1a1218 85%);
}

.build-scene-ai::before,
.build-scene-ai::after {
    background-image:
        linear-gradient(#f6be8222 1px, transparent 1px),
        linear-gradient(90deg, #f6be8222 1px, transparent 1px);
}

.ai-board {
    position: absolute;
    inset: 17% 7% 19%;
    border: 1px solid #bb846479;
    border-radius: 2.1cqw;
    background:
        radial-gradient(circle at 50% 48%, #a1532b2e, transparent 62%),
        repeating-linear-gradient(0deg, #f3ae6d14 0 1px, transparent 1px 3cqw),
        repeating-linear-gradient(90deg, #ffbb8514 0 1px, transparent 1px 3cqw),
        linear-gradient(145deg, #492e31, #2d1e26 75%);
    box-shadow: .7cqw 1cqw 0 #161015, 1.4cqw 3cqw 4cqw #130b12ad;
    transform: perspective(80cqw) rotateX(14deg) rotateZ(-4deg);
}

.ai-trace {
    position: absolute;
    left: 27%;
    width: 16%;
    height: .45cqw;
    border-radius: 1cqw;
    background: #edb176;
    box-shadow: 0 0 1.5cqw #f5b26682;
    transform-origin: left center;
}

.ai-trace-orders {
    --signal-delay: 1.62s;
    top: 34%;
    transform: skewY(27deg);
}

.ai-trace-stock {
    --signal-delay: 1.92s;
    top: 61%;
    transform: skewY(-27deg);
}

.ai-trace-result {
    --signal-delay: 3.12s;
    top: 47.5%;
    left: 60%;
    width: 15%;
    background: #ffd390;
}

.ai-trace i {
    position: absolute;
    top: 50%;
    width: 2.05cqw;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff5cb;
    box-shadow: 0 0 1.6cqw .65cqw #ffb263;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.ai-card,
.ai-chip {
    position: absolute;
    border: 1px solid #b17b5e;
    border-radius: 1.5cqw;
    color: #fff5e9;
    background: linear-gradient(135deg, #5f3c3e, #372632);
    box-shadow: .4cqw .55cqw 0 #221720, 1.2cqw 2cqw 2.2cqw #1c1118a1;
}

.ai-card {
    display: grid;
    align-content: center;
    gap: .9cqw;
    min-height: 16cqw;
    padding: 1.65cqw 2cqw;
    font-size: 2.25cqw;
    line-height: 1.1;
}

.ai-orders,
.ai-stock {
    left: 9%;
    width: 20%;
    transform-origin: right center;
}

.ai-orders {
    --entry-x: -16cqw;
    --entry-y: -9cqw;
    --entry-rotate: -21deg;
    --entry-delay: .45s;
    top: calc(34% - 8cqw);
}

.ai-stock {
    --entry-x: -15cqw;
    --entry-y: 9cqw;
    --entry-rotate: 16deg;
    --entry-delay: .7s;
    top: calc(61% - 8cqw);
}

.ai-bars,
.ai-boxes {
    display: flex;
    align-items: end;
    gap: .6cqw;
    height: 4.75cqw;
}

.ai-bars i {
    width: 1.35cqw;
    height: 54%;
    border-radius: .25cqw .25cqw 0 0;
    background: #ffc188;
}

.ai-bars i:nth-child(2) { height: 71%; }
.ai-bars i:nth-child(3) { height: 64%; }
.ai-bars i:last-child { height: 100%; }

.ai-boxes i {
    width: 2.15cqw;
    aspect-ratio: 1;
    border: 1px solid #ffca94;
    border-radius: .25cqw;
    background: linear-gradient(90deg, #d89055 43%, #ffe5b7 44% 56%, #d89055 57%);
}

.ai-boxes i:nth-child(2) { margin-bottom: 1cqw; }

.ai-chip {
    --entry-x: 2cqw;
    --entry-y: -15cqw;
    --entry-rotate: 25deg;
    --entry-delay: .83s;
    top: calc(47.5% - 11.5cqw);
    left: 39%;
    display: grid;
    isolation: isolate;
    place-items: center;
    width: 23%;
    aspect-ratio: 1;
    border: 1px solid #ffc58d;
    border-radius: 2.35cqw;
    background: linear-gradient(145deg, #a36952, #4e3437 45%, #33232f 90%);
    box-shadow: inset 0 0 0 .9cqw #593b3e, .6cqw .9cqw 0 #2b1d28, 0 0 3cqw #e798635c;
}

.ai-chip::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 17% -13%;
    border-radius: .5cqw;
    background: repeating-linear-gradient(0deg, #ba84614d 0 1cqw, #e8ac81 1.05cqw 1.58cqw, transparent 1.62cqw 2.25cqw);
    mask-image: linear-gradient(90deg, #000 11%, transparent 11% 89%, #000 89%);
}

.ai-chip b {
    display: grid;
    place-items: center;
    width: 67%;
    aspect-ratio: 1;
    border: 1px solid #ffd6ab;
    border-radius: 1.65cqw;
    color: #ffebd2;
    background: radial-gradient(ellipse at 40% 18%, #a9654b, #51323a 75%);
    text-shadow: 0 0 1.4cqw #ffe2b0a1;
    font: 800 6.9cqw/1 system-ui, sans-serif;
    letter-spacing: -.04em;
}

.ai-result {
    --entry-x: 15cqw;
    --entry-y: -3cqw;
    --entry-rotate: 16deg;
    --entry-delay: 3.64s;
    top: calc(47.5% - 8cqw);
    left: 72%;
    width: 20%;
    border-color: #f1ba80;
    color: #3f2926;
    background: linear-gradient(140deg, #ffe7bf, #eeb083);
    font-size: 1.82cqw;
}

.ai-result strong {
    font-size: 3.1cqw;
    line-height: .99;
}

.build-scene-ai .build-activation {
    background: radial-gradient(ellipse at 68% 50%, #ffd8a785, transparent 68%);
}

.app-build.is-assembling :where(.web-deck, .ai-board) {
    animation: stage-platform .95s ease-out both;
}

.app-build.is-assembling :where(.web-outline) {
    animation: build-outline 2.15s ease both;
}

.app-build.is-assembling :where(.ai-trace) {
    animation: ai-connect .6s 1.02s ease both;
}

.app-build.is-assembling :where(.ai-trace-result) {
    animation-delay: 3.04s;
}

.app-build.is-assembling :where(.ai-trace i) {
    animation: ai-signal .68s var(--signal-delay) ease-in-out both;
}

.app-build.is-assembling :where(.ai-chip b) {
    animation: ai-process .82s 2.51s ease-in-out both;
}

@keyframes stage-platform {
    0% { opacity: .1; translate: 0 12cqw; }
    77% { opacity: 1; translate: 0 -.65cqw; }
    100% { opacity: 1; translate: none; }
}

@keyframes ai-connect {
    0% { opacity: 0; scale: 0 1; }
    100% { opacity: 1; scale: 1; }
}

@keyframes ai-signal {
    0% { left: 0; opacity: 0; }
    22%, 77% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes ai-process {
    0%, 100% { box-shadow: none; }
    45% { box-shadow: 0 0 2.5cqw 1cqw #ffd28b; }
}

@media (max-width: 540px) {
    .web-browser {
        inset: 19% 9% 25% 8%;
    }

    .web-toolbar { font-size: 2.15cqw; }
    .web-sidebar { font-size: 2.25cqw; }
    .web-banner { font-size: 4cqw; }
    .web-stat { font-size: 2.45cqw; }
    .web-stat strong { font-size: 4.1cqw; }
    .ai-card { font-size: 2.75cqw; }
    .ai-result { font-size: 2.25cqw; }
    .ai-result strong { font-size: 3.55cqw; }
}
