:root{
    --bg-color: #FFFFFF;
    --bg-color-rgb: 255, 255, 255;
    --text-color: #000000;
    --text-color-rgb: 0, 0, 0;
    --divider-color-rgba: 0, 0, 0, 0.05;
    --border-color-rgb: 255, 255, 255;
    --light-gray-rgb: 245, 245, 245;
    --dark-gray-rgb: 185, 185, 185;
    --light-blue: #007ABC;
    --light-blue-rgb: 0, 122, 188;
    --dark-blue: #005DBB;
    --dark-blue-rgb: 0, 93, 187;
    --blue-gradient: linear-gradient(to right bottom, rgba(var(--light-blue-rgb), 1), rgba(var(--dark-blue-rgb), 1));
    --orange: #C45200;
    --pink: #CE126D;
    --orange-pink-gradient: linear-gradient(to right bottom, var(--orange), var(--pink));
}
:root[data-theme="light"]{
    --bg-color: #FFFFFF;
    --bg-color-rgb: 255, 255, 255;
    --text-color: #000000;
    --text-color-rgb: 0, 0, 0;
    --header-border-color-rgba: 255, 255, 255, 0.375;
    --divider-color-rgba: 0, 0, 0, 0.05;
    --border-color-rgb: 255, 255, 255;
    --light-gray-rgb: 245, 245, 245;
    --dark-gray-rgb: 185, 185, 185;
    --blue-gradient: linear-gradient(to right bottom, rgba(var(--light-blue-rgb), 1), rgba(var(--dark-blue-rgb), 1));
    --orange: #C45200;
    --orange-rgb: 196, 82, 0;
    --pink: #CE126D;
    --pink-rgb: 206, 18, 109;
    --orange-pink-gradient: linear-gradient(to right bottom, var(--orange), var(--pink));
}
:root[data-theme="dark"]{
    --bg-color: #000000;
    --bg-color-rgb: 0, 0, 0;
    --text-color: #FFFFFF;
    --text-color-rgb: 255, 255, 255;
    --header-border-color-rgba: 0, 0, 0, 0.125;
    --divider-color-rgba: 255, 255, 255, 0.15;
    --border-color-rgb: 85, 85, 105;
    --light-gray-rgb: 65, 65, 85;
    --dark-gray-rgb: 15, 15, 35;
    --orange: #DE7A32;
    --orange-rgb: 222, 122, 50;
    --pink: #E64995;
    --pink-rgb: 230, 73, 149;

    /* body{
        background-image: linear-gradient(to right bottom, #000000, #000000, #000000, #000000, #000000, #000000, #14090d, #1f1018, #2a1522, #3f203f, #4b2f64, #47448e, #005dbb);
    } */

    .avatar img{
        filter: brightness(90%);
    }

    #settings-icon, #hamburger-icon, .cross-icon, .card h3 img, .category img{
        filter: invert(1);
    }
}
@media (prefers-color-scheme: dark){
    :root:not([data-theme]){
        --bg-color: #000000;
        --bg-color-rgb: 0, 0, 0;
        --text-color: #FFFFFF;
        --text-color-rgb: 255, 255, 255;
        --divider-color-rgba: 255, 255, 255, 0.2;
        --border-color-rgb: 85, 85, 105;
        --light-gray-rgb: 65, 65, 85;
        --dark-gray-rgb: 15, 15, 35;
        --orange: #DE7A32;
        --pink: #E64995;

        .avatar img{
            filter: brightness(90%);
        }

        #settings-icon, #hamburger-icon, .cross-icon, h3 img, p.category img{
            filter: invert(1);
        }
    }
}

@font-face{
    font-family: 'Host Grotesk';
    src: url('/fonts/Host_Grotesk/HostGrotesk-VariableFont_wght.woff2') format('woff2');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}
@font-face{
    font-family: 'Host Grotesk';
    src: url('/fonts/Host_Grotesk/HostGrotesk-Italic-VariableFont_wght.woff2') format('woff2');
    font-weight: 300 800;
    font-style: italic;
    font-display: swap;
}

