html {
    height: 100%;
    background: #fafafa;
}

body {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100svh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.reval {
    position: relative;
    container-type: inline-size;
    --reval-unit: min(1cqw, 1.502232svh);
    width: 100%;
    height: 100svh;
    color: #191919;
    overflow: clip;
}

.reval__notice {
    position: absolute;
    top: calc((64.84svh - 43.09064cqw + 100cqw * 896 / 1346 * 0.2344) / 2);
    transform: translateY(-50%);
    left: 3.57%;
    margin: 0;
    color: #373834;
    font-size: calc(1.4 * var(--reval-unit));
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1.2;
}

.reval__collage {
    position: absolute;
    top: calc(64.84svh - 43.09064cqw);
    left: 0;
    width: 100%;
    aspect-ratio: 1346 / 896;
    overflow: clip;
    clip-path: polygon(0 23.44%, 54.01% 23.44%, 44.58% 37.39%, 63.15% 64.96%, 82.1% 37.39%, 100% 37.39%, 100% 78.46%, 54.23% 78.46%, 44.65% 64.84%, 0 64.84%);
}

.reval__texture {
    display: block;
    width: 100%;
    height: 100%;
}

.reval__photo {
    position: absolute;
    left: calc((var(--x) - 123) / 1346 * 100%);
    top: calc((var(--y) - 123) / 896 * 100%);
    width: 18.2764%;
    height: 27.4554%;
    object-fit: cover;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.reval__logo {
    position: absolute;
    top: calc(64.84svh - 43.09064cqw + 100cqw * 310 / 1346);
    left: 63.15%;
    width: 22%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    transform: translate(-50%, -50%);
    mix-blend-mode: multiply;
}

.reval__services {
    position: absolute;
    bottom: 6.9%;
    left: 5%;
    width: 55%;
    display: flex;
    align-items: flex-start;
    gap: calc(6 * var(--reval-unit));
}

.reval__title {
    flex: 0 0 auto;
    margin: 0;
    padding-top: calc(0.6 * var(--reval-unit));
    font-size: calc(4 * var(--reval-unit));
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.035em;
}

.reval__title span {
    display: block;
}

.reval__subtitle {
    margin-top: calc(0.85 * var(--reval-unit));
    color: #8b8071;
    font-size: 0.39em;
    font-weight: 400;
    letter-spacing: 0.43em;
}

.reval__list {
    display: grid;
    gap: calc(0.45 * var(--reval-unit));
    margin: 0;
    padding: 0;
    list-style: none;
}

.reval__service {
    display: flex;
    align-items: center;
    gap: calc(0.85 * var(--reval-unit));
    color: #565551;
    font-size: calc(1.32 * var(--reval-unit));
    font-weight: 400;
    line-height: 1.45;
}

.reval__icon {
    display: block;
    flex: 0 0 calc(4.2 * var(--reval-unit));
    width: calc(4.2 * var(--reval-unit));
    height: calc(4.2 * var(--reval-unit));
    background: url("assets/service-icons.png") var(--icon-position) center / 300% 100% no-repeat;
    mix-blend-mode: multiply;
}

.reval__phone {
    position: absolute;
    right: 5%;
    bottom: 6.9%;
    display: grid;
    gap: calc(0.7 * var(--reval-unit));
    padding-bottom: calc(0.65 * var(--reval-unit));
    border-bottom: 1px solid #b7aea1;
    color: #292a27;
    font-size: calc(2.2 * var(--reval-unit));
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.15;
    text-decoration: none;
}

.reval__phone-label {
    color: #8b8071;
    font-size: calc(0.9 * var(--reval-unit));
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.reval__phone:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 6px;
}

@media (max-aspect-ratio: 4 / 5) {
    .reval {
        width: 100%;
        height: 100svh;
        aspect-ratio: auto;
    }

    .reval__notice {
        top: 4%;
        transform: none;
        left: 7%;
        font-size: 3.4cqw;
    }

    .reval__logo {
        top: 11%;
        left: 33%;
        width: 34%;
        height: 19%;
        transform: none;
    }

    .reval__collage {
        top: calc(45.5svh - 33.2838cqw);
        width: 100%;
        height: auto;
        bottom: auto;
    }

    .reval__services {
        top: 62%;
        bottom: auto;
        left: 7%;
        width: 86%;
        display: block;
    }

    .reval__title {
        display: flex;
        align-items: baseline;
        gap: 3cqw;
        padding: 0;
        font-size: 6cqw;
    }

    .reval__subtitle {
        margin: 0;
        font-size: 0.52em;
    }

    .reval__list {
        gap: 1.7cqw;
        margin-top: 3cqw;
    }

    .reval__service {
        gap: 2.8cqw;
        font-size: 3.7cqw;
        line-height: 1.35;
    }

    .reval__icon {
        flex-basis: 8cqw;
        width: 8cqw;
        height: 8cqw;
    }

    .reval__phone {
        right: 7%;
        bottom: 4%;
        gap: 1cqw;
        padding-bottom: 1.4cqw;
        font-size: 5.7cqw;
    }

    .reval__phone-label {
        font-size: 2.5cqw;
    }
}
