.wrapper {
    margin-top: 2rem;
    /* No fixed positioning, so buttons stay in flow */
}

/* General button style */
section div div a {
    display: block;
    width: fit-content;
    height: 48px;
    line-height: 48px;
    font-size: 18px;
    font-family: inherit;
    text-decoration: none;
    color: #333;
    border: 2px solid #34D399;
    border-radius: 9999px;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    transition: all .35s;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.08);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    /* vertical */
    justify-content: center;
    /* horizontal */
    text-align: center;
}

section div div a span {
    position: relative;
    z-index: 2;
    font-weight: 400;
    transition: color .35s;
}

/* Default: left-to-right wipe */
section div div a:after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to right, #34D399, #16a34a);
    transition: all .35s;
    z-index: 1;
}

section div div a:hover {
    color: #fff;
}

section div div a:hover:after {
    width: 100%;
}

/* Contact button: right-to-left wipe */
.contact-btn {
    border: 2px solid #34D399;
}

.contact-btn:after {
    left: auto;
    right: 0;
    background: linear-gradient(to left, #34D399, #16a34a);
}

.contact-btn:hover {
    color: #fff;
}

.contact-btn:hover:after {
    width: 100%;
    left: auto;
    right: 0;
}