.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;
}

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

/* Overlay: fade in on card hover */
.portfolio-overlay-hover {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-item-hover:hover .portfolio-overlay-hover {
    opacity: 1;
}

/* gallery v16 — polaroid scatter trio.
   Geometry shared by both CSS frameworks (Bootstrap has no utilities for it). */
.gallery-polaroid__section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mxw-4xl {
    max-width: 56rem !important;
}

.mxw-2xl {
    max-width: 42rem !important;
}

.gallery-polaroid__title {
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
}

.gallery-polaroid__lead {
    font-size: 1.125rem;
}

.gallery-polaroid__frame {
    width: 12rem;
    padding: 0.75rem 0.75rem 1.5rem;
}

.gallery-polaroid__caption {
    margin-top: 0.75rem;
}

@media (min-width: 768px) {
    .gallery-polaroid__title {
        font-size: 2.25rem;
    }

    .gallery-polaroid__frame {
        width: 14rem;
    }
}

/* gallery v16 — polaroid scatter trio */
.gallery-polaroid__img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

[data-frame] {
    position: relative;
    transition: transform 220ms ease, z-index 0s;
}

[data-frame="a"] {
    transform: rotate(-3deg);
    z-index: 1;
    margin-right: -1.5rem;
}

[data-frame="b"] {
    transform: rotate(2deg) translateY(-0.75rem);
    z-index: 2;
}

[data-frame="c"] {
    transform: rotate(-1.5deg);
    z-index: 1;
    margin-left: -1.5rem;
}

[data-frame]:hover {
    transform: rotate(0deg) translateY(0);
    z-index: 3;
}

/* quote v27 — BAPE flow-chart: snow drift, script heading, connectors, ripples, drag */

.quote-flow__script-heading {
    font-family: "Segoe Script", "Brush Script MT", cursive;
}

.quote-flow__snow {
    position: absolute;
    width: 0.35rem;
    height: 0.35rem;
    animation: quoteFlowSnow 12s linear infinite;
}
.quote-flow__snow--1 { left: 8%; top: -5%; animation-delay: 0s; }
.quote-flow__snow--2 { left: 18%; top: -8%; animation-delay: 1.5s; }
.quote-flow__snow--3 { left: 32%; top: -4%; animation-delay: 3s; }
.quote-flow__snow--4 { left: 48%; top: -7%; animation-delay: 0.8s; }
.quote-flow__snow--5 { left: 62%; top: -6%; animation-delay: 2.2s; }
.quote-flow__snow--6 { left: 74%; top: -9%; animation-delay: 4s; }
.quote-flow__snow--7 { left: 84%; top: -5%; animation-delay: 1.1s; }
.quote-flow__snow--8 { left: 92%; top: -7%; animation-delay: 2.8s; }
@keyframes quoteFlowSnow {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 0.6; }
    100% { transform: translate(-3rem, 110vh); opacity: 0; }
}

.quote-flow__connector {
    height: 3rem;
}

.quote-flow__ripple-wrap {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
}
.quote-flow__ripple {
    animation: quoteFlowRipple 2.4s ease-out infinite;
}
.quote-flow__ripple--delay {
    animation-delay: 1.2s;
}
@keyframes quoteFlowRipple {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

.quote-flow__step-badge {
    width: 2rem;
    height: 2rem;
}

.quote-flow__card {
    border-radius: 0.25rem;
    box-shadow: 3px 3px 0 0 currentColor;
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.quote-flow__card.is-dragging {
    opacity: 0.65;
    transform: rotate(-1deg) scale(1.02);
}
[data-quote-flow-item].is-drop-target .quote-flow__card {
    box-shadow: 0 0 0 2px var(--bs-primary);
}

.quote-flow__thumb {
    aspect-ratio: 1 / 1;
    min-height: 4rem;
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-flow-root [role="listitem"]:hover,
    .quote-flow-root article:hover,
    .quote-flow-root [class*="quote-flow__card"]:hover,
    .quote-flow-root .quote-flow__book:hover,
    .quote-flow-root .quote-flow__step:hover,
    .quote-flow-root .quote-flow__index-card:hover,
    .quote-flow-root .quote-flow__pill:hover,
    .quote-flow-root .quote-flow__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-flow-root [role="listitem"],
.quote-flow-root article,
.quote-flow-root [class*="quote-flow__card"],
.quote-flow-root .quote-flow__book,
.quote-flow-root .quote-flow__step,
.quote-flow-root .quote-flow__index-card,
.quote-flow-root .quote-flow__pill {
    transition: transform 200ms ease;
}

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

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


.prompt-beacon__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.prompt-beacon__appeal--shift:hover { transform: scale(1.05); transition: transform .2s ease; }

.prompt-beacon__sheet--haze { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

