/* Bespoke Websites — Selected Work
   Add AFTER the site's existing stylesheet.
   Scoped to the work page to avoid altering other layouts.
*/

.bespoke-hero-work .hero-copy h1 {
    max-width: 760px;
}

.visual-work {
    isolation: isolate;
    min-height: 460px;
}

.work-hero-window {
    position: absolute;
    overflow: hidden;
    width: min(75%, 410px);
    border: 1px solid rgba(17, 40, 61, .12);
    border-radius: 15px;
    box-shadow: 0 26px 50px rgba(7, 37, 67, .22);
    background: #fff;
}

.work-hero-window-bvm {
    top: 35px;
    left: 2%;
    transform: rotate(-5deg);
}

.work-hero-window-zest {
    top: 140px;
    right: 0;
    transform: rotate(5deg);
}

.work-hero-chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    font-size: .7rem;
    white-space: nowrap;
    overflow: hidden;
    color: #596774;
}

.work-hero-chrome > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-hero-dots,
.work-device-dots {
    display: inline-flex;
    flex: none;
    gap: 4px;
}

.work-hero-dots i,
.work-device-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd3dc;
}

.work-hero-window img {
    display: block;
    width: 100%;
    height: auto;
}

.work-hero-note {
    position: absolute;
    z-index: 3;
    bottom: 3px;
    left: 3%;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 270px;
    padding: 13px 17px;
    border-radius: 12px;
    background: #fff;
    color: #102335;
    box-shadow: 0 18px 35px rgba(7,37,67,.2);
}

.work-hero-spark {
    font-size: 1.35rem;
    color: #119bfb;
}

.work-hero-note b,
.work-hero-note small {
    display: block;
}

.work-hero-note b {
    font-size: .8rem;
}

.work-hero-note small {
    margin-top: 3px;
    font-size: .68rem;
    line-height: 1.3;
    color: #607080;
}

.work-section-heading {
    max-width: 710px;
    margin-bottom: 54px;
}

.work-section-heading .section-title {
    margin-bottom: 14px;
}

.work-section-heading p {
    margin-bottom: 0;
}

.work-project {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
    align-items: center;
    column-gap: clamp(38px, 5vw, 90px);
    row-gap: 36px;
    padding: 12px 0 85px;
}

.work-project + .work-project {
    border-top: 1px solid rgba(15, 42, 65, .12);
    padding-top: 85px;
}

.work-project:nth-of-type(even) .work-project-visual {
    order: 2;
}

.work-project-visual {
    position: relative;
    min-width: 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 50px 32px;
    border-radius: 20px;
    overflow: hidden;
}

.work-project-bvm .work-project-visual {
    background: #dceafb;
}

.work-project-zest .work-project-visual {
    background: #f4f0ce;
}

.work-project-visual::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    right: -120px;
    top: -130px;
    background: rgba(255, 255, 255, .43);
}

.work-device {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 60px rgba(5, 28, 55, .18);
}

.work-device-desktop {
    width: 90%;
    border: 1px solid rgba(20,40,60,.12);
    border-radius: 13px;
}

.work-device-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 39px;
    padding: 0 15px;
    border-bottom: 1px solid #e9ebee;
    color: #7b8794;
    font-size: .72rem;
    white-space: nowrap;
    overflow: hidden;
}

.work-device-bar > span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-device-desktop img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1440 / 900;
    object-fit: cover;
    object-position: top center;
    background: #e8edf2;
}

.work-device-mobile {
    position: absolute;
    right: 3%;
    bottom: 12px;
    width: 24%;
    min-width: 96px;
    max-width: 162px;
    padding: 10px 5px 6px;
    border: 5px solid #1d2530;
    border-radius: 23px;
}

.work-device-notch {
    position: absolute;
    z-index: 2;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 8px;
    border-radius: 0 0 7px 7px;
    background: #1d2530;
}

.work-device-mobile img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-position: top center;
    background: #e8edf2;
}

.work-project-copy {
    font-size: var(--copy-size);
}

.work-project-copy .section-kicker {
    margin-bottom: 14px;
}

.work-project-copy h3 {
    margin: 0 0 18px;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.07;
    letter-spacing: -.04em;
}

.work-project-copy .work-project-lead {
    font-weight: 650;
}

.work-project-focus {
    padding: 20px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(15,42,65,.15);
    border-bottom: 1px solid rgba(15,42,65,.15);
}

.work-project-focus strong {
    display: block;
    margin-bottom: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.work-project-focus ul {
    margin: 0;
    padding-left: 21px;
}

.work-project-focus li {
    padding: 3px 0;
    line-height: 1.5;
}

.work-project-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: 22px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 5px;
}

/* The existing website's normal paragraph typography is intentionally
   preserved; these styles do not override the global p rule. */

@media (max-width: 1100px) {
    .work-project {
        grid-template-columns: minmax(0, 1fr) minmax(300px, .95fr);
        gap: 36px;
    }

    .work-project-visual {
        min-height: 430px;
        padding: 35px 22px;
    }

    .visual-work {
        min-height: 390px;
    }
}

@media (max-width: 800px) {
    .work-project {
        grid-template-columns: 1fr;
        padding-bottom: 65px;
    }

    .work-project + .work-project {
        padding-top: 65px;
    }

    .work-project:nth-of-type(even) .work-project-visual {
        order: 0;
    }

    .work-project-visual {
        min-height: 475px;
    }

    .work-project-copy {
        max-width: 680px;
    }

    .visual-work {
        min-height: 480px;
    }
}

@media (max-width: 540px) {
    .visual-work {
        min-height: 330px;
    }

    .work-hero-window {
        width: 79%;
    }

    .work-hero-window-bvm {
        top: 12px;
    }

    .work-hero-window-zest {
        top: 87px;
    }

    .work-hero-note {
        bottom: 0;
        left: 0;
    }

    .work-section-heading {
        margin-bottom: 28px;
    }

    .work-project-visual {
        min-height: 325px;
        padding: 23px 13px;
        border-radius: 14px;
    }

    .work-device-desktop {
        width: 89%;
    }

    .work-device-mobile {
        right: 4%;
        min-width: 85px;
        border-width: 4px;
    }

    .work-project-copy h3 {
        font-size: 2rem;
    }
}
