.home-page {
    overflow-x: hidden;
}

.home-navbar {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 50%;
    display: flex;
    width: min(1180px, calc(100% - 2rem));
    padding: 1.25rem 0;
    justify-content: space-between;
    align-items: center;
    gap: var(--space);
    transform: translateX(-50%);
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-weight: 700;
    text-decoration: none;
}

.home-brand img {
    display: block;
    background: #000;
}

.home-nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}

.theme-toggle {
    padding: .4rem .65rem;
}

.home-hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    padding: 7rem 1rem 4rem;
    place-items: center;
    isolation: isolate;
}

.home-hero::before,
.home-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
}

.home-hero::before {
    background-image:
        radial-gradient(circle at 15% 20%, var(--fg) 0 1px, transparent 1.5px),
        radial-gradient(circle at 75% 18%, var(--fg) 0 1px, transparent 1.5px),
        radial-gradient(circle at 35% 72%, var(--fg) 0 1px, transparent 1.5px),
        radial-gradient(circle at 86% 78%, var(--fg) 0 1px, transparent 1.5px);
    background-size: 13rem 11rem, 17rem 15rem, 19rem 17rem, 23rem 21rem;
    opacity: .24;
}

.home-hero::after {
    inset: 12% 18%;
    border: 1px solid var(--muted);
    opacity: .16;
    transform: rotate(-7deg);
}

.home-hero-content {
    display: flex;
    width: min(900px, 100%);
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-logo-frame {
    display: grid;
    width: clamp(8rem, 18vw, 12rem);
    aspect-ratio: 1;
    margin-bottom: 1.75rem;
    border: 1px solid var(--fg);
    background: #000;
    place-items: center;
}

.home-logo {
    display: block;
    width: 78%;
    height: auto;
}

.home-kicker {
    margin-bottom: .5rem;
    color: var(--muted);
    letter-spacing: .22em;
}

.home-hero h1 {
    max-width: 14ch;
    font-size: clamp(2.7rem, 8vw, 6.8rem);
    font-weight: 400;
    letter-spacing: -.075em;
    line-height: .95;
}

.home-intro {
    max-width: 42rem;
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.home-actions {
    margin-top: 2rem;
    justify-content: center;
}

.home-scroll {
    position: absolute;
    bottom: 1.5rem;
    color: var(--muted);
    font-size: .85rem;
}

.home-content {
    width: min(980px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 4rem 0 6rem;
}

.home-content.stack > * + * {
    margin-top: 5rem;
}

.home-section {
    scroll-margin-top: 2rem;
}

.home-section > p {
    max-width: 68ch;
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
}

.home-steps li {
    min-height: 12rem;
    padding: 1.25rem;
    border: 1px solid var(--fg);
}

.home-steps li + li {
    border-left: 0;
}

.home-step-number {
    display: block;
    margin-bottom: 2.5rem;
    color: var(--muted);
    font-size: .85rem;
}

.home-steps strong {
    display: block;
    margin-bottom: .5rem;
    font-size: 1.1rem;
}

.home-private-section {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid var(--fg);
}

.home-contact {
    padding-top: 4rem;
    border-top: 1px solid var(--fg);
}

.home-footer {
    display: flex;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0;
    border-top: 1px solid var(--fg);
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: .85rem;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 720px) {
    .home-navbar {
        position: relative;
        left: auto;
        align-items: flex-start;
        transform: none;
    }

    .home-nav-links {
        justify-content: flex-end;
        gap: .75rem;
    }

    .home-nav-links li:first-child {
        display: none;
    }

    .home-hero {
        min-height: calc(100svh - 5rem);
        padding-top: 3rem;
    }

    .home-hero::after {
        inset: 15% 8%;
    }

    .home-steps {
        grid-template-columns: 1fr;
    }

    .home-steps li + li {
        border-top: 0;
        border-left: 1px solid var(--fg);
    }

    .home-footer {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .home-navbar {
        align-items: center;
    }

    .home-brand span,
    .home-nav-links li:nth-child(2),
    .theme-toggle [data-theme-label] {
        display: none;
    }

    .home-hero h1 {
        font-size: clamp(2.6rem, 15vw, 4.4rem);
    }

    .home-actions {
        width: 100%;
    }

    .home-actions .btn {
        flex: 1;
        text-align: center;
    }
}
