main.works {
    .page-hero {
        .lead p + p {
            margin-top: 12px;
        }

        .visual {
            background: var(--hero-bg);

            img {
                object-fit: contain;
            }

            &::after {
                content: none;
            }

            @media (max-width: 980px) {
                min-height: 0;
                aspect-ratio: 2000 / 1021;
            }
        }
    }

    .intermezzo {
        .container {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: var(--gap-2xl);
            align-items: stretch;

            @media (max-width: 980px) {
                grid-template-columns: minmax(0, 1fr);
                gap: var(--gap-xl);
            }
        }

        .body {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        h2 {
            margin-bottom: 32px;
        }

        .text {
            padding-top: 22px;
            border-top: 2px solid var(--accent);

            p {
                color: #ffffff;
                opacity: 0.88;
                font-size: 17px;
                line-height: 1.65;

                & + p {
                    margin-top: 16px;
                }
            }
        }

        .actions {
            margin-top: var(--gap-xl);
        }

        .media {
            position: relative;
            min-height: 420px;
            overflow: hidden;

            img {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                max-width: none;
                object-fit: cover;
                object-position: center;
            }

            @media (max-width: 980px) {
                min-height: 0;
                aspect-ratio: 4 / 3;
            }
        }
    }

    .gallery-section {
        .category + .category {
            margin-top: var(--gap-2xl);
        }

        h2 {
            color: var(--fg);
            margin-bottom: var(--gap-lg);
        }

        .items {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: var(--gap-xl) var(--gap-lg);

            @media (max-width: 780px) {
                grid-template-columns: minmax(0, 1fr);
            }
        }
    }

    .work {
        display: flex;
        flex-direction: column;
        gap: 16px;

        .info {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: var(--gap-md);
        }

        h3 {
            color: var(--fg);
            font-size: 20px;
            font-weight: 800;
        }
    }

    .compare {
        --pos: 50%;
        position: relative;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        background: var(--surface);
        border: 1px solid var(--border);
        cursor: ew-resize;
        touch-action: pan-y;
        user-select: none;

        img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            max-width: none;
            object-fit: cover;
            object-position: center;
            pointer-events: none;
        }

        .after-image {
            position: absolute;
            inset: 0;
            clip-path: inset(0 0 0 var(--pos));
        }

        .divider {
            position: absolute;
            top: 0;
            bottom: 0;
            left: var(--pos);
            width: 3px;
            background: #ffffff;
            box-shadow: 0 0 0 1px rgba(46, 54, 58, 0.15);
            transform: translateX(-50%);
        }

        .label {
            position: absolute;
            top: 16px;
            padding: 6px 12px;
            background: var(--fg);
            color: #ffffff;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.24em;
            text-transform: uppercase;

            &.before {
                left: 16px;
            }

            &.after {
                right: 16px;
                background: var(--accent);
            }
        }
    }

    .range {
        width: 100%;
        margin: 0;
        accent-color: var(--accent);
        cursor: ew-resize;
    }
}