.header {
    width: 100%;
    background-color: var(--surface-page);
    max-height: 5rem;
    border-bottom: var(--space-md) solid var(--surface-page);

    position: fixed;
    display: flex; flex-direction: row;
    z-index: 100;

    max-width: var(--width-max);
    left: 50%;
    transform: translateX(-50%);
}

.header-container {
    position: fixed;
    background-color: var(--surface-page);
    width: 100%;
    height: 6rem;
    z-index: 99;
}

/* ======================================================== */

.wordmark {
    display: flex; white-space: nowrap;
    position: relative;
    overflow: hidden;
    align-items: center;
    
    padding-top: 1.1rem;
    padding-left: 4rem;
    transition: transform 0.75s cubic-bezier(.32,.02,.44,1.15);
}

.wordmark span {
    letter-spacing: var(--letter-spacing-tight);
    font-size: 3rem;
    background: repeating-linear-gradient(to bottom, var(--teal-800), var(--teal-default) 2.75rem, var(--teal-default) 3.45rem);
    margin-right: 0.125rem;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

}

.stylized-o {
    width: 3rem; 
    height: 3rem;
    transition: transform 0.75s cubic-bezier(.32,.02,.44,1.15);
    z-index: 1;
    margin-bottom: 0;
}

.wordmark:hover {
    opacity: .8;
}

.wordmark:hover > .stylized-o {
    transform: rotate(90deg);
}

.wordmark::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%; 
    height: 100%;
    background: linear-gradient(90deg, transparent, #ffffff90, transparent);
    transition: .5s ease-in-out;
}

.wordmark:hover::before, .wordmark:active::before {
    left: 100%;
}

/* ======================================================== */

.menu-options {
    justify-content: right;
    white-space: nowrap;
}

/* ======================================================== */

.hamburger {
    /* Align menu button to the right by putting flexible space to the left */
    margin-left: auto;
    width: 0;
}
.ham-bars {
    width: 0px;
    height: 0px;
    background-color: var(--Background-100);
    border-radius: 5px;
    opacity: 0;

    margin: .3rem;
    margin-right: 2.3rem;
    transition: 0.4s ease-in-out;
}

.hamburger:hover > #bar2 {
    transform: translate(-8px, 0);
}

.hamburger-menu-options {
    font-family: gravity;
    color: var(--Text-link-light-bg);
    position: fixed;
    z-index: -1;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin: 0;
    padding: 0;
    padding-right: 4rem;
    opacity: 0;
    pointer-events: none;
}

.hamburger-menu-options li {
    font-family: gravity;
    line-height: unset;
    position: relative;
    font-size: 1rem;
}

.active #bar1 {
    width: 35px;
    transform: translate(0, 10px) rotate(45deg);
}
.active #bar2 {
    width: 0px;
}
.active #bar3 {
    transform: translate(0, -10px) rotate(-45deg);
}

.menu {
    position: fixed;
    left: 0%;
    width: 100%;
    background-image: var(--gradient-nav);
    opacity: 0;
    height: 11.8rem;
    transform: translateY(-100%); 
    transition: transform 0.4s ease-in-out;
    cursor: auto;
}

.header.menu-open .menu {
  transform: translateY(0);
  opacity: 1;
}

/* ======================================================== */

.footer {
    display: flex;
    align-items: center;
    position: relative;
    background-image: linear-gradient(to bottom, var(--surface-secondary), var(--teal-100));
    height: auto; /* 82px */
    margin-bottom: 0;
    margin-top: 1.5rem;
    padding: 3rem 4rem;
}

.footer-container {
    display: flex;
    position: relative;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: var(--width-max);
    
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo {
    width: 2.25rem; height: 2.5rem;
    transform: scaleX(-1) rotate(300deg);
    object-fit: contain;
    object-position: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: fit-content;
}

.footer-nav-container {
    display: flex;
    gap: 2rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    background-color: var(--surface-page);
    padding: 1.5rem 2rem 1.5rem 1.5rem;
    border-radius: var(--radius-sm);
    border: var(--border-thin) solid var(--border-subtle);
    flex-grow: 1;
}

.footer-nav li {
    padding-bottom: 0.5rem;
}

.footer-content h4 {
    margin-bottom: 0;
    width: fit-content;
    max-width: 550px;
}

#copyright {
    width: fit-content;
    color: var(--text-caption);
}

/* ======================================================== */

@media screen and (min-width: 1440px) {
    .wordmark {
        padding-left: 0rem;
    }
    .hamburger-menu-options {
        padding-right: 0rem;
    }
}

@media screen and (min-width: 900px) {
    .footer-content h4 {
        max-width: clamp(550px, 60vw, 1000px);
    }
}

@media screen and (max-width: 750px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media screen and (min-width: 700px) {
    .hamburger-menu-options {
        gap: 4rem;
    }
}

@media screen and (min-width: 621px) {
    .hamburger {
        visibility: collapse;
    }
    .menu {
        position: static;
        height: auto;
        opacity: 1;
        transform: none;
    }
    .hamburger-menu-options {
        position: static;
        margin: 0;
        transform: none;
        opacity: 1;
        pointer-events: unset;
        display: flex;
        justify-content: flex-end;
        padding-top: 3rem;
        gap: 3rem;
        line-height: unset;
    }
}

@media screen and (max-width: 620px) {
    .header {
        border-bottom: 0;
    }
    .wordmark span {
        pointer-events: none;
        width: 0;
        visibility: collapse;
    }
    .stylized-o {
        position: relative;
        left: 0;
        margin-top: -1.26rem;
        margin-left: -2.055rem;
    }

    .ham-bars, .menu, .hamburger-menu-options {
        opacity: 1;
        pointer-events: auto;
    }
    .menu-options {
        height: 0;
    }
    .ham-bars {
        width: 35px;
        height: 5px;
        background-color: var(--teal-800);
    }
    .hamburger {
        width: 4.8rem;
        margin-top: 0.5rem;
    }
    .hamburger-menu-options {
        margin-top: 1.4rem;
        padding-right: 0;
    }

    .footer {
        padding: 2.5rem 2.5rem 2.5rem 2.5rem;
    }
    .footer-nav-container {
        gap: 1rem;
    }
    .footer-nav {
        padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    }
}

@media screen and (max-width: 410px) {
    .footer {
        grid-template-columns: 1fr;
        height: auto;
    }
    #copyright {
        text-align: center;
    }
}