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

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

.steps-arrow-stack__badge-circle {
    width: 3rem;
    height: 3rem;
}

.steps-arrow-stack__icon-box {
    width: 2rem;
    height: 2rem;
}

.steps-arrow-stack__sm-circle {
    width: 1.5rem;
    height: 1.5rem;
}

/* 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;
    width: 3.5rem;
    height: 3.5rem;
    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);
}

/* Filmstrip scroll */
.integrations__fade-left {
    width: 4rem;
    background: linear-gradient(to right, var(--tw-gradient-from, transparent), transparent);
}

.integrations__fade-right {
    width: 4rem;
    background: linear-gradient(to left, var(--tw-gradient-from, transparent), transparent);
}

.integrations__filmstrip-scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.integrations__filmstrip-track {
    width: max-content;
}

.integrations__filmstrip-card {
    width: 280px;
}

.integrations__filmstrip-stripe {
    height: 0.5rem;
}

.integrations__scroll-dot {
    width: 0.5rem;
    height: 0.5rem;
}

.integrations__card-summary {
    font-size: 0.875rem;
}

/* Solid primary CTA (was low-contrast text link on light cards) */
.integrations__cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background-color: var(--bs-primary, rgb(var(--tw-primary-600, var(--bs-primary-scale-600, 79 70 229)) / 1));
    color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}
.integrations__cta-primary:hover {
    filter: brightness(1.06);
    color: #fff !important;
}

/* cta slice — diagonal bottom edge + cover image */
.cta-slice__section {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 93%);
  padding-bottom: 5rem;
}

.cta-slice__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-slice__title-track {
  letter-spacing: 0.28em;
}

.cta-slice__tagline-track {
  letter-spacing: 0.14em;
}

.cta-slice__signature-track {
  letter-spacing: 0.22em;
}

@media (max-width: 767px) {
  .cta-slice__section {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 97%);
    padding-bottom: 3rem;
  }

  .cta-slice__title-track {
    letter-spacing: 0.16em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-slice__section {
    clip-path: none;
    padding-bottom: 0;
  }
}

