:root {
    --carbon: #111111;
    --almond: #EADDCA;
    --ember: #C7352A;
}

@font-face {
    font-family: "DotStudio";
    src: url("assets/fonts/DotStudio-Regular.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Barlow";
    src: url("assets/fonts/Barlow-Medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Barlow";
    src: url("assets/fonts/Barlow-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--carbon);
    color: var(--almond);
    font-family: "Barlow", sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(1600px, 92%);
    margin: auto;
}

/* HEADER */

.site-header {
    background: var(--carbon);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.site-header .container {
    width: min(1600px, 96.5%);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.small-logo {
    width: 30px;
    height: auto;
}

.nav {
    display: flex;
    gap: 22px;
}

.nav a {
    color: var(--almond);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 13px;
}

/* HERO */

.hero {
    background: url("assets/images/BG-4-Compressed.jpg") center / cover no-repeat;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
}

.hero-inner {
    text-align: center;
    padding: 12px 0;
}

.hero-logo {
    width: 640px;
    max-width: 88%;
    margin: auto;
    filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .16));
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    font-family: "DotStudio";
    font-size: clamp(14px, 1.55vw, 20px);
    letter-spacing: 1px;
    color: #111;
}

/* PROJECTS */

.projects {
    position: relative;
    background: var(--carbon);
    overflow: visible;
    padding: 100px 0 120px;
}

.projects::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("assets/images/Geometry Grid Patterns.png") center / 600px auto repeat;
    opacity: .15;
    pointer-events: none;
}

.projects .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(28px, 4vw, 46px);
    max-width: 900px;
    margin: 0 0 60px;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.04;
}

.section-subtitle {
    font-size: clamp(20px, 2.2vw, 26px);
    margin: 0 0 40px;
    text-transform: uppercase;
}

.projects-scroll {
    display: flex;
    justify-content: center;
    gap: 64px;
    overflow-x: auto;
    padding: 0 max(4%, 16px) 40px;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
}

.projects-scroll::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 460px;
    min-height: 360px;
    background: var(--carbon);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 10px;
    overflow: hidden;
}

.project-card-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.project-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 800;
}

.project-description {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
    opacity: .85;
}

.project-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .9);
    text-transform: uppercase;
    white-space: nowrap;
}

.project-cta {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: var(--almond);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
    transition: transform .15s ease, background .15s ease;
    margin: 16px auto 0;
    max-width: 190px;
    width: fit-content;
}

.project-cta-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.project-cta-group .project-cta {
    margin: 0;
}

.project-cta:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-1px);
}

.project-cta:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, .18);
}

/* CAROUSEL */

.carousel {
    position: relative;
    flex: 1;
}

.carousel-track {
    display: flex;
    overflow: hidden;
    border-radius: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 4px;
}

.screenshot {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, .25);
    color: var(--almond);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: transform .15s ease, background .15s ease;
}

.carousel-btn:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.75);
}

.carousel-btn:active {
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.85);
}

.carousel-btn.prev {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.carousel-btn.next {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

/* 3D48 side-by-side screenshots */

.screenshots-pair {
    display: flex;
    justify-content: center;
    flex: 1;
    gap: 8px;
    padding: 2px;
}

.screenshot-vertical {
    flex: 0 0 auto;
    height: 250px;
    aspect-ratio: 9/16;
    width: auto;
    object-fit: cover;
    object-position: center top;
}

/* CONTACT */

.contact {
    background: var(--almond);
    color: var(--carbon);
    overflow: hidden;
}

.contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    gap: 32px;
}

.contact h2 {
    color: var(--ember);
    font-size: clamp(26px, 2.5vw, 32px);
    margin: 0 0 12px;
    text-transform: uppercase;
}

.contact-email {
    margin: 0;
    font-size: clamp(18px, 1.9vw, 24px);
    font-weight: 800;
}

.contact-email a {
    text-decoration: none;
}

.contact-location {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .45;
}

.footer-logo-red {
    width: clamp(80px, 13vw, 180px);
    flex-shrink: 0;
    pointer-events: none;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .hero-logo {
        width: 560px;
    }

    .section-title {
        margin-bottom: 48px;
    }

}

@media (max-width: 640px) {

    .hero {
        min-height: 200px;
    }

    .hero-meta {
        gap: 20px;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .projects {
        padding: 72px 0 90px;
    }

    .projects-scroll {
        flex-direction: column;
        align-items: center;
        gap: 32px;
        padding: 0 4% 40px;
        overflow-x: visible;
    }

    .project-card {
        flex: none;
        width: 100%;
        max-width: 440px;
        min-height: unset;
    }

    .screenshot {
        height: 200px;
    }

    .contact-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 0;
        gap: 16px;
    }

    .footer-logo-red {
        width: 100px;
    }

}
