/* ==========================================================
   MSK DESIGN — HOME V4
   A identidade parada é limpa. O movimento aparece na interação.
   ========================================================== */

.home-v2 {
    --home-ink: #101110;
    --home-paper: #f4f4f0;
    --home-white: #ffffff;
    --home-green: #b0dc37;
    --home-purple: #8b5cf6;
    --home-muted: #8e918b;
    --home-line: rgba(16, 17, 16, 0.14);
    --home-max: 1320px;
    --home-pad: clamp(22px, 5vw, 72px);
    --home-ease: cubic-bezier(.2,.75,.2,1);

    background: var(--home-paper);
    color: var(--home-ink);
}

.home-v2 .site-header {
    position: fixed;
}

.home-main {
    overflow: clip;
    background: var(--home-paper);
}

.home-main h1,
.home-main h2,
.home-main h3,
.home-main p {
    overflow-wrap: normal;
}

.home-main a {
    color: inherit;
}

.home-grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .36;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}

.home-eyebrow,
.home-section-label {
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.home-eyebrow span {
    color: var(--home-green);
}

.home-section-label {
    color: var(--home-purple);
}

/* HERO */
.home-hero__brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.home-hero__brand img {
    display: block;
    width: clamp(200px, 20vw, 320px);
    height: auto;
}

.home-hero__brand > span {
    color: var(--home-purple);
    font-size: 20px;
    font-weight: 300;
}

.home-hero__brand p {
    margin: 0;
    color: rgba(255,255,255,.58);
    font-size: 10px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* HERO */
.home-hero {
    position: relative;
    min-height: max(720px, 100svh);
    color: var(--home-white);
    background: var(--home-ink);
    isolation: isolate;
}

.home-hero::after {
    content: "";
    position: absolute;
    width: min(54vw, 760px);
    aspect-ratio: 1;
    right: -18%;
    top: 4%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 60% 42%, rgba(139,92,246,.18), transparent 42%),
        radial-gradient(circle at 38% 58%, rgba(176,220,55,.12), transparent 62%);
    filter: blur(8px);
    pointer-events: none;
}

.home-hero__inner {
    width: min(var(--home-max), calc(100% - (var(--home-pad) * 2)));
    min-height: max(720px, 100svh);
    margin: 0 auto;
    padding: clamp(130px, 16vh, 190px) 0 48px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    position: relative;
    z-index: 2;
}

.home-hero__stage {
    display: flex;
    align-items: center;
    min-height: 0;
    position: relative;
}

.home-kinetic,
.home-hero__final {
    margin: 0;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: clamp(58px, 11vw, 170px);
    font-weight: 700;
    letter-spacing: -.075em;
    line-height: .85;
    color: #fff;
}

.home-kinetic {
    width: 100%;
    position: relative;
    min-height: 1em;
}

.home-kinetic__word {
    position: absolute;
    inset: 0 auto auto 0;
    opacity: 0;
    transform: translateY(26px) rotateX(-14deg);
    transform-origin: left bottom;
    transition: opacity .42s ease, transform .72s var(--home-ease);
    white-space: nowrap;
}

.home-kinetic__word.is-active {
    opacity: 1;
    transform: none;
}

.home-kinetic__word.is-leaving {
    opacity: 0;
    transform: translateY(-28px) rotateX(12deg);
}

.home-hero__final {
    position: absolute;
    inset: 50% auto auto 0;
    transform: translateY(-44%);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
}

.home-hero__final strong {
    color: var(--home-green);
    font-weight: 700;
}

.home-hero.is-resolved .home-kinetic {
    opacity: 0;
    transition: opacity .35s ease;
}

.home-hero.is-resolved .home-hero__final {
    opacity: 1;
    transform: translateY(-50%);
    transition: opacity .55s ease .2s, transform .8s var(--home-ease) .15s;
}

.home-mark {
    display: inline-block;
    animation: home-mark-pulse 2.4s ease-in-out infinite;
}

@keyframes home-mark-pulse {
    50% { transform: translateY(-.05em); opacity: .55; }
}

.home-hero__foot {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: #c8cac5;
    font-size: 13px;
    letter-spacing: .02em;
}

.home-hero__foot p { margin: 0; }

.home-hero__glitch {
    position: absolute;
    right: clamp(34px, 5vw, 82px);
    bottom: clamp(82px, 9vh, 112px);
    z-index: 3;
    width: min(28vw, 410px);
    min-width: 250px;
    pointer-events: none;
    opacity: .94;
    filter: drop-shadow(0 24px 44px rgba(0,0,0,.36));
}

.home-hero__glitch::before {
    content: "";
    position: absolute;
    inset: 10% 4% 6%;
    z-index: 0;
    background:
        radial-gradient(circle at 45% 42%, rgba(139,92,246,.20), transparent 42%),
        radial-gradient(circle at 52% 62%, rgba(176,220,55,.16), transparent 52%);
    filter: blur(26px);
}

.home-hero__glitch img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    -webkit-mask-image: radial-gradient(
        ellipse at center,
        #000 0 46%,
        rgba(0,0,0,.98) 62%,
        rgba(0,0,0,.78) 76%,
        transparent 96%
    );
    mask-image: radial-gradient(
        ellipse at center,
        #000 0 46%,
        rgba(0,0,0,.98) 62%,
        rgba(0,0,0,.78) 76%,
        transparent 96%
    );
}

