/*!
 * © 2026 Codice Vinci. Všechna práva vyhrazena.
 * Tento kód je duševním vlastnictvím společnosti Codice Vinci.
 * Neoprávněné kopírování tohoto souboru jakýmkoli médiem je přísně zakázáno.
 * Vlastní a důvěrné.
 */
/* ================================================
   EKOZINK – Process Animations
   SVG-based animated process visualizations
   ================================================ */

/* ── Process Flow Section ── */
.process-flow {
    position: relative;
    padding: var(--space-3xl) 0;
}

.process-flow__wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    position: relative;
    padding: var(--space-2xl) 0;
    width: 100%;
}

/* Removed scrollbar classes since we are wrapping */

/* ── Individual Process Stage ── */
.process-stage {
    flex: 1 1 200px;
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.process-stage.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.process-stage:nth-child(1) { transition-delay: 0.1s; }
.process-stage:nth-child(2) { transition-delay: 0.3s; }
.process-stage:nth-child(3) { transition-delay: 0.5s; }
.process-stage:nth-child(4) { transition-delay: 0.7s; }
.process-stage:nth-child(5) { transition-delay: 0.9s; }

/* Stage Icon Container */
.process-stage__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(20, 184, 166, 0.15), rgba(20, 184, 166, 0.03));
    border: 2px solid rgba(20, 184, 166, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s var(--ease-out);
}

.process-stage:hover .process-stage__icon {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.2), 0 0 60px rgba(20, 184, 166, 0.1);
    transform: scale(1.08);
}

/* Continuous stream pulse ring */
.process-stage__icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--teal-400);
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    animation: nodeRingPulseStream 9s ease-out infinite;
}

.process-stage:nth-child(1) .process-stage__icon::before { animation-delay: 0s; }
.process-stage:nth-child(3) .process-stage__icon::before { animation-delay: 2s; }
.process-stage:nth-child(5) .process-stage__icon::before { animation-delay: 4s; }
.process-stage:nth-child(7) .process-stage__icon::before { animation-delay: 6s; }
.process-stage:nth-child(9) .process-stage__icon::before { animation-delay: 8s; }

/* Pulse ring on hover */
.process-stage__icon::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(20, 184, 166, 0.4);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s var(--ease-out);
}

.process-stage:hover .process-stage__icon::after {
    opacity: 1;
    transform: scale(1);
    animation: pulseRing 2s ease-in-out infinite;
}

.process-stage__number {
    position: absolute;
    top: -8px;
    right: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-cta);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(20, 184, 166, 0.4);
}

.process-stage__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.process-stage__desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 180px;
    margin: 0 auto;
}

/* ── Animated Connection Lines ── */
.process-connector {
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    position: relative;
    z-index: 1;
    align-self: center;
    margin-top: -50px;
}

.process-connector__line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-600), var(--emerald-500));
    position: relative;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.6s var(--ease-out);
}

.process-connector__line.animate-in {
    opacity: 1;
    transform: scaleX(1);
}

.process-connector:nth-child(2) .process-connector__line::after { animation-delay: 1s; }
.process-connector:nth-child(4) .process-connector__line::after { animation-delay: 3s; }
.process-connector:nth-child(6) .process-connector__line::after { animation-delay: 5s; }
.process-connector:nth-child(8) .process-connector__line::after { animation-delay: 7s; }

/* Animated particle on the line */
.process-connector__line::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-400);
    box-shadow: 0 0 12px var(--teal-400), 0 0 24px rgba(20, 184, 166, 0.3);
    animation: flowParticleStream 9s linear infinite;
    opacity: 0;
}

/* Arrow head */
.process-connector__line::before {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    border: 5px solid transparent;
    border-left: 6px solid var(--emerald-500);
    animation: pulseHorizontalArrow 9s linear infinite;
    opacity: 0.4;
    z-index: 2;
}

.process-connector:nth-child(2) .process-connector__line::before { animation-delay: 1s; }
.process-connector:nth-child(4) .process-connector__line::before { animation-delay: 3s; }
.process-connector:nth-child(6) .process-connector__line::before { animation-delay: 5s; }
.process-connector:nth-child(8) .process-connector__line::before { animation-delay: 7s; }

