/* Animation Lab 15 | SCROLL STUDIO – independent progressive enhancement.
   Existing content, functionality and calculations unchanged. No external libraries. */
.editorial-hero { --rc15-scroll:0; --rc15-visible:1; }
@media (prefers-reduced-motion:no-preference){
  /* Motion is driven by scroll progress; same result on touch screens and desktop. */
  .editorial-hero .heroart { --rc15-photo-rise:0px; }
  .editorial-hero .heroimgwrap {transform:translate3d(0,calc(var(--rc15-scroll) * -22px),0) scale(calc(1 + var(--rc15-scroll) * .035));transition:transform .15s linear;}
  .editorial-hero .herotext { transform:translate3d(0,calc(var(--rc15-scroll) * -14px),0); transition:transform .16s linear; }
  .editorial-hero .heroart:after { opacity:calc(1 - var(--rc15-scroll) * .55); }
  /* A restrained cinematic beam that reacts to scroll even on devices without hover. */
  .editorial-hero .rc15-scrolllight { position:absolute;z-index:2;inset:0;overflow:hidden;pointer-events:none; }
  .editorial-hero .rc15-scrolllight:before {content:"";position:absolute;inset:-30%;background:linear-gradient(115deg,transparent 36%,rgba(232,204,151,.18) 50%,transparent 64%);transform:translate3d(calc(var(--rc15-scroll)*33%),calc(var(--rc15-scroll)*-8%),0) rotate(-7deg);opacity:.62;}
  /* Progressive emphasis while the visitor scrolls through the existing 4-step process. */
  #lab-journey .lab-journey-step {position:relative;transition:padding-left .45s cubic-bezier(.22,.7,.18,1),background-color .45s ease,border-color .45s ease;}
  #lab-journey .lab-journey-step.rc15-active-step {padding-left:12px;background:linear-gradient(90deg,rgba(210,183,142,.11),rgba(210,183,142,0) 78%);border-bottom-color:rgba(221,196,156,.5)}
  #lab-journey .lab-journey-step.rc15-active-step .lab-step-no {color:#e1c395;transition:color .35s ease}
  #lab-journey .lab-journey-step.rc15-active-step .lab-step-arrow {color:#e1c395;transform:translate(5px,-3px)}
  #lab-journey .lab-journey-steps {position:relative}
  #lab-journey .lab-journey-steps:before {content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:linear-gradient(to bottom,#c5a77b 0%,#c5a77b calc(var(--rc15-journey,0)*100%),rgba(245,231,212,.17) calc(var(--rc15-journey,0)*100%),rgba(245,231,212,.17) 100%);pointer-events:none;}
  /* Mobile-only card focus is based on actual viewport position, never an invisible hover. */
  @media (max-width:720px){
    #services .cards .card {transition:transform .42s ease,box-shadow .4s ease,border-color .4s ease}
    #services .cards .card.rc15-in-focus {border-color:rgba(170,130,79,.48);box-shadow:0 13px 30px rgba(28,55,43,.105);--rc14-shine-opacity:.7}
    #services .cards .card.rc15-in-focus:after {opacity:.7}
    .editorial-hero .heroimgwrap {transform:translate3d(0,calc(var(--rc15-scroll)*-12px),0) scale(calc(1 + var(--rc15-scroll)*.02))}
  }
}
@media(prefers-reduced-motion:reduce){
 .editorial-hero .herotext,.editorial-hero .heroimgwrap{transform:none!important;transition:none!important}
 .editorial-hero .rc15-scrolllight{display:none!important}
 #lab-journey .lab-journey-step.rc15-active-step{padding-left:0;background:none}
 #lab-journey .lab-journey-steps:before{display:none!important}
}
