/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* 2. Remove default margin */
* {
margin: 0;
}
/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
html {
    interpolate-size: allow-keywords;
}
}
body {
/* 4. Add accessible line-height */
line-height: 1.2;
/* 5. Improve text rendering */
-webkit-font-smoothing: antialiased;
}
/* 6. Improve media defaults */

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
font: inherit;
}
/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}
/* 9. Improve line wrapping */

#root, #__next {
isolation: isolate;
}


/* ------------------ */

:root {
    --color-text: rgb(226, 226, 226); 
}

html {
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-weight: 500;
    font-style: normal;
    text-shadow:
    0 0 0.04rem var(--color-text),
    0 0 0.04rem var(--color-text),
    0 0 0.04rem var(--color-text),
    0 0 0.04rem var(--color-text),
    0 0 0.04rem var(--color-text),
    0 0 0.04rem var(--color-text),
    0 0 0.04rem var(--color-text);
}

body {
    display: grid;
    gap: 4rem;
    background-color: black;
    background-image: url(../images/bg_grain.jpg);
    background-size: 500px;
    color: var(--color-text);
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 3rem;
}

h2 {
    font-size: 4.7rem;
    font-family: loretta-display-variable, sans-serif;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.2rem;
    text-shadow:
    0 0 0.06rem var(--color-text),
    0 0 0.06rem var(--color-text),
    0 0 0.06rem var(--color-text),
    0 0 0.06rem var(--color-text),
    0 0 0.06rem var(--color-text),
    0 0 0.06rem var(--color-text),
    0 0 0.06rem var(--color-text);
}

h3 {
    font-size: 3.9rem;
    text-transform: uppercase;
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-weight: 300;
    line-height: 2;
    letter-spacing: -0.02rem;
    text-shadow:
    0 0 0.06rem var(--color-text),
    0 0 0.06rem var(--color-text),
    0 0 0.06rem var(--color-text),
    0 0 0.06rem var(--color-text),
    0 0 0.06rem var(--color-text),
    0 0 0.06rem var(--color-text),
    0 0 0.06rem var(--color-text);
}

h4 {
    font-size: 1.3rem;
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.4rem;
    text-decoration-thickness: 0.05rem;
    margin-bottom: 2rem;
    letter-spacing: -0.025rem;
}

p {
    letter-spacing: -0.02rem;
}

a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 0.4rem;
    text-decoration-thickness: 0.05rem;
}

u {
    text-underline-offset: 0.25rem;
    text-decoration-thickness: 0.045rem;
}

img {
    mix-blend-mode: screen;
    pointer-events: none; /* Zodat de afbeelding geen muisinteractie blokkeert */

    /* Mask met zachte rand van 3rem */
    -webkit-mask-image: 
      linear-gradient(to top,    transparent 0, white 0.2rem, white calc(100% - 0.2rem), transparent 100%),
      linear-gradient(to right,  transparent 0, white 0.2rem, white calc(100% - 0.2rem), transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: 
      linear-gradient(to top,    transparent 0, white 0.2rem, white calc(100% - 0.2rem), transparent 100%),
      linear-gradient(to right,  transparent 0, white 0.2rem, white calc(100% - 0.2rem), transparent 100%);
    mask-composite: intersect;
}

.mobile-block {
    display: none;
}

header {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-areas: 
        "nav"
        "title";
    gap: 10rem;
    justify-items: end;
    align-items: start;
}

header .puppet {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%; 
    z-index: -100;
    object-fit: cover;    /* Als het een img is en je wilt dat hij de container vult */
}

nav {
    grid-area: nav;
    display: grid;
    grid-template-rows: 2fr 1fr;
    align-items: center;
    margin-top: 1rem;
}

nav img {
    width: 28rem;
}

nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.1rem;
}

nav menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: end;
    padding-inline-start: 0;
    border-bottom: 2px solid var(--color-text);
}

/* Hamburger menu styling */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.title {
    grid-area: title;
    text-align: right;
    text-decoration: underline;
    text-underline-offset: 0.75rem;
    text-decoration-thickness: 0.15rem;
    line-height: 1.6;
    margin-bottom: 1em;
    color: var(--color-text);
}

#About {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
}

.texture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    text-align: right;
    align-self: end;
    margin: 0 1rem 1rem;
}

.Film {
    position: relative;
    height: 100%;
}

/* Even Film secties (2e, 4e, etc.) rechts uitlijnen */
.Film:nth-child(even) {
    text-align: right;
}

