.coffee-scene {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 660px;
    min-height: clamp(620px, 84svh, 860px);
    margin: 0;
    padding: 7rem 6vw;
    overflow: hidden;
    background: var(--bg, #0d0d0d);
    scroll-margin-top: 5rem
}

.coffee-scene::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 45%, rgba(255, 255, 255, .025) 78%, transparent 100%)
}

.coffee-visual {
    position: absolute;
    z-index: 0;
    right: -3%;
    top: 50%;
    width: 66%;
    height: 88%;
    max-height: 720px;
    transform: translateY(-50%);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(115deg, transparent 4%, rgba(0, 0, 0, .08) 18%, #000 52%, #000 100%);
    mask-image: linear-gradient(115deg, transparent 4%, rgba(0, 0, 0, .08) 18%, #000 52%, #000 100%)
}

.coffee-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 46% 46%;
    filter: grayscale(1) contrast(1.03) brightness(.8);
    transform-origin: 50% 50%
}

.coffee-copy {
    position: relative;
    z-index: 1;
    width: 46%;
    max-width: 650px
}

.coffee-kicker {
    display: block;
    font-family: var(--deco);
    font-size: .64rem;
    line-height: 1.8;
    letter-spacing: .22em;
    color: var(--muted)
}

.coffee-title {
    font-family: var(--display);
    font-size: clamp(3.6rem, 6.4vw, 6.8rem);
    font-weight: 400;
    line-height: .92;
    letter-spacing: -.025em;
    margin: 1.5rem 0 1rem;
    text-transform: none
}

.coffee-line {
    display: block;
    overflow: hidden;
    padding: .17em .12em .26em 0;
    margin: -.1em -.12em -.22em 0
}

.coffee-line-inner {
    display: inline-block;
    transform-origin: 0 100%
}

.coffee-title em {
    font-size: 1.35em;
    font-family: var(--serif);
    font-weight: 500;
    font-style: italic;
    letter-spacing: -.045em
}

.coffee-rule {
    display: block;
    width: 56px;
    height: 1px;
    background: rgba(255, 255, 255, .4);
    margin: 1.8rem 0;
    transform-origin: left
}

.coffee-intro {
    max-width: 31ch;
    font-family: var(--serif);
    font-size: clamp(1.15rem, 1.7vw, 1.5rem);
    font-style: italic;
    line-height: 1.5;
    color: #bcbcbc
}

.coffee-link {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1.6rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .66rem;
    line-height: 1.6;
    letter-spacing: .18em;
    text-transform: uppercase
}

.coffee-link span {
    font-size: 1.3rem;
    transition: transform .25s
}

.coffee-link:hover span {
    transform: translate(3px, -3px)
}

.coffee-link:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 6px
}

@media(min-width:1600px) {
    .coffee-visual {
        right: 0;
        width: 62%
    }
}

@media(max-width:900px) and (min-width:601px) {
    .coffee-scene {
        min-height: 620px;
        padding: 5.5rem 6vw
    }

    .coffee-copy {
        width: 49%
    }

    .coffee-title {
        font-size: clamp(3rem, 6.5vw, 4rem)
    }

    .coffee-visual {
        right: -10%;
        width: 72%;
        height: 78%
    }

    .coffee-kicker {
        font-size: .58rem;
        letter-spacing: .14em
    }
}

