:root {
    --text-color: #2e2e2e;
    --background-color: #f5f5f5;
    --animate-delay: 0.5s;
    --light-grey: #9B9B9B;
    --title-fonts: 'Cormorant Infant', Georgia, 'Times New Roman', Times, serif;
    --body-fonts: 'Proza Libre', Georgia, 'Times New Roman', Times, serif;
}

/* Enable ligatures for Cormorant Infant */
h1, h2, h3, h5, .project_stat, .next-pi li *, .logo::before {
    font-variant-ligatures: common-ligatures;
}

html {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Proza Libre', Georgia, 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 35px;
    overflow: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html>* {
    margin: 0;
    padding: 0;
}

.delay-0 {
    animation-delay: 0s;
}

.delay-1 {
    animation-delay: .1s;
}

.delay-2 {
    animation-delay: .2s;
}

.delay-3 {
    animation-delay: .3s;
}

.delay-4 {
    animation-delay: .4s;
}

.delay-5 {
    animation-delay: .5s;
}

.delay-6 {
    animation-delay: .6s;
}

body {
    height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    -webkit-scroll-behavior: smooth;
    scroll-behavior: smooth;
    color: var(--text-color);
}

a {
    text-decoration: none;
}

#nav {
    display: grid;
    justify-items: center;
    text-align: center;
    position: fixed;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    top: 0;
    left: 100vw;
    z-index: 98;
    transition: .2s ease-out;
    background-color: var(--text-color);
}

#nav.open {
    left: 0;
    opacity: 1;
    transition: .2s ease-out;
}

nav>* {
    font-size: 1.2em;
    line-height: 1.25em;
    padding: 1em 30px;
    color: var(--background-color);
    fill: var(--background-color);
    position: relative;
}

.logo::before {
    content: "Home"
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.header-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .3) url(img/patrick_bennett.jpg);
    background-position: center;
    background-blend-mode: darken;
    background-size: cover;
    animation: fadeIn;
    animation-duration: 2s;
}

header {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    z-index: -1;
    margin: 0;
}

.header-content {
    bottom: 40vh;
    text-align: left;
    position: absolute;
    margin: 0 auto;
    display: grid;
    /* max-width: 1100px; */
    grid-template-columns: 20px 1fr 20px;
}

.header-content.pi h1 {
    font-size: 12vw;
}

.header-content>* {
    grid-column: 2 / -2;
    max-width: calc(100vw - 40px);
}

header a {
    position: absolute;
    top: 60vh;
}

header span {
    color: var(--background-color);
    z-index: 10;
    font-size: .75rem;
    position: absolute;
    bottom: 150px;
    opacity: .5;
}

h1, h2, h3 {
    font-family: var(--title-fonts);
    width: 100%;
    letter-spacing: -1px;
    font-size: 18vw;
    font-weight: 500;
    margin: 0;
    line-height: 1.05em;
}

h1, h3 {
    color: var(--background-color);
}

h2 {
    margin-bottom: -.25em;
    display: block;
    margin-left: 20px;
}

h5 {
    font-family: var(--title-fonts);
    font-size: 3rem;
    line-height: 3rem;
    font-weight: 400;
    margin: 0;
}

h6 {
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 400;
    margin: 0;
}

button {
    background-color: var(--background-color);
    margin-top: 1rem;
    padding: 1em 4.5em;
    border: none;
    border-radius: 0;
    font-size: 1.125rem;
    font-family: 'Proza Libre', Georgia, 'Times New Roman', Times, serif;
    transition-timing-function: ease-in-out;
    transition-duration: .2s;
}

button:hover {
    color: var(--background-color);
    background-color: var(--text-color);
    border: 1px solid var(--background-color);
}

/* Override mobile Safari's default blue link color on buttons inside anchors */
#contact_top, #contact_bottom {
    color: #4B4B4B;
    -webkit-tap-highlight-color: transparent;
}

#contact_top:hover, #contact_bottom:hover {
    color: var(--background-color);
    background-color: var(--text-color);
    border: 1px solid var(--background-color);
}

button.outline {
    background: none;
    border: 1px solid var(--background-color);
    color: var(--background-color);
    width: auto;
    margin: 1rem auto;
    font-size: .9rem;
    display: block;
}

