/* 
---------------------------------------------
                Service
--------------------------------------------- 
*/

/* common */
.title {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.2px;
    white-space: pre-line;
}

.lead {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
    white-space: pre-line;
}

/* hero-media */
.subpage-content>section:first-of-type .container,
.hero-media .container {
    padding-top: 70px;
}

.hero-media .hero {
    margin-top: 50px;
    height: auto;
    overflow: hidden;
}

.hero-media .hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cont-lead {
    display: flex;
}

.cont-lead .left {
    flex: 1;
}

.cont-lead .right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-media .btn-outline {
    margin-top: 70px;
}

@media (max-width: 1440px) {
    .title {
        font-size: 40px;
        line-height: 1.35;
    }

    .lead {
        font-size: 26px;
    }

    .hero-media .container {
        padding-top: 64px;
    }

    .hero-media .hero {
        margin-top: 44px;
    }

    .cont-lead {
        gap: 32px;
    }

    .hero-media .btn-outline {
        margin-top: 60px;
    }
}

@media (max-width: 1280px) {
    .title {
        font-size: 36px;
    }

    .lead {
        font-size: var(--font-2xl);
    }

    .hero-media .container {
        padding-top: 56px;
    }

    .hero-media .hero {
        margin-top: 40px;
    }
}

@media (max-width: 1024px) {

    .subpage-content>section:first-of-type .container,
    .hero-media .container {
        padding-top: 52px;
    }

    .title {
        font-size: 30px;
    }

    .lead {
        font-size: var(--font-lg);
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 28px;
        white-space: normal;
    }

    .lead {
        font-size: var(--font-lg);
        white-space: normal;
    }

    .cont-lead {
        flex-direction: column;
        gap: 20px;
    }

    .hero-media .container {
        padding-top: 44px;
    }

    .hero-media .hero {
        margin-top: 32px;
    }

    .hero-media .btn-outline {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: var(--font-2xl);
    }

    .lead {
        font-size: var(--font-md);
    }

    .hero-media .container {
        padding-top: 36px;
    }

    .hero-media .hero {
        margin-top: 26px;
    }
}

/* split-item */
.split-item {
    text-align: center;
    background: url("../../img/service/service-cont-bg01.jpg") center/cover no-repeat;
}

.split-item .container {
    padding-top: 100px;
}

.subpage-content .eyebrow {
    color: var(--indigo);
    margin-bottom: 20px;
}

.wide-box {
    margin-top: 60px;
    position: relative;
    height: 764px;
    display: flex;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(18, 40, 60, .08);
    overflow: hidden;
}

.wide-box .pane {
    position: relative;
    flex: 1;
}

.wide-box .pane:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--white-60);
    pointer-events: none;
}

.pane-overlay {
    position: absolute;
    inset: 0;
    padding: 0 55px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
    transition: transform .5s ease;
}

.pane-overlay p {
    display: flex;
    align-items: center;
    min-height: 117px;
    margin-top: 50px;
    color: white;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    transform: translateY(0);
    white-space: pre-line;
    transition: transform .3s ease;
}

.mark {
    width: 110px;
    height: 110px;
    background: rgba(238, 245, 250, .25);
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    opacity: 0;
    backdrop-filter: blur(8px);
    transform: translateY(30px);
    transition: opacity .4s ease, transform .4s ease;
}

.pane::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background .5s ease;
}

.pane:hover::after,
.pane:focus-within::after {
    background: rgba(37, 53, 76, 0.5);
}

.pane:hover .mark,
.pane:focus-within .mark {
    opacity: 1;
    transform: translateY(0);
}

.pane:hover p,
.pane:focus-within p {
    transform: translateY(-30px);
}

