:root {
    --navy: #001233;
    --white: #FFFFFF;
    --off-white: #F5F5F7;
    --text-muted: rgba(255, 255, 255, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: clip; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
body {
    width: 100%; max-width: 100%; min-width: 0;
    background: var(--navy); color: var(--white);
    font-family: 'Nunito', sans-serif;
    overflow-x: clip; overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}
body.is-loading { overflow: hidden !important; }

h1, h2, h3, .title-font { font-family: 'Righteous', sans-serif; font-weight: 400; text-transform: uppercase; line-height: 1; }
a { text-decoration: none; color: inherit; }

#preloader {
    position: fixed; inset: 0; width: 100vw; height: 100svh;
    background: var(--navy); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
}
.logo-mask-container {
    width: 120px; height: 120px; position: relative;
    mask-image: url('assets/vf-logo.png'); -webkit-mask-image: url('assets/vf-logo.png');
    mask-size: contain; -webkit-mask-size: contain;
    mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
    mask-position: center; -webkit-mask-position: center;
    background: rgba(255,255,255,.05);
}
.logo-fill { position: absolute; bottom: 0; left: 0; width: 100%; height: 0; background: var(--white); }

.hero {
    min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
    padding: 12vh 6vw 10vh; position: relative; overflow: hidden;
}
.hero-title {
    width: 100%; max-width: 100%; font-size: clamp(3.35rem, 17vw, 6rem);
    margin-bottom: 1.75rem; letter-spacing: -0.045em;
    display: flex; flex-direction: column; overflow: hidden;
}
.hero-title-line { display: block; clip-path: inset(100% 0 0 0); transform: translateY(24px); white-space: nowrap; }
.hero p { font-size: clamp(1rem, 4.3vw, 1.35rem); max-width: 800px; line-height: 1.5; color: var(--off-white); margin-bottom: 2.5rem; }
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: .9rem 1.35rem; border-radius: 50px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: .78rem; cursor: pointer; }
.btn-primary { background: var(--white); color: var(--navy); }
.btn-outline { border: 1px solid rgba(255,255,255,.3); color: var(--white); }

.manifesto {
    min-height: 100svh; display: flex; align-items: center;
    padding: 12vh 6vw; overflow: hidden;
}
.manifesto-text {
    width: 100%; max-width: 100%; font-size: clamp(1.95rem, 7.6vw, 3.5rem);
    line-height: 1.08; letter-spacing: -.035em;
    display: flex; flex-direction: column; gap: .5rem;
    overflow: hidden;
}
.manifesto-text span {
    display: block; width: 100%; max-width: 100%; color: var(--white);
    clip-path: inset(0 100% 0 0); will-change: clip-path;
    overflow-wrap: normal; word-break: normal;
}

/* A seção é vertical para o usuário, mas os cards percorrem horizontalmente durante o scroll. */
.services-wrapper {
    position: relative; width: 100%; max-width: 100%; height: 100svh;
    min-height: 100svh; background: var(--white); color: var(--navy);
    overflow: hidden; isolation: isolate;
}
.services-header { position: absolute; z-index: 2; top: 10vh; left: 0; width: 100%; padding: 0 6vw; }
.services-header h2 { font-size: clamp(2.8rem, 12vw, 5rem); letter-spacing: -.04em; }
.services-container {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    display: flex; align-items: flex-start; width: max-content; max-width: none;
    padding: 0 6vw; gap: 8vw; will-change: transform;
}
.service-card {
    width: 82vw; max-width: 520px; flex: 0 0 82vw;
    display: flex; flex-direction: column; justify-content: flex-start;
}
.service-card h3 { font-size: clamp(1.55rem, 7vw, 2.5rem); margin-bottom: 1.25rem; border-bottom: 2px solid var(--navy); padding-bottom: 1rem; letter-spacing: -.025em; }
.service-card p { font-size: clamp(1rem, 4.2vw, 1.2rem); line-height: 1.6; }

