@font-face {
    font-family: "Clash Display";
    src: url("../fonts/ClashDisplay-Medium.woff") format("woff");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

:root {
    color-scheme: light;
    --rose: #ffffff;
    --green: #00c943;
    --page-width: 1440px;
    --side-space: clamp(12px, 1.25vw, 22px);
    --gallery-gap: clamp(18px, 2.4vw, 34px);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--rose);
}

body.projekt-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--rose);
    color: var(--green);
    font-family: "Clash Display", sans-serif;
}

.projekt-page .seiten-nav {
    position: sticky;
    z-index: 1000;
    top: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--green);
    font-family: "Clash Display", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

.projekt-page .nav-about {
    grid-column: 1;
    justify-self: start;
}

.projekt-page .nav-projects {
    grid-column: 3;
    justify-self: center;
    color: inherit;
    text-decoration: none;
}

.projekt-page .nav-mail {
    grid-column: 5;
    justify-self: end;
    color: inherit;
    text-decoration: none;
}

.page-width {
    width: min(calc(100% - 2 * var(--side-space)), var(--page-width));
    margin-inline: auto;
}

/* The grid in the design image is only a placement guide, so it is not rendered. */
.loop-stage {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: clamp(180px, 26vw, 350px);
    overflow: hidden;
}

.loop-track {
    position: absolute;
    top: 50%;
    left: 0;
    display: flex;
    width: max-content;
    transform: translateY(-50%);
    animation: paris-loop 48s linear infinite;
    will-change: transform;
}

.loop-group {
    display: flex;
    flex: none;
    align-items: center;
    gap: clamp(18px, 2vw, 30px);
    padding-right: clamp(18px, 2vw, 30px);
}

.loop-slide {
    display: block;
    flex: none;
    width: min(40vw, 500px);
    height: auto;
    max-height: 48vw;
    object-fit: contain;
    mix-blend-mode: multiply;
}

@keyframes paris-loop {
    to { transform: translate(-50%, -50%); }
}

.intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 2vw, 28px);
    align-items: top;
    min-height: clamp(300px, 38vw, 480px);
    margin-top: clamp(24px, 4vw, 58px);
    margin-bottom: clamp(38px, 5vw, 72px);
}

.intro-copy {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0;
    padding-left: 14%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(16px, 2.2vw, 26px);
    line-height: 1.4;
    padding-top: 24vw;
    padding-right: 16.5vw;
}

.intro-title {
    grid-column: 1;
    grid-row: 1;
    display: block;
    width: 48%;
    height: auto;
    aspect-ratio: 1;
    overflow: hidden;
    fill: currentColor;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(100px, 13vw, 155px);
    letter-spacing: 0.01em;
    justify-self: end;
}

.copy-break {
    display: none;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    column-gap: var(--gallery-gap);
    row-gap: clamp(22px, 2.4vw, 36px);
}

.gallery.page-width {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.gallery img {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

.gallery-wide {
    grid-column: 1 / -1;
}

.gallery-half {
    grid-column: span 6;
}

.gallery-left {
    grid-column: 1 / span 9;
}

.gallery-right {
    grid-column: 4 / -1;
}

.video-space {
    width: min(calc(100% - 2 * var(--side-space)), var(--page-width));
    aspect-ratio: 16 / 9;
    margin: clamp(40px, 6vw, 88px) auto 0;
}

.hilfslinien {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(6px, 1.2vw, 18px);
    padding-inline: var(--side-space);
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 278px,
        rgba(0, 145, 180, 0.32) 278px,
        rgba(0, 145, 180, 0.32) 280px
    );
    pointer-events: none;
}

.hilfslinien span {
    background: rgba(0, 145, 180, 0.035);
    border-inline: 1px solid rgba(0, 145, 180, 0.25);
}

body.mit-raster .hilfslinien {
    display: grid;
}

@media (max-width: 620px) {
    :root {
        --gallery-gap: 12px;
    }

    .loop-stage {
        height: 27vw;
        min-height: 130px;
    }

    .loop-slide {
        width: 41vw;
        max-height: none;
    }

    .intro {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: 10px;
        min-height: 260px;
        margin-top: 24px;
        margin-bottom: 30px;
    }

    .intro-copy {
        padding-left: 0;
        font-size: 13px;
        line-height: 1.35;
    }

    .intro-title {
        font-size: 170px;
    }

    .gallery-left {
        grid-column: 1 / span 9;
    }

    .gallery-right {
        grid-column: 3 / -1;
    }

    .video-space {
        min-height: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loop-track {
        animation: none;
        transform: translateY(-50%);
    }
}
