/* intro v29 — Rolls-Royce thread: circle-expand reveal, half-ring, chat alignment, dual-layer parallax */

.intro-thread { min-height: 88vh; }

/* Clip-path circle expand from centre on load */
.intro-thread__reveal {
    animation: intro-thread-expand 900ms ease forwards;
}
@keyframes intro-thread-expand {
    from { clip-path: circle(0% at 50% 50%); }
    to   { clip-path: circle(150% at 50% 50%); }
}

/* Half-ring at the boundary (fixed size — no BS w-N/h-N utility) */
.intro-thread__half {
    width: 16rem;
    height: 8rem;
    opacity: 0.7;
    filter: blur(2px);
}
.intro-thread__sun { width: 6rem; height: 6rem; }
.intro-thread [data-msg] { max-width: 28rem; }

/* Dual-layer parallax offset (set by JS via custom props) */
.intro-thread__island [data-layer] {
    transition: transform 200ms ease-out;
    transform: translate(var(--px, 0), var(--py, 0));
}

/* Chat thread alternate alignment + retro corner tails */
.intro-thread [data-msg] { border-bottom-left-radius: 0.25rem; }
.intro-thread [data-msg]:nth-child(even) {
    margin-left: auto;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
    .intro-thread__reveal { animation: none; }
    .intro-thread__island [data-layer] { transition: none; }
}

/* Декор, z-index, анімації затримок карток, таб-bar, keyframes, hover */
.services__wrap-stack {
  z-index: 10;
}

.services__stack-10 {
  position: relative;
  z-index: 10;
}

.services__deco--shape-a {
  position: absolute;
  top: 5rem;
  left: 4rem;
  width: 4rem;
  height: 4rem;
  animation-delay: 0.5s;
}

.services__deco--shape-b {
  position: absolute;
  top: 8rem;
  right: 5rem;
  width: 3rem;
  height: 3rem;
  animation-delay: 1s;
}

.services__deco--shape-c {
  position: absolute;
  bottom: 6rem;
  left: 5rem;
  width: 5rem;
  height: 5rem;
  animation-delay: 1.5s;
}

.services__deco--shape-d {
  position: absolute;
  bottom: 8rem;
  right: 4rem;
  width: 3.5rem;
  height: 3.5rem;
  animation-delay: 2s;
}

.services__deco--line-a {
  position: absolute;
  top: 33%;
  left: 0;
  width: 8rem;
  height: 1px;
}

.services__deco--line-b {
  position: absolute;
  bottom: 25%;
  right: 0;
  width: 7rem;
  height: 1px;
}

.services__deco--svg-a {
  position: absolute;
  top: 6rem;
  left: 33%;
  width: 0.75rem;
  height: 0.75rem;
}

.services__deco--svg-b {
  position: absolute;
  top: 10rem;
  right: 33%;
  width: 0.5rem;
  height: 0.5rem;
  animation-delay: 0.8s;
}

.services__deco--svg-c {
  position: absolute;
  bottom: 8rem;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin-left: -0.5rem;
  animation-delay: 1.5s;
}

.services__panel-grid > div:nth-child(1) .services__panel-card {
  animation-delay: 0s;
}

.services__panel-grid > div:nth-child(2) .services__panel-card {
  animation-delay: 0.1s;
}

.services__panel-grid > div:nth-child(3) .services__panel-card {
  animation-delay: 0.2s;
}

.services__panel-grid > div:nth-child(4) .services__panel-card {
  animation-delay: 0.3s;
}

.services__panel-grid > div:nth-child(5) .services__panel-card {
  animation-delay: 0.4s;
}

.services__panel-grid > div:nth-child(6) .services__panel-card {
  animation-delay: 0.5s;
}

.services__panel-grid > div:nth-child(7) .services__panel-card {
  animation-delay: 0.6s;
}

.services__panel-grid > div:nth-child(8) .services__panel-card {
  animation-delay: 0.7s;
}

.services__panel-grid > div:nth-child(9) .services__panel-card {
  animation-delay: 0.8s;
}