html{
    scroll-padding-top: calc(0.25rem + 73.6px);
}
body{
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Host Grotesk', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: color 0.3s ease, background-color 0.3s ease, background-image 0.3s ease;
}
body.loaded main,
body.loaded #links-menu,
body.loaded footer{
    opacity: 1;
}
body.loaded main.fade-out,
body.loaded #links-menu.fade-out,
body.loaded footer.fade-out{
    opacity: 0;
}
main{
    gap: 2rem;
    flex: 1;
}
.js main,
.js #links-menu,
.js footer{
    opacity: 0;
    transition: opacity 0.3s ease;
}
section, aside{
    padding: 0 1rem 0 1rem;
    gap: 1.25rem;
}
article, .split-pane{
    gap: 0.75rem;
}

.js .fade-in{
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.3s ease, transform 0.6s ease;
}
.js .fade-in.visible{
  opacity: 1;
  transform: translateY(0);
}

.split{
    flex-direction: column;
    gap: 1.25rem;
}

h1, .logo{
    font-size: 2rem;
    font-weight: 600;
}
h2, h3{
    font-weight: 500;
}
h2{
    font-size: 1.875rem;
}
h2::after, .project-page h1::after{
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin: 0.25rem 0 0 0;
    background-color: rgba(var(--divider-color-rgba));
}
p{
    font-size: 1.125rem;
}
p.highlight, span.highlight, h3.highlight{
    background: var(--orange-pink-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}
p.highlight{
    font-size: 1.5rem;
}
button{
    color: var(--text-color);
}
.bg-shine{
    box-shadow: 0 0.2rem 1000rem 0 rgba(var(--pink-rgb), 0.5);
}

header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: fit-content;
    padding: 0.75rem 1rem 0.75rem 1rem;
    background-color: rgba(var(--bg-color-rgb), 0.25);
    /* border-top: 2px solid rgba(255, 255, 255, 0.5); */
    border-bottom: 2px solid rgba(var(--header-border-color-rgba));
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    backdrop-filter: blur(0.75rem) saturate(150%);
    -webkit-backdrop-filter: blur(0.75rem) saturate(150%);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    contain: layout style;
    z-index: 1000;
}
header nav{
    justify-content: space-between;
    align-items: center;
}

#nav-btns{
    gap: 0.5rem;
}

.nav-btn{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10rem;
    background: rgba(var(--bg-color-rgb), 0.25);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    border: 2px solid rgba(var(--border-color-rgb), 0.5);
    box-shadow: 0 0.1rem 0.5rem 0 rgba(0, 0, 0, 0.075), inset 1px 1px 4px 1px rgba(var(--border-color-rgb), 0.5);
}
#hamburger-icon, #settings-icon{
    opacity: 0.75;
}
#menu-btn.open #hamburger-icon{
    opacity: 0;
}
#settings-btn.open #settings-icon{
    opacity: 0;
}
.cross-icon{
    opacity: 0;
}
#settings-btn.open .cross-icon, #menu-btn.open .cross-icon{
    opacity: 0.75;
}
#settings-icon, #hamburger-icon, .cross-icon{
    position: absolute;
    width: 60%;
    transition: opacity 0.3s ease;
}

#settings-menu, #links-menu{
    right: 1rem;
    pointer-events: none;
    position: fixed;
    text-align: center;
    top: calc(73.6px + 1rem);
    z-index: 100;
}
#settings-menu.open, #links-menu.open{
    pointer-events: auto;
    z-index: 1000;
}

#settings-menu ul, #links-menu ul{
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}
#settings-menu button, #links-menu ul li a{
    display: block;
    transform: scale(0);
    transform-origin: center;
    border-radius: 1.25rem;
    padding: 0.5rem;
    background: rgba(var(--bg-color-rgb), 0.625);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    border: 2px solid rgba(var(--border-color-rgb), 0.75);
    box-shadow: 0 0.1rem 0.5rem 0 rgba(0, 0, 0, 0.1), inset 1px 1px 4px 1px rgba(var(--border-color-rgb), 0.75);
    font-weight: 500;
    will-change: transform;
    transition: visibility 0.3s ease, transform 0.3s ease;
}
#settings-menu.open button, #links-menu.open ul li a{
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#blur-backdrop{
    position: fixed;
    inset: 0;
    backdrop-filter: blur(0.25rem);
    -webkit-backdrop-filter: blur(0.25rem);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}
