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

:root {
    --side-margin: 5vw;
    --font-head: "Cinzel", Arial, Helvetica, sans-serif;
    --font-text: "Raleway", Arial, Helvetica, sans-serif;
    --color-purple-light: #eaccff;
    --color-purple-dark: #cbace2;
}

@media screen and (min-width: 1500px) {
    :root {
        --side-margin: 12vw;
    }
}

body {
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    background: var(--color-purple-light);
    font-family: var(--font-text);
    font-weight: 400;
    font-style: normal;
}

.hero-intro {
    padding: 2rem var(--side-margin) 15rem;
    background: var(--color-purple-dark);
    mask-image: url('img/warp-overlay.webp');
    -webkit-mask-image: url('img/warp-overlay.webp');
    overflow: hidden;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: bottom;
    mask-position: bottom;
    -webkit-mask-size: cover;
    mask-size: cover;
    margin-bottom: -10rem;
    position: relative;
}

@media screen and (min-width: 1500px) {
    .hero-intro {
        padding: 2rem var(--side-margin) 20rem;
    }
}

.hero-intro h1 {
    margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    font-style: normal;
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 28px;
}

main > section:nth-of-type(odd):not(:first-of-type) {
    position: relative;
    background: var(--color-purple-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 836px;
    mask-image: url('img/warp-overlay-mid.webp');
    -webkit-mask-image: url('img/warp-overlay-mid.webp');
    overflow: hidden;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: cover;
    mask-size: cover;
    margin: -8rem -1px;
}

@media screen and (min-width: 1545px) {
    main > section:nth-of-type(odd):not(:first-of-type) {
        height: 54vw;
    }
}

main > section:nth-of-type(even):not(:first-of-type) {
    position: relative;
    z-index: 4;
}

/* ============ HEADER ============ */

header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: black;
    background-size: cover;
    padding: .75rem var(--side-margin) .75rem;
    height: 62px;
    position: sticky;
    top: 0;
    z-index: 5;
    gap: 1rem;
}

.homepage header {
    background-image: linear-gradient(to bottom, rgba(0,0,0,.8), rgba(0, 0, 0, 0));
}

header a {
    color: white;
}

header .header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 76px;
    width: 178px;
    transition: padding .1s ease-out;
}

.homepage header .header-logo {
    padding-left: 0;
}

header .header-logo span {
    font-family: var(--font-head);
    font-weight: 400;
    line-height: 1.2rem;
}

header .header-logo img {
    height: 50px;
    width: 60px;
    object-fit: cover;
    object-position: top;
    position: absolute;
    top: 11px;
    left: var(--side-margin);
    transition: height .1s ease-out, width .1s ease-out, top .1s ease-out;
}

.home .header-logo img {
    height: 365px;
    width: 248px;
    top: 14vh;
}

header a:not(:hover) {
    text-decoration: none;
}

header ul {
    list-style: none;
    display: flex;
    margin: 0 0 0 auto;
    padding: 0;
    font-family: var(--font-head);
    font-weight: 400;
}

header ul li a {
    padding: .5rem .75rem;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: -1.5px;

}

header .menu-top {
    display: none;
}

header .socials {
    margin: 0 0 0 auto;
}

header .socials img {
    height: 1.5rem;
    margin: 0 .5rem;
}

header button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

header button img {
    height: 1.5rem;
}

@media screen and (max-width: 992px) {
    header {
        width: calc(100% + 2px);
    }

    .home header .header-logo img {
        top: 8vh;
        height: 250px;
        width: 200px;
    }

    header ul {
        background: var(--color-purple-light);
        padding: 1rem;
        display: block;
        position: fixed;
        width: 100vw;
        height: 100vh;
        top: 0;
        right: -100vw;
        transition: right .2s ease;
    }

    header ul.expanded {
        right: 0;
    }

    header ul li a {
        color: black;
        font-size: 18px;
        padding: 1rem;
        font-weight: 700;
    }

    header .menu-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: black;
        padding: 1rem;
        width: calc(100% + 2rem);
        margin: -1rem -1rem 1rem -1rem;
        color: white;
        font-size: 20px;
    }

    header .menu-top img {
        width: 1.5rem;
        vertical-align: middle;
        cursor: pointer;
    }

    header button {
        display: block;
    }
}

@media screen and (max-width: 400px) {
    header {
        gap: .5rem;
    }
}


/* ============ HOMEPAGE ============ */

/* Hero banner */

main .section-hero {
    background: linear-gradient(to right, rgba(0,0,0,1), rgba(0, 0, 0, .5)), url('img/hero-banner.avif'), black;
    background-repeat: no-repeat;
    background-position: 20vw center;
    background-size: cover;
    height: 100vh;
    width: calc(100% + 2px);
    margin: -62px 0 0 -1px;
    padding: 24vh var(--side-margin) 0 calc(var(--side-margin) + 20rem);
    position: relative;
    mask-image: url('img/warp-overlay.webp');
    -webkit-mask-image: url('img/warp-overlay.webp');
    overflow: hidden;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: bottom;
    mask-position: bottom;
    -webkit-mask-size: cover;
    mask-size: cover;
}

