/* A centered desktop work presentation on the site's continuous grain surface. */
@media (min-width: 992px) {
    .pp-work-page {
        --pp-work-surface: #062527;
        --pp-work-grain: url('/images/studio/cellular-grain-mask.svg');
        --pp-work-relief: url('/images/studio/cellular-grain-relief.svg');
    }

    .pp-site.pp-work-page .page {
        position: relative;
        isolation: isolate;
        background: var(--pp-work-surface);
    }

    .pp-work-page .page::before,
    .pp-work-page .page::after {
        content: '';
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
    }

    .pp-work-page .page::before {
        background: var(--pp-work-relief) repeat 0 0 / 360px 360px,
            radial-gradient(ellipse at 70% 25%, #164951, transparent 72%),
            var(--pp-work-surface);
    }

    .pp-work-page .page::after {
        background-color: #29484b;
        background-color: oklch(from #062527 calc(l + .16) c h);
        background-image: radial-gradient(ellipse at 70% 25%, oklch(from #164951 calc(l + .16) c h), transparent 72%);
        mask: var(--pp-work-grain) repeat 0 0 / 360px 360px;
        mask-mode: alpha;
        opacity: .65;
    }

    .pp-site.pp-work-page .request-main.container {
        max-width: none;
        padding: 0;
        color: var(--pp-paper);
        text-align: center;
    }

    .pp-work-detail {
        max-width: 1320px;
        margin-inline: auto;
        padding: 28px var(--pp-gutter) clamp(72px, 9vw, 132px);
    }

    .pp-work-back {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        min-height: 44px;
        margin-block-end: 26px;
        color: var(--pp-mint) !important;
        font-size: 13px;
        text-decoration: none;
    }

    .pp-work-back > span:first-child { transition: transform .25s var(--pp-ease); }
    .pp-work-back:hover > span:first-child { transform: translateX(-4px); }
    .pp-work-back:hover > span:last-child { text-decoration: underline; text-underline-offset: 5px; }

    .pp-work-heading { max-width: 1000px; margin-inline: auto; }
    .pp-work-heading .portfolio-kind {
        margin: 0 0 12px;
        color: var(--pp-mint);
        font-size: 12px;
        font-weight: 500;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .pp-site.pp-work-page .pp-work-heading h1 {
        margin: 0;
        font-size: clamp(38px, 4.4vw, 68px);
        line-height: 1.1;
        letter-spacing: -.04em;
        overflow-wrap: break-word;
    }

    .pp-work-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 32px auto 36px;
    }

    .pp-work-visual .portfolio-detail-image {
        display: block;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: min(58dvh, 720px);
        margin: 0;
        object-fit: contain;
        box-shadow: 0 20px 60px #00141624;
    }

    .pp-work-description { max-width: 780px; margin-inline: auto; }
    .pp-work-description .catalog-description {
        color: #edf0e7;
        font-size: clamp(16px, 1.25vw, 19px);
        line-height: 1.85;
        text-wrap: pretty;
    }

    .pp-work-description .catalog-service-links {
        justify-content: center;
        gap: 8px 28px;
        margin-block: 20px 0;
    }

    .pp-work-description .catalog-service-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        color: var(--pp-mint);
        font-size: 13px;
        text-decoration: underline;
        text-underline-offset: 5px;
        text-decoration-color: #b1dfdd60;
        transition: color .2s, text-decoration-color .2s;
    }

    .pp-work-description .catalog-service-links a:hover { color: var(--pp-paper); text-decoration-color: currentColor; }
    .pp-work-description .pp-work-note { margin: 24px auto 0; color: #b9ceca; font-size: 12px; line-height: 1.7; }
    .pp-site.pp-work-page .pp-work-description .button { margin-block-start: 26px; border-color: #f5f1e880; color: var(--pp-paper); }
    .pp-site.pp-work-page .pp-work-description .button:hover { border-color: var(--pp-mint); background: var(--pp-mint); color: var(--pp-ink); }
    .pp-work-page .request-main :focus-visible { outline-color: var(--pp-mint); }

    .pp-site.pp-work-page .pp-footer-scene,
    .pp-site.pp-work-page .pp-footer-scene-media { background: transparent; }
    .pp-site.pp-work-page .pp-footer-scene-media::after { content: none; }

    [dir='rtl'] .pp-work-heading .portfolio-kind,
    [dir='rtl'] .pp-site.pp-work-page .pp-work-heading h1 { letter-spacing: 0; }
    [dir='rtl'] .pp-site.pp-work-page .pp-work-heading h1 { line-height: 1.4; }
    [dir='rtl'] .pp-work-back > span:first-child { transform: scaleX(-1); }
    [dir='rtl'] .pp-work-back:hover > span:first-child { transform: scaleX(-1) translateX(-4px); }

    @media (prefers-reduced-motion: no-preference) {
        .pp-work-heading, .pp-work-visual { animation: pp-work-arrive .65s var(--pp-ease) both; }
        .pp-work-visual { animation-delay: .09s; }
        @keyframes pp-work-arrive {
            from { opacity: 0; transform: translateY(14px); }
            to { opacity: 1; transform: translateY(0); }
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .pp-work-back > span:first-child,
        .pp-work-description .catalog-service-links a { transition: none; }
    }
}