/* ── Animated Recycling Symbol ── */
.recycle-symbol {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    aspect-ratio: 1;
}

.recycle-symbol__svg {
    width: 100%;
    height: 100%;
    display: block;
    /* NO rotation on the whole SVG — text stays upright */
}

/* Orbit ring rotates independently */
.recycle-orbit-ring {
    transform-origin: center;
    animation: orbitSpin 30s linear infinite;
}

/* Arrow stroke-dashoffset draw animation + continuous pulse */
.recycle-arrow {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawArrow 2s var(--ease-out) forwards, pulseArrowGlow 3s ease-in-out infinite;
}

.recycle-arrow--1 { animation-delay: 0.3s, 2s; }
.recycle-arrow--2 { animation-delay: 0.8s, 3s; }
.recycle-arrow--3 { animation-delay: 1.3s, 4s; }

/* Arrowheads fade in + continuous pulse */
.recycle-arrowhead {
    opacity: 0;
    transform-origin: center;
    animation: fadeArrowhead 0.5s var(--ease-out) forwards, pulseArrowGlow 3s ease-in-out infinite;
}

.recycle-arrowhead--1 { animation-delay: 1.3s, 2s; }
.recycle-arrowhead--2 { animation-delay: 1.8s, 3s; }
.recycle-arrowhead--3 { animation-delay: 2.3s, 4s; }

@keyframes pulseArrowGlow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 2px rgba(20, 184, 166, 0.3)); }
    50% { filter: brightness(1.8) drop-shadow(0 0 15px rgba(52, 211, 153, 0.9)); }
}

/* Center pulse ring */
.recycle-center-pulse {
    animation: centerPulse 3.5s ease-in-out infinite;
}

/* Zn text gentle glow */
.recycle-zn {
    animation: znGlow 4s ease-in-out infinite;
}

/* Labels */
.recycle-label {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    background: rgba(24, 24, 27, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(20, 184, 166, 0.12);
    border-radius: 100px;
    white-space: nowrap;
    transition: all 0.4s var(--ease-out);
    opacity: 0;
}

.recycle-label:hover {
    border-color: rgba(20, 184, 166, 0.35);
    box-shadow: 0 0 24px rgba(20, 184, 166, 0.12);
    transform: scale(1.06) !important;
}

.recycle-label--top {
    top: -4%;
    left: 50%;
    transform: translateX(-50%);
    animation: labelFadeInTop 0.6s var(--ease-out) 2.6s forwards;
}

.recycle-label--right {
    bottom: -4%;
    right: -6%;
    animation: labelFadeIn 0.6s var(--ease-out) 2.9s forwards;
}

.recycle-label--left {
    bottom: -4%;
    left: -6%;
    animation: labelFadeIn 0.6s var(--ease-out) 3.2s forwards;
}

.recycle-label__icon {
    font-size: 1.1rem;
    line-height: 1;
}

.recycle-label__text {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.recycle-label:hover .recycle-label__text {
    color: var(--text-primary);
}

/* Process step labels along triangle edges */
.recycle-step {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    white-space: nowrap;
    cursor: help;
}

.recycle-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.3);
    font-family: 'Inter', system-ui;
    font-size: 0.6rem;
    font-weight: 700;
    color: #2dd4bf;
    flex-shrink: 0;
}

.recycle-step__text {
    font-family: 'Inter', system-ui;
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(161, 161, 170, 0.7);
    letter-spacing: 0.02em;
}

/* Right edge: Sběr popela (midpoint of top→BR edge) */
.recycle-step--edge-right {
    top: 28%;
    right: -8%;
    animation: stepFadeIn 0.5s var(--ease-out) 3.5s forwards;
}

/* Bottom edge: Převoz materiálu */
.recycle-step--edge-bottom {
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    animation: stepFadeInBottom 0.5s var(--ease-out) 3.8s forwards;
}

