/* R21 motion. The hidden state (.r21-reveal) exists ONLY under
   no-preference: without JS it is never added, and with reduced
   motion the script returns early and the safety net below keeps
   everything visible. The fill states live under
   html.r21-motion-armed, a class only the script adds (no-preference
   only) — without JS or with reduced motion every bar shows its
   final width. */
@media (prefers-reduced-motion: no-preference) {
  .r21-reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
  .r21-reveal.r21-in { opacity: 1; transform: none; }
  /* Hero load fade (pure CSS — runs with or without JS, never waits). */
  @keyframes r21-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .r21-hero-main > * { animation: r21-fade-up .6s ease both; }
  .r21-hero-main > *:nth-child(2) { animation-delay: .08s; }
  .r21-hero-main > *:nth-child(3) { animation-delay: .16s; }
  .r21-hero-main > *:nth-child(4) { animation-delay: .24s; }
  .r21-hero-main > *:nth-child(5) { animation-delay: .32s; }
  .r21-preview { animation: r21-fade-up .6s ease .2s both; }
  /* Headline word-by-word reveal (s16, add-on to the hero fade): the
     words rise one by one while the H1 fades — one composed entrance.
     The words' static state is fully visible; the hidden state lives
     only in the keyframes, so without JS the headline is complete. */
  @keyframes r21-word-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .r21-hero-word { display: inline-block; animation: r21-word-up .5s ease both; }
  .r21-hero-word:nth-child(2) { animation-delay: .08s; }
  .r21-hero-word:nth-child(3) { animation-delay: .16s; }
  .r21-hero-word:nth-child(4) { animation-delay: .24s; }
  .r21-hero-word:nth-child(5) { animation-delay: .32s; }
  .r21-hero-word:nth-child(6) { animation-delay: .4s; }
  .r21-hero-word:nth-child(7) { animation-delay: .48s; }
  /* Hover lift for cards: up 2px. (The sheets define their own blue
     hover border; this rule adds the lift only.) */
  .r21-job-card, .r21-plan, .r21-resume-card, .r21-company-card,
  .r21-tracker-card, .r21-fit-card, .r21-role, .r21-employer, .r21-job {
    transition: transform .2s ease, border-color .2s ease;
  }
  .r21-job-card:hover, .r21-plan:hover, .r21-resume-card:hover,
  .r21-company-card:hover, .r21-tracker-card:hover, .r21-fit-card:hover,
  .r21-role:hover, .r21-employer:hover, .r21-job:hover {
    transform: translateY(-2px);
  }
  /* Button press. */
  .r21-btn:active { transform: scale(.98); }
  /* Ticker marquee: the track holds two identical groups, so -50%
     loops seamlessly. The track is content-width (no max-width). */
  .r21-ticker-track { animation: r21-ticker-marquee 30s linear infinite; }
  @keyframes r21-ticker-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  /* Tracker station pulse: a blue ring that breathes around the
     --here station (the ring is a ::after, so its opacity can fade). */
  .r21-map-station--here { position: relative; }
  .r21-map-station--here::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--r21-blue); border-radius: var(--r21-r-card); opacity: 0; animation: r21-station-pulse 2s ease-out infinite; pointer-events: none; }
  @keyframes r21-station-pulse { 0% { opacity: 0.6; transform: scale(1); } 70% { opacity: 0; transform: scale(1.04); } 100% { opacity: 0; transform: scale(1.04); } }
  /* Mobile add FAB pulse: a blue ring that breathes around the + button
     (visible only on small screens, where the FAB itself is). */
  .r21-tracker-add-fab::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--r21-blue); border-radius: 50%; opacity: 0; animation: r21-fab-pulse 2s ease-out infinite; pointer-events: none; }
  @keyframes r21-fab-pulse { 0% { opacity: 0.6; transform: scale(1); } 70% { opacity: 0; transform: scale(1.5); } 100% { opacity: 0; transform: scale(1.5); } }
}
@media (prefers-reduced-motion: reduce) {
  .r21-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .r21-hero-main > *, .r21-preview, .r21-hero-word { animation: none !important; }
  .r21-ticker-track { animation: none !important; }
  .r21-map-station--here::after, .r21-tracker-add-fab::after { animation: none !important; }
}
/* The ticker strip (the marquee animation lives above, no-preference only). */
.r21-ticker { background: var(--r21-bg-soft); border-bottom: 1px solid var(--r21-border); overflow: hidden; padding-block: var(--r21-s-2); padding-inline: var(--r21-s-4); }
.r21-ticker-track { display: flex; flex-wrap: nowrap; width: max-content; }
.r21-ticker-group { display: flex; flex-wrap: nowrap; gap: var(--r21-s-2) var(--r21-s-5); padding-inline-end: var(--r21-s-5); }
.r21-ticker-item { display: flex; gap: var(--r21-s-1); font-size: var(--r21-t-small); white-space: nowrap; }
.r21-ticker-label { color: var(--r21-body); }
.r21-ticker-value { font-weight: 700; }
/* Fill states (armed by the script only — see the file header). */
html.r21-motion-armed .r21-dim-fill { width: 0; transition: width .8s ease; }
html.r21-motion-armed .r21-dim.r21-in .r21-dim-fill { width: var(--w); }
html.r21-motion-armed .r21-report-bar-fill { transition: width .8s ease; }
html.r21-motion-armed .r21-distbar-range { transition: width .8s ease; }
html.r21-motion-armed .r21-distbar-median { transition: left .8s ease; }
html.r21-motion-armed .r21-dial-value { transition: stroke-dasharray .3s ease; }
