@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;700&display=swap');

:root {
    /* Colors */
    --bg-dark: #070707;
    --bg-surface: #121212;
    --bg-surface-light: #1e1e1e;

    --accent-orange: #E75B22;
    --accent-orange-glow: rgba(231, 91, 34, 0.4);

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Sizes */
    --container-pad: max(5vw, 2rem);
    --section-pad: 8rem;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}


h1,
h2,
h3,
h4,
.outfit {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.text-orange {
    color: var(--accent-orange);
}

.section-title {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

/* Base sections for GSAP pinning */
.panel {
    width: 100vw;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* =============================================
   LOADER — Kinetic Typography
   ============================================= */
#loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #070707;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Impact words — each one is controlled entirely by GSAP */
.lk {
    position: absolute;
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 11rem);
    font-weight: 800;
    letter-spacing: -3px;
    color: #fff;
    white-space: nowrap;
    line-height: 1;
    opacity: 0;
    user-select: none;
}

.lk-accent {
    color: var(--accent-orange);
}

.lk-dot {
    color: var(--accent-orange);
}

.lk-img {
    height: clamp(80px, 15vw, 160px);
    width: auto;
    object-fit: contain;
}

.lk-final {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
}

.loader-experience-badge {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 1rem);
    padding-left: clamp(1rem, 2vw, 2rem);
    border-left: clamp(2px, 0.5vw, 4px) solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.loader-experience-badge .badge-number {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 800;
    color: var(--accent-orange);
    line-height: 1;
}

.loader-experience-badge .badge-text {
    font-size: clamp(1rem, 2vw, 2.5rem);
    color: var(--text-secondary);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.loader-experience-badge .badge-text strong {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .loader-experience-badge {
        display: none;
    }
}

/* Flash overlay — one solid hit of white then orange */
.loader-flash {
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    /* Center ALL items by default — individual overrides below */
    align-items: center;
    /* Normal padding on BOTH sides — logo not glued to any edge */
    padding: 0 var(--container-pad);
    z-index: 100;
    background: transparent;
    border-bottom: none;
    transition: transform 0.3s ease;
}

/* Logo div: aligned to center vertically */
nav .logo {
    align-self: center;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
}

/* Logo image: vertically centered, bigger size */
.nav-logo-img {
    height: 64px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* 22 Anos de Experiência Badge (next to logo) */
.nav-experience-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    height: 40px;
    /* limits the vertical bar size */
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-orange);
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-text strong {
    color: #fff;
    font-weight: 600;
}

/* Hide the experience text text on very small screens to save space */
@media (max-width: 480px) {
    .nav-experience-badge {
        display: none;
    }
}

@media (min-width: 769px) and (max-height: 800px) {
    :root { --section-pad: 5rem; }
    .sobre-title-pin { height: 100svh; padding: 3rem 0; }
    .sobre-step { min-height: 90svh; padding: 4rem 0; gap: 1.5rem; }
    .service-card { height: 72svh; padding: 2.5rem; }
    .service-number { font-size: 6rem; }
    .portfolio-rail { padding-top: 2rem; padding-bottom: 2rem; }
    .pf-content { padding: 2.5rem max(4vw, 2.5rem); }
    .pf-title { font-size: clamp(2.7rem, 5.5vw, 5rem); }
    #contato { padding-top: 5rem; }
}

@media (min-width: 769px) and (max-height: 640px) {
    .service-card { min-height: 0; padding: 2rem; }
    .pf-desc { line-height: 1.45; }
}

/* Notebooks com pouca altura: evita que conteúdo decorativo dispute espaço útil. */
@media (min-width: 769px) and (max-height: 800px) {
    :root {
        --nav-height: 64px;
        --section-pad: 5rem;
    }

    .nav-logo-img {
        height: 48px;
    }

    .nav-experience-badge {
        height: 32px;
    }

    .badge-number {
        font-size: 1.6rem;
    }

    .badge-text {
        font-size: 0.65rem;
    }

    .hero-content {
        padding-bottom: 7vh;
    }

    .hero-title {
        font-size: clamp(3rem, 6vw, 5.5rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        line-height: 1.5;
    }

    .sobre-title-pin {
        height: 100svh;
        padding: 3rem 0;
    }

    .sobre-step {
        min-height: 90svh;
        padding: 4rem 0;
        gap: 1.5rem;
    }

    .service-card {
        height: 72svh;
        padding: 2.5rem;
    }

    .service-number {
        font-size: 6rem;
    }

    .portfolio-rail {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .pf-content {
        padding: 2.5rem max(4vw, 2.5rem);
    }

    .pf-title {
        font-size: clamp(2.7rem, 5.5vw, 5rem);
    }

    #contato {
        padding-top: 5rem;
    }
}

@media (min-width: 769px) and (max-height: 640px) {
    .nav-experience-badge,
    .scroll-indicator {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.6rem, 5vw, 4rem);
    }

    .service-card {
        min-height: 0;
        padding: 2rem;
    }

    .pf-desc {
        line-height: 1.45;
    }
}


.btn-primary {
    background: var(--accent-orange);
    color: #000;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #ff9900;
}

/* Hero Section */
#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    /* Strict 100vh */
    width: 100%;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.85;
    /* Increased opacity */
    /* Removed grayscale so city lights (orange/yellow) are visible */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(7, 7, 7, 0.3), var(--bg-dark));
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    /* Shift content up so scroll indicator has room at the bottom */
    padding-bottom: 12vh;
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 9rem);
    /* Slightly smaller to free vertical space */
    margin-bottom: 2.5rem;
    /* Good gap below the title */
    background: linear-gradient(180deg, #fff 0%, #a0a0a0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.25rem);
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    /* Hidden initially, will be shown by GSAP */
    animation: fadeIn GSAP will handle it but fallback here;
}

.scroll-indicator p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-top: 10px;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-orange);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--accent-orange);
    border-radius: 2px;
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Spacer to fix overlap */
.hero-spacer {
    height: 20vh;
    width: 100vw;
    background-color: var(--bg-dark);
}

