/* Cycling noun in the hero headline ("your plant / factory / mine ... buys").
   Markup: ...your<br><span class="rot" data-words="plant|factory|..."><span class="rot-word is-on">plant</span></span> buys.
   All words are stacked in one grid cell, so the slot is always exactly as wide as the
   widest word. The visible word is right-justified, so "buys." and everything after it
   never move; only the empty space on the left changes.
   Behavior lives in /hero-rotate.js. Without JS the first word just sits there. */
.rot {
  display: inline-grid;
  color: var(--cobalt);
  white-space: nowrap;
  vertical-align: baseline;
}
.rot-word {
  grid-area: 1 / 1;
  justify-self: end;
  opacity: 0;
  transform: translateY(0.32em);
  transition: opacity 0.26s ease, transform 0.26s ease;
}
.rot-word.is-on  { opacity: 1; transform: none; }
.rot-word.is-off { opacity: 0; transform: translateY(-0.32em); }
.rot-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .rot-word { transition: none; transform: none; }
}
