/* Homepage showreel link and real-work showcase */
.hero-showreel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: none;
    gap: 9px;
    margin-top: 18px;
    padding: 8px 15px 8px 9px;
    border: 1px solid rgba(20, 21, 23, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    color: var(--color-heading-1);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    box-shadow: 0 5px 16px rgba(16, 18, 20, .06), inset 0 1px 0 rgba(255, 255, 255, .9);
    cursor: pointer;
    transition: transform .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.hero-showreel-link:hover {
    border-color: var(--color-primary);
    background: #fff;
    color: #171819;
    box-shadow: 0 8px 22px rgba(16, 18, 20, .1), inset 0 1px 0 #fff;
    transform: translateY(-2px);
}

.hero-showreel-link__play {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--color-primary);
    position: relative;
}

.hero-showreel-link__play::after {
    content: "";
    position: absolute;
    left: 53%;
    top: 50%;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #171819;
    transform: translate(-50%, -50%);
}

body.showreel-open { overflow: hidden; }
.showreel-modal[hidden] { display: none; }

.showreel-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 16px;
}

.showreel-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 7, .9);
    backdrop-filter: blur(12px);
}

.showreel-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(430px, 45vh, 100%);
    color: #fff;
    animation: showreel-in .35s cubic-bezier(.22, 1, .36, 1) both;
}

.showreel-modal__topline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.showreel-modal__topline span {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
}

.showreel-modal__topline h2 {
    margin: 3px 0 0;
    color: #fff;
    font-size: clamp(20px, 3vw, 30px);
    line-height: 1.1;
}

.showreel-modal__close {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
    position: relative;
}

.showreel-modal__close span::before,
.showreel-modal__close span::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 19px;
    width: 18px;
    height: 1px;
    background: #fff;
}

.showreel-modal__close span::before { transform: rotate(45deg); }
.showreel-modal__close span::after { transform: rotate(-45deg); }

.showreel-modal__media {
    overflow: hidden;
    aspect-ratio: 9 / 16;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 4px;
    background: #000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}

.showreel-modal__media iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@keyframes showreel-in {
    from { opacity: 0; transform: translateY(16px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.home-work-strip__inner {
    padding: clamp(30px, 4.2vw, 58px);
    border: 1px solid #d9dadd;
    background: #f7f7f4;
    overflow: hidden;
}

.home-work-strip__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.home-work-strip__eyebrow {
    margin: 0 0 8px;
    color: #707378;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
}

.home-work-strip__head h2 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.home-work-strip__mobile-break { display: none; }

.home-work-strip__all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    color: #1c1d1f;
    font-weight: 700;
    white-space: nowrap;
}

.home-work-strip__all span {
    color: var(--color-primary);
    font-size: 21px;
}

.home-work-strip__features {
    display: grid;
    grid-template-columns: 1.18fr .82fr;
    align-items: start;
    gap: clamp(14px, 1.7vw, 26px);
}

.home-work-feature { min-width: 0; }
.home-work-feature--secondary { margin-top: 40px; }

.home-work-feature__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid #d3d4d5;
    background: #111;
}

.home-work-feature__media iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.home-work-video {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #111;
    cursor: pointer;
    position: relative;
}

.home-work-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .3));
    transition: background .3s ease;
}

.home-work-video img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1), filter .3s ease;
}

.home-work-video:hover img {
    transform: scale(1.025);
    filter: brightness(.86);
}

.home-work-video__play {
    width: 66px;
    height: 66px;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
    transform: translate(-50%, -50%);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.home-work-video__play::after {
    content: "";
    position: absolute;
    left: 53%;
    top: 50%;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #171819;
    transform: translate(-50%, -50%);
}

.home-work-video:hover .home-work-video__play {
    transform: translate(-50%, -50%) scale(1.08);
}

.home-work-feature__caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
}

.home-work-feature__caption span {
    color: #777a7e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-work-feature__caption h3 {
    margin: 0;
    max-width: 72%;
    color: #171819;
    font-size: clamp(16px, 1.55vw, 23px);
    line-height: 1.2;
    text-align: right;
}

.home-work-strip__lower {
    display: grid;
    grid-template-columns: .72fr 1.62fr;
    align-items: start;
    gap: clamp(20px, 2vw, 32px);
    margin-top: 34px;
}

