/*Global*/

@font-face {
    font-family: "Neue Montreal";
    src: url("fonts/InstrumentSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}


:root {
    --accent-color: #111126;
}

* {
    box-sizing: border-box;
}

body {
    background-color: #111126;
    color: white;
    margin: 0;
    font-family: "Neue Montreal", Helvetica, sans-serif;
}



/*Intro*/
.intro {
    height: 100vh;
    position: fixed;
    inset: 0;
    background-color: var(--accent-color);

    /* JS blendet später das gesamte Intro aus */
    transition: opacity 0.5s ease;
}


/* Container für Emblem + Logo */

.intro-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 550px;
    height: 550px;
    transform: translate(-50%, -50%);
}


/* NEUES 5ER-EMBLEM */

.intro-shape {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%) rotate(0deg) scale(1);

    animation: emblemSpin 2.4s linear forwards;
}


@keyframes emblemSpin {

    0% {
        transform:
            translate(-50%, -50%)
            rotate(0deg)
            scale(1);
        opacity: 1;
    }

    75% {
        transform:
            translate(-50%, -50%)
            rotate(288deg)
            scale(0.25);
        opacity: 1;
    }

    100% {
        transform:
            translate(-50%, -50%)
            rotate(360deg)
            scale(0.08);
        opacity: 0;
    }
}


/* EMMI-LOGO */

.intro-logo {
    position: absolute;
    width: 150px;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%) scale(1);
    opacity: 0;

    animation: introLogoAppear 0.5s ease 2.2s forwards;
}


@keyframes introLogoAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}



/*HERO*/

.hero {
    min-height: 100vh;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: heroFade 0.5s ease 3.2s forwards;
}


@keyframes heroFade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


.hero p {
    position: absolute;

    top: calc(50% + 58px);
    left: 50%;
    bottom: auto;

    transform: translateX(-50%);
    margin: 0;

    opacity: 0;

 animation:
    logoFade 1.5s ease 3.5s forwards,
    textWipe 0.8s ease 6s forwards;

    font-weight: 400;
    font-size: 12px;
    letter-spacing: 2px;
    white-space: nowrap;

    -webkit-mask-image: linear-gradient(#000 0 0);
-webkit-mask-repeat: no-repeat;
-webkit-mask-position: right;
-webkit-mask-size: 100% 100%;

mask-image: linear-gradient(#000 0 0);
mask-repeat: no-repeat;
mask-position: right;
mask-size: 100% 100%;
}


.hero-shape-wrap {
    position: absolute;
    width: 120px;
    left: 30px;
    bottom: 30px;

    transform: scale(0);
    transform-origin: center;

    animation: heroShapeGrow 1.5s ease 3.5s forwards;

    cursor: pointer;
    display: none;
}


.hero-shape {
    width: 100%;
    display: block;
}


.hero-shape-outline {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}


.hero-shape-wrap:hover .hero-shape-outline {
    opacity: 1;
}


.hero-shape,
.hero-shape-outline {
    transition: transform 0.8s ease, opacity 0.4s ease;
}


.hero-shape-wrap:hover .hero-shape,
.hero-shape-wrap:hover .hero-shape-outline {
    transform: rotate(36deg);
}

@keyframes heroShapeGrow {
    0% {
        transform: rotate(0deg) scale(0);
        opacity: 0;
    }

    100% {
        transform:
            rotate(360deg)
            translateX(var(--move-x, 0px))
            translateY(var(--move-y, 0px))
            scale(1);

        opacity: 1;
    }
}


.logo {
    width: 150px;
    display: block;
}


@keyframes logoFade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


.logo-wrap {
    position: absolute;
    width: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
}


.logo-purple {
    position: absolute;
    top: 0;
    left: 0;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.5s ease;
}


.logo-wrap:hover .logo-purple {
    clip-path: inset(0 0 0 0);
}



/* NAVIGATION */

/* NAVIGATION */

.nav-area {
    position: absolute;
    bottom: 20px;
    left: 50px;

    display: flex;
    align-items: center;
    gap: 18px;

    height: 65px;

    pointer-events: none;
    animation: navAreaEnable 0s linear 6.8s forwards;
}


@keyframes navAreaEnable {
    to {
        pointer-events: auto;
    }
}


.menu-plus {
    display: none;
    color: white;

    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    opacity: 0;
    animation: menuPlusFade 1s ease 6.8s forwards;

    transition: color 0.3s ease;

}


@keyframes menuPlusFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.nav {
    display: flex;
    align-items: center;
    gap: 16px;

    position: relative;
    top: 3px;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-12px);

    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        visibility 0.4s;
}


.nav-area:hover .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(0);
}


.nav-area:hover .menu-plus {
    color: #DFFF00;
}


.nav a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;

    font-family: Helvetica, Arial, sans-serif;
    letter-spacing: 2px;
}


