body:has(> .design-atmosphere) { isolation: isolate; }
.portfolio:has(> .design-atmosphere) main { overflow-wrap: anywhere; }
.portfolio :is(h1, h2, h3) { text-wrap: balance; }
.portfolio :is(.service-card, .service-contact, .hero-copy, .project-bottom) { min-width: 0; }
.portfolio .design-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(ellipse at 76% 36%, #182841, #101114 67%);
}
.design-scene, .design-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.design-scene {
    opacity: 0;
    background-position: center;
    background-size: cover;
    transition: opacity .8s ease;
}
.scene-architecture { background-image: linear-gradient(90deg, #0c101cfd 10%, #10141bb3 62%, #11162080), url("./architecture.jpg"); }
.scene-restaurant { background-image: linear-gradient(90deg, #131014fa 10%, #15121bbd 64%, #17132191), url("./restaurant.jpg"); }
.scene-clinic { background-image: linear-gradient(90deg, #10151afb 10%, #0e1720b3 64%, #0f17248a), url("./clinic.jpg"); }
.scene-nebula { background-image: radial-gradient(ellipse at 80% 48%, #3b365a 0%, #1b1b36 35%, #101114 75%); }
.scene-night { background-image: radial-gradient(ellipse at 74% 51%, #234746 0%, #14242a 38%, #101114 76%); }
.design-atmosphere[data-scene="0"] .scene-architecture,
.design-atmosphere[data-scene="1"] .scene-restaurant,
.design-atmosphere[data-scene="2"] .scene-clinic,
.design-atmosphere[data-scene="3"] .scene-nebula,
.design-atmosphere[data-scene="4"] .scene-night { opacity: .9; }
.design-canvas { display: block; }
.design-active .hero .machine {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
.design-active .hero .machine > * { visibility: hidden; }
.portfolio .service-main :is(.hero-actions, .service-page-links, .service-related) > * { min-width: 0; }
@media (max-width: 760px) {
    .design-scene { background-position: 65% center; }
    .design-canvas { opacity: .64; }
    .portfolio .service-main .hero-actions { justify-content: center; }
    .portfolio .service-main .hero-actions > .button { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .design-scene { transition: none; }
}
