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

.timeline-layout__card--hover {
    transition: transform 0.3s ease;
}
.timeline-layout__card--hover:hover {
    transform: scale(1.05);
}

.timeline-layout__img--zoom {
    transition: transform 0.5s ease;
}
.timeline-layout__row:hover .timeline-layout__img--zoom {
    transform: scale(1.1);
}

.timeline-layout__overlay--fade {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.timeline-layout__row:hover .timeline-layout__overlay--fade {
    opacity: 1;
}

.timeline-layout__panel--slide {
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.timeline-layout__row:hover .timeline-layout__panel--slide {
    transform: translateY(0);
}

.timeline-layout__badge--zoom {
    transition: transform 0.3s ease;
}
.timeline-layout__row:hover .timeline-layout__badge--zoom {
    transform: scale(1.25);
}

.timeline-layout__slot {
    width: 3rem;
    height: 3rem;
}

.timeline-layout__badge {
    width: 2rem;
    height: 2rem;
}

.timeline-layout__line {
    width: 0.25rem;
}

.pullquote-accent-quote__track {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    gap: 2rem;
}

@media (min-width: 768px) {
    .pullquote-accent-quote__track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.25rem 1.5rem;
    }
}

.pullquote-accent-quote__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pullquote-accent-quote__surface {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
    flex: 1 1 auto;
}

@media (min-width: 768px) {
    .pullquote-accent-quote__surface {
        gap: 1.25rem;
    }
}

/* quote v21 — card-deck overlap, celtic-knot corners, chrome-frame avatar, clip-path hover reveal */

/* blueprint engineering-paper grid — pattern uses currentColor, no literal color values here */
.quote-deck__blueprint {
    background-image:
        repeating-linear-gradient(0deg, currentColor 0, currentColor 1px, transparent 1px, transparent 24px),
        repeating-linear-gradient(90deg, currentColor 0, currentColor 1px, transparent 1px, transparent 24px);
    background-size: 24px 24px;
}

/* concentric decorative rings — size/position only, border color comes from the sem/theme classes in the template */
.quote-deck__ring {
    top: 50%;
    left: 50%;
    pointer-events: none;
}
.quote-deck__ring--sm {
    width: 12rem;
    height: 12rem;
    transform: translate(-50%, -50%);
}
.quote-deck__ring--md {
    width: 18rem;
    height: 18rem;
    transform: translate(-50%, -50%);
}
.quote-deck__ring--lg {
    width: 24rem;
    height: 24rem;
    transform: translate(-50%, -50%);
}

/* lightning-flash overlay — opacity-only keyframes, irregular via staggered delays */
@keyframes quoteDeckFlash {
    0%, 88%, 100% { opacity: 0; }
    91% { opacity: 1; }
    94% { opacity: 0.2; }
}
.quote-deck__flash {
    animation: quoteDeckFlash 6s steps(1, end) infinite;
}
.quote-deck__flash--a { animation-delay: 0s; }
.quote-deck__flash--b { animation-delay: 2.3s; }
.quote-deck__flash--c { animation-delay: 4.1s; }

/* card-deck overlap rhythm — variable tight/loose offsets, resets to a plain stack below md */
@media (min-width: 768px) {
    .quote-deck__item:nth-child(1) {
        transform: translateY(0.5rem);
        margin-right: -1.25rem;
        z-index: 1;
    }
    .quote-deck__item:nth-child(2) {
        transform: translateY(-0.75rem);
        margin-left: -0.5rem;
        margin-right: -2rem;
        z-index: 3;
    }
    .quote-deck__item:nth-child(3) {
        transform: translateY(1rem);
        margin-left: -0.75rem;
        z-index: 2;
    }
}

.quote-deck__card {
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.quote-deck__card:hover,
.quote-deck__card:focus-within {
    transform: translateY(-0.5rem);
    z-index: 10;
}

/* celtic-knot corner accents — identical sem content per corner, shape/placement handled here */
.quote-deck__knot {
    width: 1.25rem;
    height: 1.25rem;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 35% 35%, 35% 100%, 0 100%);
}
.quote-deck__knot--tl {
    position: absolute;
    top: -0.375rem;
    left: -0.375rem;
}
.quote-deck__knot--tr {
    position: absolute;
    top: -0.375rem;
    right: -0.375rem;
    transform: rotate(90deg);
}
.quote-deck__knot--bl {
    position: absolute;
    bottom: -0.375rem;
    left: -0.375rem;
    transform: rotate(270deg);
}
.quote-deck__knot--br {
    position: absolute;
    bottom: -0.375rem;
    right: -0.375rem;
    transform: rotate(180deg);
}

/* browser-chrome framing for the icon tile */
.quote-deck__chrome {
    height: 1.25rem;
}
.quote-deck__chrome-dot {
    width: 0.375rem;
    height: 0.375rem;
    flex: none;
}
.quote-deck__avatar {
    width: 3.5rem;
}
.quote-deck__glyph {
    height: 2.75rem;
}

/* clip-path reveal on hover — pure CSS, no JS */
.quote-deck__reveal {
    clip-path: inset(0 0 100% 0);
    max-height: 0;
    transition: clip-path 250ms ease, max-height 250ms ease;
}
.quote-deck__card:hover .quote-deck__reveal,
.quote-deck__card:focus-within .quote-deck__reveal {
    clip-path: inset(0 0 0 0);
    max-height: 6rem;
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-deck-root [role="listitem"]:hover,
    .quote-deck-root article:hover,
    .quote-deck-root [class*="quote-deck__card"]:hover,
    .quote-deck-root .quote-deck__book:hover,
    .quote-deck-root .quote-deck__step:hover,
    .quote-deck-root .quote-deck__index-card:hover,
    .quote-deck-root .quote-deck__pill:hover,
    .quote-deck-root .quote-deck__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-deck-root [role="listitem"],
.quote-deck-root article,
.quote-deck-root [class*="quote-deck__card"],
.quote-deck-root .quote-deck__book,
.quote-deck-root .quote-deck__step,
.quote-deck-root .quote-deck__index-card,
.quote-deck-root .quote-deck__pill {
    transition: transform 200ms ease;
}

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

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