@media (max-width: 1440px) {
    .split-item .container {
        padding-top: 90px;
    }

    .wide-box {
        height: 700px;
        border-radius: 18px;
    }

    .pane-overlay {
        padding: 0 44px 52px;
    }

    .pane-overlay p {
        font-size: var(--font-3xl);
        line-height: 1.6;
        min-height: 104px;
        margin-top: 40px;
        transform: none;
    }

    .mark {
        width: 112px;
        height: 112px;
        opacity: 1;
        transform: none;
    }

    .pane:hover p,
    .pane:focus-within p {
        transform: none;
    }

    .pane:hover .mark,
    .pane:focus-within .mark {
        transform: none;
        opacity: 1;
    }
}

@media (max-width: 1280px) {
    .split-item .container {
        padding-top: 84px;
    }

    .wide-box {
        height: 640px;
    }

    .pane-overlay {
        padding: 0 40px 48px;
    }

    .pane-overlay p {
        font-size: var(--font-2xl);
        line-height: 1.55;
        min-height: 96px;
        margin-top: 36px;
        transform: none;
    }

    .mark {
        width: 104px;
        height: 104px;
    }
}

@media (max-width: 1024px) {
    .split-item .container {
        padding-top: 72px;
    }

    .wide-box {
        margin-top: 40px;
        height: auto;
        flex-direction: column;
        border-radius: 16px;
    }

    .wide-box .pane {
        min-height: 240px;
    }

    .wide-box .pane:not(:first-child)::before {
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        width: auto;
    }

    .pane-overlay {
        padding: 22px 22px 34px;
        justify-content: flex-end;
    }

    .pane-overlay p {
        font-size: var(--font-lg);
        min-height: 72px;
        margin-top: 26px;
    }

    .mark {
        width: 88px;
        height: 88px;
    }
}

@media (max-width: 768px) {

    .wide-box {
        margin-top: 30px;
    }

    .pane-overlay p {
        margin-top: 15px;
        font-size: var(--font-md);
    }

    .mark {
        background-size: 50%;
    }
}

@media (max-width: 480px) {
    .split-item .container {
        padding-top: 56px;
    }

    .wide-box .pane {
        min-height: 220px;
    }

    .pane-overlay p {
        font-size: var(--font-base);
    }

    .pane-overlay {
        padding: 18px 18px 28px;
    }

    .mark {
        width: 78px;
        height: 78px;
    }
}

/* clients */
.clients .left .title {
    margin-bottom: 50px;
}

.clients .right {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    min-height: 610px;
    overflow: hidden;
}

.clients .right::before,
.clients .right::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 180px;
    pointer-events: none;
    z-index: 2;
}

.clients .right::before {
    top: 0;
    background: linear-gradient(180deg, white 0%, rgba(255, 255, 255, 0) 100%);
}

.clients .right::after {
    bottom: 0;
    background: linear-gradient(0deg, white 0%, rgba(255, 255, 255, 0) 100%);
}

.clients .rail {
    position: relative;
    height: 610px;
    overflow: hidden;
}

.clients .track {
    display: flex;
    flex-direction: column;
    will-change: transform;
    --speed: 16s;
}

.clients .logo-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 0 0 auto;
}

.clients .logo-list+.logo-list {
    margin-top: 30px;
}

.clients .logo-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.clients .logo {
    height: 130px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--bluegray-100);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .02);
}

.clients .logo img {
    max-width: 72%;
    height: auto;
    filter: grayscale(100%) brightness(0.9) contrast(1.05);
}

