/* intro v29 — Rolls-Royce thread: circle-expand reveal, half-ring, chat alignment, dual-layer parallax */

.intro-thread { min-height: 88vh; }

/* Clip-path circle expand from centre on load */
.intro-thread__reveal {
    animation: intro-thread-expand 900ms ease forwards;
}
@keyframes intro-thread-expand {
    from { clip-path: circle(0% at 50% 50%); }
    to   { clip-path: circle(150% at 50% 50%); }
}

/* Half-ring at the boundary (fixed size — no BS w-N/h-N utility) */
.intro-thread__half {
    width: 16rem;
    height: 8rem;
    opacity: 0.7;
    filter: blur(2px);
}
.intro-thread__sun { width: 6rem; height: 6rem; }
.intro-thread [data-msg] { max-width: 28rem; }

/* Dual-layer parallax offset (set by JS via custom props) */
.intro-thread__island [data-layer] {
    transition: transform 200ms ease-out;
    transform: translate(var(--px, 0), var(--py, 0));
}

/* Chat thread alternate alignment + retro corner tails */
.intro-thread [data-msg] { border-bottom-left-radius: 0.25rem; }
.intro-thread [data-msg]:nth-child(even) {
    margin-left: auto;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
    .intro-thread__reveal { animation: none; }
    .intro-thread__island [data-layer] { transition: none; }
}

/* v23 - comic halftone dot pattern (currentColor keeps it theme-safe, no literal colors) */
.steps-comic-panel__halftone {
    position: absolute;
    top: 0;
    right: 0;
    width: 6rem;
    height: 6rem;
    opacity: 0.15;
    background-image: radial-gradient(currentColor 1.2px, transparent 1.2px);
    background-size: 8px 8px;
    pointer-events: none;
}

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

