/* =========================================================
   MSK DESIGN — TEMPLATE DE PROJETO
   Universal: imagem, vídeo, grids e pequenos textos.
   ========================================================= */

.project-page {
    --pj-ink: #171815;
    --pj-dark: #1b1c1a;
    --pj-paper: #f4f4f0;
    --pj-green: #b0dc37;
    --pj-purple: #8b5cf6;
    --pj-line: rgba(23,24,21,.14);
    --pj-line-dark: rgba(255,255,255,.14);
    --pj-max: 1320px;
    --pj-pad: clamp(22px, 4vw, 52px);
    background: var(--pj-paper);
    color: var(--pj-ink);
}

.project-main {
    overflow: hidden;
}

/*
   IMPORTANTE:
   imagens e vídeos ficam limitados ao conteúdo do projeto.
   Não aplicar width:100% em .project-page img, pois isso também
   altera o logo do menu/cabeçalho e imagens do rodapé.
*/
.project-main img,
.project-main video {
    display: block;
    width: 100%;
    height: auto;
}

.project-wrap {
    width: min(var(--pj-max), 100%);
    margin-inline: auto;
    padding-inline: var(--pj-pad);
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.project-hero {
    position: relative;
    padding-top: clamp(132px, 10vw, 170px);
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 20%, rgba(139,92,246,.12), transparent 28%),
        radial-gradient(circle at 16% 82%, rgba(176,220,55,.07), transparent 30%),
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        var(--pj-dark);
    background-size: auto, auto, 40px 40px, 40px 40px, auto;
    color: #fff;
}

.project-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, .55fr);
    gap: clamp(52px, 7vw, 110px);
    align-items: end;
    padding-bottom: clamp(64px, 7vw, 100px);
}

.project-hero__copy {
    min-width: 0;
}

.project-eyebrow,
.project-section-label {
    margin: 0 0 26px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.project-eyebrow {
    color: rgba(255,255,255,.50);
}

.project-eyebrow span,
.project-section-label {
    color: var(--pj-purple);
}

.project-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-size: clamp(68px, 8.4vw, 132px);
    line-height: .84;
    letter-spacing: -.07em;
    overflow-wrap: normal;
    word-break: normal;
}

.project-hero h1 span {
    position: relative;
    display: inline-block;
}

.project-hero h1 span::after {
    content: "";
    position: absolute;
    left: 0;
    right: -.04em;
    bottom: -.05em;
    height: .07em;
    min-height: 6px;
    background: var(--pj-green);
    transform: rotate(-1deg);
}

.project-lead {
    max-width: 720px;
    margin: 42px 0 0;
    color: rgba(255,255,255,.66);
    font-size: clamp(16px,1.35vw,20px);
    line-height: 1.65;
}

.project-meta {
    width: 100%;
    margin: 0;
    border-top: 1px solid var(--pj-line-dark);
}

.project-meta div {
    display: grid;
    grid-template-columns: 74px minmax(0,1fr);
    gap: 18px;
    align-items: start;
    padding: 17px 0;
    border-bottom: 1px solid var(--pj-line-dark);
}

