.intro-animated-gradient__root {
    padding-top: clamp(4rem, 12vw, 10rem);
    padding-bottom: clamp(4rem, 12vw, 10rem);
    min-height: min(32rem, 85vh);
}

@keyframes intro-animated-gradient-spin {
    to {
        transform: rotate(360deg);
    }
}

.intro-animated-gradient__spin--left,
.intro-animated-gradient__spin--right {
    width: 85%;
    height: 85%;
    top: 7.5%;
    animation-name: intro-animated-gradient-spin;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    transform-origin: 50% 50%;
}

.intro-animated-gradient__spin--left {
    left: -18%;
    animation-duration: 48s;
}

.intro-animated-gradient__spin--right {
    right: -18%;
    animation-duration: 60s;
    animation-direction: reverse;
}

.intro-animated-gradient__area {
    max-width: 48rem;
}

.gallery-flush-cards__card {
    transition: transform 0.3s ease;
}
.gallery-flush-cards__card:hover {
    transform: scale(1.05);
}
.gallery-flush-cards__img {
    height: 16rem;
}

/* Flex: дозволити прокрутку тексту в колонці однакової висоти (BS + TW) */
/* Flex column: allow inner scroll in equal-height grid */
.portfolio-v8-item {
    min-height: 0;
}

.portfolio-v8-box {
    min-height: 0;
}

.portfolio-v8-tech {
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.portfolio-v8-tech:hover {
    transform: scale(1.05);
}

/* Card hover: lift up + scale */
.portfolio-item-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item-hover:hover {
    transform: translateY(-0.5rem) scale(1.05);
}

/* Image: zoom on card hover */
.portfolio-item-hover .portfolio-img-hover {
    transition: transform 0.5s ease;
}
.portfolio-item-hover:hover .portfolio-img-hover {
    transform: scale(1.1);
}

/* quote v26 — Bugatti duo: VHS lines, rain, typewriter cursor, scroll-snap, newspaper columns */

.quote-v26__vhs {
    opacity: 0.35;
}

.quote-v26__drop {
    width: 1px;
    animation: quoteV26Rain 5s linear infinite;
}
.quote-v26__drop:nth-child(1) { left: 8%; animation-delay: 0s; }
.quote-v26__drop:nth-child(2) { left: 22%; animation-delay: 1.1s; }
.quote-v26__drop:nth-child(3) { left: 38%; animation-delay: 0.4s; }
.quote-v26__drop:nth-child(4) { left: 55%; animation-delay: 2s; }
.quote-v26__drop:nth-child(5) { left: 71%; animation-delay: 0.9s; }
.quote-v26__drop:nth-child(6) { left: 86%; animation-delay: 1.7s; }
@keyframes quoteV26Rain {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 0.5; }
    100% { transform: translateY(110vh); opacity: 0; }
}

.quote-v26__cursor {
    display: inline-block;
    width: 0.55em;
    margin-left: 0.1em;
    border-right: 2px solid currentColor;
    animation: quoteV26Blink 1s step-end infinite;
}
@keyframes quoteV26Blink {
    50% { opacity: 0; }
}

.quote-v26__scroller {
    max-height: 28rem;
    scroll-snap-type: y mandatory;
}
.quote-v26__scroller > .col {
    scroll-snap-align: start;
}

.quote-v26__columns {
    column-gap: 1.5rem;
}

.quote-v26__ticket pre {
    margin: 0;
    white-space: pre-wrap;
}

.quote-v26__ring {
    animation: quoteV26Glow 3s ease-in-out infinite;
}
@keyframes quoteV26Glow {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.03); opacity: 1; }
}

.quote-v26__halftone {
    width: 4rem;
    height: 4rem;
    margin-top: -0.5rem;
    margin-right: -0.5rem;
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-v26-root [role="listitem"]:hover,
    .quote-v26-root article:hover,
    .quote-v26-root [class*="quote-v26__card"]:hover,
    .quote-v26-root .quote-v26__book:hover,
    .quote-v26-root .quote-v26__step:hover,
    .quote-v26-root .quote-v26__index-card:hover,
    .quote-v26-root .quote-v26__pill:hover,
    .quote-v26-root .quote-v26__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-v26-root [role="listitem"],
.quote-v26-root article,
.quote-v26-root [class*="quote-v26__card"],
.quote-v26-root .quote-v26__book,
.quote-v26-root .quote-v26__step,
.quote-v26-root .quote-v26__index-card,
.quote-v26-root .quote-v26__pill {
    transition: transform 200ms ease;
}

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

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

