.home-hero {
    display: grid;
    align-items: center;
    gap: 0.75rem 1.5rem;
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    margin-block-end: clamp(1.5rem, 3.5vw, 2.5rem);
    border: 1px solid #f0dfcd;
    border-radius: 1rem;
    background: linear-gradient(115deg, #fffaf4, #fdf2e6);
    color: #222d3e;
}

.home-hero__copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.home-hero__copy h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 3.4vw, 2.875rem);
    font-weight: 750;
    line-height: 1.15;
}

.home-hero__features,
.home-hero__images {
    display: grid;
}

.home-hero__feature,
.home-hero__image {
    grid-area: 1 / 1;
}

.home-hero__feature[aria-hidden="true"],
.home-hero__image[aria-hidden="true"] {
    visibility: hidden;
}

.home-hero__feature h2 {
    margin: 0 0 0.25rem;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.3;
}

.home-hero__feature p {
    max-width: 45ch;
    margin: 0 0 0.75rem;
    color: #465266;
    font-size: 1rem;
    line-height: 1.45;
    text-wrap: pretty;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.625rem;
}

.home-hero .home-hero__download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    max-width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    background: #b7440c;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.home-hero .home-hero__download:hover {
    background: #993505;
}

.home-hero .home-hero__download:focus-visible,
.home-hero__selector:focus-visible,
.home-hero__rotation:focus-visible {
    outline: 2px solid #222d3e;
    outline-offset: 3px;
}

.home-hero__download svg {
    flex: none;
}

.home-hero__selectors:not([hidden]) {
    display: flex;
}

.home-hero__selector,
.home-hero__rotation {
    display: grid;
    place-items: center;
    width: 2rem;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    cursor: pointer;
}

.home-hero__rotation {
    color: #805b42;
}

.home-hero__rotation:hover {
    background: #f5e5d5;
}

.home-hero__rotation[data-playing="true"] .home-hero__play-icon,
.home-hero__rotation[data-playing="false"] .home-hero__pause-icon {
    display: none;
}

.home-hero__selector::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 1rem;
    background: #8e7969;
}

.home-hero__selector[aria-pressed="true"]::before {
    width: 1.125rem;
    background: #b7440c;
}

.home-hero__image {
    display: block;
    justify-self: center;
    width: 100%;
    max-width: 14rem;
    height: auto;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent),
                linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
    mask-composite: intersect;
}

@media (max-width: 575.98px) {
    .home-hero__actions {
        column-gap: 0.375rem;
    }

    .home-hero__selector,
    .home-hero__rotation {
        width: 1.75rem;
    }
}

@media (min-width: 768px) {
    .home-hero {
        grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
        min-height: 17.5rem;
    }

    .home-hero__image {
        max-width: 35rem;
    }
}
