.work-showcase {
    align-items: stretch;
    display: grid;
    gap: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem);
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
}

.work-exhibit {
    display: block;
    min-width: 0;
    text-decoration: none;
}

.work-exhibit--taskbar {
    grid-column: 1 / -1;
}

.work-exhibit--emoji,
.work-exhibit--catmd {
    --card-inset: clamp(1.4rem, 3vw, 3rem);
    background: var(--card-background);
    border: 1px solid var(--card-line);
    color: var(--card-ink);
    display: grid;
    grid-template-rows: 1fr auto;
}

.work-exhibit--emoji {
    --card-background: #e8e3d8;
    --card-ink: #252722;
    --card-muted: #686459;
    --card-line: #ccc6b8;
    --card-accent: #b92d18;
}

.work-exhibit--catmd {
    --card-background: #202634;
    --card-ink: #f5f0e7;
    --card-muted: #a7aebb;
    --card-line: #3f4654;
    --card-accent: #c8cdd6;
}

.work-exhibit__visual {
    --exhibit-inset: clamp(1.4rem, 3vw, 3rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: var(--exhibit-inset);
    position: relative;
}

.work-exhibit__annotation {
    display: grid;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.work-exhibit__annotation > span:first-child,
.work-exhibit__category {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.075em;
    line-height: 1.5;
    text-transform: uppercase;
}

.work-exhibit__annotation > span:last-child {
    font-family: var(--font-editorial, Georgia, serif);
    font-size: clamp(2.35rem, 3.7vw, 3.35rem);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 0.99;
    text-wrap: balance;
}

/* The desktop and its enlarged taskbar use the same, unmodified product image. */
.taskbar-stage {
    --taskbar-lilac: #c6b7f8;
    background: #111117;
    border: 1px solid #30303b;
    color: #f6f2e9;
    isolation: isolate;
    padding: clamp(1.5rem, 3.5vw, 3rem);
}

.taskbar-stage::before {
    background:
        radial-gradient(ellipse at 72% 62%, #55478155, transparent 55%),
        radial-gradient(ellipse at 14% 82%, #253f7655, transparent 45%),
        linear-gradient(115deg, transparent 55%, #ffffff03 55%, transparent 80%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.taskbar-stage::after {
    background: linear-gradient(90deg, #c6b7f800, #c6b7f8a0, #c6b7f800);
    content: "";
    height: 1px;
    left: 12%;
    position: absolute;
    right: 12%;
    top: 0;
}

.taskbar-stage__topline,
.taskbar-stage__footer {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    position: relative;
}

.taskbar-stage__topline,
.taskbar-stage__material,
.taskbar-stage__callout {
    color: #b0adbd;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.66rem;
    font-weight: 400;
    letter-spacing: 0.09em;
    line-height: 1.5;
    text-transform: uppercase;
}

.taskbar-stage__platform {
    align-items: center;
    display: inline-flex;
    gap: 0.6rem;
    letter-spacing: 0;
    text-transform: none;
}

.taskbar-stage__platform > span {
    background: var(--taskbar-lilac);
    border-radius: 50%;
    box-shadow: 0 0 12px #c6b7f84d;
    height: 5px;
    width: 5px;
}

.taskbar-stage__intro {
    align-items: end;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-top: clamp(2.25rem, 3.2vw, 3rem);
    position: relative;
    z-index: 1;
}

.taskbar-stage__headline {
    font-size: clamp(3.2rem, 6vw, 5.75rem);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 1.04;
    margin: 0;
}

.taskbar-stage__headline em {
    color: var(--taskbar-lilac);
    font-family: var(--font-editorial, Georgia, serif);
    font-size: 1.28em;
    font-weight: 400;
    letter-spacing: -0.035em;
}

.taskbar-stage__aside {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    padding: 0 0 0.5rem 1rem;
    text-align: right;
}

.taskbar-stage__mark {
    color: var(--taskbar-lilac);
    height: 40px;
    margin-bottom: 1.2rem;
    width: 54px;
}

.taskbar-stage__aside p {
    color: #b0adbd;
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 0;
}

.taskbar-stage__product {
    margin: clamp(3.5rem, 4.5vw, 4.25rem) 0 0;
    padding: 0 4% 5rem;
    position: relative;
}

.taskbar-stage__product::before {
    background: radial-gradient(ellipse, #a18aff33, #8077e311 45%, transparent 70%);
    bottom: 1rem;
    content: "";
    height: 65%;
    left: -10%;
    pointer-events: none;
    position: absolute;
    right: -10%;
}

.taskbar-stage__screen {
    aspect-ratio: 3.65;
    background: #121126;
    border: 1px solid #ffffff45;
    border-radius: 12px;
    box-shadow: 0 0 0 6px #ffffff05, 0 30px 60px -20px #0009;
    overflow: hidden;
    position: relative;
    transform: perspective(1200px) rotateX(8deg) rotateY(-4deg) rotateZ(-2deg);
    transform-origin: center bottom;
    transition: transform 650ms cubic-bezier(0.2, 0.65, 0.3, 1);
    width: 100%;
}

.taskbar-stage__screen::after {
    background: linear-gradient(180deg, #1816240a 25%, #1411204d 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.taskbar-stage__screen img {
    display: block;
    height: auto;
    width: 100%;
}

.taskbar-stage__closeup {
    aspect-ratio: 24.7;
    background: #181d43;
    border: 1px solid #d5d2ff80;
    border-radius: 8px;
    bottom: 5.5rem;
    box-shadow: 0 8px 10px #0003, 0 24px 45px #0009, 0 0 35px #9d8df726;
    left: 0;
    overflow: hidden;
    position: absolute;
    transform: rotate(-2deg);
    transition: transform 650ms cubic-bezier(0.2, 0.65, 0.3, 1), box-shadow 650ms ease;
    width: 100%;
}

.taskbar-stage__closeup img {
    bottom: 0;
    height: auto;
    left: 0;
    max-width: none;
    position: absolute;
    transform: translateY(3.3%);
    width: 100%;
}

.taskbar-stage__callout {
    align-items: center;
    bottom: 0.7rem;
    color: var(--taskbar-lilac);
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    left: 0;
    position: absolute;
    right: 0;
    text-transform: none;
}

.taskbar-stage__callout::before {
    background: linear-gradient(#c6b7f800, #c6b7f8a0);
    bottom: calc(100% + 0.7rem);
    content: "";
    height: 2rem;
    left: 50%;
    position: absolute;
    width: 1px;
}

.taskbar-stage__footer {
    border-top: 1px solid #ffffff1f;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.taskbar-stage__cta {
    align-items: center;
    color: #f6f2e9;
    display: inline-flex;
    font-size: 0.8rem;
    gap: 1.3rem;
}

.taskbar-stage__cta > span {
    align-items: center;
    background: #c6b7f812;
    border: 1px solid #c6b7f84d;
    border-radius: 50%;
    color: var(--taskbar-lilac);
    display: inline-flex;
    font-size: 1.25rem;
    height: 2.5rem;
    justify-content: center;
    transition: background-color 220ms ease, color 220ms ease;
    width: 2.5rem;
}

.work-exhibit--taskbar:hover .taskbar-stage__cta > span,
.work-exhibit--taskbar:focus-visible .taskbar-stage__cta > span {
    background: var(--taskbar-lilac);
    color: #111117;
}

.emoji-stage,
.catmd-stage {
    display: grid;
    gap: 1.75rem;
    grid-template-rows: auto minmax(12rem, 1fr);
    min-height: clamp(25rem, 35vw, 29rem);
}

.emoji-stage {
    background: #e8e3d8;
    color: #252722;
}

.emoji-stage__screen {
    align-items: center;
    display: flex;
    min-width: 0;
    position: relative;
}

.emoji-stage__screen img {
    display: block;
    filter: drop-shadow(0 0.7rem 0.55rem rgba(50, 40, 21, 0.09));
    height: auto;
    max-width: 100%;
    transition: transform 450ms cubic-bezier(0.2, 0.65, 0.3, 1);
    width: 100%;
}

.catmd-stage {
    background: #202634;
    color: #f5f0e7;
}

.catmd-stage .work-exhibit__annotation > span:first-child {
    color: #a7aebb;
}

.catmd-stage__screen {
    align-self: center;
    border: 1px solid rgba(167, 174, 187, 0.2);
    height: 12rem;
    overflow: hidden;
    transition: transform 450ms cubic-bezier(0.2, 0.65, 0.3, 1);
    width: 100%;
}

.catmd-stage__screen img {
    display: block;
    height: auto;
    max-width: none;
    width: 150%;
}

.work-exhibit__caption {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-top: 1.35rem;
}

.work-exhibit--taskbar .work-exhibit__caption {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.work-exhibit__caption .work-exhibit__category {
    color: var(--accent-dark, #b92d18);
    margin: 0 0 0.55rem;
}

.work-exhibit__caption h3 {
    font-size: clamp(1.75rem, 3.1vw, 2.75rem);
    font-weight: 550;
    letter-spacing: -0.06em;
    line-height: 1.12;
    margin: 0;
}

.work-exhibit__caption p:not(.work-exhibit__category) {
    color: var(--muted, #63625d);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0.65rem 0 0;
}

.work-exhibit--taskbar .work-exhibit__caption > p {
    margin-top: 0;
    text-align: right;
}

.work-exhibit--emoji .work-exhibit__caption,
.work-exhibit--catmd .work-exhibit__caption {
    border-top: 1px solid var(--card-line);
    margin-inline: var(--card-inset);
    min-height: 8.5rem;
    padding-block: 1.5rem var(--card-inset);
}

.work-exhibit--emoji .work-exhibit__caption p,
.work-exhibit--catmd .work-exhibit__caption p {
    color: var(--card-muted);
}

.work-exhibit--emoji .work-exhibit__caption .work-exhibit__category,
.work-exhibit--catmd .work-exhibit__caption .work-exhibit__category {
    color: var(--card-accent);
}

.work-exhibit--emoji .work-exhibit__arrow,
.work-exhibit--catmd .work-exhibit__arrow {
    border-color: var(--card-line);
    color: var(--card-accent);
}

.work-exhibit__arrow {
    align-items: center;
    border: 1px solid var(--line, #cbc8bd);
    border-radius: 50%;
    color: var(--accent, #d93620);
    display: flex;
    font-size: 1.25rem;
    height: 2.75rem;
    justify-content: center;
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
    width: 2.75rem;
}

.work-exhibit:hover .work-exhibit__arrow,
.work-exhibit:focus-visible .work-exhibit__arrow {
    background: var(--accent, #d93620);
    border-color: var(--accent, #d93620);
    color: #fff;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .work-exhibit--taskbar:hover .taskbar-stage__screen {
        transform: perspective(1200px) rotateX(4deg) rotateY(-2deg) rotateZ(-1deg) translateY(-4px);
    }

    .work-exhibit--taskbar:hover .taskbar-stage__closeup {
        box-shadow: 0 12px 15px #0003, 0 30px 50px #0009, 0 0 40px #9d8df73d;
        transform: rotate(-1deg) translateY(-6px);
    }

    .work-exhibit:hover .emoji-stage__screen img,
    .work-exhibit:hover .catmd-stage__screen {
        transform: translateY(-4px);
    }
}

@media (max-width: 760px) {
    .work-showcase {
        gap: 2.75rem;
        grid-template-columns: minmax(0, 1fr);
    }

    .taskbar-stage {
        padding: 1.75rem;
    }

    .taskbar-stage__topline {
        font-size: 0.56rem;
        gap: 0.6rem;
        letter-spacing: 0.035em;
    }

    .taskbar-stage__intro {
        margin-top: 2.5rem;
    }

    .taskbar-stage__headline {
        font-size: clamp(2.6rem, 7.5vw, 4.5rem);
    }

    .taskbar-stage__aside {
        display: none;
    }

    .taskbar-stage__product {
        margin-top: 3.25rem;
        padding: 0 0 5rem;
    }

    .taskbar-stage__screen {
        aspect-ratio: 2.2;
        width: 125%;
    }

    .taskbar-stage__screen img {
        max-width: none;
        width: 166%;
    }

    .taskbar-stage__closeup {
        aspect-ratio: 10.75;
        bottom: 5rem;
        left: -0.75rem;
        width: calc(100% + 1.5rem);
    }

    .taskbar-stage__closeup img {
        left: -71%;
        width: 230%;
    }

    .taskbar-stage__callout {
        bottom: 0.6rem;
        font-size: 0.6rem;
    }

    .taskbar-stage__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        padding-top: 1.25rem;
    }

    .taskbar-stage__material {
        font-size: 0.56rem;
    }

    .taskbar-stage__cta {
        justify-content: space-between;
        width: 100%;
    }

    .work-exhibit--taskbar .work-exhibit__caption {
        align-items: start;
        gap: 0.75rem;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .work-exhibit--taskbar .work-exhibit__caption > p {
        grid-column: 1;
        grid-row: 2;
        margin-top: 0;
        text-align: left;
    }

    .work-exhibit--taskbar .work-exhibit__arrow {
        grid-column: 2;
        grid-row: 1;
    }

    .emoji-stage,
    .catmd-stage {
        min-height: 24rem;
    }

    .work-exhibit--emoji .work-exhibit__caption,
    .work-exhibit--catmd .work-exhibit__caption {
        min-height: 0;
    }
}

@media (max-width: 380px) {
    .work-exhibit--emoji,
    .work-exhibit--catmd {
        --card-inset: 1.15rem;
    }

    .work-exhibit__visual {
        --exhibit-inset: 1.15rem;
    }

    .taskbar-stage {
        padding: 1.15rem;
    }

    .taskbar-stage__topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .taskbar-stage__headline {
        font-size: 2.5rem;
    }

    .work-exhibit__annotation > span:last-child {
        font-size: 2.15rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    .work-exhibit__arrow,
    .taskbar-stage__screen,
    .taskbar-stage__closeup,
    .taskbar-stage__cta > span,
    .emoji-stage__screen img,
    .catmd-stage__screen {
        transition: none;
    }
}