@media(max-width:600px) {
    .coffee-scene {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 4.5rem 6vw 0
    }

    .coffee-copy {
        width: 100%;
        max-width: none
    }

    .coffee-kicker {
        font-size: .57rem;
        letter-spacing: .16em
    }

    .coffee-title {
        font-size: clamp(2.8rem, 12vw, 4.2rem);
        line-height: 1.05;
        margin: 1.1rem 0 .5rem;
        white-space: normal
    }

    .coffee-line {
        display: block;
        vertical-align: baseline;
        padding-top: .18em;
        padding-bottom: .28em;
        margin-bottom: -.22em
    }

    .coffee-line+.coffee-line {
        margin-left: 0
    }

    .coffee-rule {
        margin: 1.1rem 0;
        width: 40px
    }

    .coffee-intro {
        font-size: 1.16rem;
        max-width: 29ch
    }

    .coffee-link {
        margin-top: 1rem;
        font-size: .61rem
    }

    .coffee-visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 122%;
        height: clamp(21rem, 95vw, 31rem);
        max-height: none;
        margin: -.6rem -22% -1rem 0;
        flex: none;
        -webkit-mask-image: linear-gradient(115deg, transparent 2%, rgba(0, 0, 0, .12) 12%, #000 40%, #000 100%);
        mask-image: linear-gradient(115deg, transparent 2%, rgba(0, 0, 0, .12) 12%, #000 40%, #000 100%)
    }

    .coffee-visual img {
        object-position: 44% center;
        filter: grayscale(1) contrast(1.03) brightness(.85)
    }
}

@media(prefers-reduced-motion:reduce) {

    .coffee-line-inner,
    .coffee-kicker,
    .coffee-intro,
    .coffee-link,
    .coffee-visual img {
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important
    }

    .coffee-line-inner {
        filter: none !important
    }
}

.coffee-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, var(--bg, #0d0d0d) 0%, transparent 18%, transparent 78%, var(--bg, #0d0d0d) 100%)
}

/* Full-height picture with the character on the right and the black diagonal. */
@media(min-width:601px) {
    .coffee-scene {
        padding-block: 0
    }

    .coffee-visual {
        inset-block: 0;
        top: 0;
        bottom: 0;
        right: -15%;
        width: 82%;
        height: 100%;
        max-height: none;
        margin-block: 0;
        transform: none;
        -webkit-mask-image: none;
        mask-image: none
    }

    .coffee-visual::after {
        background: linear-gradient(to bottom, var(--bg, #0d0d0d) 0%, transparent 5%, transparent 95%, var(--bg, #0d0d0d) 100%)
    }

    .coffee-visual img {
        object-position: 50% 50%
    }

    .coffee-scene::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background: var(--bg, #0d0d0d);
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22soft%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%3CfeGaussianBlur%20stdDeviation%3D%22.65%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cpolygon%20points%3D%22-10%2C-10%2059.2%2C-10%2032.8%2C110%20-10%2C110%22%20fill%3D%22white%22%20filter%3D%22url(%23soft)%22%2F%3E%3C%2Fsvg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22soft%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%3CfeGaussianBlur%20stdDeviation%3D%22.65%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cpolygon%20points%3D%22-10%2C-10%2059.2%2C-10%2032.8%2C110%20-10%2C110%22%20fill%3D%22white%22%20filter%3D%22url(%23soft)%22%2F%3E%3C%2Fsvg%3E");
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat
    }
}

@media(min-width:601px) and (max-width:900px) {
    .coffee-visual {
        right: -21%;
        width: 90%;
        height: 100%
    }
}

@media(max-width:600px) {
    .coffee-scene {
        padding-block: 0
    }

    .coffee-scene::after {
        display: none
    }

    .coffee-visual {
        height: clamp(25rem, 112vw, 36rem);
        margin-bottom: 0
    }

    .coffee-visual::after {
        background: linear-gradient(to bottom, var(--bg, #0d0d0d) 0%, transparent 10%, transparent 96%, var(--bg, #0d0d0d) 100%)
    }
}

/* Subtle image transparency, with clean top and bottom edges. */
.coffee-visual {
    opacity: .75
}

.coffee-visual::after {
    display: none
}

/* Transparent character — no room, no diagonal veil. */
.coffee-scene:after {
    display: none !important
}

.coffee-visual {
    right: -6%;
    top: auto;
    bottom: 0;
    width: 72%;
    height: 95%;
    max-height: none;
    opacity: .9;
    transform: none;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    overflow: visible;
    perspective: 1200px
}

.coffee-visual img {
    object-fit: contain;
    object-position: 100% 100%;
    filter: grayscale(1) contrast(1.02) brightness(.9);
    transform-origin: 70% 100%;
    will-change: transform
}

.coffee-copy {
    width: 42%;
    z-index: 2
}

.coffee-scene:before {
    background: radial-gradient(ellipse at 75% 60%, #ffffff05, transparent 65%)
}

@media(max-width:900px) and (min-width:601px) {
    .coffee-visual {
        width: 80%;
        right: -14%;
        height: 88%
    }
}

@media(max-width:600px) {
    .coffee-scene {
        padding-top: 2rem
    }

    .coffee-copy {
        width: 100%
    }

    .coffee-visual {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 130%;
        height: auto;
        aspect-ratio: 1.55;
        margin: 1rem -20% 0 -10%;
        opacity: .86
    }

    .coffee-visual img {
        height: 100%;
        width: 100%;
        object-position: center bottom;
        object-fit: contain
    }

    .coffee-scene:before {
        display: none
    }
}
