/* ============================================
   Homepage
   ============================================ */

/* ---- Banner (original astronaut hero) ---- */

.banner {
    position: relative;
    width: 100%;
    height: 37.5rem;
    overflow: hidden;
    background-image: url('../images/banner/banner-1.webp');
    background-size: cover;
    background-position: center;
    box-shadow: 0 0.25rem 2rem rgba(0, 0, 0, 0.6);
}

.banner-text {
    z-index: 3;
    position: absolute;
    top: 20%;
    left: 14%;
    height: 60%;
    width: 60%;
    background-image: url('../images/banner/banner%20tekst-1.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.mascot-head,
.mascot-body {
    position: absolute;
    top: -7.875rem;
    right: 0;
    height: 140%;
    aspect-ratio: 1;
    background-size: cover;
    pointer-events: none;
}

.mascot-head {
    z-index: 2;
    background-image: url('../images/banner/skull%20astronaut%20gl.webp');
    animation: mascotFloat1 4s ease-in-out infinite;
}

.mascot-body {
    z-index: 1;
    background-image: url('../images/banner/skull%20astronaut%20tj.webp');
    animation: mascotFloat2 4s ease-in-out infinite;
}

@keyframes mascotFloat1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-0.625rem) rotate(-1deg); }
}

@keyframes mascotFloat2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-0.9375rem) rotate(1deg); }
}

.banner-actions {
    position: absolute;
    bottom: var(--space-2xl);
    left: 14%;
    z-index: 4;
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
    .mascot-head,
    .mascot-body {
        animation: none;
    }
}

/* ---- Featured Section ---- */

.featured-section {
    padding: var(--space-4xl) 0;
}

.featured-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.featured-header h2 {
    margin-bottom: var(--space-sm);
}

.featured-header p {
    font-family: var(--font-accent);
    font-size: var(--fs-sm);
    color: var(--bone-dim);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.featured-grid .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.featured-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* ---- About Preview ---- */

.about-preview {
    padding: var(--space-4xl) 0;
}

.about-preview-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-3xl);
    align-items: center;
    max-width: var(--content-narrow);
    margin: 0 auto;
}

.about-preview-image {
    width: 24rem;
    flex-shrink: 0;
}

.about-preview-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.about-preview-image .placeholder-icon {
    font-size: var(--fs-4xl);
    color: var(--bone-faint);
}

.about-preview-text h2 {
    margin-bottom: var(--space-md);
}

.about-preview-text p {
    font-size: var(--fs-md);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

/* ---- Commission CTA ---- */

.commission-cta {
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
}

.commission-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(107, 78, 113, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.commission-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 36rem;
    margin: 0 auto;
}

.commission-cta h2 {
    margin-bottom: var(--space-md);
}

.commission-cta p {
    font-size: var(--fs-md);
    margin-bottom: var(--space-xl);
}

/* ---- Responsive ---- */

@media (max-width: 64rem) {
    .banner {
        height: 28rem;
    }

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

    .featured-grid .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 48rem) {
    .banner {
        height: 22rem;
    }

    .banner-text {
        top: 10%;
        left: 5%;
        width: 55%;
        height: 50%;
    }

    .banner-actions {
        left: 5%;
        bottom: var(--space-lg);
    }

    .mascot-head,
    .mascot-body {
        top: -3rem;
        right: -15%;
        height: 120%;
    }

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

    .featured-grid .gallery-item:first-child {
        grid-column: span 2;
    }

    .about-preview-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-preview-image {
        margin: 0 auto;
        width: 18rem;
    }
}

@media (max-width: 30rem) {
    .banner {
        height: 18rem;
    }

    .banner-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .banner-actions .btn {
        font-size: var(--fs-xs);
        padding: 0.5rem 1rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid .gallery-item:first-child {
        grid-column: span 1;
    }
}
