/* Page styles for fa / ar (RTL) and en (LTR). Built from the two old per-language files by
   merge_css: rules that only applied to one direction are scoped with :where(html[dir=...]) (no
   extra specificity). Edit freely; mirror changes for the other direction where needed. */

.text-bold {
    font-weight: 700;
}

/* hero background from the dashboard (MiscImage home/landing_bg, set as CSS variables in home.html);
   the bundled photo is the fallback */
.home .landing {
    background-image: var(--hero-bg-mobile, var(--hero-bg, url('../images/home-bg.jpg')));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.home .landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
    transition: filter 0.8s ease-out;
}

.home .landing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 85% 50%, rgba(48, 53, 55, 0.2) 20%, rgba(48, 53, 55, 0.5) 30%, rgba(48, 53, 55, 0.8) 40%, rgba(48, 53, 55, 1) 100%), linear-gradient(to top, #303537, transparent 10%);
    opacity: 0;
    z-index: 1;
    animation: fadeInOverlay 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

.home .wrapper {
    position: relative;
    border-radius: 0.5rem;
    z-index: 2;
}

.home .wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    z-index: -1;
    transition: filter 0.8s ease-out;
    animation: blurBackground 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

@keyframes wrapperBlurDesktop {
    from { backdrop-filter: blur(0); }
    to { backdrop-filter: blur(8px); }
}

@keyframes wrapperBlurDesktop-ltr {
    from { backdrop-filter: blur(0); }
    to { backdrop-filter: blur(8px); }
}

@keyframes blurBackground {
    from { backdrop-filter: blur(0); }
    to { backdrop-filter: blur(8px); }
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes overlayAppear {
    from { background: radial-gradient(circle at 85% 50%, rgba(48, 53, 55, 0) 20%, rgba(48, 53, 55, 0) 30%, rgba(48, 53, 55, 0) 40%, rgba(48, 53, 55, 0) 100%); }
    to { background: radial-gradient(circle at 85% 50%, rgba(48, 53, 55, 0.2) 20%, rgba(48, 53, 55, 0.5) 30%, rgba(48, 53, 55, 0.9) 40%, rgba(48, 53, 55, 1) 100%); }
}

.landing>* {
    position: relative;
    z-index: 2;
}

.landing-container {
    position: relative;
    z-index: 3;
    opacity: 0;
    animation: fadeInOverlay 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

.border-animation-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

section:not(.landing) .corner-dot {
    opacity:0;
    transform:scale(0);
}

section:not(.landing) .border-line {
    opacity: 0;
}

section:not(.landing) .extension-line {
    opacity:0;
}

:where(html[dir=rtl]) section:not(.landing).in-view .corner-dot.top-right {
    animation:topDotAppear 0.3s ease-out forwards;
    animation-delay:0.2s;
}

:where(html[dir=rtl]) section:not(.landing).in-view .corner-dot.bottom-left {
    animation:bottomDotAppear 0.3s ease-out forwards;
    animation-delay:0.2s;
}

:where(html[dir=ltr]) section:not(.landing).in-view .corner-dot.top-left {
    animation:topDotAppear-ltr 0.3s ease-out forwards;
    animation-delay:0.2s;
}

:where(html[dir=ltr]) section:not(.landing).in-view .corner-dot.bottom-right {
    animation:bottomDotAppear-ltr 0.3s ease-out forwards;
    animation-delay:0.2s;
}

section:not(.landing).in-view .border-top {
    animation:borderTopGrow 0.8s ease-out forwards;
    animation-delay:0s;
}

section:not(.landing).in-view .border-right {
    animation:borderRightGrow 0.8s ease-out forwards;
    animation-delay:0s;
}

section:not(.landing).in-view .border-bottom {
    animation:borderBottomGrow 0.8s ease-out forwards;
    animation-delay:0.4s;
}

section:not(.landing).in-view .border-left {
    animation:borderLeftGrow 0.8s ease-out forwards;
    animation-delay:0.4s;
}

:where(html[dir=rtl]) section:not(.landing).in-view .extension-top-right-horizontal {
    animation:extensionGrowHorizontal 0.4s ease-out forwards;
    animation-delay:0.4s;
}

:where(html[dir=rtl]) section:not(.landing).in-view .extension-top-right-vertical {
    animation:extensionGrowVertical 0.4s ease-out forwards;
    animation-delay:0.4s;
}

:where(html[dir=rtl]) section:not(.landing).in-view .extension-bottom-left-horizontal {
    animation:extensionGrowHorizontal 0.4s ease-out forwards;
    animation-delay:0.4s;
}

:where(html[dir=rtl]) section:not(.landing).in-view .extension-bottom-left-vertical {
    animation:extensionGrowVertical 0.4s ease-out forwards;
    animation-delay:0.4s;
}

:where(html[dir=ltr]) section:not(.landing).in-view .extension-top-left-horizontal {
    animation:extensionGrowHorizontal 0.4s ease-out forwards;
    animation-delay:0.4s;
}

:where(html[dir=ltr]) section:not(.landing).in-view .extension-top-left-vertical {
    animation:extensionGrowVertical 0.4s ease-out forwards;
    animation-delay:0.4s;
}

:where(html[dir=ltr]) section:not(.landing).in-view .extension-bottom-right-horizontal {
    animation:extensionGrowHorizontal 0.4s ease-out forwards;
    animation-delay:0.4s;
}

:where(html[dir=ltr]) section:not(.landing).in-view .extension-bottom-right-vertical {
    animation:extensionGrowVertical 0.4s ease-out forwards;
    animation-delay:0.4s;
}

.corner-dot {
    position:absolute;
    width:0.375rem;
    height:0.375rem;
    background:white;
    border-radius:50%;
    opacity:0;
    transform:scale(0);
}

:where(html[dir=ltr]) .corner-dot.top-left {
    top:3.25rem;
    left:1.625rem;
}

:where(html[dir=ltr]) .corner-dot.bottom-right {
    bottom:1.25rem;
    right:1.625rem;
}

.corner-dot.top-right {
    top:3.25rem;
    right:1.25rem;
}

.corner-dot.bottom-left {
    bottom:1.25rem;
    left:1.25rem;
}

:where(html[dir=rtl]) .landing .corner-dot.top-right {
    animation:topDotAppear 0.3s ease-out forwards;
    animation-delay:1.6s;
}

:where(html[dir=rtl]) .landing .corner-dot.bottom-left {
    animation:bottomDotAppear 0.3s ease-out forwards;
    animation-delay:1.6s;
}

:where(html[dir=ltr]) .landing .corner-dot.top-right {
    animation:topDotAppear-ltr 0.3s ease-out forwards;
    animation-delay:1.6s;
}

:where(html[dir=ltr]) .landing .corner-dot.bottom-left {
    animation:bottomDotAppear-ltr 0.3s ease-out forwards;
    animation-delay:1.6s;
}

:where(html[dir=ltr]) .landing .corner-dot.top-left {
    animation:topDotAppear-ltr 0.3s ease-out forwards;
    animation-delay:1.6s;
}

:where(html[dir=ltr]) .landing .corner-dot.bottom-right {
    animation:bottomDotAppear-ltr 0.3s ease-out forwards;
    animation-delay:1.6s;
}

.border-line {
    position: absolute;
    background: linear-gradient(to right, white, transparent 90%);
}

:where(html[dir=rtl]) .border-top {
    top:3.25rem;
    right:24px;
    height:2px;
    width:0;
    background:linear-gradient(to left, white, transparent 90%);
}

:where(html[dir=rtl]) .border-right {
    top:24px;
    right:19px;
    width:1px;
    height:0;
    background:linear-gradient(to bottom, white, transparent 90%);
}

:where(html[dir=rtl]) .border-bottom {
    bottom:19px;
    left:24px;
    height:1px;
    width:0;
    background:linear-gradient(to right, white, transparent 90%);
}

:where(html[dir=rtl]) .border-left {
    bottom:24px;
    left:19px;
    width:1px;
    height:0;
    background:linear-gradient(to top, white, transparent 90%);
}

:where(html[dir=ltr]) .border-top {
    top:3.25rem;
    left:24px;
    height:1px;
    width:0;
    background:linear-gradient(to right, white, transparent 90%);
}

:where(html[dir=ltr]) .border-right {
    bottom:0;
    right:1.625rem;
    width:1px;
    height:0;
    background:linear-gradient(to top, white, transparent 90%);
}

:where(html[dir=ltr]) .border-bottom {
    bottom:19px;
    right:24px;
    height:1px;
    width:0;
    background:linear-gradient(to left, white, transparent 90%);
}

:where(html[dir=ltr]) .border-left {
    top:0;
    left:1.625rem;
    width:1px;
    height:0;
    background:linear-gradient(to bottom, white, transparent 90%);
}

:where(html[dir=ltr]) .landing .border-top {
    top:3.25rem;
    right:24px;
    height:1px;
    width:0;
    background:linear-gradient(to left, white, transparent 90%);
}

:where(html[dir=ltr]) .landing .border-right {
    top:3.25rem;
    right:1.625rem;
    width:1px;
    height:0;
    background:linear-gradient(to bottom, white, transparent 90%);
}

:where(html[dir=ltr]) .landing .border-bottom {
    bottom:19px;
    right:24px;
    height:1px;
    width:0;
    background:linear-gradient(to right, white, transparent 90%);
}

:where(html[dir=ltr]) .landing .border-left {
    top:auto;
    bottom:19px;
    left:1.625rem;
    width:1px;
    height:0;
    background:linear-gradient(to top, white, transparent 90%);
}

.landing .border-top {
    opacity:0;
    animation:borderTopGrow 0.8s ease-out forwards;
    animation-delay:1.2s;
}

.landing .border-right {
    opacity:0;
    animation:borderRightGrow 0.8s ease-out forwards;
    animation-delay:1.2s;
}

.landing .border-bottom {
    opacity:0;
    animation:borderBottomGrow 0.8s ease-out forwards;
    animation-delay:1.6s;
}

.landing .border-left {
    opacity:0;
    animation:borderLeftGrow 0.8s ease-out forwards;
    animation-delay:1.6s;
}

.extension-line {
    position:absolute;
    background:white;
}

:where(html[dir=rtl]) .extension-top-right-horizontal {
    top:3.25rem;
    right:0;
    height:1px;
    width:0;
}

:where(html[dir=rtl]) .extension-top-right-vertical {
    top:0;
    right:19px;
    width:1px;
    height:0;
}

:where(html[dir=rtl]) .extension-bottom-left-horizontal {
    bottom:19px;
    left:0;
    height:1px;
    width:0;
    background:linear-gradient(to right, white, transparent) !important;
}

:where(html[dir=rtl]) .extension-bottom-left-vertical {
    bottom:0;
    left:19px;
    width:1px;
    height:0;
    background:linear-gradient(to top, white, transparent) !important;
}

:where(html[dir=rtl]) .landing .extension-top-right-horizontal {
    opacity:0;
    animation:extensionGrowHorizontal 0.4s ease-out forwards;
    animation-delay:1.6s;
}

:where(html[dir=rtl]) .landing .extension-top-right-vertical {
    opacity:0;
    animation:extensionGrowVertical 0.4s ease-out forwards;
    animation-delay:1.6s;
}

:where(html[dir=rtl]) .landing .extension-bottom-left-horizontal {
    opacity:0;
    animation:extensionGrowHorizontal 0.4s ease-out forwards;
    animation-delay:1.6s;
}

:where(html[dir=rtl]) .landing .extension-bottom-left-vertical {
    opacity:0;
    animation:extensionGrowVertical 0.4s ease-out forwards;
    animation-delay:1.6s;
}

:where(html[dir=ltr]) .extension-top-left-horizontal {
    top:3.25rem;
    left:0;
    height:1px;
    width:0;
}

:where(html[dir=ltr]) .extension-top-left-vertical {
    top:1.625rem;
    left:1.625rem;
    width:1px;
    height:0;
    background:linear-gradient(to top, white, transparent) !important;
}

:where(html[dir=ltr]) .extension-bottom-right-horizontal {
    bottom:19px;
    right:0;
    height:1px;
    width:0;
    background:linear-gradient(to right, white, transparent) !important;
}

:where(html[dir=ltr]) .extension-bottom-right-vertical {
    bottom:0;
    right:1.625rem;
    width:1px;
    height:0;
    background:linear-gradient(to top, white, transparent) !important;
}

:where(html[dir=ltr]) .landing .extension-top-right-horizontal {
    top:3.25rem;
    right:0;
    height:1px;
    width:0;
    opacity:0;
    animation:landingExtensionGrowHorizontal 0.4s ease-out forwards;
    animation-delay:1.6s;
}

:where(html[dir=ltr]) .landing .extension-top-right-vertical {
    top:0;
    right:1.625rem;
    width:1px;
    height:0;
    background:linear-gradient(to top, white, transparent) !important;
    opacity:0;
    animation:landingExtensionGrowVertical 0.4s ease-out forwards;
    animation-delay:1.6s;
}

:where(html[dir=ltr]) .landing .extension-bottom-left-horizontal {
    top:auto;
    bottom:19px;
    left:0;
    height:1px;
    width:0;
    background:linear-gradient(to left, white, transparent) !important;
    opacity:0;
    animation:landingExtensionGrowHorizontal 0.4s ease-out forwards;
    animation-delay:1.6s;
}

:where(html[dir=ltr]) .landing .extension-bottom-left-vertical {
    bottom:0;
    left:1.625rem;
    width:1px;
    height:0;
    background:linear-gradient(to top, white, transparent) !important;
    opacity:0;
    animation:landingExtensionGrowVertical 0.4s ease-out forwards;
    animation-delay:1.6s;
}

@keyframes borderTopGrow {
    from { width: 0; opacity: 1; }
    to { width: calc(100% - 48px); opacity: 1; }
}

@keyframes borderRightGrow {
    from { height: 0; opacity: 1; }
    to { height: calc(100% - 48px); opacity: 1; }
}

@keyframes borderBottomGrow {
    from { width: 0; opacity: 1; }
    to { width: calc(100% - 48px); opacity: 1; }
}

@keyframes borderLeftGrow {
    from { height: 0; opacity: 1; }
    to { height: calc(100% - 48px); opacity: 1; }
}

@keyframes extensionGrowHorizontal {
    from { width: 0; opacity: 1; }
    to { width: 24px; opacity: 1; }
}

@keyframes extensionGrowVertical {
    from { height: 0; opacity: 1; }
    to { height: 24px; opacity: 1; }
}

@keyframes topDotAppear {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1) translate(50%, -50%); }
}

@keyframes bottomDotAppear {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1) translate(-50%, 50%); }
}

