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

* {
    margin: 0;
}

/*----- REMOVE BLUE HIGHLIGHT ON TOUCH -----*/
*:hover,
*:focus,
*:focus-visible,
*:active {
    -webkit-tap-highlight-color: transparent;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

:root {
    /* ui colors */
    --ui-0: #ececef;
    --ui-1: #dedee3;
    --ui-2: #d0d0d7;
    --ui-3: #c2c2cb;
    --ui-4: #b5b5c0;
    --ui-5: #a7a7b4;
    --ui-6: #9999a8;
    --ui-7: #8b8b9c;
    --ui-8: #7e7e91;
    --ui-9: #717184;
    --ui-10: #656576;
    --ui-11: #595969;
    --ui-12: #4d4d5b;
    --ui-13: #42424d;
    --ui-14: #36363f;
    --ui-15: #2a2a32;
    --ui-16: #1e1e24;
    --ui-17: #131316;
    --ui-18: #060607;
    --ui-19: #070708;
}

::selection {
    color: #111213;
    background-color:hsla(103,100%,85%,1);
}

@font-face {
    font-family: Unbounded;
    font-weight: 500;
    src: url("../fonts/Unbounded-Medium.woff") format("woff");
}
@font-face {
    font-family: Unbounded;
    font-weight: 600;
    src: url("../fonts/Unbounded-SemiBold.woff") format("woff");
}
@font-face {
    font-family: Unbounded;
    font-weight: 700;
    src: url("../fonts/Unbounded-Bold.woff") format("woff");
}

@font-face {
    font-family: Mulish;
    font-weight: 400;
    src: url("../fonts/Mulish-Regular.woff") format("woff");
}
@font-face {
    font-family: Mulish;
    font-weight: 600;
    src: url("../fonts/Mulish-SemiBold.woff") format("woff");
}
@font-face {
    font-family: Mulish;
    font-weight: 700;
    src: url("../fonts/Mulish-Bold.woff") format("woff");
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Mulish', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;

    background-color:hsla(210,5%,7%,1);
    background-image:
    radial-gradient(at 12% 18%, hsla(210,5%,7%,1) 0px, transparent 50%),
    radial-gradient(at 78% 10%, hsla(210,5%,7%,1) 0px, transparent 50%),
    radial-gradient(at 46% 0%, hsla(216,5%,19%,1) 0px, transparent 50%),
    radial-gradient(at 39% 100%, hsla(210,5%,7%,1) 0px, transparent 50%),
    radial-gradient(at 59% 65%, hsla(210,5%,7%,1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(216,5%,19%,1) 0px, transparent 50%),
    radial-gradient(at 31% 79%, hsla(216,5%,19%,1) 0px, transparent 50%);

    background-image: url("../media/img/bw-gradient.jpg");
    background-size: cover;
    background-position: bottom;
    background-attachment: fixed;

    background-color: #111213;

    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

h1,h2,h3,h4 {
    font-family: 'Unbounded', sans-serif;
    margin-bottom: 0.5em;
    line-height: 1.25em;
    color: var(--ui-2);
}
  
h1 {
    font-size: 2.625rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.375rem;
}

h4 {
    font-size: 1.125rem;
}

p {
    color: var(--ui-5);
}

p:not(:last-child) {
    margin-bottom: 1.5em;
}

a {
    font-weight: 600;
    color: hsla(103,100%,85%,1);
    text-decoration: none;
}

a:focus-visible {
    outline: 1px solid var(--ui-0);
    border-radius: 0.125rem;
}

.link {
    transition: 150ms;
}

.link:hover {
    color: hsla(103,100%,75%,1);
}

.link-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1em;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: 150ms;
}

.link-button svg {
    width: 24px;
}

.link-button.outline {
    color: var(--ui-5);
    border: solid 1px var(--ui-5);
    background-color: none;
}

.link-button.outline:hover {
    color: var(--ui-17);
    border: solid 1px var(--ui-2);
    background-color: var(--ui-2);
}

.link-button.outline:focus-visible {
    color: var(--ui-17);
    border: solid 1px var(--ui-2);
    background-color: var(--ui-2);
}

button {
    padding: 0.75rem;
    font-family: 'Mulish', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    line-height: 1rem;
    color: var(--ui-18);
    text-decoration: none;
    border: solid 1px var(--ui-2);
    border-radius: 0.375rem;
    background-color: var(--ui-2);
    transition: 150ms;
}

button:hover {
    cursor: pointer;
    border: solid 1px var(--ui-4);
    background-color: var(--ui-4);
}

button:focus-visible {
    outline: transparent;
    border: solid 1px var(--ui-0);
}

.visually-hidden {
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

/*----- FORMS -----*/

input[type="button"] {
    padding: 0.75rem;
    font-family: 'Mulish', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    line-height: 1rem;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: 150ms;
}

input[type="button"]:hover {
    cursor: pointer;
}

input[type="button"]:focus-visible {
    outline: transparent;
    border: solid 1px var(--ui-0);
}


.outline-button {
    color: var(--ui-0);
    border: solid 1px var(--ui-15);
    background-color: var(--ui-18);
}

.outline-button:hover {
    color: var(--ui-0);
    border: solid 1px var(--ui-15);
    background-color: var(--ui-15);  
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-inline: auto;
    width: 100%;
    max-width: 1200px;
    min-height: 100%;
    height: auto;
}

#left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    padding: 3rem 1.25rem;
    top: 0;
    width: 100%;
    height: 100vh;
}

#logo {
    align-self: flex-start;
    width: 4.0625rem;
    height: auto;
    fill: #35383b;
}

#home-page-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    height: 100%;

    /* https://csshero.org/mesher/ */
    background-color:hsla(103,100%,85%,1);
    background-image:
    radial-gradient(at 37% 65%, hsla(213,72%,63%,1) 0px, transparent 50%),
    radial-gradient(at 63% 54%, hsla(328,62%,47%,1) 0px, transparent 50%),
    radial-gradient(at 2% 100%, hsla(69,71%,48%,1) 0px, transparent 50%),
    radial-gradient(at 68% 0%, hsla(322,82%,39%,1) 0px, transparent 50%),
    radial-gradient(at 41% 20%, hsla(240,100%,70%,0.7) 0px, transparent 50%),
    radial-gradient(at 100% 66%, hsla(51,59%,53%,1) 0px, transparent 50%),
    radial-gradient(at 12% 0%, hsla(193,76%,54%,1) 0px, transparent 50%),
    radial-gradient(at 100% 42%, hsla(13,81%,53%,1) 0px, transparent 50%),
    radial-gradient(at 71% 100%, hsla(240,100%,70%,0.7) 0px, transparent 50%);

    /* background image */
    background-image: url("../media/img/color-gradient.jpg");
    background-size: contain;
    /* background-position: bottom right; */
    background-position: top left;

    /* clip text */
    background-clip: text;
    -webkit-background-clip: text;
    -moz-background-clip: text;

}

