/* Hexxa GEO V56 — mobile-visible corporate motion. Progressive enhancement. */
:root{--hx-motion-ease:cubic-bezier(.22,.78,.2,1)}
@keyframes hx56HeroKenBurns {
  0% { transform:translate3d(0,0,0) scale(1); filter:saturate(1) }
  100% { transform:translate3d(-1.6%,.7%,0) scale(1.16); filter:saturate(1.10) }
}
@keyframes hx56TextIn {0%{opacity:0;transform:translateY(32px)}100%{opacity:1;transform:translateY(0)}}
@keyframes hx56VisibleSweep {
  0%,18%{transform:translateX(-250%) skewX(-20deg);opacity:0}
  25%{opacity:.52}
  44%{transform:translateX(440%) skewX(-20deg);opacity:.4}
  48%,100%{transform:translateX(440%) skewX(-20deg);opacity:0}
}
@keyframes hx56TabProgress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes hx56SectionGlow{
  0%,100%{background-position:0% 50%}50%{background-position:100% 50%}
}
@keyframes hx56SlideUp{from{opacity:.15;transform:translate3d(0,30px,0) scale(.985)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@keyframes hx56StudioIntro{from{opacity:.25;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}
/* All animation is isolated from navigation and form logic. All content is
   visible with no JS; no animation property controls display/visibility. */
@media(prefers-reduced-motion:no-preference){
  /* Photo visibly moves on iPhone even if JS is disabled and only tab 01 is shown. */
  #hero-tab-1:checked ~ .slide[data-hero-panel="1"] > img,
  #hero-tab-2:checked ~ .slide[data-hero-panel="2"] > img,
  #hero-tab-3:checked ~ .slide[data-hero-panel="3"] > img{
    animation:hx56HeroKenBurns 7s ease-in-out infinite alternate!important;
    transform-origin:center center!important;
    will-change:transform;
  }
  #hero-tab-1:checked ~ .slide[data-hero-panel="1"] .hero-text .kicker,
  #hero-tab-2:checked ~ .slide[data-hero-panel="2"] .hero-text .kicker,
  #hero-tab-3:checked ~ .slide[data-hero-panel="3"] .hero-text .kicker{
    animation:hx56TextIn .7s var(--hx-motion-ease) both;
  }
  #hero-tab-1:checked ~ .slide[data-hero-panel="1"] .hero-text h1,
  #hero-tab-2:checked ~ .slide[data-hero-panel="2"] .hero-text h1,
  #hero-tab-3:checked ~ .slide[data-hero-panel="3"] .hero-text h1{
    animation:hx56TextIn .8s .14s var(--hx-motion-ease) both;
  }
  #hero-tab-1:checked ~ .slide[data-hero-panel="1"] .hero-text p,
  #hero-tab-2:checked ~ .slide[data-hero-panel="2"] .hero-text p,
  #hero-tab-3:checked ~ .slide[data-hero-panel="3"] .hero-text p,
  #hero-tab-1:checked ~ .slide[data-hero-panel="1"] .hero-actions,
  #hero-tab-2:checked ~ .slide[data-hero-panel="2"] .hero-actions,
  #hero-tab-3:checked ~ .slide[data-hero-panel="3"] .hero-actions{
    animation:hx56TextIn .85s .29s var(--hx-motion-ease) both;
  }
  /* Visible progress underline on active 01/02/03, even in JS-limited viewers. */
  .hero-nav .hero-tab-label{position:relative;overflow:hidden}
  #hero-tab-1:checked ~ .hero-nav label[for="hero-tab-1"]::after,
  #hero-tab-2:checked ~ .hero-nav label[for="hero-tab-2"]::after,
  #hero-tab-3:checked ~ .hero-nav label[for="hero-tab-3"]::after{
    content:"";position:absolute;bottom:0;left:0;width:100%;height:4px;
    background:#075a50;transform-origin:left center;
    animation:hx56TabProgress 7s linear infinite;pointer-events:none;
  }
  /* Amber CTA highlight now runs on mobile, not just desktop hover. */
  .btn.hx-amber-primary{position:relative;overflow:hidden;isolation:isolate}
  .btn.hx-amber-primary::after{
    content:"";position:absolute;left:-15%;top:-30%;bottom:-30%;width:27%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.85),transparent);
    transform:translateX(-250%) skewX(-20deg);pointer-events:none;
    animation:hx56VisibleSweep 5s ease-in-out infinite;
  }
  /* Existing scroll observer targets show more detectable upward movement. */
  html.hx-motion-ready .hx-motion-target{
    opacity:0;transform:translate3d(0,36px,0) scale(.985);
    transition:opacity .8s var(--hx-motion-ease),transform .9s var(--hx-motion-ease);
    transition-delay:var(--hx-motion-delay,0ms)
  }
  html.hx-motion-ready .hx-motion-target.hx-motion-shown{
    opacity:1;transform:translate3d(0,0,0) scale(1);
  }
  /* On browsers with CSS scroll timelines, animate visible elements even if
     the HTML viewer blocks scripts. No opacity fallback for older browsers. */
  @supports(animation-timeline:view()){
    html.no-js .section .section-heading,
    html.no-js #team .hg-lead-heading,
    html.no-js #case-studies .case-card,
    html.no-js #solutions .solution-card,
    html.no-js #clients .partner-logo-card{
      animation:hx56SlideUp both linear;
      animation-timeline:view();
      animation-range:entry 0% entry 95%;
    }
  }
  /* A small teal light gradient gives major section headers additional life. */
  #why-hexxa .why-dash-head,
  .proofbar{
    background-image:linear-gradient(110deg,transparent 0%,rgba(255,255,255,.11) 45%,transparent 70%);
    background-size:260% 100%;
    animation:hx56SectionGlow 9s ease-in-out infinite;
  }
  .case-card,.solution-card,.hg-lead-card,.pulse-plan-card,
  .partner-logo-card,.course-card,.why-cap,.amcservice,.why-dash-tile{
    transition:transform .32s var(--hx-motion-ease),box-shadow .32s ease,border-color .25s ease;
  }
  @media(hover:hover){
    .case-card:hover,.solution-card:hover,.hg-lead-card:hover,
    .pulse-plan-card:hover,.course-card:hover,.why-cap:hover{
      transform:translateY(-7px);box-shadow:0 22px 38px rgba(5,76,69,.15)
    }
    .partner-logo-card:hover,.why-dash-tile:hover{transform:translateY(-4px)}
  }
  .case-card:active,.solution-card:active,.course-card:active{transform:scale(.992)}
  body:has(.studio-header) .hero h1,
  body:has(.studio-header) .hero .hero-actions{
    animation:hx56StudioIntro 1s var(--hx-motion-ease) both;
  }
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  .hx-motion-target,.hx-motion-shown,
  .hero .slide img,.hero .hero-text *{
    animation:none!important;transition:none!important;
    transform:none!important;opacity:1!important
  }
  .btn.hx-amber-primary::after,
  .hero .hero-tab-label::after{display:none!important}
  .proofbar,#why-hexxa .why-dash-head{animation:none!important}
}
