/* Ticker - ported from Framer code component Ticker.tsx
   The drifting rule ("KEEP MAKING MOVES *"). Two identical phrase sets share a
   width:max-content track translated by -50% on a linear loop, so the seam is
   never visible. The asterisk is a clip-path polygon, not an image, so it takes
   whatever colour the band is set to. The band fades into the page at both ends
   (14% mask). The words are the accent lifted 25% toward parchment (WCAG AA
   on every night ground; see the track rule). Type size and word spacing are derived from the band's measured
   width by js/framer/ticker.js (fs = clamp(12.8, 0.0115*w, 16.8), gap =
   clamp(24, 0.03*w, 48)); the clamp() defaults below stand in before JS runs
   and when JS is absent. Paused under prefers-reduced-motion. */
.fr-ticker {
  --fr-tick-accent: rgb(139, 109, 85);
  --fr-tick-border: rgba(244, 241, 234, 0.08);
  --fr-tick-fs: clamp(12.8px, 1.15vw, 16.8px);
  --fr-tick-gap: clamp(24px, 3vw, 48px);
  --fr-tick-dur: 68s;
  width: 100%;
  overflow: hidden;
  padding-block: 25.2px;
  border-bottom: 1px solid var(--fr-tick-border);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.fr-ticker__track {
  display: flex;
  width: max-content;
  font-family: var(--jifu-font-display, "Heuvel Grotesk", Montserrat, Helvetica, Arial, sans-serif);
  font-weight: 500;
  text-transform: uppercase;
  font-size: var(--fr-tick-fs);
  line-height: 1;
  letter-spacing: 0.32em;
  /* WCAG AA (T3 fix-forward, 2026-09-24): the TSX paints the words in the
     accent at opacity .72 - gold on the night grounds measured 2.6:1 painted
     (4.03 computed) and a page accent as dark as the WAV red 3.7. The words now
     carry the accent mixed 75/25 with parchment at full opacity: the same hue,
     >= 4.7:1 on every night ground (15/8/25 and navy) for gold, gold-lift,
     WAV red, health green, meridian, signal and papaya alike. The asterisks
     keep the raw accent at .5 - they are decorative (aria-hidden). */
  color: var(--jifu-gold-lift, rgb(169, 138, 110));
  color: color-mix(in srgb, var(--fr-tick-accent) 75%, var(--jifu-parchment, rgb(244, 241, 234)));
  animation: fr-ticker-run var(--fr-tick-dur) linear infinite;
}
.fr-ticker__set {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--fr-tick-gap);
  padding-right: var(--fr-tick-gap);
  white-space: nowrap;
}
.fr-ticker__phrase { display: contents; }
.fr-ticker__star {
  flex: 0 0 auto;
  width: calc(var(--fr-tick-fs) * 0.62);
  height: calc(var(--fr-tick-fs) * 0.62);
  background: var(--fr-tick-accent);
  opacity: 0.5;
  clip-path: polygon(48% 0, 52% 0, 54% 40%, 72% 26%, 74% 28%, 60% 46%, 100% 48%, 100% 52%, 60% 54%, 74% 72%, 72% 74%, 54% 60%, 52% 100%, 48% 100%, 46% 60%, 28% 74%, 26% 72%, 40% 54%, 0 52%, 0 48%, 40% 46%, 26% 28%, 28% 26%, 46% 40%);
  -webkit-clip-path: polygon(48% 0, 52% 0, 54% 40%, 72% 26%, 74% 28%, 60% 46%, 100% 48%, 100% 52%, 60% 54%, 74% 72%, 72% 74%, 54% 60%, 52% 100%, 48% 100%, 46% 60%, 28% 74%, 26% 72%, 40% 54%, 0 52%, 0 48%, 40% 46%, 26% 28%, 28% 26%, 46% 40%);
}
@keyframes fr-ticker-run {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .fr-ticker__track { animation: none; }
}
