/* Animated hero illustrations for the service pages. One scene per service (resources/views/partials/service-art/*). */

.svc-art { position: relative; width: 100%; max-width: 460px; margin-inline: auto; filter: drop-shadow(0 24px 40px rgba(0, 20, 15, .35)); opacity: 0; transform: translateY(14px) scale(.98); animation: svcIn .9s .35s cubic-bezier(.2,.8,.2,1) forwards; }
.svc-art svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes svcIn { to { opacity: 1; transform: none; } }

/* palette */
.f-mint { fill: #a3ffe4; } .f-green { fill: #12b886; } .f-teal { fill: #008060; } .f-white { fill: #fff; } .f-amber { fill: #ffc83d; }
.f-deep { fill: #063d35; } .f-glass { fill: rgba(255,255,255,.10); } .f-glass2 { fill: rgba(255,255,255,.18); } .f-sky { fill: #7dd3fc; } .f-rose { fill: #fda4af; } .f-orange { fill: #fdba74; }
.s-mint { stroke: #a3ffe4; } .s-white { stroke: #fff; } .s-green { stroke: #12b886; } .s-amber { stroke: #ffc83d; } .s-soft { stroke: rgba(255,255,255,.28); } .s-deep { stroke: #063d35; }
.s { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s1 { stroke-width: 1.6; } .s3 { stroke-width: 3.4; }
.o-60 { opacity: .6; } .o-40 { opacity: .4; } .o-25 { opacity: .25; }
.svc-art text { font-family: "Outfit", "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; fill: rgba(255,255,255,.75); }
.svc-art text.big { font-size: 22px; letter-spacing: 0; text-transform: none; fill: #fff; }
.svc-art text.mint { fill: #a3ffe4; }
.t-mid { text-anchor: middle; }

/* panel */
.svc-art .panel { fill: rgba(255,255,255,.06); stroke: rgba(163,255,228,.24); stroke-width: 1.5; }
.svc-art .gridline { stroke: rgba(255,255,255,.07); stroke-width: 1; }

/* motion */
.tb { transform-box: fill-box; }
.a-float { animation: svcFloat 4.5s ease-in-out infinite; }
.a-float-b { animation: svcFloat 5.5s ease-in-out -2s infinite; }
.a-bob { animation: svcBob 3s ease-in-out infinite; }
.a-grow { transform-box: fill-box; transform-origin: 50% 100%; animation: svcGrow 4s ease-in-out infinite; }
.a-growx { transform-box: fill-box; transform-origin: 0 50%; animation: svcGrowX 4s ease-in-out infinite; }
.a-draw { stroke-dasharray: var(--len, 300); stroke-dashoffset: var(--len, 300); animation: svcDraw 4s ease-in-out infinite; }
.a-pulse { transform-box: fill-box; transform-origin: center; animation: svcPulse 2.4s ease-in-out infinite; }
.a-pop { transform-box: fill-box; transform-origin: center; animation: svcPop 4s ease-in-out infinite; }
.a-flow { stroke-dasharray: 5 9; animation: svcFlow 1.1s linear infinite; }
.a-rise { transform-box: fill-box; animation: svcRise 3.2s ease-in infinite; }
.a-fall { transform-box: fill-box; animation: svcFall 2.2s ease-in infinite; }
.a-spin { transform-box: fill-box; transform-origin: center; animation: svcSpin 18s linear infinite; }
.a-sway { transform-box: fill-box; transform-origin: 50% 0; animation: svcSway 3.4s ease-in-out infinite; }
.a-blink { animation: svcBlink 2.4s ease-in-out infinite; }
.a-drive { animation: svcDrive 9s ease-in-out infinite; }
.a-driveL { animation: svcDriveL 7s linear infinite; }
.a-scan { animation: svcScan 3.6s ease-in-out infinite; }
.a-slide { animation: svcSlideOut 4s ease-in-out infinite; }
.a-flip { transform-box: fill-box; transform-origin: center; animation: svcFlip 5s ease-in-out infinite; }
.a-level { animation: svcLevel 6s ease-in-out infinite; }
.a-needle { transform-box: fill-box; transform-origin: 50% 100%; animation: svcNeedle 5s ease-in-out infinite; }
.a-stamp { transform-box: fill-box; transform-origin: center; animation: svcStamp 5s ease-in infinite; }
.a-tick { stroke-dasharray: 26; stroke-dashoffset: 26; animation: svcTick 5s ease-in-out infinite; }
.a-wheel { transform-box: fill-box; transform-origin: center; animation: svcSpin 1.4s linear infinite; }
.d1 { animation-delay: .4s; } .d2 { animation-delay: .8s; } .d3 { animation-delay: 1.2s; } .d4 { animation-delay: 1.6s; } .d5 { animation-delay: 2s; } .d6 { animation-delay: 2.4s; }

@keyframes svcFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes svcBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes svcGrow { 0%, 12% { transform: scaleY(.12); } 45%, 80% { transform: scaleY(1); } 100% { transform: scaleY(.12); } }
@keyframes svcGrowX { 0%, 12% { transform: scaleX(.1); } 45%, 80% { transform: scaleX(1); } 100% { transform: scaleX(.1); } }
@keyframes svcDraw { 0%, 8% { stroke-dashoffset: var(--len, 300); } 50%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: var(--len, 300); } }
@keyframes svcPulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes svcPop { 0%, 15% { transform: scale(0); opacity: 0; } 25%, 80% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
@keyframes svcFlow { to { stroke-dashoffset: -28; } }
@keyframes svcRise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-46px); opacity: 0; } }
@keyframes svcFall { 0% { transform: translateY(-14px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
@keyframes svcSpin { to { transform: rotate(360deg); } }
@keyframes svcSway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes svcBlink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes svcDrive { 0% { transform: translateX(-190px); } 35%, 70% { transform: translateX(0); } 100% { transform: translateX(260px); } }
@keyframes svcDriveL { 0% { transform: translateX(-130px); } 100% { transform: translateX(470px); } }
@keyframes svcScan { 0%, 100% { transform: translateY(0); opacity: 0; } 15%, 85% { opacity: 1; } 50% { transform: translateY(150px); } }
@keyframes svcSlideOut { 0%, 15% { transform: translateX(0); opacity: 0; } 30% { opacity: 1; } 70%, 100% { transform: translateX(46px); opacity: 1; } 95% { opacity: 0; } }
@keyframes svcFlip { 0%, 40% { transform: scaleX(1); } 50% { transform: scaleX(.05); } 60%, 100% { transform: scaleX(1); } }
@keyframes svcLevel { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-34px); } }
@keyframes svcNeedle { 0%, 100% { transform: rotate(-38deg); } 50% { transform: rotate(32deg); } }
@keyframes svcStamp { 0%, 55% { transform: scale(2.2) rotate(-14deg); opacity: 0; } 65% { transform: scale(1) rotate(-14deg); opacity: 1; } 90% { opacity: 1; } 100% { transform: scale(1) rotate(-14deg); opacity: 0; } }
@keyframes svcTick { 0%, 20% { stroke-dashoffset: 26; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 26; } }

/* placement per template family */
.svc-art--sv2 { margin-top: 38px; max-width: 520px; }
.svc-art--sv3 { margin: 0 0 22px; max-width: 100%; }
.svc-art--sd { max-width: 440px; margin: 0 auto; }
.sd-hero-visual .svc-art ~ .sd-hero-icon-wrap { display: none; }
.svc-art--sv4 { margin-top: 34px; }
@media (min-width: 1100px) {
    .sv4-hero-wrap { position: relative; }
    .svc-art--sv4 { position: absolute; right: 0; top: 50%; width: 40%; max-width: 440px; margin: 0; transform: translateY(-46%); animation-name: svcIn4; }
    .sv4-hero-wrap .sv4-hero-h1, .sv4-hero-wrap .sv4-hero-sub { max-width: 56%; }
}
@keyframes svcIn4 { from { opacity: 0; transform: translateY(-42%); } to { opacity: 1; transform: translateY(-46%); } }

@media (prefers-reduced-motion: reduce) {
    .svc-art { animation: none; opacity: 1; transform: none; }
    .svc-art *, .svc-art *::before { animation: none !important; }
    .a-draw, .a-tick { stroke-dashoffset: 0; }
    .a-grow, .a-growx { transform: none; }
}

/* extra scene motion */
.a-print { animation: svcPrint 6s ease-in-out infinite; }
.a-cash { animation: svcCash 4s ease-in-out infinite; }
.a-sweep { animation: svcSweep 6s ease-in-out infinite; }
.a-swipe { animation: svcSwipe 4.5s ease-in-out infinite; }
.a-fade { animation: svcFadeAway 5s ease-in-out infinite; }
@keyframes svcPrint { 0%, 8% { transform: translateY(-130px); } 45%, 85% { transform: translateY(0); } 100% { transform: translateY(-130px); } }
@keyframes svcCash { 0%, 10% { transform: translateY(-34px); opacity: 0; } 30% { opacity: 1; } 65%, 80% { transform: translateY(14px); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes svcSweep { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(170px); } }
@keyframes svcSwipe { 0%, 10% { transform: translateY(-40px); } 50%, 70% { transform: translateY(28px); } 100% { transform: translateY(-40px); } }
@keyframes svcFadeAway { 0%, 30% { transform: translate(0, 0); opacity: 1; } 60% { transform: translate(34px, 26px) rotate(14deg); opacity: 0; } 100% { transform: translate(0, 0); opacity: 0; } 85% { opacity: 0; } }

/* sv3: the theme hides the metrics column, so the art takes its place */
.sv3-hero-layout:has(> .svc-art) { grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); align-items: center; }
.sv3-hero-layout > .svc-art { margin: 0; }
@media (max-width: 980px) { .sv3-hero-layout:has(> .svc-art) { grid-template-columns: 1fr; } .sv3-hero-layout > .svc-art { max-width: 420px; margin: 8px auto 0; } }

/* sv4: give the headline and the art room side by side */
@media (min-width: 1100px) {
    .sv4-hero-wrap:has(> .svc-art) { max-width: none; }
    .sv4-hero-wrap:has(> .svc-art) .sv4-hero-h1, .sv4-hero-wrap:has(> .svc-art) .sv4-hero-sub { max-width: 58%; }
    .svc-art--sv4 { width: 38%; }
}

/* the green theme forces the sv3 hero to one column; with art present use two */
@media (min-width: 981px) {
    html:root body .sv3-hero .sv3-hero-layout:has(> .svc-art) { grid-template-columns: minmax(0, 1fr) minmax(300px, 440px) !important; align-items: center; }
}
.svc-art--sv2 { max-width: 460px; }

/* ==========================================================================
   One signature movement per service. The wrapper carries .svc-art--{slug}, and each block below swaps the
   shared float / grow / pulse motion for its own. Only animation-name / duration / timing are set here
   so the .d1-.d6 delays keep working.
   ========================================================================== */
.a-belt { transform-box: fill-box; animation: svcBelt 6s linear infinite; }
@keyframes svcBelt { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 78% { opacity: 1; } 100% { transform: translateX(176px); opacity: 0; } }

/* bank loan: coins drop onto the stack one at a time */
.svc-art--bank-loan-financing-support .a-float-b { transform-box: fill-box; animation-name: svcCoinDrop; animation-duration: 4.2s; animation-timing-function: ease-in; }
@keyframes svcCoinDrop { 0% { transform: translateY(-36px); opacity: 0; } 18% { opacity: 1; } 32% { transform: translateY(0); } 38% { transform: translateY(-7px); } 46%, 88% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }

/* BSA/AML: the shield beats like a heartbeat */
.svc-art--bsa-aml-aware-bookkeeping .a-float { transform-box: fill-box; transform-origin: center; animation-name: svcBeat; animation-duration: 2.8s; }
@keyframes svcBeat { 0%, 60%, 100% { transform: scale(1); } 12% { transform: scale(1.08); } 24% { transform: scale(1); } 36% { transform: scale(1.05); } }

/* category margin: bars spring up past their height, then settle */
.svc-art--category-level-merchandise-margin .a-grow { animation-name: svcSpring; animation-duration: 4.6s; animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
@keyframes svcSpring { 0%, 6% { transform: scaleY(.05); } 30% { transform: scaleY(1.1); } 38%, 86% { transform: scaleY(1); } 100% { transform: scaleY(.05); } }

/* franchise fees: the coin stack tips side to side */
.svc-art--food-service-franchise-fee-accounting .a-float { transform-box: fill-box; transform-origin: 50% 100%; animation-name: svcTilt; animation-duration: 3.8s; }
@keyframes svcTilt { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }

/* fuel excise tax: the pump shudders as it fills, the due date wiggles */
.svc-art--fuel-excise-motor-fuel-tax .a-float { animation-name: svcRumble; animation-duration: 1.1s; animation-timing-function: linear; }
.svc-art--fuel-excise-motor-fuel-tax .a-pulse { transform-box: fill-box; transform-origin: center; animation-name: svcWiggle; animation-duration: 1.8s; }
@keyframes svcRumble { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(1.6px, -.8px); } 50% { transform: translate(-1.4px, .6px); } 75% { transform: translate(1.2px, .8px); } }
@keyframes svcWiggle { 0%, 100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-14deg) scale(1.15); } 40% { transform: rotate(12deg) scale(1.15); } 60% { transform: rotate(-6deg) scale(1.05); } }

/* fuel vs store: the two margin bars work like a seesaw */
.svc-art--fuel-vs-merch-margin .a-grow { animation-name: svcTeeterA; animation-duration: 5s; animation-timing-function: ease-in-out; }
.svc-art--fuel-vs-merch-margin .a-grow.d3 { animation-name: svcTeeterB; }
.svc-art--fuel-vs-merch-margin .a-float, .svc-art--fuel-vs-merch-margin .a-float-b { animation-name: svcDrift; animation-duration: 6.5s; }
@keyframes svcTeeterA { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.5); } }
@keyframes svcTeeterB { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
@keyframes svcDrift { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(7px, -8px); } 66% { transform: translate(-5px, -3px); } }

/* entity tax: ownership boxes light up in a cascade down the chart; the connector lines run downward */
.svc-art--gas-station-entity-tax .a-pulse { animation-name: svcCascade; animation-duration: 3.2s; }
.svc-art--gas-station-entity-tax .a-flow { animation-direction: reverse; animation-duration: 1.8s; }
@keyframes svcCascade { 0%, 100% { transform: translateY(0); opacity: .6; } 30% { transform: translateY(-5px); opacity: 1; } 60% { transform: translateY(0); opacity: .85; } }

/* gift cards: the amount still owed drains as cards are redeemed */
.svc-art--gift-card-voucher-accounting .a-growx { animation-name: svcDrain; animation-duration: 4.4s; }
@keyframes svcDrain { 0%, 12% { transform: scaleX(1); } 55%, 80% { transform: scaleX(.38); } 100% { transform: scaleX(1); } }

/* prepared food: the cloche lifts off, the cost bars slide in from the left */
.svc-art--prepared-food-deli-accounting .a-float { transform-box: fill-box; transform-origin: 0 100%; animation-name: svcLift; animation-duration: 4.2s; }
.svc-art--prepared-food-deli-accounting .a-growx { animation-name: svcSlideIn; animation-duration: 4.2s; }
@keyframes svcLift { 0%, 100% { transform: translateY(0) rotate(0); } 35%, 65% { transform: translateY(-12px) rotate(-7deg); } }
@keyframes svcSlideIn { 0%, 10% { transform: translateX(-30px); opacity: 0; } 35%, 82% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(14px); opacity: 0; } }

