@import url("../tokens.css");
@import url("../base.css");
@import url("../components/header.css");
@import url("../components/footer.css");

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 56px 80px 40px;
}

.hero__eyebrow {
    margin-bottom: 28px;
}

.hero__title {
    font-size: var(--text-7xl);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero__description {
    font-size: var(--text-lg);
    line-height: 1.75;
    color: var(--ink-2);
    font-weight: 400;
}

.hero__cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero__thumbnail {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--yellow);
}

.hero__thumbnail img {
    width: 100%;
    height: 100%;
    padding: 40px;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
}

.hero__thumbnail:hover img {
    transform: scale(1.04);
}

.gallery {
    padding: 80px 40px 120px;
}

.gallery__header {
    margin-bottom: 48px;
}

.gallery__title {
    font-size: var(--text-5xl);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}

.gallery__meta {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-top: 10px;
}

.gallery__count,
.gallery__count {
    font-family: var(--font-family-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    counter-reset: work;
}

.gallery__card {
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .07), 0 4px 14px rgba(0, 0, 0, .06);
    counter-increment: work;
    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease;
}

.gallery__card:nth-child(odd):hover {
    transform: translateY(-10px) rotate(1.8deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .07), 0 24px 56px rgba(0, 0, 0, .13);
}

.gallery__card:nth-child(even):hover {
    transform: translateY(-10px) rotate(-1.8deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .07), 0 24px 56px rgba(0, 0, 0, .13);
}

.gallery__card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    padding: 22px;
    background: #fff;
}

.gallery__card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

.gallery__card:hover .gallery__card-image img {
    transform: scale(1.04);
}

.gallery__card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 14px;
    border-top: 1px solid rgba(0, 0, 0, .06);
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.3;
}

.gallery__card-title::before {
    content: counter(work, decimal-leading-zero);
    flex-shrink: 0;
    font-family: var(--font-family-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    color: var(--ink-3);
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero__content {
        padding: 72px 40px 36px;
    }

    .hero__title {
        font-size: clamp(3.8rem, 11vw, 6rem);
    }

    .hero__thumbnail {
        min-height: 46vw;
    }

    .gallery {
        padding: 64px 40px 104px;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery__title {
        font-size: clamp(2.6rem, 7vw, 4rem);
    }
}

@media (max-width: 768px) {
    .hero__content {
        padding: 48px 20px 28px;
    }

    .hero__thumbnail {
        display: none;
    }

    .hero__eyebrow {
        margin-bottom: 18px;
    }

    .hero__title {
        font-size: clamp(3rem, 15vw, 4.8rem);
        line-height: 0.95;
    }

    .hero__description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .gallery {
        padding: 52px 20px 84px;
    }

    .gallery__header {
        margin-bottom: 32px;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .gallery__card-title {
        padding: 10px 12px 12px;
    }
}