/* JA Consulting - homepage headline rotation experiment, FARM only. */
.hero-rotation{display:grid;position:relative;isolation:isolate}
.hero-rotation-panel{grid-area:1/1;min-width:0;opacity:0;visibility:hidden;transform:translateY(7px);transition:opacity .48s ease,transform .48s ease,visibility .48s;pointer-events:none}
.hero-rotation-panel.is-active{opacity:1;visibility:visible;transform:translateY(0);transition:opacity .48s ease,transform .48s ease;pointer-events:auto}
#a .a-hero .a-copy .hero-rotation-alt-heading{font-family:inherit;font-weight:700;font-size:clamp(38px,3.9vw,62px);letter-spacing:-.057em;line-height:1.09;max-width:740px;text-wrap:balance}
#a .a-hero .a-copy .hero-rotation-panel .lede{max-width:540px}
.hero-rotation-toggle:not([hidden]){appearance:none;border:0;background:transparent;color:#5d6b6b;cursor:pointer;font:650 11px/1.4 Arial,Helvetica,sans-serif;letter-spacing:.02em;padding:8px 4px;margin:7px 0 0;text-decoration:underline;text-decoration-color:#98a5a1;text-underline-offset:3px;min-height:36px}
.hero-rotation-toggle:hover{color:#203b33}
.hero-rotation-toggle:focus-visible{outline:2px solid #2f7eea;outline-offset:3px;border-radius:4px}
.hero-rotation-toggle[hidden]{display:none!important}
@media(max-width:1024px){#a .a-hero .a-copy .hero-rotation-alt-heading{font-size:clamp(35px,5.1vw,53px)}}
@media(max-width:760px){#a .a-hero .a-copy .hero-rotation-alt-heading{font-size:clamp(31px,8.0vw,46px);line-height:1.12}.hero-rotation-panel{transform:translateY(4px)}}
@media(max-width:390px){#a .a-hero .a-copy .hero-rotation-alt-heading{font-size:clamp(29px,7.9vw,39px)}}
@media(prefers-reduced-motion:reduce){.hero-rotation-panel{transition:none!important;transform:none!important}.hero-rotation-panel.is-active{transition:none!important;transform:none!important}}

/* Subtle one-time reveal of the existing Understand / Connect / Deliver stages. */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .approach.reveal.is-visible .stage {animation: ja-stage-appear .55s cubic-bezier(.22,.76,.26,1) both}
  .motion-ready .approach.reveal.is-visible .stage:nth-child(2) {animation-delay:.15s}
  .motion-ready .approach.reveal.is-visible .stage:nth-child(3) {animation-delay:.3s}
  @keyframes ja-stage-appear {from {opacity:0;transform:translateY(9px)}to {opacity:1;transform:translateY(0)}}
}

/* Mobile-safe, discoverable headline controls. Created by hero-rotation.js. */
.hero-rotation-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 0;max-width:550px}
/* Explicitly override the display:flex rule when Reduce Motion is not enabled. */
.hero-rotation-controls[hidden],.hero-rotation-controls .hero-rotation-next[hidden]{display:none!important}
.hero-rotation-controls .hero-rotation-toggle:not([hidden]),
.hero-rotation-controls .hero-rotation-next{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:118px;padding:10px 15px;margin:0;border:1px solid rgba(45,87,75,.27);border-radius:999px;background:rgba(255,255,255,.6);color:#294b40;font:650 12px/1.35 Arial,Helvetica,sans-serif;letter-spacing:0;text-decoration:none;text-align:center;cursor:pointer;touch-action:manipulation}
.hero-rotation-controls .hero-rotation-toggle:not([hidden]):hover,
.hero-rotation-controls .hero-rotation-next:hover{background:rgba(47,157,87,.09);border-color:rgba(45,87,75,.48);text-decoration:none}
.hero-rotation-controls .hero-rotation-toggle:focus-visible,
.hero-rotation-controls .hero-rotation-next:focus-visible{outline:2px solid #2f7eea;outline-offset:3px}
.hero-rotation-hint{flex-basis:100%;color:#5d6b67;font-size:11px;line-height:1.45;margin-top:0}
.hero-rotation-hint[hidden]{display:none!important}
.hero-rotation-announcer{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:390px){
  .hero-rotation-controls{gap:6px}
  .hero-rotation-controls .hero-rotation-toggle:not([hidden]),
  .hero-rotation-controls .hero-rotation-next{min-width:110px;padding:10px 12px}
}
/* Reduced Motion remains static until the visitor explicitly selects Play.
   An opt-in activates opacity-only crossfades, never spatial movement. */
@media(prefers-reduced-motion:reduce){
  .hero-rotation[data-motion-opt-in="true"] .hero-rotation-panel,
  .hero-rotation[data-motion-opt-in="true"] .hero-rotation-panel.is-active{
    transition:opacity .35s ease,visibility .35s!important;
    transform:none!important
  }
}