/* =============================================
   SCROLLYTELLING — Nossa História
   2-column: left pinned title, right scroll steps
   ============================================= */
#sobre {
    background-color: var(--bg-dark);
    display: flex;
    align-items: flex-start;
    padding: 0 var(--container-pad);
    gap: 6rem;
}

/* Left column: sticks while user scrolls right column */
.sobre-title-pin {
    flex: 0 0 35%;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0;
}

.sobre-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--accent-orange);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.sobre-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 1.5rem;
}

/* Right column: tall, scrollable */
.sobre-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Each step is a full-viewport-height panel */
.sobre-step {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: 8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.sobre-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.sobre-step-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: rgba(251, 133, 0, 0.15);
    line-height: 1;
}

.sobre-step-text p {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.5;
    color: var(--text-primary);
    max-width: 600px;
}

.sobre-step-img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.sobre-step-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Nossa História — filme guiado pelo scroll */
.sobre-intro { position: absolute; inset: 0; overflow: hidden; background: #050505; display: grid; place-items: center; z-index: 3; }
.sobre-intro img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.08); }
.sobre-intro-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.48), rgba(5,5,5,.08)), linear-gradient(0deg, rgba(5,5,5,.38), transparent 60%); }
.sobre-intro h2 { position: absolute; z-index: 1; width: 92vw; margin: 0; color: #fff; font-family: var(--font-heading); font-size: clamp(2.2rem, 4.5vw, 5.2rem); line-height: .95; letter-spacing: .04em; text-align: center; white-space: nowrap; }
.sobre-intro h2 span { color: var(--accent-orange); }

#sobre.sobre-film {
    position: relative;
    display: block;
    height: 100svh;
    padding: 0;
    overflow: hidden;
    background: #050505;
}

.film-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #050505;
}

.film-scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) contrast(1.1);
}

.film-scene::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.25) 65%), linear-gradient(0deg, rgba(5, 5, 5, 0.72), transparent 60%);
}

.film-scene-two { clip-path: inset(0 100% 0 0); }

.film-copy {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: min(760px, 86vw);
    transform: translate(-50%, -50%);
    text-align: center;
}

