/* intro v22 — Lavazza brutalist: blueprint grid, aurora sweep, outlined heading, progressive stagger */

/* Blueprint engineering-paper grid (colour from Tailwind text-*, lines via currentColor) */
.intro-blue__grid {
    background-image:
        repeating-linear-gradient(0deg, currentColor 0 1px, transparent 1px 28px),
        repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 28px);
    opacity: 0.16;
}

/* Aurora wave sweep horizontal */
.intro-blue__aurora {
    background-size: 200% 100%;
    opacity: 0.3;
    animation: intro-blue-aurora 7s ease-in-out infinite;
}
@keyframes intro-blue-aurora {
    0%, 100% { background-position: 0% 0%; }
    50%      { background-position: 100% 0%; }
}

/* Text-stroke outlined heading (hollow fill, stroke = the element's Tailwind colour) */
.intro-blue__title {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px currentColor;
    text-stroke: 2px currentColor;
    letter-spacing: -0.02em;
}

/* Progressive stagger reveal — pure CSS on the reliable [data-lane-item] attribute; always ends visible */
@keyframes intro-blue-rise {
    from { opacity: 0; transform: translateY(1.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}
.intro-blue [data-lane-item] { animation: intro-blue-rise 500ms ease both; }
.intro-blue [data-lane-item]:nth-child(2) { animation-delay: 120ms; }
.intro-blue [data-lane-item]:nth-child(3) { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
    .intro-blue__aurora { animation: none; }
    .intro-blue [data-lane-item] { animation: none; }
}

.services-grid-dense__serif,
[data-serif] {
    font-family: Georgia, "Times New Roman", Times, serif;
}

.services-grid-dense__dots {
    background-image: radial-gradient(currentColor 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
}

.dark .services-grid-dense__dots,
[data-bs-theme="dark"] .services-grid-dense__dots {
    color: var(--bs-primary);
}

/* process rail — awards list rows, serif marquee */
.process-rail__stage {
    min-height: 24rem;
}

.process-rail__top {
    min-height: 18rem;
}

.process-rail__row {
    transition: background-color 0.25s ease;
}

.process-rail__row:hover {
    background-color: color-mix(in srgb, currentColor 8%, transparent);
}

.process-rail__marquee-track {
    display: flex;
    width: max-content;
    animation: process-rail-marquee 28s linear infinite;
}

.process-rail__marquee-text {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: clamp(1.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-inline: 1rem;
    flex-shrink: 0;
}

.process-rail__animation {
    width: 8rem;
    height: 8rem;
    animation: process-rail-pulse 2s ease-in-out infinite;
}

@keyframes process-rail-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes process-rail-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-rail__marquee-track {
        animation: none;
    }
}

@media (min-width: 992px) {
    .process-rail__stage {
        min-height: 28rem;
    }

    .process-rail__top {
        min-height: 22rem;
    }
}

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

/* FAQ v11 — timeline layout helpers */
.faq-timeline__thumb {
    width: 4rem;
    height: 4rem;
}

.faq-timeline__line {
    left: 2rem;
    width: 0.125rem;
}

@media (min-width: 768px) {
    .faq-timeline__line {
        left: 50%;
        transform: translateX(-50%);
    }
}