#blur-backdrop.open{
    opacity: 1;
}
#blur-backdrop.open ~ main, #blur-backdrop.open ~ footer{
    pointer-events: none;
}

#start, #oversikt{
    padding: calc(73.6px + 0.75rem) 1rem 0 1rem;
}

/* .avatar, .icons, .card{
    transition: background-image 3s ease, border-color 3s ease;
} */

.avatar, #kontakt .image-grid .image-wrapper{
    background: linear-gradient(to right bottom, rgba(var(--light-gray-rgb), 0.25), rgba(var(--dark-gray-rgb), 0.25));
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    overflow: hidden;
    border: 2px solid rgba(var(--border-color-rgb), 0.25);
    box-shadow: 0.25rem 0.25rem 1rem 0.125rem rgba(0, 0, 0, 0.075), inset 2px 2px 8px 2px rgba(var(--border-color-rgb), 0.25);
}
.avatar{
    width: 100%;
    align-self: center;
    border-radius: 40%;
    margin: 0 0 -1.75rem 0;
    /* transform: rotate(5deg); */
    /* margin-inline: 1rem; */
}
.avatar img{
    width: 100%;
    height: 100%;
}

.icons{
    align-self: center;
    justify-content: space-between;
    width: calc(100% - 1rem - 1rem);
    opacity: 0.5;
}
.icons img{
    width: 5rem;
}
.icons img:first-of-type, .icons img:nth-of-type(3){
    margin: 0 0 4px 0;
}
.icons img.fade-in.visible:first-of-type{
    transform: rotate(5deg) translateY(0);
}
.icons img.fade-in.visible:nth-of-type(3){
    transform: rotate(-5deg);
}

/* #kontakt .images{
    align-items: center;
}
#kontakt .images img{
    border-radius: 20%;
}
#kontakt .images img:first-of-type{
    align-self: flex-end;
    flex: 2;
}
#kontakt .images img:nth-of-type(2){
    flex: 2.5;
}
#kontakt .images img:last-of-type{
    flex: 2;
    align-self: flex-start;
} */

.grid{
    display: grid;
    grid-auto-rows: auto;
    gap: 0.5rem;
    margin: 0.5rem 0;
}
.grid > .card{
    min-width: 0;
    min-height: 0;
}
.grid > .grid{
    min-width: 0;
    min-height: 0;
}

#services-grid{
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    align-items: start;
    margin: 0.75rem 0 0.5rem 0;
    gap: 0.75rem;
}
#services-grid > .card{
    padding: 1rem 2rem;
}
#services-grid .card .grid{
    min-width: 0;
    min-height: 0;
    margin: 0;
    gap: 0.75rem;
}
/* #start .grid > :nth-child(1){
    grid-column: 1 / span 2;
} */

.grid.tier{
    grid-template-columns: 1fr;
}
.grid.tier h4{
    font-size: 1.1rem;
    font-weight: 600;
}
.grid.tier .price{
    font-size: 1.1rem;
}

.grid.two{
    grid-template-columns: 1fr 1fr;
}
.grid.three{
    grid-template-columns: 1fr 1fr 1fr;
}
.grid.four{
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

#portfolio, #kontakt{
    flex-direction: column-reverse;
}
#portfolio .grid{
    grid-template-columns: 1fr 1fr;
}

.link-wrapper{
    display: block;
}

