/* Animated background for hero (scoped) - particles dissolve near edges */
.hero{position:relative;overflow:hidden}
.hero .container{position:relative;z-index:2}
.hero-bg{position:absolute;inset:0;top:0;left:0;width:100%;height:100%;background-color:#000;background-position:center;background-size:cover;animation:heroAnimateBg 50s linear infinite;z-index:1;pointer-events:none
	;
	/* mask edges so particles smoothly fade out near container borders */
	-webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 6%, rgba(0,0,0,1) 94%, rgba(0,0,0,0) 100%), linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 6%, rgba(0,0,0,1) 94%, rgba(0,0,0,0) 100%);
	mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 6%, rgba(0,0,0,1) 94%, rgba(0,0,0,0) 100%), linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 6%, rgba(0,0,0,1) 94%, rgba(0,0,0,0) 100%);
}

@keyframes heroAnimateBg{
 0%,100%{transform:scale(1)}
 50%{transform:scale(1.2)}
}

/* particle base style */
.hero-bg span{
	position:absolute;
	top:50%;
	left:50%;
	width:3px;
	height:3px;
	background:rgba(255,255,255,0.95);
	border-radius:50%;
	box-shadow:0 0 6px rgba(255,255,255,0.9),0 0 12px rgba(255,255,255,0.12);
	opacity:0;
	transform:translate(-50%,-50%);
	will-change:transform,opacity;
	pointer-events:none;
	animation:heroParticle 5s linear infinite;
	animation-fill-mode:both;
}
.hero-bg span::before{content:"";position:absolute;top:50%;transform:translateY(-50%);width:300px;height:1px;background:linear-gradient(90deg,rgba(255,255,255,0.9),rgba(255,255,255,0));opacity:0.9}

/* particle animation: appear, travel, then fade before leaving view */
@keyframes heroParticle{
	0%   { transform: rotate(315deg) translateX(0);     opacity: 0; }
	8%   { opacity: 1; }
	70%  { opacity: 1; }
	85%  { opacity: 0.6; }
	95%  { opacity: 0.2; transform: rotate(315deg) translateX(-1300px); }
 100%  { transform: rotate(315deg) translateX(-1500px); opacity: 0; }
}

/* per-particle positioning and timing */
.hero-bg span:nth-child(1){top:0;right:0;left:initial;animation-delay:0;animation-duration:1s}
.hero-bg span:nth-child(2){top:0;right:80px;left:initial;animation-delay:0.2s;animation-duration:3s}
.hero-bg span:nth-child(3){top:80px;right:0px;left:initial;animation-delay:0.4s;animation-duration:2s}
.hero-bg span:nth-child(4){top:0;right:180px;left:initial;animation-delay:0.6s;animation-duration:1.5s}
.hero-bg span:nth-child(5){top:0;right:400px;left:initial;animation-delay:0.8s;animation-duration:2.5s}
.hero-bg span:nth-child(6){top:0;right:600px;left:initial;animation-delay:1s;animation-duration:3s}
.hero-bg span:nth-child(7){top:300px;right:0px;left:initial;animation-delay:1s;animation-duration:1.75s}
.hero-bg span:nth-child(8){top:0px;right:700px;left:initial;animation-delay:1.4s;animation-duration:1.25s}
.hero-bg span:nth-child(9){top:0px;right:1000px;left:initial;animation-delay:0.75s;animation-duration:2.25s}
.hero-bg span:nth-child(10){top:0px;right:1000px;left:initial;animation-delay:2.75s;animation-duration:2.25s}