.home-work-group-label {
    margin: 0 0 10px;
    color: #777a7e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-work-reels__grid,
.home-work-strip__posts {
    display: grid;
    align-items: start;
    gap: clamp(10px, 1.2vw, 18px);
}

.home-work-reels__grid { grid-template-columns: 1fr 1fr; }
.home-work-strip__posts { grid-template-columns: repeat(3, 1fr); }

.home-work-reel,
.home-work-post {
    display: block;
    min-width: 0;
    color: #171819;
}

.home-work-reel--offset,
.home-work-post--two { margin-top: 20px; }

.home-work-post--three { margin-top: 7px; }

.home-work-reel__visual,
.home-work-post__visual {
    display: block;
    overflow: hidden;
    position: relative;
    border: 1px solid #d3d4d5;
    background: #eeeae2;
}

.home-work-reel__visual {
    aspect-ratio: 9 / 16;
    background: #fff;
}
.home-work-post__visual { aspect-ratio: 4 / 5; }

.home-work-reel__frame {
    display: block;
    position: absolute;
    left: 50%;
    top: -90px;
    width: 100%;
    height: calc(100% + 180px);
    border: 0;
    background: #050505;
    transform: translateX(-50%) scale(1.6);
    transform-origin: top center;
}

.home-work-reel.has-native-player .home-work-reel__visual::after { display: none; }

.home-work-post__visual::before {
    content: "";
    position: absolute;
    inset: -14px;
    z-index: 0;
    background-image: var(--work-art);
    background-position: center;
    background-size: cover;
    filter: blur(12px);
    opacity: .34;
}

.home-work-reel img,
.home-work-post img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}

.home-work-reel:hover img,
.home-work-post:hover img { transform: scale(1.025); }

.home-work-reel__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .2));
}

.home-work-reel__play {
    width: 42px;
    height: 42px;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
    transform: translate(-50%, -50%);
}

.home-work-reel__play::after {
    content: "";
    position: absolute;
    left: 53%;
    top: 50%;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #171819;
    transform: translate(-50%, -50%);
}

.home-work-item-caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
}

.home-work-item-caption b {
    color: #171819;
    font-size: 13px;
    line-height: 1.25;
}

.home-work-item-caption small {
    color: #777a7e;
    font-size: 9px;
    line-height: 1.25;
    text-align: right;
}

/* Desktop: keep the five lower work previews on one calm, even rhythm. */
@media (min-width: 992px) {
    .wpr-banner-area:not(.breadcrumb) .banner-content-area .section-title .left-area .text,
    .wpr-banner-area:not(.breadcrumb) .banner-content-area .section-title .right-area .text {
        display: inline-block;
        font-size: clamp(72px, 5.5vw, 94px);
        letter-spacing: -.075em;
        white-space: nowrap;
    }

    .home-work-strip__lower {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: clamp(10px, 1.2vw, 18px);
    }

    .home-work-reels,
    .home-work-designs {
        display: grid;
        grid-template-columns: subgrid;
        grid-template-rows: auto auto;
    }

    .home-work-reels { grid-column: span 2; }
    .home-work-designs { grid-column: span 3; }

    .home-work-group-label,
    .home-work-reels__grid,
    .home-work-strip__posts {
        grid-column: 1 / -1;
    }

    .home-work-reels__grid,
    .home-work-strip__posts {
        grid-template-columns: subgrid;
    }

    .home-work-reel--offset,
    .home-work-post--two,
    .home-work-post--three {
        margin-top: 0;
    }

    .home-work-reel__visual,
    .home-work-post__visual {
        aspect-ratio: 9 / 16;
    }
}

@media (max-width: 991px) {
    .home-work-strip__features { grid-template-columns: 1.1fr .9fr; }
    .home-work-feature--secondary { margin-top: 26px; }
    .home-work-strip__lower { grid-template-columns: .8fr 1.5fr; }
}

