/*
 * BS Reboot задає img { max-width: 100%; height: auto } — у порожній рамці висота стає 0.
 * Рамка з aspect-ratio + absolute img гарантують видиму площу.
 */
.intro-performance-split__thumb {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 14rem;
    aspect-ratio: 4 / 3;
}

.intro-performance-split__thumb > img.intro-performance-split__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    z-index: 0;
}

.intro-performance-split__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.intro-performance-split__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* process feature — image ratios, list markers (no colors) */
.process-feature__hero-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.process-feature__side-img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    max-width: 18rem;
}
.process-feature__bullet {
    width: 0.375rem;
    height: 0.375rem;
    flex-shrink: 0;
}
.process-feature__index {
    min-width: 1.5rem;
}

/* quote v11 — constellation layout, LED-style cards, CRT phosphor background */
/* All color values below are `currentColor` (inherited from the Tailwind/Bootstrap
   text-color utility on the same element) or plain theme-token utilities set in the
   template — no hex/rgb/hsl literals live here. */

.constellation-quote__phosphor {
    background-image: radial-gradient(circle at 50% 20%, currentColor, transparent 70%);
}

.constellation-quote__scanlines {
    background-image: repeating-linear-gradient(
        to bottom,
        currentColor 0,
        currentColor 1px,
        transparent 1px,
        transparent 4px
    );
    background-size: 100% 4px;
}

/* drifting noise-field blobs — layout/animation only, tint comes from the tw/bs bg utility */
.constellation-quote__blob {
    width: 18rem;
    height: 18rem;
    filter: blur(48px);
    animation: constellation-quote-drift 18s ease-in-out infinite;
}

.constellation-quote__blob--a {
    top: -4rem;
    left: -3rem;
    animation-delay: 0s;
}

.constellation-quote__blob--b {
    right: -3rem;
    bottom: -5rem;
    animation-delay: 6s;
}

.constellation-quote__blob--c {
    top: 38%;
    left: 55%;
    width: 14rem;
    height: 14rem;
    animation-delay: 12s;
}

@keyframes constellation-quote-drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: .55;
    }
    50% {
        transform: translate(2rem, -1.5rem) scale(1.12);
        opacity: .9;
    }
}

/* geometric constellation accents (pentagon / octagon) */
.constellation-quote__shape {
    width: 3rem;
    height: 3rem;
}

.constellation-quote__shape--pentagon {
    top: 1.5rem;
    right: 8%;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.constellation-quote__shape--octagon {
    bottom: 2rem;
    left: 6%;
    width: 2.5rem;
    height: 2.5rem;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* thin connecting lines between constellation nodes */
.constellation-quote__line {
    height: 1px;
}

.constellation-quote__line--a {
    top: 46%;
    left: 8%;
    width: 34%;
    transform: rotate(6deg);
}

.constellation-quote__line--b {
    top: 58%;
    right: 8%;
    width: 34%;
    transform: rotate(-8deg);
}

/* staggered node offsets for the constellation feel — margin (not transform) so grid gap stays intact */
.constellation-quote__col--2 {
    margin-top: 1.75rem;
}

.constellation-quote__col--3 {
    margin-top: 2.25rem;
}

.constellation-quote__col--4 {
    margin-top: 0.25rem;
}

.constellation-quote__card {
    min-height: 15rem;
    letter-spacing: .04em;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

/* drag-to-reorder visual feedback — opacity only, no color change */
.constellation-quote__col.is-dragging {
    opacity: .4;
}

.constellation-quote__col.is-drop-target .constellation-quote__card {
    transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
    .constellation-quote__blob {
        animation: none;
    }
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .constellation-quote-root [role="listitem"]:hover,
    .constellation-quote-root article:hover,
    .constellation-quote-root [class*="constellation-quote__card"]:hover,
    .constellation-quote-root .constellation-quote__book:hover,
    .constellation-quote-root .constellation-quote__step:hover,
    .constellation-quote-root .constellation-quote__index-card:hover,
    .constellation-quote-root .constellation-quote__pill:hover,
    .constellation-quote-root .constellation-quote__item:hover {
        transform: translateY(-0.125rem);
    }
}

.constellation-quote-root [role="listitem"],
.constellation-quote-root article,
.constellation-quote-root [class*="constellation-quote__card"],
.constellation-quote-root .constellation-quote__book,
.constellation-quote-root .constellation-quote__step,
.constellation-quote-root .constellation-quote__index-card,
.constellation-quote-root .constellation-quote__pill {
    transition: transform 200ms ease;
}

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

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

/* whyus v20 — fluid parametric backdrop, glitch/scroll reveals */
/* No colors here: `currentColor` reads the Tailwind text-color class already applied on each node. */

/* ── Left-half backdrop: fluid swooping edge instead of a straight 50% cut ── */
.whyus-parametric__bg-half {
    overflow: hidden;
    clip-path: polygon(0 0, 92% 0, 100% 18%, 94% 40%, 100% 62%, 90% 100%, 0 100%);
}

/* ── Mesh-gradient blobs — radial gradient from currentColor, slow organic drift ── */
.whyus-parametric__blob {
    background-image: radial-gradient(circle at 50% 50%, currentColor 0%, transparent 70%);
    will-change: transform;
}

.whyus-parametric__blob--a {
    animation: whyus-parametric-drift-a 22s ease-in-out infinite;
}

.whyus-parametric__blob--b {
    animation: whyus-parametric-drift-b 28s ease-in-out infinite;
}

.whyus-parametric__blob--c {
    animation: whyus-parametric-drift-c 34s ease-in-out infinite;
}

@keyframes whyus-parametric-drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(2rem, 3rem) scale(1.08); }
}

@keyframes whyus-parametric-drift-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-3rem, -2rem) scale(0.95); }
}

