/* PrecisionStudios v1.1.27 — scroll reveal and telemetry motion
   Lightweight, GPU-friendly motion layer. No external library. */

:root {
    --ps-motion-blue: 76, 141, 255;
    --ps-motion-cyan: 126, 193, 255;
    --ps-motion-ease: cubic-bezier(.2, .8, .2, 1);
}

body.ps-motion-ready {
    position: relative;
}

/* Scroll progress — thin and quiet. */
.ps-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 9999;
    pointer-events: none;
    background: rgba(255, 255, 255, .025);
}

.ps-scroll-progress > span {
    display: block;
    width: var(--ps-progress, 0%);
    height: 100%;
    background: linear-gradient(90deg, #4c8dff, #8ed5ff);
    box-shadow: 0 0 14px rgba(var(--ps-motion-cyan), .55);
    transition: width .08s linear;
}

/* Ambient layer. It is intentionally very low contrast. */
.ps-ambient-motion {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ps-ambient-motion i {
    position: absolute;
    display: block;
    border-radius: 999px;
    filter: blur(44px);
    opacity: .08;
    will-change: transform;
}

.ps-ambient-motion i:nth-child(1) {
    width: 260px;
    height: 260px;
    left: -90px;
    top: 18%;
    background: #4c8dff;
    animation: psAmbientOne 18s ease-in-out infinite alternate;
}

.ps-ambient-motion i:nth-child(2) {
    width: 220px;
    height: 220px;
    right: -70px;
    top: 48%;
    background: #6e7cff;
    animation: psAmbientTwo 22s ease-in-out infinite alternate;
}

.ps-ambient-motion i:nth-child(3) {
    width: 180px;
    height: 180px;
    left: 42%;
    bottom: -80px;
    background: #76c8ff;
    animation: psAmbientThree 20s ease-in-out infinite alternate;
}

/* Section entrance accent. */
.motion-section {
    position: relative;
    overflow: clip;
}

.motion-section > .container {
    position: relative;
    z-index: 1;
}

.motion-section .section-head h2,
.motion-section.split h2,
.motion-section .split h2 {
    position: relative;
}

.motion-section .section-head h2::after,
.motion-section.split h2::after,
.motion-section .split h2::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    margin-top: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4c8dff, rgba(126, 193, 255, 0));
    box-shadow: 0 0 14px rgba(var(--ps-motion-blue), .22);
    transition: width .9s var(--ps-motion-ease);
}

.motion-section.is-motion-active .section-head h2::after,
.motion-section.is-motion-active.split h2::after,
.motion-section.is-motion-active .split h2::after {
    width: 76px;
}

.eyebrow {
    position: relative;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 999px;
    background: #76c8ff;
    box-shadow: 0 0 0 0 rgba(var(--ps-motion-cyan), .28);
    animation: psEyebrowPulse 3.2s ease-out infinite;
}

/* Cursor spotlight and lift, added only to meaningful cards. */
.motion-surface {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    translate: 0 0;
    transition:
        translate .38s var(--ps-motion-ease),
        border-color .38s ease,
        box-shadow .38s ease;
}

.motion-surface::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
        280px circle at var(--spot-x, 50%) var(--spot-y, 50%),
        rgba(var(--ps-motion-cyan), .12),
        transparent 68%
    );
    transition: opacity .32s ease;
}

.motion-surface:hover {
    translate: 0 -4px;
    border-color: rgba(var(--ps-motion-blue), .34) !important;
    box-shadow: 0 22px 54px rgba(0, 0, 0, .22), 0 0 0 1px rgba(var(--ps-motion-blue), .05);
}

.motion-surface:hover::after {
    opacity: 1;
}

/* Image motion stays inside the image, never moving the layout. */
.project-card img,
.brand-logo-card img,
.testimonial-card img,
.ps19-hero-image,
.case-hero-image img {
    transition: transform .75s var(--ps-motion-ease), filter .5s ease;
}

