:root {
    --bg: #efefec;
    --text: #011122;
    --muted: #4c4c4c;
    --border: rgba(15, 15, 15, 0.12);
    --gap: 24px;
    --container: 1400px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Hanken Grotesk", sans-serif;
    color: var(--text);
    line-height: 0.98;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    width: 100%;
    height: auto;
}

.page {
    width: 100%;
    padding: 12px 60px 60px;
    position: relative;
}

.topbar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.25fr;
    gap: 20px;
    align-items: start;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 56px;
    color: #011122;
    position: sticky;
    top: 12px;
    z-index: 999;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo h2 {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.descriptor {
    display: flex;
    flex-direction: column;
}

.nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.nav div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nav div:last-child {
    width: fit-content;
    margin-left: auto;
}

.nav a {
    position: relative;
    width: fit-content;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav a:hover::after {
    transform: scaleX(1);
}

.section-label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 64px;
}

.project-header {
    width: 100%;
    display: flex;
    font-family: 'LG Smart', sans-serif;
    margin-bottom: 48px;
}

.project-header div {
    width: 100%;
}

.project-header div a,
.project-header div span {
    font-weight: 600;
    font-size: 14px;
    font-family: 'LG Smart', sans-serif;
    transition: ease all 0.3s;
    padding-bottom: 2px;
}

.project-header a:hover {
    color: rgba(41, 98, 185, 1);
    border-bottom: 1px solid #011122;
}

.project-title {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 32px;
}

.project-meta {
    display: grid;
    gap: 24px;
    margin-bottom: 26px;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
    font-family: 'LG Smart', sans-serif;
}

.mobile-project-meta {
    display: none;
}

.project-copy {
    font-size: 12px;
    font-family: 'LG Smart', sans-serif;
    display: grid;
    gap: 12px;
    font-weight: 500;
}

.project-hero img,
.project-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    margin-top: 28px;
    cursor: none;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #ddd;
}

.gallery-item img,
.gallery-item video {
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease, transform 0.45s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    opacity: 0.8;
    transform: scale(1.01);
}

.gallery .span-6 {
    grid-column: span 6;
}

.gallery .span-4 {
    grid-column: span 4;
}

.gallery .span-3 {
    grid-column: span 3;
}

.gallery .span-8 {
    grid-column: span 8;
}

.gallery .span-12 {
    grid-column: span 12;
}

.cursor-dot {
    position: fixed;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #111;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.18s ease;
    z-index: 40;
    mix-blend-mode: difference;
}

.cursor-dot.active {
    transform: translate(-50%, -50%) scale(1);
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    padding: 70px 0 18px;
}

.site-link {
    font-size: 12px;
    font-weight: 500;
}

.back-to-top {
    border: none;
    background: transparent;
    color: var(--text);
    font-size: clamp(72px, 8vw, 110px);
    line-height: 0.8;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-to-top:hover {
    transform: translateY(-6px);
    opacity: 0.8;
}

@media (max-width: 1100px) {
    .page {
        padding-inline: 30px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .project-copy {
        max-width: 100%;
    }

    .gallery .span-8,
    .gallery .span-6,
    .gallery .span-4,
    .gallery .span-3 {
        grid-column: span 6;
    }
}

@media (max-width: 720px) {
    .page {
        padding-inline: 20px;
    }

    .project-title {
        margin-bottom: 14px;
    }

    .project-meta {
        gap: 18px;
        font-size: 13px;
    }

    .project-copy {
        font-size: 16px;
        line-height: 1.12;
    }

    .gallery {
        gap: 25px;
    }

    .gallery .span-8,
    .gallery .span-6,
    .gallery .span-4,
    .gallery .span-3,
    .gallery .span-12 {
        grid-column: span 12;
    }

    .footer {
        padding-top: 52px;
    }

    .site-link {
        font-size: 16px;
    }

    .back-to-top {
        font-size: 72px;
    }

    .cursor-dot {
        display: none;
    }

    .gallery {
        cursor: default;
    }
}

@media (max-width: 600px) {
    .topbar {
        font-size: 6px;
        gap: 14px;
        margin-bottom: 45px;
    }

    .desktop-project-meta {
        display: none;
    }

    .mobile-project-meta {
        display: grid;
        max-width: 223px;
    }

    .intro-grid {
        gap: 0;
        margin-bottom: 0;
    }

    .gallery {
        margin-top: 12px;
    }

    .gallery .gallery-item:first-child,
    .gallery .gallery-item:nth-child(2) {
        grid-column: span 6;
    }

    .project-hero {
        margin: 26px 0;
    }

    .project-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }

    .logo h2 {
        font-size: 10px;
    }

    .nav div {
        gap: 4px;
    }

    .page {
        padding-bottom: 40px;
    }
}