/* Services hero art (template-parts/landing/scenes/services.php).
 * One 11s loop: the comet drives the road from 4% to 80% of the loop, each
 * stop lights up when it is reached (lx-route-s1..s6 hold the exact moments,
 * taken from the path length) and the growth card lights up at 80%.
 * Sizes are cqi of .lx-route. Keep this file ASCII.
 */

@property --lx-lit { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --lx-hit { syntax: "<number>"; inherits: true; initial-value: 0; }

.lx-page-hero.is-services .lx-page-hero-art { display: grid; place-items: center; }

.lx-route { --px: 0; --py: 0; position: relative; isolation: isolate; width: min(100%, 540px); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; user-select: none; }
:where(.lx-route) :where(span, b, i) { display: block; font-style: normal; }
.lx-route .lx-page-ring { width: 94%; }
.lx-route-grid { position: absolute; inset: 2%; z-index: 0; background: radial-gradient(circle, color-mix(in srgb, var(--t4-blue) 34%, transparent) 0 .17cqi, transparent .3cqi) 0 0 / 4cqi 4cqi; opacity: .75; -webkit-mask: radial-gradient(closest-side, #000 35%, transparent); mask: radial-gradient(closest-side, #000 35%, transparent); pointer-events: none; }
.lx-route-glow { position: absolute; inset: 14% 10%; z-index: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--t4-teal) 22%, transparent), color-mix(in srgb, var(--t4-blue) 12%, transparent) 46%, transparent 70%); filter: blur(10px); pointer-events: none; }