main .section-hero h1 {
    color: white;
    font-size: 74px;
    width: 500px;
    margin: 0 0 1rem;
    line-height: 5rem;
}

main .section-hero p {
    color: white;
    font-size: 36px;
    margin: 0;
    border-bottom: 2px solid white;
    width: fit-content;
}

@media screen and (max-width: 880px) {
    main .section-hero {
        padding: 44vh var(--side-margin) 0 calc(var(--side-margin) + 2rem);
    }

    main .section-hero h1 {
        font-size: 48px;
        width: 360px;
        line-height: 3.5rem;
    }

    main .section-hero p {
        color: white;
        font-size: 36px;
        margin: 0;
        border-bottom: 2px solid white;
        width: fit-content;
        font-size: 26px;
    }
}

/* Quotes */

main .section-quotes {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main .section-quotes h2 {
    margin: 0 var(--side-margin) 2rem var(--side-margin);
    text-align: center;
}

main .section-quotes ul {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
    max-width: 700px;
    list-style: none;
    margin: 0;
    padding: 0 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
}

main .section-quotes li {
    flex: 0 0 100%;
}

main .section-quotes ul li blockquote {
    position: relative;
    padding: 2rem;
    margin: 0 0 1rem;
    font-size: 18px;
}

main .section-quotes ul li blockquote::before {
    content: '"';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 78px;
    font-family: var(--font-head);
    max-height: 34px;
}

main .section-quotes ul li blockquote::after {
    content: '"';
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 78px;
    font-family: var(--font-head);
    max-height: 34px;
}

main .section-quotes ul li cite {
    margin-left: 2rem;
}

.slider-w-dots + .dots {
    display: flex;
    gap: .5rem;
    margin-top: 2rem;
}

.slider-w-dots + .dots .dot {
    background: #a99988;
    width: .8rem;
    height: .8rem;
    border-radius: 50%;
    transition: transform .2s ease, background-color .2s ease;
    cursor: pointer;
}

.slider-w-dots + .dots .dot.active {
    background-color: black;
    transform: scale(1.25)
}

.slider-w-dots + .dots .dot:hover {
    background-color: black;
}

/* Recent events */

main .section-events {
    padding: 3rem 0;
}

main .section-events h2 {
    margin: 0 var(--side-margin) 2rem var(--side-margin);
}

main .section-events ul {
    margin: 0;
    padding: 0 var(--side-margin);
    list-style: none;
    display: flex;
    gap: 2rem;
    overflow: auto;
}

main .section-events ul li {
    flex: 0 0 calc((100% - 6rem) / 4);
    min-width: 360px;
}

main .section-events ul li img {
    width: 360px;
    height: 270px;
    object-fit: cover;
    border-radius: 8px;
}

/* About me */

main .section-about-me {
    padding: 3rem var(--side-margin);
    display: flex;
    gap: 2rem;
}

main .section-about-me video {
    min-width: 420px;
    min-height: 500px;
    max-height: 50px;
    max-width: 420px;
    object-fit: cover;
    border-radius: 8px;
}

@media screen and (max-width: 800px) {
    main .section-about-me {
        flex-direction: column;
    }

    main .section-about-me video {
        width: 100%;
        min-width: unset;
        max-width: unset;
    }
}


/* ============ PHOTOGRAPHY ============ */

.photography main section:not(.hero-intro):nth-of-type(even) {
    padding: 2rem 0;
}

.photography main section:not(.hero-intro) h2 {
    margin: 3rem 0 2rem var(--side-margin);
}

.photography main section:not(.hero-intro) .image-wrapper {
    display: flex;
    gap: 2rem;
    overflow: auto;
    padding: 0 var(--side-margin) 3rem;
    margin-bottom: -2rem;
    position: relative;
}

.photography main section:not(.hero-intro) .image-wrapper h3 {
    margin: 0;
    transform: translateY(316px);
    white-space: nowrap;
    width: 0;
    height: 0;
    margin-right: -2rem;
}

.photography main section:not(.hero-intro):nth-of-type(even) .image-wrapper {
    margin-bottom: 0;
}

.photography main section:not(.hero-intro) img {
    height: 300px ;
    object-fit: cover;
    border-radius: 8px;
}


/* ============ FASHION ============ */

.fashion main section:not(.hero-intro) {
    padding: 0 var(--side-margin);
    margin: 3rem 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.fashion main section:not(.hero-intro):nth-of-type(odd) {
    flex-direction: row;
    height: 1200px;
}

.fashion main section:not(.hero-intro) .fashion-image-wrap {
    flex: 0 0 50%;
    max-width: 500px;
    position: relative;
}

.fashion main section:not(.hero-intro) .fashion-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: none;
}

.fashion main section:not(.hero-intro) .fashion-image-wrap img.show {
    display: block;
}

.fashion main section:not(.hero-intro) .controls {
    position: absolute;
    top: calc(50% - 1.5rem);
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
    pointer-events: none;
    padding: 0 2rem;
}

.fashion main section:not(.hero-intro) button {
    background: #1d1d1db8;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
    pointer-events: all;
}

.fashion main section:not(.hero-intro) button.next {
    transform: scaleX(-1);
}

.fashion main section:not(.hero-intro) button svg {
    width: 1rem;
    margin-left: -.5rem;
}

.fashion main section:not(.hero-intro) button svg use {
    fill: white;
}

@media screen and (max-width: 800px) {
    .fashion main section:not(.hero-intro) {
        flex-direction: column;
    }

    .fashion main section:not(.hero-intro):nth-of-type(odd) {
        flex-direction: column;
        height: 1600px;
        margin: -8rem 0;
    }

    .fashion main section:nth-of-type(3) {
        height: 1800px !important;
    }

    .fashion main section:nth-of-type(3) .fashion-image-wrap {
        margin-top: -10rem;
    }

    .fashion main section:not(.hero-intro) .fashion-image-wrap {
        flex: unset;
        width: 100%;
    }
}

/* ============ MODELLING ============ */

.modelling main section:not(.hero-intro):nth-of-type(even) {
    padding: 2rem 0;
}

.modelling main section:not(.hero-intro) h2 {
    margin: 3rem 0 2rem var(--side-margin);
}

.modelling main section:not(.hero-intro) .image-wrapper {
    display: flex;
    gap: 2rem;
    overflow: auto;
    padding: 0 var(--side-margin) 3rem;
    margin-bottom: -2rem;
    position: relative;
}

.modelling main section:not(.hero-intro) .image-wrapper h3 {
    margin: 0;
    transform: translateY(316px);
    white-space: nowrap;
    width: 0;
    height: 0;
    margin-right: -2rem;
}

.modelling main section:not(.hero-intro):nth-of-type(even) .image-wrapper {
    margin-bottom: 0;
}

.modelling main section:not(.hero-intro) img {
    height: 300px ;
    object-fit: cover;
    border-radius: 8px;
}


/* ============ GRAPHIC DESIGN ============ */

.graphic-design main section:not(.hero-intro):nth-of-type(even) {
    padding: 0 var(--side-margin);
    margin: 4rem 0;
    display: flex;
    align-items: flex-start;
    height: fit-content;
    flex-direction: row;
    gap: 2rem;
}


.graphic-design main section:not(.hero-intro):nth-of-type(odd) {
    padding: 0 var(--side-margin);
    height: 1400px;
    margin: -16rem -1px;
}

.graphic-design main section:nth-of-type(5) .stoked-wrap {
    display: flex;
    gap: 2rem;
} 

.graphic-design main section:not(.hero-intro) .pdf-container {
    min-width: 360px;
    max-width: 360px;
    aspect-ratio: 210 / 271;
    height: fit-content;
    overflow: hidden;
    position: relative;
    background-color: white;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
}

.graphic-design main section:not(.hero-intro) canvas {
    width:100%;
    aspect-ratio: 210 / 271;
    border: none;
}

.graphic-design main section:not(.hero-intro) .controls {
    position: absolute;
    bottom: 1rem;
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 2rem;
    pointer-events: none;
}

.graphic-design main section:not(.hero-intro) button {
    background: #1d1d1d8f;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
    pointer-events: all;
}

.graphic-design main section:not(.hero-intro) button.next {
    transform: scaleX(-1);
}

.graphic-design main section:not(.hero-intro) button svg {
    width: 1rem;
    margin-left: -.5rem;
}

.graphic-design main section:not(.hero-intro) button svg use {
    fill: white;
}

.graphic-design main section:not(.hero-intro) .image-wrapper {
    display: flex;
    gap: 2rem;
}

.graphic-design main section:not(.hero-intro) .image-wrapper img {
    width: calc(50% - 1rem);
    max-width: 350px;
    border-radius: 8px;
}

@media screen and (max-width: 750px) {
    .graphic-design main section:not(.hero-intro):nth-of-type(even) {
        flex-direction: column;
    }

    .graphic-design main section:not(.hero-intro) .pdf-container {
        width: 100%;
    }

    .graphic-design main section:nth-of-type(5) .stoked-wrap { 
        flex-direction: column;
    }

    .graphic-design main section:not(.hero-intro) .image-wrapper {
        flex-direction: column;
    }

    .graphic-design main section:not(.hero-intro) .image-wrapper img {
        width: 100%;
    }

    .graphic-design main section:not(.hero-intro):nth-of-type(odd) {
        padding: 0 var(--side-margin);
        height: 1800px;
        margin: -16rem -1px;
    }
}


/* ============ FOOTER ============ */

footer {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 2rem var(--side-margin);
    text-align: center;
    position: relative;
    z-index: 4;
}