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

.features-timeline__decor--pulse {
    animation: features-timeline-pulse-kf 2s infinite;
}
.features-timeline__decor--bounce {
    animation: features-timeline-bounce-kf 2s infinite;
    transform: rotate(12deg);
}
.features-timeline__decor--spin {
    animation: features-timeline-spin-kf 4s linear infinite;
}
.features-timeline__decor--pulse-small {
    animation: features-timeline-pulse-kf 2s infinite;
}
.features-timeline__item:hover .features-timeline__icon {
    transform: scale(1.1);
    transition: transform 0.25s ease;
}
.features-timeline__item:hover .features-timeline__title {
    color: var(--bs-primary);
}

/* ?? step number (BS mode) ?? */
.features-timeline__num-bs {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    color: var(--bs-primary-border-subtle);
    opacity: 0.8;
    min-width: 2.75rem;
    flex-shrink: 0;
    transition: color 0.25s ease, opacity 0.25s ease;
}
.features-timeline__item:hover .features-timeline__num-bs {
    color: var(--bs-primary);
    opacity: 1;
}

@keyframes features-timeline-pulse-kf {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
@keyframes features-timeline-bounce-kf {
    0%, 100% { transform: translateY(-25%) rotate(12deg); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: none rotate(12deg); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}
@keyframes features-timeline-spin-kf {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* -- BS-mode decorative shapes  subtle, non-intrusive -- */
.features-decor__bs-blob {
    background-color: var(--bs-primary-bg-subtle);
    opacity: 0.35;
    filter: blur(48px);
}
.features-decor__bs-shape {
    opacity: 0.15;
}
.features-decor__bs-line {
    border-left: 1px solid var(--bs-primary-border-subtle);
    opacity: 0.18;
}

/* ?? v19 timeline connector line ?? */
.features-timeline__connector {
    position: absolute;
    left: 1.75rem;
    top: 1.75rem;
    bottom: 2rem;
    width: 1px;
    background: linear-gradient(to bottom, var(--bs-primary), rgba(var(--bs-primary-rgb), 0.3), transparent);
    pointer-events: none;
}

/* ?? v19 number watermark ?? */
.features-timeline__number {
    left: -0.25rem;
    top: -0.75rem;
    line-height: 1;
    font-size: 3rem;
    font-weight: 900;
    color: var(--bs-border-color);
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
    position: absolute;
    z-index: 0;
}
/* glossary ladder — figure offset */
.glossary-ladder__fig {
    transition: transform 0.2s ease;
}

.glossary-ladder__fig:hover {
    transform: translateX(4px);
}

.tips-compact__thumb {
    width: 3rem;
    height: 3rem;
}

.tips-compact__thumb--xs {
    width: 1.5rem;
    height: 1.5rem;
}

.tips-compact__min-shrink {
    min-width: 0;
}

