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

/* Card hover: scale */
.portfolio-item-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item-hover:hover {
    transform: 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.05);
}

/* Gradient overlay: fade in on card hover */
.portfolio-overlay-hover {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-item-hover:hover .portfolio-overlay-hover {
    opacity: 1;
}

.gallery-cards__card {
    transition: transform 0.3s ease;
}
.gallery-cards__card:hover {
    transform: scale(1.05);
}
.gallery-cards__img {
    height: 16rem;
}

/* quote v9 — catalog grid accents (layout only, no colors) */

.quote-catalog__rule {
    height: 0.25rem;
    width: 4rem;
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-catalog-root [role="listitem"]:hover,
    .quote-catalog-root article:hover,
    .quote-catalog-root [class*="quote-catalog__card"]:hover,
    .quote-catalog-root .quote-catalog__book:hover,
    .quote-catalog-root .quote-catalog__step:hover,
    .quote-catalog-root .quote-catalog__index-card:hover,
    .quote-catalog-root .quote-catalog__pill:hover,
    .quote-catalog-root .quote-catalog__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-catalog-root [role="listitem"],
.quote-catalog-root article,
.quote-catalog-root [class*="quote-catalog__card"],
.quote-catalog-root .quote-catalog__book,
.quote-catalog-root .quote-catalog__step,
.quote-catalog-root .quote-catalog__index-card,
.quote-catalog-root .quote-catalog__pill {
    transition: transform 200ms ease;
}

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

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

/* trust-reel — marquee rows of logo tiles; layout & motion only (colours live in the template) */

.trust-reel__caption {
    letter-spacing: 0.2em;
}

.trust-reel__track {
    width: max-content;
    animation: trust-reel-slide 55s linear infinite;
}

.trust-reel__track--r2 {
    animation-direction: reverse;
    animation-duration: 65s;
    animation-delay: -20s;
}

.trust-reel__track--r3 {
    animation-duration: 50s;
    animation-delay: -35s;
}

.trust-reel__viewport:hover .trust-reel__track {
    animation-play-state: paused;
}

.trust-reel__group {
    gap: 1.25rem;
    padding-right: 1.25rem;
}

.trust-reel__tile {
    width: 12.5rem;
    height: 6.5rem;
}

.trust-reel__name {
    letter-spacing: -0.01em;
}

@keyframes trust-reel-slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 767.98px) {
    .trust-reel__group {
        gap: 0.75rem;
        padding-right: 0.75rem;
    }

    .trust-reel__tile {
        width: 9.5rem;
        height: 5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trust-reel__track {
        animation: none;
    }

    .trust-reel__viewport {
        overflow-x: auto;
    }
}