.project-card:hover img,
.brand-logo-card:hover img,
.testimonial-card:hover img,
.case-hero-image:hover img {
    transform: scale(1.035);
}

/* Hero tech visual: slow breathing motion, not a distracting bounce. */
.ps19-image-card {
    animation: psHeroBreath 8s ease-in-out infinite;
}

.ps19-image-shell {
    position: relative;
}

.ps19-image-shell::before {
    content: "";
    position: absolute;
    inset: -35%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.09) 49%, transparent 58%);
    transform: translateX(-65%) rotate(3deg);
    animation: psHeroSweep 8s ease-in-out infinite;
}

.ps19-hero-image {
    animation: psHeroImage 12s ease-in-out infinite alternate;
}

/* Buttons: subtle magnetic response from JS and one soft shine. */
.btn,
.nav-cta {
    --magnetic-x: 0px;
    --magnetic-y: 0px;
    translate: var(--magnetic-x) var(--magnetic-y);
    transition:
        translate .28s var(--ps-motion-ease),
        transform .25s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.btn-primary:hover,
.nav-cta:hover {
    box-shadow: 0 18px 44px rgba(var(--ps-motion-blue), .38);
}

/* Header logo and navigation micro-interactions. */
.site-header .brand img,
.site-header .brand-mark {
    transition: transform .4s var(--ps-motion-ease), filter .4s ease;
}

.site-header .brand:hover img,
.site-header .brand:hover .brand-mark {
    transform: translateY(-1px) scale(1.025);
    filter: drop-shadow(0 8px 18px rgba(var(--ps-motion-blue), .23));
}

.main-nav > a:not(.nav-cta) {
    position: relative;
}

.main-nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4c8dff, #8ed5ff);
    transition: right .32s var(--ps-motion-ease);
}

.main-nav > a:not(.nav-cta):hover::after {
    right: 0;
}

/* Stats and bars animate only once when visible. */
[data-count] {
    font-variant-numeric: tabular-nums;
}

.ps19-fill {
    transform-origin: left center;
}

/* Location pin and CTA get a small attention cue. */
.map-pin {
    animation: psPinFloat 4s ease-in-out infinite;
}

.cta-inner {
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    top: -150px;
    right: -80px;
    border-radius: 999px;
    background: rgba(var(--ps-motion-cyan), .11);
    filter: blur(20px);
    animation: psCtaGlow 7s ease-in-out infinite alternate;
    pointer-events: none;
}

/* FAQ opens smoothly without trying to animate auto height. */
.faq-list details {
    transition: border-color .3s ease, background-color .3s ease, translate .3s var(--ps-motion-ease);
}

.faq-list details[open] {
    border-color: rgba(var(--ps-motion-blue), .28);
    background: rgba(var(--ps-motion-blue), .06);
    translate: 0 -2px;
}

.faq-list summary {
    list-style: none;
    position: relative;
    padding-right: 30px;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    translate: 0 -50%;
    color: #8ec7ff;
    font-size: 1.3rem;
    transition: rotate .3s var(--ps-motion-ease);
}

.faq-list details[open] summary::after {
    rotate: 45deg;
}

/* Brand wall feels alive only on interaction. */
.brand-logo-card {
    transition: opacity .32s ease, filter .32s ease, translate .32s var(--ps-motion-ease), border-color .32s ease;
}

.logo-wall:has(.brand-logo-card:hover) .brand-logo-card:not(:hover) {
    opacity: .55;
    filter: saturate(.65);
}

.brand-logo-card:hover {
    translate: 0 -4px;
}

@keyframes psAmbientOne {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(120px, -45px, 0) scale(1.12); }
}

@keyframes psAmbientTwo {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-110px, 55px, 0) scale(1.08); }
}

@keyframes psAmbientThree {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(60px, -80px, 0) scale(1.16); }
}

