/* Index page only — bio, carousel, playground, contact/footer */

.bio {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--grid-gap);
    padding: 0 var(--site-margin);
    margin-top: 65vh;
    margin-bottom: 2rem;
}

.bio-content {
    grid-column: 1 / span 8;
}

.bio-content p {
    font-family: var(--font-main);
    font-size: var(--font-size--p1);
    font-weight: 375;
    line-height: 1.45;
    color: var(--grey);
    margin-top: 4.5vh;
}

.bio-image {
    grid-column: 9 / span 4;
    margin-top: 5vh;
}

.bio-image img {
    width: 100%;
    height: 90%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.work {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.work h1,
.work-heading {
    font-family: var(--font-main);
    font-size: var(--font-size-h1);
    padding: 0 var(--site-margin);
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0;
}

.work-header {
    width: 100%;
    margin-bottom: 6rem;
}

.work-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.playground-header {
    position: relative;
    z-index: 1;
    margin-top: 3rem;
    margin-bottom: 0;
    width: 100%;
}

.playground-header h1 {
    font-family: var(--font-main);
    font-size: var(--font-size-h1);
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding: 0 var(--site-margin);
    text-align: left;
}

.playground-header h1 a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
}

.playground-arrow-svg {
    height: 0.75em;
    width: auto;
    display: inline-block;
    fill: var(--black);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.playground-header h1 a:hover .playground-arrow-svg {
    transform: rotate(-45deg);
}

.site-footer-wrapper {
    position: relative;
    width: 100%;
    margin-top: 0rem;
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100dvh - var(--nav-height));
    padding-bottom: var(--site-margin);
    box-sizing: border-box;
    margin-bottom: var(--site-margin);
}

/*carousel*/

.work-pin-panel {
    position: relative;
    width: 100%;
    padding-bottom: calc(var(--index-bottom-inset) + 120px + var(--carousel-index-gap));
    box-sizing: border-box;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.carousel-track {
    display: flex;
    gap: 0;
    align-items: flex-start;
    width: max-content;
    will-change: transform;
}

.project-slide {
    flex: 0 0 auto;
    overflow: hidden;
    opacity: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.project-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.project-index {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--grid-gap);
    padding: 0 var(--site-margin);
    opacity: 1;
    transition: opacity 0.4s ease;
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--index-bottom-inset);
    z-index: 50;
    pointer-events: auto;
}

.project-index.is-pinned {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--index-bottom-inset);
}

.project-index.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.work-index-spacer {
    width: 100%;
    height: 0;
    pointer-events: none;
}

.index-left-panel {
    grid-column: 1 / span 3;
}

.index-right-panel {
    grid-column: 4 / span 9;
}

.project-list-nav,
.project-scope-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-main);
    font-size: var(--font-size-small);
    font-weight: 300;
    line-height: 1.45;
}

.project-list-nav li {
    color: var(--grey);
    cursor: pointer;
    transition: color 0.35s ease;
}

.project-list-nav li.active-item {
    color: var(--black);
    font-weight: 500;
    text-underline-offset: 0.2em;
}

.project-scope-list li {
    color: var(--grey);
    transition: color 0.35s ease;
}

.project-scope-list li.active-scope {
    color: var(--black);
    font-weight: 500;
}

/* Mobile-only elements — hidden on desktop */
.mobile-index-logo,
.work-list-mobile {
    display: none;
}

/*Split Text Animation */
.scroll-reveal-text {
    font-family: var(--font-main);
    opacity: 1; 
}

.line {
    overflow: hidden; 
}

.word {
    transform-origin: bottom left; 
}

/* ==================== MOBILE BREAKPOINT (per Figma spec) ==================== */
@media (max-width: 900px) {
    /* In-flow logo replaces the fixed scrubbing hero logo */
    .mobile-index-logo {
        display: block;
        margin: clamp(7rem, 23vh, 12.75rem) var(--site-margin) 0;
    }

    /* Bio: image above text, stacked full-width */
    .bio {
        display: flex;
        flex-direction: column-reverse;
        gap: 0.6rem;
        margin-top: 0.6rem;
        margin-bottom: var(--section-margin);
    }

    .bio-image {
        margin-top: 0;
    }

    .bio-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 382 / 254;
        object-fit: cover;
    }

    .bio-content p {
        margin-top: 0;
        font-size: clamp(1.25rem, 6vw, 1.5rem);
        color: var(--black);
        font-weight: 400;
    }

    /* Section headings scale down to 40px */
    .work h1,
    .work-heading,
    .playground-header h1 {
        font-size: clamp(2.25rem, 10vw, 2.5rem);
    }

    .work-header {
        margin-bottom: 2rem;
    }

    /* Carousel is desktop-only; mobile gets the stacked project list */
    .work-pin-panel {
        display: none;
    }

    .work-list-mobile {
        display: flex;
        flex-direction: column;
        gap: 4.5rem;
        padding: 0 var(--site-margin);
    }

    .work-item {
        display: block;
        text-decoration: none;
        grid-column: viewport-start / viewport-end;
        width: 100%;
    }

    .work-item img {
        grid-column: viewport-start / viewport-end;
        width: 100%;
        height: auto;
        aspect-ratio: 383 / 257;
        object-fit: cover;
        object-position: center top;
        display: block;
    }

    .work-item__title,
    .work-item__scope {
        font-family: var(--font-main);
        font-size: var(--font-size-medium);
        font-weight: 400;
        line-height: 1.4;
        color: var(--grey);
        margin: 0;
    }

    .work-item__title {
        margin-top: 0.85rem;
    }

    .playground-header {
        margin-top: 4.5rem;
    }
}