/* 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-tabs__serif,
[data-serif] {
    font-family: Georgia, "Times New Roman", Times, serif;
}

.services-tabs__btn {
    background-color: transparent;
}
.services-tabs__btn:hover {
    background-color: color-mix(in srgb, var(--bs-secondary-color) 6%, transparent);
}
.services-tabs__btn.is-active {
    border-color: var(--bs-primary) !important;
    background-color: color-mix(in srgb, var(--bs-primary) 8%, transparent) !important;
}

/* v26 - blueprint grid-line background + corner ticks (currentColor keeps it theme-safe) */
.steps-blueprint__grid {
    background-image:
        linear-gradient(currentColor 1px, transparent 1px),
        linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 1;
}

[data-blueprint-panel]::before,
[data-blueprint-panel]::after {
    content: "";
    position: absolute;
    width: 0.75rem;
    height: 0.75rem;
}

[data-blueprint-panel]::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid;
    border-left: 2px solid;
}

[data-blueprint-panel]::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

/* benefits v20 — icon tile size (TW w-10 h-10 has no BS util) */
.benefits__icon-tile {
  width: 2.5rem;
  height: 2.5rem;
}

/* quote v16 — grid bookshelf (quote-grid-shelf__* — isolated from quote v12 quote-shelf__*) */

.quote-grid-shelf__art--mesh {
    background-image:
        radial-gradient(circle at 20% 30%, currentColor 0, transparent 42%),
        radial-gradient(circle at 78% 18%, currentColor 0, transparent 38%),
        radial-gradient(circle at 62% 82%, currentColor 0, transparent 45%),
        radial-gradient(circle at 12% 72%, currentColor 0, transparent 36%);
    opacity: 0.18;
}

.quote-grid-shelf__art--hatch {
    background-image: repeating-linear-gradient(
        -38deg,
        transparent,
        transparent 6px,
        currentColor 6px,
        currentColor 7px
    );
    opacity: 0.12;
    mix-blend-mode: overlay;
}

.quote-grid-shelf__art--grain {
    background-image:
        repeating-conic-gradient(from 0deg at 50% 50%, currentColor 0deg 2deg, transparent 2deg 7deg),
        repeating-linear-gradient(90deg, transparent 0 3px, currentColor 3px 4px);
    opacity: 0.08;
}

.quote-grid-shelf__ripple-pool {
    width: 28rem;
    height: 28rem;
    left: var(--ripple-x, 50%);
    top: var(--ripple-y, 50%);
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 0;
    transition: transform 450ms ease, opacity 600ms ease;
    will-change: transform, opacity;
}

.quote-grid-shelf__ripple-pool.is-pulsing {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .quote-grid-shelf__ripple-pool {
        display: none;
    }
}

.quote-grid-shelf__bracket {
    width: 0.5rem;
}

.quote-grid-shelf__bracket--left {
    left: 1rem;
}

.quote-grid-shelf__bracket--right {
    right: 1rem;
}

.quote-grid-shelf__scroll {
    max-height: 36rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.quote-grid-shelf__parent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(8.25rem, auto));
    gap: 1rem;
}

@media (min-width: 768px) {
    .quote-grid-shelf__parent-grid {
        gap: 1.5rem;
    }
}

.quote-grid-shelf__child-grid {
    display: grid;
    grid-row: span 1;
    min-height: 100%;
    grid-template-rows: subgrid;
}

@supports not (grid-template-rows: subgrid) {
    .quote-grid-shelf__child-grid {
        grid-template-rows: auto 1fr auto;
        height: 100%;
    }
}

.quote-grid-shelf__ledge:nth-child(1) {
    top: 25%;
}

.quote-grid-shelf__ledge:nth-child(2) {
    top: 50%;
}

.quote-grid-shelf__ledge:nth-child(3) {
    top: 75%;
}

.quote-grid-shelf__ledge {
    height: 0.25rem;
}

.quote-grid-shelf__book--linocut {
    clip-path: polygon(
        0% 1.5%, 3% 0%, 8% 1%, 15% 0%, 24% 1.2%, 35% 0%, 48% 0.8%, 62% 0%, 75% 1%, 88% 0%, 96% 1.5%, 100% 0.5%,
        100% 98%, 97% 100%, 90% 98.5%, 80% 100%, 68% 98%, 55% 100%, 42% 98.5%, 28% 100%, 14% 98%, 5% 100%, 0% 97%
    );
}

.quote-grid-shelf__opening {
    font-variant: common-ligatures;
    letter-spacing: -0.04em;
}

.quote-grid-shelf__reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 550ms ease, transform 550ms ease;
    transition-delay: calc(var(--shelf-stagger, 0) * 90ms);
}

.quote-grid-shelf__reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .quote-grid-shelf__reveal {
        opacity: 1;
        transform: none;
        transition: none;
        transition-delay: 0ms;
    }
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-grid-shelf-root [role="listitem"]:hover,
    .quote-grid-shelf-root article:hover,
    .quote-grid-shelf-root [class*="quote-grid-shelf__card"]:hover,
    .quote-grid-shelf-root .quote-grid-shelf__book:hover,
    .quote-grid-shelf-root .quote-grid-shelf__step:hover,
    .quote-grid-shelf-root .quote-grid-shelf__index-card:hover,
    .quote-grid-shelf-root .quote-grid-shelf__pill:hover,
    .quote-grid-shelf-root .quote-grid-shelf__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-grid-shelf-root [role="listitem"],
.quote-grid-shelf-root article,
.quote-grid-shelf-root [class*="quote-grid-shelf__card"],
.quote-grid-shelf-root .quote-grid-shelf__book,
.quote-grid-shelf-root .quote-grid-shelf__step,
.quote-grid-shelf-root .quote-grid-shelf__index-card,
.quote-grid-shelf-root .quote-grid-shelf__pill {
    transition: transform 200ms ease;
}

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

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

