/* ==========================================================
   StapeTech — Particle stage & stations
   One fixed canvas (assets/3d/scenes.js) sits behind the page.
   .station boxes are invisible targets the cloud flies to.
   ========================================================== */

.particle-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.4s var(--ease);
}

.particles-ready .particle-stage {
    opacity: 1;
}

/* The library sets pointer-events inline; never let the canvas take clicks */
.particle-stage,
.particle-stage * {
    pointer-events: none !important;
}

/* ---------- Stations ---------- */
.station {
    width: 100%;
    aspect-ratio: 1;
}

/* Soft glow stands in when WebGL is unavailable or motion is reduced */
html:not(.has-particles) .station {
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 35%, rgba(34, 196, 239, 0.35), transparent 45%),
        radial-gradient(circle at 60% 65%, rgba(66, 139, 202, 0.4), transparent 55%);
    filter: blur(30px);
}

/* ---------- Placements ---------- */
.hero__station {
    position: absolute;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: 52%;
}

.hero__station .station {
    height: 100%;
    aspect-ratio: auto;
}

.page-hero--station .page-hero__inner {
    display: grid;
    gap: 1rem;
    align-items: center;
}

.page-hero__station .station {
    aspect-ratio: auto;
    height: clamp(240px, 34vw, 420px);
}

.why__station .station,
.process__station .station {
    aspect-ratio: auto;
    height: clamp(260px, 32vw, 420px);
}

.faq-layout .station {
    aspect-ratio: auto;
    height: 280px;
    margin-top: 1rem;
}

.cta-band__station .station {
    width: 180px;
    height: 160px;
    aspect-ratio: auto;
}

.message-page .station,
.error-page .station {
    width: min(320px, 70vw);
    height: 260px;
    margin: 0 auto -1rem;
    aspect-ratio: auto;
}

.article-hero__station {
    display: none;
}

@media (min-width: 900px) {
    .page-hero--station .page-hero__inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }

    .page-hero--station .page-hero__station {
        margin: -2rem 0 -3rem;
    }

    .cta-band__inner--station {
        grid-template-columns: auto 1fr auto;
    }
}

@media (min-width: 1100px) {
    .article-hero__inner {
        position: relative;
    }

    .article-hero__station {
        display: block;
        position: absolute;
        top: -1rem;
        right: -340px;
        width: 320px;
    }
}

@media (max-width: 899px) {
    .hero__station {
        left: 0;
        width: 100%;
        bottom: auto;
        height: 42vh;
    }

    .page-hero--station .page-hero__station {
        order: -1;
        margin-top: -1rem;
    }

    .faq-layout .station,
    .cta-band__station {
        display: none;
    }
}

/* Smooth page-to-page transitions (supported browsers) */
@view-transition {
    navigation: auto;
}
