/* Hover — поза @sem */
.services__tile--lift {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.services__tile--lift:hover {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

@media (min-width: 640px) {
  .services__tile--lift:hover {
    transform: scale(1.05);
  }
}

.services__cta--lift {
  transition: filter 0.2s ease, transform 0.2s ease;
}

@media (min-width: 640px) {
  .services__cta--lift:hover {
    transform: scale(1.05);
  }
}

.services__cta--lift:hover {
  filter: brightness(0.92);
}

/* process works — marquee ticker, title scale, list rows, background logo (no colors) */
.process-works__marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 3rem;
    animation: process-works-marquee 32s linear infinite;
}
.process-works__marquee-item {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}
.process-works__title {
    word-break: break-word;
}
.process-works__row {
    transition: transform 200ms ease;
}
.process-works__row:hover {
    transform: translateX(0.25rem);
}
.process-works__logo {
    min-height: 16rem;
    pointer-events: none;
}
.process-works__logo-mark {
    width: 14rem;
    height: 14rem;
    flex-shrink: 0;
    animation: process-works-drift 8s ease-in-out infinite;
}
.process-works__logo-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}
.process-works__logo-mark svg,
.process-works__logo-mark svg :is(path, circle, rect, polygon) {
    fill: currentColor !important;
}
@keyframes process-works-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}
@keyframes process-works-drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0.5rem, -0.75rem, 0);
    }
}
@media (min-width: 768px) {
    .process-works__logo {
        min-height: 20rem;
    }
    .process-works__logo-mark {
        width: 18rem;
        height: 18rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .process-works__marquee-track,
    .process-works__logo-mark {
        animation: none;
    }
    .process-works__row:hover {
        transform: none;
    }
}

/* whyus v19 — fluid clamp() heading (Tailwind has no bare clamp() utility) */
.whyus-glitch-stack__heading {
    font-size: clamp(1.75rem, 1.3rem + 1.8vw, 3rem);
    line-height: 1.1;
}

/* sticky reading-progress bar — JS sets --wpg-progress (0..1), CSS turns it into a scaleX */
.whyus-glitch-stack__progress {
    overflow: hidden;
}

.whyus-glitch-stack__progress-fill {
    transform: scaleX(var(--wpg-progress, 0));
    transform-origin: left center;
    will-change: transform;
}

/* responsive art-direction crop for the section hero image (BS has no object-fit util) */
.whyus-glitch-stack__media-img {
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    .whyus-glitch-stack__media-img {
        object-position: center 35%;
    }
}

/* scale-up-on-load reveal, staggered per card by JS (IntersectionObserver adds is-visible) */
.whyus-glitch-stack__reveal {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 550ms ease, transform 550ms ease;
}

.whyus-glitch-stack__reveal.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* cursor-follow spotlight — currentColor keeps this file color-free, opacity/lightness only */
.whyus-glitch-stack__card {
    isolation: isolate;
}

.whyus-glitch-stack__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), currentColor, transparent 60%);
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
}

.whyus-glitch-stack__card:hover::after {
    opacity: 0.05;
}

/* cross-hatch corner marks — repeating-linear-gradient on currentColor, no hardcoded color */
.whyus-glitch-stack__hatch {
    pointer-events: none;
}

.whyus-glitch-stack__hatch::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, currentColor 0 1px, transparent 1px 4px);
    opacity: 0.6;
}

.whyus-glitch-stack__hatch--tl {
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.whyus-glitch-stack__hatch--br {
    clip-path: polygon(100% 100%, 100% 0, 0 100%);
}

/* native details marker rotates open/closed instead of the UA default triangle */
.whyus-glitch-stack__summary {
    list-style: none;
    cursor: pointer;
}

.whyus-glitch-stack__summary::-webkit-details-marker {
    display: none;
}

.whyus-glitch-stack__chevron {
    transition: transform 200ms ease;
}

details[open] > .whyus-glitch-stack__summary .whyus-glitch-stack__chevron {
    transform: rotate(45deg);
}

