.stats-marquee {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    overflow: hidden;
}

.marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-wrap {
    display: flex;
    gap: 22px;
    width: max-content;
    align-items: stretch;
}

.marquee-card {
    width: 250px;
    min-height: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 60px;
    background: linear-gradient(to bottom, rgba(38, 38, 38, 0) 0%, #1f1f1f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    padding: 20px 40px;
    transition: all 0.3s ease;
}

.marquee-card .desc {
    margin-bottom: 0;
    font-weight: 600;
    color: white;
                     text-shadow:
                     0 0 10px rgba(255,255,255,0.4),
                     0 0 10px rgba(255,255,255,0.3),
                     0 0 20px rgba(255,255,255,0.2);
}

.marquee-card p {
    margin-bottom: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}


.marquee::before,
.marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee::before {
    left: 0;
    background: linear-gradient(to right, #000, transparent);
}

.marquee::after {
    right: 0;
    background: linear-gradient(to left, #000, transparent);
}

@media (min-width:1200px) {
    .stats-marquee {
        gap: 0.732vw;
    }

    .marquee-wrap {
        gap: 1.611vw;
    }

    .marquee-card {
        width: 18.302vw;
        height: 10.249vw;
        min-height: 10.249vw;
        border-radius: 4.392vw;
        gap: 0.366vw;
        padding: 1.464vw 2.928vw;
    }

    .marquee-card p {
        font-size: 1.171vw;
    }

    .marquee::after,
    .marquee::before {
        width: 8.785vw;
    }
}

@media (max-width: 768px) {
    .marquee-wrap {
        gap: 14px;
    }

    .marquee-card {
        width: 220px;
        height: 80px;
        padding: 20px 30px;
    }

    .marquee-card p {
        font-size: 14px;
    }
}



/* ------------------------------------------------------------------ */

.history-section {
    width: 100%;
    height: 90vh;
    overflow: hidden;
    background-color: #050505;
    background-image:
        radial-gradient(50% 100% at -5% 55%, rgba(220, 220, 220, 0.18) 0%, rgba(0, 0, 0, 0) 100%),
        radial-gradient(60% 120% at 105% 35%, rgba(200, 200, 200, 0.15) 0%, rgba(0, 0, 0, 0) 100%);
    background-attachment: fixed;
    position: relative;
}

.history-container {
    position: relative;
    z-index: 2;
    height: 100%;
}

.history-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 1px;
    z-index: 1;
    background-image: repeating-linear-gradient(to right,
            rgba(255, 255, 255, 0.25) 0px,
            rgba(255, 255, 255, 0.25) 10px,
            transparent 10px,
            transparent 20px);
}

.history-container::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -3%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    z-index: 3;
    background-image: url("../assets/icon/rightArw.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.history-left {
    height: 100%;
    position: relative;
    overflow: hidden;
    align-content: center;
}

.history-title {
    position: absolute;
    top: 42%;
    left: 0;
    z-index: 20;
    color: #fff;
    pointer-events: none;
}
.years-scroll-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 5;
}

.years-area {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: start;
}


.year-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    will-change: transform, opacity;
    pointer-events: none;
}

.year-label {
    color: rgba(255, 255, 255, 0.32);
    margin-bottom: 0;
}

.year-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: all .45s ease;
    flex-shrink: 0;
}

.year-item.active .year-label {
    color: #fff;
}

.year-item.active .year-dot {
    width: 25px;
    height: 25px;
    background: #fff;
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.08),
        0 0 24px rgba(255, 255, 255, 0.45);
}

.history-right {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
}


.panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    top: 42%;
    transition:
        opacity .5s ease,
        transform .5s ease;
    will-change: transform, opacity;
}

.panel-text {
    padding-top: 10px;
}

@media (min-width:1200px) {

    .history-container::before {
    height: 0.073vw;
    background-image: repeating-linear-gradient(to right,
            rgba(255, 255, 255, 0.25) 0px,
            rgba(255, 255, 255, 0.25) 0.732vw,
            transparent 0.732vw,
            transparent 1.464vw);
}

    .history-container::after {
    width: 5.124vw;
    height: 5.124vw;
    background-size: 2.05vw;
}

.year-item {
    gap: 1.025vw;
}


.year-dot {
    width: 1.464vw;
    height: 1.464vw;
}

.year-item.active .year-dot {
    width: 1.83vw;
    height: 1.83vw;
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.08),
        0 0 24px rgba(255, 255, 255, 0.45);
}

}