button.outline:hover {
    color: var(--text-color);
    background-color: var(--background-color);
}

button.outline.dark {
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

button.outline.dark:hover {
    color: var(--background-color);
    background-color: var(--text-color);
}

label {
    color: var(--background-color);
    font-size: 1.125rem;
    line-height: 1.5rem;
    margin-top: 10px;
}

.spacer {
    height: 200vh;
    /* background-color: red; */
    display: block;
    z-index: 1;
    position: relative;
}

#about-me {
    height: 140vh;
    z-index: 0;
    position: relative;
    background-color: var(--background-color);
    margin: 0px auto -7em;
    font-size: 1.25rem;
    line-height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(3px) scale(.65);
    color: var(--light-grey);
}

.section-content {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    margin: 0 auto;
    max-width: 940px;
    z-index: 1;
    transform-origin: 0;
    transform: translateZ(6px);
}

.section-content>* {
    grid-column: 2 / -2;
    max-width: calc(100vw - 40px);
}

.portfolio-item {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-blend-mode: darken;
}

.portfolio-item-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 20px 1fr 20px;
}

.portfolio-item-content>* {
    grid-column: 2 / -2;
    max-width: calc(100vw - 40px);
}

.item-uc {
    background: rgba(0, 0, 0, .3) url(img/poster-uc2.jpg);
    background-position: center;
    background-size: cover;
}

.item-faces {
    background: rgba(0, 0, 0, .3) url(img/poster-avon-anew.jpg);
    background-position: center;
    background-size: cover;
}

.item-run {
    background: rgba(0, 0, 0, .5) url(img/sap-run-video-stills-5.jpg);
    background-position: center;
    background-size: cover;
}

.item-voya {
    background: rgba(0, 0, 0, .5) url(img/poster-voya.jpg);
    background-position: center;
    background-size: cover;
}

.item-td {
    background: rgba(0, 0, 0, .5) url(img/poster-td.jpg);
    background-position: center;
    background-size: cover;
}

.item-nflst {
    background: rgba(0, 0, 0, .5) url(img/poster-nflst.jpg);
    background-position: center;
    background-size: cover;
}

.item-dailyburn {
    background: rgba(0, 0, 0, .5) url(img/poster-dailyburn2.jpg);
    background-position: center;
    background-size: cover;
}

.item-avon {
    background: rgba(0, 0, 0, .5) url(img/poster-avon.jpg);
    background-position: center;
    background-size: cover;
}

.item-sapstories {
    background: rgba(0, 0, 0, .5) url(img/poster_sap_stories.jpg);
    background-position: center;
    background-size: cover;
}

#featured,
#featured ~ a,
#nav2 {
    display: none !important;
}

#experience, #featured, #brands, #approach, #about {
    padding: 150px 0 50px;
    box-sizing: border-box;
}

#approach .section-item,
#experience + #job-list .job_item:first-child,
#brands + section .job_item,
#about .job_item {
    margin-top: 25px;
}

#experience, #brands, #about {
    transform-style: preserve-3d;
}

section.standard {
    padding: 50px 0 100px;
    box-sizing: border-box;
}

.section-item {
    max-width: 800px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: 20px 1fr 20px;
}

.section-item>* {
    grid-column: 2 / -2;
    max-width: calc(100vw - 40px);
}

#approach {
    background-color: var(--background-color);
    z-index: 2;
    transform-style: preserve-3d;
}

.job_item {
    max-width: 800px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: 20px 1fr 20px;
}

.job_item>* {
    grid-column: 2 / -2;
    max-width: calc(100vw - 40px);
}

.job_item li {
    margin-top: 1em;
}

.myDate {
    color: var(--light-grey);
}

/* Experience expand/collapse */

.job_item-expand-all {
    margin-top: 25px;
}

.job_item-expand-all .expand-all-btn {
    font-size: 0.8rem;
    padding: 0.5em 2em;
    margin-top: 0;
}

.experience-header {
    cursor: pointer;
}

.experience-date-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
}

.experience-chevron {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-color);
    padding: 0.25em;
    margin-top: 0;
    cursor: pointer;
    transition: transform 0.3s ease-out, color 0.2s;
}

.experience-chevron:hover {
    color: var(--light-grey);
}

