.home-main {
    background: var(--bg);
}

.home-main .hero {
    min-height: 100svh;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background: var(--dark);
}

.hero__video,
.hero__shade {
    position: absolute;
    inset: 0;
}

.hero__video-control {
    min-height: 46px;
    padding: 10px 17px 10px 12px;
    position: absolute;
    top: 126px;
    right: max(24px, calc((100vw - 1180px) / 2));
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 32, 23, 0.62);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: background 180ms ease, border-color 180ms ease,
        transform 180ms ease;
}

.hero__video-control[hidden] {
    display: none;
}

.hero__video-control:hover,
.hero__video-control:focus-visible {
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(15, 32, 23, 0.84);
    transform: translateY(-2px);
}

.hero__video-control-icon {
    width: 27px;
    height: 27px;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
}

.hero__video-control-icon::before {
    margin-left: 2px;
    content: "";
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--dark);
}

.hero__video-control[data-state="playing"] .hero__video-control-icon::before {
    width: 9px;
    height: 11px;
    margin-left: 0;
    border: 0;
    background: linear-gradient(
        to right,
        var(--dark) 0 3px,
        transparent 3px 6px,
        var(--dark) 6px 9px
    );
}

.hero__video {
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}

.hero__shade {
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(8, 20, 14, 0.82) 0%,
            rgba(8, 20, 14, 0.52) 47%,
            rgba(8, 20, 14, 0.16) 78%
        ),
        linear-gradient(
            0deg,
            rgba(8, 20, 14, 0.58),
            transparent 45%
        );
}

.home-main .hero-content {
    max-width: none;
    padding-top: 110px;
    position: relative;
    z-index: 2;
}

.home-main .hero h1 {
    max-width: 950px;
    margin-bottom: 28px;
    font-family: var(--font-heading);
    font-size: clamp(64px, 9vw, 126px);
    letter-spacing: -0.045em;
}

.home-main .hero p {
    max-width: 570px;
    font-size: clamp(17px, 2vw, 21px);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__scroll {
    padding: 10px 0;
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero__scroll i {
    width: 42px;
    height: 42px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.hero__scroll i::before {
    width: 7px;
    height: 7px;
    position: absolute;
    top: 14px;
    left: 16px;
    content: "";
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: rotate(45deg);
}

.home-about {
    padding: 120px 0;
}

.home-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
    gap: 75px 110px;
}

.home-about h2,
.home-section-heading h2,
.home-explore h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
}

.home-about__copy {
    padding-top: 31px;
    color: var(--muted);
    font-size: 18px;
}

.home-about__copy p {
    margin: 0 0 20px;
}

.home-facts {
    margin: 0;
    padding-top: 45px;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border-top: 1px solid var(--line);
}

.home-facts div {
    padding: 0 35px;
    border-left: 1px solid var(--line);
}

.home-facts div:first-child {
    padding-left: 0;
    border-left: 0;
}

.home-facts dt {
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: clamp(48px, 6vw, 72px);
    line-height: 1;
}

.home-facts dd {
    margin: 8px 0 0;
    color: var(--muted);
}

.home-houses {
    padding: 115px 0 125px;
    color: #fff;
    background: var(--dark);
}

.home-section-heading {
    margin-bottom: 50px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.text-link {
    padding-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.text-link span {
    color: var(--accent);
    font-size: 22px;
}

.home-houses__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.home-house {
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: #17231d;
}

.home-house__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    margin-top: auto;
}

.home-house img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 500ms ease, opacity 500ms ease;
}

.home-house:hover img {
    opacity: 0.88;
    transform: scale(1.035);
}

.home-house__content {
    padding: 24px 28px;
    display: block;
}

.home-house__content strong,
.home-house__content small {
    display: block;
}

.home-house__content strong {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 400;
    line-height: 1;
}

.home-house__content small {
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.home-explore {
    padding: 105px 0;
    background: #e7dfd1;
}

.home-explore__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.6fr);
    gap: 90px;
    align-items: end;
}

.home-explore__links {
    display: grid;
}

.home-explore__links a {
    padding: 23px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(34, 46, 42, 0.22);
    font-size: 18px;
}

.home-explore__links a:last-child {
    border-bottom: 1px solid rgba(34, 46, 42, 0.22);
}

.home-explore__links i {
    color: var(--accent);
    font-size: 25px;
    font-style: normal;
}

@media (max-width: 900px) {
    .home-about__grid,
    .home-explore__inner {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .home-about__copy {
        padding-top: 0;
    }

}

@media (max-width: 600px) {
    .home-main .hero {
        min-height: 760px;
    }

    .home-main .hero-content {
        padding-top: 90px;
    }

    .hero__video-control {
        top: 108px;
        right: 20px;
        min-height: 42px;
        padding: 8px 14px 8px 9px;
    }

    .home-main .hero h1 {
        font-size: clamp(54px, 18vw, 76px);
    }

    .hero__shade {
        background: linear-gradient(
            0deg,
            rgba(8, 20, 14, 0.84) 0%,
            rgba(8, 20, 14, 0.28) 75%
        );
    }

    .hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero__actions .button {
        width: 100%;
    }

    .hero__scroll {
        display: none;
    }

    .home-about,
    .home-houses,
    .home-explore {
        padding: 75px 0;
    }

    .home-facts {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-facts div,
    .home-facts div:first-child {
        padding: 0 0 22px;
        border-bottom: 1px solid var(--line);
        border-left: 0;
    }

    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-houses__grid {
        grid-template-columns: 1fr;
    }

    .home-house {
        border-radius: 20px;
    }
}