.home-scroll-link,
.home-text-link {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    font-weight: 600;
    text-decoration: none;
}

.home-scroll-link span,
.home-text-link span {
    transition: transform .3s var(--home-ease);
}

.home-scroll-link:hover span,
.home-scroll-link:focus-visible span,
.home-text-link:hover span,
.home-text-link:focus-visible span {
    transform: translate(4px, -4px);
}

.home-hero__index {
    position: absolute;
    right: var(--home-pad);
    bottom: 50%;
    z-index: 4;
    transform: translateY(50%) rotate(90deg);
    transform-origin: right center;
    color: rgba(255,255,255,.3);
    font-size: 10px;
    letter-spacing: .18em;
}

/* TRANSFORMAÇÃO */
.home-transform {
    width: min(var(--home-max), calc(100% - (var(--home-pad) * 2)));
    margin: 0 auto;
    padding: clamp(110px, 15vw, 220px) 0;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, .75fr);
    gap: clamp(60px, 10vw, 160px);
}

.home-transform__sticky {
    position: sticky;
    top: 15vh;
    align-self: start;
}

.home-transform__sticky h2,
.home-section-head h2,
.home-process__title h2,
.home-about__copy h2 {
    margin: 26px 0 0;
    font-size: clamp(44px, 6.6vw, 94px);
    line-height: .95;
    letter-spacing: -.06em;
    font-weight: 500;
}

.home-transform__sticky h2 strong {
    position: relative;
    display: inline-block;
    color: var(--home-ink);
    font-weight: 700;
}

.home-transform__sticky h2 strong::after {
    content: "";
    position: absolute;
    left: 0;
    right: -4%;
    bottom: -.03em;
    height: .11em;
    background: var(--home-purple);
    transform: rotate(-1.2deg);
    z-index: -1;
}

.home-transform__line {
    width: min(360px, 80%);
    height: 2px;
    margin-top: 50px;
    background: #d7d9d3;
    overflow: hidden;
}

.home-transform__line span {
    display: block;
    width: 25%;
    height: 100%;
    background: linear-gradient(90deg, var(--home-green), var(--home-purple));
    transition: width .5s var(--home-ease);
}

.home-transform__steps {
    display: grid;
    gap: 34vh;
    padding: 8vh 0 18vh;
}

.home-transform__step {
    min-height: 34vh;
    opacity: .25;
    transform: translateY(18px);
    transition: opacity .45s ease, transform .55s var(--home-ease);
}

.home-transform__step.is-active {
    opacity: 1;
    transform: none;
}

.home-transform__step > span {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--home-green);
}

.home-transform__step:nth-child(even) > span {
    color: var(--home-purple);
}

.home-transform__step h3 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 70px);
    letter-spacing: -.05em;
    line-height: 1;
}

.home-transform__step p {
    max-width: 470px;
    color: #666960;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.55;
}