@keyframes psEyebrowPulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--ps-motion-cyan), .28); }
    65%, 100% { box-shadow: 0 0 0 10px rgba(var(--ps-motion-cyan), 0); }
}

@keyframes psHeroBreath {
    0%, 100% { translate: 0 0; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
    50% { translate: 0 -5px; box-shadow: 0 30px 80px rgba(0,0,0,.31), 0 0 34px rgba(var(--ps-motion-blue), .07); }
}

@keyframes psHeroSweep {
    0%, 40% { transform: translateX(-65%) rotate(3deg); opacity: 0; }
    48% { opacity: 1; }
    65%, 100% { transform: translateX(65%) rotate(3deg); opacity: 0; }
}

@keyframes psHeroImage {
    from { transform: scale(1.005); }
    to { transform: scale(1.025); }
}

@keyframes psPinFloat {
    0%, 100% { translate: 0 0; filter: drop-shadow(0 6px 10px rgba(var(--ps-motion-blue), .18)); }
    50% { translate: 0 -5px; filter: drop-shadow(0 12px 18px rgba(var(--ps-motion-blue), .34)); }
}

@keyframes psCtaGlow {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-90px, 75px, 0) scale(1.18); }
}

@media (max-width: 900px) {
    .ps-ambient-motion {
        display: none;
    }

    .motion-surface:hover,
    .brand-logo-card:hover,
    .faq-list details[open] {
        translate: 0 0;
    }

    .ps19-image-card,
    .ps19-hero-image,
    .map-pin {
        animation: none;
    }

    .motion-section .section-head h2::after,
    .motion-section.split h2::after,
    .motion-section .split h2::after {
        margin-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ps-ambient-motion,
    .ps-scroll-progress {
        display: none !important;
    }

    .ps19-image-card,
    .ps19-image-shell::before,
    .ps19-hero-image,
    .map-pin,
    .cta-inner::before,
    .eyebrow::before {
        animation: none !important;
    }

    .motion-surface,
    .btn,
    .nav-cta,
    .brand-logo-card,
    .faq-list details,
    .main-nav > a::after {
        transition: none !important;
        translate: 0 0 !important;
    }
}


/* v1.1.27 — stronger scroll entrances and telemetry visualization. */
body.ps-motion-ready .ps-scroll-reveal {
    --ps-reveal-x: 0px;
    --ps-reveal-y: -38px;
    --ps-reveal-scale: .985;
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(var(--ps-reveal-x), var(--ps-reveal-y), 0) scale(var(--ps-reveal-scale));
    transition:
        opacity .78s var(--ps-motion-ease) var(--ps-delay, 0ms),
        transform .9s var(--ps-motion-ease) var(--ps-delay, 0ms),
        filter .72s ease var(--ps-delay, 0ms);
    will-change: opacity, transform, filter;
}

body.ps-motion-ready .ps-scroll-reveal[data-ps-direction="up"] {
    --ps-reveal-y: 42px;
}

body.ps-motion-ready .ps-scroll-reveal[data-ps-direction="left"] {
    --ps-reveal-x: -44px;
    --ps-reveal-y: 0px;
}

body.ps-motion-ready .ps-scroll-reveal[data-ps-direction="right"] {
    --ps-reveal-x: 44px;
    --ps-reveal-y: 0px;
}

body.ps-motion-ready .ps-scroll-reveal[data-ps-direction="drop"] {
    --ps-reveal-y: -52px;
    --ps-reveal-scale: .97;
}

body.ps-motion-ready .ps-scroll-reveal.is-ps-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
    will-change: auto;
}

.ps-telemetry-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: clamp(68px, 8vw, 112px);
    padding-bottom: clamp(68px, 8vw, 112px);
    background:
        radial-gradient(circle at 15% 20%, rgba(var(--ps-motion-blue), .12), transparent 34%),
        radial-gradient(circle at 88% 70%, rgba(var(--ps-motion-cyan), .08), transparent 30%),
        linear-gradient(180deg, rgba(6, 18, 43, .96), rgba(8, 24, 54, .98));
}

