.hero,
.account-shell,
.public-seo-page {
    position: relative;
    isolation: isolate;
}

.asset-motion-stage {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    contain: layout paint;
    pointer-events: none;
    border-radius: inherit;
    opacity: 1;
    transition: none;
}

.asset-motion-stage[data-motion-ready="true"] { opacity: 1; }
.asset-motion-stage.motion-recalculating { opacity: .55; }
.asset-motion-canvas { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.asset-motion-tracks { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.asset-motion-track { fill: none; stroke: currentColor; opacity: .405; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.asset-motion-track[data-motion-route-style="SmoothSolid"] { color: #2184bc; stroke-width: 1.55; }
.asset-motion-track[data-motion-route-style="CurvedDashed"] { color: #089d9b; stroke-width: 1.5; stroke-dasharray: 8 7; }
.asset-motion-track[data-motion-route-style="Segmented"] { color: #678c58; stroke-width: 1.5; stroke-dasharray: 15 5 3 5; }
.asset-motion-track[data-motion-route-style="Highway"] { color: #7895a5; stroke-width: 1.35; opacity: .39; }
.motion-highway-edge { fill:none; stroke:#7895a5; stroke-width:1.1; opacity:.28; vector-effect:non-scaling-stroke; }
.motion-highway-separator { fill:none; stroke:#92aebb; stroke-width:1; stroke-dasharray:5 7; opacity:.31; vector-effect:non-scaling-stroke; }

.asset-motion-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .175;
    filter: drop-shadow(0 2px 4px rgba(20, 54, 82, .15));
    will-change: transform;
}
.asset-motion-icon use { fill: none; stroke: currentColor; }
.asset-motion-icon[data-motion-hidden="true"] { opacity: 0; }
.motion-car { color: #1676ae; }
.motion-phone { color: #0d9290; }
.motion-arrow { color: #15966c; }
.motion-highway-arrow-a { color: #15966c; }
.motion-highway-arrow-b { color: #0b9c72; }
.motion-location { color: #278d62; }
.motion-tracker { color: #496c9c; }

.hero > :not(.asset-motion-stage),
.account-shell > :not(.asset-motion-stage),
.public-seo-page > :not(.asset-motion-stage) { position: relative; z-index: 1; }

/* The authentication composition is wider than its centered form column.
   Extend only the decorative layer; the grid and cards keep their dimensions. */
.login-shell .asset-motion-stage,
.registration-shell .asset-motion-stage {
    position: fixed;
    inset: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    transform: none;
}

.public-seo-page .asset-motion-stage { border-radius: 26px; }
.hero:focus-within > :not(.asset-motion-stage),
.account-shell:focus-within > :not(.asset-motion-stage) { z-index: 4; }

@media (max-width: 620px) {
    .asset-motion-stage { border-radius: 18px; }
    .asset-motion-track[data-motion-route-style="SmoothSolid"] { stroke-width: 1.35; }
    .asset-motion-track[data-motion-route-style="CurvedDashed"] { stroke-width: 1.3; stroke-dasharray: 7 6; }
    .asset-motion-track[data-motion-route-style="Segmented"] { stroke-width: 1.35; stroke-dasharray: 12 4 2 4; }
    .asset-motion-icon { opacity: .17; }
}

@media (prefers-reduced-motion: reduce) {
    .asset-motion-stage { transition: none; }
    .asset-motion-icon { will-change: auto; }
    .asset-motion-track[data-motion-route-style="SmoothSolid"],
    .asset-motion-track[data-motion-route-style="CurvedDashed"],
    .asset-motion-track[data-motion-route-style="Segmented"],
    .asset-motion-track[data-motion-route-style="Highway"] { opacity: .405; }
}
