/* =========================================================
   LAB CREATIVO - TONY CHANKU
   Layout responsive desktop, tablet e smartphone
   ========================================================= */

.tc-lab-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(126px, 10vw, 154px) 0 clamp(62px, 6.5vw, 88px);
    border-bottom: 1px solid rgba(217, 164, 65, .24);
    background: #050708;
}

.tc-lab-hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 3, 4, .92) 0%, rgba(2, 3, 4, .68) 48%, rgba(2, 3, 4, .92) 100%),
        url("../img/ui/home-story.jpg") 34% 42% / cover no-repeat;
    opacity: .72;
}

.tc-lab-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 69% 30%, rgba(217, 164, 65, .17), transparent 27%),
        linear-gradient(180deg, transparent 55%, rgba(5, 7, 8, .68) 100%);
}

.tc-lab-hero__inner {
    position: relative;
    max-width: 820px;
}

.tc-lab-hero .eyebrow,
.tc-lab-head .eyebrow {
    margin: 0 0 16px;
    color: var(--gold-soft);
    font-size: clamp(.72rem, .85vw, .82rem);
    font-weight: 900;
    letter-spacing: .27em;
    text-transform: uppercase;
}

.tc-lab-hero h1 {
    max-width: 100%;
    margin: 0;
    color: #f7f1e7;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(3.2rem, 6.3vw, 6rem);
    font-weight: 700;
    line-height: .94;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.tc-lab-hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 24px 0 0;
    color: #d8d0c5;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.65;
    text-wrap: pretty;
}

.tc-lab-section {
    position: relative;
    padding: clamp(52px, 6vw, 76px) 0 clamp(72px, 8vw, 104px);
    background:
        radial-gradient(circle at 92% 8%, rgba(217, 164, 65, .09), transparent 24%),
        linear-gradient(180deg, #050708 0%, #080a0b 55%, #050708 100%);
}

.tc-lab-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
}

.tc-lab-head > div {
    min-width: 0;
}

.tc-lab-head h2 {
    max-width: 850px;
    margin: 0;
    color: #f7f1e7;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.25rem, 4vw, 3.7rem);
    line-height: 1.02;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.tc-lab-head > span {
    flex: 0 0 auto;
    margin-bottom: 5px;
    padding: 9px 12px;
    border: 1px solid rgba(217, 164, 65, .25);
    border-radius: 999px;
    background: rgba(217, 164, 65, .07);
    color: var(--gold-soft);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .1em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.tc-lab-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
}

.tc-lab-filters button {
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid rgba(217, 164, 65, .34);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    color: #f7f1e7;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.tc-lab-filters button.is-active {
    border-color: rgba(217, 164, 65, .72);
    background: linear-gradient(135deg, rgba(217, 164, 65, .23), rgba(217, 164, 65, .1));
    color: var(--gold-soft);
}

.tc-lab-filters button:focus-visible,
.tc-lab-actions a:focus-visible,
.tc-lab-prompt summary:focus-visible {
    outline: 2px solid var(--gold-soft);
    outline-offset: 3px;
}

.tc-lab-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(18px, 2vw, 26px);
}

.tc-lab-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(217, 164, 65, .22);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(20, 20, 19, .96), rgba(10, 11, 12, .98));
    box-shadow: 0 18px 52px rgba(0, 0, 0, .34);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
    content-visibility: auto;
    contain-intrinsic-size: 560px;
}

.tc-lab-card__media {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    place-items: center;
    border-bottom: 1px solid rgba(217, 164, 65, .18);
    background:
        radial-gradient(circle at 50% 48%, rgba(217, 164, 65, .13), transparent 45%),
        #080909;
}

.tc-lab-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 -34px 48px rgba(0, 0, 0, .25);
}

.tc-lab-card__media iframe,
.tc-lab-card__media video,
.tc-lab-card__media img,
.tc-lab-card__placeholder {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: 0;
}