@media (max-width:576px) {

    .history-container::after {
        left: 1%;
        width: 30px;
        height: 30px;
    }

    .years-scroll-wrap {
        position: absolute;
        top: 0;
        right: -10%;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 5;
    }

    .year-dot {
        width: 12px !important;
        height: 12px !important;
    }

    .year-item.active .year-dot {
        width: 18px !important;
        height: 18px !important;
    }



    .year-item {
        gap: 7px;
    }
}




@media (max-width:991px) {
    .years-scroll-wrap {
        width: 100%;
    }
        .panel {
        top: 43% !important;

    }
}




/* ---------------------------------------------------------------------- */
.market-card {
    position: relative;
    width: 100%;
    min-height: 300px;
height: 100%;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    border:1px solid rgb(70, 70, 70);
    background: linear-gradient(to bottom, rgba(38, 38, 38, 0) 0%, #3d3d3d 100%);
}

.market-card img {
    display:none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1s ease;
    filter: grayscale(100%);
}

.market-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.market-card::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    right: -20%;
    bottom: -20%;
    background: #2c2a2a;
    border-radius: 100% 0 0 0;
    z-index: 2;
    transition:
        width 1s ease,
        height 1s ease;
}

.market-card:hover::before {
    width: 250%;
    height: 250%;
}

.market-title {
    position: absolute;
    font-weight: 700;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 3;
    margin: 0;
    opacity: 1;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
    transition-delay: 0.2s;
}

.market-card:hover .market-title,
.market-card:focus-within .market-title {
    opacity: 0;
    transform: translate(-50%, -60%);
    transition-delay: 0s;
}

.market-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -40%);
    color: #fff;
    z-index: 4;
    opacity: 0;
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
    transition-delay: 0s;
}


.market-content .desc {
    font-weight: 700;
    text-align: center;
    color: teal;
}

.market-card:hover .market-content,
.market-card:focus-within .market-content {
    opacity: 1;
    transform: translate(-50%, -50%);
    transition-delay: 0.2s;
}

.market-card:hover img {
    transform: scale(1.08);
}

.market-content a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: inherit;
      text-transform: capitalize;
}

.market-content a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1%; 
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.35s ease;
}

.market-content a:hover::after {
    width: 100%;
}

@media (min-width:1200px) {
    .market-card {
        height: 100%;
        min-height: 21.962vw;
        border-radius: 0.732vw;
    }
    .market-content p{
        margin-bottom: 0.732vw;
    }
}

@media (max-width:576px) {
    .market-card {
    /*min-height: 420px;*/
    min-height: 370px;
}
.market-card p {
    font-size:14px;
}


.market-content {
    width: 90%;
}
}
/* ------------------------------------------------------------------------------------ */
.vision-tabs {
    display: flex;
    align-items: center;
    gap: 50px;
}

.vision-tab {
    position: relative;
    background: transparent;
    border: 0;
    padding: 0;
    color: #666666;
    line-height: 1;
    cursor: pointer;
    transition: 0.4s ease;
}

.vision-tab.active {
    color: #fff;
}

.vision-tab:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -26px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 20px;
    background: #666666;
}

.vision-tab:hover {
    color: rgba(255, 255, 255, 0.75);
}

.vision-panel {
    display: none;
}

.vision-panel.active {
    display: block;
}

