#work-philosophy-page {
    padding-top: clamp(4rem, 8vw, 8rem);
}

#work-philosophy-page > h2,
.middle-fish-layout,
.closing-fish-layout {
    width: min(88%, 95rem);
    margin-inline: auto;
    box-sizing: border-box;
}

#work-philosophy-page h2 {
    font-family: "BBH Hegarty", sans-serif;
    font-size: clamp(1.5rem, 10.5vw, 16rem);
    line-height: 1.15;
    color: var(--base-red);
    padding: 0;
    white-space: nowrap;
    /* margin-bottom: 10rem; */
}

#work-philosophy-page h2 span {
    color: var(--bg-color);
    background-color: var(--base-red);
    display: inline-block;
    margin-top: 0.15em;

    padding-left: 0.15em;
    padding-right: 0.15em;
}

.middle-fish-layout {
    display: grid;
    grid-template-columns: minmax(0, 28fr) minmax(0, 68fr);
    align-items: start;
    column-gap: 4%;
    row-gap: 1rem;
    margin-top: 0.5rem;
}

.fish-group {
    display: contents;
}

.fish-text-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    grid-column: 2;
    grid-row: 1 / 3;
    padding-top: 1.5rem;
}

.fish-text-area {
    position: relative;
    left: 6rem;


    width: 100%;
    background-color: var(--base-pink);
    font-family: "Pixelify Sans", sans-serif;
    font-size: clamp(0.875rem, 1.5vw, 3.25rem);
    line-height: 1.5;
    overflow-wrap: break-word;

    color: black;
    padding: 1.5rem;
    margin-top: 3rem;

    animation-name: fish-text-area-animation;
    animation-duration: 0.8s;
    animation-iteration-count: infinite;

}


/* FISH TEXT AREA BACKGROUND ANIMATION */
@keyframes fish-text-area-animation{
    0%{
        background-color: var(--base-pink);
    }

    25%{
        background-color: #fb20ae;
    }

    50%{
        background-color: #fb0f81;
    }

    75%{
        background-color: #f32d83;
    }

    100%{
        background-color: var(--base-pink);
    }
}


.fish-text-area ::selection{
    background-color: var(--bg-color);
    color: var(--base-pink);
}



.fish-text-area p + p {
    margin-top: 0.75rem;
}


.fishes-black-block-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    position: relative;
    top: 8rem;
    left: 6rem;
}

.fishes-black-block-area .black-card {
    max-width: 90%;
    margin: 0;
    font-size: clamp(0.75rem, 1.5vw, 3.125rem);
    line-height: 1.35;
    overflow-wrap: break-word;
}

.fishes-black-block-area .black-card:last-child {
    align-self: flex-end;
}


.closing-fish-layout {
    display: grid;
    place-items: center;
    margin-top: 1.5rem;
    padding-bottom: clamp(3rem, 6vw, 6rem);
    position: relative;
    animation-name: orange-fish-float; 
    animation-duration: 0.7s;
    animation-iteration-count: infinite;
    animation-direction: alternate-reverse;
    animation-timing-function: linear;
}

@keyframes orange-fish-float {
    0%{
        top: -0.4rem;
    }    

    20%{
        top: -0.9rem;
    }

    40%{
        top: -1.2rem;
    }
    
    60%{
        top: -1.4rem;
    }

    80%{
        top: -1.8rem;
    }

    100%{
        top: -2rem;
    }
}

.closing-fish-layout > .closing-text,
.closing-fish-layout > .fish-orange,
.closing-fish-layout > .torn-paper{
    grid-area: 1 / 1;
}

#torn-paper-img{
    position: relative;
    z-index: 1;

    width: 100%;
    transform: scaleX(1.5);

    left: 7.5rem;
    top: -4.5rem;
}

.closing-text {
    position: relative;
    left: 8.8rem; 
    top: -6rem;
    
    z-index: 2;
    width: 37%;
    text-align: center;
    font-family: "Alef", monospace;
    font-size: clamp(0.875rem, 1.8vw, 1.85rem);
    padding:0.5rem;
    line-height: 1.4;

    background-color: transparent;
    color: black;

    transform: rotate(6deg);
}

/* INTERACTIONS */

#work-philosophy-page h2::selection{
    color: var(--bg-color);
    background-color: var(--base-red);
}

#work-philosophy-page h2 span::selection{
    background-color: var(--bg-color);
    color: var(--base-red);
}

.closing-text p::selection{
    background-color: black;
    color: var(--base-bright-white);
}