@keyframes landingExtensionGrowHorizontal {
    from { width: 0; opacity: 1; }
    to { width: 1.625rem; opacity: 1; }
}

@keyframes landingExtensionGrowVertical {
    from { height: 0; opacity: 1; }
    to { height: 3.25rem; opacity: 1; }
}

@keyframes topDotAppear-ltr {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1) translate(-50%, -50%); }
}

@keyframes bottomDotAppear-ltr {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1) translate(50%, 50%); }
}

@keyframes topDotAppearDesktop {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1) translate(35%, -35%); }
}

@keyframes bottomDotAppearDesktop {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1) translate(-35%, 35%); }
}

.js .home section:not(.landing) :where(.company-title, p, .services-image, .about-image, .swiper, .members-image) {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.home section:not(.landing).in-view .company-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}

.home section:not(.landing).in-view p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.12s;
}

.home section:not(.landing).in-view .services-image, .home section:not(.landing).in-view .about-image, .home section:not(.landing).in-view .swiper, .home section:not(.landing).in-view .members-image {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.multi-logo-section {
    z-index: 100;
}

.glass-card {
    position: relative;
    transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), transparent 10%, transparent 80%, rgba(255, 255, 255, 0.3) 90%);
    border-radius: 1rem;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.05) 100% );
    z-index: 1;
    pointer-events: none;
    transition: background var(--dur-base) var(--ease-out);
}