/* CABEÇALHO DE SEÇÃO */
.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;
    margin-bottom: clamp(50px, 7vw, 100px);
}

.home-section-head h2 {
    font-size: clamp(44px, 6vw, 86px);
}

.home-section-copy {
    max-width: 430px;
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #666960;
}

/* STATEMENT */
.home-statement {
    position: relative;
    min-height: min(900px, 90svh);
    padding: clamp(90px, 11vw, 160px) var(--home-pad);
    background: var(--home-ink);
    color: #fff;
    display: grid;
    align-items: center;
    isolation: isolate;
}

.home-statement__inner {
    width: min(var(--home-max), 100%);
    margin: auto;
    position: relative;
    z-index: 2;
}

.home-statement__inner > p {
    margin: 0 0 12px;
    color: #a6a9a2;
    font-size: clamp(18px, 2vw, 26px);
}

.home-statement h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(70px, 12vw, 180px);
    line-height: .78;
    letter-spacing: -.075em;
}

.home-statement h2 span {
    color: #5b5e57;
}

.home-statement__switch {
    margin: clamp(50px, 8vw, 110px) 0 0 auto;
    width: min(630px, 80%);
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--home-purple);
}

.home-statement__arrow {
    font-size: 44px;
}

.home-statement__switch strong {
    font-size: clamp(30px, 4.8vw, 72px);
    line-height: .95;
    letter-spacing: -.055em;
}

/* REEL */
.home-reel {
    position: relative;
    min-height: 78svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: #171817;
    color: #fff;
}

.home-reel__video,
.home-reel__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-reel__video { object-fit: cover; }
.home-reel__shade { background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.72)); }

.home-reel__content {
    position: relative;
    z-index: 2;
    width: min(var(--home-max), calc(100% - (var(--home-pad) * 2)));
    margin: 0 auto;
    padding-bottom: clamp(55px, 7vw, 90px);
}

.home-reel__content h2 {
    color: #fff;
    font-size: clamp(48px, 7.5vw, 112px);
    line-height: .9;
    letter-spacing: -.06em;
    margin: 22px 0;
}

.home-reel__content > p:last-child { margin: 0; color: rgba(255,255,255,.72); }

/* SERVIÇOS */
.home-services {
    padding: clamp(100px, 12vw, 180px) var(--home-pad);
    background: var(--home-paper);
}

.home-services > * {
    width: min(var(--home-max), 100%);
    margin-inline: auto;
}

.home-services__list {
    border-top: 1px solid var(--home-line);
}

.home-service-row {
    position: relative;
    display: grid;
    grid-template-columns: 70px minmax(220px, 1fr) minmax(220px, .8fr) 46px;
    gap: 26px;
    align-items: center;
    min-height: clamp(120px, 12vw, 175px);
    border-bottom: 1px solid var(--home-line);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
}

.home-service-row::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, var(--home-green) 0 7px, var(--home-purple) 7px 100%);
    transform: translateY(101%);
    transition: transform .48s var(--home-ease);
}

.home-service-row__number {
    color: #8a8d86;
    font-size: 11px;
    letter-spacing: .12em;
}

.home-service-row strong {
    font-size: clamp(42px, 6.3vw, 94px);
    line-height: .9;
    letter-spacing: -.06em;
}

.home-service-row small {
    color: #74776f;
    font-size: 13px;
    line-height: 1.45;
}

.home-service-row__arrow {
    font-size: 26px;
    transition: transform .35s var(--home-ease);
}

@media (hover: hover) and (pointer: fine) {
    .home-service-row:hover::before { transform: none; }
    .home-service-row:hover small,
    .home-service-row:hover .home-service-row__number { color: #101110; }
    .home-service-row:hover .home-service-row__arrow { transform: translate(5px, -5px); }
}

/* PROCESSO */
.home-process {
    padding: clamp(100px, 12vw, 180px) var(--home-pad);
    background: #fff;
    display: grid;
    grid-template-columns: minmax(300px, .75fr) minmax(420px, 1fr);
    gap: clamp(60px, 9vw, 140px);
}

.home-process > * { min-width: 0; }

.home-process__title {
    width: min(560px, 100%);
    margin-left: max(0px, calc((100vw - var(--home-max)) / 2 - var(--home-pad)));
}

.home-process__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 760px;
}