.vision-panel {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.vision-panel p{
    font-weight: 500;
}

.vision-panel.active {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width:576px) {
    .vision-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .vision-tabs::-webkit-scrollbar {
        display: none;
    }
}

@media (min-width:1200px) {
    .vision-tabs {
        gap: 3.66vw;
    }

    .vision-tab:not(:last-child)::after {
        right: -1.903vw;
        width: 0.146vw;
        height: 1.464vw;
    }
}



/* --------------------------------------------------------------------- */

.team-panel {
    display: none;
}

.team-panel.active {
    display: block;
}

.team-tab-button {
    position: relative;
    color: #a8a8a8;
    background: transparent;
    padding: 0px 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

.team-tab-button.active {
    color: #fff;
}

.team-tab-button:hover,
.team-tab-button:focus-visible {
    color: #fff;
}

/* divider between tabs — on every button except the last */
.team-tab-button:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 20px;
    background: #666666;
}

@media (min-width:1200px) {
    .team-tab-button {
        padding: 0 0.732vw;
    }

    .team-tab-button:not(:last-child)::after {
        width: 0.146vw;
        height: 1.464vw;
    }
}

.team-slider {
    --team-gap: 18px;
    display: flex;
    gap: var(--team-gap);
    height: 450px;
}

.team-card {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 15px;
    min-width: 0;
    cursor: pointer;
    background: #8e8e8e;
    transition:
        flex 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s ease;
    display: flex;
    align-items: end;
}

.team-card:hover {
    flex: 2;
}

.team-slider:hover .team-card:not(:hover) {
    flex: 0.8;
}


.team-card:first-child:nth-last-child(-n+3),
.team-card:first-child:nth-last-child(-n+3) ~ .team-card,
.team-card:first-child:nth-last-child(-n+3):hover,
.team-card:first-child:nth-last-child(-n+3) ~ .team-card:hover,
.team-slider:hover .team-card:first-child:nth-last-child(-n+3):not(:hover),
.team-slider:hover .team-card:first-child:nth-last-child(-n+3) ~ .team-card:not(:hover) {
    flex: 1;
}

@media (min-width: 769px) {

    .team-card:first-child:nth-last-child(2),
    .team-card:first-child:nth-last-child(2) ~ .team-card,
    .team-card:first-child:nth-last-child(2):hover,
    .team-card:first-child:nth-last-child(2) ~ .team-card:hover,
    .team-slider:hover .team-card:first-child:nth-last-child(2):not(:hover),
    .team-slider:hover .team-card:first-child:nth-last-child(2) ~ .team-card:not(:hover) {
        flex: 0 0 calc((100% - (var(--team-gap) * 2)) / 3);
    }

    .team-card:first-child:nth-last-child(2) {
        margin-left: auto;
    }

    .team-card:first-child:nth-last-child(2)~.team-card:last-child {
        margin-right: auto;
    }
}

.team-card img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}


.team-card:hover img {
    filter: grayscale(0);
}

.team-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.05));
    opacity: 0;
    transition: 0.4s ease;
}

.team-card:hover::after {
    opacity: 0.5;
}

