/* =================================================================
   SERVICES TEASER - template-parts/home/services-teaser/services-teaser.css
   Loaded only on front page via inc/enqueue.php
================================================================= */

.services-teaser {
    position: relative;
    padding-top: 5vw;
    padding-bottom: 10vw;
}

.big-title-wrap {
    position: absolute;
    top: 5vw;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: clamp(55px, 8.5vw, 145px);
    overflow: hidden;
    z-index: 1;
}

.big-title-outline,
.big-title-fill {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-primary);
    font-size: clamp(2rem, 10vw, 7rem);
    font-weight: 800;
    line-height: .85;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
}

.big-title-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px #C7C8CC;
}

.big-title-fill {
    color: #C7C8CC;
    opacity: .93;
}

.stack {
    position: relative;
    z-index: 20;
    margin-top: clamp(80px, 14vw, 220px);
}

.service {
    position: relative;
    border-top: 1px solid rgba(232, 237, 251, .08);
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition:
        height .8s var(--ease),
        transform .8s var(--ease);
    z-index: 1;
    height: 7vw;
    min-height: 70px;
}

.service:last-child {
    border-bottom: 1px solid rgba(232, 237, 251, .08);
}

.code {
    position: absolute;
    left: 4%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(10px, 1vw, 13px);
    letter-spacing: .45em;
    color: #8A93A6;
    width: 5%;
}

.name {
    font-family: var(--font-primary);
    font-size: clamp(22px, 3vw, 50px);
    font-weight: 700;
    color: #F5F5F2;
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    white-space: nowrap;
    max-width: min(78vw, 760px);
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    transition:
        top .8s var(--ease),
        transform .8s var(--ease);
}

.service-toggle {
    display: none;
}

.content {
    position: absolute;
    left: 10%;
    top: 55%;
    width: 38%;
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity .5s ease,
        transform .5s ease;
    z-index: 40;
}

.service-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 1;
    color: #f5f5f2;
    text-decoration: none;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.service-read-more span {
    font-size: 1.2em;
    transition: transform .3s ease;
}

.service-read-more:hover span {
    transform: translateX(5px);
}

.word {
    position: absolute;
    left: 6%;
    top: 50%;
    transform: translateY(-50%) translateX(5%);
    font-family: var(--font-primary);
    font-size: clamp(80px, 12vw, 280px);
    font-weight: 800;
    color: rgba(255, 255, 255, .03);
    opacity: 0;
    z-index: 1;
    transition: 1s ease;
    pointer-events: none;
}

.visual {
    position: absolute;
    right: 4%;
    top: 50%;
    width: 38%;
    max-width: 600px;
    height: 70%;
    transform: translateY(-50%) scale(.92);
    opacity: 0;
    overflow: hidden;
    border-radius: 8px;
    transition:
        opacity .6s ease,
        transform .8s var(--ease);
    z-index: 5;
}

.frame {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.frame img,
.frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, .12),
        transparent 35%,
        transparent 65%,
        rgba(255, 255, 255, .08));
}