.home-process__steps li {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 6px 22px;
    padding: 26px 0;
    border-top: 1px solid var(--home-line);
}

.home-process__steps li:last-child { border-bottom: 1px solid var(--home-line); }
.home-process__steps span { grid-row: 1 / 3; color: var(--home-green); font-size: 11px; letter-spacing: .12em; }
.home-process__steps li:nth-child(even) span { color: var(--home-purple); }
.home-process__steps strong { font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -.04em; }
.home-process__steps small { color: #74776f; font-size: 13px; }

/* SOBRE */
.home-about {
    padding: clamp(100px, 12vw, 180px) var(--home-pad);
    background: #1b1c1a;
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
    gap: clamp(50px, 9vw, 150px);
    align-items: center;
}

.home-about > * { min-width: 0; }

.home-about__copy {
    margin-left: max(0px, calc((100vw - var(--home-max)) / 2 - var(--home-pad)));
    max-width: 720px;
}

.home-about__copy h2 { color: #fff; }
.home-about__copy > p:not(.home-section-label) { max-width: 620px; color: #afb2ab; font-size: 17px; line-height: 1.7; margin: 34px 0; }
.home-about__copy .home-text-link { color: #fff; }

.home-about__visual {
    min-height: 520px;
    position: relative;
    display: grid;
    place-items: center;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.10);
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 35% 42%, rgba(139,92,246,.14), transparent 34%),
        radial-gradient(circle at 66% 62%, rgba(176,220,55,.10), transparent 38%),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(180deg, #191a17 0%, #141512 100%);
    background-size: auto, auto, 32px 32px, 32px 32px, auto;
}

.home-about__visual::before {
    content: "";
    position: absolute;
    inset: 12% 16%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(139,92,246,.18), transparent 34%),
        radial-gradient(circle at 50% 55%, rgba(176,220,55,.14), transparent 52%);
    filter: blur(24px);
}

.home-about__visual img {
    position: relative;
    z-index: 1;
    width: min(78%, 540px);
    height: auto;
    max-height: 580px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 38px rgba(0,0,0,.42));
    -webkit-mask-image: radial-gradient(
        ellipse at center,
        #000 0 45%,
        rgba(0,0,0,.96) 60%,
        rgba(0,0,0,.70) 76%,
        transparent 92%
    );
    mask-image: radial-gradient(
        ellipse at center,
        #000 0 45%,
        rgba(0,0,0,.96) 60%,
        rgba(0,0,0,.70) 76%,
        transparent 92%
    );
}

.home-about__placeholder {
    display: grid;
    gap: 10px;
    text-align: center;
    font-family: "Space Grotesk", monospace;
    color: var(--home-purple);
}

.home-about__placeholder span { font-size: clamp(20px, 3vw, 42px); font-weight: 700; }
.home-about__placeholder small { color: #777b72; }

.home-about__status {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 2;
    font-size: 9px;
    letter-spacing: .14em;
    color: #8a8e85;
}

/* CTA */
.home-cta {
    position: relative;
    padding: clamp(110px, 13vw, 190px) var(--home-pad);
    color: #fff;
    background: #0d0e0d;
    isolation: isolate;
}

.home-cta__inner {
    position: relative;
    z-index: 2;
    width: min(var(--home-max), 100%);
    margin: auto;
}

.home-cta h2 {
    margin: 28px 0 clamp(50px, 8vw, 100px);
    color: #fff;
    font-size: clamp(86px, 15vw, 220px);
    line-height: .72;
    letter-spacing: -.08em;
}

.home-cta h2 span { color: var(--home-green); }

.home-cta__button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(580px, 100%);
    min-height: 88px;
    padding: 0 28px;
    border: 1px solid rgba(255,255,255,.3);
    color: #fff !important;
    text-decoration: none;
    overflow: hidden;
}

.home-cta__button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--home-purple);
    transform: translateY(101%);
    transition: transform .45s var(--home-ease);
}

