@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/urbanist.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Big Shoulders';
    src: url('../fonts/bigshoulders.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

:root {
    --black: #1A1A1A;
    --dark: #111111;
    --card: #1A1A1A;
    --gray: #CACACA;
    --white: #F7F7F7;
    --muted: #CACACA;
    --orange: #FF5733;
    --line: rgba(247, 247, 247, 0.12);
    --font: 'Urbanist', Arial, Helvetica, sans-serif;
    --font-display: 'Big Shoulders', Impact, sans-serif;
}


html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
}

body,
button,
input,
textarea,
select {
    font-family: var(--font);
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--black);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-piece {
    width: 46px;
    height: 46px;
    border: 1px solid white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 24px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    mix-blend-mode: difference;
}

.brand {
    display: inline-flex;
    align-items: center;
    height: 42px;
}

.brand-logo {
    display: block;
    height: 38px;
    width: auto;
    object-fit: contain;
}

.site-nav {
    display: flex;
    gap: 28px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.site-nav a {
    opacity: 0.72;
    transition: opacity 0.25s ease;
}

.site-nav a:hover {
    opacity: 1;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid currentColor;
    background: transparent;
    color: currentColor;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    margin: 5px auto;
}

.section {
    position: relative;
    min-height: 100vh;
    padding: 130px 32px;
    overflow: hidden;
}

.container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.narrow {
    width: min(820px, 100%);
}

.center {
    text-align: center;
}

.eyebrow {
    margin: 0 0 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-weight: 900;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(52px, 8vw, 126px);
    line-height: 0.88;
    letter-spacing: -0.085em;
    margin-bottom: 28px;
}

h2 {
    font-size: clamp(44px, 7vw, 98px);
    line-height: 0.95;
    letter-spacing: -0.08em;
    margin-bottom: 28px;
}

h3 {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.055em;
    margin-bottom: 16px;
}

p {
    font-size: 18px;
    line-height: 1.35;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 900;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--black);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-large {
    min-height: 62px;
    padding: 18px 34px;
}

/* HERO */

.hero-section {
    position: relative;
    min-height: 100svh;
    color: white;
    background: var(--black);
    display: flex;
    align-items: flex-end;
    padding: 140px 48px 70px;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 60% 45%, rgba(255, 255, 255, 0.08), transparent 35%),
        linear-gradient(to top, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.86));
}

.hero-bg-title {
    position: absolute;
    top: 95px;
    left: 48px;
    right: 48px;
    z-index: 1;
    text-transform: uppercase;
    line-height: 0.92;
    pointer-events: none;
    font-family: var(--font-display);
}

.hero-bg-title span {
    display: block;
    font-size: clamp(22px, 3vw, 46px);
    letter-spacing: 0.18em;
    font-weight: 800;
}

.hero-bg-title strong {
    display: block;
    font-size: clamp(76px, 16vw, 250px);
    letter-spacing: 0.015em;
    font-weight: 900;
}

.hero-bg-title,
.hero-bg-title span,
.hero-bg-title strong,
.outline-animated,
.outline-animated::after {
    font-family: var(--font-display);
}

.outline-animated {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(247, 247, 247, 0.12);
    text-stroke: 1px rgba(247, 247, 247, 0.12);
}

.outline-animated::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-stroke: 1.4px var(--orange);
    text-stroke: 1.4px var(--orange);
    clip-path: inset(0 100% 0 0);
    animation: outlineSweep 3.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 87, 51, 0.38));
}

.hero-bg-title strong.outline-animated::after {
    animation-delay: 0.35s;
}

@keyframes outlineSweep {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    50% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }

    78% {
        clip-path: inset(0 0 0 100%);
        opacity: 1;
    }

    100% {
        clip-path: inset(0 0 0 100%);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 4;
    width: min(760px, 100%);
}

.hero-content p {
    width: min(580px, 100%);
    color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.three-hero {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

#chessCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.scroll-indicator {
    position: absolute;
    right: 48px;
    bottom: 60px;
    z-index: 5;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.7);
    writing-mode: vertical-rl;
}

.scroll-indicator span {
    display: inline-block;
    width: 1px;
    height: 54px;
    background: rgba(255, 255, 255, 0.35);
    margin-bottom: 12px;
}

/* PROBLEMAS */

.section-problems {
    background: var(--white);
    color: var(--black);
}

.big-title {
    margin-inline: auto;
}

.problem-texts {
    width: min(920px, 100%);
    margin: 70px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    text-align: left;
}

.problem-texts p {
    font-size: 18px;
}

.floating-word {
    position: absolute;
    font-size: clamp(64px, 14vw, 220px);
    font-weight: 900;
    letter-spacing: -0.08em;
    opacity: 0.035;
    pointer-events: none;
}

.word-left {
    left: -40px;
    bottom: 50px;
}

.word-right {
    right: -40px;
    top: 80px;
}

/* CARDS PROFUNDIDADE */

.section-depth {
    background: #efefea;
    color: var(--black);
    overflow: visible;
}

.section-heading {
    width: min(760px, 100%);
    margin-bottom: 70px;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
}

.section-heading p {
    color: #444;
}

.depth-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    align-items: center;
    min-height: 460px;
    perspective: 1200px;
}

.depth-card {
    position: relative;
    min-height: 340px;
    padding: 34px;
    border-radius: 28px;
    background: var(--card);
    color: white;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.16);
    border: 1px solid transparent;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.depth-card {
    cursor: pointer;
    transition:
        transform 0.45s ease,
        opacity 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease,
        background 0.45s ease;
}

