﻿/* ==========================================================
   RESET
========================================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    -ms-overflow-style: none;
    font-family: "Inter", Arial, sans-serif;
    background: var(--light);
    color: var(--dark);
}


/* ==========================================================
   VARIABLES
========================================================== */

:root {
    --blue:         rgb(102, 124, 166);
    --purple:       rgb(161, 136, 162);
    --light-blue:   rgb(118, 153, 184);
    --light:        rgb(235, 234, 230);
    --dark:         rgb(25, 29, 38);
    --muted:        rgb(91, 100, 117);
    --footer-color: rgb(48, 59, 79);

    --page-padding: clamp(25px, 3vw, 55px);
    --intro-margin: 11vh;
    }

/* ==========================================================
   HEADER
========================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px var(--page-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    pointer-events: none;
}

.header > * {
    pointer-events: auto;
}

.header .nav a {
    color: var(--light);
    transition: opacity .35s ease, transform .35s ease;
    transform-origin: center;
}

.header .nav a:hover {
    transform: scale(1.06);
    text-shadow: 0 0 5px currentColor,
        0 0 16px currentColor;
}

.header .logo img {
    transition: opacity .35s ease, transform .35s ease;
}

.header .logo:hover img {
    transform: scale(1.06);
    filter: drop-shadow(0 0 4px rgba(235, 234, 230, .8))
        drop-shadow(0 0 15px rgba(235, 234, 230, .55));
}

.header.light-header .nav a {
    color: var(--blue);
}

.header.light-header .logo img {
    filter: brightness(0) saturate(100%) invert(45%) sepia(16%) saturate(850%) hue-rotate(182deg) brightness(88%) contrast(88%);
}

.header.light-header .logo:hover img {
    filter: brightness(0) saturate(100%) invert(45%) sepia(16%) saturate(850%) hue-rotate(182deg) brightness(88%) contrast(88%)
        drop-shadow(0 0 4px var(--blue))
        drop-shadow(0 0 15px var(--blue));
}


/* ==========================================================
   LOGO
========================================================== */

.logo {
    width: 50px;
    height: 50px;
    display: block;
}

.logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}


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

.nav {
    display: flex;
    gap: 60px;
    font-size: 20px;
    font-weight: 900;
    margin-top: 10px;
}

.nav a {
    color: var(--light);
    text-decoration: none;
    opacity: .75;
    text-transform: uppercase;
}

.nav a:hover {
    opacity: 1;
}


/* ==========================================================
   INTRO
========================================================== */

.intro-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--blue);
}


/* ==========================================================
   TYPOGRAPHY FIELD
========================================================== */

.typography-field {
    position: absolute;
    top: var(--intro-margin);
    bottom: var(--intro-margin);
    left: var(--page-padding);
    width: calc(100% - (var(--page-padding) * 2));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    overflow: hidden;
}

.type-row {
    position: relative;
    display: block;
    width: 100%;
    overflow: visible;
    white-space: nowrap;
    flex-shrink: 0;
}

.type-row span {
    display: inline-block;
    white-space: nowrap;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    color: var(--purple);
    will-change: color;
}

.type-row,
.type-row span {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.primary span   { font-weight: 700; }
.secondary span { font-weight: 600; }
.tertiary span  { font-weight: 500; }

.intro-scroll {
    position: absolute;
    right: var(--page-padding);
    bottom: 30px;
    color: var(--light);
    text-decoration: none;
    font-size: 10px;
    letter-spacing: .12em;
    opacity: .7;
}


/* ==========================================================
   GENERAL SECTIONS
========================================================== */

.section {
    padding: 90px var(--page-padding);
    width: 100%;
}

.section-content {
    width: 90%;
    max-width: 1700px;
    margin: 0 auto;
}

.section-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
}

.eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: 25px;
}

h2 {
    font-size: clamp(30px, 5vw, 45px);
    line-height: .95;
    font-weight: 500;
    letter-spacing: -.04em;
}