.ps-telemetry-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .34;
    background-image:
        linear-gradient(rgba(132, 177, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(132, 177, 255, .06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.ps-telemetry-shell {
    display: grid;
    grid-template-columns: minmax(280px, .78fr) minmax(560px, 1.22fr);
    gap: clamp(38px, 6vw, 82px);
    align-items: center;
}

.ps-telemetry-copy h2 {
    margin: 18px 0 18px;
    max-width: 14ch;
    font-size: clamp(2.25rem, 4vw, 4.2rem);
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.ps-telemetry-copy p {
    max-width: 58ch;
    line-height: 1.8;
    color: rgba(224, 234, 255, .82);
}

.ps-demo-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 10px 13px;
    border: 1px solid rgba(var(--ps-motion-blue), .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: rgba(228, 237, 255, .82);
    font-size: .78rem;
    letter-spacing: .04em;
}

.ps-demo-label i {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #72d6ff;
    box-shadow: 0 0 0 0 rgba(114, 214, 255, .34);
    animation: psTelemetryDot 2.4s ease-out infinite;
}

.ps-telemetry-panel {
    position: relative;
    padding: 18px;
    border-radius: 30px;
    border: 1px solid rgba(126, 171, 255, .13);
    background: linear-gradient(180deg, rgba(10, 30, 67, .9), rgba(5, 17, 39, .95));
    box-shadow: 0 30px 90px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.ps-telemetry-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(var(--ps-motion-blue), .2), transparent 35%, rgba(var(--ps-motion-cyan), .12));
    filter: blur(18px);
    opacity: .45;
    animation: psPanelGlow 7s ease-in-out infinite alternate;
}

.ps-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ps-telemetry-card {
    position: relative;
    min-height: 164px;
    padding: 17px;
    overflow: hidden;
    border: 1px solid rgba(126, 171, 255, .11);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .048), rgba(255, 255, 255, .022));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.ps-telemetry-card::after {
    content: "";
    position: absolute;
    inset: auto -35% -75% -35%;
    height: 140px;
    border-radius: 50%;
    background: rgba(var(--ps-motion-blue), .08);
    filter: blur(28px);
    pointer-events: none;
}

.ps-metric-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    color: rgba(233, 240, 255, .76);
    font-size: .82rem;
}

.ps-metric-head > div {
    display: grid;
    gap: 6px;
}

.ps-metric-head small {
    color: rgba(167, 194, 246, .5);
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ps-live-dot,
.ps-stream-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #9ee8c1;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ps-live-dot i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #52dc91;
    box-shadow: 0 0 0 0 rgba(82, 220, 145, .35);
    animation: psOnlinePulse 2s ease-out infinite;
}

.ps-server-orbit {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 13px auto 0;
}

.ps-server-core {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 50px;
    height: 58px;
    translate: -50% -50%;
    z-index: 3;
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 11px;
    border: 1px solid rgba(142, 204, 255, .26);
    border-radius: 13px;
    background: linear-gradient(145deg, #4c8dff, #5f78ef);
    box-shadow: 0 15px 34px rgba(56, 101, 214, .34), 0 0 28px rgba(90, 160, 255, .22);
    animation: psServerFloat 4s ease-in-out infinite;
}

.ps-server-core i {
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 0 8px rgba(255,255,255,.26);
}

.ps-server-orbit .orbit {
    position: absolute;
    inset: 50% auto auto 50%;
    border: 1px solid rgba(126, 193, 255, .15);
    border-radius: 50%;
    translate: -50% -50%;
}

.ps-server-orbit .orbit::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8dd4ff;
    box-shadow: 0 0 12px rgba(141, 212, 255, .8);
}

.ps-server-orbit .orbit-one { width: 74px; height: 74px; animation: psOrbit 5s linear infinite; }
.ps-server-orbit .orbit-two { width: 94px; height: 94px; animation: psOrbit 7.5s linear infinite reverse; }
.ps-server-orbit .orbit-three { width: 108px; height: 108px; animation: psOrbit 11s linear infinite; opacity: .65; }

.ps-metric-card strong {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 23px;
    color: #f4f7ff;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ps-metric-card strong em {
    color: rgba(158, 192, 255, .7);
    font-size: .72rem;
    font-style: normal;
    font-weight: 700;
}

.ps-mini-pulse {
    display: flex;
    align-items: end;
    gap: 5px;
    height: 36px;
    margin-top: 18px;
}

.ps-mini-pulse i {
    width: 100%;
    height: 35%;
    border-radius: 999px;
    background: linear-gradient(180deg, #84d1ff, #4c8dff);
    transform-origin: bottom;
    animation: psMiniPulse 1.8s ease-in-out infinite;
}

.ps-mini-pulse i:nth-child(2) { animation-delay: -.25s; }
.ps-mini-pulse i:nth-child(3) { animation-delay: -.5s; }
.ps-mini-pulse i:nth-child(4) { animation-delay: -.75s; }
.ps-mini-pulse i:nth-child(5) { animation-delay: -1s; }
.ps-mini-pulse i:nth-child(6) { animation-delay: -1.25s; }
.ps-mini-pulse i:nth-child(7) { animation-delay: -1.5s; }

.ps-meter {
    height: 7px;
    margin-top: 26px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
}

.ps-meter span {
    display: block;
    width: var(--meter);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4c8dff, #85d2ff);
    box-shadow: 0 0 16px rgba(98, 180, 255, .3);
    animation: psMeterBreath 3s ease-in-out infinite;
}

.ps-packet-line {
    position: relative;
    height: 34px;
    margin-top: 18px;
}

.ps-packet-line > span {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(126,193,255,.45), transparent);
}

.ps-packet-line i {
    position: absolute;
    left: -10px;
    top: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8ed5ff;
    box-shadow: 0 0 14px rgba(142, 213, 255, .8);
    animation: psPacket 2.4s linear infinite;
}

.ps-packet-line i:nth-of-type(2) { animation-delay: -.8s; }
.ps-packet-line i:nth-of-type(3) { animation-delay: -1.6s; }

.ps-stream-card {
    grid-column: 1 / -1;
    min-height: 192px;
}

.ps-stream-card .ps-metric-head small {
    display: block;
    max-width: 56ch;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
    font-size: .7rem;
}

.ps-stream-badge {
    padding: 7px 9px;
    border-radius: 999px;
    border: 1px solid rgba(82, 220, 145, .15);
    background: rgba(82, 220, 145, .06);
}

.ps-signal-bars {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 68px;
    margin-top: 18px;
}

.ps-signal-bars i {
    flex: 1 1 0;
    min-width: 3px;
    height: var(--h);
    border-radius: 999px 999px 3px 3px;
    background: linear-gradient(180deg, #8ed5ff, rgba(76,141,255,.35));
    transform-origin: bottom;
    animation: psSignal 2.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * -70ms);
    opacity: .82;
}

.ps-flow-track {
    position: relative;
    height: 24px;
    margin-top: 8px;
}

.ps-flow-track .track-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126,193,255,.38), transparent);
}