/* At EKOZINK (BL): Mletí */
.recycle-step--at-ekozink-1 {
    bottom: 20%;
    left: -12%;
    animation: stepFadeIn 0.5s var(--ease-out) 4.1s forwards;
}

/* At EKOZINK (BL): Tavení */
.recycle-step--at-ekozink-2 {
    bottom: 13%;
    left: -12%;
    animation: stepFadeIn 0.5s var(--ease-out) 4.4s forwards;
}

.recycle-step--edge-left {
    top: 28%;
    left: -8%;
    animation: stepFadeIn 0.5s var(--ease-out) 4.7s forwards;
}

/* Tooltips */
.recycle-step__tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 220px;
    background: rgba(24, 24, 27, 0.95);
    border: 1px solid rgba(20, 184, 166, 0.3);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-family: 'Inter', system-ui;
    text-align: center;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(20, 184, 166, 0.2);
}

.recycle-step:hover .recycle-step__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(6px);
}

.recycle-step:hover .recycle-step__number {
    background: var(--teal-600);
    color: #fff;
    border-color: var(--teal-400);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.5);
    transition: all 0.3s;
}

.recycle-step:hover .recycle-step__text {
    color: var(--text-primary);
    transition: all 0.3s;
}

@keyframes stepFadeIn {
    0% { opacity: 0; transform: translateX(-8px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes stepFadeInBottom {
    0% { opacity: 0; transform: translateX(-50%) translateY(8px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Recycling Symbol Keyframes ── */
@keyframes drawArrow {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeArrowhead {
    0% { opacity: 0; transform: scale(0.4); }
    100% { opacity: 0.85; transform: scale(1); }
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes centerPulse {
    0%, 100% { r: 52; stroke-opacity: 0.1; }
    50% { r: 56; stroke-opacity: 0.3; }
}

@keyframes znGlow {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(20, 184, 166, 0.2)); }
    50% { filter: drop-shadow(0 0 10px rgba(20, 184, 166, 0.5)); }
}

@keyframes labelFadeIn {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes labelFadeInTop {
    0% { opacity: 0; transform: translateX(-50%) translateY(12px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}


/* ── Galvanizing Line Diagram ── */
.galv-line {
    display: flex;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    overflow-x: auto;
    padding: var(--space-xl) 0;
    position: relative;
}

.galv-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--zinc-800), var(--teal-600), var(--emerald-500), var(--zinc-800));
    z-index: 0;
    transform: translateY(-50%);
}

.galv-tank {
    flex: 1;
    min-width: 150px;
    position: relative;
    z-index: 1;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

.galv-tank.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.galv-tank:nth-child(1) { transition-delay: 0.1s; }
.galv-tank:nth-child(2) { transition-delay: 0.25s; }
.galv-tank:nth-child(3) { transition-delay: 0.4s; }
.galv-tank:nth-child(4) { transition-delay: 0.55s; }
.galv-tank:nth-child(5) { transition-delay: 0.7s; }
.galv-tank:nth-child(6) { transition-delay: 0.85s; }

.galv-tank__visual {
    width: 90px;
    height: 70px;
    margin: 0 auto var(--space-md);
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    border: 2px solid var(--border-subtle);
    border-top: none;
    position: relative;
    overflow: hidden;
    background: var(--zinc-900);
    transition: border-color 0.4s var(--ease-out);
}

.galv-tank:hover .galv-tank__visual {
    border-color: var(--accent);
}

/* Liquid inside the tank */
.galv-tank__liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    transition: height 1.5s var(--ease-out);
    border-radius: 0 0 8px 8px;
}

.galv-tank.animate-in .galv-tank__liquid {
    height: 75%;
}

.galv-tank--degrease .galv-tank__liquid {
    background: linear-gradient(to top, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.1));
}

.galv-tank--pickle .galv-tank__liquid {
    background: linear-gradient(to top, rgba(239, 68, 68, 0.4), rgba(239, 68, 68, 0.1));
    animation: bubbleEffect 3s ease-in-out infinite;
}

.galv-tank--flux .galv-tank__liquid {
    background: linear-gradient(to top, rgba(168, 85, 247, 0.4), rgba(168, 85, 247, 0.1));
}

.galv-tank--zinc .galv-tank__liquid {
    background: linear-gradient(to top, rgba(245, 158, 11, 0.6), rgba(245, 158, 11, 0.15));
    animation: glowPulse 2s ease-in-out infinite;
}

.galv-tank--cool .galv-tank__liquid {
    background: linear-gradient(to top, rgba(20, 184, 166, 0.4), rgba(20, 184, 166, 0.1));
}

.galv-tank--inspect .galv-tank__liquid {
    background: linear-gradient(to top, rgba(16, 185, 129, 0.4), rgba(16, 185, 129, 0.1));
}

/* Dipped piece inside zinc bath */
.galv-tank--zinc .galv-tank__visual::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 40px;
    background: var(--zinc-500);
    border-radius: 2px;
    animation: dipPiece 4s ease-in-out infinite;
    z-index: 2;
}

.galv-tank__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.galv-tank__desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ── Process Flow Strip (Sekundární zinek page) ── */
.process-flow-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-2xl);
    padding: var(--space-lg) var(--space-md);
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid rgba(20, 184, 166, 0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    position: relative;
}

/* Shimmer sweep across the strip */
.process-flow-strip::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.04), transparent);
    animation: stripShimmer 4s ease-in-out 3s infinite;
    pointer-events: none;
}