.film-copy h2 {
    margin: 0 0 1.25rem;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

.film-copy h2 span { color: var(--accent-orange); }

.film-copy > p:last-child {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(.9rem, 1.15vw, 1.1rem);
    line-height: 1.55;
}

.film-scene:not(.sobre-intro) .film-copy {
    left: clamp(1.5rem, 8vw, 9rem);
    transform: translateY(-50%);
    text-align: left;
}

.film-progress {
    position: absolute;
    z-index: 5;
    bottom: 2rem;
    right: 2rem;
    width: min(180px, 25vw);
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
}

.film-progress i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent-orange);
    transform: scaleX(0);
    transform-origin: left;
}

@media (max-width: 768px) {
    .film-copy { top: 50%; bottom: auto; width: calc(100% - 3rem); transform: translate(-50%, -50%); }
    .film-scene:not(.sobre-intro) .film-copy { left: 1.5rem; transform: translateY(-50%); text-align: left; }
    .film-scene::after { background: linear-gradient(0deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.2) 75%); }
}




/* Horizontal Scroll Services */
#servicos {
    background-color: var(--bg-dark);
    /* Dark base */
    overflow: hidden;
    position: relative;
    /* Context for absolute background */
}

/* Netflix style animated background using a dense, tilted grid of projects */
.services-bg {
    position: absolute;
    /* Massive canvas so it covers every edge of the screen when rotated and translated */
    top: -100vh;
    left: -100vw;
    width: 300vw;
    height: 300vh;

    /* TILT: The Netflix 3D angle effect */
    transform-origin: center center;
    transform: perspective(1000px) rotateX(25deg) rotateY(-15deg) rotateZ(10deg);

    opacity: 0.35;
    /* Crisp visibility */
    z-index: 0;
    overflow: hidden;
}

.netflix-track {
    display: flex;
    flex-wrap: wrap;
    width: 300vw;
    height: 300vh;
    gap: 1vw;
    /* Small gap between posters */
    align-content: flex-start;
    animation: netflixPanTrack 30s linear infinite;
}

.netflix-tile {
    /* 18vw width + 1vw gap = 19vw tile step */
    width: 18vw;
    /* 11vw height + 1vw gap = 12vw tile step */
    height: 11vw;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes netflixPanTrack {
    0% {
        transform: translate3d(0, 0, 0);
    }

    /* Perfect loop: Translate by 5 columns (5*19vw=95vw) and 5 rows (5*12vw=60vw) */
    100% {
        transform: translate3d(-95vw, -60vw, 0);
    }
}

/* Netflix-style vignette overlay: dark edges, slightly lighter center, fading to black at bottom */
.services-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(18, 18, 18, 0.4) 0%, rgba(7, 7, 7, 0.75) 70%),
        linear-gradient(to bottom, transparent 60%, var(--bg-dark) 100%);
    z-index: 1;
}

.horizontal-scroll-wrapper {
    display: flex;
    width: 500vw;
    /* 5 serviços */
    height: 100vh;
    position: relative;
    z-index: 2;
    /* Content sits above background and overlay */
}

.service-panel {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--container-pad);
    perspective: 1400px;
}

.service-card {
    width: 78% !important;
    max-width: 820px !important;
    height: 58vh !important;
    background: var(--bg-surface-light);
    /* Original solid dark gray */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Original border */
    border-radius: 20px;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
    transform-style: preserve-3d;
    will-change: transform;
}

.horizontal-scroll-wrapper .service-panel:nth-child(2) .service-icon:first-child {
    display: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-orange);
    transform: scaleY(var(--bar-progress, 0));
    transform-origin: bottom;
}

.service-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 8rem;
    height: 8rem;
    padding: 0;
    color: rgba(255, 255, 255, 0.06);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    z-index: 1;
}

.service-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    z-index: 1;
}

.service-card {
    height: 62vh !important;
    padding: 3rem;
}

.service-title {
    max-width: 720px;
    font-size: clamp(1.8rem, 3.4vw, 3.2rem);
    line-height: 1.05;
}

.service-desc {
    max-width: 680px;
    font-size: 1rem;
    line-height: 1.5;
}