.nav-link {
    font-family: 'Unbounded', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #7D858C;
    transition: 150ms;
}

.nav-link:hover {
    color: transparent;
}

.nav-link.active {
    color: transparent;
}

#right {
    padding: 3rem 1.25rem;
}

.content {
    display: none;
}

.content.active {
    display: flex;
}

#projects {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 0rem 0rem;
}

#about {
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    margin-inline: auto;
    padding: 0rem 0rem;
    width: 100%;
    max-width: 600px;
    height: 100%;
}

#headshot {
    width: 8rem;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 5rem;
}

.project-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    color: white;
}

.project-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-name {
    margin: 0;
    font-weight: 500;
    line-height: 1em;
    color: #CED1D4;
    transition: 150ms;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    text-align: center;
    text-transform: uppercase;
    border-radius: 3rem;
}

.project-tag.multimedia,
.project-container.multimedia .project-tag,
.project-info.multimedia .project-tag {
    color: hsl(290,100%,80%);
    background-color: hsla(290,100%,50%,0.5);
}

.project-container.multimedia:hover .project-name {
    color: hsl(290,100%,80%);
}

.project-container.multimedia:hover .project-preview {
    outline: solid 1px hsla(290,100%,50%,0.5);
    box-shadow: 0 0 25px 7px hsla(290,100%,50%,0.3);
}

