#top-nav > div:first-child {
    height: 64px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#top-nav > div:first-child > div:first-child img {
    height: 40px;
    max-height: 40px;
}

#top-nav a {
    transition-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}

#top-nav > div:first-child > div:nth-child(2) a:hover {
    transform: translateY(-1px);
}

#mobile-menu a {
    transition: color 220ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

#mobile-menu a:hover {
    transform: translateY(-1px);
}

main .scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 680ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 680ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

main .scroll-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

html.page-transition-enter body {
    animation: page-enter 260ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

html.is-leaving body {
    opacity: 0;
    transition: opacity 180ms ease;
}

@keyframes page-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (min-width: 768px) {
    #top-nav > div:first-child {
        height: 80px;
    }

    #top-nav > div:first-child > div:first-child img {
        height: 48px;
        max-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    main .scroll-reveal,
    main .scroll-reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html.page-transition-enter body {
        animation: none;
    }

    html.is-leaving body {
        opacity: 1;
        transition: none;
    }

    #top-nav a,
    #mobile-menu a {
        transition: none;
    }
}
