/* ═══════════════════════════════════════════════════════════════
   REALITY FRACTURE — Hero / Entry Portal
   ═══════════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ── Background ────────────────────────────────────────────── */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    animation: float-drift 30s ease-in-out infinite;
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.85) 100%),
        linear-gradient(180deg, rgba(6, 6, 18, 0.3) 0%, transparent 30%, transparent 70%, rgba(6, 6, 18, 0.9) 100%);
}

.hero__bg-grain {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
    opacity: 0.5;
    pointer-events: none;
}

/* ── Glowing Frame ─────────────────────────────────────────── */
.hero__frame {
    position: absolute;
    inset: 40px;
    z-index: 3;
    pointer-events: none;
}

.hero__frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    animation: corner-glow 4s ease-in-out infinite;
}

.hero__frame-corner--tl {
    top: 0; left: 0;
    border-top: 1px solid var(--electric-blue);
    border-left: 1px solid var(--electric-blue);
}

.hero__frame-corner--tr {
    top: 0; right: 0;
    border-top: 1px solid var(--electric-blue);
    border-right: 1px solid var(--electric-blue);
    animation-delay: 1s;
}

.hero__frame-corner--bl {
    bottom: 0; left: 0;
    border-bottom: 1px solid var(--electric-blue);
    border-left: 1px solid var(--electric-blue);
    animation-delay: 2s;
}

.hero__frame-corner--br {
    bottom: 0; right: 0;
    border-bottom: 1px solid var(--electric-blue);
    border-right: 1px solid var(--electric-blue);
    animation-delay: 3s;
}

.hero__frame-line {
    position: absolute;
    background: var(--electric-blue);
    opacity: 0.08;
}

.hero__frame-line--top {
    top: 0; left: 30px; right: 30px;
    height: 1px;
}

.hero__frame-line--bottom {
    bottom: 0; left: 30px; right: 30px;
    height: 1px;
}

.hero__frame-line--left {
    left: 0; top: 30px; bottom: 30px;
    width: 1px;
}

.hero__frame-line--right {
    right: 0; top: 30px; bottom: 30px;
    width: 1px;
}

/* ── Content ───────────────────────────────────────────────── */
.hero__content {
    position: relative;
    z-index: var(--z-content);
    text-align: center;
    padding: var(--sp-6);
    animation: portal-open 2s var(--ease-out-expo) forwards;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--electric-blue);
    text-transform: uppercase;
    margin-bottom: var(--sp-6);
    padding: 4px 16px;
    border: 1px solid var(--electric-blue-dim);
    animation: pulse-border 4s ease-in-out infinite;
}

.hero__label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--electric-blue);
    box-shadow: 0 0 8px var(--electric-blue-glow);
    animation: dot-blink 2s ease-in-out infinite;
}

.hero__title {
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: var(--sp-5);
}

.hero__title-line {
    display: block;
}

.hero__title-italic {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    color: var(--electric-blue);
    position: relative;
}

.hero__title-italic::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
    opacity: 0.4;
}

.hero__subtitle {
    font-size: clamp(var(--text-base), 2vw, var(--text-xl));
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto var(--sp-8);
    font-weight: 300;
}

.hero__ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

/* ── Scroll Indicator ──────────────────────────────────────── */
.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    z-index: var(--z-content);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: var(--electric-blue);
    animation: scroll-line 2s ease-in-out infinite;
}

.hero__scroll-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero__frame {
        inset: 16px;
    }

    .hero__frame-corner {
        width: 20px;
        height: 20px;
    }

    .hero__content {
        padding: var(--sp-3);
    }

    .hero__label {
        font-size: 0.6rem;
        margin-bottom: var(--sp-4);
    }

    .hero__subtitle {
        font-size: var(--text-sm);
    }

    .hero__ctas {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}