.glass-card>* {
    position: relative;
    z-index: 2;
}

.glass-card:hover::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 100% );
}


.zoom-out-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
    transform: scale(1.1);
    animation: zoomOut 1.2s var(--ease-out) forwards;
    animation-delay: 0.1s;
}

@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

@media (min-width: 1024px) {
    .home .landing {
        background-image: var(--hero-bg, url('../images/home-bg.jpg'));
    }

    :root {
        --border-width-desktop: 0.075rem;
        --dot-radius: 0.5rem;
    }








    

    

    

    .corner-dot {
        width: var(--dot-radius);
        height: var(--dot-radius);
    }

    :where(html[dir=rtl]) .corner-dot.top-right {
        top: 0;
        right: 0;
        transform: translate(50%, 50%);
    }

    :where(html[dir=ltr]) .corner-dot.top-left {
        top: 0;
        left: 0;
        transform: translate(50%, 50%);
    }

    :where(html[dir=ltr]) .corner-dot.bottom-right {
        bottom: 0;
        right: 0;
    }

    :where(html[dir=ltr]) .corner-dot.top-right {
        top: 0;
        right: 0;
        transform: translate(-35%, 35%);
    }

    .corner-dot.bottom-left {
        bottom: 0;
        left: 0;
    }

    :where(html[dir=rtl]) .border-top {
        top: 0;
        right: 0;
        height: var(--border-width-desktop);
    }

    :where(html[dir=rtl]) .border-right {
        top: 0;
        right: 0;
        width: var(--border-width-desktop);
    }

    :where(html[dir=rtl]) .border-bottom {
        bottom: 0;
        left: 0;
        height: var(--border-width-desktop);
    }

    :where(html[dir=ltr]) .border-top {
        top: 0;
        left: 0;
        height: var(--border-width-desktop);
    }

    :where(html[dir=ltr]) .border-right {
        bottom: 0;
        right: 0;
        width: var(--border-width-desktop);
    }

    :where(html[dir=ltr]) .border-bottom {
        bottom: 0;
        right: 0;
        height: var(--border-width-desktop);
    }

    .border-left {
        bottom: 0;
        left: 0;
        width: var(--border-width-desktop);
    }

    :where(html[dir=rtl]) .extension-top-right-horizontal {
        top: 0;
        right: -4rem;
        height: var(--border-width-desktop);
        background: linear-gradient(to left, white, transparent) !important;
    }

    :where(html[dir=rtl]) .extension-top-right-vertical {
        top: -5rem;
        right: 0;
        width: var(--border-width-desktop);
        background: linear-gradient(to bottom, white, transparent) !important;
    }

    :where(html[dir=rtl]) .extension-bottom-left-horizontal {
        bottom: 0;
        left: -4rem;
        height: var(--border-width-desktop);
        background: linear-gradient(to right, white, transparent) !important;
    }

    :where(html[dir=rtl]) .extension-bottom-left-vertical {
        bottom: -5rem;
        left: 0;
        width: var(--border-width-desktop);
        background: linear-gradient(to top, white, transparent) !important;
    }

    @keyframes wrapperBlurDesktop {
        from { backdrop-filter: blur(0); }
        to { backdrop-filter: blur(0.45rem); }
    }

    :where(html[dir=ltr]) .landing .border-top {
        top: 0;
        right: 0;
        height: var(--border-width-desktop);
    }

    :where(html[dir=ltr]) .landing .border-right {
        top: 0;
        right: 0;
        width: var(--border-width-desktop);
    }

    :where(html[dir=ltr]) .landing .border-bottom {
        bottom: 0;
        left: 0;
        height: var(--border-width-desktop);
    }

    :where(html[dir=ltr]) .landing .border-left {
        top: 0;
        left: 0;
        width: var(--border-width-desktop);
    }

    :where(html[dir=ltr]) .landing .corner-dot.top-right {
        animation: topDotAppearDesktop 0.3s ease-out forwards;
        animation-delay: 0.3s;
    }

    :where(html[dir=ltr]) .landing .corner-dot.bottom-left {
        animation: bottomDotAppearDesktop 0.3s ease-out forwards;
        animation-delay: 0.3s;
    }

    :where(html[dir=ltr]) .extension-top-left-horizontal {
        top: 0;
        left: -4rem;
        height: var(--border-width-desktop);
        background: linear-gradient(to right, white, transparent) !important;
    }

    :where(html[dir=ltr]) .extension-top-left-vertical {
        top: -5rem;
        left: 0;
        width: var(--border-width-desktop);
        background: linear-gradient(to bottom, white, transparent) !important;
    }

    :where(html[dir=ltr]) .extension-bottom-right-horizontal {
        bottom: 0;
        right: -4rem;
        height: var(--border-width-desktop);
        background: linear-gradient(to left, white, transparent) !important;
    }

    :where(html[dir=ltr]) .extension-bottom-right-vertical {
        bottom: -8rem;
        right: 0;
        width: var(--border-width-desktop);
        background: linear-gradient(to top, white, transparent) !important;
    }

    :where(html[dir=ltr]) .landing .extension-top-right-horizontal {
        top: 0 !important;
        right: -4rem !important;
        height: var(--border-width-desktop);
        background: linear-gradient(to right, white, transparent) !important;
    }

    :where(html[dir=ltr]) .landing .extension-top-right-vertical {
        top: -5rem !important;
        right: 0 !important;
        width: var(--border-width-desktop);
        background: linear-gradient(to top, white, transparent) !important;
    }

    :where(html[dir=ltr]) .landing .extension-bottom-left-horizontal {
        bottom: 0 !important;
        left: -4rem !important;
        height: var(--border-width-desktop);
        background: linear-gradient(to left, white, transparent) !important;
    }

    :where(html[dir=ltr]) .landing .extension-bottom-left-vertical {
        bottom: -8rem !important;
        left: 0 !important;
        width: var(--border-width-desktop);
        background: linear-gradient(to bottom, white, transparent) !important;
    }

    @keyframes wrapperBlurDesktop-ltr {
        from { backdrop-filter: blur(0); }
        to { backdrop-filter: blur(0.45rem); }
    }

    @keyframes extensionGrowHorizontalDesktop {
        from { width: 0; opacity: 1; }
        to { width: 20rem; opacity: 1; }
    }

    @keyframes extensionGrowVerticalDesktop {
        from { height: 0; opacity: 1; }
        to { height: 20rem; opacity: 1; }
    }

    @keyframes borderTopGrowDesktop {
        from { width: 0; opacity: 1; }
        to { width: calc(100% - 160px); opacity: 1; }
    }

    @keyframes borderRightGrowDesktop {
        from { height: 0; opacity: 1; }
        to { height: calc(100% - 160px); opacity: 1; }
    }

    @keyframes borderBottomGrowDesktop {
        from { width: 0; opacity: 1; }
        to { width: calc(100% - 160px); opacity: 1; }
    }

    @keyframes borderLeftGrowDesktop {
        from { height: 0; opacity: 1; }
        to { height: calc(100% - 160px); opacity: 1; }
    }

    :where(html[dir=rtl]) .landing .extension-top-right-horizontal {
        animation: extensionGrowHorizontalDesktop 0.4s ease-out forwards;
        animation-delay: 0.3s;
    }

    :where(html[dir=rtl]) .landing .extension-top-right-vertical {
        animation: extensionGrowVerticalDesktop 0.4s ease-out forwards;
        animation-delay: 0.3s;
    }

    :where(html[dir=rtl]) .landing .extension-bottom-left-horizontal {
        animation: extensionGrowHorizontalDesktop 0.4s ease-out forwards;
        animation-delay: 0.3s;
    }

    :where(html[dir=rtl]) .landing .extension-bottom-left-vertical {
        animation: extensionGrowVerticalDesktop 0.4s ease-out forwards;
        animation-delay: 0.3s;
    }

    :where(html[dir=rtl]) .landing .border-top {
        animation: borderTopGrowDesktop 0.8s ease-out forwards;
        animation-delay: 0.15s;
    }

    :where(html[dir=ltr]) .landing .extension-top-left-horizontal {
        animation: extensionGrowHorizontalDesktop 0.4s ease-out forwards;
        animation-delay: 0.3s;
    }

    :where(html[dir=ltr]) .landing .extension-top-left-vertical {
        animation: extensionGrowVerticalDesktop 0.4s ease-out forwards;
        animation-delay: 0.3s;
    }

    :where(html[dir=ltr]) .landing .extension-bottom-right-horizontal {
        animation: extensionGrowHorizontalDesktop 0.4s ease-out forwards;
        animation-delay: 0.3s;
    }

    :where(html[dir=ltr]) .landing .extension-bottom-right-vertical {
        animation: extensionGrowVerticalDesktop 0.4s ease-out forwards;
        animation-delay: 0.3s;
    }

    :where(html[dir=ltr]) .landing .border-top {
        left: auto;
        animation: borderTopGrowDesktop 0.8s ease-out forwards;
        animation-delay: 0.15s;
    }

    .landing .border-right {
        animation: borderRightGrowDesktop 0.8s ease-out forwards;
        animation-delay: 0.15s;
    }

    .landing .border-bottom {
        animation: borderBottomGrowDesktop 0.8s ease-out forwards;
        animation-delay: 0.3s;
    }

    :where(html[dir=rtl]) .landing .border-left {
        animation: borderLeftGrowDesktop 0.8s ease-out forwards;
        animation-delay: 0.3s;
    }

    :where(html[dir=rtl]) section:not(.landing).in-view .extension-top-right-horizontal {
        animation: extensionGrowHorizontalDesktop 0.4s ease-out forwards;
        animation-delay: 0.4s;
    }

    :where(html[dir=rtl]) section:not(.landing).in-view .extension-top-right-vertical {
        animation: extensionGrowVerticalDesktop 0.4s ease-out forwards;
        animation-delay: 0.4s;
    }

    :where(html[dir=rtl]) section:not(.landing).in-view .extension-bottom-left-horizontal {
        animation: extensionGrowHorizontalDesktop 0.4s ease-out forwards;
        animation-delay: 0.4s;
    }

    :where(html[dir=rtl]) section:not(.landing).in-view .extension-bottom-left-vertical {
        animation: extensionGrowVerticalDesktop 0.4s ease-out forwards;
        animation-delay: 0.4s;
    }

    :where(html[dir=ltr]) .landing .border-left {
        top: auto;
        bottom: 0;
        animation: borderLeftGrowDesktop 0.8s ease-out forwards;
        animation-delay: 0.3s;
    }

    :where(html[dir=ltr]) section:not(.landing).in-view .extension-top-left-horizontal {
        animation: extensionGrowHorizontalDesktop 0.4s ease-out forwards;
        animation-delay: 0.4s;
    }

    :where(html[dir=ltr]) section:not(.landing).in-view .extension-top-left-vertical {
        animation: extensionGrowVerticalDesktop 0.4s ease-out forwards;
        animation-delay: 0.4s;
    }

    :where(html[dir=ltr]) section:not(.landing).in-view .extension-bottom-right-horizontal {
        animation: extensionGrowHorizontalDesktop 0.4s ease-out forwards;
        animation-delay: 0.4s;
    }

    :where(html[dir=ltr]) section:not(.landing).in-view .extension-bottom-right-vertical {
        animation: extensionGrowVerticalDesktop 0.4s ease-out forwards;
        animation-delay: 0.4s;
    }

    section:not(.landing).in-view .border-top {
        animation: borderTopGrowDesktop 0.8s ease-out forwards;
        animation-delay: 0s;
    }

    section:not(.landing).in-view .border-right {
        animation: borderRightGrowDesktop 0.8s ease-out forwards;
        animation-delay: 0s;
    }

    section:not(.landing).in-view .border-bottom {
        animation: borderBottomGrowDesktop 0.8s ease-out forwards;
        animation-delay: 0.4s;
    }

    section:not(.landing).in-view .border-left {
        animation: borderLeftGrowDesktop 0.8s ease-out forwards;
        animation-delay: 0.4s;
    }

    .landing {
        margin-bottom: 2rem;
    }

    .landing::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: inherit;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        animation: none;
        z-index: 0;
    }

    .landing::after {
        content: '';
        background: linear-gradient(to top, transparent 80%, rgba(48, 53, 55, 0.8)), linear-gradient(to bottom, transparent 80%, rgba(48, 53, 55, 0.4), rgba(48, 53, 55, 0.7), rgba(48, 53, 55, 1)) !important;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }

    .gradient-bg {
        background: linear-gradient(to top, transparent 40%, rgba(48, 53, 55, 0.4), rgba(48, 53, 55, 0.6), rgba(48, 53, 55, 0.8), rgba(48, 53, 55, 1)), linear-gradient(to bottom, transparent 40%, rgba(48, 53, 55, 0.4), rgba(48, 53, 55, 0.6), rgba(48, 53, 55, 0.8), rgba(48, 53, 55, 1)) !important;
    }

    

    

    

    

}