.projects { width: 100%; padding: 14vh 6vw; overflow: hidden; }
.projects-header { margin-bottom: 7vh; }
.projects-header h2 { font-size: clamp(2.8rem, 12vw, 5rem); margin-bottom: 1.5rem; letter-spacing: -.04em; }
.projects-header p { max-width: 600px; font-size: 1rem; color: var(--text-muted); line-height: 1.55; }
.project-item { width: 100%; max-width: 100%; display: flex; flex-direction: column; margin-bottom: 14vh; position: relative; overflow: hidden; }
.project-image-container { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; margin-bottom: 1.5rem; clip-path: inset(100% 0 0 0); background: var(--navy); }
.project-image-container img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; transform: scale(1.08); transform-origin: center; will-change: transform; }
.project-info { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.25rem; }
.project-info-left h3 { font-size: clamp(2rem, 9vw, 3.5rem); margin-bottom: .5rem; letter-spacing: -.035em; }
.project-info-left span { text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; color: var(--text-muted); }
.project-info-right { max-width: 400px; }
.project-info-right p { margin-bottom: 1.25rem; line-height: 1.6; color: var(--text-muted); }
.project-link { display: inline-flex; align-items: center; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; border-bottom: 1px solid var(--white); padding-bottom: .3rem; }

.about { padding: 14vh 6vw; display: flex; flex-direction: column; align-items: stretch; gap: 3rem; background: var(--white); color: var(--navy); overflow: hidden; }
.about-image { width: 100%; height: 58svh; max-height: 620px; background: #E2E2E2; display: flex; justify-content: center; align-items: center; border-radius: 4px; overflow: hidden; }
.about-image p { font-family: 'Righteous', sans-serif; color: rgba(0,18,51,.3); text-transform: uppercase; letter-spacing: 2px; }
.about-content { width: 100%; }
.about-content h2 { font-size: clamp(2.8rem, 12vw, 5rem); margin-bottom: 2rem; letter-spacing: -.04em; }
.about-content p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 1.25rem; }

.cta-final { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 12vh 6vw; overflow: hidden; }
.cta-final h2 { font-size: clamp(2.8rem, 12vw, 5rem); margin-bottom: 2.5rem; letter-spacing: -.04em; }
.magnetic-btn-wrap { display: inline-block; padding: 2rem; }
.btn-huge { display: inline-flex; justify-content: center; align-items: center; width: 180px; height: 180px; background: var(--white); color: var(--navy); border-radius: 50%; font-family: 'Righteous', sans-serif; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; }

.footer { padding: 2rem 6vw; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: var(--text-muted); gap: 1rem; overflow: hidden; }
.footer-logo img { height: 30px; opacity: .8; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.footer-links a:hover { color: var(--white); }

@media (min-width: 769px) {
    .hero { padding: 0 5vw; }
    .hero-title { font-size: clamp(4rem, 12vw, 10rem); }
    .hero p { font-size: clamp(1rem, 2vw, 1.5rem); margin-bottom: 4rem; }
    .hero-ctas { gap: 2rem; }
    .btn { padding: 1rem 2.5rem; font-size: .9rem; }
    .manifesto { padding: 0 5vw; }
    .manifesto-text { font-size: clamp(2rem, 5vw, 4.5rem); }
    .services-header { padding: 0 5vw; }
    .services-container { padding-left: 5vw; padding-right: 8vw; gap: 4vw; }
    .service-card { width: clamp(300px, 30vw, 450px); flex-basis: clamp(300px, 30vw, 450px); }
    .projects { padding: 15vh 5vw; }
    .projects-header h2 { font-size: clamp(3rem, 6vw, 6rem); }
    .project-info { gap: 2rem; }
    .about { flex-direction: row; padding: 15vh 5vw; gap: 5vw; }
    .about-image, .about-content { flex: 1; }
    .about-image { height: 80vh; }
    .about-content h2 { font-size: clamp(3rem, 5vw, 5rem); }
    .cta-final h2 { font-size: clamp(3rem, 6vw, 6rem); }
    .btn-huge { width: 250px; height: 250px; font-size: 1.5rem; }
    .footer { flex-direction: row; text-align: left; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}