/* ── Step base ── */
.process-flow-strip__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
    position: relative;
    /* Start hidden — animated on scroll */
    opacity: 0;
    transform: translateY(20px) scale(0.85);
}

/* Number badge (positioned on step) */
.process-flow-strip__number {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.2);
    border: 1.5px solid rgba(20, 184, 166, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui;
    font-size: 0.58rem;
    font-weight: 700;
    color: #2dd4bf;
    z-index: 2;
    opacity: 0;
    transform: scale(0);
}

/* Number badge pops in after step appears */
.process-flow-strip__step[data-step="1"] .process-flow-strip__number { animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards; }
.process-flow-strip__step[data-step="2"] .process-flow-strip__number { animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.0s forwards; }
.process-flow-strip__step[data-step="3"] .process-flow-strip__number { animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s forwards; }
.process-flow-strip__step[data-step="4"] .process-flow-strip__number { animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s forwards; }
.process-flow-strip__step[data-step="5"] .process-flow-strip__number { animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 2.2s forwards; }

.process-flow-strip__step--active .process-flow-strip__number {
    background: rgba(20, 184, 166, 0.35);
    border-color: rgba(20, 184, 166, 0.6);
    color: #fff;
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.3);
}

/* Staggered entrance per step */
.process-flow-strip__step[data-step="1"] { animation: stepReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards; }
.process-flow-strip__step[data-step="2"] { animation: stepReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards; }
.process-flow-strip__step[data-step="3"] { animation: stepReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards; }
.process-flow-strip__step[data-step="4"] { animation: stepRevealActive 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s forwards; }
.process-flow-strip__step[data-step="5"] { animation: stepReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s forwards; }

.process-flow-strip__step:hover {
    background: rgba(20, 184, 166, 0.06);
    transform: translateY(-2px) scale(1.03);
}

/* ── Active step (Tavení) ── */
.process-flow-strip__step--active {
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.25);
    box-shadow: 
        0 0 30px rgba(20, 184, 166, 0.12),
        0 0 60px rgba(20, 184, 166, 0.06),
        inset 0 0 20px rgba(20, 184, 166, 0.04);
}

/* Active glow pulse */
.process-flow-strip__step--active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 1px solid rgba(20, 184, 166, 0.15);
    animation: activeGlowPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

/* ── Scene container (replaces emoji icon) ── */
.process-flow-strip__scene {
    width: 150px;
    height: 120px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(63, 63, 70, 0.2);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.process-flow-strip__step:hover .process-flow-strip__scene {
    border-color: rgba(20, 184, 166, 0.15);
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.06);
}