.services__panel-grid > div:nth-child(10) .services__panel-card {
  animation-delay: 0.9s;
}

.services__panel-grid > div:nth-child(11) .services__panel-card {
  animation-delay: 1s;
}

.services__panel-grid > div:nth-child(12) .services__panel-card {
  animation-delay: 1.1s;
}

.services__tab-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 576px) {
  .services__tab-bar {
    gap: 0.75rem;
  }
}

@keyframes services-shape-pulse-kf {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes services-shape-bounce-kf {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-25%);
  }
}

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

.services__shape--pulse {
  animation: services-shape-pulse-kf 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.services__shape--bounce {
  animation: services-shape-bounce-kf 1s infinite;
}

.services__shape--ping {
  animation: services-shape-ping-kf 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.services__tile--lift {
  transition: box-shadow 0.5s 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.02);
  }
}

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

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

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

.services__tab--lift {
  transition: transform 0.3s ease;
}

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

.services__blob {
  transition: opacity 0.5s ease, transform 0.7s ease;
}

.services__tile:hover .services__blob--a {
  transform: scale(1.25);
}

.services__tile:hover .services__blob--b {
  transform: scale(1.1);
}

.services__sheen {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.services__tile:hover .services__sheen {
  opacity: 1;
}

.services__underline-glow {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.services__tile:hover .services__underline-glow {
  opacity: 0.6;
}

.services__float-layer {
  opacity: 0.05;
  transition: opacity 0.5s ease;
}

.services__tile:hover .services__float-layer {
  opacity: 0.1;
}

.services__icon--tilt {
  transition: transform 0.3s ease;
}

.services__tile:hover .services__icon--tilt {
  transform: rotate(12deg);
}

.services__card-heading {
  transition: color 0.3s ease;
}

.services__tile:hover .services__card-heading {
  color: #60a5fa;
}

.dark .services__tile:hover .services__card-heading {
  color: #93c5fd;
}

[data-bs-theme="dark"] .services__tile:hover .services__card-heading {
  color: var(--bs-primary, #6ea8fe);
}

/* process tron — grid bg pattern, card glow line, hover + active state */
.process-tron__grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(currentColor 1px, transparent 1px),
        linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 3rem 3rem;
}

.process-tron__card {
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.process-tron__card-hov:hover,
.process-tron__card-hov:focus-within,
.process-tron__card.is-active {
    transform: translateY(-0.35rem);
    box-shadow: var(--bs-box-shadow-lg);
    border-color: var(--bs-primary);
}

.process-tron__glow-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bs-primary);
    opacity: 0;
    transition: opacity 220ms ease;
}

.process-tron__card-hov:hover .process-tron__glow-line,
.process-tron__card-hov:focus-within .process-tron__glow-line,
.process-tron__card.is-active .process-tron__glow-line {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .process-tron__card {
        transition: none;
    }

    .process-tron__card-hov:hover,
    .process-tron__card-hov:focus-within,
    .process-tron__card.is-active {
        transform: 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);
}

/* faq v26 — masonry board */
.faq-masonry__col {
  min-width: 0;
}

.faq-masonry__cell {
  position: relative;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 768px) {
  .faq-masonry__cell {
    min-height: 13.5rem;
  }
}

.faq-masonry__body {
  width: 100%;
  flex: 1 1 auto;
}

.faq-masonry__answer {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.faq-masonry__col--featured .faq-masonry__cell {
  min-height: 14rem;
}

@media (min-width: 768px) {
  .faq-masonry__col--featured .faq-masonry__cell {
    min-height: 16.5rem;
  }
}

.faq-masonry__col--featured .faq-masonry__answer {
  -webkit-line-clamp: 5;
}

.faq-masonry__photo {
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 500ms ease;
}

.faq-masonry__cell:hover .faq-masonry__photo {
  filter: grayscale(0);
}

.faq-masonry__shade {
  transition: opacity 300ms ease;
}

.faq-masonry__cell--media:hover .faq-masonry__shade {
  opacity: 0.92;
}