@media (max-width: 767px) {
    .wpr-banner-area:not(.breadcrumb) { min-height: 0; }

    .wpr-banner-area:not(.breadcrumb) .banner-content-area {
        height: auto;
        padding: 30px 16px 38px;
    }

    .wpr-banner-area .banner-content-area .top-shape,
    .wpr-banner-area .banner-content-area .banner-shape-area,
    .wpr-banner-area .banner-content-area .section-title .arrow-track,
    .wpr-banner-area .banner-content-area .section-title .square-shape {
        display: none;
    }

    .wpr-banner-area:not(.breadcrumb) .banner-content-area .section-title {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
        grid-template-areas: "create logo grow";
        align-items: center;
        column-gap: 8px;
        width: 100%;
        padding: 22px 4px;
        border-top: 1px dotted rgba(67, 67, 67, .4);
        border-bottom: 1px dotted rgba(67, 67, 67, .4);
        font-size: clamp(20px, 5.4vw, 24px);
        line-height: .95;
    }

    .wpr-banner-area .banner-content-area .section-title .left-area,
    .wpr-banner-area .banner-content-area .section-title .right-area {
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        max-width: none;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .wpr-banner-area .banner-content-area .section-title .left-area { grid-area: create; }
    .wpr-banner-area .banner-content-area .section-title .right-area { grid-area: grow; }

    .wpr-banner-area .banner-content-area .section-title .text {
        font-size: inherit;
        letter-spacing: -.065em;
        white-space: nowrap;
    }

    .wpr-banner-area .banner-content-area .section-title .mid-icon {
        grid-area: logo;
        justify-self: center;
        width: 48px;
        min-width: 0;
        max-width: none;
        padding: 0;
    }

    .wpr-banner-area .banner-content-area .section-title .mid-icon img {
        display: block;
        width: 100%;
        height: auto;
    }

    .wpr-banner-area .banner-content-area .text-area {
        width: min(100%, 360px);
        margin-top: 22px;
    }

    .wpr-banner-area .banner-content-area .text-area .desc {
        max-width: 34ch;
        margin: 0 auto 22px;
        font-size: 14px;
        line-height: 1.6;
    }

    .wpr-banner-area .banner-content-area .text-area .desc br { display: none; }

    .wpr-banner-area .banner-content-area .text-area .button-area {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .wpr-banner-area .banner-content-area .text-area .button-area .wpr-btn {
        width: 100%;
        max-width: none;
        min-height: 52px;
        justify-content: center;
        padding: 14px 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .wpr-banner-area .banner-content-area .text-area .button-area .wpr-btn.with-icon {
        padding: 14px 10px 16px;
    }

    .wpr-banner-area .banner-content-area .text-area .button-area .wpr-btn.with-icon .inner {
        display: none;
    }

    .hero-showreel-link {
        margin-top: 16px;
        padding: 8px 14px 8px 8px;
        font-size: 12px;
    }

    .hero-showreel-link__play {
        width: 25px;
        height: 25px;
    }

    .home-work-strip__inner { padding: 34px 20px 28px; }

    .home-work-strip__head {
        display: block;
        position: relative;
        align-items: start;
        margin-bottom: 22px;
    }

    .home-work-strip__head h2 {
        font-size: clamp(25px, 6.8vw, 30px);
        line-height: 1.04;
    }

    .home-work-strip__mobile-break { display: block; }

    .home-work-strip__all {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 44px;
        width: 44px;
        justify-content: center;
        padding: 0;
        border: 1px solid #bfc1c4;
        font-size: 0;
    }

    .home-work-strip__all span { font-size: 20px; }

    .home-work-strip__features {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-work-feature--secondary { margin-top: 0; }

    .home-work-feature__caption {
        display: block;
        padding-top: 9px;
    }

    .home-work-feature__caption h3 {
        max-width: none;
        margin-top: 3px;
        font-size: 17px;
        text-align: left;
    }

    .home-work-video__play {
        width: 52px;
        height: 52px;
    }

    .home-work-strip__lower {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin: 24px 0 0;
        padding: 0 0 8px;
        overflow: visible;
    }

    .home-work-reels,
    .home-work-designs,
    .home-work-reels__grid,
    .home-work-strip__posts {
        display: contents;
    }

    .home-work-group-label { display: none; }

    .home-work-feature--secondary,
    .home-work-post--two,
    .home-work-post--three {
        display: none;
    }

    .home-work-reel,
    .home-work-post {
        width: 100%;
        margin-top: 0;
    }

    .home-work-post__visual { aspect-ratio: 9 / 16; }

    .home-work-item-caption {
        display: block;
        padding-top: 6px;
    }

    .home-work-item-caption b { font-size: 11px; }
    .home-work-item-caption small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .showreel-modal__dialog { animation: none; }
    .home-work-reel img,
    .home-work-post img { transition: none; }
}
