.typewriter-line {
    font-size: clamp(1.45rem, 4vw, 3rem);
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    min-width: 22ch;
}

.typewriter-text{
    color: var(--c-green);
}

.cursor {
    font-weight: bold;
    color: var(--c-green);
    transition: opacity 0.2s ease-in-out;

    &.blinking {
    animation: blink 0.85s ease-in-out infinite;
    }

    &.isHidden {
        display: none;
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; color: var(--c-green);}
}

/* ---------------------- Layout ---------------------- */
.typewriter-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: space-between;
    gap: 0rem;
    margin-top: min(10%, 80px);  
}

.typewriter-container {
    grid-column: 1;
    justify-self: start;
}

.typewriter-body {
    margin-top: 1rem;
    max-width: 65ch;
    color: var(--c-text-secondary);
}

.hero-logo {
    width: 700px;
    max-height: 700px;
    order: 3;
    max-width: 100%;
    justify-self: end;
    margin-bottom: var(--xxl);

    min-height: 70vh;
}

@media (max-width: 900px) {
    .typewriter-grid{
        grid-template-columns: 1fr;
    }

    .typewriter-container {
        order: 2;
        margin-bottom: 40px;
    }

    .hero-logo {
        order: 1;
        max-height: 250px;
        margin-bottom: -20px;
        justify-self: center;
        min-height: 0;
    }
}