


:root {
  
  --fx-dur:        .7s;                              
  --fx-ease:       cubic-bezier(.22, .61, .36, 1);   
  --fx-rise:       26px;                             
  --fx-shift:      34px;                             
  --fx-zoom:       .96;                              
  --fx-stagger:    80ms;                             

  
  --fx-card-lift:  6px;                              
  --fx-card-scale: 1.03;                             
  --fx-card-dur:   .36s;                             
  --fx-sheen-dur:  .9s;                              
  --fx-sheen:      rgba(255, 255, 255, .55);         
  --fx-shadow-hover: 0 18px 40px rgba(16, 24, 40, .14);  

  
  --fx-parallax-max: 80px;                           

  
  --fx-fab-size:   46px;
  --fx-progress-h: 3px;
}



[data-fx-reveal] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity   var(--fx-dur) var(--fx-ease) var(--fx-delay, 0ms),
    transform var(--fx-dur) var(--fx-ease) var(--fx-delay, 0ms);
}
[data-fx-reveal="up"]    { transform: translate3d(0, var(--fx-rise), 0); }
[data-fx-reveal="left"]  { transform: translate3d(calc(var(--fx-shift) * -1), 0, 0); }
[data-fx-reveal="right"] { transform: translate3d(var(--fx-shift), 0, 0); }
[data-fx-reveal="zoom"]  { transform: scale(var(--fx-zoom)); }

[data-fx-reveal].is-visible {
  opacity: 1;
  transform: none;
}



[data-fx-parallax] {
  transform: translate3d(0, var(--fx-py, 0px), 0);
  will-change: transform;
}



.fx-card {
  position: relative;
  overflow: hidden;                 
  transition:
    transform   var(--fx-card-dur) var(--fx-ease),
    box-shadow  var(--fx-card-dur) var(--fx-ease);
}


.fx-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;             
  background: linear-gradient(
    105deg,
    transparent 30%,
    var(--fx-sheen) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform var(--fx-sheen-dur) var(--fx-ease);
}

.fx-card > img,
.fx-card img {
  transition: transform var(--fx-dur) var(--fx-ease);
}


@media (hover: hover) {
  .fx-card:hover,
  .fx-card:focus-within {
    transform: translateY(calc(var(--fx-card-lift) * -1));
    box-shadow: var(--fx-shadow-hover);
  }
  .fx-card:hover::after,
  .fx-card:focus-within::after {
    transform: translateX(120%);
  }
  .fx-card:hover img,
  .fx-card:focus-within img {
    transform: scale(var(--fx-card-scale));
  }
}


.fx-card:focus-within {
  outline: none;
}
.fx-card a:focus-visible {
  outline: 2px solid var(--qc-primary, #0046d3);
  outline-offset: 3px;
}



.fx-totop {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 1100;
  width: var(--fx-fab-size);
  height: var(--fx-fab-size);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--qc-primary, #0046d3);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 70, 211, .32);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity   var(--fx-card-dur) var(--fx-ease),
    transform var(--fx-card-dur) var(--fx-ease),
    visibility var(--fx-card-dur) linear,
    background-color var(--fx-card-dur) var(--fx-ease);
}
.fx-totop.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.fx-totop:hover { background: var(--qc-primary-dark, #00349e); }
.fx-totop:focus-visible {
  outline: 2px solid var(--qc-primary, #0046d3);
  outline-offset: 3px;
}
.fx-totop svg { width: 20px; height: 20px; }



.fx-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;                    
  width: 100%;
  height: var(--fx-progress-h);
  background: linear-gradient(90deg, #0046d3, #00a3ff);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}



@media (max-width: 768px) {
  :root {
    --fx-dur:        .5s;
    --fx-rise:       16px;
    --fx-shift:      18px;
    --fx-stagger:    50ms;
    --fx-card-lift:  3px;
    --fx-fab-size:   42px;
  }
  [data-fx-parallax] { transform: none !important; }
  .fx-card::after    { display: none; }             
}



@media (prefers-reduced-motion: reduce) {
  [data-fx-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-fx-parallax] { transform: none !important; }
  .fx-card,
  .fx-card img,
  .fx-card::after { transition: none !important; }
  .fx-card:hover,
  .fx-card:focus-within {
    transform: none;
    box-shadow: var(--qc-shadow, 0 4px 16px rgba(16, 24, 40, .07));
  }
  .fx-totop { transition: opacity .2s linear, visibility .2s linear; }
}



html.fx-off [data-fx-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
html.fx-off [data-fx-parallax] { transform: none !important; }
html.fx-off .fx-card::after    { display: none; }
html.fx-off .fx-progress       { display: none; }