/* jobber statements: matched lines flow the other way, faster */
.svc-art--jobber-statement-reconciliation .a-flow { animation-direction: reverse; animation-duration: .8s; }

/* lottery, ATM and money orders: the ticket flutters like it just came off the printer */
.svc-art--lottery-atm-money-order-accounting .a-float { transform-box: fill-box; transform-origin: 50% 0; animation-name: svcFlutter; animation-duration: 2.6s; }
@keyframes svcFlutter { 0%, 100% { transform: rotate(-6deg) translateY(0); } 25% { transform: rotate(5deg) translateY(-6px); } 50% { transform: rotate(-3deg) translateY(2px); } 75% { transform: rotate(6deg) translateY(-4px); } }

/* sales tax: the cart rolls back and forth, rate badges drop in from above */
.svc-art--multi-category-sales-tax .a-float { transform-box: fill-box; transform-origin: 50% 100%; animation-name: svcRoll; animation-duration: 5.2s; }
.svc-art--multi-category-sales-tax .a-pop { animation-name: svcBadgeDrop; animation-duration: 4.4s; }
@keyframes svcRoll { 0%, 100% { transform: translateX(-12px) rotate(-3deg); } 50% { transform: translateX(12px) rotate(3deg); } }
@keyframes svcBadgeDrop { 0%, 12% { transform: translateY(-30px) scale(.6); opacity: 0; } 24% { transform: translateY(4px) scale(1.05); opacity: 1; } 32%, 82% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 0; } }