.ps-flow-track .packet {
    position: absolute;
    left: -22px;
    top: calc(50% - 3px);
    width: 18px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #91ddff);
    filter: drop-shadow(0 0 8px rgba(145, 221, 255, .75));
    animation: psStreamPacket 3.8s linear infinite;
}

.ps-flow-track .packet-two { animation-delay: -1.25s; }
.ps-flow-track .packet-three { animation-delay: -2.5s; }

@keyframes psTelemetryDot {
    0% { box-shadow: 0 0 0 0 rgba(114, 214, 255, .34); }
    70%, 100% { box-shadow: 0 0 0 10px rgba(114, 214, 255, 0); }
}

@keyframes psOnlinePulse {
    0% { box-shadow: 0 0 0 0 rgba(82, 220, 145, .35); }
    70%, 100% { box-shadow: 0 0 0 9px rgba(82, 220, 145, 0); }
}

@keyframes psPanelGlow {
    from { opacity: .3; transform: scale(.98); }
    to { opacity: .58; transform: scale(1.015); }
}

@keyframes psServerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes psOrbit { to { rotate: 360deg; } }

@keyframes psMiniPulse {
    0%, 100% { transform: scaleY(.45); opacity: .45; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes psMeterBreath {
    0%, 100% { opacity: .75; filter: saturate(.9); }
    50% { opacity: 1; filter: saturate(1.3); }
}

@keyframes psPacket { to { left: calc(100% - 8px); } }

@keyframes psSignal {
    0%, 100% { transform: scaleY(.55); opacity: .45; }
    50% { transform: scaleY(1); opacity: .95; }
}

@keyframes psStreamPacket { to { left: calc(100% + 6px); } }

@media (max-width: 1100px) {
    .ps-telemetry-shell {
        grid-template-columns: 1fr;
    }

    .ps-telemetry-copy h2 {
        max-width: 18ch;
    }
}

@media (max-width: 760px) {
    body.ps-motion-ready .ps-scroll-reveal {
        --ps-reveal-x: 0px !important;
        --ps-reveal-y: 28px !important;
        --ps-reveal-scale: .99;
        filter: blur(4px);
        transition-duration: .64s;
    }

    .ps-telemetry-section {
        padding-top: 66px;
        padding-bottom: 66px;
    }

    .ps-telemetry-shell {
        gap: 30px;
    }

    .ps-telemetry-copy h2 {
        max-width: 100%;
        font-size: clamp(2.15rem, 10vw, 3.2rem);
    }

    .ps-telemetry-panel {
        padding: 12px;
        border-radius: 24px;
    }

    .ps-telemetry-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ps-server-card {
        grid-column: 1 / -1;
    }

    .ps-telemetry-card {
        min-height: 150px;
        padding: 15px;
    }

    .ps-stream-card {
        grid-column: 1 / -1;
    }

    .ps-metric-card strong {
        font-size: 2rem;
    }

    .ps-signal-bars {
        gap: 3px;
    }
}

@media (max-width: 480px) {
    .ps-telemetry-grid {
        grid-template-columns: 1fr;
    }

    .ps-server-card,
    .ps-stream-card {
        grid-column: auto;
    }

    .ps-telemetry-card {
        min-height: 142px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.ps-motion-ready .ps-scroll-reveal {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }

    .ps-demo-label i,
    .ps-live-dot i,
    .ps-server-core,
    .ps-server-orbit .orbit,
    .ps-mini-pulse i,
    .ps-meter span,
    .ps-packet-line i,
    .ps-signal-bars i,
    .ps-flow-track .packet,
    .ps-telemetry-panel::before {
        animation: none !important;
    }
}


/* v1.1.28 — forced live telemetry animation. */
[data-tech-telemetry][data-force-motion="true"] .ps-telemetry-panel {
    overflow: hidden;
}

[data-tech-telemetry][data-force-motion="true"] .ps-telemetry-scan {
    position: absolute;
    z-index: 5;
    left: 16px;
    right: 16px;
    top: -20%;
    height: 100px;
    pointer-events: none;
    opacity: .46;
    background: linear-gradient(180deg, transparent, rgba(111, 195, 255, .12), transparent);
    filter: blur(2px);
    animation: psTelemetryScan 4.8s linear infinite !important;
}

[data-tech-telemetry][data-force-motion="true"] .ps-data-particles {
    position: absolute;
    inset: 0;
    z-index: 4;
    overflow: hidden;
    pointer-events: none;
}

[data-tech-telemetry][data-force-motion="true"] .ps-data-particles i {
    position: absolute;
    left: -14px;
    top: var(--particle-y);
    width: 10px;
    height: 3px;
    border-radius: 999px;
    opacity: .7;
    background: linear-gradient(90deg, transparent, #82d4ff);
    box-shadow: 0 0 10px rgba(130, 212, 255, .7);
    animation: psTelemetryParticle 5.6s linear infinite !important;
    animation-delay: var(--particle-delay) !important;
}

[data-tech-telemetry][data-force-motion="true"] .ps-telemetry-grid {
    position: relative;
    z-index: 6;
}

[data-tech-telemetry][data-force-motion="true"] .ps-demo-label i {
    animation: psTelemetryDot 2.4s ease-out infinite !important;
}

[data-tech-telemetry][data-force-motion="true"] .ps-live-dot i {
    animation: psOnlinePulse 2s ease-out infinite !important;
}

[data-tech-telemetry][data-force-motion="true"] .ps-server-core {
    animation: psServerFloat 3.2s ease-in-out infinite !important;
}

[data-tech-telemetry][data-force-motion="true"] .ps-server-orbit .orbit-one {
    animation: psOrbit 4.4s linear infinite !important;
}

[data-tech-telemetry][data-force-motion="true"] .ps-server-orbit .orbit-two {
    animation: psOrbit 6.8s linear infinite reverse !important;
}

[data-tech-telemetry][data-force-motion="true"] .ps-server-orbit .orbit-three {
    animation: psOrbit 9.6s linear infinite !important;
}

[data-tech-telemetry][data-force-motion="true"] .ps-mini-pulse i {
    animation: psMiniPulse 1.35s ease-in-out infinite !important;
}

[data-tech-telemetry][data-force-motion="true"] .ps-meter span {
    transition: width .7s cubic-bezier(.2,.75,.2,1);
    animation: psMeterBreath 2.5s ease-in-out infinite !important;
}

[data-tech-telemetry][data-force-motion="true"] .ps-packet-line i {
    animation: psPacket 1.9s linear infinite !important;
}

[data-tech-telemetry][data-force-motion="true"] .ps-signal-bars i {
    height: var(--live-h, var(--h));
    transition: height .72s cubic-bezier(.2,.75,.2,1);
    animation: psSignal 2.1s ease-in-out infinite !important;
    animation-delay: calc(var(--i) * -65ms) !important;
}

[data-tech-telemetry][data-force-motion="true"] .ps-flow-track .packet {
    animation: psStreamPacket 2.85s linear infinite !important;
}

[data-tech-telemetry][data-force-motion="true"] .ps-flow-track .packet-two {
    animation-delay: -.95s !important;
}

[data-tech-telemetry][data-force-motion="true"] .ps-flow-track .packet-three {
    animation-delay: -1.9s !important;
}

[data-tech-telemetry][data-force-motion="true"] .ps-telemetry-panel::before {
    animation: psPanelGlow 5.5s ease-in-out infinite alternate !important;
}

[data-tech-telemetry].ps-telemetry-live .ps-telemetry-card {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035),
        0 18px 42px rgba(0,0,0,.1);
}

[data-tech-telemetry][data-force-motion="true"] [data-live-metric] {
    display: inline-block;
    min-width: 2.5ch;
    text-shadow: 0 0 20px rgba(113, 190, 255, .2);
}

@keyframes psTelemetryScan {
    from { transform: translateY(-140%); }
    to { transform: translateY(660%); }
}

@keyframes psTelemetryParticle {
    0% { transform: translateX(0) scaleX(.5); opacity: 0; }
    12% { opacity: .75; }
    82% { opacity: .55; }
    100% { transform: translateX(780px) scaleX(1.8); opacity: 0; }
}