.process-flow-strip__step--active .process-flow-strip__scene {
    border-color: rgba(20, 184, 166, 0.2);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.08);
}

.scene-svg {
    width: 100%;
    height: 100%;
}

/* Gear animations */
.gear-spin {
    animation: gearSpin 4s linear infinite;
}

.gear-spin-reverse {
    animation: gearSpinReverse 3s linear infinite;
}

/* Truck bounce */
.truck-bounce {
    animation: truckBounce 1.2s ease-in-out infinite;
}

/* Mini crucible tilt */
.mini-crucible-tilt {
    transform-origin: 64px 36px;
    animation: miniTiltPour 5s ease-in-out infinite;
}

@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gearSpinReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes truckBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-2px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-1px); }
}

@keyframes miniTiltPour {
    0%, 15%, 85%, 100% { transform: rotate(0deg); }
    25%, 75% { transform: rotate(15deg); }
}

/* ── Label ── */
.process-flow-strip__label {
    font-family: 'Inter', system-ui;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
    transition: color 0.3s;
}

.process-flow-strip__label small {
    font-weight: 400;
    color: rgba(161, 161, 170, 0.5);
    font-size: 0.62rem;
    display: block;
    margin-top: 2px;
}

.process-flow-strip__step--active .process-flow-strip__label {
    color: var(--text-primary);
}

.process-flow-strip__step--active .process-flow-strip__label small {
    color: rgba(20, 184, 166, 0.8);
}

/* ── Arrows between steps ── */
.process-flow-strip__arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 6px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
}

/* Staggered arrow draw-in */
.process-flow-strip__arrow:nth-of-type(1) { animation: arrowDrawIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.65s forwards; }
.process-flow-strip__arrow:nth-of-type(2) { animation: arrowDrawIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.05s forwards; }
.process-flow-strip__arrow:nth-of-type(3) { animation: arrowDrawIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.45s forwards; }
.process-flow-strip__arrow:nth-of-type(4) { animation: arrowDrawIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.85s forwards; }