/* multi-location: bars slide up into the roll-up, each site flashes as it reports in */
.svc-art--multi-location-consolidation .a-grow { animation-name: svcRiseIn; animation-duration: 4.4s; animation-timing-function: ease-out; }
.svc-art--multi-location-consolidation .a-bob { transform-box: fill-box; transform-origin: center; animation-name: svcReport; animation-duration: 3.6s; }
.svc-art--multi-location-consolidation .a-flow { animation-duration: 1.9s; }
@keyframes svcRiseIn { 0%, 8% { transform: translateY(46px); opacity: 0; } 40%, 85% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes svcReport { 0%, 55%, 100% { transform: scale(1); } 68% { transform: scale(1.1); } 80% { transform: scale(1); } }

/* multi-stream: source dots blip on in turn, the ledger bars bounce like an equalizer */
.svc-art--multi-stream-revenue-tracking .a-pulse { animation-name: svcBlip; animation-duration: 2.6s; }
.svc-art--multi-stream-revenue-tracking .a-grow { animation-name: svcEq; animation-duration: 1.7s; animation-timing-function: ease-in-out; }
.svc-art--multi-stream-revenue-tracking .a-flow { animation-duration: .7s; }
@keyframes svcBlip { 0%, 100% { transform: scale(.82); opacity: .3; } 40% { transform: scale(1.15); opacity: 1; } 70% { transform: scale(1); opacity: .8; } }
@keyframes svcEq { 0%, 100% { transform: scaleY(.3); } 25% { transform: scaleY(1); } 50% { transform: scaleY(.55); } 75% { transform: scaleY(.9); } }

/* POS reconciliation: the match check pings outward like a sonar, the connector crawls */
.svc-art--pos-daily-sales-reconciliation .a-pulse { animation-name: svcPing; animation-duration: 2s; }
.svc-art--pos-daily-sales-reconciliation .a-flow { animation-duration: 2.6s; }
@keyframes svcPing { 0% { transform: scale(.9); opacity: 1; } 70%, 100% { transform: scale(1.35); opacity: .35; } }

/* SNAP/EBT: the coin stack hops, the benefit cash shuttles across */
.svc-art--snap-ebt-income .a-float { transform-box: fill-box; transform-origin: 50% 100%; animation-name: svcHop; animation-duration: 2.2s; }
.svc-art--snap-ebt-income .a-float-b { animation-name: svcShuttle; animation-duration: 4.8s; }
.svc-art--snap-ebt-income .a-flow { animation-duration: .9s; }
@keyframes svcHop { 0%, 55%, 100% { transform: translateY(0) scaleY(1); } 20% { transform: translateY(-16px) scaleY(1.06); } 38% { transform: translateY(0) scaleY(.92); } }
@keyframes svcShuttle { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(10px); } }

/* store acquisition: the magnifier and key swing like a pendulum */
.svc-art--store-acquisition-disposal-support .a-float { transform-box: fill-box; transform-origin: 50% 0; animation-name: svcPendulum; animation-duration: 4s; }
@keyframes svcPendulum { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