.section-intro {
    max-width: 450px;
    font-size: clamp(12px, 2vh, 17px);
    color: var(--muted);
}

.section-intro-services {
    max-width: 450px;
    font-size: clamp(12px, 2vh, 17px);
    color: var(--light);
}


/* ==========================================================
   WORK
========================================================== */

.work-section {
    background: var(--light);
    color: var(--dark);
    min-height: 100vh;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.project-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--light-blue);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, object-position 0.7s ease;
    display: block;
    will-change: transform, object-position;
}

/* Normal images */
.project-image:hover img {
    transform: scale(1.05);
}


.project-image-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project--lenovo .project-image-link,
.project--tall .project-image-link {
    display: flex;
    flex: 1;
    min-height: 0;
}

.project--lenovo .project-image-link .project-image,
.project--tall .project-image-link .project-image {
    flex: 1;
    min-height: 0;
}

.project-info {
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 10px;
    z-index: 2;

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

.project-title,
.project-meta {
    position: relative;
    isolation: isolate;
}

.project-title::before,
.project-meta::before {
    content: "";
    position: absolute;
    inset: -5px -10px;
    z-index: -1;
}

.project-title { 
    font-size: clamp(11px, 2.2vh, 16px);
    font-weight: 600;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
}

.project-meta {
    font-size: clamp(7px, 1.2vh, 9px);
    font-weight: 300;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
}

/* --- project size classes --- */

/* Wide: 2-col, half-height (8:3) */
.project--wide .project-image { aspect-ratio: 8 / 3; }

/* Tall: 1-col, fills row height */
.project--tall { display: flex; flex-direction: column; }
.project--tall .project-image { flex: 1; aspect-ratio: unset; min-height: 0; }

/* Large and Small use the default 4:3 aspect-ratio */

/* --- project grid placement --- */

.project--nhm    { grid-column: 1 / 3; grid-row: 1; }
.project--lenovo { grid-column: 3 / 5; grid-row: 1 / 3; display: flex; flex-direction: column; }
.project--lenovo .project-image { flex: 1; aspect-ratio: unset; min-height: 0; }

.project--kamp { grid-column: 1; grid-row: 2; }
.project--lodc { grid-column: 2; grid-row: 2; }

.project--ptc  { grid-column: 1 / 3; grid-row: 3; }
.project--gce  { grid-column: 3;     grid-row: 3; }
.project--tiid { grid-column: 4;     grid-row: 3; }




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

.services-section {
    background: var(--blue);
    color: var(--light);
    height: auto;
    min-height: 50vh;
    padding-top: clamp(20px, 10.6vh, 90px);
    padding-bottom: clamp(20px, 10.6vh, 90px);
}

.services-section .section-header {
    margin-bottom: clamp(20px, 7vh, 60px);
}

.services-section .eyebrow {
    color: rgba(235, 234, 230, .6);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;

    
}

.service {
    border-top: 1px solid rgba(235, 234, 230, .25);
    padding-top: 5px;
}

.service-number {
    display: block;
    margin-bottom: clamp(3px, 1.18vh, 10px);
    opacity: .5;
}

.service h3 { 
    font-size: clamp(13px, 2.35vh, 20px);
    margin-bottom: clamp(3px, 1.18vh, 10px);
 }

.service p {
    font-size: clamp(10px, 1.65vh, 14px);
    color: rgba(235, 234, 230, .7);
}


/* ==========================================================
   ABOUT
========================================================== */
.about-section {
    background: var(--light);
    color: var(--dark);
    height: auto;
    min-height: 50vh;
    padding-top: clamp(20px, 10.6vh, 90px);
    padding-bottom: clamp(20px, 10.6vh, 90px);

    display: flex;
    align-items: center;
}

.about-grid {
    width: 100%;
    max-width: min(90vw, 2100px);
    margin: 0 auto;
    padding: 0 var(--page-padding);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: clamp(50px, 6vw, 100px);
    align-items: center;
    justify-content: center;
}

.about-image {
    max-width: 90%;
    justify-self: center;
}

.about-image img {
    height: min(30vh, 600px);
    width: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.about-text {
    width: min(40vw, 1000px);
    justify-self: center;
}

.about-text p {
    font-size: clamp(12px, 1.88vh, 16px);
    line-height: 1.45;
    margin-bottom: clamp(4px, 1.18vh, 10px);
    text-align: justify;
    text-align-last: left;
}

.about-text h2 {
    font-size: clamp(30px, 5vw, 45px);
    line-height: .95;
    font-weight: 500;
    letter-spacing: -.04em;
}


.about-text p:last-child {
    margin-bottom: 0;
}

.about-heading-second {
    display: inline-block;
    margin-top: .8em;
    
}


/* ==========================================================
   CONTACT + FOOTER
========================================================== */

.contact-section {
    padding: 30px var(--page-padding) 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--blue);
    color: var(--light);
}

.contact-inner {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-inner {
    width: 100%;
    max-width: none;
    margin: 0;
}


.contact-hero {
    display: flex;
    align-items: center;
    gap: clamp(40px, 25.9vh, 220px);
    width: 100%;
}

.contact-h2-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.contact-section {
    padding: 10px var(--page-padding) 18px;
}

.contact-section h2 {
    font-size: clamp(24px, min(8vw, 10.6vh), 90px);
    line-height: .88;
    font-weight: 500;
    letter-spacing: -.05em;
    max-width: 1400px;
    flex-shrink: 0;
    margin-left: var(--page-padding);
}

.contact-logo-wrap {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: var(--page-padding);
}


.contact-logo {
    height: calc(3 * clamp(28px, min(8vw, 15.3vh), 130px));
    width: auto;
    object-fit: contain;
}

.contact-email {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 0;
    position: absolute;
    left: 0;
    bottom: 0;
    line-height: 1.05;
    color: var(--light);
    margin-left: var(--page-padding);
}

.contact-email-label {
    font-size: clamp(13px, 2.47vh, 21px);
    letter-spacing: .04em;
    opacity: .8;
}

.contact-email-address {
    font-size: clamp(18px, 4vh, 34px);
    color: var(--light);
    text-decoration: none;
    transition: opacity .3s ease, transform .3s ease;
    transform-origin: left center;
}

.contact-email-address:hover {
    opacity: .65;
    transform: scale(1.04);
}

.contact-footer {
    width: 100%;
    max-width: 1500px;
    margin: clamp(8px, 2.35vh, 20px) auto 0;
    padding-top: clamp(8px, 2.35vh, 20px);
    border-top: 1px solid rgba(235, 234, 230, .3);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: clamp(9px, 1.29vh, 11px);
    color: rgba(235, 234, 230, .65);
}

.contact-footer-left,
.contact-footer-right {
    display: flex;
    gap: 30px;
}

.contact-footer a {
    color: var(--light);
    text-decoration: none;
    transition: opacity .3s ease, text-shadow .3s ease;
}

.contact-footer a:hover {
    opacity: .6;
    text-shadow: 0 0 5px currentColor,
        0 0 14px currentColor;
}

.contact-footer a img {
    width: 14px;
    height: 14px;
    display: block;
}

/* ==========================================================
   CREDITS PAGE
========================================================== */

.credits-page {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding: 35px var(--page-padding);
    background: var(--light);
    color: var(--dark);
    display: flex;
    flex-direction: column;
}

.credits-back {
    color: var(--blue);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    flex-shrink: 0;
}

.credits-content {
    max-width: 1100px;
    margin: auto 0;
}

.credits-content .eyebrow {
    color: var(--blue);
    margin-bottom: 25px;
}

.credits-content h1 {
    font-size: clamp(50px, 8vw, 120px);
    line-height: .85;
    font-weight: 500;
    letter-spacing: -.05em;
    margin-bottom: 50px;
}

.credits-text {
    max-width: 650px;
    font-size: 16px;
    line-height: 1.5;
}

.credits-text p { margin-bottom: 20px; }


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px), (hover: none) and (orientation: landscape) and (max-height: 600px) {

    :root { --intro-margin: 13vh; }

    .header {
        padding-top: 18px;
        align-items: flex-start;
    }

    .header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 90px;
        background: linear-gradient(
            to bottom,
            rgba(102, 124, 166, 1) 0%,
            rgba(102, 124, 166, .65) 0%,
            rgba(102, 124, 166, 0) 100%
        );
        pointer-events: none;
        z-index: 0;
    }

    .header.light-header::before {
        background: linear-gradient(
            to bottom,
            rgba(235, 234, 230, 1) 0%,
            rgba(235, 234, 230, .65) 50%,
            rgba(235, 234, 230, 0) 100%
        );
    }

    .header > * {
        position: relative;
        z-index: 1;
    }

    .nav {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
        margin-top: 0;
        font-size: 13px;
        line-height: 1;
    }

    .intro-scroll {
        display: none;
    }

    .section-header,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        width: 80%;
        margin: auto;
        max-width: none;
        justify-self: stretch;
    }

    .about-section {
        display: block;
        height: auto;
        min-height: 0;
        overflow: visible;
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .about-section .section-content {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .about-grid {
        max-width: none;
        padding: 0;
        gap: 36px;
        align-items: start;
    }

    .about-text {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.5;
        text-align: left;
    }

    .about-image img {
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 4 / 5;
        border-radius: 12px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .project--nhm, .project--lenovo, .project--kamp,
    .project--lodc, .project--ptc, .project--gce, .project--tiid {
        grid-column: auto;
        grid-row: auto;
        margin-top: 0;
        display: block;
    }

    .project--tall { display: block; }

    .project--wide .project-image,
    .project--tall .project-image,
    .project--large .project-image { aspect-ratio: 4 / 3; }



    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }

    .services-section {
        height: auto;
        min-height: 0;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .services-section .section-header {
        margin-bottom: 40px;
    }

    .service h3 {
        font-size: 17px;
    }

    .service p {
        font-size: 13px;
        line-height: 1.4;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

.contact-section {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;

    padding: 10px var(--page-padding) 12px;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
    overflow: hidden;

    background: var(--blue);
    color: var(--light);
}

.contact-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;

    flex: 1 1 auto;
    min-height: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-hero {
    width: 100%;

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

    gap: 25px;
}

.contact-section h2 {
    font-size: clamp(25px, 8vw, 40px);
    text-align: center;
    margin: 0;
}

.contact-logo-wrap {
    flex: 0 0 auto;
    width: auto;
}

.contact-logo {
    width: clamp(90px, 35vw, 140px);
    height: clamp(90px, 35vw, 140px);
    margin: 40px 0;
}

.contact-email {
    position: static;
    margin: 30px 0 0;
    align-items: center;
    text-align:center;
}

.contact-email-label {
    font-size: 15px;
}

.contact-email-address {
    font-size: clamp(16px, 7vw, 25px);
    overflow-wrap: anywhere;
}

.contact-footer {
    width: 100%;
    flex: 0 0 auto;

    margin: 0;
    padding: 15px 0 0;

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

    box-sizing: border-box;

    font-size: 10px;
}

.contact-footer-left {
    white-space: nowrap;
    flex-shrink: 0;
}

.contact-footer-right {
    display: flex;
    gap: 8px 12px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}


}


@media (hover: none) {
    .header .nav a:hover,
    .contact-email-address:hover,
    .contact-footer a:hover {
        opacity: inherit;
        transform: none;
        text-shadow: none;
    }

    .header .logo:hover img {
        transform: none;
        filter: none;
    }

    .header.light-header .logo:hover img {
        filter: brightness(0) saturate(100%) invert(45%) sepia(16%) saturate(850%) hue-rotate(182deg) brightness(88%) contrast(88%);
    }

    .custom-cursor,
    .cursor-pulse,
    .cursor-trail-canvas,
    .typography-spotlight {
        display: none !important;
    }
}