/* How It Works — partner journey */
.partner-flow {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 5rem;
    background:
        radial-gradient(ellipse 70% 50% at 8% 18%, rgba(253, 224, 71, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 45% at 92% 80%, rgba(147, 197, 253, 0.28) 0%, transparent 50%),
        radial-gradient(ellipse 45% 35% at 75% 12%, rgba(224, 242, 254, 0.55) 0%, transparent 45%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 45%, #eef6fb 100%);
}

.partner-flow::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 5.5rem;
    width: 88px;
    height: 72px;
    background-image: radial-gradient(rgba(244, 114, 182, 0.28) 1.1px, transparent 1.2px);
    background-size: 14px 14px;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.partner-flow::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -140px;
    bottom: -160px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(125, 211, 252, 0.22), transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.partner-flow-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .partner-flow-inner {
        padding: 0 1.5rem;
    }
}

.partner-flow-intro {
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

.partner-flow-intro .industry-badge {
    display: inline-flex;
}

.partner-flow-intro p {
    margin-top: 0.75rem;
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
}

.partner-flow-art {
    position: relative;
    line-height: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 24px 60px -32px rgba(15, 23, 42, 0.18);
    /* Always visible — do not gate the artwork behind JS `.is-drawn` */
    opacity: 1;
    transform: none;
}

.partner-flow-art > img.hiw-artwork {
    display: block;
    width: 100%;
    height: auto;
}

/* Invisible clickable CTA */
.hiw-cta-hotspot {
    position: absolute;
    left: 3.8%;
    top: 24.8%;
    width: 16.8%;
    height: 5.2%;
    border-radius: 0.4rem;
    z-index: 5;
    cursor: pointer;
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: none;
    text-decoration: none;
    color: transparent;
    font-size: 0;
    line-height: 0;
}

.hiw-cta-hotspot:hover,
.hiw-cta-hotspot:focus,
.hiw-cta-hotspot:focus-visible,
.hiw-cta-hotspot:active {
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: none;
}

/* Subtle energy flow — thin tiles inside the yellow wire (not a second thick path) */
.hiw-path-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}

.hiw-path-svg .flow-path-glow {
    fill: none;
    stroke: rgba(251, 191, 36, 0.35);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    filter: blur(2px);
}

.hiw-path-svg .flow-path {
    fill: none;
    stroke: #fffbeb;
    stroke-width: 3.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 4 16;
    animation: none;
    opacity: 0;
}

.partner-flow.is-drawn .flow-path-glow {
    opacity: 1;
}

.partner-flow.is-drawn .flow-path {
    opacity: 0.9;
    animation: hiwPathRun 1.35s linear infinite;
}

@keyframes hiwPathRun {
    to {
        stroke-dashoffset: -20;
    }
}

@media (max-width: 768px) {
    .partner-flow {
        padding: 3rem 0 3.5rem;
    }

    .partner-flow-intro {
        margin-bottom: 1.25rem;
        text-align: left;
        padding: 0 0.25rem;
    }

    .hiw-cta-hotspot {
        left: 3.5%;
        top: 23.5%;
        width: 40%;
        height: 4.8%;
    }

    .hiw-path-svg .flow-path {
        stroke-width: 2.5;
        stroke-dasharray: 3 14;
    }

    .hiw-path-svg .flow-path-glow {
        stroke-width: 4.5;
    }

    .partner-flow-art {
        border-radius: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partner-flow.is-drawn .flow-path {
        animation: none;
        opacity: 0.35;
    }
}
