/* CSS Reset */
:root {
    --font-size: 5px;
    --black: 0, 0%, 5%;
    --white: 0, 0%, 60%;
    --pink: 325, 80%, 50%;
}

@font-face {
    font-family: 'GRAVHEZ';
    src: url('assets/GRAVHEZRegular.woff2') format('woff2'),
        url('assets/GRAVHEZRegular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 5px;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

body, input, button {
    font-family: 'Zalando Sans SemiExpanded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1;
    background-color: hsl(var(--black));
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

section {
    padding: 30rem 10rem;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

h1, header h2, nav a, h3 {
    font-family: 'GRAVHEZ', sans-serif;
    font-size: 10rem;
    color: hsl(var(--pink));
}

p, span:not(#header span, #bio span) {
    font-size: 2.5rem;
    color: hsl(var(--white));
    font-weight: 200;
}

strong {
    font-weight: 600;
    color: hsl(var(--pink));
}

em {
    font-style: italic;
    color: hsl(var(--pink));
}




/* nav */

header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    height: 15rem;
    width: 100%;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-inline: 10rem;
}

header h2, h3 {
    display: block;
    font-size: 3.5rem;
    text-transform: uppercase;
    color: hsl(var(--white)) !important;
    mix-blend-mode: difference;
    margin-top: 1rem;
}

header .nav-button {
    width: 3rem;
    aspect-ratio: 1/1;
    height: auto;
    background-color: hsl(var(--pink));
    border-radius: 50%;
    cursor: pointer;    
    transition: background-color 1s cubic-bezier(.35,0,0,1);
}

header.open .nav-button {
    background-color: hsl(var(--black));
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    gap: 5rem;
    transform: scale(0.9);
    transition: transform 1s cubic-bezier(.35,0,0,1);
}

nav a, .lang-switch {
    color: hsl(var(--black)) !important;
    font-size: 8rem;
    z-index: 99;    
    transition: transform .5s calc(var(--delay)*0.1s) cubic-bezier(.35,0,0,1), clip-path .5s calc(var(--delay)*0.1s) cubic-bezier(.35,0,0,1);
    transform: translateY(100%);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

nav.open {
    transform: scale(1);
    pointer-events: auto;
}

nav.open a, nav.open .lang-switch {
    transform: translateY(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: transform 1s calc(var(--delay)*0.2s) cubic-bezier(.35,0,0,1), clip-path 1s calc(var(--delay)*0.2s) cubic-bezier(.35,0,0,1);
}

nav .nav-bg {
    height: 110%;
    width: auto;
    aspect-ratio: 1/1;
    background-color: hsl(var(--pink));
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    will-change: transform;
    z-index: 98;
    transform-origin: center center;
    transition: transform 1s cubic-bezier(.35,0,0,1);
}

nav.open .nav-bg {
    transform: translate(-50%, -50%) scale(1);
}

.lang-switch input {
    display: none;
}

.lang-switch label {
    cursor: pointer;
    transition: color 1s cubic-bezier(.35,0,0,1);
}

.lang-switch input:checked + label {
    color: hsl(var(--white)) !important;
}




/* header */

#header {
    min-height: unset;
    height: 90vh;
    aspect-ratio: 1/1;
    width: auto;
    padding-inline: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

#header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.header-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6rem;
    width: 100vw;
}

.header-text p, .header-text strong {
    font-size: 2rem;
    text-transform: uppercase;
    color: hsl(var(--white)) !important;
}

#header h1 .char {    
    transition: transform .7s calc(var(--char-index)*0.05s) cubic-bezier(.35,0,0,1), clip-path .7s calc(var(--char-index)*0.05s) cubic-bezier(.35,0,0,1);
    transform: translateY(100%);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    will-change: transform, clip-path;
}

body.loaded #header h1 .char {
    transform: translateY(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}


/* sections */

h1:not(#header h1) {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
    opacity: 0.1;
    font-size: 20rem;
    width: calc(100% - 20rem);
    word-break: break-all;
}



/* bio */

#bio {
    margin-top: 100vh;
}

#bio p {
    line-height: 2.5;
    text-align: justify;
}

#bio .word {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    will-change: opacity, filter;
}



/* gallery */

#gallery {
    height: 100vh;
    margin-top: -30vh;
    overflow: hidden;
}