.home-cta__button span,
.home-cta__button i { position: relative; z-index: 2; }
.home-cta__button i { font-style: normal; font-size: 24px; }
.home-cta__hover { position: absolute !important; left: 28px; opacity: 0; }

@media (hover: hover) and (pointer: fine) {
    .home-cta__button:hover { color: #101110 !important; }
    .home-cta__button:hover::before { transform: none; }
    .home-cta__button:hover .home-cta__default { opacity: 0; }
    .home-cta__button:hover .home-cta__hover { opacity: 1; }
    .home-cta__button:hover i { transform: translate(5px, -5px); }
}

/* REVEAL */
.home-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .85s var(--home-ease);
}

.home-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* FOOTER na Home */
.home-v2 .site-footer {
    margin: 0;
    background: #0d0e0d;
    color: #74776f;
    border-top: 1px solid rgba(255,255,255,.08);
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .home-hero__glitch {
        display: none !important;
    }

    .home-transform,
    .home-process,
    .home-about {
        grid-template-columns: 1fr;
    }

    .home-transform { gap: 70px; }
    .home-transform__sticky { position: relative; top: auto; }
    .home-transform__steps { gap: 90px; padding: 0; }
    .home-transform__step { min-height: auto; opacity: 1; }

    .home-service-row {
        grid-template-columns: 48px 1fr 42px;
    }
    .home-service-row small { grid-column: 2; }
    .home-service-row__arrow { grid-column: 3; grid-row: 1 / 3; }

    .home-process__title,
    .home-about__copy { margin-left: 0; }
}

@media (max-width: 640px) {
    .home-v2 { --home-pad: 20px; }

    .home-hero,
    .home-hero__inner { min-height: 100svh; }

    .home-hero__inner {
        padding-top: 112px;
        padding-bottom: 28px;
    }

    .home-hero__brand {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
        justify-items: start;
        gap: 14px;
    }

    .home-hero__brand img {
        width: 180px;
    }

    .home-hero__brand > span {
        display: none;
    }

    .home-hero__brand p {
        max-width: 100%;
        font-size: 8.5px;
        line-height: 1.5;
        letter-spacing: .11em;
    }

    .home-hero__stage {
        max-width: 100% !important;
        align-items: flex-start;
        padding-top: 64px;
    }

    .home-kinetic,
    .home-hero__final {
        width: 100%;
        font-size: clamp(52px, 17vw, 82px);
    }

    .home-hero__foot {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .home-hero__index {
        display: none;
    }

    .home-transform,
    .home-services,
    .home-process,
    .home-about,
    .home-cta { padding-top: 92px; padding-bottom: 92px; }

    .home-section-head { display: grid; gap: 30px; }
    .home-section-head h2,
    .home-transform__sticky h2,
    .home-process__title h2,
    .home-about__copy h2 { font-size: 46px; }

    .home-statement { min-height: auto; padding-top: 110px; padding-bottom: 110px; }
    .home-statement h2 { font-size: 68px; }
    .home-statement__switch { width: 100%; margin-top: 70px; align-items: flex-start; }

    .home-service-row {
        min-height: 145px;
        grid-template-columns: 36px 1fr 28px;
        gap: 12px;
    }
    .home-service-row strong { font-size: 44px; }
    .home-service-row small { font-size: 12px; }

    .home-process { gap: 50px; }
    .home-process__steps li { grid-template-columns: 42px 1fr; }

    .home-about__visual {
        min-height: 400px;
        padding: 18px;
    }

    .home-about__visual img {
        width: min(88%, 440px);
        max-height: 500px;
    }
    .home-cta h2 { font-size: 88px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-v2 *,
    .home-v2 *::before,
    .home-v2 *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .home-reveal { opacity: 1; transform: none; }
    .home-kinetic__word:not(:first-child) { display: none; }
}


@media (min-width: 901px) and (max-width: 1180px) {
    .home-hero__glitch {
        width: min(24vw, 320px);
        min-width: 0;
        right: 26px;
        bottom: 92px;
        opacity: .88;
    }

    .home-hero__stage {
        max-width: min(72vw, 820px);
    }
}
