/* =========================================================
   RESET & BASE
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #090909;
    color: #f2f0eb;
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
}

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


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;

    width: 100%;
    height: 82px;

    padding: 0 5vw;

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

    border-bottom: 1px solid #ffffff18;

    backdrop-filter: blur(14px);
    background: #09090955;
}

.logo {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    margin-left: 3px;
    font-weight: 400;
}

nav {
    display: flex;
    gap: 34px;

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a {
    opacity: 0.72;
    transition: opacity 0.25s;
}

nav a:hover {
    opacity: 1;
}

.nav-cta {
    padding: 11px 16px;

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

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-cta span {
    margin-left: 10px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    height: 100vh;
    min-height: 700px;

    padding: 120px 7vw 70px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero::after {
    content: "";

    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;

    height: 190px;

    background: linear-gradient(to bottom, transparent, #090909);
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(115deg, #090909b8 0%, #09090935 48%, #0909098c 100%),
        url("noki v1.png") center / cover no-repeat;

    transform: scale(1.05);
}

.hero-bg::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            115deg,
            #090909 0%,
            #09090955 45%,
            #090909 100%
        );
}

.noise {
    position: absolute;
    inset: 0;

    opacity: 0.07;

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 1100px;
}

.eyebrow {
    margin-bottom: 28px;

    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2.5px;

    opacity: 0.55;
}

h1 {
    font-size: clamp(72px, 11vw, 170px);
    line-height: 0.79;
    font-weight: 800;
    letter-spacing: -0.075em;
}

h1 em,
h2 em {
    font-family: Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.06em;
}

h1 em {
    display: inline-block;
}

h1 {
    transform-origin: left center;
    transition: transform 0.35s ease, color 0.35s ease;
}

h1:hover {
    color: #fff;
    transform: scale(1.04);
    animation: title-sparkle 1.1s ease-in-out infinite alternate;
}

@keyframes title-sparkle {
    from {
        text-shadow: 0 0 0 #fff;
    }
    to {
        text-shadow: 0 0 8px #fff, 0 0 22px #ffffff99;
    }
}

.hero-bottom {
    max-width: 900px;

    margin-top: 65px;

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

    gap: 30px;

    color: #aaa;

    font-size: 13px;
    line-height: 1.6;
}

.scroll {
    padding-bottom: 7px;

    color: #eee;

    border-bottom: 1px solid #ffffff66;

    white-space: nowrap;
}

.hero-number {
    position: absolute;
    right: 5vw;
    bottom: 50px;

    font-size: 10px;
    letter-spacing: 2px;

    opacity: 0.45;
}


/* =========================================================
   GLOBAL SECTIONS
   ========================================================= */

.section {
    padding: 150px 7vw;
}

.section-head {
    margin-bottom: 80px;
}