.card{
    justify-content: space-between;
    height: 100%;
    text-align: center;
    /* padding: 1rem; */
    /* gap: 0.75rem; */
    padding: 0.75rem;
    gap: 0.5rem;
    background: linear-gradient(to right bottom, rgba(var(--light-gray-rgb), 0.5), rgba(var(--dark-gray-rgb), 0.5));
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    border: 2px solid rgba(var(--border-color-rgb), 0.5);
    border-radius: 1.5rem;
    box-shadow: 0 0.2rem 1rem 0 rgba(0, 0, 0, 0.1);
    /* , inset 1px 1px 4px 1px rgba(var(--border-color-rgb), 0.5); */
    transition: height 0.3s ease, border-color 0.3s ease;
}
.card p, .card ul li, .credits{
    /* font-size: 0.875rem; */
    font-weight: 500;
    color: rgba(var(--text-color-rgb), 0.875)
}
.card p, .credits{
    font-size: 1rem;
}
.card h3 img, .card p img, .toggle img, #project-header .category img{
    display: inline-block;
    vertical-align: middle;
}
.card h3{
    font-size: 1.375rem;
    font-weight: 500;
}
.card h3 img{
    height: 1.5rem;
    padding: 0 0 4px 0;
}
.dropdown-icon{
    height: 1rem;
    padding: 0 0 3px 0;
}
.category{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--text-color);
}
.category span{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card .category{
    font-size: 0.8125rem;
}
.card .category img{
    height: 0.75rem;
    padding: 0 0 1px 0;
    opacity: 0.875;
}
.card .emphasis{
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--dark-blue);
}
.card .card{
    background: linear-gradient(to right bottom, rgba(var(--light-gray-rgb), 0.75), rgba(var(--dark-gray-rgb), 0.75));
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    border: 2px solid rgba(var(--border-color-rgb), 0.5);
    border-radius: 0.75rem;
    box-shadow: 0 0.1rem 0.5rem 0 rgb(0, 0, 0, 0.1);
}
.card.expandable{
    gap: 0;
}
.card.expandable > * + *{
    /* margin: 0.75rem 0 0 0; */
    margin: 0.75rem 0 0 0;
}
.card .additional-content{
    max-height: 0;
    opacity: 0;
    margin: 0;
    gap: 0.75rem;
    pointer-events: none;
    transition: max-height 0.6s ease, opacity 0.6s ease, margin 0.6s ease;
}
.card .additional-content > *{
    opacity: 0;
    transition: opacity 0.6s ease;
}
.card.open .additional-content{
    max-height: 1100px;
    opacity: 1;
    margin: 0.75rem 0 0 0;
    pointer-events: all;
    transition: max-height 0.6s ease, opacity 0.15s ease, margin 0.6s ease;
}
.card.open .additional-content > *{
    opacity: 1;
}
/* .card .toggle{
    max-height: 26.4px;
    opacity: 1;
    margin: 0.75rem 0 0 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
} */
.card .toggle img{
    transition: transform 0.3s ease, padding 0.3s ease;
}
.card.open .toggle img{
    transform: scaleY(-1);
    padding: 3px 0 0 0;
}
.card.highlight{
    background: var(--blue-gradient);
    /* background-clip: padding-box, border-box; */
    /* background-origin: padding-box, border-box; */
    border: 2px solid rgb(var(--light-blue-rgb));
    border-radius: 1.5rem;
    padding: 0.75rem 1.5rem;
}
.card.highlight p, #oversikt .card.highlight p{
    font-size: 1.125rem;
    color: #FFFFFF;
}
.card .card ul{
    gap: 0.5rem;
}
.dash-list li{
    position: relative;
    padding: 0 0 0 1.2em;
    text-align: left;
    font-size: 0.875rem;
}
.dash-list li::before{
    content: "- ";
    position: absolute;
    left: 0;
    padding: 0;
}