.project-meta dt {
    margin: 0;
    color: var(--pj-green);
    font-size: 9px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-meta dd {
    min-width: 0;
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.project-hero__media {
    width: 100%;
    max-height: 82vh;
    overflow: hidden;
    background: #111;
}

.project-hero__media img {
    height: min(82vh,900px);
    object-fit: cover;
    object-position: center;
}

/* ---------------------------------------------------------
   INTRO
   --------------------------------------------------------- */

.project-intro {
    padding-top: clamp(90px,11vw,160px);
    padding-bottom: clamp(90px,11vw,160px);
}

.project-section-label {
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-section-label span {
    width: 38px;
    height: 3px;
    background: var(--pj-green);
}

.project-intro__grid {
    display: grid;
    grid-template-columns: minmax(0,1.08fr) minmax(280px,.66fr);
    gap: clamp(50px,8vw,120px);
    align-items: start;
}

.project-intro h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px,5.3vw,76px);
    line-height: .96;
    letter-spacing: -.055em;
}

.project-copy {
    max-width: 580px;
    color: #666a63;
    font-size: 16px;
    line-height: 1.75;
}

.project-copy p:first-child {
    margin-top: 0;
}

/* ---------------------------------------------------------
   BLOCOS DE PROJETO
   --------------------------------------------------------- */

.project-block {
    padding-bottom: clamp(90px,11vw,160px);
}

.project-block__head {
    display: grid;
    grid-template-columns: 52px minmax(0,1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 34px;
    padding: 18px 0;
    border-top: 1px solid var(--pj-line);
}

.project-block__head span {
    color: var(--pj-purple);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
}

.project-block__head h2 {
    margin: 0;
    font-size: clamp(34px,4vw,58px);
    line-height: 1;
    letter-spacing: -.045em;
}

.project-block__intro {
    max-width: 680px;
    margin: -10px 0 42px 70px;
    color: #6c6f68;
    line-height: 1.7;
}

.project-stack {
    display: grid;
    gap: clamp(18px,2.5vw,34px);
}

.project-stack + .project-stack,
.project-grid + .project-stack,
.project-stack + .project-grid,
.project-video {
    margin-top: clamp(18px,2.5vw,34px);
}

.project-grid {
    display: grid;
    gap: clamp(12px,1.7vw,24px);
}

.project-grid--2 {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.project-grid--3 {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.project-block img,
.project-video {
    background: #e7e7e2;
}

.project-video {
    overflow: hidden;
}

.project-video video {
    max-height: 80vh;
    background: #111;
    object-fit: contain;
}

/* ---------------------------------------------------------
   BLOCO DE TEXTO / DESTAQUE
   --------------------------------------------------------- */

.project-quote {
    margin-bottom: clamp(90px,11vw,160px);
    padding: clamp(70px,8vw,115px) 0;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),
        var(--pj-dark);
    background-size: 40px 40px,40px 40px,auto;
    color: #fff;
}

.project-quote p {
    max-width: 1000px;
    margin: 0;
    font-size: clamp(38px,5.3vw,76px);
    line-height: 1;
    letter-spacing: -.055em;
}

.project-quote strong {
    color: var(--pj-green);
    font-weight: inherit;
}

/* ---------------------------------------------------------
   ENCERRAMENTO
   --------------------------------------------------------- */

.project-end {
    background: #e9e9e4;
}

.project-end__inner {
    min-height: 240px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.project-end p {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
}

.project-end p span {
    width: 34px;
    height: 3px;
    background: var(--pj-green);
}

.project-end a {
    color: var(--pj-ink);
    padding-bottom: 5px;
    border-bottom: 2px solid var(--pj-purple);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

/* ---------------------------------------------------------
   RESPONSIVO
   --------------------------------------------------------- */

@media (max-width: 900px) {
    .project-hero {
        padding-top: 118px;
    }

    .project-hero__grid,
    .project-intro__grid {
        grid-template-columns: 1fr;
    }

    .project-hero__grid {
        gap: 54px;
        padding-bottom: 64px;
    }

    .project-meta {
        max-width: 620px;
    }

    .project-grid--3 {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .project-block__intro {
        margin-left: 0;
    }

    .project-end__inner {
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .project-page {
        --pj-pad: 22px;
    }

    .project-hero {
        padding-top: 112px;
    }

    .project-hero__grid {
        gap: 46px;
        padding-bottom: 58px;
    }

    .project-eyebrow {
        margin-bottom: 22px;
    }

    .project-hero h1 {
        max-width: 100%;
        font-size: clamp(54px,16vw,74px);
        line-height: .88;
        letter-spacing: -.065em;
    }

    .project-lead {
        margin-top: 34px;
        font-size: 16px;
        line-height: 1.7;
    }

    .project-meta div {
        grid-template-columns: 82px minmax(0,1fr);
        gap: 14px;
        padding: 18px 0;
    }

    .project-meta dt {
        font-size: 9px;
    }

    .project-meta dd {
        font-size: 13px;
    }

    .project-hero__media {
        max-height: none;
    }

    .project-hero__media img {
        height: auto;
    }

    .project-grid--2,
    .project-grid--3 {
        grid-template-columns: 1fr;
    }

    .project-block__head {
        grid-template-columns: 38px minmax(0,1fr);
    }

    .project-intro h2 {
        font-size: clamp(38px,11vw,48px);
    }

    .project-copy {
        font-size: 15px;
    }

    .project-quote p {
        font-size: clamp(36px,11vw,48px);
    }

    .project-end__inner {
        min-height: 200px;
    }
}

@media (max-width: 380px) {
    .project-page {
        --pj-pad: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-page * {
        scroll-behavior: auto !important;
    }
}


/* =========================================================
   MÓDULOS UNIVERSAIS — PROJETOS LEGADOS
   Permitem manter o conteúdo de todos os cases no mesmo sistema.
   ========================================================= */

.project-content-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    align-items: start;
}

.project-fragment {
    min-width: 0;
}

.project-fragment--full {
    grid-column: 1 / -1;
}

.project-fragment--half {
    grid-column: span 6;
}

.project-fragment--media img,
.project-fragment--mixed img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.project-fragment video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    background: #111;
}

.project-fragment h4 {
    margin: 0 0 18px;
    color: var(--pj-ink);
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.12;
    letter-spacing: -.03em;
}

.project-fragment h5 {
    margin: 0 0 12px;
    color: #777a73;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-fragment p {
    margin: 0 0 15px;
    color: #666a63;
    font-size: 15px;
    line-height: 1.72;
}

.project-fragment p:last-child {
    margin-bottom: 0;
}

.project-fragment--text {
    padding: clamp(24px, 3vw, 38px);
    border-top: 3px solid var(--pj-purple);
    background: #fff;
}

.project-fragment--mixed {
    padding: clamp(22px, 2.5vw, 32px);
    border: 1px solid var(--pj-line);
    background: #fff;
}

.project-fragment--mixed img,
.project-fragment--mixed video {
    margin-top: 18px;
}

.project-fragment a {
    color: var(--pj-ink);
    font-weight: 650;
    text-decoration-color: var(--pj-purple);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.project-fragment a:hover,
.project-fragment a:focus-visible {
    color: var(--pj-purple);
}

.project-prelude-media {
    display: grid;
    gap: clamp(18px, 2.5vw, 34px);
    padding-bottom: clamp(90px, 11vw, 160px);
}

.project-prelude-media img,
.project-prelude-media video {
    width: 100%;
    height: auto;
}

.project-intro__media {
    margin-top: clamp(42px, 6vw, 72px);
}

.project-empty-note {
    padding: 24px;
    border: 1px dashed var(--pj-line);
    color: #777a73;
    font-size: 13px;
}

@media (max-width: 760px) {
    .project-fragment--half {
        grid-column: 1 / -1;
    }

    .project-fragment--text,
    .project-fragment--mixed {
        padding: 22px;
    }
}
