/* Motion accents for the existing Tresan design. No typography or layout overrides. */
.px-hero { overflow: hidden; }
.px-hero-bg {
  transform-origin: 60% 45%;
  animation: tresan-landscape 26s ease-in-out infinite alternate;
  animation-play-state: var(--tresan-hero-play, running);
}
.px-chevron-box {
  /* Bevelled steel / rock-cut profile, within the original image dimensions. */
  clip-path: polygon(0 0, 82% 0, 100% 18%, 100% 100%, 18% 100%, 0 82%);
  isolation: isolate;
  background: #201b16;
}
.px-chevron-box img {
  animation: tresan-camera 14s ease-in-out infinite alternate;
  transform-origin: 50% 45%;
  animation-play-state: var(--tresan-hero-play, running);
}
.px-chevron-box .tresan-reel-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
.px-chevron-box .tresan-reel-frame.is-current { opacity: 1; }
.px-chevron-box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(189,154,99,.1), transparent 40%, rgba(17,17,17,.16));
  box-shadow: inset 0 0 0 1px rgba(189,154,99,.35);
}
.tresan-motion-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,247,233,.45);
  border-radius: 50%;
  background: rgba(20,18,16,.6);
  color: #FFF7E9;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.tresan-motion-toggle:hover { background: #570906; border-color: #BD9A63; }
.tresan-motion-toggle:focus-visible { outline: 2px solid #BD9A63; outline-offset: 3px; }
.px-trust-items > span { position: relative; }
.px-trust-items > span > i {
  display: inline-block;
  animation: tresan-signal 8s ease-in-out infinite;
}
.px-trust-items > span:nth-child(2) > i { animation-delay: 1.4s; }
.px-trust-items > span:nth-child(3) > i { animation-delay: 2.8s; }
.px-trust-items > span:nth-child(4) > i { animation-delay: 4.2s; }
.px-trust-items > span:nth-child(5) > i { animation-delay: 5.6s; }
.px-trust-items > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #BD9A63, transparent);
  transform: scaleX(0);
  opacity: 0;
  animation: tresan-trace 8s ease-in-out infinite;
}
.px-trust-items > span:nth-child(2)::after { animation-delay: 1.4s; }
.px-trust-items > span:nth-child(3)::after { animation-delay: 2.8s; }
.px-trust-items > span:nth-child(4)::after { animation-delay: 4.2s; }
.px-trust-items > span:nth-child(5)::after { animation-delay: 5.6s; }
.px-btn-rect, .px-square-arrow, .px-equip-card {
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
}
.px-btn-rect:hover, .px-square-arrow:hover { transform: translateY(-3px); }
.px-equip-card:hover {
  transform: translateY(-5px);
  border-color: rgba(189,154,99,.65);
  box-shadow: 0 16px 32px rgba(0,0,0,.18);
}
.px-project-card img { animation: tresan-project-camera 20s ease-in-out infinite alternate; }
.px-srv-row.active .px-srv-expanded img { animation: tresan-camera 18s ease-in-out infinite alternate; }
#tresanGalleryCarousel .carousel-item.active > img { animation: tresan-camera 12s ease-in-out infinite alternate; }
html[data-tresan-motion-paused="true"] .px-hero-bg,
html[data-tresan-motion-paused="true"] .px-chevron-box img,
html[data-tresan-motion-paused="true"] .px-trust-items > span > i,
html[data-tresan-motion-paused="true"] .px-trust-items > span::after,
html[data-tresan-motion-paused="true"] .px-project-card img,
html[data-tresan-motion-paused="true"] .px-srv-expanded img,
html[data-tresan-motion-paused="true"] #tresanGalleryCarousel .carousel-item > img { animation-play-state: paused; }
@keyframes tresan-landscape {
  from { transform: scale(1.025) translate3d(-.4%,0,0); }
  to { transform: scale(1.10) translate3d(.5%,-.6%,0); }
}
@keyframes tresan-camera {
  from { transform: scale(1.025) translate3d(-.4%,.3%,0); }
  to { transform: scale(1.12) translate3d(.6%,-.6%,0); }
}
@keyframes tresan-project-camera {
  from { transform: scale(1.01); }
  to { transform: scale(1.065) translate3d(-.4%,-.3%,0); }
}
@keyframes tresan-signal {
  0%, 35%, 100% { transform: translateY(0); filter: none; }
  15% { transform: translateY(-2px); filter: drop-shadow(0 0 5px rgba(189,154,99,.7)); }
}
@keyframes tresan-trace {
  0%, 40%, 100% { transform: scaleX(0); opacity: 0; }
  18% { transform: scaleX(1); opacity: .65; }
}
@media (prefers-reduced-motion: reduce) {
  .px-hero-bg, .px-chevron-box img, .px-trust-items > span > i,
  .px-trust-items > span::after, .px-project-card img,
  .px-srv-expanded img, #tresanGalleryCarousel .carousel-item > img { animation: none !important; transform: none !important; }
  .px-chevron-box .tresan-reel-frame { transition: none; }
  .tresan-motion-toggle { display: none; }
  .px-btn-rect:hover, .px-square-arrow:hover, .px-equip-card:hover { transform: none; }
}