.tc-lab-card__media img,
.tc-lab-card__media video {
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.tc-lab-card__media iframe {
    aspect-ratio: auto;
}

.tc-lab-card__placeholder {
    display: grid;
    place-items: center;
    color: var(--gold-soft);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.tc-lab-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 21px 21px 22px;
}

.tc-lab-card__body .eyebrow {
    margin: 0 0 8px;
    color: var(--gold-soft);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .11em;
    line-height: 1.4;
    text-transform: uppercase;
}

.tc-lab-card__body h3 {
    margin: 0 0 10px;
    color: #f7f1e7;
    font-size: clamp(1.08rem, 1.25vw, 1.25rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.tc-lab-card__body p:not(.eyebrow) {
    margin: 0 0 18px;
    color: #bfb6aa;
    font-size: .92rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.tc-lab-card__body audio {
    width: 100%;
    max-width: 100%;
    margin: 8px 0 18px;
}

.tc-lab-prompt {
    margin: 12px 0 18px;
    padding: 13px;
    border: 1px solid rgba(217, 164, 65, .2);
    border-radius: 12px;
    background: rgba(0, 0, 0, .22);
}

.tc-lab-prompt summary {
    color: var(--gold-soft);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
}

.tc-lab-prompt p {
    margin-top: 12px !important;
}

.tc-lab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 14px;
    margin-top: auto;
}

.tc-lab-actions a {
    color: var(--gold-soft);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .075em;
    line-height: 1.5;
    text-transform: uppercase;
}

.tc-empty {
    padding: 32px;
    border: 1px solid rgba(217, 164, 65, .2);
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    color: #c7beb2;
    text-align: center;
}

@media (hover: hover) and (pointer: fine) {
    .tc-lab-card:hover {
        transform: translateY(-5px);
        border-color: rgba(217, 164, 65, .55);
        box-shadow: 0 24px 68px rgba(0, 0, 0, .48);
    }

    .tc-lab-filters button:hover {
        transform: translateY(-1px);
        border-color: rgba(217, 164, 65, .6);
        color: var(--gold-soft);
    }

    .tc-lab-actions a:hover {
        color: #fff1c7;
    }
}

@media (max-width: 1080px) {
    .tc-lab-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tc-lab-hero__inner {
        max-width: 720px;
    }
}

@media (max-width: 720px) {
    .tc-lab-hero {
        padding: 112px 0 52px;
    }

    .tc-lab-hero::before {
        background-position: 28% center;
    }

    .tc-lab-hero h1 {
        font-size: clamp(3rem, 15vw, 4.6rem);
        line-height: .96;
    }

    .tc-lab-hero p:not(.eyebrow) {
        margin-top: 18px;
        font-size: 1rem;
        line-height: 1.58;
    }

    .tc-lab-section {
        padding: 46px 0 72px;
    }

    .tc-lab-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 22px;
    }

    .tc-lab-head h2 {
        font-size: clamp(2.15rem, 10vw, 3.15rem);
    }

    .tc-lab-head > span {
        margin: 0;
    }

    .tc-lab-filters {
        flex-wrap: nowrap;
        margin-right: -14px;
        margin-bottom: 24px;
        padding-right: 14px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .tc-lab-filters::-webkit-scrollbar {
        display: none;
    }

    .tc-lab-filters button {
        flex: 0 0 auto;
        min-height: 44px;
    }

    .tc-lab-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tc-lab-card {
        width: 100%;
        max-width: 620px;
        margin-inline: auto;
    }
}

@media (max-width: 430px) {
    .tc-lab-hero {
        padding-top: 104px;
    }

    .tc-lab-hero .eyebrow,
    .tc-lab-head .eyebrow {
        letter-spacing: .2em;
    }

    .tc-lab-card {
        border-radius: 15px;
    }

    .tc-lab-card__media {
        aspect-ratio: 4 / 3;
    }

    .tc-lab-card__body {
        padding: 18px 17px 20px;
    }
}

@media (max-height: 620px) and (min-width: 721px) {
    .tc-lab-hero {
        padding-top: 108px;
        padding-bottom: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tc-lab-card,
    .tc-lab-filters button {
        transition: none;
    }
}