.frame.video { background: radial-gradient(circle at 70% 40%, rgba(255,255,255,.25), transparent 18%), linear-gradient(135deg, #050505, #343434, #050505); }
.frame.film { background: linear-gradient(135deg, #050505, #5a5a5a, #050505); }
.frame.product { background: radial-gradient(circle at center, rgba(255,255,255,.3), transparent 22%), linear-gradient(135deg, #050505, #2a2a2a); }
.frame.artist { background: linear-gradient(180deg, #050505, #444, #050505); }
.frame.post { background: linear-gradient(135deg, #050505, #666, #050505); }
.frame.social { background: linear-gradient(135deg, #050505, #777, #050505); }

.label {
    position: absolute;
    left: 4%;
    bottom: 6%;
    font-size: clamp(9px, .8vw, 12px);
    letter-spacing: .35em;
    color: #fff;
}

@media (min-width: 1001px) {
    .service:hover {
        height: 22vw;
        min-height: 260px;
        transform: translateY(-10px);
        z-index: 100;
    }

.service:hover .name {
    top: 48%;
    transform: translateY(-100%);
}

.service:hover .content {
    opacity: 1;
    transform: translateY(0);
    top: 58%;
}

    .service:hover .visual {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    .service:hover .word {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@media (max-width: 1000px) {
    .big-title-wrap {
        top: 4vw;
        height: clamp(50px, 14vw, 110px);
    }

    .stack {
        margin-top: clamp(55px, 15vw, 120px);
    }

    .service {
        height: auto;
        min-height: 0;
        overflow: hidden;
        padding: 9vw 4%;
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0;
        transform: translateY(50px);
        transition: none;
    }

    .service:hover {
        transform: none;
    }

    .code {
        position: static;
        transform: none;
        font-size: clamp(10px, 2.5vw, 13px);
        letter-spacing: .3em;
        width: auto;
        flex-shrink: 0;
        padding-right: 3vw;
    }

    .name {
        position: static;
        transform: none;
        font-size: clamp(22px, 7vw, 28px);
        white-space: normal;
        min-width: 0;
        max-width: calc(100% - 76px);
        line-height: 1.12;
        overflow-wrap: normal;
        word-break: keep-all;
        hyphens: none;
        transition: none;
        flex: 1;
    }

    .service-toggle {
        position: relative;
        display: block;
        width: 28px;
        height: 28px;
        margin-left: auto;
        padding: 0;
        flex: 0 0 28px;
        border: 0;
        background: transparent;
        color: #F5F5F2;
    }

    .service-toggle span::before,
    .service-toggle span::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 18px;
        height: 1px;
        background: currentColor;
        transform: translate(-50%, -50%);
        transition:
            transform .4s var(--ease),
            opacity .4s ease;
    }

    .service-toggle span::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .service.is-open .service-toggle span::after {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    .content {
        position: static;
        width: 100%;
        flex-basis: 100%;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: none;
        top: auto;
        padding-left: calc(3vw + 44px);
        margin-top: 0;
        transition: opacity .4s ease, max-height .5s var(--ease);
    }

    .service.is-open .content {
        opacity: 1;
        max-height: 80px;
        margin-top: 10px;
    }

    .service-read-more {
        font-size: clamp(12px, 3vw, 14px);
    }

    .visual {
        position: static;
        width: 100%;
        flex-basis: 100%;
        height: 50vw;
        max-height: 0;
        transform: none;
        opacity: 0;
        overflow: hidden;
        border-radius: 10px;
        margin-top: 0;
        transition: opacity .5s ease, max-height .6s var(--ease);
    }

    .service.is-open .visual {
        opacity: 1;
        max-height: 260px;
        margin-top: 12px;
    }

    .word {
        display: none;
    }
}

@media (max-width: 600px) {
    .big-title-wrap {
        height: clamp(44px, 13vw, 72px);
    }

    .big-title-outline,
    .big-title-fill {
        font-size: clamp(2rem, 9vw, 3.8rem);
    }

    .service {
        padding: clamp(30px, 8vw, 44px) 4%;
    }

    .code {
        font-size: clamp(9px, 2.7vw, 12px);
        letter-spacing: .24em;
        padding-right: 12px;
    }

    .name {
        font-size: clamp(18px, 6vw, 26px);
        max-width: calc(100% - 66px);
    }

    .content {
        padding-left: 48px;
    }
}

@media (max-width: 380px) {
    .big-title-outline,
    .big-title-fill {
        font-size: clamp(1.75rem, 8.5vw, 2.2rem);
    }

    .service-toggle {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .name {
        font-size: clamp(17px, 5.8vw, 22px);
        max-width: calc(100% - 58px);
    }

    .content {
        padding-left: 44px;
    }
}