/* Road */
.lx-route-map { position: absolute; inset: 0; z-index: 2; }
.lx-route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lx-route-svg .is-teal { stop-color: var(--t4-teal); }
.lx-route-svg .is-blue { stop-color: var(--t4-blue); }
.lx-route-svg path { stroke-linecap: round; stroke-linejoin: round; }
.lx-route-edge { stroke: color-mix(in srgb, var(--t4-blue) 22%, var(--t4-line)); stroke-width: 5.4; }
.lx-route-road { stroke: var(--t4-surface); stroke-width: 4.5; }
.lx-route-lane { stroke: color-mix(in srgb, var(--t4-blue) 30%, transparent); stroke-width: .34; stroke-dasharray: 1.1 1.5; }
.lx-route-paint { stroke: url(#lxRoutePaint); stroke-width: 1.6; stroke-dasharray: 100 100; stroke-dashoffset: 0; }
.lx-route-tail { stroke: #fff; stroke-width: 1.6; stroke-dasharray: 9 191; stroke-dashoffset: -91; opacity: 0; }
.lx-route-head { stroke: var(--t4-teal); stroke-width: 3.8; stroke-dasharray: .01 199.99; stroke-dashoffset: -100; opacity: 0; }
.lx-route-head.is-core { stroke: #fff; stroke-width: 1.7; }

/* Start: the brand tile */
.lx-route-start { position: absolute; top: 91%; left: 90%; z-index: 3; display: grid; place-items: center; width: 9.6cqi; height: 9.6cqi; translate: -50% -50%; border-radius: 3cqi; background: radial-gradient(circle at 30% 24%, #1b93d1, var(--t4-blue) 58%, #05527d); color: #fff; box-shadow: 0 1.8cqi 3.2cqi -1.6cqi color-mix(in srgb, var(--t4-blue) 85%, transparent), inset 0 0 0 .5cqi rgb(255 255 255 / 12%); }
.lx-route-start :is(svg, img) { width: 54%; height: auto; color: #fff; }
.lx-route-start::after { content: ""; position: absolute; inset: -1.2cqi; border: .4cqi solid var(--t4-blue); border-radius: 4cqi; opacity: 0; pointer-events: none; }

/* Stops */
.lx-route-stop { position: absolute; top: calc(var(--y) * 1%); left: calc(var(--x) * 1%); z-index: 3; width: 0; height: 0; }
.lx-route-badge { position: absolute; top: 0; left: 0; width: 10.6cqi; height: 10.6cqi; translate: -50% -50%; scale: calc(1 + var(--lx-hit) * .16); border-radius: 50%; background: var(--t4-surface); box-shadow: 0 0 0 1px var(--t4-line), 0 1.6cqi 3cqi -1.6cqi rgb(16 46 60 / 38%), 0 0 0 calc(var(--lx-lit) * 1cqi) color-mix(in srgb, var(--t4-teal) 15%, transparent); }
.lx-route-badge::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #1b93d1, var(--t4-blue) 58%, #05527d); opacity: var(--lx-lit); }
.lx-route-badge::after { content: ""; position: absolute; inset: -.8cqi; border: .45cqi solid var(--t4-teal); border-radius: 50%; opacity: var(--lx-hit); scale: calc(2 - var(--lx-hit)); pointer-events: none; }
.lx-route-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; color: color-mix(in srgb, #fff calc(var(--lx-lit) * 100%), var(--t4-blue)); }
.lx-route-icon svg { width: 46%; height: 46%; }
.lx-route-check { position: absolute; z-index: 2; top: -.5cqi; right: -.5cqi; width: 3.8cqi; height: 3.8cqi; border: .45cqi solid var(--t4-surface); border-radius: 50%; background: var(--t4-teal); scale: var(--lx-lit); }
.lx-route-check::after { content: ""; position: absolute; top: .55cqi; left: 1cqi; width: .8cqi; height: 1.45cqi; border: solid #fff; border-width: 0 .38cqi .38cqi 0; rotate: 45deg; }
.lx-route-label { position: absolute; top: 6.6cqi; left: 0; translate: -50% 0; padding: .4cqi 1.6cqi .55cqi; border: 1px solid color-mix(in srgb, var(--t4-blue) calc(var(--lx-lit) * 30%), var(--t4-line)); border-radius: 99px; background: color-mix(in srgb, var(--t4-surface) 94%, transparent); box-shadow: 0 1cqi 2cqi -1.4cqi rgb(16 46 60 / 30%); color: color-mix(in srgb, var(--t4-ink) calc(45% + var(--lx-lit) * 55%), var(--t4-muted)); font-size: clamp(9.5px, 2.25cqi, 12.5px); font-weight: 800; line-height: 1.6; white-space: nowrap; }

/* Goal card */
.lx-route-goal { position: absolute; top: 0; left: 0; z-index: 4; width: 39cqi; padding: 2cqi 2.2cqi 1.4cqi; border: 1px solid color-mix(in srgb, var(--t4-blue) calc(var(--lx-lit) * 38%), var(--t4-line)); border-radius: 3.8cqi; background: color-mix(in srgb, var(--t4-surface) 94%, transparent); box-shadow: var(--lx-lift), 0 0 0 calc(var(--lx-lit) * .9cqi) color-mix(in srgb, var(--t4-teal) 13%, transparent); scale: calc(1 + var(--lx-hit) * .05); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lx-route-goal-head { display: flex; align-items: center; gap: 1.5cqi; }
.lx-route-goal-icon { display: grid; flex: 0 0 auto; place-items: center; width: 6.6cqi; height: 6.6cqi; border-radius: 2cqi; background: linear-gradient(135deg, var(--t4-teal), var(--t4-blue)); box-shadow: 0 1.2cqi 2.2cqi -1.2cqi color-mix(in srgb, var(--t4-teal) 80%, transparent); }
.lx-route-goal-icon svg { width: 58%; height: 58%; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lx-route-goal strong { display: block; color: var(--t4-ink); font-size: clamp(10.5px, 2.6cqi, 14px); font-weight: 850; line-height: 1.5; white-space: nowrap; }
.lx-route-goal small { display: block; color: var(--t4-muted); font-size: clamp(9px, 2cqi, 11px); font-weight: 650; line-height: 1.5; }
.lx-route-chart { display: block; width: 100%; height: auto; aspect-ratio: 120 / 34; margin-top: 1.4cqi; overflow: visible; }
.lx-route-chart-area { fill: color-mix(in srgb, var(--t4-teal) 16%, transparent); }
.lx-route-chart-line { stroke: var(--t4-blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 0; }

/* Tik4 AI chip */
.lx-route-ai { position: absolute; top: 3cqi; right: 0; z-index: 5; display: flex; align-items: center; gap: 1.6cqi; overflow: hidden; isolation: isolate; padding: 1.5cqi 2.2cqi 1.5cqi 1.6cqi; border-radius: 3.2cqi; background: #0d2430; box-shadow: 0 2.2cqi 4cqi -2cqi rgb(6 22 30 / 65%); }
.lx-route-ai::before { content: ""; position: absolute; inset: -60%; z-index: -2; background: conic-gradient(from 0deg, transparent 0 62%, var(--t4-teal) 78%, var(--t4-blue) 90%, transparent 100%); }
.lx-route-ai::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: calc(3.2cqi - 1.5px); background: radial-gradient(120% 140% at 100% 0%, rgb(8 164 167 / 30%), transparent 60%), #0d2430; }
.lx-route-ai-icon { display: grid; flex: 0 0 auto; place-items: center; width: 6.2cqi; height: 6.2cqi; border-radius: 2cqi; background: linear-gradient(135deg, var(--t4-teal), var(--t4-blue)); }
.lx-route-ai-icon svg { width: 56%; height: 56%; fill: #fff; }
.lx-route-ai strong { display: block; color: #fff; font-size: clamp(10.5px, 2.5cqi, 13.5px); font-weight: 850; line-height: 1.5; white-space: nowrap; }
.lx-route-ai small { display: block; color: rgb(207 227 230 / 75%); font-size: clamp(9px, 1.95cqi, 11px); font-weight: 650; line-height: 1.5; white-space: nowrap; }

.lx-route .lx-spark.is-1 { top: 22cqi; left: 46cqi; }
.lx-route .lx-spark.is-2 { right: 3cqi; bottom: 26cqi; --s: 2.4cqi; --c: var(--t4-blue); }

@media (prefers-reduced-motion: no-preference) {
  .lx-route-paint { animation: lx-route-paint 11s linear infinite; }
  .lx-route-tail { animation: lx-route-tail 11s linear infinite; }
  .lx-route-head { animation: lx-route-head 11s linear infinite; }
  .lx-route-start::after { animation: lx-route-pulse 11s ease-out infinite; }
  .lx-route-stop.is-1 { animation: lx-route-s1 11s linear infinite; }
  .lx-route-stop.is-2 { animation: lx-route-s2 11s linear infinite; }
  .lx-route-stop.is-3 { animation: lx-route-s3 11s linear infinite; }
  .lx-route-stop.is-4 { animation: lx-route-s4 11s linear infinite; }
  .lx-route-stop.is-5 { animation: lx-route-s5 11s linear infinite; }
  .lx-route-stop.is-6 { animation: lx-route-s6 11s linear infinite; }
  .lx-route-badge { animation: lx-scene-in .8s var(--t4-ease) backwards; animation-delay: calc(.25s + var(--i, 0) * .08s); }
  .lx-route-stop.is-2 { --i: 1; } .lx-route-stop.is-3 { --i: 2; } .lx-route-stop.is-4 { --i: 3; } .lx-route-stop.is-5 { --i: 4; } .lx-route-stop.is-6 { --i: 5; }
  .lx-route-label { animation: lx-scene-fade .6s ease backwards; animation-delay: calc(.5s + var(--i, 0) * .08s); }
  .lx-route-svg { animation: lx-scene-fade .9s ease backwards; }
  .lx-route-goal { animation: lx-scene-float 7.4s -2s ease-in-out infinite, lx-route-goal 11s linear infinite, lx-scene-in .9s .55s var(--t4-ease) backwards; }
  .lx-route-chart-line { animation: lx-route-chart 11s var(--t4-ease) infinite; }
  .lx-route-ai { animation: lx-scene-float 6.4s ease-in-out infinite, lx-scene-in .9s .75s var(--t4-ease) backwards; }
  .lx-route-ai::before { animation: lx-spin 4.5s linear infinite; }
  .lx-route-ai-icon svg { animation: lx-route-twist 4.5s ease-in-out infinite; }
}

@keyframes lx-route-paint { 0%, 4% { stroke-dashoffset: 100; opacity: 1; } 80%, 93% { stroke-dashoffset: 0; opacity: 1; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lx-route-tail { 0%, 4% { stroke-dashoffset: 9; opacity: 0; } 7%, 77% { opacity: .95; } 80%, 100% { stroke-dashoffset: -91; opacity: 0; } }
@keyframes lx-route-head { 0%, 4% { stroke-dashoffset: 0; opacity: 0; } 6% { opacity: 1; } 80% { stroke-dashoffset: -100; } 90% { opacity: 1; } 96%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes lx-route-pulse { 0% { opacity: .9; scale: .9; } 9%, 100% { opacity: 0; scale: 1.5; } }
@keyframes lx-route-goal { 0%, 79.4% { --lx-lit: 0; --lx-hit: 0; } 80% { --lx-lit: 1; --lx-hit: 1; } 86% { --lx-hit: 0; } 94% { --lx-lit: 1; } 98%, 100% { --lx-lit: 0; --lx-hit: 0; } }
@keyframes lx-route-chart { 0%, 80% { stroke-dashoffset: 100; } 88%, 94% { stroke-dashoffset: 0; } 99%, 100% { stroke-dashoffset: 100; } }
@keyframes lx-route-twist { 0%, 100% { rotate: 0deg; scale: 1; } 50% { rotate: 90deg; scale: .82; } }
@keyframes lx-route-s1 { 0%, 10.7% { --lx-lit: 0; --lx-hit: 0; } 11.3% { --lx-lit: 1; --lx-hit: 1; } 16.3% { --lx-hit: 0; } 94% { --lx-lit: 1; } 98%, 100% { --lx-lit: 0; --lx-hit: 0; } }
@keyframes lx-route-s2 { 0%, 20.1% { --lx-lit: 0; --lx-hit: 0; } 20.7% { --lx-lit: 1; --lx-hit: 1; } 25.7% { --lx-hit: 0; } 94% { --lx-lit: 1; } 98%, 100% { --lx-lit: 0; --lx-hit: 0; } }
@keyframes lx-route-s3 { 0%, 36.1% { --lx-lit: 0; --lx-hit: 0; } 36.7% { --lx-lit: 1; --lx-hit: 1; } 41.7% { --lx-hit: 0; } 94% { --lx-lit: 1; } 98%, 100% { --lx-lit: 0; --lx-hit: 0; } }
@keyframes lx-route-s4 { 0%, 46.7% { --lx-lit: 0; --lx-hit: 0; } 47.3% { --lx-lit: 1; --lx-hit: 1; } 52.3% { --lx-hit: 0; } 94% { --lx-lit: 1; } 98%, 100% { --lx-lit: 0; --lx-hit: 0; } }
@keyframes lx-route-s5 { 0%, 62.8% { --lx-lit: 0; --lx-hit: 0; } 63.4% { --lx-lit: 1; --lx-hit: 1; } 68.4% { --lx-hit: 0; } 94% { --lx-lit: 1; } 98%, 100% { --lx-lit: 0; --lx-hit: 0; } }
@keyframes lx-route-s6 { 0%, 72.1% { --lx-lit: 0; --lx-hit: 0; } 72.7% { --lx-lit: 1; --lx-hit: 1; } 77.7% { --lx-hit: 0; } 94% { --lx-lit: 1; } 98%, 100% { --lx-lit: 0; --lx-hit: 0; } }

@media (max-width: 767px) {
  .lx-route { width: min(100%, 460px); }
}
