/* ============================================================
   Rathe TEC — ticker.css
   Rotating banner band under the hero.
   Cycles short statements one at a time (see js/ticker.js).
   ============================================================ */

.ticker {
  background: linear-gradient(120deg, var(--ink-900), var(--pine) 55%, var(--green-700));
  border-bottom: 1px solid rgba(245, 236, 221, 0.14);
  color: var(--cream-100);
}

.ticker__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ticker__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan-200);
}

.ticker__brand::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--moss);
  animation: ticker-pulse 2.6s ease-out infinite;
}

@keyframes ticker-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124, 154, 94, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(124, 154, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 154, 94, 0); }
}

.ticker__stage {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 2.1em;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 0.9rem + 0.55vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ticker__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker__item.is-active { opacity: 1; transform: none; }

.ticker__dots { display: flex; gap: 0.35rem; flex-shrink: 0; }

.ticker__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(245, 236, 221, 0.28);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.ticker__dot.is-active { background: var(--tan-200); transform: scale(1.25); }
.ticker__dot:hover { background: rgba(245, 236, 221, 0.6); }

@media (max-width: 640px) {
  .ticker__brand, .ticker__dots { display: none; }
  .ticker__stage { height: auto; }
  .ticker__item { position: static; display: none; white-space: normal; }
  .ticker__item.is-active { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__item { transition: none; }
  .ticker__brand::before { animation: none; }
}