@keyframes marqueeUp {
    from {
        transform: translateY(0);
    }

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

@keyframes marqueeDown {
    from {
        transform: translateY(-50%);
    }

    to {
        transform: translateY(0);
    }
}

.clients .rail.up .track {
    animation: marqueeUp var(--speed) linear infinite;
}

.clients .rail.down .track {
    animation: marqueeDown var(--speed) linear infinite;
}

.clients .right:hover .track {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .clients .left .title {
        margin-bottom: 10px;
    }

    .clients .right {
        min-height: 400px;
        gap: 20px;
    }

    .clients .logo {
        height: 110px;
    }

    .clients .logo img {
        max-width: 40%;
    }
}

@media (max-width: 480px) {
    .clients .right {
        min-height: 300px;
        gap: 10px;
    }
}

/* steps */
.steps.cards {
    margin-top: 60px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.steps .card {
    position: relative;
}

.steps .num {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    background: var(--bluegray-500);
    border-radius: 999px;
    color: white;
    font-size: var(--font-lg);
    font-weight: 300;
    position: relative;
}

.steps .thumb {
    border-radius: 20px;
    overflow: hidden;
}

.steps .thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.steps .cap {
    margin-top: 20px;
    font-size: var(--font-3xl);
    font-weight: 600;
    line-height: 1.6;
    white-space: pre-line;
}

.badge {
    position: absolute;
    left: 30px;
    top: -62px;
    width: 123px;
    height: 123px;
    display: grid;
    place-items: center;
    background: var(--primary-400);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(18, 40, 60, .12);
}

.badge img {
    width: 60px;
    height: auto;
}

.label {
    font-size: var(--font-md);
    font-weight: 600;
    line-height: 28.8px;
}

.value {
    display: flex;
    align-items: flex-end;
}

.value .num,
.value .unit.big {
    font-size: 58px;
    font-weight: 700;
    line-height: 1.4;
}

.value .unit {
    font-size: 32px;
    font-weight: 600;
    line-height: 60px;
}

@media (max-width: 1280px) {
    .badge {
        width: 110px;
        height: 110px;
    }

    .badge img {
        width: 50px;
    }

    .label {
        font-size: calc(var(--font-md) - 1px);
        line-height: 26px;
    }

    .value .num,
    .value .unit.big {
        font-size: 52px;
    }

    .value .unit {
        font-size: 28px;
        line-height: 54px;
    }
}

@media (max-width: 1024px) {
    .steps.cards {
        gap: 24px;
    }

    .steps .cap {
        font-size: var(--font-xl);
        white-space: normal;
    }

    .badge {
        width: 90px;
        height: 90px;
        left: 25px;
        top: -55px;
    }

    .badge img {
        width: 40px;
    }

    .label {
        font-size: calc(var(--font-md) - 2px);
        line-height: 24px;
    }

    .value .num,
    .value .unit.big {
        font-size: 46px;
    }

    .value .unit {
        font-size: 26px;
        line-height: 50px;
    }
}

@media (max-width: 768px) {
    .steps.cards {
        margin-top: 30px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .steps .card {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .steps .num {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        font-size: var(--font-base);
        margin: 0;
    }

    .steps .thumb {
        flex: 0 0 160px;
        max-width: 160px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        overflow: hidden;
    }

    .steps .thumb img {
        width: auto;
        height: auto;
        max-width: 80%;
        max-height: 80%;
        object-fit: contain;
        display: block;
    }

    .steps .cap {
        flex: 1;
        margin: 0;
        font-size: var(--font-md);
        line-height: 1.5;
    }

    .badge {
        width: 80px;
        height: 80px;
        left: 20px;
        top: -50px;
    }

    .badge img {
        width: 40px;
    }

    .label {
        font-size: calc(var(--font-md) - 3px);
        line-height: 22px;
    }

    .value .num,
    .value .unit.big {
        font-size: 40px;
    }

    .value .unit {
        font-size: 22px;
        line-height: 46px;
    }
}

@media (max-width: 480px) {
    .steps .card {
        gap: 4px;
    }

    .steps .num {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: var(--font-sm);
    }

    .steps .thumb {
        flex-basis: 130px;
        max-width: 130px;
        border-radius: 12px;
    }

    .steps .thumb img {
        max-width: 78%;
        max-height: 78%;
    }

    .steps .cap {
        font-size: 15px;
        line-height: 1.4;
    }

    .badge {
        width: 70px;
        height: 70px;
        left: 10px;
        top: -40px;
    }

    .badge img {
        width: 30px;
    }

    .label {
        font-size: calc(var(--font-md) - 4px);
        line-height: 20px;
    }

    .value .num,
    .value .unit.big {
        font-size: 34px;
    }

    .value .unit {
        font-size: 20px;
        line-height: 42px;
    }
}