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

/* process glassmorphism — fog blobs, backdrop blur, rune decor, num sizing */
.process-glass__fog {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.process-glass__fog::before {
    content: '';
    position: absolute;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    filter: blur(5rem);
    opacity: 0.1;
    top: -10rem;
    left: -5rem;
    background: var(--bs-primary);
}

.process-glass__fog::after {
    content: '';
    position: absolute;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    filter: blur(5rem);
    opacity: 0.07;
    bottom: -8rem;
    right: -5rem;
    background: var(--bs-primary);
}

.process-glass__card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.process-glass__card-hov:hover,
.process-glass__card-hov:focus-within {
    transform: translateY(-0.35rem);
    box-shadow: var(--bs-box-shadow-lg);
}

.process-glass__detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 280ms ease, opacity 220ms ease, margin-top 220ms ease;
}

.process-glass__card-hov:hover .process-glass__detail,
.process-glass__card-hov:focus-within .process-glass__detail {
    max-height: 12rem;
    opacity: 1;
    margin-top: 0.25rem;
}

.process-glass__rune {
    position: absolute;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.04;
    bottom: -0.5rem;
    right: 1rem;
    pointer-events: none;
    user-select: none;
}

.process-glass__num {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .process-glass__card,
    .process-glass__detail {
        transition: none;
    }

    .process-glass__card-hov:hover,
    .process-glass__card-hov:focus-within {
        transform: none;
    }

    .process-glass__detail {
        max-height: none;
        opacity: 1;
        overflow: visible;
    }
}

/* content frame tiles — animated icon stage (replaces photo area) */
.content-frame-tiles__icon-stage {
    min-height: 14rem;
}

.content-frame-tiles__icon-tile {
    width: 5.5rem;
    height: 5.5rem;
    animation: content-frame-tiles-float 6s ease-in-out infinite;
}

.content-frame-tiles__icon-ring {
    width: 7rem;
    height: 7rem;
    animation: content-frame-tiles-ring 4.5s ease-in-out infinite;
}

.content-frame-tiles__icon-pulse {
    animation: content-frame-tiles-pulse 3.5s ease-in-out infinite;
}

.content-frame-tiles__icon-glyph {
    animation: content-frame-tiles-tilt 5s ease-in-out infinite;
    transform-origin: center;
}

.content-frame-tiles__icon-stage--0 .content-frame-tiles__icon-tile {
    animation-delay: 0s;
}

.content-frame-tiles__icon-stage--0 .content-frame-tiles__icon-ring {
    animation-delay: 0.3s;
}

.content-frame-tiles__icon-stage--0 .content-frame-tiles__icon-pulse {
    animation-delay: 0s;
}

.content-frame-tiles__icon-stage--0 .content-frame-tiles__icon-glyph {
    animation-delay: 0.2s;
}

.content-frame-tiles__icon-stage--1 .content-frame-tiles__icon-tile {
    animation-delay: 0.9s;
}

.content-frame-tiles__icon-stage--1 .content-frame-tiles__icon-ring {
    animation-delay: 1.2s;
}

.content-frame-tiles__icon-stage--1 .content-frame-tiles__icon-pulse {
    animation-delay: 0.8s;
}

.content-frame-tiles__icon-stage--1 .content-frame-tiles__icon-glyph {
    animation-delay: 1s;
}

.content-frame-tiles__icon-stage--2 .content-frame-tiles__icon-tile {
    animation-delay: 1.8s;
}

.content-frame-tiles__icon-stage--2 .content-frame-tiles__icon-ring {
    animation-delay: 2.1s;
}

.content-frame-tiles__icon-stage--2 .content-frame-tiles__icon-pulse {
    animation-delay: 1.6s;
}

.content-frame-tiles__icon-stage--2 .content-frame-tiles__icon-glyph {
    animation-delay: 1.8s;
}

@keyframes content-frame-tiles-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.4rem);
    }
}

@keyframes content-frame-tiles-ring {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.08) rotate(12deg);
        opacity: 0.35;
    }
}

@keyframes content-frame-tiles-pulse {
    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 0.15;
    }
}

@keyframes content-frame-tiles-tilt {
    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(8deg) scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .content-frame-tiles__icon-tile,
    .content-frame-tiles__icon-ring,
    .content-frame-tiles__icon-pulse,
    .content-frame-tiles__icon-glyph {
        animation: none;
    }
}

/* quote — featured academic quote + supporting cards */

/* serif lead + drop-cap. BS has no font-serif utility; font-family here is allowed (it is not a color) */
.quote-essay__lead {
    font-family: ui-serif, Georgia, "Times New Roman", serif;
}

.quote-essay__lead::first-letter {
    float: left;
    font-size: 3.25rem;
    line-height: 0.8;
    padding-right: 0.5rem;
    font-weight: 700;
}

/* author avatar: fixed size + cover (neither has a BS utility) */
.quote-essay__avatar {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
}

.quote-essay__glow {
    width: 16rem;
    height: 16rem;
    filter: blur(64px);
}

/* stepping-stone offset rhythm on supporting cards — layout only */
@media (min-width: 1024px) {
    .quote-essay__step:nth-child(odd) {
        transform: translateY(0.75rem);
    }
    .quote-essay__step:nth-child(even) {
        transform: translateY(-0.25rem);
    }
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-essay-root [role="listitem"]:hover,
    .quote-essay-root article:hover,
    .quote-essay-root [class*="quote-essay__card"]:hover,
    .quote-essay-root .quote-essay__book:hover,
    .quote-essay-root .quote-essay__step:hover,
    .quote-essay-root .quote-essay__index-card:hover,
    .quote-essay-root .quote-essay__pill:hover,
    .quote-essay-root .quote-essay__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-essay-root [role="listitem"],
.quote-essay-root article,
.quote-essay-root [class*="quote-essay__card"],
.quote-essay-root .quote-essay__book,
.quote-essay-root .quote-essay__step,
.quote-essay-root .quote-essay__index-card,
.quote-essay-root .quote-essay__pill {
    transition: transform 200ms ease;
}

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

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