.nav a:hover {
    color: #DFFF00;
}


@keyframes lineDraw {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}


@keyframes textWipe {
    from {
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }

    to {
        -webkit-mask-size: 0% 100%;
        mask-size: 0% 100%;
    }
}



/* ABOUT */

.about-screen {
    position: absolute;
    inset: 0;
    background-color: #111126;
    z-index: 20;
    display: none;
}


.about-logo-wrap {
    position: absolute;
    width: 100px;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 100;
}


.about-logo {
    width: 100%;
    display: block;
}


.about-logo-neon {
    position: absolute;
    top: 0;
    left: 0;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.5s ease;
}


.about-logo-wrap:hover .about-logo-neon {
    clip-path: inset(0 0 0 0);
}


.about-text {
    position: absolute;
   left: calc(5vw - 5px);
top: calc(20vh - 100px);
transform: none;

    max-width: 850px;

    font-family: "Neue Montreal", Helvetica, Arial, sans-serif;
    font-size: clamp(30px, 3.2vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.03em;

    color: white;
}


.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #DFFF00;
    margin-left: 5px;
    vertical-align: -0.1em;
    animation: cursorBlink 0.8s infinite;
    .sometimes-cursor,
.final-cursor,
.love-cursor {
    display: none;
}
}


@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0;
    }
}


.changing-line {
    margin-top: 24px;
}


.love-line {
    margin-top: 72px;
}


.final-text {
    white-space: pre-line;
}





/* TEMP: ABOUT DEVELOPMENT MODE 

.intro,
.hero {
    display: none;
}



.about-screen {
    position: relative;
    inset: 0;
    background-color: #111126;
    z-index: 20;
    display: block;
}
*/


.about-canvas {
    width: 400vw;
    height: 100vh;
    position: relative;
    transform-origin: 35vw 50vh;
}



.about-scroll {
    height: 400vh;
    position: relative;
}
html,
body {
    overflow-x: hidden;
}

.about-camera {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}





.everything-word {
    position: absolute;
    left: -25vw;
    top: 112vh;
    width: 340px;
    height: auto;
    transform: rotate(-8deg);
    z-index: 20;
}

.about-sweden-photo {
    position: absolute;
    left: 90vw;
    top: -10vw;
    width: 50vw;
    height: auto;
}

.about-portrait-cutout {
    position: absolute;
    left: 120vw;
    top: calc(1vh - 250px);
    width: clamp(340px, 36vw, 650px);
    height: auto;

    opacity: 0;
    transform: rotate(0deg) scale(0.85);

    transition:
        opacity 0.8s ease,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.everything-hidden {
     position: absolute;
    left: -25vw;
    top: 125vh;

    width: 48vw;
    height: 38vh;

    font-family: "Neue Montreal", Helvetica, Arial, sans-serif;
    color: #fff;

    opacity: 1;
}

.everything-reveal-text {
    position: absolute;
    left: 8%;
    top: 3%;
    margin: 0;

    width: 600px;
    max-width: none;

    font-size: 38px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.everything-scratch {
    position: absolute;
    left: 8%;
    top: 3%;

    width: 600px;
    height: 160px;

    z-index: 10;
    display: block;
}









/* CONTACT */

.contact-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: #111126;
    z-index: 30;
    display: none;
}

.contact-logo-wrap {
    position: absolute;
    width: 100px;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 100;
}

.contact-logo {
    width: 100%;
    display: block;
}

.contact-logo-neon {
    position: absolute;
    top: 0;
    left: 0;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.5s ease;
}

.contact-logo-wrap:hover .contact-logo-neon {
    clip-path: inset(0 0 0 0);
}

.contact-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.contact-claim {
    position: absolute;

   width: min(320px, 26vw);

    left: 12vw;
    top: 40%;

    transform: translateY(-50%);
}

.contact-links {
    position: absolute;
    right: 4vw;
    bottom: 4vh;

    display: flex;
    gap: 24px;
}

.contact-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: #DFFF00;
}


/* CONTACT INFO */

.contact-info {
    position: absolute;
    left: 58vw;
    top: 70%;
    transform: translateY(-50%);

    width: 360px;

    display: flex;
    flex-direction: column;
    gap: 18px;
}