.project-tag.logo,
.project-container.logo .project-tag,
.project-info.logo .project-tag {
    color: hsl(200,100%,80%);
    background-color: hsla(200,100%,50%,0.5);
}

.project-container.logo:hover .project-name {
    color: hsl(200,100%,80%);
}

.project-container.logo:hover .project-preview {
    outline: solid 1px hsla(200,100%,50%,0.5);
    box-shadow: 0 0 25px 7px hsla(200,100%,50%,0.3);
}

.project-tag.website,
.project-container.website .project-tag,
.project-info.website .project-tag {
    color: hsl(85,100%,80%);
    background-color: hsla(85,100%,50%,0.5);
}

.project-container.website:hover .project-name {
    color: hsl(85,100%,80%);
}

.project-container.website:hover .project-preview {
    outline: solid 1px hsla(85,100%,50%,0.5);
    box-shadow: 0 0 25px 7px hsla(85,100%,50%,0.3);
}

.project-preview {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 0.75rem;
    background-color: #111213;
    transition: 150ms;
    outline: solid 1px transparent;
}



/*---------- PROJECT PAGE ----------*/
#project-page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-inline: auto;
    padding: 0rem 0rem;
    width: 100%;
    max-width: 900px;
    min-height: 100%;
}

#sub-page-header {
    position: relative;
    margin-bottom: 2.5rem;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 0.75rem;
    background-color: #111213;
}

#sub-page-header .back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0.75rem;
    padding: 0rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 2.5rem;
    background-color: rgba(17,18,19,0.6);
    transition: 150ms;
}

#sub-page-header .back-link:hover {
    background-color: rgba(17,18,19,0.8);
}

#sub-page-header .back-link .back-arrow {
    width: 21px;
    stroke: var(--ui-2);
    transition: 150ms;
}

#sub-page-header.multimedia .back-link:hover .back-arrow {
    stroke: hsl(290,100%,70%);
}

#sub-page-header.logo .back-link:hover .back-arrow {
    stroke: hsl(200,100%,70%);
}

#sub-page-header.website .back-link:hover .back-arrow {
    stroke: hsl(85,100%,70%);
}

.header-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 0.75rem;
    background-color: #111213;
}

#project-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0rem 0rem;
    width: 100%;
}

.project-page-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

#project-page-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 5rem;
    padding: 0rem 1.25rem;
}


#sub-page-nav {
    width: auto;
    padding: 1rem 0.75rem;
}

#sub-page-nav .back-arrow {
    width: 21px;
    stroke: var(--ui-2);
}

#project-page h1 {
    margin: 0;
    padding: 0rem 0rem;
    font-size: 3rem;
    line-height: 1em;
    text-transform: uppercase;
}

.project-row {
    display: grid;
    gap: 2rem;
    padding: 0rem 0rem;
    width: 100%;
}

.project-row h3 {
    text-transform: uppercase;
}

.grid-15 {
    grid-template-columns: repeat(auto-fit, minmax(18rem,1fr));
}

.image-grid-15 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem,1fr));
    gap: 3rem;}

.image-grid-15 > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mw-13 { max-width: 13rem; }
.mw-15 { max-width: 15rem; }
.mw-17 { max-width: 17rem; }

.project-page-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 0.75rem;
    background-color: #111213;
}

.project-page-image:not(:last-child) {
    margin-bottom: 1.25em;
}