#overlay-project-description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#project-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#project-overlay.hidden {
    display: none !important;
}

#project-overlay .w-\[90vw\] {
    max-width: 90vw !important;
    max-height: 90vh !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}






.js .animate-in-initial {
    opacity: 0;
    transform: translateY(20px);
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.member-row {
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.member-row.hidden-row {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.overlay-gradient {
    background: radial-gradient(circle at center, rgba(48, 53, 55, 0.6) 0%, rgba(48, 53, 55, 0.9) 40%, rgba(48, 53, 55, 1) 100%);
}

#service-overlay, #member-overlay {
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 1rem;
    overflow: hidden;
}

.service-page .fade-enter {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
}

.service-page .fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-page .fade-exit {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.service-page .fade-exit-active {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.members-page .fade-enter {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
}

.members-page .fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.members-page .fade-exit {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.members-page .fade-exit-active {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.members-page .works-container {
    border: 1px solid white;
    border-radius: 1rem;
    background-color: transparent;
}

.members-page .works-title {
    color: #2c2c2c;
}

.members-page .works-main img {
    max-height: 400px;
}

.members-page .works-thumbnails img {
    transition: transform 0.2s ease;
}

.members-page .works-thumbnails img:hover {
    transform: scale(1.05);
}

.members-page .works-title {
    color: #2c2c2c;
}

.members-page .works-main img {
    max-height: 400px;
}

.members-page .works-thumbnails img {
    transition: transform 0.2s ease;
}

.members-page .works-thumbnails img:hover {
    transform: scale(1.05);
}

#overlay-project-description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#overlay-project-description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#project-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#project-overlay.hidden {
    display: none !important;
}

#project-overlay .w-\[90vw\] {
    max-width: 90vw !important;
    max-height: 90vh !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

#overlay-project-description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#project-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#project-overlay.hidden {
    display: none !important;
}

#project-overlay .w-\[90vw\] {
    max-width: 90vw !important;
    max-height: 90vh !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}














.works-thumbnails .swiper {
    height: auto !important;
}

.works-thumbnails .swiper-wrapper {
    height: auto !important;
}

.works-thumbnails .swiper-slide {
    height: 120px !important;
    width: auto !important;
}

.works-thumbnails .swiper-slide img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
}

.mobile-arrow {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.mobile-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-arrow svg {
    fill: white;
    width: 20px;
    height: 20px;
}

/* ===== Carousels (Swiper, see static/js/carousels.js and partials/carousel_arrow.html) ===== */
.carousel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carousel > .swiper {
    flex: 1 1 0%;
    min-width: 0;
}

.carousel-arrow {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.carousel-arrow svg {
    width: 1.25rem;
    height: 1.25rem;
}

.carousel-arrow--next svg {
    transform: rotate(180deg);
}

html[dir=rtl] .carousel-arrow--prev svg {
    transform: rotate(180deg);
}

html[dir=rtl] .carousel-arrow--next svg {
    transform: none;
}

.carousel-arrow:hover {
    background: #fff;
    color: #303537;
    border-color: #fff;
}

.carousel-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.carousel-arrow.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.carousel-arrow.swiper-button-lock,
.carousel-arrow[hidden] {
    display: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding-top: 1rem;
}

.carousel-dots.swiper-pagination-lock {
    display: none;
}

.carousel-dots .swiper-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
    margin: 0 !important;
    background: #fff;
    opacity: 0.35;
    transition: opacity 150ms ease, width 300ms ease;
}

.carousel-dots .swiper-pagination-bullet-active {
    width: 1.5rem;
    border-radius: 9999px;
    opacity: 1;
}

/* equal-height slides */
.carousel .swiper-slide {
    height: auto;
}

/* projects: on phones the centred card is the one in focus, the neighbours peek in dimmed */
.projectSwiper .swiper-slide {
    transition: opacity 300ms ease, transform 300ms ease;
}

@media (max-width: 639px) {
    .projectSwiper .swiper-slide:not(.swiper-slide-active) {
        opacity: 0.5;
        transform: scale(0.94);
    }
}

/* hero logo cards: the selected company */
.logo-card {
    cursor: pointer;
}

.logo-card.active .glass-card {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.logo-card:not(.active) {
    opacity: 0.75;
}

.logo-card:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 1rem;
}

/* hero text/photo swap when another company is picked */
.hero-swap {
    transition: opacity 200ms ease;
}

.hero-swap.is-swapping {
    opacity: 0;
}

@media (min-width: 1024px) {
    .carousel {
        gap: 1.5rem;
    }

    .carousel-arrow {
        width: 3.25rem;
        height: 3.25rem;
    }

    .carousel-arrow svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .carousel-dots {
        padding-top: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .projectSwiper .swiper-slide,
    .hero-swap,
    .carousel-arrow,
    .carousel-dots .swiper-pagination-bullet {
        transition: none;
    }
}

/* ===== Header and menus (static/js/header.js, header_desktop.js) ===== */
/* hamburger that turns into an X when its button is aria-expanded="true" */
.menu-toggle-icon {
    position: relative;
    display: block;
    width: 1.5rem;
    height: 1rem;
}

.menu-toggle-icon > span {
    position: absolute;
    inset-inline: 0;
    height: 2px;
    border-radius: 9999px;
    background: #fff;
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) ease, top var(--dur-base) var(--ease-out);
}

.menu-toggle-icon > span:nth-child(1) { top: 0; }
.menu-toggle-icon > span:nth-child(2) { top: calc(50% - 1px); }
.menu-toggle-icon > span:nth-child(3) { top: calc(100% - 2px); }

.menu-toggle[aria-expanded="true"] .menu-toggle-icon > span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon > span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon > span:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }

.nav-link {
    transition: color var(--dur-fast) ease;
}

.nav-link:hover {
    color: #9BCB2E;
}

/* desktop: logo and nav share the centre cell and cross-fade */
.desktop-logo,
.desktop-menu {
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
}

.desktop-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
}

#mainHeaderDesktop.menu-open .desktop-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

#mainHeaderDesktop.menu-open .desktop-logo {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
}