/* Mail + Instagram kommen erst danach */
.mail-button,
.contact-instagram {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.mail-button.contact-details-visible,
.contact-instagram.contact-details-visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-mail,
.contact-instagram {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-label {
    color: #FFFFFF;
    font-size: 12px;
    letter-spacing: 0.22em;
    margin-bottom: 12px;
}

.contact-instagram {
    gap: 10px;
}

.contact-instagram .contact-label {
    margin-bottom: 0;
}


/* MAIL BOX */

.mail-button {
    box-sizing: border-box;
    position: relative;

    width: 100%;
    height: 58px;
    padding: 0 20px;

    border: none;
    border-radius: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #FFFFFF;
    text-decoration: none;

    font-size: 12px;
    letter-spacing: 0.12em;

    overflow: hidden;
}

/* weiße Grundkontur */

.mail-button::before {
    content: "";
    position: absolute;
    inset: 0;

    border: 1px solid #FFFFFF;
    border-radius: 100px;

    pointer-events: none;
}

/* Neon-Kontur */

.mail-border {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.mail-border rect {
    fill: none;
    stroke: #DFFF00;
    stroke-width: 2;
}

.mail-button:hover .mail-border {
    clip-path: inset(0 0 0 0);
}

.mail-arrow {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mail-button:hover .mail-arrow {
    transform: translateX(5px);
}


/* Neon zeichnet sich beim Hover */

.mail-button:hover .mail-border rect {
    stroke-dashoffset: 0;
}

/* Text + Pfeil */

.mail-button span {
    position: relative;
    z-index: 2;
}


/* PFEIL */

.mail-arrow {
    font-size: 20px;
}


/* INSTAGRAM */

.instagram-link {
    display: inline-block;
    text-decoration: none;
}

.instagram-icon {
    position: relative;
    display: block;

    width: 24px;
    height: 24px;

    border: 2px solid #FFFFFF;
    border-radius: 7px;

    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}

/* Kreis in der Mitte */
.instagram-icon::before {
    content: "";

    position: absolute;
    width: 8px;
    height: 8px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    border: 2px solid #FFFFFF;
    border-radius: 50%;

    transition: border-color 0.3s ease;
}

/* kleiner Punkt oben rechts */
.instagram-dot {
    position: absolute;

    width: 3px;
    height: 3px;

    right: 4px;
    top: 4px;

    background: #FFFFFF;
    border-radius: 50%;

    transition: background 0.3s ease;
}
.instagram-link:hover .instagram-icon {
    border-color: #DFFF00;
    transform: rotate(8deg) scale(1.1);
}

.instagram-link:hover .instagram-icon::before {
    border-color: #DFFF00;
}

.instagram-link:hover .instagram-dot {
    background: #DFFF00;
}



.say-hello {
    width: 180px;
    height: 56px;
    display: block;

    margin-bottom: 2px;

    position: relative;
    z-index: 2;
}


.contact-footer {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);

    color: #FFFFFF;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.06em;
    white-space: nowrap;
    opacity: 0.65;
}


.home-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 520px;
    transform: translate(-50%, -50%);

    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
animation: homeNavAppear 0.8s ease 6.3s forwards;
}

@keyframes homeNavAppear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.home-nav-right {
    display: flex;
    gap: 24px;
    transform: translateX(35px);
}

.home-nav a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 400;

    transition: color 0.3s ease;
}

.home-nav a:hover {
    color: #DFFF00;
}



.about-location {
    position: absolute;
    left: -10vw;
    top: 95vh;

    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: "Neue Montreal", Helvetica, Arial, sans-serif;
    font-size: 35px;
    line-height: 1.15;
    color: #fff;
    opacity: 0;
transition: opacity 0.8s ease;

}

.location-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.location-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.pin-head {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #DFFF00;
}

.pin-line {
    display: block;
    width: 2px;
    height: 90px;
    flex-shrink: 0;
    background: #DFFF00;
}


.about-cta {
    position: absolute;
    left: 115vw;
    top: 115vh;
    transform: translateX(-50%);

    opacity: 0;
    transition: opacity 1s ease;
}

.about-cta.visible {
    opacity: 1;
}

.about-contact-link {
    display: inline-block;
    font-size: 30px;
    line-height: 0.9;
    color: #fff;
    text-decoration: none;
    font-style: oblique 18deg;
    transition: color 0.25s ease;
}

.about-contact-link {
    cursor: pointer;
}

.about-contact-link:hover {
    color: #DFFF00;
}







.about-location {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}









/* =========================================
   HOME — INTRO BEREITS GESEHEN
   ========================================= */

body.intro-skipped .hero {
    opacity: 1;
    animation: none;
}

body.intro-skipped .logo-wrap {
    opacity: 1;
}

body.intro-skipped .hero p {
    display: none;
    animation: none;
}

body.intro-skipped .home-nav {
    opacity: 1;
    animation: none;
}

body.intro-skipped .hero-shape-wrap {
    display: none;
    animation: none;
}



























/* ==================================================
   MOBILE — HOME
   ================================================== */

@media (max-width: 768px) {

    /* HERO */
    .hero {
        min-height: 100svh;
        height: 100svh;
        padding: 24px 20px;
    }

.hero p {
    top: calc(50% + 38px);
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
    margin: 0;

    font-size: 8.5px;
    letter-spacing: 0.85px;
    text-align: center;
    white-space: nowrap;

    -webkit-mask-image: linear-gradient(#000 0 0);
-webkit-mask-repeat: no-repeat;
-webkit-mask-position: right;
-webkit-mask-size: 100% 100%;

mask-image: linear-gradient(#000 0 0);
mask-repeat: no-repeat;
mask-position: right;
mask-size: 100% 100%;

    animation:
        logoFade 1.5s ease 3.5s forwards,
        textWipeMobile 0.8s ease 6s forwards;
}


@keyframes textWipeMobile {
    from {
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }

    to {
        -webkit-mask-size: 0% 100%;
        mask-size: 0% 100%;
    }
}

.home-nav {
    animation: homeNavAppear 0.8s ease 6.3s forwards;
}

    /* EMMI LOGO */
  .logo-wrap {
    width: 105px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo {
    width: 105px;
}


    /* NAVIGATION */
    .home-nav {
        width: calc(100% - 48px);

        top: 50%;
        left: 50%;

        transform: translate(-50%, -50%);

        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .home-nav-right {
        gap: 14px;
        transform: none;
    }

 .home-nav a {
    font-size: 9px;
    letter-spacing: 1.2px;
}


/* INTRO — MOBILE */

.intro-logo {
    width: 105px;
}

.intro-animation {
    width: 400px;
    height: 400px;
}

}






/* ==================================================
   MOBILE — ABOUT
   ================================================== */

@media (max-width: 768px) {

    /* ABOUT SCREEN */
    .about-screen {
        width: 100%;
        overflow-x: hidden;
    }

    /* LOGO */
    .about-logo-wrap {
        width: 105px;
        top: 28px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* TYPEWRITER */
   .about-text {
    left: 24px;
    right: 24px;
    top: 115px;

    width: auto;
    max-width: none;

    transform: none;

    font-size: 19px !important;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

    .changing-line {
        margin-top: 22px;
    }

    .love-line {
        margin-top: 44px;
    }


/* MOBILE SCROLLBEREICH */
.about-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 400svh;
    overflow: visible;
}

.about-scroll {
    position: relative;
    height: 400svh;
    width: 100%;
}

.about-camera {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100svh;
    overflow: hidden;
}

/* ABOUT — MOBILE PHOTO COLLAGE */

.about-sweden-photo {
    left: 62vw;
    top: 68vh;

    width: 55vw;
    max-width: none;

    z-index: 5;
}

.about-portrait-cutout {
    left: 43vw;
    top: 60vh;

    width: 36vw;
    max-width: none;

    z-index: 6;
}

/* ABOUT — MOBILE LOCATION */

.about-location {
    left: 2vw;      /* vorher 16vw */
    top: 85vh;      /* vorher 103vh */

    width: 55vw;

    align-items: flex-start;

    font-size: 16px;
    line-height: 1.15;

    z-index: 10;
}

.location-pin {
    align-items: center;
    margin-bottom: 18px;
}

.pin-head {
    width: 10px;
    height: 10px;
}

.pin-line {
    width: 1px;
    height: 55px;
}

.location-text {
    width: max-content;
    max-width: none;
    white-space: nowrap;
}

/* ABOUT — MOBILE CTA */

.about-cta {
    left: 60vw;
    top: 113vh;

    width: auto;
    z-index: 10;
}

.about-contact-link {
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .about-contact-link {
        color: #DFFF00;
    }
}
}



/* ==================================================
   MOBILE — CONTACT
   ================================================== */

@media (max-width: 768px) {

    .contact-screen {
        width: 100vw;
        height: 100svh;
        overflow: hidden;
    }

    /* LOGO */
    .contact-logo-wrap {
        width: 105px;
        top: 28px;
        left: 50%;
        transform: translateX(-50%);
    }


    /* TANGLED THOUGHTS CLAIM */
    .contact-claim {
        width: 155px;

        left: 11vw;
        top: 30%;

        transform: translateY(-50%);
    }


    /* RECHTER CONTACT-BLOCK */
    .contact-info {
        left: 45%;
        top: 65%;

        transform: none;

        width: 46vw;
        max-width: 180px;

        gap: 16px;
    }


    /* SAY HELLO */
    .say-hello {
        width: 125px;
        height: auto;

        margin-bottom: 6px;
    }


    /* MAIL */
    .mail-button {
        width: 100%;
        height: 48px;

        padding: 0 14px;

        font-size: 9px;
        letter-spacing: 0.08em;
    }

    .mail-arrow {
        font-size: 16px;
    }


    /* STALK ME */
    .contact-label {
        font-size: 10px;
        letter-spacing: 0.18em;
    }

    .instagram-icon {
        width: 22px;
        height: 22px;
    }


    /* FOOTER */
    .contact-footer {
        bottom: 24px;
        font-size: 9px;
    }
}