#kontakt{
    min-height: calc(100vh - 78px - 152px);
}
.split-pane{
    flex: 1;
}
#kontakt{
    height: max-content;
}
#kontakt .cta{
    gap: 0.75rem;
    margin: auto 0 0 0;
}
#kontakt .image-grid{
    align-self: center;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.75rem;
    /* padding-inline: 2rem; */
    margin: auto 0 0 0;
    width: 100%;
}
#kontakt .image-wrapper{
    display: none;
}
#kontakt .image-wrapper.large,
#kontakt .image-wrapper.icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 40%;
    overflow: hidden;
}
#kontakt .image-grid .image-wrapper img{
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}
#kontakt .image-wrapper.icon{
    display: flex;
    /* padding: 1.5rem 0 1.5rem 0; */
}
#kontakt .image-wrapper.icon img{
    height: 50%;
    opacity: 0.75;
}

/* #kontakt .image-wrapper.large{
    grid-column: span 2;
    grid-row: span 2;
} */
#kontakt .image-wrapper.large#arvid-profile{
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}
#kontakt .image-wrapper.large#arvidalforn-initial{
    grid-column: 3 / span 2;
    grid-row: 2 / span 2;
}
/* #kontakt .image-grid .image-wrapper:nth-of-type(even){
}
#kontakt .image-grid img:nth-of-type(odd){
}
#kontakt .image-grid img:nth-of-type(5){
} */
/* #icons-initial{
    grid-row: 1;
    grid-column: 2;
    transform: rotate(-5deg);
}
#arvid-magnus{
    grid-row: 2;
    grid-column: 1 / span 3;
    transform: rotate(-5deg);
}
#arvidalforn-initial{
    padding: 2rem 0 0 0;
    grid-row: 1;
    grid-column: 3 / span 3;
    transform: rotate(5deg);
}
#arvid-laptop{
    grid-row: 3 / span 2;
    grid-column: 4 / span 1;
}
#arvid-notes{
    grid-row: 5 / span 2;
    grid-column: 4 / span 2;
}
#aa-logo{
    grid-row: 2;
    grid-column: 4;
    transform: rotate(5deg);
} */
/* #graphic-design-draft img{
    transform: rotate(45deg);
} */
#kontakt .image-wrapper#arvidalforn-initial img, #kontakt .image-wrapper#arvid-profile img{
    align-self: flex-end;
    height: calc(100% - 1.5rem);
    /* padding: 1rem 0 0 0; */
}

/* #contact-info-grid{
    margin: 0;
} */

footer{
    align-items: center;
    padding: 3rem 1rem 2rem 1rem;
    /* gap: 1.25rem; */
}
footer .split-pane{
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
}
footer a{
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--light-blue);
}
footer a img{
    width: 1.2em;
    height: auto;
}

/* body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/golfgo-large.png') center / 100% no-repeat;
    opacity: 0.5;
    filter: blur(100px) saturate(200%);
    z-index: -1;
} */
#oversikt{
    align-items: center;
}
#project-header .category{
    font-size: 1.25rem;
    opacity: 0.875;
}
#project-header .category img{
    height: 1.25rem;
    margin: 0 1px 0 0;
}
/* #project-header .credits{
    margin: 0.5rem 0 0 0;
} */
.project-page .card h3{
    font-size: 1.17rem;
    font-weight: 600;
}
.project-image{
    width: 95%;
    align-items: center;
    justify-content: center;
}
.project-image img{
    width: 100%;
    height: 100%;
}
#project-grid{
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: max-content;
    align-items: start;
    margin: 0.5rem 0 0 0;
}
#project-grid > .card:nth-child(3){
    grid-column: 1 / -1;
}
#project-grid > .card{
    justify-content: flex-start;
    min-width: 0;
    min-height: 0;
}
/* .equalize{
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.5rem 0 0 0;
}
.equalize > .card{
    height: auto;
    flex: 1;
    justify-content: flex-start;
} */
/* #oversikt .card p{
    font-size: 0.875rem;
} */

#skills ul.grid{
    justify-content: center;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
}
#skills ul.grid li{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    background: linear-gradient(to right bottom, rgba(var(--light-gray-rgb), 0.25), rgba(var(--dark-gray-rgb), 0.25));
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    border: 2px solid rgba(var(--border-color-rgb), 0.25);
    border-radius: 1rem;
    box-shadow: 0 0.1rem 0.5rem 0 rgb(0, 0, 0, 0.1);
}

