/* Tokyonline public home: hero illustration (assets/img/hero-datacenter.svg, inlined).
   homepage.tpl inlines the SVG with a Smarty include and preview.html carries a verbatim copy,
   so these rules can drive it. Racks/switch/drives rise once; traffic pulses, indicator LEDs and
   the uplink ping loop while the document is visible. assets/js/tk-hero-art.js adds .is-paused
   while the document is hidden (tab switch, minimise, bfcache). Reduced motion: static frame.
   The hero is dark in both palettes, so the artwork keeps its fixed colours.
   Loaded by homepage.tpl and preview.html after tk-theme.css. */
.tk-hero__product { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.tk-hero__art { width: 100%; max-width: 440px; margin: -24px auto -40px; pointer-events: none; user-select: none; }
.tk-hero__art svg { display: block; width: 100%; height: auto; overflow: hidden; }
.tk-hero__product .tk-plan--hero { position: relative; z-index: 1; }
@media (max-width: 991.98px) {
    .tk-hero__art { max-width: 380px; margin-top: -8px; }
}
@media (max-width: 575.98px) {
    .tk-hero__art { max-width: 300px; margin-bottom: -28px; }
}
@media print { .tk-hero__art { display: none; } }

/* Single entrance: hardware settles once and then stays put */
.tk-hero__art .tkh-rise { animation: tkh-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.tk-hero__art .tkh-r2 { animation-delay: .12s; }
.tk-hero__art .tkh-r3 { animation-delay: .24s; }
.tk-hero__art .tkh-r4 { animation-delay: .32s; }
.tk-hero__art .tkh-drop { animation: tkh-drop .7s cubic-bezier(.2, .8, .3, 1) .9s both; }

/* Continuous: indicator LEDs (opacity only), staggered so they never pulse in unison */
.tk-hero__art .tkh-led { animation: tkh-led 2.4s ease-in-out infinite; }
.tk-hero__art .tkh-d1 { animation-duration: 2.2s; animation-delay: -.3s; }
.tk-hero__art .tkh-d2 { animation-duration: 2.9s; animation-delay: -1.1s; }
.tk-hero__art .tkh-d3 { animation-duration: 1.7s; animation-delay: -.7s; }
.tk-hero__art .tkh-d4 { animation-duration: 3.4s; animation-delay: -2s; }

/* Continuous: light pulses travelling along the optical links */
.tk-hero__art .tkh-pulse {
    stroke: #e2e8ff; stroke-width: 2.2; stroke-linecap: round;
    stroke-dasharray: 10 110; stroke-dashoffset: 10; opacity: 0;
    animation: tkh-flow 2.6s linear 1s infinite;
}
.tk-hero__art .tkh-p2 { animation-duration: 3.2s; animation-delay: 1.5s; }
.tk-hero__art .tkh-p3 { animation-duration: 2.2s; animation-delay: 1.2s; }
.tk-hero__art .tkh-p4 { animation-duration: 2.8s; animation-delay: 1.9s; }
.tk-hero__art .tkh-ping { opacity: .35; animation: tkh-ping 2.4s ease-in-out .8s infinite; }

@keyframes tkh-rise { from { opacity: 0; transform: translate(0, 12px); } }
@keyframes tkh-drop { from { opacity: 0; transform: translate(0, -22px); } }
@keyframes tkh-led { 50% { opacity: .25; } }
@keyframes tkh-flow {
    0% { stroke-dashoffset: 10; opacity: 0; }
    6% { opacity: 1; }
    62% { opacity: 1; }
    70%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes tkh-ping { 50% { opacity: 1; } }

/* Hidden document: freeze in place, resume from the same frame when visible again */
.tk-hero__art.is-paused, .tk-hero__art.is-paused * { animation-play-state: paused !important; }

/* Accessibility exception: no motion at all, static end frame (pulses hidden, LEDs lit) */
@media (prefers-reduced-motion: reduce) {
    .tk-hero__art, .tk-hero__art * { animation: none !important; }
}
