/* Playground – experimental work (hero matches reference layout) */

body.page-playground {
    background-color: #f4f9f9;
    color: #1a1a1a;
    /* Desktop has no overflow-x rule in common.css; clip stray horizontal overflow from hero/grid */
    overflow-x: hidden;
}

.page-transition-wrap.playground-wrap {
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100%;
}

/* Nav styles for playground live in common.css (shared with contact bar) */

/* Full-viewport hero */
.playground-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: calc(3.25rem + clamp(2rem, 6vw, 4.5rem)) clamp(1.75rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem);
    box-sizing: border-box;
    background-color: #f4f9f9;
}

.playground-hero__inner {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
}

.playground-hero__title {
    margin: 0;
    text-align: right;
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    font-weight: 400;
    font-size: clamp(2.75rem, 9.5vw, 7.5rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.playground-hero__line {
    display: block;
    white-space: nowrap;
}

/* Hidden until GSAP load reveal (main.js initPlaygroundTextReveal) — avoids flash before stagger */
.page-playground .playground-hero__line,
.page-playground .playground-overview__label,
.page-playground .playground-grid__meta {
    opacity: 0;
    transform: translateY(28px);
}

/* Overview paragraph: hidden until char-split runs (initPlaygroundOverviewCharReveal); then same as index about-me */
.page-playground .playground-overview__text:not(.playground-overview__text--split) {
    opacity: 0;
}

.playground-hero__line + .playground-hero__line {
    margin-top: 0.02em;
}

/* Overview – left-aligned label + bold condensed body (reference layout) */
.playground-overview {
    background-color: #f8fafb;
    padding: clamp(3.5rem, 10vw, 7rem) clamp(1.75rem, 5vw, 4.5rem) clamp(4rem, 12vw, 8rem);
}

.playground-overview__inner {
    max-width: 52rem;
    margin: 0;
    margin-right: auto;
}

.playground-overview__label {
    margin: 0 0 1rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 1.3;
}

.playground-overview__text {
    margin: 0;
    max-width: 48rem;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.5rem, 3.8vw, 2.875rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #1a1a1a;
    text-align: left;
    text-transform: none;
}

/* Char scrub (same pattern as style.css .about-me__text) */
.playground-overview__text .playground-overview__word {
    display: inline-block;
}

.playground-overview__text .playground-overview__char {
    display: inline-block;
    opacity: 0.2;
}

/* Masonry-style project grid – 4 columns, natural image heights */
.playground-grid {
    background-color: #f8fafb;
    padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(4rem, 10vw, 7rem);
}

.playground-grid__inner {
    max-width: 1400px;
    margin: 0 auto;
    column-count: 4;
    column-gap: clamp(1rem, 2vw, 1.75rem);
}

.playground-grid__item {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.playground-grid__figure {
    margin: 0;
    line-height: 0;
}

.playground-grid__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.playground-grid__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 0.65rem;
    padding-top: 0.1rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: clamp(0.65rem, 1.05vw, 0.78rem);
    letter-spacing: 0.06em;
    text-transform: none;
    color: #1a1a1a;
    line-height: 1.3;
}

.playground-grid__year {
    flex-shrink: 0;
}

.playground-grid__info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.12em;
    min-width: 0;
}

.playground-grid__line {
    display: block;
}

@media (max-width: 1100px) {
    .playground-grid__inner {
        column-count: 2;
    }
}

/* Narrower tablets: keep comfortable padding */
@media (max-width: 1024px) {
    .playground-hero {
        padding-left: clamp(1.25rem, 4vw, 2rem);
        padding-right: clamp(1.25rem, 4vw, 2rem);
    }

    .playground-overview {
        padding-left: clamp(1.25rem, 4vw, 2rem);
        padding-right: clamp(1.25rem, 4vw, 2rem);
    }

    .playground-overview__label {
        font-size: 1rem;
    }
    .playground-grid__meta {
        font-size: clamp(1rem, 1.25vw, 1.15rem);
    }
}

@media (max-width: 520px) {
    .playground-grid__inner {
        column-count: 1;
    }

    .playground-grid__meta {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .playground-hero {
        align-items: center;
        justify-content: flex-end;
        padding-top: max(var(--content-below-nav), calc(3.25rem + env(safe-area-inset-top, 0px) + 2rem));
    }

    .playground-hero__title {
        font-size: clamp(2rem, 11vw, 3.25rem);
        white-space: normal;
    }

    .playground-hero__line {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .playground-hero__title {
        text-align: right;
        font-size: clamp(1.65rem, 10vw, 2.5rem);
    }
}
