/* =====================================
   HOME
===================================== */

.home {
    position: relative;
    width: 100%;
    height: 100dvh;
    min-height: 100svh;

    background: var(--color-contrast);
    overflow: hidden;

    z-index: 7;
}


/* =====================================
   HOME BACKGROUND
===================================== */

.home::before {
    content: "";

    position: absolute;
    inset: 0;

    background: var(--color-contrast);

    transform: scale(1.08);

    z-index: -1;
}

.home.zoom-out::before {
    animation: homeZoomOut 2s ease-out forwards;
}

@keyframes homeZoomOut {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}

.home-frame {
    position: absolute;

    width: 100%;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
}

.home-frame > .frame {
    display: block;

    width: 100%;
    height: auto;
}

.home-item,
.home-keychain,
.home-angel,
.home-ring {
    position: absolute;
}

.home-letter {
    position: absolute;

    width: 45%;

    left: 10%;
    top: 7%;
    transform: rotate(-5deg);

    z-index: 2;
}

.home-letter > img {
    display: block;

    width: 100%;
    height: auto;
}

.letter-text {
    position: absolute;
    top: 33%;
    left: 33%;
    text-align: center;
    z-index: 3;
    pointer-events: none;
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.2rem;
    color: var(--color-bg2);
}

.home-love {
    position: absolute;

    width: 70%;

    left: 15%;
    bottom: 20%;

    z-index: 2;
}

.home-love > img {
    display: block;

    width: 100%;
    height: auto;
}

.love-text {
    position: absolute;

    top: 25%;
    left: 23%;

    text-align: center;

    z-index: 3;

    pointer-events: none;
}

.love-text h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-bg2);
}

.love-text p {
    font-family: var(--font-content);
    font-size: 1rem;
    color: var(--color-bg2);
}

.home-keychain {
    width: 45%;

    right: 12%;
    top: 2%;

    z-index: 3;
}

.home-angel {
    width: 50%;

    left: 0%;
    bottom: 13%;
    z-index: 3;
}

.home-ring {
    width: 42%;

    right: 10%;
    bottom: 10%;
    z-index: 3;
}

.frame, .home-asset, .letter-text, .love-text {
    opacity: 0;
    transform: translateY(20px);
}

.home.show-content .frame {
    animation: homeAssetFadeUp 1.2s ease-out forwards;
}

.home.show-content .home-letter > img {
    animation: homeAssetFadeUp 1.2s ease-out 0.5s forwards;
}

.home.show-content .home-love > img {
    animation: homeAssetFadeUp 1.2s ease-out 1s forwards;
}

.home.show-content .home-keychain {
    animation: homeAssetFadeUp 1.2s ease-out 1.5s forwards;
}

.home.show-content .home-angel {
    animation: homeAssetFadeUp 1.2s ease-out 2s forwards;
}

.home.show-content .home-ring {
    animation: homeAssetFadeUp 1.2s ease-out 2.5s forwards;
}

.home.show-content .letter-text {
    animation: homeAssetFadeUp 1.2s ease-out 3s forwards;
}

.home.show-content .love-text {
    animation: homeAssetFadeUp 1.2s ease-out 3.5s forwards;
}

@keyframes homeAssetFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}