.home-page {
    --home-bg: var(--surface);
    --home-soft: var(--surface-soft);
    --home-brand-soft: #f3efff;
    --home-brand-line: #d7cdef;
    --home-text: var(--ink);
    --home-muted: var(--ink-muted);
    --home-max: 72rem;
    color: var(--home-text);
    background: var(--home-bg);
}

.home-page, .home-page * {
    box-sizing: border-box;
}

.home-page :where(h1, h2, h3, p, ul, ol, figure) {
    margin: 0;
}

.home-page :where(h1, h2, h3) {
    color: var(--home-text);
    text-wrap: balance;
}

.home-page :where(h1, h2, h3, p, li, a, span) {
    word-break: keep-all;
    overflow-wrap: break-word;
}

.home-page :where(p, li) {
    text-wrap: pretty;
}

.home-page img {
    display: block;
    max-width: 100%;
}

.home-wrap {
    width: min(calc(100% - 2rem), var(--home-max));
    margin-inline: auto;
}

.home-footer__brand {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
}

.home-footer__brand img {
    width: 7.75rem;
    height: auto;
}

.home-btn {
    min-height: 2.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.home-btn--primary {
    color: var(--on-dark);
    background: var(--accent);
}

.home-btn--secondary {
    border-color: var(--home-brand-line);
    color: var(--accent);
    background: var(--surface);
}

.home-btn--small {
    min-height: 2.75rem;
}

.home-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgb(111 78 216 / .045) 1px, transparent 1px),
        linear-gradient(90deg, rgb(111 78 216 / .045) 1px, transparent 1px),
        linear-gradient(145deg, #f5f1ff 0%, #fbfaff 48%, #ffffff 100%);
    background-size: 3rem 3rem, 3rem 3rem, auto;
}

.hero-stage {
    display: grid;
    grid-template-rows: auto auto auto;
    padding-top: clamp(1rem, .75rem + 1vw, 2rem);
}

.hero-brand {
    position: relative;
    z-index: 5;
    width: min(calc(100% - 2rem), var(--home-max));
    margin-inline: auto;
}

.hero-brand a {
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
}

.hero-brand img {
    width: auto;
    height: 2rem;
}

.hero-editor__statement {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 2rem), var(--home-max));
    margin-inline: auto;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding-block: 3rem clamp(2rem, 1.5rem + 2vw, 3rem);
}