.Film:nth-child(even) h2,
.Film:nth-child(even) p,
.Film:nth-child(even) a {
    margin-left: auto;
}

.still {
    position: absolute;
    mix-blend-mode: lighten;
    width: calc(100% - 2rem);
    margin: 3rem 1rem 0;
    left: 0;
    top: 0;
    z-index: 0;
}

.Film h2 {
    width: 50rem;
}

.Film:nth-child(even) h2 {
    margin-left: auto;
    margin-right: 0;
}

.Film p {
    width: 25rem;
    margin: 2.5rem 0 ;
}

footer {
    position: relative;
    padding: 1rem;
}

footer .puppet {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%; 
    z-index: -100;
    object-fit: cover;    /* Als het een img is en je wilt dat hij de container vult */
}

footer p {
    width: 30rem;
    max-width: 50%;
    margin-bottom: 2rem;
}

footer h3 {
    text-decoration: underline;
    text-underline-offset: 0.75rem;
    text-decoration-thickness: 0.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--color-text);
}


#Contact {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
}

.mobile-br {
    display: none;
}

.still.mobile {
    display: none;
}

@media (max-width: 1018px) {
    header {
        gap: 0 !important;
    }

    .Film h2 {
        width: 100%;
        max-width: 40rem;
        font-size: 4rem;
    }

    .Film p {
        width: 100%;
        max-width: 20rem;
    }

    nav img {
        width: 100%;
        max-width: 28rem;
    }
}

@media (max-width: 950px) {
    nav {
        top: 0;
        left: 0;
        right: 0;
        margin: 0;
        grid-template-rows: 1fr;
        z-index: 1000;
    }

    nav img {
        width: 20rem;
        margin: 0.6em 0 1.1em;
        justify-self: start;
    }


    nav menu.active {
        display: flex;
    }


}

@media (max-width: 820px) {
    body {
        padding: 0 10%;
    }

    .Film h2 {
        font-size: 3.5rem;
        max-width: 30rem;
    }

    .Film p {
        margin: 1.5rem 0;
        max-width: 80%;
    }

    .about-text {
        text-align: left;
    }

    h2 {
        font-size: 3.5rem;
    }

    h3 {
        font-size: 2.8rem;
    }

    .title {
        text-decoration-thickness: 0.12rem;
        text-underline-offset: 0.6rem;
    }

    h4 {
        text-decoration-thickness: 0.04rem;
        text-underline-offset: 0.3rem;
    }

    u {
        text-decoration-thickness: 0.035rem;
        text-underline-offset: 0.2rem;
    }

    #About, #Contact {
        grid-template-columns: 1fr;
        gap: 2rem;
        grid-template-areas: 
            "about-text"
            "texture";
    }

    #About .about-text {
        margin: 0 1rem ;
        max-width: 30rem;
        grid-area: about-text;
    }

    .texture {
        margin-bottom: -3%;
    }

    #About .texture {
        grid-area: texture;
    }

    .mobile-br {
        display: block;
    }

    footer p {
        max-width: 22rem;
        width: inherit;
    }

    .still {
        display: none;
    }

    .still.mobile {
        position: relative;
        display: block;
        margin-top: -1.5rem;
        margin-bottom: -2.3rem;
    }

    footer {
        margin-bottom: 3rem;
    }

    nav img {
        width: 15rem;
        margin-top: 0.6em;
    }


}

@media (max-width: 720px) {
    .mobile-block {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: black;
        color: var(--color-text);
        width: 100%;
        height: 100%;
        display: block;
        text-align: center;
        font-size: 1.5rem;
        z-index: 10000;
        padding: 3rem;
        font-family: loretta-display-variable, sans-serif;
        font-weight: 300;
        font-style: normal;
    }

    .mobile-block img {
        width: 100%;
        max-width: 12rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    body {
        padding: 0 5%;
        margin-top: 4rem;
    }

    .Film h2 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.5rem;
        letter-spacing: -0.1rem;
    }

    h3 {
        font-size: 2rem;
    }

    h4 {
        font-size: 1rem;
        text-decoration-thickness: 0.035rem;
        text-underline-offset: 0.25rem;
    }

    .Film h2 {
        width: 100%;
    }

    .Film p {
        width: 100%;
        margin: 1rem 0;
    }

    #About, #Contact {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    nav {
        padding: 0.5rem 5%;
    }

    nav img {
        width: 6rem;
    }

    .title {
        margin-bottom: 0.5em;
    }
}
