/* intro v16 — Metropolis reel: film-perforation strips, image cover, load stagger, radius morph */

/* Film-perforation edge strips: colour comes from Tailwind bg-* on the element; mask punches holes */
.intro-reel__perf {
    -webkit-mask: radial-gradient(circle at center, transparent 0 0.28rem, black 0.3rem) center / 1.5rem 2.2rem;
    mask: radial-gradient(circle at center, transparent 0 0.28rem, black 0.3rem) center / 1.5rem 2.2rem;
    z-index: 1;
}

/* Background image fills the band, keeps aspect via object-fit (no BS utility) */
.intro-reel__row {
    min-height: 18rem;
    transition: border-radius 320ms ease;
    opacity: 0;
    animation: intro-reel-rise 520ms ease forwards;
}
.intro-reel__img {
    object-fit: cover;
    object-position: center;
}

/* Border-radius morph on hover */
.intro-reel__row:hover {
    border-radius: 2.25rem 0.5rem 2.25rem 0.5rem;
}

/* Stagger children — 80ms delay each on load */
.intro-reel__row:nth-child(1) { animation-delay: 0ms; }
.intro-reel__row:nth-child(2) { animation-delay: 80ms; }
.intro-reel__row:nth-child(3) { animation-delay: 160ms; }
.intro-reel__row:nth-child(4) { animation-delay: 240ms; }
.intro-reel__row:nth-child(5) { animation-delay: 320ms; }
.intro-reel__row:nth-child(6) { animation-delay: 400ms; }

@keyframes intro-reel-rise {
    from { opacity: 0; transform: translateY(1.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

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

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

.steps-bg-timeline__card-col {
    max-width: 28rem;
}

.steps-bg-timeline__badge-circle {
    width: 4rem;
    height: 4rem;
}

.steps-bg-timeline__timeline-line {
    height: 1px;
}

/* Mobile: label stays in flow under the badge (no overlap between adjacent steps).
   From md up it detaches below the timeline line, centered on the badge. */
.steps-bg-timeline__badge-label {
    max-width: 8rem;
}

@media (min-width: 768px) {
    .steps-bg-timeline__badge-label {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 2rem;
        max-width: none;
        white-space: nowrap;
    }
}

/* integrations — unified hover (layout; shadow + lift; respect reduced motion) */
.integrations-card-hover {
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.integrations-card-hover:hover {
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
    transform: translateY(-2px) scale(1.03);
}

.integrations-card-hover--shadow-only {
    transition: box-shadow 0.35s ease;
}

.integrations-card-hover--shadow-only:hover {
    transform: none;
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .integrations-card-hover:hover {
        transform: none;
    }
}

/* Primary tile: wpg-preview --tw-primary-* | --bs-primary-scale-*; inherited --bs-primary hex */
.integrations__icon-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    --_ie-from: rgb(var(--tw-primary-500, var(--bs-primary-scale-500, 99 102 241)) / 1);
    --_ie-to: rgb(var(--tw-primary-600, var(--bs-primary-scale-600, 79 70 229)) / 1);
    background-color: var(--bs-primary, rgb(var(--tw-primary-600, var(--bs-primary-scale-600, 79 70 229)) / 1));
    background-image: linear-gradient(to bottom right, var(--_ie-from), var(--_ie-to));
}
.integrations__icon-tile i {
    color: inherit;
}
.integrations__icon-tile svg,
.integrations__icon-tile :is(path, circle, rect, polygon) {
    fill: currentColor;
}

/* Softer card hover shadow (avoids muddy stack with shadow-lg / BS cards) */
.integrations-card-hover:hover {
    box-shadow: 0 0.375rem 1rem rgba(15, 23, 42, 0.07);
}
.integrations-card-hover--shadow-only:hover {
    box-shadow: 0 0.375rem 1rem rgba(15, 23, 42, 0.07);
}

/* Mosaic layout */
.integrations__mosaic-row {
    min-height: 320px;
}

.integrations__mosaic-desc {
    font-size: 0.875rem;
}

/* Mosaic tile sizing, layout and hover behaviour (no colors) */
.integrations-mosaic-overlay__tile {
    min-width: 0;
}

.integrations-mosaic-overlay__tile > img {
    transition: transform 0.7s ease;
}

.integrations-mosaic-overlay__tile--tall {
    min-height: 320px;
}

.integrations-mosaic-overlay__tile--short {
    min-height: 240px;
}

@media (min-width: 768px) {
    .integrations-mosaic-overlay__tile--wide {
        flex: 0 0 auto;
        width: 66.6667%;
    }
    .integrations-mosaic-overlay__tile--narrow {
        flex: 0 0 auto;
        width: 33.3333%;
    }
    .integrations-mosaic-overlay__tile--half {
        flex: 0 0 auto;
        width: 50%;
    }
}

.integrations-mosaic-overlay__icon {
    width: 2.5rem;
    height: 2.5rem;
}

.integrations-mosaic-overlay__category {
    letter-spacing: 0.05em;
}

.integrations-mosaic-overlay__desc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    font-size: 0.875rem;
}

.integrations-mosaic-overlay__tile:hover > img {
    transform: scale(1.1);
}

.integrations-mosaic-overlay__tile:hover .integrations-mosaic-overlay__desc {
    max-height: 6rem;
}

@media (prefers-reduced-motion: reduce) {
    .integrations-mosaic-overlay__tile > img,
    .integrations-mosaic-overlay__desc {
        transition: none;
    }
    .integrations-mosaic-overlay__tile:hover > img {
        transform: none;
    }
}

/* Hover: overlay layers moved out of the sem directive (framework-independent; img + desc handled above) */
.integrations-mosaic-overlay__base,
.integrations-mosaic-overlay__tint { transition: opacity 0.3s ease; }
.integrations-mosaic-overlay__tile:hover .integrations-mosaic-overlay__base { opacity: 0.9; }
.integrations-mosaic-overlay__tile:hover .integrations-mosaic-overlay__tint { opacity: 1; }

.content-prose-column {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.content-heading-gap {
    margin-bottom: 2rem;
}

.content-section-pad {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

