.first {
    position: relative;
    width: 100%;
    height: calc(100vh - 5rem);
    overflow: hidden;
    margin-top: 5rem;
    background-color: var(--col-5);
}

.carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.1);
    will-change: transform;
    inset: 0 0 6vh 0; 
}

.carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    filter: brightness(50%);
}

.carousel img.previous {
    opacity: 1;
    z-index: 1;
}

.carousel img.active {
    opacity: 1;
    z-index: 2;
}

.first_text {
    padding: 0 10%;
    z-index: 2;
    position: relative;
    align-items: center;
    color: var(--col-2);
    height: calc(100vh - 5rem);
    display: flex;
}

.first_text h1 {
    font-size: var(--font-1);
    font-family: Anton;
    width: 50%;
}

#first_gras {
    position: absolute;
    top: calc(100vh - 5rem);
    z-index: 3;
    width: 100vw;
    height: auto;
    translate: 0 calc(-100%);
    bottom: -1px;
}






.second {
    position: relative;
    display: flex;
    background-color: var(--col-5);
}

.second::before {
    content: "";
    position: absolute;
    top: -8px;                 /* reaches 8px up into the bottom of .first */
    left: 0;
    right: 0;
    height: 10px;              /* 8px above the seam, 2px below it */
    background-color: var(--col-5);   /* same green as .second */
    z-index: 5;                /* above the grass (3) and the first section's text (2) */
    pointer-events: none;
}

.second_in {
    display: flex;
    padding: 10rem 10%;
    padding-bottom: 15rem;
    flex-direction: row;
    gap: 5rem;
    align-items: center;
    z-index: 4;
}

.second_left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 50%;
}

.second_left h1 {
    color: var(--col-2);
    font-size: var(--font-2);
    font-family: Anton;
}

.second_left p {
    color: var(--col-2);
    font-size: var(--font-4);
}

.second_right_shadow {
    width: 50%;
    filter: drop-shadow(0 0 1rem rgba(0, 0, 0, 0.5));
}

.second_right {
    display: flex;
    width: 100%;
    padding: 2rem;
    position: relative;
}

.second_right img {
    width: 100%;
    opacity: 90%;
}

.second_right::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(images/white-paper-texture.jpg);
    background-size: cover;
    mix-blend-mode: multiply;
    opacity: 1;
    pointer-events: none;
}

#second_boot {
    z-index: 2;
    position: absolute;
    top: 0;
    left: -3rem;
    height: 100%;
    opacity: 0.2;
}

#second_brush {
    width: 120%;
    left: -10%;
    translate: -10% -50%;
}





.third {
    margin: 0 10%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    translate: 0 -10vw;
    gap: 5rem;
    filter: drop-shadow(0 0 1rem rgba(0, 0, 0, 0.2));
    color: var(--col-4);
}

.third_card {
    display: flex;
    width: 100%;
    padding: 2rem;
    position: relative;
    flex-direction: column;
    gap: 1rem;
    background-image: url(images/white-paper-texture.jpg);
    background-size: cover;
}

.third_card h2 {
    font-size: var(--font-6);
}

.third_card p {
    font-size: var(--font-4);
    margin-bottom: 1rem;
}

.third_card button {
    width: fit-content;
    padding: var(--btn-padding);
    border-radius: 100vh;
    border: solid 2px var(--col-4);
    color: var(--col-4);
    font-size: var(--font-5);
    background-color: transparent;
}

@property --r {
    syntax: '<length-percentage>';
    inherits: false;
    initial-value: 0%;
}

.btn {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: var(--btn-padding);   /* var(--btn-padding) + the 2px the border used to take */
    border: none;
    box-shadow: inset 0 0 0 2px var(--col-5);     /* acts as the border */
    border-radius: 999px;
    color: var(--col-4);
    text-decoration: none;
    transition: color 0.3s;
    font-size: var(--font-5);
    width: fit-content;
    margin-top: auto;
}

.btn_fill {
    position: absolute;
    inset: 0;
    background: var(--col-5);
    clip-path: circle(var(--r) at var(--x, 50%) var(--y, 50%));
    transition: --r 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.btn:hover { color: var(--col-2); }

.btn:hover .btn_fill {
    --r: 160%;
    transition: --r 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn_text { position: relative; }





.fourth {
    position: relative;
    height: 100vh;
    overflow: hidden;              /* items start below the section and are clipped there */
    background-color: var(--col-1);
}

.fourth_text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--col-4);
    z-index: 2;
    filter: drop-shadow(0 0 2rem var(--col-1));
}

.fourth_text h2 {
    font-size: var(--font-1);
    font-family: Anton;
}

.fourth_item_shadow {
    position: absolute;            /* left and top are set inline above */
    width: 20vw;
    z-index: 3;                    /* flies in front of the text */
    filter: drop-shadow(0 0 1rem rgba(0, 0, 0, 0.5));
}

.fourth_item {
    display: flex;
    width: 100%;
    padding: 2rem;
    position: relative;
}

.fourth_item img {
    width: 100%;
    opacity: 90%;
}

.fourth_item::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(images/white-paper-texture.jpg);
    background-size: cover;
    mix-blend-mode: multiply;
    opacity: 1;
    pointer-events: none;
}

.btn_fourth { margin-top: 3rem; }