/* Six visual explanations, animated on every screen size. */
.service-scene .service-pair { display: block; padding: 36px 0 48px; }
.service-scene .service-pair-label { flex-direction: row; align-items: center; gap: 14px; margin-bottom: 28px; }
.service-scene .pair-rule { margin: 0 0 0 16px; flex: 1; max-width: 96px; }
.service-scene .service-pair-articles { gap: 44px; }
.service-scene .project-card { gap: 16px; }
.service-scene .project-card h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); max-width: 29ch; }
.service-scene .project-card p { max-width: 60ch; }
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -12px 0 24px; color: #a9c0b2; font-size: .72rem; }
.demo-toolbar > span { display: inline-flex; align-items: center; gap: 10px; }
.demo-toolbar > span::before { content: ''; width: 5px; height: 5px; background: #d7a28c; }
.demo-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 14px; background: transparent; color: #d2e4d3; border: 1px solid #a4c9b144; border-radius: 2px; font: inherit; cursor: pointer; }
.demo-toggle:hover, .demo-toggle:focus-visible { background: #b7d9b316; border-color: #a4c9b1; }
.demo-toggle[hidden] { display: none; }
.demo-toggle[aria-pressed="true"] { color: #edc2a8; }
.service-demo { --demo-accent: #b8e7b8; --demo-soft: #759f8b; --demo-paper: #142e25; --demo-warm: #e8af95; position: relative; margin: 0 0 12px; color: var(--demo-accent); border: 1px solid #a3c8b431; background: radial-gradient(ellipse at 55% 60%, #2d5a4238, transparent 65%), #10231e; isolation: isolate; }
.demo-market { background: radial-gradient(ellipse at 60% 50%, #32676c35, transparent 70%), #102326; --demo-accent: #ade0d5; --demo-soft: #74a49e; --demo-paper: #152f30; }
.demo-finance, .demo-design { background: #e0e5d5; --demo-accent: #315d42; --demo-soft: #75957a; --demo-paper: #edf0e3; --demo-warm: #a5684b; border-color: #e0e5d5; }
.demo-simulation { background: radial-gradient(ellipse at 60% 60%, #66505030, transparent 70%), #1b2525; --demo-accent: #dccbad; --demo-soft: #8d9a8a; --demo-paper: #263430; }
.demo-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 18px 22px 0; font: .66rem/1.5 'Inter', sans-serif; letter-spacing: .03em; }
.demo-running { display: flex; align-items: center; gap: 3px; height: 13px; }
.demo-running i { width: 2px; height: 5px; background: currentColor; animation: demo-meter 1.2s ease-in-out infinite alternate; }
.demo-running i:nth-child(2) { animation-delay: -.4s; height: 11px; }
.demo-running i:nth-child(3) { animation-delay: -.8s; height: 8px; }
.demo-stage { padding: 4px 8px 0; overflow: hidden; }
.demo-stage svg { display: block; width: 100%; height: auto; aspect-ratio: 480 / 260; overflow: visible; }
.demo-stage path, .demo-stage rect, .demo-stage circle { stroke-linecap: round; stroke-linejoin: round; }
.demo-flow { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 17px 22px; border-top: 1px solid #86a68a44; font-size: .65rem; line-height: 1.5; }
.demo-flow > span:not(.flow-arrow) { max-width: 30%; }
.flow-arrow { color: var(--demo-soft); }
.demo-wire { stroke: var(--demo-soft); stroke-width: 1; opacity: .5; }
.demo-route { stroke: var(--demo-accent); stroke-width: 1.2; stroke-dasharray: 5 12; animation: demo-route 3s linear infinite; opacity: .65; }
.demo-source rect, .demo-processor rect, .demo-output rect { fill: var(--demo-paper); stroke: var(--demo-soft); stroke-width: 1; }
.demo-source path { stroke: var(--demo-accent); stroke-width: 1.5; }
.demo-processor path { stroke: var(--demo-accent); stroke-width: 2; }
.demo-processor circle { fill: var(--demo-warm); }
.demo-packet { fill: var(--demo-warm); filter: drop-shadow(0 0 5px #dab69d70); }
.live-packet-one { animation: live-flow-one 5s linear infinite; }
.live-packet-two { animation: live-flow-two 5s linear -1.7s infinite; }
.live-packet-three { animation: live-flow-three 5s linear -3.3s infinite; }
.processor-ring { stroke: var(--demo-accent); opacity: .38; transform-origin: 224px 130px; animation: demo-turn 24s linear infinite; }
.demo-output path { stroke: var(--demo-accent); stroke-width: 1.7; }
.demo-output circle { fill: var(--demo-warm); }
.output-one, .output-two, .output-three { animation: demo-output 5s ease-in-out infinite; }
.output-two { animation-delay: -1.7s; }.output-three { animation-delay: -3.3s; }
.market-frame rect { fill: var(--demo-paper); fill-opacity: .5; stroke: var(--demo-soft); }
.market-frame path { stroke: var(--demo-soft); opacity: .4; }.market-frame circle { fill: var(--demo-warm); }
.demo-candle { animation: candle-build 6s ease-in-out calc(var(--i) * -.35s) infinite; }
.demo-candle path { stroke: var(--demo-accent); opacity: .8; }
.demo-candle rect { fill: var(--demo-accent); }
.demo-candle:nth-child(3n) rect { fill: var(--demo-warm); }
.market-comparison { stroke: var(--demo-warm); stroke-width: 2; stroke-dasharray: 1; animation: demo-draw 6s ease-in-out infinite; }
.market-scan { animation: market-scan 6s ease-in-out infinite; }
.market-scan path { stroke: var(--demo-accent); opacity: .45; stroke-dasharray: 3 4; }
.market-scan circle, .market-scan rect { fill: var(--demo-accent); }
.market-indicator rect { fill: var(--demo-paper); stroke: var(--demo-soft); }.market-indicator path { stroke: var(--demo-accent); }
.finance-inputs path { opacity: .5; }.finance-slider { fill: var(--demo-accent); stroke: var(--demo-paper); stroke-width: 3; }
.slider-one { animation: finance-slider-one 7s ease-in-out infinite; }.slider-two { animation: finance-slider-two 7s ease-in-out infinite; }.slider-three { animation: finance-slider-three 7s ease-in-out infinite; }
.finance-options > rect:first-child { fill: var(--demo-paper); stroke: var(--demo-soft); }.finance-options path { stroke: var(--demo-soft); opacity: .45; }
.finance-options text { fill: var(--demo-accent); font: 11px monospace; }
.finance-bar { fill: var(--demo-accent); transform-origin: 272px 0; animation: finance-bars 7s ease-in-out infinite; }
.bar-a { opacity: .5; }.bar-b { animation-delay: -.9s; }.bar-c { opacity: .3; animation-delay: -1.6s; }
.finance-choice { stroke: var(--demo-warm); stroke-width: 2.5; animation: finance-choice 7s ease-in-out infinite; }
.data-cell { fill: var(--demo-soft); opacity: .55; animation: analytics-cell 5s ease-in-out calc(var(--i) * -.23s) infinite; }
.data-cell:nth-child(3n) { fill: var(--demo-warm); }
.analytics-orbit { stroke: var(--demo-accent); transform-origin: 193px 130px; animation: demo-turn 12s linear infinite; }
.analytics-filter { fill: var(--demo-paper); stroke: var(--demo-accent); stroke-width: 1.5; }
.analytics-packet { animation: analytics-flow 4s linear infinite; }
.analytics-dashboard > rect { fill: var(--demo-paper); stroke: var(--demo-soft); }.analytics-dashboard > path:not(.analytics-line) { stroke: var(--demo-soft); opacity: .4; }
.analytics-donut circle { stroke: var(--demo-soft); stroke-width: 8; opacity: .3; }
.analytics-donut .donut-value { stroke: var(--demo-accent); opacity: 1; transform-origin: 292px 112px; transform: rotate(-90deg); animation: donut-build 7s ease-in-out infinite; }
.analytics-bars rect { fill: var(--demo-accent); transform-origin: 0 139px; animation: analytics-bar 7s ease-in-out infinite; }
.analytics-bars rect:nth-child(2) { animation-delay: -.4s; }.analytics-bars rect:nth-child(3) { animation-delay: -.8s; }.analytics-bars rect:nth-child(4) { animation-delay: -1.2s; }
.analytics-line { stroke: var(--demo-warm); stroke-width: 2; stroke-dasharray: 1; animation: demo-draw 7s ease-in-out infinite; }
.simulation-grid { stroke: var(--demo-soft); opacity: .12; }
.simulation-path { stroke: var(--demo-accent); stroke-width: 2; animation: simulation-route 8s ease-in-out infinite; }.path-lower { animation-delay: -4s; }
.simulation-node rect { fill: var(--demo-paper); stroke: var(--demo-soft); }.simulation-node path, .simulation-node circle { stroke: var(--demo-accent); stroke-width: 1.5; }
.branch-upper { animation: simulation-node 8s ease-in-out infinite; }.branch-lower { animation: simulation-node 8s ease-in-out -4s infinite; }.branch-middle { opacity: .5; }
.simulation-packet { animation: simulation-flow 8s linear infinite; }
.simulation-result circle:first-child { fill: var(--demo-paper); stroke: var(--demo-soft); }.simulation-result path { stroke: var(--demo-accent); stroke-width: 2; }
.simulation-ripple { stroke: var(--demo-warm); transform-origin: 402px 130px; animation: simulation-ripple 4s ease-out infinite; }
.design-wireframe { stroke: var(--demo-soft); stroke-width: 1; opacity: .65; }.design-wireframe > rect { fill: var(--demo-paper); }
.design-transfer { stroke: var(--demo-accent); stroke-width: 1.5; animation: design-transfer 7s ease-in-out infinite; }
.design-browser > rect { fill: var(--demo-paper); stroke: var(--demo-soft); }.design-browser > path, .design-browser > circle { stroke: var(--demo-soft); }
.design-browser .design-hero { fill: #345b45; stroke: none; animation: design-reveal 7s ease-in-out infinite; transform-origin: 241px 75px; }
.design-orb { fill: #b8ca9c; animation: design-orb 7s ease-in-out infinite; transform-origin: 397px 115px; }
.design-browser .design-headline { stroke: #e4ebd6; stroke-width: 4; }
.design-browser .design-tile { fill: #b4c2a8; stroke: none; animation: design-tile 7s ease-in-out infinite; }.design-browser .tile-two { animation-delay: -.3s; }.design-browser .tile-three { animation-delay: -.6s; }
.design-phone { animation: design-phone 7s ease-in-out infinite; }.design-phone > rect:first-child { fill: var(--demo-paper); stroke: var(--demo-accent); stroke-width: 1.5; }.design-phone path { stroke: var(--demo-accent); stroke-width: 2; }.design-phone rect:nth-of-type(2) { fill: #345b45; }

/* Stop clocks only offscreen, in a hidden tab, or at the visitor's request. */
[data-service-demo] *, [data-service-demo] *::before, [data-service-demo] *::after { animation-play-state: paused; }
[data-service-demo][data-running="true"] *, [data-service-demo][data-running="true"] *::before, [data-service-demo][data-running="true"] *::after { animation-play-state: running; }
@keyframes demo-meter { to { transform: scaleY(.4); opacity: .4; } }
@keyframes demo-route { to { stroke-dashoffset: -68; } }
@keyframes demo-turn { to { transform: rotate(360deg); } }
@keyframes demo-output { 0%, 55%, 100% { opacity: .65; } 70%, 85% { opacity: 1; } }
@keyframes live-flow-one { 0% { transform: translate(70px,64px); opacity: 0; } 8% { opacity: 1; } 20% { transform: translate(122px,64px); } 42% { transform: translate(180px,130px); } 65% { transform: translate(295px,130px); } 78% { transform: translate(322px,78px); } 94% { opacity: 1; } 100% { transform: translate(422px,78px); opacity: 0; } }
@keyframes live-flow-two { 0% { transform: translate(70px,130px); opacity: 0; } 8% { opacity: 1; } 42% { transform: translate(180px,130px); } 94% { opacity: 1; } 100% { transform: translate(422px,130px); opacity: 0; } }
@keyframes live-flow-three { 0% { transform: translate(70px,196px); opacity: 0; } 8% { opacity: 1; } 20% { transform: translate(122px,196px); } 42% { transform: translate(180px,130px); } 65% { transform: translate(295px,130px); } 78% { transform: translate(322px,182px); } 94% { opacity: 1; } 100% { transform: translate(422px,182px); opacity: 0; } }
@keyframes candle-build { 0%,100% { transform: scaleY(.65); opacity: .6; } 40%,70% { transform: scaleY(1); opacity: 1; } }
@keyframes demo-draw { 0%,100% { stroke-dashoffset: .85; opacity: .4; } 50%,85% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes market-scan { 0%,100% { transform: translateX(68px); } 85% { transform: translateX(421px); } }
@keyframes finance-slider-one { 0%,100% { transform: translateX(0); } 45%,70% { transform: translateX(54px); } }
@keyframes finance-slider-two { 0%,100% { transform: translateX(0); } 45%,70% { transform: translateX(-42px); } }
@keyframes finance-slider-three { 0%,100% { transform: translateX(0); } 45%,70% { transform: translateX(23px); } }
@keyframes finance-bars { 0%,100% { transform: scaleX(.5); } 45%,70% { transform: scaleX(1); } }
@keyframes finance-choice { 0%,35%,100% { opacity: 0; } 55%,80% { opacity: 1; } }
@keyframes analytics-cell { 0%,100% { opacity: .25; transform: translateX(-3px); } 45%,65% { opacity: .95; transform: translateX(3px); } }
@keyframes analytics-flow { 0% { transform: translate(130px,64px); opacity: 0; } 10% { opacity: 1; } 55% { transform: translate(183px,130px); } 85% { opacity: 1; } 100% { transform: translate(247px,130px); opacity: 0; } }
@keyframes donut-build { 0%,100% { stroke-dasharray: 25 75; } 50%,80% { stroke-dasharray: 78 22; } }
@keyframes analytics-bar { 0%,100% { transform: scaleY(.45); } 50%,80% { transform: scaleY(1); } }
@keyframes simulation-route { 0%,48%,100% { opacity: .15; } 10%,40% { opacity: 1; } 50%,98% { opacity: .15; } }
@keyframes simulation-node { 0%,50%,100% { opacity: .5; } 15%,40% { opacity: 1; } }
@keyframes simulation-flow { 0%,50% { transform: translate(77px,130px); opacity: 0; } 3%,53% { opacity: 1; } 10%,60% { transform: translate(155px,130px); } 20% { transform: translate(220px,68px); } 33% { transform: translate(307px,68px); } 46% { transform: translate(398px,130px); opacity: 1; } 49% { transform: translate(398px,130px); opacity: 0; } 70% { transform: translate(220px,192px); } 83% { transform: translate(307px,192px); } 96% { transform: translate(398px,130px); opacity: 1; } 100% { transform: translate(398px,130px); opacity: 0; } }
@keyframes simulation-ripple { 0%,70% { transform: scale(.8); opacity: 0; } 75% { opacity: .8; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes design-transfer { 0%,100% { opacity: .4; transform: translateX(-4px); } 40%,70% { opacity: 1; transform: translateX(4px); } }
@keyframes design-reveal { 0%,100% { transform: scaleX(.7); opacity: .4; } 40%,80% { transform: scaleX(1); opacity: 1; } }
@keyframes design-orb { 0%,100% { transform: scale(.5); opacity: .3; } 50%,80% { transform: scale(1); opacity: .9; } }
@keyframes design-tile { 0%,100% { transform: translateY(8px); opacity: .25; } 45%,80% { transform: translateY(0); opacity: 1; } }
@keyframes design-phone { 0%,25%,100% { transform: translate(18px,8px); opacity: 0; } 45%,80% { transform: translate(0,0); opacity: 1; } }
@media (max-width: 1100px) { .service-scene .service-pair-articles { gap: 28px; } .demo-heading { padding: 16px 16px 0; } .demo-flow { padding: 14px 16px; font-size: .6rem; } }
@media (max-width: 760px) { .service-scene .service-pair-articles { grid-template-columns: 1fr; gap: 44px; } .service-scene .project-card h3 { max-width: 34ch; font-size: 1.5rem; } .demo-flow { font-size: .68rem; } }
@media (max-width: 400px) { .demo-flow { padding-inline: 12px; font-size: .59rem; gap: 6px; } .demo-heading { padding-inline: 12px; font-size: .61rem; } .demo-toolbar { font-size: .65rem; gap: 12px; } .demo-toggle { padding-inline: 10px; max-width: 52%; } }
@media (prefers-reduced-motion: reduce) {
    [data-service-demo] *, [data-service-demo] *::before, [data-service-demo] *::after { animation: none !important; }
    .demo-packet, .simulation-ripple { visibility: hidden; }
    .market-scan { transform: translateX(296px); }
}
