/* A restrained motion layer over the existing Polpota visual system. */
.ai-hero-artwork {
  position: relative;
  animation: ai-hero-float 6s ease-in-out infinite;
}
.ai-hero-artwork > img, .ai-process-artwork > img { display: block; }
.ai-process-artwork { position: relative; animation: ai-float 10s ease-in-out infinite reverse; }
.ai-network { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; border-radius: .25rem; }
.ai-data-packet { stroke-width: 4.5; stroke-dasharray: 12 88; animation: ai-packet 3.4s linear infinite; }
.ai-neural-packet { stroke-width: 3.5; stroke-dasharray: 18 82; animation: ai-packet 2.8s linear infinite; }
.ai-neuron { transform-box: fill-box; transform-origin: center; animation: ai-neuron 3.2s ease-in-out infinite; }
.ai-neural-ring { transform-box: fill-box; transform-origin: center; animation: ai-neural-ring 3.2s ease-out infinite; }
.ai-core-scan { animation: ai-core-scan 4.8s linear infinite; }
.ai-network-motion { animation-delay: var(--signal-delay, 0s); }
.ai-background-scene { position: relative; overflow: hidden; isolation: isolate; background-size: cover; background-position: center; background-repeat: no-repeat; }
#estandares > .ai-network { opacity: .35; }
#estandares > .container { z-index: 1; }
.ai-section-signals { position: absolute; top: 0; left: 0; width: 100%; height: 72px; pointer-events: none; color: #800000; opacity: .5; }
.ai-section-signals-wave { height: 96px; opacity: .55; }
.ai-section-signals-field { height: 100%; color: #ffe8d0; opacity: .8; }
.ai-signal-field > .svg_img { opacity: .1; }
.ai-divider-packet { stroke-dasharray: 10 90; stroke-width: 2; vector-effect: non-scaling-stroke; animation: ai-packet 7s linear infinite; animation-delay: var(--signal-delay, 0s); }
.ai-hero-flow {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem 1.2rem;
  border: 1px solid rgba(128, 0, 0, .12);
  border-radius: .35rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
  color: #17151b;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ai-hero-flow strong {
  color: #800000;
  font-size: .95rem;
}
.ai-hero-flow [aria-hidden] {
  color: #800000;
}
.ai-flow-step { animation: ai-signal 6s ease-in-out infinite; }
.ai-flow-step:nth-child(3) { animation-delay: 1s; }
.ai-flow-step:nth-child(5) { animation-delay: 2s; }
.ai-motion-toggle {
  position: absolute;
  top: 2.25rem;
  right: 1.8rem;
  z-index: 1;
  padding: .4rem .6rem;
  border: 1px solid rgba(128, 0, 0, .12);
  border-radius: .35rem;
  background: rgba(255, 255, 255, .95);
  color: #5c5353;
  font: inherit;
  font-size: .7rem;
  cursor: pointer;
}
.ai-motion-toggle:focus-visible { outline: 2px solid #800000; outline-offset: 3px; }
.ai-velocity {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(128, 0, 0, .12);
  border-radius: .5rem;
  background: linear-gradient(120deg, #faf8f8, #fff);
}
.ai-velocity .small.fw-bold { color: #800000; letter-spacing: .06em; }
.ai-timeflow { max-width: 19rem; margin: 0 auto; }
.ai-timeflow strong { display: block; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; }
.ai-timeflow-before { color: #706669; }
.ai-timeflow-after { color: #800000; }
.ai-timeflow-before > span, .ai-timeflow-after > span { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.ai-timeflow-link { position: relative; height: 4rem; margin: .75rem 0 .75rem .5rem; border-left: 1px solid #d9bdbd; }
.ai-timeflow-link > span {
  position: absolute; left: -3px; top: 0; width: 5px; height: 5px;
  border-radius: 50%; background: #800000;
  box-shadow: 0 0 0 4px rgba(128, 0, 0, .06);
  animation: ai-transfer 4s ease-in-out infinite;
}
.ai-timeflow-link b { position: absolute; top: 50%; left: 1.25rem; transform: translateY(-50%); font-size: .7rem; letter-spacing: .1em; color: #800000; }
.ai-velocity-note { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(128, 0, 0, .1); color: #61565a; max-width: 52rem; }
/* The nearest scene owns its playback, including nested background/divider scenes. */
[data-ai-scene] { --ai-play-state: paused; }
[data-ai-motion="playing"] [data-ai-scene][data-ai-visible="true"] { --ai-play-state: running; }
.ai-hero-artwork, .ai-process-artwork, .ai-network-motion, .ai-flow-step, .ai-timeflow-link > span { animation-play-state: var(--ai-play-state, paused); }
@keyframes ai-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes ai-hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ai-packet { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes ai-neuron { 0%, 65%, 100% { opacity: .12; transform: scale(.65); } 25% { opacity: 1; transform: scale(1.4); } }
@keyframes ai-neural-ring { 0% { opacity: 0; transform: scale(.3); } 15% { opacity: .8; } 85%, 100% { opacity: 0; transform: scale(2.5); } }
@keyframes ai-core-scan { 0% { transform: translateY(0); opacity: 0; } 15%, 75% { opacity: 1; } 100% { transform: translateY(330px); opacity: 0; } }
@keyframes ai-signal { 0%, 50%, 100% { opacity: .72; } 20% { opacity: 1; } }
@keyframes ai-transfer { 0% { transform: translateY(0); opacity: 0; } 15%, 75% { opacity: 1; } 100% { transform: translateY(3.65rem); opacity: 0; } }
@media (max-width: 991px) { .ai-timeflow { max-width: none; display: flex; align-items: center; gap: 1.5rem; } .ai-timeflow-link { flex: 0 0 2rem; } }
@media (max-width: 575px) { .ai-timeflow { display: block; } }
@media (prefers-reduced-motion: reduce) {
  .ai-hero-artwork, .ai-process-artwork, .ai-network-motion, .ai-flow-step, .ai-timeflow-link > span { animation: none; }
  .ai-network, .ai-section-signals { display: none; }
  .ai-motion-toggle { display: none; }
  html:focus-within, html { scroll-behavior: auto; }
  [data-ai-reveal], [data-ai-reveal] .hover-top { transition: none; }
}