/* ── Keyframes ── */
@keyframes stepReveal {
    0% { opacity: 0; transform: translateY(20px) scale(0.85); }
    60% { opacity: 1; transform: translateY(-4px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes stepRevealActive {
    0% { opacity: 0; transform: translateY(24px) scale(0.8); }
    50% { opacity: 1; transform: translateY(-6px) scale(1.05); }
    70% { transform: translateY(2px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes badgePop {
    0% { opacity: 0; transform: scale(0); }
    60% { opacity: 1; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes emojiBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.3) rotate(-5deg); }
    50% { transform: scale(0.9) rotate(3deg); }
    70% { transform: scale(1.1) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes arrowDrawIn {
    0% { opacity: 0; transform: scaleX(0); }
    100% { opacity: 0.7; transform: scaleX(1); }
}

@keyframes activeGlowPulse {
    0%, 100% { 
        box-shadow: 0 0 8px rgba(20, 184, 166, 0.05);
        border-color: rgba(20, 184, 166, 0.1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(20, 184, 166, 0.15);
        border-color: rgba(20, 184, 166, 0.3);
    }
}

@keyframes stripShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Responsive: wrap on mobile */
@media (max-width: 640px) {
    .process-flow-strip {
        flex-wrap: wrap;
        gap: var(--space-sm);
        justify-content: center;
        overflow: visible;
    }

    .process-flow-strip__step {
        min-width: 70px;
        padding: var(--space-xs) var(--space-sm);
    }

    .process-flow-strip__arrow {
        display: none;
    }

    .process-flow-strip__emoji {
        font-size: 1.3rem;
    }

    .process-flow-strip__label {
        font-size: 0.62rem;
    }
}

/* ── Molten Zinc Pour Animation ── */
.zinc-pour {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.zinc-pour__crucible {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    width: 80px;
    height: 60px;
    background: var(--zinc-700);
    border-radius: 10px 10px 30px 30px;
    border: 2px solid var(--zinc-600);
    transform-origin: bottom right;
    animation: tiltPour 6s ease-in-out infinite;
}

.zinc-pour__crucible::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: linear-gradient(to bottom, rgba(245, 158, 11, 0.8), rgba(234, 88, 12, 0.6));
    border-radius: 6px 6px 24px 24px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    animation: glowPulse 2s ease-in-out infinite;
}

.zinc-pour__stream {
    position: absolute;
    top: 75px;
    left: calc(50% + 25px);
    width: 6px;
    height: 0;
    background: linear-gradient(to bottom, rgba(245, 158, 11, 0.9), rgba(20, 184, 166, 0.6));
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5), 0 0 30px rgba(245, 158, 11, 0.2);
    animation: streamPour 6s ease-in-out infinite;
}

.zinc-pour__mold {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 50px;
    background: var(--zinc-800);
    border: 2px solid var(--zinc-700);
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.zinc-pour__mold-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to top, rgba(212, 212, 216, 0.7), rgba(245, 158, 11, 0.5));
    animation: moldFill 6s ease-in-out infinite;
    border-radius: 0 0 4px 4px;
}

.zinc-pour__sparks {
    position: absolute;
    top: 200px;
    left: calc(50% - 10px);
    width: 20px;
    height: 20px;
}

.zinc-pour__spark {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--teal-400);
    animation: sparkFly 6s ease-in-out infinite;
}

.zinc-pour__spark:nth-child(1) { animation-delay: 2.5s; --spark-x: -15px; --spark-y: -20px; }
.zinc-pour__spark:nth-child(2) { animation-delay: 2.7s; --spark-x: 20px; --spark-y: -25px; }
.zinc-pour__spark:nth-child(3) { animation-delay: 2.9s; --spark-x: -10px; --spark-y: -15px; }
.zinc-pour__spark:nth-child(4) { animation-delay: 3.1s; --spark-x: 12px; --spark-y: -18px; }
.zinc-pour__spark:nth-child(5) { animation-delay: 3.3s; --spark-x: -18px; --spark-y: -22px; }

/* Temperature indicator */
.zinc-pour__temp {
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(245, 158, 11, 0.8);
    animation: tempFlicker 3s ease-in-out infinite;
}

/* ── Keyframes ── */
@keyframes flowParticleStream {
    0% { left: 0; opacity: 0; }
    1% { opacity: 1; left: 0; }
    11.11% { left: 100%; opacity: 1; }
    12.11%, 100% { left: 100%; opacity: 0; }
}

@keyframes pulseHorizontalArrow {
    0%, 10% { opacity: 0.4; transform: scale(1) translateX(0); filter: brightness(1); }
    11.11% { opacity: 1; transform: scale(1.6) translateX(4px); filter: brightness(1.6) drop-shadow(0 0 10px rgba(52,211,153,0.9)); }
    15%, 100% { opacity: 0.4; transform: scale(1) translateX(0); filter: brightness(1); }
}

@keyframes nodeRingPulseStream {
    0% { transform: scale(0.8); opacity: 0; }
    2% { transform: scale(1.1); opacity: 1; border-color: var(--teal-400); box-shadow: 0 0 20px rgba(20, 184, 166, 0.6); }
    11.11% { transform: scale(1.2); opacity: 0; box-shadow: 0 0 0 rgba(20, 184, 166, 0); }
    12.11%, 100% { transform: scale(1); opacity: 0; }
}

@keyframes flowParticle {
    0% { left: -4px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% + 4px); opacity: 0; }
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes znPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.2); }
}

@keyframes bubbleEffect {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.6); }
}

@keyframes dipPiece {
    0%, 100% { top: 5px; }
    30%, 70% { top: 25px; }
}

@keyframes tiltPour {
    0%, 15%, 85%, 100% { transform: translateX(-50%) rotate(0deg); }
    25%, 75% { transform: translateX(-50%) rotate(35deg); }
}

@keyframes streamPour {
    0%, 15% { height: 0; opacity: 0; }
    25% { height: 130px; opacity: 1; }
    75% { height: 130px; opacity: 1; }
    85%, 100% { height: 0; opacity: 0; }
}

