/* ============================================================
   INDEX — HERO (fullscreen, centered logo, character to the side)
   ============================================================ */

.hero {
    position: relative;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg);
    border-bottom: 1px solid var(--border-subtle);
}

/* Subtle grid pattern in the background */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    pointer-events: none;
}

/* Three animated horizontal accent lines — the signature element */
.hero-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-lines span {
    position: absolute;
    left: -20%;
    width: 140%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-dim-mid) 30%,
        var(--accent-light) 50%,
        var(--accent-dim-mid) 70%,
        transparent 100%
    );
    opacity: 0;
    animation: lineSlide 6s ease-in-out infinite;
}

.hero-lines span:nth-child(1) {
    top: 28%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.hero-lines span:nth-child(2) {
    top: 50%;
    animation-delay: 2.4s;
    animation-duration: 6s;
    opacity: 0;
}

.hero-lines span:nth-child(3) {
    top: 72%;
    animation-delay: 4.8s;
    animation-duration: 8s;
}

@keyframes lineSlide {
    0%   { opacity: 0; transform: translateX(-10%); }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { opacity: 0; transform: translateX(10%); }
}

/* Center content */
.hero-center {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    animation: heroFadeIn 0.9s var(--ease-out) both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Banner image — wide 16:9, transparent, no box */
.hero-banner-img {
    width: min(520px, 88vw);
    aspect-ratio: 16 / 9;
    object-fit: contain;
    margin-bottom: 24px;
    display: block;
}

/* Tagline */
.hero-tagline {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: var(--text-2xl);
    font-style: italic;
    font-weight: 400;
    color: var(--ink-secondary);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
    line-height: 1.3;
    max-width: 400px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Character image — right side, partially cropped, delayed fade-in */
.hero-character {
    position: absolute;
    right: -20px;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
    animation: characterFade 1.2s var(--ease-out) 0.5s both;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 25%,
        black 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 25%,
        black 100%
    );
}

.hero-character img {
    height: min(70vh, 460px);
    width: auto;
    object-fit: contain;
    object-position: bottom;
    display: block;
    opacity: 0.75;
    filter: saturate(0.85);
}

@keyframes characterFade {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   FEATURED PROJECTS SECTION
   ============================================================ */

.featured-section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--ink-primary);
    letter-spacing: -0.01em;
    margin-top: 4px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.featured-cta {
    display: flex;
    align-items: center;
}

.featured-cta .btn img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    opacity: 0.45;
    transition: transform var(--duration-fast);
}

.featured-cta .btn:hover img {
    transform: translateX(3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .hero-character {
        right: -40px;
        opacity: 0.35;
    }

    .hero-character img {
        height: min(55vh, 320px);
        opacity: 0.6;
    }
}

@media (max-width: 600px) {
    .hero-logo-img {
        width: 78px;
        height: 78px;
    }

    .hero-tagline {
        font-size: var(--text-xl);
    }

    .hero-character {
        display: none;
    }

    .featured-section {
        padding: 56px 0;
    }

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