/* =========================================
   TF Tech Ribbons
   ========================================= */

.tf-tech-ribbons {
    position: relative;
    width: 100%;
    min-height: var(--tfr-min-height, 340px);
    overflow: hidden;
    background: #ffffff;
}

.tf-ribbon {
    position: absolute;
    top: 50%;
    left: -12%;
    width: 124%;
    height: var(--tfr-ribbon-height, clamp(88px, 9vw, 135px));
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    background: #000000;
    transform: translateY(-50%) rotate(var(--tfr-angle, 0deg));
}

/* Fade each ribbon out near its left/right edges */
.tf-tech-ribbons.tf-edge-fade .tf-ribbon {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.tf-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: var(--tfr-gap, clamp(24px, 4vw, 54px));
    padding-left: var(--tfr-gap, clamp(20px, 4vw, 56px));
    white-space: nowrap;
    font-size: clamp(22px, 2.2vw, 34px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    animation-name: tfr-marquee;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 24s;
    animation-direction: normal;
}

.tf-track span,
.tf-track b {
    display: inline-flex;
    align-items: center;
}

.tf-track b {
    font-size: 0.95em;
    font-weight: 400;
}

.tf-tech-ribbons.tf-pause-hover:hover .tf-track {
    animation-play-state: paused;
}

@keyframes tfr-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

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

@media (max-width: 640px) {
    .tf-ribbon {
        left: -24%;
        width: 148%;
    }
}
