/* Our Work page */

.wo-workpage-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    overflow: hidden;
    background: linear-gradient(180deg, #eef5fb 0%, #f7fafc 48%, #ffffff 100%);
    padding: 0;
}

.wo-workpage-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(232, 236, 241, 0.94) 0%,
        rgba(232, 236, 241, 0.78) 26%,
        rgba(232, 236, 241, 0.32) 48%,
        transparent 66%
    );
}

.wo-workpage-hero__bg {
    grid-area: 1 / 1;
    position: relative;
    z-index: 1;
    min-height: 100%;
    pointer-events: none;
}

.wo-workpage-hero__bg-art {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.wo-workpage-hero__inner.wo-container {
    grid-area: 1 / 1;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    align-self: stretch;
    width: 100%;
    padding-top: clamp(2.5rem, 6vw, 4.5rem);
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
    padding-right: 0;
    max-width: none;
    margin-inline: 0;
    padding-left: var(--wo-gutter);
}

.wo-workpage-hero__copy {
    max-width: 38rem;
}

.wo-workpage-hero__eyebrow {
    margin: 0 0 0.7rem;
    color: #7a8da3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wo-workpage-hero__title {
    margin: 0;
    font-size: clamp(1.95rem, 2.5vw + 0.5rem, 2.85rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #0b1f38;
}

.wo-workpage-hero__accent {
    color: var(--wo-orange);
}

.wo-workpage-hero__text {
    margin: 0.9rem 0 0;
    max-width: 33rem;
    color:var(--main-color);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.7;
}

.wo-workpage-stats {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem 1.15rem;
    margin: 1.5rem 0 0;
    padding: 0;
    max-width: 38rem;
    list-style: none;
}

.wo-workpage-stats__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    flex: 1 1 0;
}

.wo-workpage-stats__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.65rem;
    height: 1.65rem;
    margin-top: 0;
    border-radius: 0;
    background: transparent;
    color: #1e3a5f;
    font-size: 1.35rem;
    line-height: 1;
}

.wo-workpage-stats__copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.wo-workpage-stats__copy strong {
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0b1f38;
}

.wo-workpage-stats__copy span {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--wo-orange);
}

@media (min-width: 992px) {
    .wo-workpage-hero__copy {
        max-width: min(38rem, 46vw);
    }
}

@media (max-width: 991.98px) {
    .wo-workpage-hero__inner.wo-container {
        align-items: flex-start;
        padding-top: 2rem;
        padding-bottom: 2.25rem;
    }

    .wo-workpage-hero__bg-art {
        object-position: center right;
        opacity: 0.28;
    }
}

@media (max-width: 860px) {
    .wo-workpage-stats {
        flex-wrap: wrap;
    }

    .wo-workpage-stats__item {
        flex: 1 1 42%;
    }
}

.wo-workpage {
    background: #ffffff;
    padding: 1.15rem 0 2.5rem;
    padding-block: 40px;
}

.wo-workpage__filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.15rem;
    width: 100%;
    margin: 0 0 1.75rem;
    padding: 0.4rem 0.55rem 0.4rem 0.4rem;
    overflow-x: auto;
    border-radius: 999px;
    background: #e8eef5;
    scrollbar-width: none;
}

.wo-workpage__filters::-webkit-scrollbar {
    display: none;
}

.wo-workpage__filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    gap: 0.42rem;
    min-height: 2.85rem;
    padding: 0.42rem 0.4rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #102a47;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
}

.wo-workpage__filter i {
    font-size: 0.95rem;
    line-height: 1;
    color: #16324f;
}

.wo-workpage__filter:hover:not(.is-active) {
    background: transparent;
    color: #0c2342;
}

.wo-workpage__filter.is-active {
    flex: 0 0 auto;
    min-width: 4.15rem;
    padding: 0.5rem 1.4rem;
    background: #0c2342;
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: none;
}

.wo-workpage__filter.is-active i {
    color: #fff;
}

/* Portfolio device showcase slider (2 projects per slide) */

.wo-workpage-portfolio {
    position: relative;
    width: 100%;
    min-width: 0;
}

.wo-workpage-portfolio__track {
    display: grid;
    width: 100%;
    /* background: #ffffff; */
    /* border: 1px solid #e5e7eb; */
    border-radius: 18px;
}