@keyframes moldFill {
    0%, 20% { height: 0%; background: linear-gradient(to top, rgba(245, 158, 11, 0.8), rgba(245, 158, 11, 0.3)); }
    70% { height: 85%; background: linear-gradient(to top, rgba(245, 158, 11, 0.8), rgba(245, 158, 11, 0.3)); }
    90%, 100% { height: 85%; background: linear-gradient(to top, rgba(212, 212, 216, 0.8), rgba(161, 161, 170, 0.5)); }
}

@keyframes sparkFly {
    0%, 40% { transform: translate(0, 0) scale(0); opacity: 0; }
    45% { transform: translate(0, 0) scale(1); opacity: 1; }
    70% { transform: translate(var(--spark-x), var(--spark-y)) scale(0.5); opacity: 0.6; }
    80%, 100% { transform: translate(var(--spark-x), calc(var(--spark-y) + 20px)) scale(0); opacity: 0; }
}

@keyframes tempFlicker {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
    53% { opacity: 0.3; }
    56% { opacity: 0.9; }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .process-flow__wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-xl);
        padding-bottom: var(--space-xl);
        overflow-x: hidden;
    }
    .process-connector {
        display: none;
    }
    .process-stage {
        flex: 0 0 calc(33.333% - var(--space-xl));
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .process-stage {
        flex: 0 0 calc(50% - var(--space-xl));
    }

    .galv-line {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }

    .galv-line::before {
        display: none;
    }

    .galv-tank {
        flex: 0 0 calc(33% - var(--space-md));
        min-width: 100px;
    }

    .recycle-symbol {
        max-width: 280px;
    }

    .recycle-label {
        padding: 4px 10px;
        font-size: 0.65rem;
    }

    .recycle-label--left,
    .recycle-label--right {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin: var(--space-sm) auto 0;
    }
}

@media (max-width: 480px) {
    .process-stage {
        flex: 0 0 100%;
    }
}

/* ── Pure CSS Animations for Process Stages ── */
.css-anim-truck { position: relative; width: 40px; height: 30px; margin: 0 auto; animation: truckBounceCycle 9s linear infinite; }
.css-anim-truck__body { position: absolute; bottom: 4px; left: 0; width: 26px; height: 16px; background: var(--teal-600); border-radius: 4px 0 0 4px; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2); }
.css-anim-truck__cab { position: absolute; bottom: 4px; right: 0; width: 12px; height: 12px; background: var(--teal-400); border-radius: 0 6px 2px 0; }
.css-anim-truck__wheel { position: absolute; bottom: 0; width: 8px; height: 8px; background: var(--zinc-900); border: 2px solid var(--zinc-400); border-radius: 50%; animation: spinRingCycle 9s linear infinite; }
.css-anim-truck__wheel--1 { left: 4px; }
.css-anim-truck__wheel--2 { right: 4px; }
@keyframes truckBounceCycle { 0%, 5% { transform: translateY(0); } 10%, 15% { transform: translateY(-2px); } 20% { transform: translateY(0); } 22.22%, 100% { transform: translateY(0); } }
@keyframes spinRingCycle { 0% { transform: rotate(0deg); } 22.22% { transform: rotate(720deg); } 100% { transform: rotate(720deg); } }

.css-anim-gears { position: relative; width: 40px; height: 40px; margin: 0 auto; }
.css-anim-gear { position: absolute; font-size: 24px; line-height: 1; filter: drop-shadow(0 0 5px rgba(20, 184, 166, 0.4)); display: flex; align-items: center; justify-content: center; }
.css-anim-gear::before { content: '⚙️'; }
.css-anim-gear--1 { top: 0; left: 0; animation: gearSpinCycle 9s linear infinite; color: var(--teal-500); }
.css-anim-gear--2 { bottom: 0; right: 0; font-size: 18px; animation: gearSpinReverseCycle 9s linear infinite; color: var(--teal-300); }
@keyframes gearSpinCycle { 0%, 22.22% { transform: rotate(0deg); } 44.44% { transform: rotate(360deg); } 100% { transform: rotate(360deg); } }
@keyframes gearSpinReverseCycle { 0%, 22.22% { transform: rotate(0deg); } 44.44% { transform: rotate(-360deg); } 100% { transform: rotate(-360deg); } }