.experience-chevron svg {
    display: block;
}

.experience-item.expanded .experience-chevron {
    transform: rotate(180deg);
}

.experience-details {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    list-style-type: disc;
    padding-left: 1.25em;
    transition: max-height 0.3s ease-out;
}

.experience-item.expanded .experience-details {
    max-height: 500px;
    margin-top: 0.75em;
}

/* brand grid!! */

.brand-grid {
    width: 100vw;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 25vw);
    margin-top: 0;
    padding: 0;
    background-color: white;
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 4em;
    z-index: -1;
}

@media (min-width:1200px) {
    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 16vw);
    }
}

@media (max-width:760px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 40vw);
    }
}

.brand-grid li {
    display: block;
    overflow: hidden;
    /*border: 1px solid #323232;*/
    /*height: 25vw;*/
    text-align: center;
}

.brand-grid img {
    height: auto;
    width: 50%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

footer {
    margin-top: 100px;
    background-color: var(--text-color);
    padding: 100px 0 200px;
    color: var(--background-color);
}

footer h2 {
    font-size: 20vw;
    line-height: 17vw;
    text-align: center;
    margin: 0;
}

footer button {
    margin: 50px auto;
    display: block;
}

.hamburger_holder {
    top: env(safe-area-inset-top, 0px);
    right: max(env(safe-area-inset-right, 0px), 15px);
    left: auto;
    padding: 5px 15px;
    clear: none;
    position: fixed;
    align-content: center;
    z-index: 99;
    display: inline-flex;
    margin: 0;
}

.hamburger_holder.scroll {
    background-color: var(--background-color);
}

.scroll .bar1, .scroll .bar2, .scroll .bar3 {
    background-color: var(--text-color);
}

.scroll.change .bar1, .scroll.change .bar2, .scroll.change .bar3 {
    background-color: var(--background-color);
}

.hamburger_holder.scroll.change {
    background-color: var(--text-color);
}

/*This is for the menu icon*/

.container {
    display: inline-block;
    cursor: pointer;
}

.bar1, .bar2, .bar3 {
    width: 30px;
    height: 1px;
    background-color: var(--background-color);
    margin: 10px 0;
    transition: 0.4s;
}

.change .bar1 {
    transform: rotate(-45deg) translate(-7px, 7px);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: rotate(45deg) translate(-7px, -7px);
}

ul.additional-elements, ul.stat_list {
    width: 100vw;
    list-style-type: none;
    margin: 50px 0 0;
    padding: 0;
}

ul.additional-elements li {
    height: 100vw;
    background-position: center;
    background-size: cover;
}

video#player {
    height: 100vw;
    width: 100vw;
    background-color: var(--text-color);
}

ul.stat_list {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
}

ul.stat_list>* {
    grid-column: 2 / -2;
    max-width: calc(100vw - 40px);
}

ul.stat_list li {
    display: block;
    /* height: 100vw; */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    border-bottom: 1px solid var(--text-color);
}

ul.stat_list li:last-child {
    border-bottom: none;
}

.holder {
    margin: 0;
    padding: 0;
}

.project_stat {
    font-family: var(--title-fonts);
    color: var(--light-grey);
    font-weight: 400;
    display: block;
    font-size: 20vw;
    line-height: 30vw;
}

.next-pi {
    padding-bottom: 0 !important;
}

.next-pi ul {
    margin: 50px 0 0;
    padding: 0;
    width: 100vw;
    list-style-type: none;
    display: flex;
    /* grid-template-columns: repeat(2, 1fr); */
}

.next-pi li {
    height: 30vh;
    width: 50vw;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-blend-mode: darken;
    display: block;
}

.next-pi li * {
    width: 40vw;
    position: relative;
    top: 50%;
    transform: perspective(1px) translateY(-50%);
    margin: 0 auto;
    color: var(--background-color);
    font-family: var(--title-fonts);
    font-size: 7vw;
    line-height: 1.125em;
}

