/* Atreon line-motion layer: thin, architectural, and deliberately low-noise. */
.hero-linework {
  --line-shift-x: 0px;
  --line-shift-y: 0px;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(var(--line-shift-x), var(--line-shift-y), 0);
  transition: opacity 1.1s ease, transform 1.8s cubic-bezier(.2,.7,.2,1);
}

.hero-linework.is-active { opacity: 1; }

.hero-linework::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b0d0f 0%, rgba(11,13,15,.96) 33%, rgba(11,13,15,.36) 61%, rgba(11,13,15,.06) 100%);
}

.hero-linework svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.linework-base path,
.linework-reticles path,
.linework-reticles circle {
  fill: none;
  stroke: rgba(231,236,236,.13);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.linework-base path {
  stroke-dasharray: 5 8;
}

.linework-nodes circle {
  fill: #0b0d0f;
  stroke: rgba(240,243,243,.58);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
}

.linework-reticles {
  transform-box: fill-box;
  transform-origin: center;
  animation: line-reticle-turn 42s linear infinite;
}

.line-signal {
  fill: none;
  stroke: rgba(250,251,251,.92);
  stroke-width: 1.35;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: .09 .91;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.5));
  animation: line-signal-run 7.6s linear infinite;
}

.line-signal-b { animation-delay: -2.8s; animation-duration: 9.2s; }
.line-signal-c { animation-delay: -5.1s; animation-duration: 10.4s; }

.hero-linework.is-active .linework-nodes circle {
  animation: line-node-breathe 4.8s ease-in-out infinite;
}

.hero-linework.is-active .linework-nodes circle:nth-child(2n) { animation-delay: -2.4s; }

@keyframes line-signal-run {
  to { stroke-dashoffset: 0; }
}

@keyframes line-reticle-turn {
  to { transform: rotate(360deg); }
}

@keyframes line-node-breathe {
  0%, 72%, 100% { fill: #0b0d0f; transform: scale(1); }
  78% { fill: #f4f5f5; transform: scale(1.42); }
}

.hero > .container,
.hero-status { position: relative; z-index: 2; }

/* A single measured line ties the four process steps together. */
.process-list { position: relative; }

.process-line {
  position: absolute;
  z-index: 0;
  left: 18px;
  top: 48px;
  bottom: 48px;
  width: 1px;
  overflow: visible;
  background: #c9cdcb;
}

.process-line i {
  position: absolute;
  inset: 0;
  display: block;
  background: #20282a;
  transform: scaleY(0);
  transform-origin: 50% 0;
}

.process-line i::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20282a;
  box-shadow: 0 0 0 5px rgba(32,40,42,.09);
  transform: translateX(-50%);
}

.process-list.is-active .process-line i {
  animation: process-line-draw 2.35s cubic-bezier(.65,0,.2,1) both;
}

.process-step { position: relative; z-index: 1; }

.process-step > span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.process-step > span::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-left: 15px;
  border: 1px solid #8e9693;
  border-radius: 50%;
  background: #f5f5f1;
  box-shadow: 0 0 0 5px #f5f5f1;
  transform: scale(.78);
}

.process-list.is-active .process-step > span::before {
  animation: process-node-on .44s cubic-bezier(.2,.8,.2,1) both;
}

.process-list.is-active .process-step:nth-of-type(2) > span::before { animation-delay: .64s; }
.process-list.is-active .process-step:nth-of-type(3) > span::before { animation-delay: 1.28s; }
.process-list.is-active .process-step:nth-of-type(4) > span::before { animation-delay: 1.92s; }

@keyframes process-line-draw { to { transform: scaleY(1); } }

@keyframes process-node-on {
  0% { background: #f5f5f1; border-color: #8e9693; transform: scale(.78); }
  60% { background: #20282a; border-color: #20282a; transform: scale(1.5); }
  100% { background: #20282a; border-color: #20282a; transform: scale(1); }
}

@media (max-width: 980px) {
  .hero-linework svg { left: 4%; width: 130%; }
  .hero-linework::after { background: linear-gradient(90deg, #0b0d0f 0%, rgba(11,13,15,.89) 50%, rgba(11,13,15,.12) 100%); }
}

@media (max-width: 720px) {
  .hero-linework { opacity: 0; }
  .hero-linework.is-active { opacity: .66; }
  .hero-linework svg { left: -58%; width: 210%; }
  .hero-linework::after { background: linear-gradient(180deg, rgba(11,13,15,.68), rgba(11,13,15,.94) 72%, #0b0d0f); }
  .linework-reticles { display: none; }
  .process-line { left: 3px; top: 48px; bottom: 48px; }
  .process-step > span { gap: 9px; }
  .process-step > span::before { margin-left: 0; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-linework { opacity: .72; transform: none; transition: none; }
  .line-signal { stroke-dasharray: none; stroke-dashoffset: 0; filter: none; animation: none; opacity: .46; }
  .linework-reticles,
  .hero-linework.is-active .linework-nodes circle,
  .process-list.is-active .process-line i,
  .process-list.is-active .process-step > span::before { animation: none; }
  .process-line i { transform: scaleY(1); }
  .process-step > span::before { background: #20282a; border-color: #20282a; transform: none; }
}
