.work-intro {
    background-color: #f2f2f2;
    /* Slightly darker than footer #fafafa */
    min-height: 80vh;
    /* Increased height */
    padding: 6rem 4rem 0 4rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    z-index: 2;
}

.intro-heading {
    font-family: var(--font-body);
    font-size: 3.5rem;
    font-weight: 600;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 0;
    /* Remove gap between lines */
    letter-spacing: -0.03em;
    /* Tighter tracking */
    display: inline-block;
    color: #ccc;
    /* Initial grey */
    /* Gradient removed for JS letter-by-letter control */
}

.intro-heading span {
    color: #ccc;
}

/* Add space after the last heading */
.intro-heading:last-of-type {
    margin-bottom: 2rem;
}

/* Base style for lines */
.intro-text {
    font-family: var(--font-body);
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.1;
    /* Tighter line height */
    margin: 0;
    letter-spacing: -0.03em;
    /* Tighter tracking like reference */
}

.reveal-line {
    display: block;
    /* Block to allow lines to be distinct */
    color: #ccc;
    /* Initial grey */
    padding-bottom: 5px;
    /* Adjust spacing between lines if needed */
}

/* Character animation readiness */
.reveal-line span {
    color: #ccc;
    /* Start gray */
}

.work-intro-text {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    font-size: 28vw;
    /* Oversized */
    color: #ffffff;
    line-height: 0.8;
    margin: 20vh 0 0 0;
    /* Significantly more spacing */
    white-space: nowrap;
    font-weight: bold;
    letter-spacing: -0.05em;
    pointer-events: none;
    font-style: italic;
    /* Italics */
    text-align: center;
    transform: translateY(35%);
    /* Cut off */
    width: 100%;
}

@media (max-width: 768px) {
    .work-intro {
        padding: 4rem 2rem 0 2rem;
        min-height: 60vh;
    }

    .intro-heading,
    .intro-text {
        font-size: 1.75rem;
        /* Reduced from 2rem to prevent overflow */
        word-wrap: break-word;
        /* Ensure distinct long words don't overflow */
    }
}