.wo-workpage-portfolio__slide {
	grid-area: 1 / 1;
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: 3.25rem 3.25rem 2.75rem;
	box-sizing: border-box;
	opacity: 0;
	padding-bottom: 0px;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.5s ease, visibility 0.5s ease;
	z-index: 1;
	/* padding-top: 20px; */
}

.wo-workpage-portfolio__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.wo-workpage-portfolio__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
    align-items: start;
}

.wo-workpage-showcase {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wo-workpage-showcase__hit {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wo-workpage-showcase__hit:hover {
    opacity: 0.94;
}

.wo-workpage-showcase__hit:focus-visible {
    outline: 2px solid var(--wo-orange, #f97316);
    outline-offset: 3px;
}

.wo-workpage-showcase__devices {
    position: relative;
    height: 340px;
    border-radius: 14px;
    /* background: #f8fafc; */
    overflow: hidden;
}

.wo-workpage-showcase__body {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 0.15rem 0;
}

.wo-workpage-showcase__title {
    margin: 0;
    font-size: 1.05rem;
    color: #0f2744;
}

.wo-workpage-showcase__industry {
    margin: 0.2rem 0 0;
    color: var(--wo-orange);
    font-size: 0.8rem;
    font-weight: 600;
}

.wo-workpage-showcase__text {
    margin: 0.4rem 0 0.65rem;
    color: var(--main-color);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.wo-workpage-showcase__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #0a2540;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.wo-workpage-showcase__link:hover {
    text-decoration: underline;
}

.device-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 4px 6px;
    box-sizing: border-box;
}

.device-showcase__laptop {
    position: absolute;
    left: 50%;
    top: 2%;
    transform: translateX(-50%);
    width: 94%;
    z-index: 1;
}

.device-showcase__laptop-bezel {
    background: linear-gradient(180deg, #2a2a2a 0%, #111 100%);
    border-radius: 10px 10px 0 0;
    padding: 2.8% 2.8% 0;
    /* box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18); */
}

.device-showcase__laptop-base {
    height: 10px;
    margin: 0 10%;
    background: linear-gradient(180deg, #e8e8e8 0%, #b8b8b8 45%, #d0d0d0 100%);
    border-radius: 0 0 6px 6px;
    /* box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12); */
    position: relative;
}

.device-showcase__laptop-base::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14%;
    height: 3px;
    background: #9ca3af;
    border-radius: 0 0 3px 3px;
}

.device-showcase__phone {
	position: absolute;
	left: 0;
	bottom: 6%;
	width: 15%;
	z-index: 3;
	padding: 6px 5px 8px;
	background: linear-gradient(180deg, #333 0%, #111 100%);
	border-radius: 14px;
	/* box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22); */
}

.device-showcase__phone::before {
    content: "";
    display: block;
    width: 28%;
    height: 3px;
    margin: 0 auto 5px;
    background: #0a0a0a;
    border-radius: 2px;
}

.device-showcase__phone::after {
    content: "";
    display: block;
    width: 22%;
    aspect-ratio: 1;
    margin: 6px auto 0;
    border: 2px solid #4b5563;
    border-radius: 50%;
}

.device-showcase__tablet {
    position: absolute;
    right: 0;
    bottom: 10%;
    width: 44%;
    z-index: 2;
    padding: 8px 9px 1px;
    background: linear-gradient(180deg, #2a2a2a 0%, #0f0f0f 100%);
    border-radius: 12px;
    /* box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2); */
}

.device-showcase__tablet::after {
    content: "";
    display: block;
    width: 7%;
    aspect-ratio: 1;
    margin: 8px auto 0;
    border: 2px solid #4b5563;
    border-radius: 50%;
}

.device-showcase__screen {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    border-radius: 3px;
    width: 100%;
}

.device-showcase__screen--laptop {
    aspect-ratio: 16 / 9;
}

.device-showcase__screen--phone {
    aspect-ratio: 9 / 17;
}

.device-showcase__screen--tablet {
    aspect-ratio: 16 / 10;
}

.device-showcase__screen img,
.device-showcase__screen-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    object-fit: fill;
    object-position: center center;
    border-radius: 0;
}

.device-showcase__screen--loop .device-showcase__screen-img--loop {
    inset: auto;
    top: 0;
    left: 0;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: top center;
    will-change: transform;
    animation: device-showcase-screen-loop var(--device-scroll-duration, 14s) ease-in-out infinite;
}

@keyframes device-showcase-screen-loop {
    0%,
    14% {
        transform: translateY(0);
    }

    42%,
    58% {
        transform: translateY(var(--device-scroll-end, 0));
    }

    86%,
    100% {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .device-showcase__screen--loop .device-showcase__screen-img--loop {
        animation: none;
        transform: none;
    }
}

.device-showcase__legacy {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wo-workpage-portfolio__btn {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(8, 53, 96, 0.85);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wo-workpage-portfolio__btn:hover {
    background: #ff5a1f;
    transform: translateY(-50%) scale(1.08);
}

.wo-workpage-portfolio__btn--prev {
    /* left: 15px; */
}

.wo-workpage-portfolio__btn--next {
    right: 1px;
}

.wo-workpage-portfolio__dots {
    position: absolute;
    left: 50%;
    bottom: 15px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 7px;
    transform: translateX(-50%);
}

.wo-workpage-portfolio__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(8, 53, 96, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wo-workpage-portfolio__dot.is-active {
    width: 25px;
    border-radius: 10px;
    background: #ff5a1f;
}

.wo-workpage-portfolio__dot:hover {
    background: #ff5a1f;
}

@media (max-width: 991px) {
    .wo-workpage-showcase__devices {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .wo-workpage-portfolio__track {
        border-radius: 14px;
    }

    .wo-workpage-portfolio__slide {
        padding: 1rem 2.75rem 2.5rem;
    }

    .wo-workpage-portfolio__row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .wo-workpage-showcase__devices {
        height: 280px;
    }

    .wo-workpage-portfolio__btn {
        width: 35px;
        height: 35px;
        font-size: 15px;
    }

    .wo-workpage-portfolio__btn--prev {
        left: 8px;
    }

    .wo-workpage-portfolio__btn--next {
        right: 8px;
    }

    .wo-workpage-portfolio__dots {
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .wo-workpage-showcase__devices {
        height: 240px;
    }

    .wo-workpage-portfolio__btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

    .portfolio-intro {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        padding: 20px 20px;
        padding-top: 0px;
        text-align: center;
        box-sizing: border-box;
    }

    .portfolio-intro__label {
        display: inline-block;
        margin-bottom: 12px;
        color: #00aaa9;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1.8px;
    }

    .portfolio-intro h2 {
        margin: 0 0 16px;
        color: #0f2744;
        font-size: 36px;
        font-weight: 700;
        line-height: 1.3;
    }

    .portfolio-intro p {
        margin: 0 auto;
        max-width: 700px;
        color: #53647a;
        font-size: 16px;
        line-height: 1.8;
    }

    @media (max-width: 767px) {
        .portfolio-intro {
            padding: 30px 15px;
        }

        .portfolio-intro h2 {
            font-size: 27px;
        }

        .portfolio-intro p {
            font-size: 14px;
            line-height: 1.7;
        }
    }

/* Home hero — portfolio device slider (tablet/phone only) */
@media (max-width: 991.98px) {
    .wo-hero .wo-workpage-portfolio {
        width: 100%;
        min-width: 0;
        margin-top: clamp(1.15rem, 3.5vw, 2rem);
    }

    .wo-hero .wo-workpage-portfolio__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .wo-hero .wo-workpage-portfolio__slide {
        padding: 1.15rem 2.5rem 1.85rem;
    }
}

@media (max-width: 767.98px) {
    .wo-hero .wo-workpage-portfolio__slide {
        padding: 0.85rem 2.35rem 2.15rem;
    }

    .wo-hero .wo-workpage-showcase__devices {
        height: clamp(220px, 56vw, 300px);
    }
}

@media (max-width: 575.98px) {
    .wo-hero .wo-workpage-portfolio__slide {
        padding: 0.65rem 2.15rem 2rem;
    }

    .wo-hero .wo-workpage-showcase__devices {
        height: clamp(200px, 54vw, 270px);
    }

    .wo-hero .wo-workpage-portfolio__btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .wo-hero .wo-workpage-portfolio__btn--prev {
        left: 2px;
    }

    .wo-hero .wo-workpage-portfolio__btn--next {
        right: 2px;
    }
}

@media (max-width: 399.98px) {
    .wo-hero .wo-workpage-portfolio__slide {
        padding-inline: 1.85rem;
    }

    .wo-hero .wo-workpage-showcase__devices {
        height: clamp(185px, 50vw, 235px);
    }
}