/* intro v23 — BAPE grunge wizard: film strip, giant numbers, clip-path wipe hover, height-expand step */

/* Full-width step photo — cinematic banner, object-fit has no BS utility */
.intro-grit__photo {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

/* Progress track height (no BS h-N utility) */
.intro-grit__track { height: 0.25rem; }

/* Clip-path reveal on hover: primary wipe grows from the corner */
.intro-grit__wipe {
    clip-path: circle(0% at 90% 10%);
    opacity: 0.12;
    transition: clip-path 420ms ease;
}
.intro-grit__card:hover .intro-grit__wipe {
    clip-path: circle(150% at 90% 10%);
}

/* Height-expand accordion-style step entrance */
.intro-grit__step {
    animation: intro-grit-expand 420ms ease;
    transform-origin: top;
}
@keyframes intro-grit-expand {
    from { opacity: 0; transform: scaleY(0.96) translateY(-0.5rem); }
    to   { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* Progress bar transition */
.intro-grit__bar { transition: width 360ms ease; width: 0; }

/* Stepper dots — state via opacity, colour stays a Tailwind class */
.intro-grit__dot {
    width: 0.625rem;
    height: 0.625rem;
    opacity: 0.35;
    transition: opacity 200ms ease, transform 200ms ease;
}
.intro-grit__dot.is-active {
    opacity: 1;
    transform: scale(1.35);
}

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

/* Flex: дозволити прокрутку тексту в колонці однакової висоти (BS + TW) */
/* Flex column: allow inner scroll in equal-height grid */
.portfolio-v8-item {
    min-height: 0;
}

.portfolio-v8-box {
    min-height: 0;
}

.portfolio-v8-tech {
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.portfolio-v8-tech:hover {
    transform: scale(1.05);
}

/* Card hover: lift up + scale */
.portfolio-item-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item-hover:hover {
    transform: translateY(-0.5rem) scale(1.05);
}

/* Image: zoom on card hover */
.portfolio-item-hover .portfolio-img-hover {
    transition: transform 0.5s ease;
}
.portfolio-item-hover:hover .portfolio-img-hover {
    transform: scale(1.1);
}

/* content plain — thin vertical rule height (BS has no h-16 spine utility) */
.content-plain__fine-rule {
    height: 6rem;
}

/* quote v24 — orbit layout: full-bleed photo, grain, SVG path draw-on-scroll */

.quote-orbit__frame {
    margin: 0;
    height: 100%;
}
.quote-orbit__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.quote-orbit__grain {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    pointer-events: none;
}

.quote-orbit__path {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    transition: stroke-dashoffset 1200ms ease;
}
.quote-orbit__path.is-drawn {
    stroke-dashoffset: 0;
}

.quote-orbit__grid {
    min-height: 12rem;
}
.quote-orbit__hub {
    width: 4.5rem;
    height: 4.5rem;
}
.quote-orbit__quote {
    font-variant: small-caps;
}

@media (min-width: 1200px) {
    .quote-orbit__col:nth-child(1) { transform: translateY(-0.5rem); }
    .quote-orbit__col:nth-child(2) { transform: translateY(0.75rem); }
    .quote-orbit__col:nth-child(3) { transform: translateY(-0.25rem); }
    .quote-orbit__col:nth-child(4) { transform: translateY(0.5rem); }
    .quote-orbit__col:nth-child(5) { transform: translateY(-0.75rem); }
    .quote-orbit__col:nth-child(6) { transform: translateY(0.25rem); }
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-orbit-root [role="listitem"]:hover,
    .quote-orbit-root article:hover,
    .quote-orbit-root [class*="quote-orbit__card"]:hover,
    .quote-orbit-root .quote-orbit__book:hover,
    .quote-orbit-root .quote-orbit__step:hover,
    .quote-orbit-root .quote-orbit__index-card:hover,
    .quote-orbit-root .quote-orbit__pill:hover,
    .quote-orbit-root .quote-orbit__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-orbit-root [role="listitem"],
.quote-orbit-root article,
.quote-orbit-root [class*="quote-orbit__card"],
.quote-orbit-root .quote-orbit__book,
.quote-orbit-root .quote-orbit__step,
.quote-orbit-root .quote-orbit__index-card,
.quote-orbit-root .quote-orbit__pill {
    transition: transform 200ms ease;
}

.quote-orbit-root a:focus-visible,
.quote-orbit-root button:focus-visible,
.quote-orbit-root [tabindex="0"]:focus-visible,
.quote-orbit-root input:focus-visible,
.quote-orbit-root summary:focus-visible,
.quote-orbit-root [role="slider"]:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

@media (hover: hover) {
    .quote-orbit-root button:hover,
    .quote-orbit-root a:hover,
    .quote-orbit-root summary:hover {
        opacity: 0.92;
    }
}

/* Bootstrap: позиції/розміри без інлайну (TW — у @sem); імена без номера варіанту */
.stats__overlay-dot-a {
  position: absolute;
  top: 5rem;
  left: 4rem;
  width: 0.5rem;
  height: 0.5rem;
}

.stats__overlay-dot-b {
  position: absolute;
  top: 8rem;
  right: 5rem;
  width: 0.75rem;
  height: 0.75rem;
}

.stats__overlay-dot-c {
  position: absolute;
  bottom: 6rem;
  left: 5rem;
  width: 0.25rem;
  height: 0.25rem;
}

.stats__overlay-dot-d {
  position: absolute;
  bottom: 8rem;
  right: 4rem;
  width: 0.5rem;
  height: 0.5rem;
}

.stats__line-accent-t {
  position: absolute;
  top: 25%;
  left: 0;
  width: 8rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--bs-primary-rgb, 13, 110, 253), 0.35),
    transparent
  );
}

.stats__line-accent-b {
  position: absolute;
  bottom: 33%;
  right: 0;
  width: 7rem;
  height: 1px;
  background: linear-gradient(
    270deg,
    transparent,
    rgba(var(--bs-primary-rgb, 13, 110, 253), 0.3),
    transparent
  );
}

.stats__decor-ring-t {
  position: absolute;
  top: 6rem;
  left: 25%;
  width: 1rem;
  height: 1rem;
}

.stats__decor-ring-b {
  position: absolute;
  bottom: 7rem;
  right: 25%;
  width: 0.75rem;
  height: 0.75rem;
}

.stats__dashboard-card {
  max-width: 20rem;
}

.stats__blob-tr-dim {
  position: absolute;
  top: 0;
  right: 0;
  width: 6rem;
  height: 6rem;
}

.stats__blob-bl-dim {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 5rem;
  height: 5rem;
}

.stats__header-icon-dim {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
}

.stats__dot-dim {
  width: 0.5rem;
  height: 0.5rem;
  min-width: 0.5rem;
  min-height: 0.5rem;
}

.stats__bottom-accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.25rem;
}

.stats__bg-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.stats__progress-svg rect {
  transition: width 1s ease;
}

@keyframes stats-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes stats-bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

@keyframes stats-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes stats-spin {
  to { transform: rotate(360deg); }
}

.stats-anim-pulse {
  animation: stats-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.stats-anim-bounce {
  animation: stats-bounce 1s infinite;
}

.stats-anim-ping {
  animation: stats-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.stats-anim-spin {
  animation: stats-spin 1s linear infinite;
}

.stats-card-hover {
  transition:
    box-shadow 0.5s ease,
    transform 0.5s ease;
}

.stats-card-hover:hover {
  box-shadow:
    0 25px 50px -12px rgb(0 0 0 / 0.25);
  transform: scale(1.05);
}

.stats-bg-dim-hover {
  transition: opacity 0.5s ease;
  opacity: 0.05;
}

.stats-card-hover:hover .stats-bg-dim-hover {
  opacity: 0.1;
}

.stats-blob-tr-hover {
  transition: transform 0.7s ease;
  transform: translate(2rem, -2rem);
}

.stats-card-hover:hover .stats-blob-tr-hover {
  transform: translate(2rem, -2rem) scale(1.25);
}

.stats-blob-bl-hover {
  transition: transform 0.5s ease;
  transform: translate(-1.5rem, 1.5rem);
}

.stats-card-hover:hover .stats-blob-bl-hover {
  transform: translate(-1.5rem, 1.5rem) scale(1.1);
}

.stats-header-icon-hover {
  transition: transform 0.3s ease;
}

.stats-card-hover:hover .stats-header-icon-hover {
  transform: rotate(12deg);
}

.stats-bottom-accent-hover {
  transition: opacity 0.3s ease;
  opacity: 0;
}

.stats-card-hover:hover .stats-bottom-accent-hover {
  opacity: 0.6;
}

.cta-services-split__marquee {
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 20%, transparent 95%);
}

.cta-services-split__marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  animation: cta-services-split__marquee 28s linear infinite;
}

@keyframes cta-services-split__marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.cta-services-split__cta {
  transition: filter 0.2s ease, transform 0.15s ease;
}

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

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

.cta-services-split__cta-icon {
  transition: transform 0.2s ease;
}

.cta-services-split__item-hov {
  transition: border-color 0.2s ease, padding-inline-start 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .cta-services-split__marquee-inner {
    animation: none;
  }

  .cta-services-split__cta:hover,
  .cta-services-split__cta:focus-visible {
    transform: none;
  }
}