/* =============================================
   PORTFOLIO SHOWCASE — Cinematic Fullscreen
   ============================================= */
#projetos {
    background: var(--bg-dark);
}

.portfolio-intro {
    padding: var(--section-pad) 0 3rem;
    text-align: center;
}

.portfolio-showcase {
    display: grid;
    grid-template-columns: minmax(210px, 23vw) minmax(0, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.portfolio-rail {
    position: sticky;
    top: 0;
    height: 100svh;
    padding: 3rem var(--container-pad);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--bg-dark);
}

.portfolio-rail > div:first-child {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-rail-bottom {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--text-secondary);
}

.portfolio-project-name {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 4vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 0.9;
    color: var(--text-primary);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    max-height: min(60vh, 540px);
    overflow-wrap: anywhere;
}

.portfolio-project-name em {
    color: var(--accent-orange);
    font-style: normal;
}

.portfolio-project-name .project-brand { display: block; font-size: .48em; letter-spacing: .12em; line-height: 1; color: var(--text-secondary); }

.portfolio-rail-bottom {
    display: grid;
    gap: 1rem;
}

.portfolio-progress {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.portfolio-progress i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent-orange);
    transform: scaleX(0.2);
    transform-origin: left;
}

.portfolio-projects {
    min-width: 0;
}

.pf-slide {
    position: relative;
    width: 100%;
    height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}


/* Full-bleed background image with subtle zoom-in effect */
.pf-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    image-rendering: -webkit-optimize-contrast;
    /* Força renderização nítida no Chrome/Edge */
    image-rendering: crisp-edges;
    /* Alternativa para outros browsers */
    transform: scale(1.14);
    will-change: transform;
}

/* Gradient overlay: dark at bottom, transparent at top */
.pf-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 7, 7, 0.72) 0%, rgba(7, 7, 7, 0.2) 62%, rgba(7, 7, 7, 0.03) 100%), linear-gradient(to top, rgba(7, 7, 7, 0.62), transparent 55%);
}

/* Content block — bottom-left of each slide */
.pf-content {
    position: relative;
    z-index: 2;
    padding: 4rem max(4vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    min-height: 280px;
    justify-content: flex-end;
}

.pf-counter {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--accent-orange);
    opacity: 0.8;
}

.pf-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-heading);
}

.pf-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 800;
    line-height: 0.95;
    text-transform: uppercase;
}

.pf-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
}

/* Animated orange underline accent */
.pf-line {
    width: 80px;
    height: 2px;
    background: var(--accent-orange);
    margin-top: 0.5rem;
    transform-origin: left;
}





/* =============================================
   CLIENTES — 3 Faixas Laranjas Entrelaçadas
   ============================================= */
#clientes {
    padding: var(--section-pad) 0 calc(var(--section-pad) + 60px);
    background: var(--bg-dark);
    overflow: hidden;
}

.clientes-header {
    margin-bottom: 5rem;
}

/* Stage that holds the 3 woven ribbon bands */
.ribbons {
    position: relative;
    /* Reduced vertical space as requested */
    padding: 60px 0;
    overflow: hidden;
}

/* Base ribbon band */
.ribbon {
    position: relative;
    width: 120%;
    left: -10%;
    height: 90px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: -18px 0;
    transform-origin: center;
}

/* Faixa 1 — front (z=2), inclinação suave */
.rib-1 {
    background: var(--accent-orange);
    z-index: 2;
    transform: skewY(-2deg);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

/* Faixa 2 — branca, por baixo das laterais, inclinação média */
.rib-2 {
    background: #ffffff;
    z-index: 1;
    transform: skewY(-2.5deg);
    box-shadow:
        0 -10px 20px rgba(0, 0, 0, 0.45),
        0 10px 20px rgba(0, 0, 0, 0.45);
}

/* Faixa 3 — front (z=2), inclinação mais pronunciada */
.rib-3 {
    background: var(--accent-orange);
    z-index: 2;
    transform: skewY(-3deg);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5);
}

/* Track — flows with the skewed band */
.ribbon .marquee-track {
    display: inline-flex;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
}

