/* ShieldTech — sliding statements.

   One recurring device: a flat assertion where the verb cycles through the
   things people actually do wrong, then a line of reasoning underneath.

       Anyone can [hang / aim / hide / wire] a camera.
       Coverage is a drawing before it is a purchase…

   Pure CSS on purpose. The word column is laid out as a flex column inside an
   overflow-hidden box, so:
     · the box shrink-wraps to the WIDEST word and never changes width — no
       layout shift as the words cycle, which is what makes a text swap feel
       cheap;
     · nothing runs on the main thread but a transform, so this costs nothing
       against the performance budget the rest of the site is held to.

   The last child must repeat the first word, so the loop closes without a
   visible jump back to the top.

   Markup:
     <span class="st-cycle st-cycle-4">
       <span class="st-cycle-track">
         <span>hang</span><span>aim</span><span>hide</span><span>wire</span><span>hang</span>
       </span>
     </span>

   Line-height and the translate step are locked to each other at 1.15em. If one
   changes the other must change with it or the words sit off their baseline. */

.st-cycle {
  display: inline-block;
  overflow: hidden;
  height: 1.15em;
  line-height: 1.15em;
  vertical-align: bottom;
  color: #9fd0ff;
}
.st-cycle-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.st-cycle-track > span {
  height: 1.15em;
  line-height: 1.15em;
  white-space: nowrap;
}

@keyframes stWords3 {
  0%, 24%    { transform: translateY(0) }
  33%, 57%   { transform: translateY(-1.15em) }
  66%, 90%   { transform: translateY(-2.30em) }
  100%       { transform: translateY(-3.45em) }
}
@keyframes stWords4 {
  0%, 18%    { transform: translateY(0) }
  25%, 43%   { transform: translateY(-1.15em) }
  50%, 68%   { transform: translateY(-2.30em) }
  75%, 93%   { transform: translateY(-3.45em) }
  100%       { transform: translateY(-4.60em) }
}
@keyframes stWords5 {
  0%, 14%    { transform: translateY(0) }
  20%, 34%   { transform: translateY(-1.15em) }
  40%, 54%   { transform: translateY(-2.30em) }
  60%, 74%   { transform: translateY(-3.45em) }
  80%, 94%   { transform: translateY(-4.60em) }
  100%       { transform: translateY(-5.75em) }
}

.st-cycle-3 .st-cycle-track { animation: stWords3 9s infinite; }
.st-cycle-4 .st-cycle-track { animation: stWords4 12s infinite; }
.st-cycle-5 .st-cycle-track { animation: stWords5 15s infinite; }

/* Reduced motion keeps the first word and drops the cycle entirely. */
@media (prefers-reduced-motion: reduce) {
  .st-cycle-track { animation: none !important; transform: none !important; }
}