.css-anim-crucible { position: relative; width: 40px; height: 40px; margin: 0 auto; }
.css-anim-pot { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 20px; background: #3f3f46; border-radius: 4px 4px 12px 12px; border-top: 4px solid #f59e0b; z-index: 2; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2); }
.css-anim-fire { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; z-index: 1; animation: fireIgniteCycle 9s linear infinite; }
.flame { position: absolute; bottom: 0; border-radius: 50% 0 50% 50%; transform: rotate(-45deg); mix-blend-mode: screen; }
.flame-1 { left: 2px; width: 16px; height: 16px; background: #f59e0b; animation: flameFlicker 1.2s ease-in-out infinite alternate; }
.flame-2 { left: 8px; width: 12px; height: 12px; background: #fbbf24; animation: flameFlicker 1s ease-in-out infinite alternate-reverse; }
.flame-3 { left: 4px; width: 10px; height: 10px; background: #fef08a; animation: flameFlicker 0.8s ease-in-out infinite alternate; }
@keyframes flameFlicker { 0% { transform: rotate(-45deg) scale(0.9); opacity: 0.8; } 100% { transform: rotate(-45deg) scale(1.1) translateY(-2px); opacity: 1; } }
@keyframes fireIgniteCycle { 0%, 43% { opacity: 0; transform: translateX(-50%) scale(0.6); } 44.44%, 66.66% { opacity: 1; transform: translateX(-50%) scale(1); } 68%, 100% { opacity: 0; transform: translateX(-50%) scale(0.6); } }

.css-anim-tank { position: relative; width: 28px; height: 36px; margin: 0 auto; }
.css-anim-glass { position: absolute; inset: 0; border: 2px solid rgba(255, 255, 255, 0.2); border-top: none; border-radius: 0 0 8px 8px; background: linear-gradient(to bottom, rgba(20, 184, 166, 0.1), rgba(20, 184, 166, 0.4)); z-index: 2; }
.css-anim-liquid { position: absolute; bottom: 2px; left: 2px; right: 2px; height: 24px; background: rgba(20, 184, 166, 0.6); border-radius: 0 0 6px 6px; z-index: 1; overflow: hidden; }
.css-anim-bubbles-wrapper { animation: tankActiveCycle 9s linear infinite; }
.css-anim-bubble { position: absolute; bottom: -4px; width: 4px; height: 4px; background: rgba(255, 255, 255, 0.6); border-radius: 50%; animation: bubbleRise 2s ease-in infinite; }
.bubble-1 { left: 4px; animation-delay: 0s; }
.bubble-2 { left: 12px; width: 3px; height: 3px; animation-delay: 0.6s; }
.bubble-3 { left: 18px; width: 5px; height: 5px; animation-delay: 1.2s; }
@keyframes bubbleRise { 0% { transform: translateY(0) scale(1); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-24px) scale(1.5); opacity: 0; } }
@keyframes tankActiveCycle { 0%, 65% { opacity: 0; } 66.66%, 88.88% { opacity: 1; } 90%, 100% { opacity: 0; } }

.css-anim-ingot { position: relative; width: 36px; height: 24px; margin: 6px auto; }
.css-anim-ingot__base { position: absolute; inset: 0; background: linear-gradient(135deg, #94a3b8, #cbd5e1, #64748b); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, 0.9); text-shadow: 1px 1px 2px rgba(0,0,0,0.3); box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.5); overflow: hidden; }
.css-anim-ingot__shimmer { position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent); transform: skewX(-20deg); animation: shimmerSweepCycle 9s linear infinite; }
@keyframes shimmerSweepCycle { 0%, 87% { left: -100%; opacity: 0; } 88.88% { opacity: 1; left: -100%; } 100% { left: 200%; opacity: 1; } }