/* The scrolling track keyframes (shared) */
@keyframes marqueeLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes marqueeRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.marquee-left {
    animation: marqueeLeft 26s linear infinite;
}

.marquee-right {
    animation: marqueeRight 30s linear infinite;
}

.marquee-slow {
    animation-duration: 42s;
}

/* Individual client name — dark text on bright orange */
.mi {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.55);
    transition: color 0.3s ease;
    padding: 0 1.2em;
    cursor: default;
    white-space: nowrap;
}

.mi:hover {
    color: rgba(0, 0, 0, 0.9);
}

/* Small diamond separator */
.mi-dot {
    font-style: normal;
    color: rgba(0, 0, 0, 0.3);
    font-size: 0.5em;
    margin-left: 0.8em;
    vertical-align: middle;
}



/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-float {
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.whatsapp-cta {
    position: relative;
    max-width: 220px;
    margin-bottom: 14px;
    padding: 0.85rem 2.2rem 0.85rem 1rem;
    border-radius: 16px 16px 4px 16px;
    background: #fff;
    color: var(--bg-dark);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    animation: whatsapp-cta 0.7s cubic-bezier(.36, 1.56, .64, 1) both;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-cta::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
}

.whatsapp-cta-close {
    display: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    position: absolute;
    top: 7px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    font-size: 1rem;
    line-height: 1;
    margin-left: 0.45rem;
    padding: 0;
    cursor: pointer;
}

.whatsapp-cta.is-closable .whatsapp-cta-close {
    display: inline;
}

.whatsapp-cta.is-closed {
    opacity: 0;
    pointer-events: none;
    transform: translateX(16px);
}

@keyframes whatsapp-cta {
    0% { opacity: 0; transform: translateY(22px) scale(0.7); }
    70% { opacity: 1; transform: translateY(-8px) scale(1.04); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05);
    background: #1fbc5a;
}

/* Contact Footer */
.cta-final {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
    background-image: linear-gradient(rgba(251, 133, 0, 0.88), rgba(251, 133, 0, 0.88)), url('./assets/sp_hero_night_1771611802525.png');
    background-size: cover;
    background-position: center;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.28), transparent);
    transform: rotate(-5deg);
}

.cta-final-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3rem;
}

.cta-final-copy h2 {
    max-width: 900px;
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 4rem);
}

.cta-final .sobre-eyebrow,
.cta-final .section-title,
.cta-final .text-orange { color: #111; }

.cta-final-copy p:not(.sobre-eyebrow) {
    max-width: 620px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.72);
}

.cta-final .btn-primary {
    white-space: nowrap;
    padding: 1.15rem 1.8rem;
    border: 2px solid #111;
    background: #111;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.cta-final .btn-primary:hover { background: #fff; color: #111; }

@media (max-width: 768px) {
    .cta-final-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .cta-final .btn-primary { justify-self: start; }
}

#contato {
    background: var(--bg-surface);
    padding: var(--section-pad) 0 2rem;
}

