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

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    color: #000;
    line-height: 1.5;
    overflow-x: hidden;
    background: #fff;
}

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

/* =========================
   GLOBAL LAYOUT
========================= */

:root {
    --site-width: 1200px;
    --site-gutter-desktop: 24px;
    --site-gutter-mobile: 16px;
    --space-hero-desktop: 48px;
    --space-hero-mobile: 32px;
    --space-section-desktop: 32px;
    --space-section-mobile: 24px;
}

.site-header,
.site-main {
    width: min(var(--site-width), calc(100% - (var(--site-gutter-desktop) * 2)));
    margin-inline: auto;
}

.site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
}

.site-main {
    padding-bottom: 60px;
}

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

.site-logo {
    display: inline-block;
    text-decoration: none;
}

.site-logo img {
    display: block;
    height: 100px;
    width: auto;
}

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

.hero {
    margin-bottom: 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
}

.card {
    grid-column: span 6;
    display: block;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.card:hover .thumb img {
    transform: scale(1.03);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.06));
}

.title {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    font-size: 22px;
    font-weight: 600;
}

/* =========================
   PROJECT PAGE
========================= */

.back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(0, 0, 0, 0.82);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

h1 {
    margin: 0 0 16px;
    font-family: "Ultra", serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(36px, 7vw, 76px);
    line-height: 0.95;
    
}

.project-hero-media {
    width: 100%;
    margin-bottom: var(--space-hero-desktop);
}

.project-hero-media img {
    width: 100%;
    height: auto;
}

.project-intro {
    margin: 0 0 16px;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.45;
}

.intro-copy {
    margin-bottom: var(--space-hero-desktop);
}

.project-section {
    margin-bottom: var(--space-section-desktop);
}

.project-section:last-child {
    margin-bottom: 0;
}

.project-section-image {
    width: 100%;
}

.project-section h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.project-section-text {
    font-size: 18px;
    line-height: 1.7;
}

.project-section-text p {
    margin: 0 0 16px;
}

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

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

@media (max-width: 900px) {
    .site-header,
    .site-main {
        width: min(var(--site-width), calc(100% - (var(--site-gutter-mobile) * 2)));
    }

    .site-main {
        padding-bottom: 40px;
    }

    .grid {
        gap: 16px;
    }

    .card {
        grid-column: span 12;
    }

    .back {
        margin-bottom: 16px;
    }

    .project-hero-media {
        margin-bottom: var(--space-hero-mobile);
    }

    .intro-copy {
        margin-bottom: var(--space-hero-mobile);
    }

    .project-section {
        margin-bottom: var(--space-section-mobile);
    }

    .project-section-text {
        font-size: 17px;
    }
}