figure{
    align-self: center;
    align-items: center;
}
figure img{
    width: 100%;
    height: auto;
}
figcaption{
    text-align: center;
    font-size: 1rem;
    opacity: 0.75;
}
.split-pane figure:first-of-type figcaption{
    margin: 0 0 0.5rem 0;
}
.split-pane figure{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.image-grid{
    grid-template-columns: repeat(2, auto);
    align-items: center;
    justify-items: center;
    margin: 0;
    width: 100%;
    /* gap: 0.5rem; */
    /* box-shadow: 0 0.2rem 1rem 0 rgb(0, 0, 0, 0.1); */
    /* border: 2px solid rgba(255, 255, 255, 0.5); */
    /* background-clip: padding-box, border-box; */
    /* background-origin: padding-box, border-box; */
}
.image-grid.transparent{
    gap: 1.25rem;
}
figure img, .image-grid img, figure video{
    border-radius: 0.5rem;
}
.image-grid.transparent img, figure img.transparent, figure video:fullscreen, figure video:-webkit-full-screen{
    border-radius: 0;
}
figure video::-webkit-media-controls-volume-slider,
figure video::-webkit-media-controls-mute-button{
  display: none;
}

footer p, #disclaimer p{
    font-size: 1rem;
    opacity: 0.75;
}

@media only screen and (pointer: fine) and (hover: hover){
    .card.expandable .toggle:hover{
        cursor: pointer;
    }

    .logo, .card, .toggle, .card.highlight p, footer a{
        will-change: transform;
        transition: transform 0.3s ease;
    }
    #menu-btn img, #settings-btn img{
        will-change: transform;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    #portfolio .card, .card.highlight{
        transition: border-color 0.3s ease, transform 0.3s ease;
    }
    #menu-btn:hover img,
    #links-menu.open ul li a:hover,
    #settings-btn:hover img,
    #settings-menu.open button:hover,
    .toggle:hover,
    .card.highlight:hover p{
        transform: scale(1.05);
    }
    #settings-menu button:hover img{
        transform: scale(0);
    }

    #portfolio .card:hover{
        transform: scale(1.025);
    }
    #kontakt .image-grid .image-wrapper{
        will-change: transform;
    }
    #kontakt .image-grid .image-wrapper:hover{
        transform: scale(1.05) rotate(5deg);
    }
    .logo,
    footer a,
    #project-header .category{
        will-change: letter-spacing, font-weight;
        transition: letter-spacing 0.3s ease, font-weight 0.3s ease;
    }
    .logo:hover,
    footer a:hover,
    #project-header .category:hover{
        font-weight: 700;
        /* letter-spacing: 0.5px; */
    }

    @media screen and (min-width: 1000px){
        #links-menu ul li a{
            will-change: letter-spacing, font-weight;
            transition: letter-spacing 0.3s ease, font-weight 0.3s ease;        
        }

        #links-menu ul li a:hover{
            font-weight: 700;
        }
    }
}