h2 {
    font-size: clamp(55px, 8vw, 120px);
    line-height: 0.9;
    letter-spacing: -0.065em;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.projects {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 30px;
}

.project-large {
    grid-column: 1;
    grid-row: 1 / 3;
}

.project:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.project:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.project-wide {
    grid-column: 1 / -1;
    grid-row: 3;
}


/* Project placeholders */

.placeholder {
    position: relative;

    height: 560px;

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

    overflow: hidden;

    background: #171717;

    border: 1px solid #ffffff0d;
}

.project:not(.project-large) .placeholder {
    height: 390px;
}

.project-wide .placeholder {
    height: 500px;
}


/* Placeholder background */

.placeholder::before {
    content: "";

    position: absolute;
    inset: -10%;

    background:
        linear-gradient(
            135deg,
            #292929,
            #0e0e0e 55%,
            #242424
        );

    transition: transform 0.7s;
}

.project:hover .placeholder::before {
    transform: scale(1.08);
}


/* Placeholder label */

.placeholder span {
    position: relative;
    z-index: 1;

    font-size: 10px;
    letter-spacing: 4px;

    opacity: 0.3;
}


/* Individual project backgrounds */

.p2::before {
    background:
        linear-gradient(
            45deg,
            #101010,
            #3a3a3a
        );
}

.p3::before {
    background:
        linear-gradient(
            120deg,
            #333,
            #101010
        );
}

.p4::before {
    background:
        linear-gradient(
            90deg,
            #242424,
            #0d0d0d
        );
}


/* Project information */

.project-info {
    padding-top: 15px;

    display: flex;
    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid #ffffff22;
}

.project-info h3 {
    position: relative;

    font-size: 13px;
    letter-spacing: 1px;
}

.project-info h3::before,
.project-info h3::after {
    content: attr(data-text);

    position: absolute;
    top: 0;
    left: 0;

    opacity: 0;
    pointer-events: none;
}

.project-info h3::before {
    color: #ff315d;
}

.project-info h3::after {
    color: #39e8ff;
}

.project:hover .project-info h3::before {
    animation: project-glitch-red 0.42s steps(2, end);
}

.project:hover .project-info h3::after {
    animation: project-glitch-blue 0.42s steps(2, end);
}

@keyframes project-glitch-red {
    0%, 100% {
        opacity: 0;
        transform: translate(0);
    }
    18% {
        opacity: 0.9;
        transform: translate(-4px, -1px);
    }
    42% {
        opacity: 0.7;
        transform: translate(3px, 1px);
    }
    66% {
        opacity: 0.85;
        transform: translate(-2px, 0);
    }
}

@keyframes project-glitch-blue {
    0%, 100% {
        opacity: 0;
        transform: translate(0);
    }
    24% {
        opacity: 0.85;
        transform: translate(4px, 1px);
    }
    50% {
        opacity: 0.65;
        transform: translate(-3px, -1px);
    }
    72% {
        opacity: 0.8;
        transform: translate(2px, 0);
    }
}

.project-info p {
    font-size: 11px;
    opacity: 0.45;
}


/* =========================================================
   PROJECT VIDEO / IFRAME
   ========================================================= */

.placeholder iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about {
    color: #0b0b0b;
    background: #e8e6e0;
}

.about .eyebrow {
    opacity: 0.45;
}

.about-grid {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: 10vw;
}

.lead {
    font-size: clamp(30px, 4vw, 57px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.about-grid p:last-child {
    max-width: 430px;

    padding-top: 8px;

    font-size: 14px;
    line-height: 1.8;

    opacity: 0.65;
}


/* =========================================================
   SERVICES
   ========================================================= */

.service-list {
    border-top: 1px solid #ffffff22;
}

.service-list > div {
    padding: 30px 0;

    display: grid;

    grid-template-columns: 80px 1fr 1fr;

    align-items: center;

    border-bottom: 1px solid #ffffff22;
}

.service-list span {
    font-size: 10px;
    opacity: 0.35;
}

.service-list h3 {
    font-size: clamp(25px, 3vw, 45px);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.service-list p {
    font-size: 12px;
    opacity: 0.45;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact {
    min-height: 80vh;

    padding: 160px 7vw 45px;

    display: flex;
    flex-direction: column;
}

.contact h2 {
    margin-bottom: 80px;

    font-size: clamp(70px, 11vw, 165px);
}

.contact-mail {
    width: max-content;

    padding-bottom: 10px;

    font-size: clamp(25px, 4vw, 60px);
    letter-spacing: -0.04em;

    border-bottom: 1px solid #ffffff55;
}

.contact-mail span {
    margin-left: 20px;

    font-size: 0.5em;
}

.contact-footer {
    margin-top: auto;
    padding-top: 60px;

    display: flex;
    justify-content: space-between;

    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;

    opacity: 0.4;
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 750px) {

    /* Navigation */

    .nav {
        height: 68px;
        padding: 0 5vw;
    }

    .nav nav {
        display: none;
    }

    .nav-cta {
        padding: 9px 12px;
    }


    /* Hero */

    .hero {
        padding: 120px 5vw 50px;
    }

    .hero-bottom {
        display: block;
        margin-top: 45px;
    }

    .scroll {
        display: inline-block;
        margin-top: 25px;
    }


    /* Sections */

    .section {
        padding: 100px 5vw;
    }

    .section-head {
        margin-bottom: 55px;
    }


    /* Projects */

    .projects {
        display: block;
    }

    .project {
        margin-bottom: 55px;
    }

    .placeholder,
    .project:not(.project-large) .placeholder,
    .project-wide .placeholder {
        height: 380px;
    }


    /* About */

    .about-grid {
        display: block;
    }

    .about-grid p:last-child {
        margin-top: 45px;
    }


    /* Services */

    .service-list > div {
        grid-template-columns: 45px 1fr;
    }

    .service-list p {
        grid-column: 2;

        margin-top: 7px;
    }


    /* Contact */

    .contact {
        padding: 110px 5vw 35px;
    }

    .contact-mail {
        font-size: 24px;
    }

    .contact-footer {
        gap: 20px;
        flex-direction: column;
    }
}