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

/* -- Feature card hover -- */
.feat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* -- Icon box sizing -- */
.feat-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.feat-icon-box--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}
.feat-icon-box--xl {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}
.feat-icon-box--circle {
    border-radius: 50%;
}

/* -- Nav/filmstrip button hover -- */
.feat-btn-nav {
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.feat-btn-nav:hover {
    transform: scale(1.1);
}

/* -- Table row hover -- */
.feat-table-row-hover {
    transition: background-color 0.15s ease;
}
.feat-table-row-hover:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* -- Accordion item hover -- */
.feat-accordion-hover summary:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;
}

/* -- DL item hover -- */
.feat-dl-item-hover {
    transition: background-color 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.feat-dl-item-hover:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* -- Deck button hover -- */
.feat-deck-btn {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.feat-deck-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
/* Geometry shared by both CSS frameworks (Bootstrap has no utilities for it) */
.mxw-4xl {
    max-width: 56rem !important;
}

.whyus-groove-thread__band {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.whyus-groove-thread__title {
    font-size: 1.875rem;
}

.whyus-groove-thread__word {
    margin-inline-end: 0.75rem;
}

.whyus-groove-thread__word:last-child {
    margin-inline-end: 0;
}

.whyus-groove-thread__lead {
    font-size: 1rem;
}

.whyus-groove-thread__stat {
    justify-content: center;
    min-width: 0;
    height: fit-content;
    padding: 1.5rem;
    transition: box-shadow 150ms ease;
}

/* hover ring — `:where()` keeps specificity at 0-1-0 so Tailwind's own hover:ring-2 wins there */
:where(.whyus-groove-thread__stat):hover,
:where(.whyus-groove-thread__card):hover {
    box-shadow: 0 0 0 2px var(--bs-primary-border-subtle);
}

.whyus-groove-thread__stat-row {
    min-width: 0;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: start;
}

.whyus-groove-thread__stat-value {
    /* fluid cap: never wider than the panel, tops out at the Tailwind text-4xl/5xl size */
    min-width: 0;
    max-width: 100%;
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.whyus-groove-thread__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.whyus-groove-thread__card {
    padding: 1.25rem 1.5rem;
    transition: box-shadow 150ms ease;
}

.whyus-groove-thread__chip {
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

.whyus-groove-thread__card-title {
    min-width: 0;
    font-size: 1.125rem;
}

@media (min-width: 640px) {
    .whyus-groove-thread__stat-row {
        flex-direction: row;
        align-items: center;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .whyus-groove-thread {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .whyus-groove-thread__band {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 2.5rem;
    }

    .whyus-groove-thread__col--main {
        grid-column: span 8 / span 8;
    }

    .whyus-groove-thread__col--side {
        grid-column: span 4 / span 4;
        align-self: start;
        justify-content: flex-end;
    }

    .whyus-groove-thread__stat-row {
        flex-direction: column;
        align-items: flex-end;
        text-align: end;
    }

    .whyus-groove-thread__title {
        font-size: 2.25rem;
    }

    .whyus-groove-thread__lead {
        font-size: 1.125rem;
    }

    .whyus-groove-thread__stat-value {
        font-size: clamp(2rem, 3.4vw, 3rem);
    }

    .whyus-groove-thread__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .whyus-groove-thread__card-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .whyus-groove-thread__col--main {
        grid-column: span 9 / span 9;
    }

    .whyus-groove-thread__col--side {
        grid-column: span 3 / span 3;
    }

    .whyus-groove-thread__title {
        font-size: 3rem;
    }
}

/* whyus v22 — brush-stroke blob decor (irregular border-radius trick; no TW/BS utility produces this shape) */
.whyus-groove-thread__blob {
    z-index: 0;
    pointer-events: none;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}

.whyus-groove-thread__blob--a {
    width: 10rem;
    height: 10rem;
    opacity: 0.6;
    top: -2rem;
    left: -3rem;
    transform: rotate(-8deg);
}

.whyus-groove-thread__blob--b {
    width: 7rem;
    height: 7rem;
    opacity: 0.6;
    top: 40%;
    right: -2.5rem;
    transform: rotate(12deg);
}

.whyus-groove-thread__blob--c {
    width: 6rem;
    height: 6rem;
    opacity: 0.6;
    bottom: -2.5rem;
    left: 18%;
    transform: rotate(20deg);
}

/* benefit cards — equal height feel in the 2-col grid */
.whyus-groove-thread__card {
    min-height: 100%;
}

/* staggered scroll reveal — JS adds is-visible after a per-item delay from a fixed sequence (STAGGER_DELAYS) */
.whyus-groove-thread__reveal {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 500ms ease, transform 500ms ease;
}

.whyus-groove-thread__reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.values-hub-glow {
    width: min(100%, 42rem);
    height: 16rem;
    filter: blur(3rem);
}

.values-hub-sq-10 {
    width: 2.5rem;
    height: 2.5rem;
}

.values-hub-sq-11 {
    width: 2.75rem;
    height: 2.75rem;
}

.values-hub-spotlight {
    min-height: 12rem;
}

.values-hub-spotlight__rings {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22rem;
    height: 22rem;
    max-width: 90vw;
    max-height: 90vw;
    pointer-events: none;
}

.values-hub-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--bs-primary, #0d6efd) 22%, transparent);
    pointer-events: none;
}

.values-hub-ring--a {
    width: 100%;
    height: 100%;
    opacity: 0.45;
}

.values-hub-ring--b {
    width: 72%;
    height: 72%;
    border-style: dashed;
    opacity: 0.35;
}

.values-hub-core-logo :is(img, svg) {
    max-height: 2.75rem;
    width: auto;
}

.values-hub-core-bs {
    min-height: 11rem;
    max-width: 13rem;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--bs-body-bg, #fff) 92%, var(--bs-primary, #0d6efd) 8%),
        var(--bs-body-bg, #fff)
    );
}

.values-hub-card-bs {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.values-hub-card-bs:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--bs-box-shadow);
    border-color: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.35) !important;
}