@media screen and (min-width: 500px){
    section, aside{
        padding: 0 10vw;
    }
    header{
        padding: 0.75rem 10vw;
    }
    footer{
        padding: 3rem 10vw 2rem 10vw;
    }
    #settings-menu, #links-menu{
        right: 10vw;
    }
    #start, #oversikt{
        padding: calc(73.6px + 0.75rem) 10vw 0;
    }

    p.highlight{
        font-size: 1.75rem;
    }

    .icons img{
        width: 7rem;
    }
    #kontakt .cta{
        text-align: center;
    }
    #contact-info-grid{
        align-self: center;
        width: max-content;
    }

    #skills ul.grid{
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 700px){
    .avatar, .icons, #kontakt .image-grid{
        width: 80%;
    }

    #portfolio .grid{
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    #contact-info-grid{
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width: 1000px){
    .logo,
    #links-menu ul li a{
        will-change: letter-spacing, font-weight;
        transition: letter-spacing 0.3s ease, font-weight 0.3s ease, opacity 0.3s ease;
    }
    .logo.active,
    #links-menu ul li a.active{
        font-weight: 700;
        /* letter-spacing: 0.5px; */
    }

    section, aside{
        padding: 0 5vw;
    }
    header{
        padding: 0.75rem 5vw;
    }
    footer{
        padding: 3rem 5vw 2rem 5vw;
    }
    header nav{
        gap: 2.5rem;
    }
    #start, #oversikt{
        padding: calc(73.6px + 0.75rem) 5vw 0;
    }
    #portfolio, #kontakt{
        flex-direction: row;
    }
    #kontakt{
        /* min-height: calc(100vh - 77px - 104px); */
        min-height: 0;
    }
    /* #kontakt .split-pane:first-of-type{
        align-items: flex-start;
    } */
    .split{
        flex-direction: row;
        align-items: stretch;
        gap: 4rem;
    }
    .split-pane{
        flex: auto;
    }
    /* .split-pane{
        justify-content: center;
    } */
    .split-pane:first-child,
    .split.single-right-pane::before,
    .split.single-left-pane::after,
    .project-page .split-pane:last-child{
        width: 40%;
        min-width: 0;
    }
    /* .split.single-right-pane::before,
    .split.single-left-pane::after{
        content: "";
        display: flex;
    } */
    .split-pane:last-child, .project-page .split-pane:first-child{
        width: 60%;
        min-width: 0;
    }
    /* .split.single-left-pane{
        justify-content: flex-start;
    }
    .split.single-right-pane{
        justify-content: flex-end;
    } */
    .split.single-right-pane > .split-pane, .split.single-left-pane > .split-pane{
        width: 60%;
        margin: 0;
    }
    .split.single-right-pane::before, .split.single-left-pane::after{
        content: "";
    }
    .project-page .split-pane{
        align-self: center;
    }
    footer .split-pane{
        flex-direction: row-reverse;
        justify-content: flex-end;
        gap: 2rem;
    }
    .project-page footer .split-pane{
        flex-direction: row;
    }
    /* #oversikt .split-pane:first-child, #oversikt .split-pane:last-child{
        width: 50%;
    } */
    #menu-btn{
        display: none;
    }
    #links-menu{
        position: static;
        margin: 0 0 0 auto;
        pointer-events: auto;
    }
    #settings-menu{
        right: 5vw;
    }
    #links-menu ul{
        flex-direction: row;
        gap: 2rem;
    }
    #links-menu ul li a{
        transform: scale(1);
        font-size: 1.25rem;
        font-weight: 400;
        border-radius: 0;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
        /* transition: color 0.3s ease; */
    }
    /* #links-menu ul li a:hover{
        transform: none;
        color: var(--dark-blue);
    } */

    .project-page section figure:first-of-type{
        margin: calc(50px + 0.75rem) 0 auto 0;
    }

    .avatar, .icons, #kontakt .image-grid{
        width: auto;
    }
    .avatar{
        align-self: flex-start;
    }

    .grid{
        gap: 0.75rem;
    }
    #services-grid{
        gap: 1rem;
    }

    /* .card p{
        font-size: 1rem;
    } */
    /* .card h3{
        font-size: 1.25rem;
    } */
    /* .card h3 img{
        height: 1.4rem;
        padding: 0 0 4px 0;
    } */

    #services-grid .card .card{
        justify-content: flex-start;
    }
    #services-grid .card .card .price{
        margin-top: auto;
    }
    #services-grid a{
        align-self: center;
    }

    #portfolio .icons, #kontakt .image-grid{
        /* padding-inline: 2rem; */
        margin: calc(50px + 0.75rem) 0 auto 0;
    }

    .icons{
        flex-direction: column;
        justify-content: flex-start;
        gap: 2rem;
        width: auto;
    }
    .icons img{
        width: 7rem;
    }
    .icons img:first-of-type, .icons img:nth-of-type(3){
        align-self: flex-start;
        margin: 0 0 0 2rem;
    }
    .icons img.fade-in.visible:first-of-type,
    .icons img.fade-in.visible:last-of-type{
        transform: rotate(-5deg);
    }
    .icons img:nth-of-type(2){
        align-self: flex-end;
        margin: 0 2rem 0 0;
    }
    .icons img.fade-in.visible:nth-of-type(2){
        transform: rotate(5deg);
    }

    #kontakt .image-wrapper{
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 1 / 1;
        gap: 1.5rem;
        border-radius: 40%;
        overflow: hidden;
    }
    #kontakt .image-wrapper.icon{
        width: 80%;
    }
    #kontakt .image-wrapper.large#arvid-profile{
        grid-column: 3 / span 2;
        grid-row: 1 / span 2;
    }
    #kontakt .image-wrapper.large#arvidalforn-initial{
        grid-column: 1 / span 2;
        grid-row: 3 / span 2;
    }
    #contact-info-grid{
        align-self: flex-start;
        grid-template-columns: repeat(1, max-content);
        margin: 0.5rem 0 calc(36px + 0.5rem) 0;
    }
    #kontakt .image-wrapper.icon img{
        height: calc(100% - 2.5rem);
    }
    #kontakt .image-wrapper#sketch-and-prototype img{
        width: calc(100% - 1.5rem);
    }
    #kontakt .image-wrapper#workspace img{
        width: calc(100% - 0.75rem);
        align-self: flex-start;
    }
    #kontakt .cta{
        text-align: left;
        margin: auto 0;
    }

    /* .grid.tier > .card:nth-child(3){
        grid-column: 1 / span 2;
    } */

    #oversikt{
        flex-direction: row-reverse;
    }
    #project-details{
        align-self: flex-start;
    }
    #project-grid{
        grid-template-columns: 1fr min-content;
    }
    #project-grid > .card:nth-child(1),
    #project-grid > .card:nth-child(2){
        grid-column: 1;
    }
    #project-grid > .card:nth-child(3) {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
    #skills ul.grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    /* .project-image{
        margin-top: calc(84.4px + 0.75rem);
    } */
}