#mainHeaderDesktop {
    transition: background-color var(--dur-base) ease, backdrop-filter var(--dur-base) ease, border-radius var(--dur-base) ease;
}

#mainHeaderDesktop.is-scrolled,
#mainHeaderDesktop.menu-open {
    background-color: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: 0.5rem;
}

/* phones: the header slides up and gets glass once the page scrolls */
#mainHeader.is-scrolled {
    top: 0.75rem;
}

#mainHeader.is-scrolled > div {
    border-radius: 0.75rem;
    background-color: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

/* phones: full-screen menu */
.menu-overlay {
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}

.menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.menu-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 40ms);
}

.menu-overlay.is-open .menu-item {
    opacity: 1;
    transform: none;
}

/* page heroes: scrim on the reading side (text is at the start: right in fa/ar, left in en) */
.hero-scrim {
    background: linear-gradient(to left, rgba(20, 22, 23, 0.8) 0%, rgba(20, 22, 23, 0.45) 45%, rgba(20, 22, 23, 0) 75%);
}

html[dir="ltr"] .hero-scrim {
    background: linear-gradient(to right, rgba(20, 22, 23, 0.8) 0%, rgba(20, 22, 23, 0.45) 45%, rgba(20, 22, 23, 0) 75%);
}

@media (max-width: 1023px) {
    /* phones: the text spans the width, so darken from the bottom up instead */
    .hero-scrim,
    html[dir="ltr"] .hero-scrim {
        background: linear-gradient(to top, rgba(20, 22, 23, 0.85) 0%, rgba(20, 22, 23, 0.35) 55%, rgba(20, 22, 23, 0.1) 100%);
    }
}
