/* Accessibility fixes, loaded last on every page.
   Text must reach WCAG AA contrast: 4.5:1, or 3:1 for large text.
   Brand blue on light backgrounds is #145aff (set as --blue in style.css);
   on black it is too dark, so labels in dark sections use the light blue. */

/* Section labels in dark sections */
[data-theme="dark"] .p-eyebrow,
[data-theme="dark"] .rp-eyebrow { color: #8aaaff; }
/* ...except the grey ones above contact forms and closing calls to action */
.p-formBand > div > p.p-eyebrow,
.page-cta .p-eyebrow { color: #8f8f8f; }

/* Blue label on the lime "featured" plan card (accessibility audit page) */
.rp-plan:nth-child(2) .rp-eyebrow { color: #0c3ea8; }

/* Case studies: the "What we did" list was near-white on a light background */
.case-modern .cm-overview .ul li { color: #555b54; }

/* The client-logo strip is always black, including on the Work page */
.p-clients > .p-eyebrow { color: #8cacff; }

/* B2: the first section of every page (its hero) is never hidden waiting for
   a scroll reveal, so the headline and intro are readable at first paint. */
.motion-on main>section:first-of-type .reveal,
.motion-on main>section:first-of-type [data-reveal],
.motion-on main>section:first-of-type[data-reveal]{opacity:1!important;transform:none!important}

/* C2: the pause button sits bottom left, at least 44 x 44, and only shows
   while something moving is on screen (scripts/motion-toggle.js). */
.motion-toggle{left:16px!important;right:auto!important;bottom:16px!important;width:44px!important;height:44px!important;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility 0s .2s}
.motion-toggle.is-shown{opacity:1;visibility:visible;transform:none;transition:opacity .2s,transform .2s}
html.cc-open .motion-toggle{opacity:0;visibility:hidden}
@media(max-width:1023px){html.cc-open .help-fab{display:none}}
@media(prefers-reduced-motion:reduce){.motion-toggle{transition:none}}

/* C7: with "reduce motion" on, nothing moves on scroll and nothing waits to
   be revealed. Animations jump straight to their end state. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-timeline: auto !important;
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .reveal, [data-reveal], [data-sr], [data-clip-reveal] { opacity: 1 !important; transform: none !important; translate: none !important; }
}
/* Never on top of a link or button (scripts/floating-avoid.js). */
.motion-toggle.is-blocked,#help-fab.is-blocked{opacity:0!important;visibility:hidden!important;pointer-events:none}