.hero-editor__braces {
    position: absolute;
    z-index: 0;
    inset: 3rem 0 auto;
    height: min(58vh, 31rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgb(111 78 216 / .07);
    font: 700 clamp(22rem, 16rem + 20vw, 40rem)/.65 ui-monospace, monospace;
    pointer-events: none;
    user-select: none;
}

.hero-editor__braces span:first-child {
    transform: translateX(-28%);
}

.hero-editor__braces span:last-child {
    transform: translateX(28%);
}

.hero-editor__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.hero-editor__label {
    margin-bottom: 1rem;
    color: var(--home-muted);
    font-size: .875rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.home-hero h1 {
    width: 100%;
    font-size: clamp(2.125rem, 2rem + .5vw, 2.25rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.home-hero h1 span {
    color: var(--accent);
    font: inherit;
}

.home-lead {
    max-width: 38rem;
    margin-top: 1rem;
    color: var(--home-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.hero-editor__characters {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 3rem;
    width: clamp(4.5rem, 4rem + 2vw, 5.5rem);
    height: clamp(6rem, 5rem + 4vw, 7.5rem);
}

.hero-editor__ivy {
    position: absolute;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 .75rem 1rem rgb(30 38 49 / .14));
    animation: hero-float 5s ease-in-out infinite;
}

.hero-editor__ivy--cursor {
    right: 0;
    top: 0;
}

.home-page .hero-editor__ivy--checkbox {
    display: none;
}

.hero-work {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-block: 1rem 1.5rem;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 clamp(1.5rem, 4vw, 5rem), #000 calc(100% - clamp(1.5rem, 4vw, 5rem)), transparent);
}

.hero-work__track {
    width: max-content;
    display: flex;
    gap: 1rem;
    transform: translateX(6vw);
    animation: hero-marquee 60s linear infinite;
}

.hero-work__item {
    flex: 0 0 15rem;
    aspect-ratio: 16 / 10;
    margin: 0;
    border-radius: .5rem;
    background: var(--surface);
    box-shadow: 0 1rem 2.5rem rgb(30 38 49 / .14);
    overflow: hidden;
}

.hero-work__bar {
    position: relative;
    height: 1.25rem;
    display: block;
    border-bottom: 1px solid var(--line);
    background: #f7f7f9;
}

.hero-work__bar::before {
    content: "";
    position: absolute;
    top: .5rem;
    left: .625rem;
    width: .3125rem;
    height: .3125rem;
    border-radius: 50%;
    background: #ff6b6b;
    box-shadow: .625rem 0 #f5c451, 1.25rem 0 #58c976;
}

.hero-work__item img {
    width: 100%;
    height: calc(100% - 1.25rem);
    object-fit: cover;
    object-position: top;
}

@keyframes hero-marquee {
    from {
        transform: translateX(6vw);
    }

    to {
        transform: translateX(calc(-50% - .5rem + 6vw));
    }
}

@keyframes hero-float {
    50% {
        translate: 0 -.5rem;
    }
}

.help-strip {
    border-block: 1px solid var(--line);
    background: var(--home-soft);
}

.help-strip__inner {
    display: grid;
    gap: var(--s-2);
    padding-block: var(--s-3);
}

.help-strip .home-kicker {
    margin-bottom: .25rem;
}

.help-strip h2 {
    font-size: 1.25rem;
    line-height: 1.4;
}

.help-strip__links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}

.help-strip__links a, .home-text-link {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-size: .875rem;
    font-weight: 800;
    text-underline-offset: .25rem;
}

.home-section {
    padding-block: clamp(2.75rem, 2.25rem + 1.5rem, 4rem);
}

.home-heading {
    max-width: 48rem;
    margin-bottom: var(--s-3);
}

.home-heading h2, .contact-band h2 {
    font-size: clamp(1.75rem, 1.55rem + .8rem, 2.5rem);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.home-heading--icon .home-kicker {
    margin-bottom: var(--s-1);
}

.home-heading--icon .home-kicker img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.home-page :where(a, button):focus-visible {
    outline: .1875rem solid var(--ring);
    outline-offset: .1875rem;
}

.home-page :where(a, button):active {
    transform: translateY(1px);
}

@media (hover: hover) {
    .hero-work:hover .hero-work__track {
        animation-play-state: paused;
    }

    .home-btn--primary:hover {
        background: var(--accent-press);
    }

    .home-btn--secondary:hover {
        border-color: var(--accent);
        background: var(--home-brand-soft);
    }

    .help-strip__links a:hover, .home-text-link:hover {
        color: var(--accent-press);
    }

}

@media (min-width: 48rem) {
    .home-wrap, .hero-brand, .hero-editor__statement {
        width: min(calc(100% - 3rem), var(--home-max));
    }

    .hero-editor__statement {
        grid-template-columns: minmax(0, 1fr) minmax(15rem, .55fr);
        gap: 2rem;
    }

    .home-hero h1 {
        font-size: clamp(3.75rem, 2.5rem + 2.5vw, 5rem);
    }

    .home-lead {
        font-size: 1.125rem;
    }

    .hero-editor__characters {
        position: relative;
        z-index: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 14rem;
    }

    .hero-editor__ivy {
        width: clamp(8.75rem, 7rem + 3vw, 11.25rem);
    }

    .hero-editor__ivy--cursor {
        right: 0;
        bottom: 0;
        top: auto;
    }

    .hero-work__item {
        flex-basis: clamp(21.25rem, 18rem + 4vw, 23.75rem);
    }

}

@media (prefers-reduced-motion: reduce) {
    .hero-work {
        overflow-x: auto;
        mask-image: none;
    }

    .hero-work__track, .hero-editor__ivy {
        animation: none;
    }
}

@media (min-width: 64rem) {
    .help-strip__inner {
        grid-template-columns: minmax(19rem, 1fr) auto minmax(26rem, 1.35fr);
        align-items: center;
    }

    .help-strip__links {
        justify-content: flex-end;
    }

}
