/* --- SECTION 1: HERO --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    background: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    grid-auto-rows: 60px;
    opacity: 0.7;
    z-index: 1;
    overflow: hidden;
    filter: grayscale(100%) contrast(1.2);
}

.hero-cell {
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    transition: transform 0.3s, opacity 0.3s;
    background: rgba(255, 255, 255, 0.05);
    transition: opacity 2s;
}

.hero-cell:hover {
    transform: scale(1.5);
    z-index: 10;
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: crosshair;
}

#fog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: crosshair;
}

.hero-content {
    z-index: 6;
    /* Above fog (5) */
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    /* Removed container background */
}

.interaction-hint {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
    animation: pulse 3s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

.title-wrapper {
    /* Removed wrapper styling if redundant, but keeping for structure */
    margin-bottom: 1.5rem;
}

.hero-title {
    color: #fff;
    margin: 0;
    background: #000;
    /* Solid black as requested */
    display: inline-block;
    /* Wraps text */
    padding: 0.5rem 1rem;
    box-decoration-break: clone;
    /* Ensures multiline padding works if wrapping */
    -webkit-box-decoration-break: clone;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: #fff;
    background: #000;
    font-size: 1.3rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.25rem 0.75rem;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    /* Slightly larger */
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-style: italic;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
    background: #000;
    display: inline-block;
    padding: 0.25rem 1rem;
    transform: rotate(-2deg);
    /* Jaunty angle */
    box-shadow: 4px 4px 0px #e1306c;
    /* Pop shadow */
}

.hero-tagline em {
    color: #ffd700;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 4px;
}


/* === STORY REPLAY BADGE === */
.story-replay-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 100;
    transition: transform 0.2s, box-shadow 0.2s;
}

.story-replay-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.story-avatar-tiny {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-size: cover;
    border: 2px solid #e1306c;
    /* Insta gradient border sim */
}

.story-replay-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.scroll-prompt {
    z-index: 10;
    color: #f0f0f0;
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s infinite;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}