.depth-card:nth-child(1) {
    transform: translateY(46px) rotateY(12deg) scale(0.94);
    opacity: 0.78;
}

.depth-card:nth-child(2) {
    transform: translateY(46px) scale(0.94);
    opacity: 0.78;
}

.depth-card:nth-child(3) {
    transform: translateY(46px) rotateY(-12deg) scale(0.94);
    opacity: 0.78;
}

.depth-card.active {
    transform: translateY(-26px) rotateY(0deg) scale(1.05) !important;
    opacity: 1 !important;
    border-color: var(--orange);
    background: #171717;
    box-shadow: 0 34px 100px rgba(255, 87, 51, 0.2);
    z-index: 5;
}

.depth-card:hover {
    box-shadow: 0 40px 110px rgba(255, 87, 51, 0.18);
}

.depth-card span,
.service-card span {
    display: inline-block;
    margin-bottom: 80px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 13px;
    letter-spacing: 0.2em;
}

/* ENTREGÁVEIS */

.section-deliverables {
    background: var(--black);
    color: white;
}

.split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
    align-items: center;
}

.split-text p {
    color: rgba(255, 255, 255, 0.75);
}

.carousel-cut {
    width: 100%;
    overflow: visible;
}

.carousel-track {
    display: flex;
    gap: 22px;
    width: max-content;
    padding-right: 45vw;
    will-change: transform;
}

.service-card {
    flex: 0 0 320px;
    height: 370px;
    padding: 30px;
    border-radius: 28px;
    background: #222;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    border: 1px solid transparent;
    transform: translateY(0) scale(1);
    opacity: 0.55;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.service-card.active {
    border-color: var(--orange);
    transform: translateY(-34px) scale(1.04);
    opacity: 1;
    box-shadow: 0 38px 110px rgba(255, 87, 51, 0.18);
}

.service-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.72);
}

/* EQUIPE */

.section-team {
    background: #f5f5f2;
    color: var(--black);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 70px;
}

.team-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.08);
}

.team-photo {
    height: 340px;
    background: #222;
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
}

.team-card h3,
.team-card p {
    padding-inline: 24px;
}

.team-card h3 {
    margin-top: 24px;
}

.team-card p {
    padding-bottom: 28px;
    font-size: 15px;
    color: #555;
}

/* BIO */

.section-bio {
    background: var(--black);
    color: white;
    display: flex;
    align-items: center;
}

.section-bio p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 18px;
}

/* CTA */

.section-cta {
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 91, 31, 0.18), transparent 34%),
        var(--black);
    color: white;
    display: flex;
    align-items: center;
}

.section-cta h2 {
    width: min(900px, 100%);
    margin-inline: auto;
}

/* FOOTER */

.site-footer {
    background: var(--black);
    color: white;
    border-top: 1px solid var(--line);
    padding: 34px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;

    div {
        text-align: center;
    }
}

.site-footer p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
}

.site-footer a {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
}

/* RESPONSIVO */

@media (max-width: 980px) {
    .site-header {
        padding: 22px;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        background: var(--black);
        color: white;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        z-index: -1;
    }

    body.menu-open .site-nav {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .section {
        padding: 100px 22px;
    }

    .hero-section {
        padding: 130px 22px 50px;
    }

    .hero-bg-title {
        left: 22px;
        right: 22px;
    }

    .problem-texts {
        grid-template-columns: 1fr;
    }

    .depth-cards {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .depth-card,
    .depth-card:nth-child(1),
    .depth-card:nth-child(2),
    .depth-card:nth-child(3) {
        transform: none;
        opacity: 1;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer {
        padding: 30px 22px;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    h1 {
        font-size: 54px;
    }

    h2 {
        font-size: 46px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        flex-basis: 280px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-depth {
        overflow: hidden;
    }

    .depth-cards {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: auto;
        perspective: none;
    }

    .depth-card,
    .depth-card:nth-child(1),
    .depth-card:nth-child(2),
    .depth-card:nth-child(3) {
        min-height: auto;
        padding: 28px;
        transform: none !important;
        opacity: 0.82;
        border-color: transparent;
    }

    .depth-card.active {
        transform: translateY(-6px) scale(1.01) !important;
        opacity: 1 !important;
        border-color: var(--orange);
        box-shadow: 0 24px 70px rgba(255, 87, 51, 0.16);
    }

    .depth-card span {
        margin-bottom: 42px;
    }
}

@media (max-width: 768px) {
    .section-deliverables {
        min-height: 100svh;
        padding: 86px 22px 70px;
    }

    .section-deliverables .split {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .section-deliverables .split-text h2 {
        font-size: clamp(44px, 14vw, 62px);
        line-height: 0.92;
        margin-bottom: 24px;
    }

    .section-deliverables .split-text p {
        font-size: 18px;
        line-height: 1.35;
    }

    .carousel-cut {
        width: calc(100vw - 44px);
        overflow: visible;
    }

    .carousel-track {
        gap: 14px;
        padding-right: 50vw;
    }

    .service-card {
        flex: 0 0 74vw;
        height: 285px;
        min-height: 285px;
        padding: 24px;
        border-radius: 24px;
        opacity: 0.45;
    }

    .service-card.active {
        transform: translateY(-12px) scale(1.015);
        opacity: 1;
    }

    .service-card span {
        margin-bottom: 48px;
        font-size: 12px;
    }

    .service-card h3 {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .service-card p {
        font-size: 15px;
        line-height: 1.35;
    }
}