* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 100%;
    font: inherit;
}

@font-face {
    font-family: 'Scope';
    src: url('../fonts/scope-variable.ttf');
    font-display: swap;
}

@font-face {
    font-family: 'Geologica';
    src: url('../fonts/geologica-variable.ttf');
    font-display: swap;
}

html {
    font-size: 16px;

    --blue: rgba(31,81,255,1);
    --grey: #F4F4F5;
}

body {
    background: var(--grey);

    font-family: "Geologica", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings:
        "slnt" 0,
        "CRSV" 0,
        "SHRP" 0;
    line-height: 1.3;

    color: var(--blue);
}

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

img {
    max-width: 100%;
}

strong {
    font-weight: bold;
}

.kv {
    font-family: 'Scope';
    height: 100dvh;
    width: 100dvw;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    background-size: cover;
    background-position: top center;
    background: var(--blue);
}

.note {
}

.note p {
    border: dashed 2px var(--blue);
    padding: .5em;
    transform: rotate(-2deg) !important;
}

.apply p {
    border: dashed 2px var(--blue);
    padding: .5em;
    text-align: center;
    transform: rotate(3deg) !important;
}

::selection {
    background: var(--blue);
    color: #fff;
}


/* kv text */

.kv-text {
    width: 120%;
    height: 100%;
    margin-top: -2dvw;
    position: absolute;
    left: -10%;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kv-text-line {
    height: 12vw;
    position: relative;
    font-size: 0;
    line-height: 12vw;
    font-variation-settings: "wght" 100, "wdth" 500;
    color: var(--blue);
    text-shadow: var(--blue) 0px 0px 10px;
    color: #fff;
}

.kv-text-line span {
    font-size: 15vw;
    font-size: 16vw;
}

.kv-text-line--first {
    text-indent: 18vw;
}

.kv-text-line--second {
    text-indent: 22vw;
}

.kv-text-line--third {
    text-indent: 12vw;
}

.kv-text-line-inner {
    display: inline;
}




/* kv bg */
.kv-bg {
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    position: absolute;
    background: url(../images/poster2.webp);
    background-size: cover;
    background-position: top center;
}

.kv-gradient {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cdefs%3E%3Cpattern id='grid' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3C!-- Leichte Linien horizontal/vertikal innerhalb Kachel --%3E%3Cpath d='M16 0 L16 80 M32 0 L32 80 M48 0 L48 80 M64 0 L64 80 M0 16 L80 16 M0 32 L80 32 M0 48 L80 48 M0 64 L80 64' fill='none' stroke='%23BFBFBF' stroke-width='0.25' stroke-opacity='.5'/%3E%3C!-- Stärkere Linien außen --%3E%3Cpath d='M80 0 L80 80 M0 80 L80 80' fill='none' stroke='%23999999' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
    background-color: rgba(31,81,255,1);
    position: absolute;
    width: 150%;
    height: 100%;
    left: -25%;
    mask-image: linear-gradient(transparent 0%, var(--blue) 40%, var(--blue) 60%, transparent 100%);;
    mix-blend-mode: multiply;
}



/* mouse move */
.mousemove {
    will-change: transform;
    transition: transform .1s cubic-bezier(0.25, 1, 0.5, 1);
}

.vf {
    display: inline-block;
    text-indent: 0;
    will-change: font-variation-settings;
    font-variation-settings: "wght" 60, "wdth" 400;
}




/* main */
.main {
    top: calc(100vh - 120px);
    position: relative;
    z-index: 1;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
}

.main-bg {
    display: block;
    background: var(--grey);
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: -1;
    mask-image: linear-gradient(transparent 0%, rgba(0,0,0,1) 400px);
}

.section {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    column-gap: 20px;
    padding-inline: 20px;
    margin-bottom: 8rem;
}

.section:first-of-type {
    margin-top: 50vh;
}

.subgrid {
    display: grid;
    grid-template-columns: subgrid;
}

.col-start-1 { grid-column-start: 1; }
.col-start-2 { grid-column-start: 2; }
.col-start-3 { grid-column-start: 3; }
.col-start-4 { grid-column-start: 4; }
.col-start-5 { grid-column-start: 5; }
.col-start-6 { grid-column-start: 6; }
.col-start-7 { grid-column-start: 7; }
.col-start-8 { grid-column-start: 8; }
.col-start-9 { grid-column-start: 9; }
.col-start-10 { grid-column-start: 10; }
.col-start-11 { grid-column-start: 11; }
.col-start-12 { grid-column-start: 12; }

.col-span-1 { grid-column-end: span 1; }
.col-span-2 { grid-column-end: span 2; }
.col-span-3 { grid-column-end: span 3; }
.col-span-4 { grid-column-end: span 4; }
.col-span-5 { grid-column-end: span 5; }
.col-span-6 { grid-column-end: span 6; }
.col-span-7 { grid-column-end: span 7; }
.col-span-8 { grid-column-end: span 8; }
.col-span-9 { grid-column-end: span 9; }
.col-span-10 { grid-column-end: span 10; }
.col-span-11 { grid-column-end: span 11; }
.col-span-12 { grid-column-end: span 12; }

h2 {
    font-family: 'Scope';
    font-variation-settings: "wght" 70, "wdth" 500;
    font-size: 6rem;
    font-size: 0;
    line-height: 1;
    margin-bottom: .5em;
    margin-bottom: 3rem;
    white-space: nowrap;
}

h2 span {
    font-size: 6rem;
    font-size: min(6rem, 10vw);
}

p {
}

p a {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

p a:hover {
    text-decoration: none;
}

h3 {
    font-family: 'Scope';
    font-variation-settings: "wght" 100, "wdth" 450;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 1em;
}

.mb-05 {
    margin-bottom: .5rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mt-05 {
    margin-top: .5rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}



/* visual grid */
.vg {
    position: fixed;
    display: block;
    width: 110%;
    height: 110%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cdefs%3E%3Cpattern id='dots' width='16' height='16' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='8' cy='8' r='2' fill='%231F51FF' /%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23dots)' /%3E%3C/svg%3E");
    background-attachment: fixed;
    background-repeat: repeat;
    background-size: auto;
    top: -5%;
    left: -5%;
    z-index: 4;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: .1;
    mask-image: linear-gradient(45deg, black 0%, transparent 50%, black 100%);
}


/* project */

.project {
    display: block;
    transition: all .2s cubic-bezier(0.33, 1, 0.68, 1);
}

.project:not(:first-of-type) {
    margin-top: 1.3rem !important;
}

.project p {
    opacity: .4;
    margin-left: 2em;
}

.project img {
    transition: all .8s cubic-bezier(0.33, 1, 0.68, 1);
}

.project:hover, .project:focus {
    transform: scale(1.02) !important;
    z-index: 3;
}

.project:hover img, .project:focus img {
    filter: contrast(1.2) brightness(1.2);
}

.project:hover p, .project:focus p {
    opacity: 1;
}

.project h3 {
    white-space: nowrap;
    display: inline-block;
    font-weight: inherit;    
    position: relative;
    transition: all .4s cubic-bezier(0.25, 1, 0.5, 1);
    letter-spacing: .1em;
    font-size: .8em;
}

.project h3::before {
    content: '■ ';
    margin-left: -1em;
    /* margin-top: -.4em; */
    margin-top: -.3em;
    /* font-size: 2em; */
    font-size: 1.6em;
    position: absolute;
    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
    font-family: "Arial", sans-serif;
}

.project:hover h3, .project:focus h3 {
    letter-spacing: .14em;
    transform: scale(1.3);
    background: #F4F4F5;
    border-radius: 4px;
    padding: .2em .6em;
    font-variation-settings: "wght" 100, "wdth" 550;
}

.project--unfocused {
    transform: scale(.94) !important;
    filter: blur(4px) !important;
    opacity: .4;
}

.project--unfocused img {
}


/* studio structure */

.semester {
    padding: .5em;
}

.semester-number {
    text-indent: 4em;
}

.semester h3 {
    font-family: 'Scope';
    font-variation-settings: "wght" 80, "wdth" 450;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: .075em;
    font-size: 2em;
}

.semester h3::after {
    content: '';
    display: block;
    width: 2px;
    height: 80px;
    margin: 0.325rem 0;
    border-left: dashed 2px #1F51FF;
    margin-left: 4.05rem;
}

.semester:nth-of-type(2) {
    margin-top: 3.9rem;
}

.semester:nth-of-type(3) {
    margin-top: 7.8rem;
}

.semester:nth-of-type(4) {
    margin-top: 11.7rem;
}

.semester p {
    text-indent: 4em;
}



/* students */
.students {
    list-style-type: none;
    row-gap: 1.3rem;
}

.students li {
    display: flex;
    height: 7.8rem;
    line-height: 7.8rem;
    text-align: center;
    font-family: 'Scope';
    font-variation-settings: "wght" 80, "wdth" 400;
    font-size: 1.5rem;
    overflow: visible;
    align-items: center;
    justify-content: center;
}

.students li a {
    overflow: visible;
    white-space: nowrap;
    transition: all .2s cubic-bezier(0.33, 1, 0.68, 1);
    white-space: nowrap;
    flex: 1;
}

.students li a::before {
    content: '■ ';
    margin-left: -1em;
    font-size: 1em;
    position: absolute;
    transition: all .2s cubic-bezier(0.33, 1, 0.68, 1);
    font-family: "Arial", sans-serif;
}

.students li a:hover, .students li a:focus {
    font-variation-settings: "wght" 80, "wdth" 500;
    transform: scale(1.8);
}

.students li a:hover:before, .students li a:focus:before {
    transform: scale(0.1) translateX(3em);
    opacity: 0;
}

.student--unfocused {
    transform: scale(.8) !important;
    filter: blur(4px) !important;
    opacity: .4;
}



/* scroll progress */

.progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    height: 120px;
    background: linear-gradient(var(--grey) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: all .4s cubic-bezier(0.33, 1, 0.68, 1);
}

.progress-track {
    width: 100%;
    height: 4px;
    background: rgba(31,81,255,.2);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--blue);
}

.progress--visible {
    opacity: 1;
}



/* footer */

.footer {
    background: var(--grey);
    position: relative;
    top: calc(100vh - 120px);
    z-index: 2;
    min-height: 36.5vw;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(12,1fr);
    column-gap: 20px;
    padding-inline: 20px;
    padding-top: 34.5vw;
}

.footer-title {
    font-size: 14.6vw;
    margin-left: -1.8vw;
    font-family: 'Scope';
    font-variation-settings: "wght" 100, "wdth" 500;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: .66;
    letter-spacing: .05em;
    pointer-events: none;
    position: absolute;
    top: .2em;
    text-shadow: var(--blue) 0px 0px 6px;
    color: var(--grey);
}

.footer p > span:first-of-type span:first-of-type a {
    font-weight: bold;
    text-decoration: none;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.footer p {
    margin-bottom: 1.3rem;
    font-size: 0;
    line-height: 1.3;
}

.footer p span {
    font-size: 1rem;
}

.footer p > span {
    white-space: nowrap;
}

.footer p span > span {
    margin-right: 1.5em;
}

/* .footer p span:after {
    content: '■';
    width: 3ch;
    display: inline-block;
    text-align: center;
    font-size: 1rem;
    font-family: "Arial", sans-serif;
} */

.footer p span:last-of-type:after {
    display: none;
}




@media (max-width: 1150px) {
    html {
        font-size: 13px;
    }
}


@media (max-width: 900px) {
    html {
        font-size: 16px;
    }

    .section .mousemove {
        transform: initial !important;
    }

    .subgrid {
    }

    .col-span-1, .col-span-2, .col-span-3, .col-span-4, .col-span-5, .col-span-6, .col-span-7, .col-span-8, .col-span-9, .col-span-10, .col-span-11, .col-span-12 {
        grid-column: 1 / span 12 !important;
        /* outline: solid 1px red; */
    }

    p+p {
        text-indent: 4em;
    }

    .section {
        width: 100%;
        padding-inline: 10px;
    }

    .project:not(:first-of-type) {
        margin-top: 2.6rem;
    }

    .project:first-of-type {
        margin-top: -1.3rem;
    }

    .project h3 {
        text-indent: 1.2em;
        font-size: 1.1em;
        white-space: initial;
    }

    .project h3::before {
        margin-left: -1.32em;
        margin-left: -1.55em;
        margin-top: -.32em;
        margin-top: -.36em;
    }

    .project p {
        margin-left: 0;
        opacity: 1;
    }

    .project:hover h3, .project:focus h3 {
        letter-spacing: auto;
        transform: auto;
        background: auto;
        border-radius: auto;
        padding: 0;
        font-variation-settings: "wght" 100, "wdth" 450;
        letter-spacing: .1em;
        transform: initial !important;
    }

    .project:hover, .project:focus {
        transform: initial !important;
        z-index: 3;
    }

    .project:hover img, .project:focus img {
        filter: initial !important;
    }

    .project--unfocused {
        transform: initial !important;
        filter: initial !important;
        opacity: 1;
    }

    .semester:not(:first-of-type) {
        margin-top: 2.6rem !important;
    }

    .semester h3::after {
        margin-left: 4rem;
    }

    .students {
        display: block;
        /* margin-top: -2em !important; */
        /* margin-top: 2em; */
    }

    .students li {
        height: auto;
    }

    .students li a {
        height: 1.3em;
        line-height: 1;
        text-align: left;
        padding-left: 1em;
        font-variation-settings: "wght" 80, "wdth" 500;
    }

    .students li a:hover, .students li a:focus {
        transform: scale(1);   
    }

    .students li a:hover::before, .students li a:focus::before {
        opacity: 1;
        transform: scale(1);
    }

    .student--unfocused {
        transform: scale(1);
        filter: initial !important;
        opacity: 1;
    }

    .footer {
        padding-top: 36vw;
    }

    .footer p > span {
        white-space: initial;
    }

    h2 {
        margin-bottom: 1.3rem;
    }
}


@media (pointer: coarse) {
    .section .mousemove {
        transform: initial !important;
    }

    .vf {
        font-variation-settings: inherit !important;
    }

    .kv {
        height: 60dvh;
    }

    .kv-text {
        transform: scale(.9) translateY(-10%) !important;
    }

    .kv-text-line {
        /* outline: solid 1px red; */
        /* height: 5vh;
        line-height: 5vh; */
        height: 7vh;
        line-height: 7vh;
        transition: none !important;
        animation-delay: 0 !important;
    }
    
    .main, .footer {
       top: calc(60dvh - 120px);
    }

    .main-bg {
        mask-image: linear-gradient(transparent 0%, rgba(0,0,0,1) 80px);
    }

    .section:first-of-type {
        margin-top: 120px;
    }
}



@media (min-width: 1700px) {
    html {
        font-size: 1vw;
    }
}