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

.feed-stream-dots__accent {
  width: 2rem;
  height: 2px;
}

.feed-stream-dots__index {
  width: 3rem;
  height: 3rem;
}

.feed-stream-dots__slot {
  min-width: 0;
}

.feed-stream-dots__bead {
  font-size: 6px;
}

.gallery-masonry__card {
    transition: all 0.3s ease;
}

.gallery-masonry__card:hover {
    transform: scale(1.05);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175);
}

.gallery-masonry__img {
    transition: transform 0.3s ease;
}

.gallery-masonry__card:hover .gallery-masonry__img {
    transform: scale(1.05);
}

.gallery-masonry__overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent);
}

.gallery-masonry__card:hover .gallery-masonry__overlay {
    opacity: 1;
}

/* Bootstrap Grid Fallbacks */
.gallery-masonry__grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .gallery-masonry__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-masonry__card--large {
    grid-row: span 2;
    height: 100%;
}

.gallery-masonry__media--square {
    aspect-ratio: 1 / 1;
}

.gallery-masonry__media--full {
    height: 100%;
    min-height: 100%;
}

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

/* Directory tagline */
.integrations__dir-tagline {
    font-size: 0.78rem;
}

/* Hover effects moved out of the sem directive (custom classes, framework-independent) */
.integrations-v22__fx-item .integrations__icon-tile { transition: transform 0.15s ease; }
.integrations-v22__fx-item:hover .integrations__icon-tile { transform: scale(1.1); }
.integrations-v22__fx-item .integrations-v22__name { transition: color 0.15s ease; }
.integrations-v22__fx-item:hover .integrations-v22__name { color: var(--bs-primary, rgb(var(--tw-primary-400) / 1)); }
.dark .integrations-v22__fx-item:hover .integrations-v22__name { color: var(--bs-primary, rgb(var(--tw-primary-600) / 1)); }
.integrations-v22__fx-item .integrations-v22__fx-arrow { transition: color 0.15s ease, transform 0.15s ease; }
.integrations-v22__fx-item:hover .integrations-v22__fx-arrow { color: var(--bs-primary, rgb(var(--tw-primary-300) / 1)); transform: translateX(0.125rem); }
.dark .integrations-v22__fx-item:hover .integrations-v22__fx-arrow { color: var(--bs-primary, rgb(var(--tw-primary-500) / 1)); }
@media (prefers-reduced-motion: reduce) {
    .integrations-v22__fx-item:hover .integrations__icon-tile,
    .integrations-v22__fx-item:hover .integrations-v22__fx-arrow { transform: none; }
}

/* subscribe v21 — bento grid: geometry shared by both CSS frameworks (Bootstrap has no grid-template utilities) */
.mailing-bento-benefits__section--py-4xl {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.mxw-5xl {
    max-width: 64rem !important;
}

.mailing-bento-benefits__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.mailing-bento-benefits__panel {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    min-height: 14rem;
    padding: 1.5rem;
}

.mailing-bento-benefits__title {
    font-size: 1.5rem;
}

.mailing-bento-benefits__card {
    padding: 1.25rem;
}

.mailing-bento-benefits__dot {
    top: 0.5rem;
    inset-inline-end: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
}

.mailing-bento-benefits__row {
    flex-direction: column;
    gap: 1rem;
}

.mailing-bento-benefits__input {
    padding: 0.75rem 1rem;
}

.mailing-bento-benefits__cta {
    width: 100%;
    padding: 0.75rem 1.5rem;
}

@media (min-width: 640px) {
    .mailing-bento-benefits__row {
        flex-direction: row;
    }

    .mailing-bento-benefits__cta {
        width: auto;
    }
}

@media (min-width: 768px) {
    .mailing-bento-benefits__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mailing-bento-benefits__panel {
        padding: 2rem;
    }

    .mailing-bento-benefits__title {
        font-size: 1.875rem;
    }
}

