/* ── HERO ── */
.hero {
    position: relative;
    height: calc(100vh - 100px);
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    backface-visibility: hidden;
}

/* Mosaic background */
.hero-bg {
    position: absolute;
    inset: -40px;
    display: flex;
    gap: 5px;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
}

/* Glow duplicate — lighten blend gives the Zen Garden dreamy effect */
.hero-glow {
    position: absolute;
    inset: -40px;
    pointer-events: none;
    background: inherit;
    mix-blend-mode: lighten;
    opacity: 0.18;
    background: radial-gradient(ellipse at 50% 40%, rgba(255, 102, 0, 0.25) 0%, rgba(233, 30, 140, 0.15) 40%, transparent 70%);
    z-index: 1;
}

.mosaic-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    will-change: transform;
}

.mosaic-col[data-dir="up"]   { animation: heroScrollUp   35s linear infinite; }
.mosaic-col[data-dir="down"] { animation: heroScrollDown 35s linear infinite; }

.mosaic-col:nth-child(even) { margin-top: -80px; }
.mosaic-col:nth-child(3)    { animation-duration: 28s; }
.mosaic-col:nth-child(5)    { animation-duration: 40s; }

@keyframes heroScrollUp   { from { transform: translateY(0);    } to { transform: translateY(-50%); } }
@keyframes heroScrollDown { from { transform: translateY(-50%); } to { transform: translateY(0);    } }

.mosaic-img,
.mosaic-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 3px;
    flex-shrink: 0;
}

.mosaic-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1)    0%,
        rgba(0, 0, 0, 0.80) 50%,
        rgba(0, 0, 0, 0.96) 100%
    );
}

/* Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 820px;
    width: 100%;
}

.hero .hero-content .hero-headline {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(32px, 5vw, 62px);
    font-weight: 300 !important;
    color: #ffffff !important;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 44px;
}

/* Typewriter cursor */
.tw-cursor {
    display: inline-block;
    font-weight: 300;
    color: #fff;
    margin-left: 2px;
    text-shadow:
        0 0 4px  #fff,
        0 0 10px #fff,
        0 0 20px #ff6600,
        0 0 40px #ff6600,
        0 0 70px #e60067,
        0 0 100px #e60067;
    animation: twBlink 0.6s step-end infinite;
}

@keyframes twBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* CTA form */
.hero-cta {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 7px 7px 7px 24px;
    max-width: 640px;
    margin: 0 auto;
    gap: 8px;
}

.hero-cta input {
    flex: 1;
    border: none;
    outline: none;
    font-family: Arial, sans-serif;
    font-size: 15px;
    color: #333;
    background: transparent;
    min-width: 0;
}

.hero-cta input::placeholder { color: #aaa; }

.hero-cta button {
    flex-shrink: 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mosaic-col { animation: none !important; }
    .hero { transform: none !important; will-change: auto; }
}

/* Mobile */
@media (max-width: 600px) {
    .hero-bg { gap: 3px; }
    .mosaic-col:nth-child(n+4) { display: none; } /* 3 cols on mobile */

    .hero-cta {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px 16px;
    }

    .hero-cta button {
        width: 100%;
        text-align: center;
    }
}
