/* intro v28 — Arc diagonal-split: clip split, floating rings, ransom-note words, grayscale hover, click burst */

/* Diagonal split zone */
.intro-arc2__split {
    clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
    opacity: 0.6;
}

/* Floating rings / donuts (fixed size — no BS w-N/h-N utility) */
.intro-arc2__ring { width: 10rem; height: 10rem; animation: intro-arc2-float 7s ease-in-out infinite; }
.intro-arc2__ring--2 { width: 6rem; height: 6rem; animation-duration: 9s; animation-delay: 1s; }
@keyframes intro-arc2-float {
    50% { transform: translateY(-1.2rem) rotate(20deg); }
}

/* Serif accent (paired with sans body) */
.intro-arc2__serif { font-family: ui-serif, Georgia, "Times New Roman", serif; }

/* Hero image grayscale → colour reveal on hover */
.intro-arc2__figure { aspect-ratio: 4 / 3; }
.intro-arc2__img {
    object-fit: cover;
    filter: grayscale(1);
    transition: filter 420ms ease;
}
.intro-arc2__figure:hover .intro-arc2__img { filter: grayscale(0); }

/* Ransom-note mixed letters: alternate rotation, weight, family (no colour) */
.intro-arc2__word {
    display: inline-block;
    margin-right: 0.25em;
}
.intro-arc2__word:nth-child(3n+1) { transform: rotate(-4deg); font-weight: 900; }
.intro-arc2__word:nth-child(3n+2) { transform: rotate(3deg);  font-family: ui-serif, Georgia, serif; font-style: italic; }
.intro-arc2__word:nth-child(3n+3) { transform: rotate(-1deg); font-weight: 700; text-transform: uppercase; }

/* Click burst spark (inherits the button's primary colour via currentColor) */
.intro-arc2__react { position: relative; overflow: visible; }
.intro-arc2__spark {
    position: absolute;
    left: 50%;
    top: 50%;
    pointer-events: none;
    animation: intro-arc2-burst 640ms ease-out forwards;
}
@keyframes intro-arc2-burst {
    to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.4) rotate(160deg); }
}

@media (prefers-reduced-motion: reduce) {
    .intro-arc2__ring { animation: none; }
}

.services-minimal__serif,
[data-serif] {
    font-family: Georgia, "Times New Roman", Times, serif;
}

.services-minimal__body {
    min-width: 0;
}

/* v28 - scattered rotation per card (per-index transform has no TW/BS utility) */
[data-scatter-card] {
    transition: transform 200ms ease;
}

[data-scatter-card="0"] {
    transform: rotate(-3deg);
}

[data-scatter-card="1"] {
    transform: rotate(2deg) translateY(-0.5rem);
}

[data-scatter-card="2"] {
    transform: rotate(-1.5deg);
}

[data-scatter-card]:hover {
    transform: rotate(0deg) translateY(0);
}

/* 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);
}

/* Лише layout / рух; кольори теми — у Blade */
.socialproof-card-hover {
    transition:
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.socialproof__stat-value,
.socialproof__stat-label {
    transition: transform 0.3s ease, color 0.2s ease;
}

@media (hover: hover) {
    .socialproof-card-hover:hover {
        box-shadow: 0 22px 44px -18px rgba(15, 23, 42, 0.2);
    }

    .dark .socialproof-card-hover:hover {
        box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.5);
    }

    .socialproof-card-hover:hover .socialproof__stat-value {
        transform: scale(1.08);
    }
}

@media (hover: hover) and (min-width: 640px) {
    .socialproof-card-hover--lift:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .socialproof-card-hover,
    .socialproof__stat-value,
    .socialproof__stat-label {
        transition: none;
    }

    .socialproof-card-hover:hover,
    .socialproof-card-hover:hover .socialproof__stat-value,
    .socialproof-card-hover--lift:hover {
        transform: none;
    }
}

.socialproof__strip {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative;
    overflow: hidden;
}

.socialproof__strip.visible {
    opacity: 1;
    transform: translateX(0);
}

.socialproof__strip:nth-child(even) {
    transform: translateX(40px);
}

.socialproof__strip.visible:nth-child(even) {
    transform: translateX(0);
}

.socialproof__inner {
    position: relative;
    clip-path: polygon(0 0, 100% 0, 97% 100%, 0 100%);
    padding: 2rem 3rem;
    margin-bottom: -0.5rem;
}

.socialproof__strip:nth-child(even) .socialproof__inner {
    clip-path: polygon(3% 0, 100% 0, 100% 100%, 0 100%);
}

.socialproof__value {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.socialproof__accent-block {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.15;
    right: -20px;
    top: -20px;
}

.socialproof__strip:nth-child(even) .socialproof__accent-block {
    left: -20px;
    right: auto;
}

.socialproof__strip-content {
    min-width: 12rem;
}

.cta-stagger-services__grid-lines {
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.cta-stagger-services__grid-line {
  flex: 1 1 0;
  height: 100%;
  border-inline-end-width: 1px;
  border-inline-end-style: solid;
}

.cta-stagger-services__grid-line:last-child {
  border-inline-end-width: 0;
}

.cta-stagger-services__logo {
  display: grid;
  grid-template-columns: repeat(3, 1.25rem);
  gap: 0.25rem;
}

.cta-stagger-services__logo-cell {
  width: 1.25rem;
  height: 1.25rem;
}

.cta-stagger-services__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cta-stagger-services__item--shift {
  margin-inline-start: 12%;
}

.cta-stagger-services__item-num {
  font-size: 0.875rem;
  vertical-align: super;
  line-height: 0;
  margin-inline-end: 0.35rem;
}

@media (max-width: 767px) {
  .cta-stagger-services__item--shift {
    margin-inline-start: 0;
  }
}

@media (min-width: 768px) {
  .cta-stagger-services__item--shift {
    margin-inline-start: 14%;
  }
}

/* CTA button — TW + BS */
.cta-stagger-services__cta {
  transition: filter 0.2s ease, transform 0.15s ease;
}

.cta-stagger-services__cta:hover,
.cta-stagger-services__cta:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.cta-stagger-services__cta:hover .cta-stagger-services__cta-icon,
.cta-stagger-services__cta:focus-visible .cta-stagger-services__cta-icon {
  transform: translate(2px, -2px);
}

.cta-stagger-services__cta-icon {
  transition: transform 0.2s ease;
}

/* Service strip cards — BS hover parity */
.cta-stagger-services__item-hov {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cta-stagger-services__item-hov:hover,
.cta-stagger-services__item-hov:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--bs-box-shadow-lg);
  border-color: var(--bs-primary) !important;
}

.cta-stagger-services__item-hov:hover .cta-stagger-services__item-num,
.cta-stagger-services__item-hov:focus-within .cta-stagger-services__item-num {
  color: var(--bs-primary) !important;
}

@media (prefers-reduced-motion: reduce) {
  .cta-stagger-services__cta:hover,
  .cta-stagger-services__cta:focus-visible,
  .cta-stagger-services__item-hov:hover,
  .cta-stagger-services__item-hov:focus-within {
    transform: none;
  }

  .cta-stagger-services__cta:hover .cta-stagger-services__cta-icon,
  .cta-stagger-services__cta:focus-visible .cta-stagger-services__cta-icon {
    transform: none;
  }
}

