/* ------------- PLAYGROUND PROJECTS ------------- */

.playground-study {
    padding-top: 40px;
}

.playground-project-hero {
    margin-bottom: 80px;
}

.playground-project-intro {
    margin-bottom: 30px;
}

.playground-project-kicker {
    margin-bottom: 4px;
    color: var(--purple-light);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.playground-project-intro h1 {
    margin-bottom: 14px;
    color: var(--text);
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.playground-project-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.playground-project-tags span {
    padding: 7px 13px;
    background: #211f2b;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #c0bdc7;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

/* ------------- PROJECT IMAGES ------------- */

.playground-project-image {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
}

.playground-project-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ------------- PROJECT SECTIONS ------------- */

.playground-project-section {
    margin-bottom: 35px;
}

.playground-project-section > * + * {
    margin-top: 26px;
}

.playground-project-section .case-study-heading + .case-study-copy {
    margin-top: 18px;
}

.playground-project-section .case-study-copy {
    max-width: 560px;
    padding: 10px 0;
}

.playground-project-section .case-study-copy p {
    margin-bottom: 14px;
}

.playground-project-section .case-study-copy p:last-child {
    margin-bottom: 0;
}

/* ------------- TWO-COLUMN IMAGE GRIDS ------------- */

.playground-image-grid,
.texture-opening-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.playground-image-grid .playground-project-image,
.texture-opening-grid .playground-project-image {
    height: 100%;
}

.playground-image-grid .playground-project-image img,
.texture-opening-grid .playground-project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ------------- THREE-COLUMN IMAGE GRIDS ------------- */

.playground-image-grid-three {
    grid-template-columns: repeat(3, 1fr);
}


/* ------------- NOSTALGIA COMPARISON ------------- */

.nostalgia-comparison {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.nostalgia-comparison-image {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.nostalgia-comparison-image img {
    width: 100%;
    height: auto;
    display: block;
}

.nostalgia-toggle {
    white-space: nowrap;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

.nostalgia-toggle:focus-visible {
    outline: 2px solid var(--purple-light);
    outline-offset: 4px;
}

/* ------------- NOSTALGIA CAROUSEL ------------- */

.nostalgia-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 14px;
    align-items: center;
    width: 100%;
}

.nostalgia-carousel-viewport {
    min-width: 0;
    overflow: hidden;
}

.nostalgia-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.55s ease;
    will-change: transform;
}

.nostalgia-carousel-slide {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.nostalgia-carousel-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
}

.nostalgia-carousel-button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #211f2b;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    font-family: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.nostalgia-carousel-button:hover {
    background: #2b2838;
    border-color: var(--border-light);
    transform: scale(1.05);
}

.nostalgia-carousel-button:focus-visible {
    outline: 2px solid var(--purple-light);
    outline-offset: 4px;
}

/* ------------- PLAYGROUND VIDEO HERO ------------- */

.playground-video-hero {
    width: 100%;
    display: flex;
    justify-content: center;
}

.playground-video-hero video {
    width: min(100%, 420px);
    max-height: 700px;
    display: block;
    object-fit: cover;
    background: #000000;
    border-radius: var(--radius);
}

/* ------------- DIGITAL INTRO GRID ------------- */

.digital-intro-grid {
    display: grid;
    /* grid-template-columns: 0.8fr 1.4fr 0.8fr; */
    grid-template-columns: 0.8fr 1.15fr 1.05fr;
    grid-template-areas:
        "one two three"
        "one four three";
    gap: 16px;
    align-items: start;
}

.digital-intro-1 {
    grid-area: one;
}

.digital-intro-2 {
    grid-area: two;
}

.digital-intro-3 {
    grid-area: three;
}

.digital-intro-4 {
    grid-area: four;
}

.digital-intro-grid .playground-project-image {
    height: auto;
}

.digital-intro-grid .playground-project-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ------------- PLAYGROUND RESPONSIVENESS ------------- */

@media (max-width: 900px) {

    .playground-image-grid,
    .texture-opening-grid {
        grid-template-columns: 1fr;
    }

    .playground-image-grid-three {
        grid-template-columns: repeat(3, 1fr);
    }

    .nostalgia-comparison {
        grid-template-columns: 1fr;
    }

    .nostalgia-toggle {
        justify-self: start;
    }

    .nostalgia-carousel-slide {
        flex-basis: calc((100% - 16px) / 2);
    }

    .digital-intro-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "one two"
            "three four";
    }
}

@media (max-width: 600px) {

    .playground-study {
        padding-top: 30px;
    }

    .playground-project-hero {
        margin-bottom: 60px;
    }

    .playground-project-intro h1 {
        font-size: 40px;
    }

    .playground-project-section {
        margin-bottom: 35px;
    }

    .playground-project-section > * + * {
        margin-top: 22px;
    }

    .playground-project-section .case-study-heading + .case-study-copy {
        margin-top: 16px;
    }

    .playground-project-section .case-study-copy {
        max-width: 100%;
    }

    .playground-image-grid-three {
        grid-template-columns: 1fr;
    }

    .nostalgia-carousel {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 8px;
    }

    .nostalgia-carousel-slide {
        flex-basis: 100%;
    }

    .nostalgia-carousel-button {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .digital-intro-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "one"
            "two"
            "three"
            "four";
    }
}