.gallery-circle {
    height: 75vh;
    width: auto;
    aspect-ratio: 1/1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    position: relative;
}

.gallery-background {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: hsl(var(--pink));
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    will-change: transform;
}

.gallery-circle img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    will-change: transform;
}

.gallery-circle img:nth-child(2) {
    width: 95%;
}

.gallery-circle img:nth-child(3) {
    width: 90%;
}

.gallery-circle img:nth-child(4) {
    width: 85%;
}

.gallery-circle img:nth-child(5) {
    width: 80%;
}

.gallery-circle img:nth-child(6) {
    width: 75%;
}



/* calendar + performances */

.calendar-grid, .performance-grid {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.calendar-event, .performance-item {
    width: 100%;
    display: grid;
    grid-template-columns: 20% auto;
    gap: 2rem;
    opacity: 0;
    filter: blur(10px);
    will-change: opacity, filter;
}

.calendar-event * {
    opacity: 1 ;
}

.calendar-event.past-event * {
    opacity: 0.6;
}

.calendar-event .event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.calendar-event .event-date span {
    font-weight: 600;
}

.calendar-event .event-year {
    font-weight: 200 !important;
}

.calendar-event .event-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.calendar-event .event-name {
    font-weight: 600;
}

.performance-item .performance-image, 
.performance-item .performance-title {
    align-self: center;
    font-weight: 600;
}

.performance-item .performance-image {
    width: 80%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    overflow: hidden;
}


/* gallery-2 */

#gallery-2 {
    height: 30vh;
    padding: 0;
    overflow: hidden;
}

.gallery-2-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0;
    width: 300vw;
    position: absolute;
    left: 0%;
    height: 100%;
    animation: gallery-scroll 20s linear infinite;
}

.gallery-2-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

@keyframes gallery-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}





/* contact */

#contact {
    height: 50vh;
    padding: 0;
    overflow: hidden;
}

.contact-wrapper {
    position: absolute;
    background-color: hsl(var(--pink));
    padding: 10rem;
    border-radius: 50% 50% 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    width: 200%;
    left: -50%;
    overflow: hidden;
    height: 100%;
}

small, small * {
    font-size: 1.5rem !important;
}

#contact p {
    text-align: center;
}

#contact * {
    color: hsl(var(--black)) !important;
}

#contact a {
    text-decoration: underline;
}

#contact .matin {
    font-family: 'GRAVHEZ', sans-serif;
}

#contact .credits {
    position: absolute;
    bottom: 5rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 1.5rem !important;
}

#contact .credits * {
    font-size: 1rem !important;
}



/* admin */

section#login {
    height: 100vh;
}

.admin-page h3 {
    text-align: left;
    width: 100%;
}

.admin-page button, #login button {
    background-color: hsl(var(--pink));
    color: hsl(var(--black));
    padding: 1rem 2rem;
    border-radius: 10rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 2.5rem;
}

.admin-page input, #login input {
    background-color: hsl(var(--black));
    color: hsl(var(--white));
    padding: 1rem 2rem;
    border-radius: 10rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 2rem;
    border: none;
    outline: none;
    border: 1px solid hsl(var(--pink));
    width: 100%;
    box-sizing: border-box;
    font-size: 2.5rem;
}

.admin-page .calendar-event, .admin-page .performance-item {
    opacity: 1;
    filter: blur(0px);
}

.admin-page section {
    padding: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

.admin-page section:first-of-type {
    padding-top: 20rem;
}

.admin-page section:last-of-type {
    padding-bottom: 20rem;
}

.admin-page .admin-form, .admin-page .admin-form div, #login {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.admin-page .admin-form div:has(button) {
    flex-direction: row;
}

.admin-page .admin-form button, #login button {
    width: 100%;
}








@media (min-width: 1024px) {

    html {
        font-size: 10px;
    }

    section {
        padding-inline: 20rem;
    }

    #header {
        width: 90vw;
        height: auto;
    }

    nav .nav-bg {
        width: 110vw;
        height: auto;
    }

    .calendar-grid, .performance-grid {
        grid-template-columns: 1fr 1fr;
    }

    #gallery-2 {
        height: 50vh;
    }

    .gallery-2-container {
        width: 200vw;
        animation-duration: 40s;
    }

}