img.full-width-img {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Media Queries */

@media (min-width: 700px) {
    body {
        perspective: 8px;
        transform-style: preserve-3d;
    }
    html {
        font-size: 18px;
    }
    #nav {
        grid-template-columns: 1fr auto auto auto auto auto auto auto;
        justify-items: start;
        visibility: visible;
        position: sticky;
        text-align: center;
        position: sticky;
        width: 100vw;
        height: auto;
        top: 0;
        left: 0;
        z-index: 99;
        transition: .5s ease-out;
        /* visibility: hidden; */
        background: rgb(245, 245, 245, 0);
    }
    nav>* {
        font-size: .8em;
        line-height: 1.25em;
        padding: 1.5em 30px;
        color: var(--background-color);
        fill: var(--background-color);
        position: relative;
    }
    .hamburger_holder {
        visibility: hidden;
    }
    nav a .nav-item::before {
        content: '';
        width: 0;
        position: absolute;
        left: 0;
        bottom: 1em;
        margin: 0 2em;
        border-bottom: 1px solid var(--background-color);
        box-sizing: border-box;
        -webkit-transition: all 0.3s ease-out;
        transition: all 0.3s ease-out;
    }
    nav a .nav-item:hover::before {
        width: calc(100% - 58px);
    }
    nav.scroll a .nav-item::before {
        border-bottom: 1px solid var(--text-color);
    }
    nav.scroll {
        background-color: var(--background-color) !important;
    }
    nav.scroll>* {
        color: var(--text-color);
    }
    nav.scroll svg {
        fill: var(--text-color);
    }
    .logo::before {
        font-family: var(--title-fonts);
        font-size: 1.5em;
        content: "Hi, I’m Patrick"
    }
    header {
        height: 110vh;
        width: 100vw;
        margin: -100px 0 -50px;
    }
    .header-bg::before {
        transform: scale(1);
    }
    .header-content {
        transform: translateZ(3px) scale(.5);
        bottom: 80vh;
        position: static;
        display: block;
    }
    header a {
        position: absolute;
        bottom: 30vh;
        top: auto;
    }
    header span {
        bottom: 20vh;
    }
    #about-me {
        height: 140vh;
        font-size: 1.5rem;
        line-height: 3rem;
        margin-bottom: -500px;
        transform: translateZ(3px) scale(.65);
    }
    h1, h2, h3 {
        width: 100%;
        font-size: 15vw;
        margin: 0;
        line-height: 1.05em;
        margin-bottom: -.125em;
    }
    h2 {
        transform: translateZ(2px) scale(.7);
        transform-style: preserve-3d;
    }
    h3 {
        font-size: 13vw;
        line-height: 1em;
        transform: translateZ(2px) scale(.7);
    }
    button {
        margin-top: 2.5rem;
        padding: 1em 4.5em;
        font-size: 1.125rem;
    }
    .job_item {
        margin: 100px auto 0;
    }
    .portfolio-item {
        height: 100vh;
        transform: translateZ(-4px) scale(1.);
    }
    .portfolio-item-content {
        max-width: 1200px;
    }
    label {
        transform: translateZ(1px) scale(.5);
        line-height: 1em;
        margin-top: -15px;
        font-size: 2rem;
    }
    .portfolio-item button {
        transform: translateZ(1.5px) scale(1);
    }
    footer h2 {
        font-size: 6vw;
        line-height: 1.05em;
    }
    footer button {
        margin: 50px auto;
        font-size: .9rem;
    }
    ul.additional-elements {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    ul.additional-elements li {
        height: 50vw;
        background-position: center;
        background-size: cover;
    }
    video#player {
        height: 80vh;
        width: 100vw;
        background-color: var(--text-color);
    }
    section.standard {
        padding: 150px 0 50px;
        box-sizing: border-box;
    }
    .section-item {
        font-size: 1.25em;
        line-height: 1.75em;
    }
    ul.stat_list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    ul.stat_list>* {
        grid-column: auto;
        max-width: 50vw;
        width: 50vw;
    }
    ul.stat_list li {
        border-bottom: none;
        border-right: 1px solid var(--text-color);
    }
    ul.stat_list li:last-child {
        border-right: none;
    }
    .project_stat {
        font-size: 13vw;
        line-height: 1.05em;
    }
    .next-pi ul {
        margin: 0;
    }
    .next-pi li {
        height: 50vh;
    }
    .next-pi li * {
        width: 30vw;
        font-size: 3vw;
        line-height: 1.125em;
    }
}