@media screen and (min-width: 1200px){
    #services-grid .card .grid{
        grid-template-columns: 1fr 1fr;
    }

    #contact-info-grid{
        grid-template-columns: repeat(2, max-content);
    }
}

@media screen and (min-width: 1420px){
    section, aside{
        padding: 0 10vw;
    }
    header{
        padding: 0.75rem 10vw;
    }
    footer{
        padding: 3rem 10vw 2rem 10vw;
    }
    #start, #oversikt{
        padding: calc(73.6px + 0.75rem) 10vw 0;
    }

    #settings-menu{
        right: 10vw;
    }
}

@media screen and (min-width: 1500px){
    #portfolio .grid{
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    /* #project-grid > .card:nth-child(1),
    #project-grid > .card:nth-child(2){
        grid-column: 1;
    }
    #project-grid > .card:nth-child(3) {
        grid-column: 2;
        grid-row: 1 / span 2;
    } */
}

@media screen and (min-width: 1800px){
    #portfolio .grid{
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
    #project-grid{
        grid-template-columns: 1fr 1fr;
    }
}

/* @media (prefers-color-scheme: dark) {
    :root:not([data-theme]){

    }

    body{
        background-color: #000000;
        color: #FFFFFF;
    }
    h2::after{
        background-color: rgba(255, 255, 255, 0.1);
    }
    header{
        background: rgba(0, 0, 0, 0.25);
        border-color: rgba(255, 255, 255, 0.15);
    }
    .nav-btn img{
        filter: invert();
    }

    .avatar, .card{
        background: linear-gradient(to right bottom, rgba(250, 250, 250, 0.25), rgba(180, 180, 180, 0.25));
        border-color: rgba(255, 255, 255, 0.15);
    }

    .card .card{
        background: linear-gradient(to right bottom, rgba(230, 230, 230, 0.375), rgba(180, 180, 180, 0.375));
        border-color: rgba(255, 255, 255, 0.075);
    }
} */