@keyframes whyus-parametric-drift-c {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(1.5rem, -2.5rem) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .whyus-parametric__blob--a,
    .whyus-parametric__blob--b,
    .whyus-parametric__blob--c {
        animation: none;
    }
}

/* ── Film-perforation edge strip ── */
.whyus-parametric__perf-strip {
    background-image: repeating-linear-gradient(to bottom, currentColor 0, currentColor 6px, transparent 6px, transparent 18px);
}

/* ── Row / card containers ── */
.whyus-parametric__row {
    position: relative;
}

.whyus-parametric__card {
    transition: transform 200ms ease;
}

.whyus-parametric__card:hover {
    transform: translateY(-0.25rem);
}

.whyus-parametric__note {
    transition: transform 200ms ease;
}

.whyus-parametric__note:hover {
    transform: translateX(0.25rem);
}

/* ── Skewed swoop divider between rows (Zaha-Hadid-style dynamic line) ── */
.whyus-parametric__divider {
    display: block;
    height: 0.375rem;
    margin-top: 2.5rem;
    clip-path: polygon(0 40%, 20% 60%, 40% 20%, 60% 70%, 80% 30%, 100% 55%, 100% 100%, 0 100%);
}

.whyus-parametric__divider--lg {
    height: 0.5rem;
    margin-top: 3rem;
}

/* ── Appearance animation: glitch flicker on load, then settle ── */
.whyus-parametric__glitch {
    animation: whyus-parametric-glitch 900ms steps(2, end) 1 both;
}

@keyframes whyus-parametric-glitch {
    0% { opacity: 0; transform: translate(0, 0); }
    10% { opacity: 1; transform: translate(-6px, 2px); }
    20% { opacity: 0.2; transform: translate(4px, -3px); }
    30% { opacity: 1; transform: translate(-3px, 0); }
    45% { opacity: 0.4; transform: translate(3px, 2px); }
    60% { opacity: 1; transform: translate(0, -2px); }
    80% { opacity: 0.8; transform: translate(-1px, 1px); }
    100% { opacity: 1; transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .whyus-parametric__glitch {
        animation: none;
    }
}

/* ── Scroll-driven reveal for the micro-ring rows ──
   Static, fully visible fallback for browsers without scroll-timeline support. */
.whyus-parametric__row--micro {
    opacity: 1;
    transform: none;
}

@supports (animation-timeline: view()) {
    .whyus-parametric__row--micro {
        opacity: 0;
        animation: whyus-parametric-reveal linear both;
        animation-timeline: view();
        /* entry-based range: cover-N% never completes for bottom-of-section cards */
        animation-range: entry 0% entry 100%;
    }
}

@keyframes whyus-parametric-reveal {
    from { opacity: 0; transform: translateY(2rem); }
    to { opacity: 1; transform: translateY(0); }
}