.material-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 1.5rem; background: linear-gradient(rgba(5,5,5,.76), rgba(5,5,5,.88)), url('./assets/sp_hero_night_1771611802525.png') center/cover; opacity: 0; pointer-events: none; transform: scale(1.06); transition: opacity .45s ease, transform .45s ease; }
.material-overlay.is-open { opacity: 1; pointer-events: auto; transform: scale(1); }
.material-overlay.is-transforming { background: rgba(5,5,5,.12); pointer-events: none; }
.material-panel { position: relative; width: min(560px,100%); padding: clamp(2rem,6vw,4rem); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: linear-gradient(145deg,#202020,#0b0b0b); box-shadow: 0 30px 100px rgba(0,0,0,.65); text-align: center; }
.material-panel { width: min(680px, 100%); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.material-panel h2 { margin: 0 0 1rem; font-size: clamp(2rem,5vw,3.5rem); line-height: 1; }
.material-panel > p:not(.sobre-eyebrow) { color: var(--text-secondary); line-height: 1.6; }
.material-close { position: absolute; top: 1rem; right: 1rem; border: 0; background: transparent; color: #fff; font-size: 1.8rem; cursor: pointer; }
.material-form { display: grid; gap: .8rem; margin-top: 2rem; }
.material-form input { width: 100%; padding: 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.06); color: #fff; }
.material-form input::placeholder { color: rgba(255,255,255,.5); }
.material-progress { height: 3px; margin-top: 1.2rem; overflow: hidden; background: rgba(255,255,255,.16); }
.material-progress i { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--accent-orange); }
#materialStatus { display: block; min-height: 1.2rem; margin-top: 1rem; color: var(--accent-orange); }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--accent-orange);
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background: var(--accent-orange);
    color: #000;
    transform: translateY(-3px);
    border-color: var(--accent-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer Partners */
.footer-partners {
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.partners-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1.5rem;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.partners-logos img {
    height: 70px;
    width: 70px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 50%;
    padding: 10px;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.partners-logos img:hover {
    filter: grayscale(0%) opacity(1);
}

/* Loading Overlay */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-orange);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* =============================================
   RESPONSIVE OVERRIDES FOR DESKTOP STRUCTURE
   ============================================= */

@media (max-width: 1024px) {

    .nav-logo-img {
        height: 54px;
    }

    .nav-experience-badge {
        margin-left: 0.65rem;
        padding-left: 0.65rem;
    }

    /* Hero */
    .hero-title {
        font-size: clamp(3rem, 7vw, 6rem);
    }

    /* Sobre */
    #sobre {
        flex-direction: column;
        gap: 2rem;
        padding-top: 4rem;
    }

    .sobre-title-pin {
        position: relative;
        height: auto;
        padding: 2rem 0;
        text-align: center;
        flex: none;
    }

    .sobre-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .sobre-steps {
        width: 100%;
    }

    .sobre-step {
        min-height: auto;
        padding: 4rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-showcase {
        grid-template-columns: minmax(220px, 28vw) minmax(0, 1fr);
    }

    .portfolio-rail {
        padding: 2.5rem var(--container-pad);
    }
}

@media (max-width: 768px) {

    /* Base/Utils */
    :root {
        --container-pad: 1.5rem;
        --section-pad: 4rem;
        --nav-height: 70px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    /* Navbar */
    .nav-logo-img {
        height: 48px;
    }

    .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    /* Hero */
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .scroll-indicator p {
        font-size: 0.6rem;
    }

    /* Serviços (Horizontal Scroll) */
    .services-bg {
        width: 600vw;
        height: 400vh;
        top: -150vh;
        left: -200vw;
    }

    .netflix-track {
        width: 600vw;
        height: 400vh;
        gap: 2vw;
        animation: netflixPanTrackMobile 30s linear infinite;
    }

    .netflix-tile {
        width: 40vw;
        height: 25vw;
    }

    @keyframes netflixPanTrackMobile {
        0% {
            transform: translate3d(0, 0, 0);
        }

        /* Loop calculation: 5 cols * (40vw + 2vw gap) = 210vw */
        /* Loop calculation: 5 rows * (25vw + 2vw gap) = 135vw */
        100% {
            transform: translate3d(-210vw, -135vw, 0);
        }
    }

    .service-panel {
        padding: 1rem;
    }

    .service-card {
        padding: 2rem;
        height: 60vh;
        border-radius: 12px;
    }

    .service-icon {
        width: 4rem;
        height: 4rem;
        padding: 0;
        top: 1rem;
        right: 1rem;
    }

    .service-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .service-desc {
        font-size: 1rem;
    }

    /* Portfolio */
    .portfolio-showcase {
        display: block;
    }

    .portfolio-rail {
        position: relative;
        height: auto;
        min-height: 170px;
        padding: 2rem 1.5rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        flex-direction: row;
        align-items: flex-end;
    }

    .portfolio-rail-bottom {
        max-width: 150px;
        text-align: right;
        font-size: 0.55rem;
    }

    .pf-content {
        padding: 2rem 1.5rem;
    }

    .pf-title {
        font-size: 2.2rem;
    }

    .pf-line {
        width: 50px;
    }

    /* Clientes */
    .ribbons {
        padding: 30px 0;
    }

    .ribbon {
        height: 60px;
        margin: -10px 0;
    }

    .mi {
        font-size: 1rem;
        padding: 0 0.8em;
    }

    /* Form & Footer */
    .footer-grid {
        gap: 3rem;
    }

    #contato .section-title {
        font-size: 2.2rem;
    }

    .input-group input,
    .input-group textarea {
        font-size: 0.9rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
    }

    .whatsapp-widget {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-pad: 1rem;
        --section-pad: 3.5rem;
    }

    nav {
        padding: 0 1rem;
    }

    .nav-logo-img {
        height: 38px;
        max-width: 145px;
    }

    nav .btn-primary {
        padding: 0.55rem 0.7rem;
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .hero-content {
        padding-bottom: 8vh;
    }

    .hero-title {
        font-size: clamp(2rem, 11vw, 2.6rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .scroll-indicator {
        bottom: 18px;
    }

    .mouse {
        width: 24px;
        height: 38px;
    }

    .service-card {
        height: auto;
        min-height: 58svh;
        padding: 1.5rem;
    }


    .portfolio-rail {
        min-height: 150px;
    }

    .portfolio-rail-bottom {
        letter-spacing: 0.12em;
    }

    .portfolio-project-name {
        font-size: 1.3rem;
        max-height: 120px;
    }

    .pf-slide {
        height: 82svh;
    }

    .pf-content {
        padding: 1.5rem;
        gap: 0.7rem;
    }

    .pf-desc {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .footer-grid {
        gap: 2.5rem;
    }

    .partners-logos {
        gap: 1rem;
    }

    .partners-logos img {
        width: 56px;
        height: 56px;
        padding: 7px;
    }

    .modal-overlay {
        padding: 1rem;
        align-items: flex-end;
    }

    .modal-content {
        width: 100%;
        max-height: calc(100svh - 2rem);
        overflow-y: auto;
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .cookie-banner {
        max-height: 100svh;
        overflow-y: auto;
    }

    .cookie-content {
        padding: 0 1rem;
    }

    .cookie-option-info p {
        max-width: 100%;
    }
}

/* =============================================
   MODAL DE RETORNO DO FORMULÁRIO
   ============================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.modal-icon.success {
    color: #10b981;
}

.modal-icon.error {
    color: #ef4444;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* =============================================
   BANNER DE COOKIES
   ============================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    z-index: 999999;
    padding: 1.5rem 0;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.btn-config-icon {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.btn-config-icon:hover {
    opacity: 1;
    color: var(--accent-orange);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-actions button {
        width: 100%;
    }
}

/* Modal de Preferências Avançadas */
.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-option:last-of-type {
    border-bottom: none;
}

.cookie-option-info h4 {
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 1.1rem;
}

.cookie-option-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 80%;
    line-height: 1.4;
}

/* Custom CSS Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-orange);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

input:disabled+.slider {
    opacity: 0.5;
    cursor: not-allowed;
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--accent-orange);
}

@media (min-width: 769px) and (max-height: 800px) {
    :root { --nav-height: 64px; --section-pad: 5rem; }
    .nav-logo-img { height: 48px; }
    .nav-experience-badge { height: 32px; }
    .badge-number { font-size: 1.6rem; }
    .badge-text { font-size: 0.65rem; }
    .hero-content { padding-bottom: 7vh; }
    .hero-title { font-size: clamp(3rem, 6vw, 5.5rem); margin-bottom: 1rem; }
    .hero-subtitle { line-height: 1.5; }
    .sobre-title-pin { height: 100svh; padding: 3rem 0; }
    .sobre-step { min-height: 90svh; padding: 4rem 0; gap: 1.5rem; }
    .service-card { height: 72svh; padding: 2.5rem; }
    .service-number { font-size: 6rem; }
    .portfolio-rail { padding-top: 2rem; padding-bottom: 2rem; }
    .pf-content { padding: 2.5rem max(4vw, 2.5rem); }
    .pf-title { font-size: clamp(2.7rem, 5.5vw, 5rem); }
    #contato { padding-top: 5rem; }
}

@media (min-width: 769px) and (max-height: 640px) {
    .nav-experience-badge, .scroll-indicator { display: none; }
    .hero-title { font-size: clamp(2.6rem, 5vw, 4rem); }
    .service-card { min-height: 0; padding: 2rem; }
    .pf-desc { line-height: 1.45; }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 1rem;
        align-items: flex-end;
    }

    .modal-content {
        width: 100%;
        max-height: calc(100svh - 2rem);
        overflow-y: auto;
        padding: 1.5rem;
    }

    .cookie-banner {
        max-height: 100svh;
        overflow-y: auto;
    }
}

/* Desktop curto mantém toda a comunicação do hero; só as seções seguintes compactam. */
@media (min-width: 769px) and (max-height: 800px) {
    :root { --nav-height: 80px; }
    .nav-logo-img { height: 64px; }
    .nav-experience-badge { display: flex; height: 40px; }
    .badge-number { font-size: 2rem; }
    .badge-text { font-size: 0.75rem; }
    .hero-content { padding-bottom: 12vh; }
    .hero-title { font-size: clamp(3.5rem, 9vw, 9rem); margin-bottom: 2.5rem; }
    .hero-subtitle { line-height: 1.7; }
}

@media (min-width: 769px) and (max-height: 640px) {
    .nav-experience-badge { display: flex; }
    .scroll-indicator { display: flex; }
}

/* Uma janela desktop muito baixa deve rolar, não esmagar o conteúdo. */
@media (min-width: 769px) and (max-height: 640px) {
    #hero {
        height: 620px;
        min-height: 620px;
    }

    .pf-slide,
    .portfolio-rail {
        height: 620px;
        min-height: 620px;
    }

    .pf-content {
        padding-bottom: 3rem;
    }

    /* Remove a sobreposição: o menu volta ao fluxo normal nessa janela baixa. */
    nav {
        position: relative;
    }
}

/* Desktop compacto: mesma composição, apenas hero levemente ajustado. */
@media (min-width: 769px) and (max-width: 1100px) and (max-height: 720px) {
    nav {
        position: fixed;
        height: 72px;
    }

    .nav-logo-img { height: 56px; }
    .nav-experience-badge { height: 36px; }
    .badge-number { font-size: 1.75rem; }
    .badge-text { font-size: 0.7rem; }

    #hero {
        height: 100vh;
        min-height: 0;
    }

    .hero-content { padding-bottom: 6vh; }
    .hero-title {
        font-size: clamp(3rem, 7vw, 5.5rem);
        margin-bottom: 1.25rem;
    }

    .pf-slide,
    .portfolio-rail {
        height: 100svh;
        min-height: 0;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    #hero .hero-content {
        transform: translateY(2rem);
        padding-bottom: 4vh;
    }

    #hero .hero-title {
        font-size: clamp(3.2rem, 6.5vw, 5.5rem);
        margin-bottom: 1.25rem;
    }

    #hero .hero-subtitle {
        font-size: 1rem;
        line-height: 1.55;
    }
}

/* Estado original do cabeçalho em desktop. */
@media (min-width: 769px) {
    :root { --nav-height: 80px; }

    nav {
        position: fixed;
        height: var(--nav-height);
    }

    .nav-logo-img { height: 64px; }
    .nav-experience-badge { display: flex; height: 40px; }
    .badge-number { font-size: 2rem; }
    .badge-text { font-size: 0.75rem; }
}

/* Nossa História — linha do tempo alternada */
/* Hero fluido: reduz gradualmente em janelas menores sem alterar a composição. */
@media (min-width: 769px) {
    #hero {
        height: 100vh;
        min-height: 0;
    }

    #hero .hero-content {
        transform: none;
        padding-bottom: clamp(2rem, 7vh, 5rem);
    }

    #hero .hero-title {
        font-size: clamp(3.6rem, min(7vw, 16vh), 8rem);
        margin-bottom: clamp(1.25rem, 2vw, 2.5rem);
    }

    #hero .hero-subtitle {
        font-size: clamp(1rem, 1.2vw, 1.2rem);
        line-height: 1.6;
    }

    .scroll-indicator {
        bottom: 1rem;
    }
}