.team-card-content {
    position: absolute;
    left: 8%;
    top: 8%;
    z-index: 5;
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.team-card:hover .team-card-content {
    opacity: 1;
    transform: translateY(0);
}

.team-card-content .desc {
    color: black;
    margin-bottom: 0;
}

.team-card-content p {
    max-width: 300px;
    line-height: 1.5;
    color: black;
}


/* LinkedIn icon — bottom-left of the card, revealed with the card text */
.team-card-linkedin {
    position: absolute;
    left: 8%;
    bottom: 6%;
    z-index: 5;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #0a66c2;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.team-card:hover .team-card-linkedin,
.team-card-linkedin:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.team-card-linkedin:hover,
.team-card-linkedin:focus-visible {
    background: #0a66c2;
    color: #fff;
}

.team-card-linkedin:focus-visible {
    outline: 2px solid #e3654a;
    outline-offset: 2px;
}


.team-card {
    will-change: flex;
}


@media (max-width: 991px) {
    .team-card:hover {
        flex: 4;
    }
        .team-tabs {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 10px;
    }

}


@media (max-width:768px) {
    .team-slider {
        --team-gap: 10px;
        height: 400px;
    }

    .team-card:hover {
        flex: 6;
    }

    /* Mobile cancels the "3 or fewer cards" rule above: at this width a
       card is far too narrow to read the revealed name/role, so EVERY
       slider expands on hover/tap regardless of how many cards it holds.
       Same `-n+3` range and the same specificity as the quantity query,
       declared later in the file, so these win. */
    .team-card:first-child:nth-last-child(-n+3),
    .team-card:first-child:nth-last-child(-n+3) ~ .team-card {
        flex: 1;
    }

    .team-card:first-child:nth-last-child(-n+3):hover,
    .team-card:first-child:nth-last-child(-n+3) ~ .team-card:hover {
        flex: 6;
    }

    .team-slider:hover .team-card:first-child:nth-last-child(-n+3):not(:hover),
    .team-slider:hover .team-card:first-child:nth-last-child(-n+3) ~ .team-card:not(:hover) {
        flex: 0.8;
    }
    
    
        /* Auto-open on mobile (js/about.js): cards open one by one, so the open
       state is driven by .is-open, not :hover. !important so it wins over all
       the hover / quantity-query flex rules above. */
    .team-slider .team-card {
        flex: 1 !important;
    }

    .team-slider .team-card.is-open {
        flex: 6 !important;
    }

    .team-slider .team-card.is-open img {
        filter: grayscale(0);
    }

    .team-slider .team-card.is-open::after {
        opacity: 0.5;
    }

    .team-slider .team-card.is-open .team-card-content {
        opacity: 1;
        transform: translateY(0);
    }

    .team-slider .team-card:not(.is-open) .team-card-content {
        opacity: 0;
    }

        .team-slider .team-card.is-open .team-card-linkedin {
        opacity: 1;
        transform: translateY(0);
    }

    .team-slider .team-card:not(.is-open) .team-card-linkedin {
        opacity: 0;
        pointer-events: none;
    }
    
    
}

@media (max-width:576px) {
    /*.team-tabs {*/
    /*    display: flex;*/
    /*    overflow-x: auto;*/
    /*    overflow-y: hidden;*/
    /*    scrollbar-width: none;*/
    /*    -ms-overflow-style: none;*/
    /*    flex-wrap: nowrap;*/
    /*    white-space: nowrap;*/
    /*    gap: 40px;*/
    /*}*/

    /*.team-tabs::-webkit-scrollbar {*/
    /*    display: none;*/
    /*}*/

    .team-tab-button {
        padding: 0px;
    }

    .team-tab-button:first-child::after {
        right: -10%;
    }
}

@media (min-width:1200px) {
    .team-slider {
        --team-gap: 1.318vw;
        height: 32.943vw;
    }

    .team-card {
        border-radius: 1.098vw;
    }

    .team-card-content p {
        max-width: 21.962vw;
    }

}


/* ----------------------------------------------------------------------- */
.edge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
}

.edge-card:hover {
    transform: translateY(-4%);
}

.edge-icon {
    width: 100%;
    height:100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.edge-card p{
    font-weight: 500;
}

/* --------------------------------------------------------------------- */
.aboutBg {
    position: relative;
    background: transparent;
    color: #fff;
    padding: 50px 100px;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
}


@media (max-width: 768px) {
    .aboutBg {
        padding: 30px 20px;
    }
}

@media (min-width:1200px) {
    .aboutBg {
        padding: 3.66vw 7.321vw;
        border-radius: 1.464vw;
    }
}

/* ------------------------------------------------------------------ */
/* Tabs → dropdown on mobile (<=768px)                                  */
/* Wraps the Philosophy/Mission tablist and the Leadership/Product/Sales */
/* tablist. Above 768px nothing changes: the toggle is hidden and the    */
/* tablist keeps its original inline/flex layout.                        */
/* ------------------------------------------------------------------ */
.tabsDropdownToggle {
    display: none;
}

@media (max-width: 768px) {
    .tabsDropdown {
        position: relative;
    }

    .tabsDropdownToggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        margin: 0;
        padding: 12px 16px;
        text-align: left;
        color: #fff;
        /* match the site's .desc scale — the .title scale was far too large here */
        font-size: calc(1rem + 0.3vw);
        font-weight: 500;
        line-height: 1.4;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 10px;
        cursor: pointer;
        transition: border-color 0.3s ease, background 0.3s ease;
    }

    .tabsDropdownToggle:hover,
    .tabsDropdown.is-open .tabsDropdownToggle {
        border-color: rgba(255, 255, 255, 0.4);
        background: rgba(255, 255, 255, 0.07);
    }

    .tabsDropdownLabel {
        flex: 1;
        min-width: 0;
    }

    .tabsDropdownToggle::after {
        content: "";
        flex: none;
        width: 9px;
        height: 9px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: translateY(-3px) rotate(45deg);
        transition: transform 0.3s ease;
    }

    .tabsDropdown.is-open .tabsDropdownToggle::after {
        transform: translateY(1px) rotate(-135deg);
    }

    /* the tablist becomes the dropdown menu */
    .tabsDropdown .vision-tabs,
    .tabsDropdown .team-tabs {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 20;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 8px 0 0;
        padding: 6px;
        overflow: visible;
        background: #111111;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 10px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
        white-space: normal;
    }

    .tabsDropdown.is-open .vision-tabs,
    .tabsDropdown.is-open .team-tabs {
        display: flex;
    }

    .tabsDropdown .vision-tab,
    .tabsDropdown .team-tab-button {
        width: 100%;
        padding: 10px 12px;
        text-align: left;
        border-radius: 6px;
        white-space: normal;
        /* the tablist is an h2.title — reset the menu items to the same
           .desc scale as the toggle above */
        font-size: calc(1rem + 0.3vw);
        font-weight: 500;
        line-height: 1.4;
    }

    .tabsDropdown .vision-tab.active,
    .tabsDropdown .team-tab-button.active {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

    /* the "|" separators only make sense in the horizontal layout */
    .tabsDropdown .vision-tab::after,
    .tabsDropdown .team-tab-button::after {
        display: none;
    }
}