/* .polynoia-audio {
    background: var(--ui-2);
} */





#page-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    width: 100%;
    max-width: 1200px;
    height: auto;
    text-align: center;
    text-transform: uppercase;
}

#page-not-found h2 {
    margin: 0rem;
    font-size: 7rem;
    
}

.gradient-text {
    color: transparent;
    /* https://csshero.org/mesher/ */
    background-color:hsla(103,100%,85%,1);
    background-image:
    radial-gradient(at 37% 65%, hsla(213,72%,63%,1) 0px, transparent 50%),
    radial-gradient(at 63% 54%, hsla(328,62%,47%,1) 0px, transparent 50%),
    radial-gradient(at 2% 100%, hsla(69,71%,48%,1) 0px, transparent 50%),
    radial-gradient(at 68% 0%, hsla(322,82%,39%,1) 0px, transparent 50%),
    radial-gradient(at 41% 20%, hsla(240,100%,70%,0.7) 0px, transparent 50%),
    radial-gradient(at 100% 66%, hsla(51,59%,53%,1) 0px, transparent 50%),
    radial-gradient(at 12% 0%, hsla(193,76%,54%,1) 0px, transparent 50%),
    radial-gradient(at 100% 42%, hsla(13,81%,53%,1) 0px, transparent 50%),
    radial-gradient(at 71% 100%, hsla(240,100%,70%,0.7) 0px, transparent 50%);

    /* background image */
    background-image: url("../media/img/color-gradient.jpg");
    background-size: cover;
    background-position: bottom left;

    /* clip text */
    background-clip: text;
    -webkit-background-clip: text;
    -moz-background-clip: text;
}




@media screen and (max-width: 900px) {

    body {
        overflow-x: auto;
    }

    main {
        grid-template-columns: 1fr;
        overflow-x: hidden;
    }

    #left {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        padding: 2rem 1.25rem;
        width: 100%;
        height: auto;
    }

    #logo {
        align-self: center;
    }

    #home-page-nav {
        display: block;
        position: fixed;
        bottom: 0;
        margin-inline: auto;
        margin-bottom: 0.75rem;
        padding: 0.75rem 1.5rem;
        width: auto;
        height: auto;
        color: white;
        border-radius: 0.375rem;

        background-image: none;
        background-size: cover;
        background-position: bottom right;
        background-clip: unset;
        -webkit-background-clip: unset;
        -moz-background-clip: unset;

        background-color: rgba(255,255,255,0.6);

        backdrop-filter: blur(6px);
        z-index: 10;
    }
    
    .nav-link {
        font-family: 'Unbounded', sans-serif;
        font-size: 0.75rem;
        font-weight: 700;
        color: #35383b;
        transition: 150ms;
    }

    .nav-link:not(:last-child) {
        margin-right: 1.25rem;
    }

    .nav-link:hover {
        color: #1f2123;
    }

    .nav-link.active {
        color: #1f2123;
        text-decoration: underline;
    }

    #right {
        margin-bottom: 5rem;
        padding: 0rem 1.25rem;
    }

    #projects {
        gap: 2rem;
        padding: 0rem 0rem;
    }

    .project-container h3 {
        font-size: 1.125rem;
    }

    #about {
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 0rem 0rem;
        height: auto;
    }


    /*---------- PROJECT PAGE ----------*/

    #sub-page-header {
        border-radius: 0rem;
    }
    
    .header-image {
        border-radius: 0rem;
    }

    #project-header {
        gap: 1rem;
    }

    .project-page-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
    }
    
    #project-page-body {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    #sub-page-nav {
        padding: 0.75rem 0.75rem;
    }
    
    #sub-page-nav .back-arrow {
        width: 21px;
        stroke: var(--ui-2);
    }
    
    #project-page h1 {
        margin: 0;
        padding: 0rem 0rem;
        font-size: 2.375rem;
        line-height: 1.2em;
    }

}