@font-face {
    font-family: 'PincoyaBlack';
    src: url('../fonts/pincoyablack.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}
.parallax-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 1;
}
.parallax-element {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    object-fit: cover;
}
.video-wrapper {
    width: 100%;
    height: 100%;
}
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#hero .hero-content-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
#hero .hero-logo {
    max-width: 320px;
    width: 100%;
    opacity: 0;
    animation: heroLogoFadeIn 0.8s ease forwards;
    animation-delay: 0.6s;
}
@keyframes heroLogoFadeIn {
    to { opacity: 1; }
}
@media (min-width: 768px) {
    #hero .hero-logo {
        max-width: 520px;
    }
}
#hero.hero-service {
    height: 90vh;
}

@media (min-width: 768px) {
    #hero.hero-service {
        height: 85vh;
    }
}

#hero.hero-service .hero-content-overlay {
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 40px;
    z-index: 4;
}

@media (min-width: 768px) {
    #hero.hero-service .hero-content-overlay {
        padding-bottom: 80px;
    }
}

.hero-service .service-logo {
    display: none;
    width: 50px;
    margin-bottom: 20px;
}

.hero-service .hero-content-overlay .container {
    display: flex;
    flex-direction: column;
}

.hero-service .service-title-wrap {
    order: -1;
    display: flex;
    flex-direction: column;
}

.hero-service .service-title {
    margin: 0 0 8px;
    color: var(--yellow);
    font-family: 'PincoyaBlack', sans-serif;
    text-transform: uppercase;
    font-size: clamp(72px, 8vw, 120px);
    line-height: 1;
    transform: skewX(-5deg) rotate(-3deg);
    text-shadow:
        2px 2px 0 #000,
        4px 4px 0 #000;
}

.hero-service .hero-content-overlay .contents {
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 30px;
    margin-top: 24px;
}

.hero-service .hero-content-overlay .contents strong,
.hero-service .hero-content-overlay .contents b {
    color: var(--yellow);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

@media (min-width: 768px) {
    .hero-service .service-logo {
        display: block;
    }

    .hero-service .hero-content-overlay .container {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .hero-service .service-title-wrap {
        order: 0;
        align-items: flex-end;
        position: relative;
    }

    .hero-service .service-title {
        margin: 0;
        text-align: right;
    }

    .hero-service .hero-content-overlay .contents {
        max-width: 500px;
    }
    .hero-service.case .hero-content-overlay .contents {
        max-width: 700px;
    }
}

.hero-service .services-nav {
    position: absolute;
    top: 110px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hero-service .services-nav::-webkit-scrollbar {
    display: none;
}

.hero-service .services-nav__item {
    flex-shrink: 0;
    padding: 6px 16px;
    border: 1px solid var(--yellow);
    border-radius: 999px;
    color: var(--yellow);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.hero-service .services-nav__item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-service .services-nav__item--current {
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: black;
    cursor: default;
}
.hero-service .services-nav__item--current:hover {
    background-color: var(--yellow);
    border-color: var(--yellow);
}

@media (min-width: 768px) {
    .hero-service .services-nav {
        justify-content: center;
    }
}

/* Case services infinite-scroll ticker */
.hero-service .case-services-ticker {
    position: relative;
    margin-top: 0;
    margin-left: -25px;
    margin-right: -25px;
    transform: skewX(-5deg) rotate(-3deg);
    pointer-events: none;
}

.hero-service .case-services-ticker__inner {
    overflow: hidden;
    position: relative;
}

@keyframes case-services-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.hero-service .case-services-ticker__track {
    display: inline-block;
    white-space: nowrap;
    animation: case-services-ticker-scroll var(--ticker-duration, 18s) linear infinite;
    pointer-events: auto;
}

.hero-service .case-services-ticker__item {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--yellow);
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.2s;
}

.hero-service .case-services-ticker__item:hover {
    color: #fff;
}

.hero-service .case-services-ticker__sep {
    color: var(--yellow);
    margin: 0 16px;
    font-size: 0.6em;
    vertical-align: middle;
    opacity: 0.5;
}

.hero-service .case-services-ticker__fade {
    display: none;
}

.hero-service .case-services-ticker__fade--left {
    left: 0;
    background: linear-gradient(to right, black 0%, transparent 100%);
}

.hero-service .case-services-ticker__fade--right {
    right: -1px;
    background: linear-gradient(to left, black 0%, transparent 100%);
}

@media (min-width: 768px) {
    .hero-service .case-services-ticker {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 8px);
        bottom: auto;
        width: auto;
        margin-left: 0;
        margin-right: 0;
        overflow: hidden;
    }

    .hero-service .case-services-ticker__inner {
        width: 100%;
    }

    .hero-service .case-services-ticker__item {
        font-size: 13px;
    }

    .hero-service .case-services-ticker__fade {
        display: none;
    }

    .hero-service .case-services-ticker__inner {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    }
}

#hero .gradient-bg {
    position: absolute;
    z-index: 3;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 50%;
    background: linear-gradient(to bottom, transparent, black);
}
.hero-service .gradient-bg {
    height: 90%;
}

@media (max-width: 767px) {
    #hero.hero-service {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        overflow: visible;
        background-color: #000;
    }

    #hero.hero-service .parallax-window {
        height: 100vh;
        height: 100svh;
    }

    #hero.hero-service .hero-content-overlay {
        position: relative;
        inset: auto;
        min-height: 100vh;
        min-height: 100svh;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        padding-top: 140px;
    }

    #hero.hero-service .gradient-bg {
        display: none;
    }

    #hero.hero-service .parallax-element {
        position: relative;
    }

    #hero.hero-service .parallax-element::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent 30%, black 100%);
    }

    .hero-service .service-title {
        font-size: clamp(44px, 12vw, 68px);
    }

    .hero-service .case-services-ticker__item {
        font-size: 11px;
    }

    .hero-service .case-services-ticker__sep {
        font-size: 0.5em;
        margin: 0 10px;
    }
}