﻿:root {
    --bg: #031027;
    --bg-soft: #000a37;
    --surface: rgba(1, 18, 46, 0.82);
    --text: #edf3fc;
    --muted: #9db4d8;
    --primary: #0a7ed2;
    --neon: #e31b23;
    --accent: #053997;
    --line: rgba(80, 214, 244, 0.22);
    --shadow: 0 14px 38px rgba(2, 8, 32, 0.52);
    --radius: 16px;

    --motion-duration-fast: 180ms;
    --motion-duration-normal: 320ms;
    --motion-duration-slow: 520ms;
    --motion-ease-standard: cubic-bezier(0.2, 0, 0, 1);
    --motion-ease-enter: cubic-bezier(0.16, 1, 0.3, 1);

    /* Background ambiente (dot grid + glows) — ver assets/css/bg-ambient.css */
    --dot-color: rgba(158, 199, 255, 0.055);
    --glow-cyan: rgba(78, 171, 255, 0.075);
    --glow-blue: rgba(10, 126, 210, 0.065);
    --glow-violet: rgba(120, 96, 224, 0.038);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

::selection { background: rgba(227, 27, 35, 0.55); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #010712; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0a4fa8, #062a5e);
    border-radius: 100px;
    border: 2px solid #010712;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #0d6efd, #0a4fa8); }

:focus-visible { outline: 2px solid rgba(78, 171, 255, 0.7); outline-offset: 2px; }

main  { position: relative; z-index: 1; }
.footer { position: relative; z-index: 1; }
.back-to-top { z-index: 1200; }

body {
    font-family: 'Exo 2', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top center, #000a37 0%, #010712 48%, #00040d 100%);
    line-height: 1.6;
}
/* Em touch/mobile a malha interativa é desligada; uma textura estática e
   rolável preserva a identidade sem canvas ou background-attachment fixed. */
@media (max-width: 768px), (hover: none) {
    body {
        background:
            radial-gradient(circle, var(--dot-color) 1px, transparent 1.4px),
            radial-gradient(circle at top center, #000a37 0%, #010712 48%, #00040d 100%);
        background-size: 22px 22px, auto;
        background-attachment: scroll;
    }
}

.container { width: min(1120px, 92%); margin: 0 auto; }
.section { padding: 92px 0; }
h1, h2, h3, h4 {
    font-family: 'Eurostile Bold Extended', 'Eurostile', 'Microgramma D Extended Bold', 'Microgramma', 'Michroma', sans-serif;
    line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); margin-bottom: 14px; }
p { color: var(--muted); }

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background:
        radial-gradient(circle at 22% 36%, rgba(10, 126, 210, 0.16) 0%, transparent 60%),
        linear-gradient(180deg, rgba(1, 7, 18, 0.97) 0%, rgba(0, 10, 36, 0.94) 100%);
        border-bottom: 1px solid rgba(217, 4, 41, 0.34);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 14px; }
.brand { display: flex; align-items: center; gap: 0; text-decoration: none; color: var(--text); }
.brand-logo {
    width: 118px;
    height: 105px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    transition: filter .28s ease, transform .28s ease;
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}
.brand:hover .brand-logo {
    filter:
        drop-shadow(0 0 10px rgba(20, 150, 255, 0.45))
        drop-shadow(0 0 22px rgba(12, 90, 220, 0.35))
        drop-shadow(0 8px 20px rgba(1, 9, 28, 0.55));
    transform: translateY(-1px);
}
.nav a, .btn {
    font-family: 'Eurostile Bold Extended', 'Eurostile', 'Microgramma D Extended Bold', 'Microgramma', 'Michroma', sans-serif;
    letter-spacing: 0.2px;
}

.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; transition: color var(--motion-duration-fast) var(--motion-ease-standard); position: relative; }
.nav a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--neon);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--motion-duration-normal) var(--motion-ease-enter);
}
.nav a:hover { color: var(--neon); }
.nav a.active-section { color: var(--neon); }
.nav a:not(.btn-nav):hover::after,
.nav a:not(.btn-nav).active-section::after {
    transform: scaleX(1);
    transform-origin: left center;
}
.btn-nav {
    border: 1px solid rgb(151 7 7);
    padding: 10px 14px;
    border-radius: 12px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--text);
    cursor: pointer;
}

.hero { padding-top: 172px; padding-bottom: 64px; min-height: 88vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before {
    content: '';
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-46%);
    width: 100%;
    height: 115%;
    background: url('../images/bull_background.png') center / contain no-repeat;
    mix-blend-mode: screen;
    opacity: 0.50;
    mask-image: linear-gradient(to top, transparent 0%, transparent 20%, rgba(0, 0, 0, 0.4) 45%, black 75%);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, transparent 20%, rgba(0, 0, 0, 0.4) 45%, black 75%);
    pointer-events: none;
    z-index: 0;
}
.hero-grid { display: grid; gap: 34px; grid-template-columns: 1.2fr .8fr; align-items: center; position: relative; z-index: 1; }
/* Malha de pontos interativa do hero: assets/js/motion/interactive-dot-grid.js
   + regras de posicionamento em assets/css/bg-ambient.css (.hero-dotgrid). */
.eyebrow {
    display: inline-block;
    color: #ff5964;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.hero-content .eyebrow {
    margin: 0 0 14px;
    max-width: none;
}
.hero-content h1 {
    color: #ffffff;
}
/* Gradiente aplicado diretamente no span que anima (nao no h1 pai):
   em Safari/iOS, background-clip:text num ancestral de um elemento que
   anima transform faz o texto sumir apos a animacao terminar. Aplicando
   no proprio elemento animado, o clip fica preso ao mesmo layer. */
.hero-title-line > span {
    background: linear-gradient(115deg, #ffffff 35%, #b9dcff 70%, #4eabff 105%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p { max-width: 62ch; margin: 18px 0; }
.hero-actions { display: flex; gap: 12px; margin: 20px 0 26px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        transform var(--motion-duration-fast) var(--motion-ease-standard),
        background-color var(--motion-duration-fast) var(--motion-ease-standard),
        border-color var(--motion-duration-fast) var(--motion-ease-standard),
        color var(--motion-duration-fast) var(--motion-ease-standard),
        filter var(--motion-duration-fast) var(--motion-ease-standard);
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(100deg, #7a0505 0%, #d92a2a 100%);
    color: #fff;
    box-shadow: none;
    border: none !important;
}
.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}
.btn:active {
    transform: translateY(0) scale(0.98);
}
.btn-ghost { border-color: rgba(255, 255, 255, .32); color: var(--text); }
.btn-ghost:hover {
    border-color: var(--neon);
    color: #fff;
    background: rgba(227, 27, 35, 0.08);
    transform: translateY(-2px);
}

.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats > div {
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 16, 30, 0.78);
    transition: border-color .25s ease, transform .25s ease;
}
.hero-stats > div:hover { border-color: rgba(78, 171, 255, 0.45); transform: translateY(-2px); }
.hero-stats strong { display: block; font-size: 1.35rem; color: #fff; }
.hero-stats span { font-size: .84rem; color: var(--muted); }

.hero-card, .card, .service-card, .pillar, .project-card, .timeline-item, .contact-form, .cta-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-card { padding: 28px; margin-top: 0; }
.hero-card ul { list-style: none; margin-top: 16px; }
.hero-card li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #d5e2ff; }
.hero-card .material-icons-outlined { color: var(--neon); font-size: 19px; }

.section-intro { max-width: 72ch; margin-bottom: 22px; }
.section-kicker {
    display: table;
    margin: 0 auto 14px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ff5964;
    padding: 5px 16px;
    border: 1px solid rgba(227, 27, 35, 0.32);
    border-radius: 100px;
    background: rgba(227, 27, 35, 0.07);
}
.section-title {
    text-align: center;
}
.container > .section-intro {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.about-grid, .services-grid, .portfolio-grid {
    display: grid;
    gap: 18px;
}
.about-grid { grid-template-columns: repeat(3, 1fr); }

/* Sobre — Bull mascot */
.sobre-bull {
    position: relative;
    width: min(500px, 88%);
    margin: 44px 0 52px;
    margin-left: auto;
    margin-right: auto;
}
.sobre-bull-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 28px rgba(13,110,253,.42)) drop-shadow(0 0 64px rgba(18,198,255,.18));
    opacity: 0.6;
}

.card { padding: 28px 26px; transition: transform .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(78, 171, 255, 0.4); }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { padding: 28px 26px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 6, 6, .4);
    box-shadow: 0 18px 44px rgba(2, 8, 32, 0.62);
}
.service-card .material-icons-outlined {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 13px;
    color: #ff5964;
    background: rgba(227, 27, 35, 0.1);
    border: 1px solid rgba(227, 27, 35, 0.28);
    margin-bottom: 14px;
    font-size: 26px;
}

/* ═══════════════════════════════════════════
   DIFERENCIAIS — Advanced Redesign
═══════════════════════════════════════════ */
.diff-section { position: relative; overflow: hidden; }
.diff-header { text-align: center; margin-bottom: 52px; position: relative; z-index: 1; }
.diff-header h2 { margin-bottom: 12px; }
.diff-header .section-intro { margin: 0 auto; text-align: center; }

.diff-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Cards */
.diff-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}
.diff-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform .2s, border-color .2s;
}
.diff-card:hover { transform: translateY(-4px); border-color: rgba(229, 6, 6, .35); }

.diff-card-bar { display: none; }

.diff-icon {
    display: block;
    font-size: 30px;
    color: var(--neon);
    filter: none;
    margin-bottom: 16px;
}
.diff-card h3 { font-size: 1.05rem; color: #e0ecff; margin-bottom: 10px; }
.diff-card p   { font-size: .875rem; line-height: 1.68; }

.diff-chip {
    display: inline-block;
    margin-top: 18px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: .66rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: rgba(229, 6, 6, .06);
    border: 1px solid rgba(229, 6, 6, .25);
    color: #ff7878;
}
/* ═══════════════════════════════════════════
   Client carousel — empresas atendidas (logos)
═══════════════════════════════════════════ */
.client-carousel { padding: 40px 0 56px; position: relative; z-index: 1; overflow: hidden; }
.client-carousel-title { margin-bottom: 30px; }
.client-carousel-viewport {
    width: min(920px, calc(100% - 40px));
    margin-inline: auto;
    overflow: hidden;
    contain: layout paint;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.client-carousel-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: client-marquee 31s linear infinite;
    animation-play-state: paused;
}
.client-carousel.is-playing .client-carousel-track {
    animation-play-state: running;
    will-change: transform;
}
.client-carousel-track:hover,
.client-carousel-track:focus-within { animation-play-state: paused; }
.client-carousel-group {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 132px;
    align-items: center;
    gap: 52px;
    padding-right: 52px;
}
.client-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 58px;
    text-decoration: none;
}
.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .7;
    transition: filter .4s ease, opacity .4s ease, transform .4s ease;
}
.client-logo:hover img,
.client-logo:focus-visible img {
    filter: none;
    opacity: .8;
    transform: translateY(-2px);
}
.client-logo-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(8, 16, 30, .95);
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--text);
    font-size: .78rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 2;
}
.client-logo-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(8, 16, 30, .95);
}
.client-logo:hover .client-logo-tooltip,
.client-logo:focus-visible .client-logo-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
@keyframes client-marquee {
    to { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 768px) {
    .client-carousel { padding: 32px 0 44px; }
    .client-carousel-title { margin-bottom: 24px; }
    .client-carousel-viewport {
        width: min(360px, calc(100% - 32px));
        overflow-x: auto;
        overflow-y: hidden;
        contain: layout paint;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 16px;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .client-carousel-viewport::-webkit-scrollbar { display: none; }
    .client-carousel-track {
        display: flex;
        width: max-content;
        animation: none;
        transform: none;
    }
    .client-carousel-group {
        width: max-content;
        display: flex;
        gap: 20px;
        padding: 8px 16px 14px;
    }
    .client-carousel-group[aria-hidden="true"] { display: none; }
    .client-logo {
        flex: 0 0 132px;
        width: 132px;
        height: 54px;
        scroll-snap-align: center;
        scroll-snap-stop: normal;
    }
    .client-logo-tooltip { display: none; }

    /* O JS ativa a cópia acessória somente quando o autoplay pode rodar.
       Sem JS ou em reduced motion, permanece o carrossel manual com snap. */
    .client-carousel.has-mobile-autoplay .client-carousel-viewport {
        scroll-snap-type: none;
        touch-action: pan-x pan-y pinch-zoom;
    }
    .client-carousel.has-mobile-autoplay .client-carousel-group {
        padding: 8px 10px 14px;
    }
    .client-carousel.has-mobile-autoplay .client-carousel-group[aria-hidden="true"] {
        display: flex;
    }
    .client-carousel.has-mobile-autoplay .client-logo {
        scroll-snap-align: none;
    }
}

@media (max-width: 760px) {
    .hero-eye-glow {
        display: block;
        left: 60%;
        top: clamp(258px, calc(96px + 42vw), 356px);
        width: 30px;
    }
}

@media (prefers-reduced-motion: reduce) and (min-width: 769px) {
    .client-carousel-viewport {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .client-carousel-track {
        width: 100%;
        animation: none;
        transform: none;
    }
    .client-carousel-group:first-child {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 28px 46px;
        padding: 0;
    }
    .client-carousel-group[aria-hidden="true"] { display: none; }
}

@media (max-width: 768px), (hover: none) {
    .cta-box.is-visible .smoke-puff {
        animation: none !important;
        will-change: auto;
    }
}

/* ═══════════════════════════════════════════
   Tech showcase — Consultoria / IA (2 colunas)
═══════════════════════════════════════════ */
.tech-showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tech-showcase-content .section-kicker { margin-bottom: 14px; }
.tech-showcase-content h2 { max-width: 18ch; }
.tech-showcase-content .section-intro { margin: 0 0 26px; }
.tech-showcase-points { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.tech-showcase-points > div {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 16, 30, 0.5);
    transition: border-color .25s ease, transform .25s ease;
}
.tech-showcase-points > div:hover { border-color: rgba(78, 171, 255, 0.4); transform: translateY(-2px); }
.tech-showcase-points .material-icons-outlined {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: #ff5964;
    background: rgba(227, 27, 35, 0.1);
    border: 1px solid rgba(227, 27, 35, 0.28);
    font-size: 21px;
}
.tech-showcase-points strong { display: block; font-size: .92rem; margin-bottom: 3px; color: #edf3fc; }
.tech-showcase-points span { font-size: .82rem; line-height: 1.5; }
.tech-showcase-content .btn-primary { display: inline-flex; align-items: center; gap: 8px; }
.tech-showcase-content .btn-primary .material-icons-outlined { font-size: 18px; }

/* Dashboard mockup */
.tech-showcase-visual { display: flex; justify-content: center; }
.dash-mock {
    width: 100%;
    max-width: 460px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 22px 24px;
    transition: transform .3s ease, border-color .3s ease;
}
.dash-mock:hover { transform: translateY(-4px); border-color: rgba(78, 171, 255, 0.4); }
.dash-mock-header { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; }
.dash-mock-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.dash-mock-dot:nth-child(1) { background: #e5504a; }
.dash-mock-dot:nth-child(2) { background: #e8b64a; }
.dash-mock-dot:nth-child(3) { background: #4ac97a; }
.dash-mock-title { margin-left: 8px; font-size: .78rem; color: var(--muted); letter-spacing: .4px; }
.dash-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.dash-mock-stats > div {
    padding: 12px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.dash-mock-stats span { display: block; font-size: .68rem; color: var(--muted); margin-bottom: 6px; }
.dash-mock-stats strong { display: block; font-size: 1rem; color: #fff; }
.dash-mock-stats em { display: block; font-style: normal; font-size: .72rem; color: #4ac97a; margin-top: 3px; }
.dash-mock-chart { height: 90px; }
.dash-mock-chart svg { width: 100%; height: 100%; }
.dash-mock-chart polyline {
    fill: none;
    stroke: #4eabff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(78, 171, 255, 0.55));
}

/* Arte de IA (imagem) */
.ai-visual {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    -webkit-mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
}
.ai-visual img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
}

@media (max-width: 980px) {
    .tech-showcase-grid { grid-template-columns: 1fr; gap: 34px; }
    .tech-showcase-content h2 { max-width: none; }
}

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.timeline-item {
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    transition: transform .25s ease, border-color .25s ease;
}
.timeline-item:hover { transform: translateY(-4px); border-color: rgba(78, 171, 255, 0.4); }
.timeline-item span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0c2b73 0%, #2563eb 100%);
    font-weight: 700;
}
.timeline-item h3 { font-size: 1rem; }
.timeline-item p { font-size: .89rem; }

.portfolio-grid { grid-template-columns: repeat(3, 1fr); }
.project-card { padding: 24px; }

.project-type, .project-status, .project-coming {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    font-size: .69rem;
    letter-spacing: .6px;
    padding: 6px 10px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
    gap: 6px;
}
.project-type {
    color: #00b3ff;
    border: 1px solid #08214d;
    background: rgba(4, 17, 40, 0.9);
}
.project-type .material-icons-outlined {
    font-size: 16px;
}
.project-type-wide {
    font-size: .64rem;
    letter-spacing: .45px;
    padding-left: 12px;
    padding-right: 12px;
}
.portfolio-filters-wrap {
    display: flex;
    justify-content: center;
    margin: 10px 0 24px;
}
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    border-radius: 12px;
    padding: 3px;
    background: linear-gradient(170deg, #041128, #010712);
    border: 1px solid #08214d;
}
.portfolio-filter-btn {
    border: 1px solid transparent;
    background: transparent;
    color: #9db4d8;
    border-radius: 12px;
    padding: 8px 18px;
    font: inherit;
    font-size: .95rem;
    cursor: pointer;
    transition: .2s ease;
}
.portfolio-filter-btn:hover {
    color: #ffffff;
}
.portfolio-filter-btn.is-active {
    border-color: #0088ff;
    color: #edf3fc;
    background: linear-gradient(165deg, #0048b3, #08214d);
    box-shadow: 0 0 8px rgba(0, 72, 179, 0.26);
}
.portfolio-grid-cards {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}
.portfolio-neon-grid {
    gap: 20px;
    grid-auto-rows: 1fr;
}
.project-showcase-card {
    background: linear-gradient(165deg, #041128, #010712);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.project-showcase-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 136, 255, 0.55);
    box-shadow: 0 24px 56px rgba(1, 10, 24, 0.75), 0 0 18px rgba(0, 72, 179, 0.22);
}
.project-showcase-card.is-hidden {
    display: none;
}
.project-neon-card {
    border: 1px solid #08214d;
    box-shadow:
        0 0 0 1px rgba(8, 33, 77, 0.45) inset,
        0 0 8px rgba(0, 72, 179, 0.12),
        0 10px 26px rgba(1, 10, 24, 0.58);
    position: relative;
}
.project-neon-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 136, 255, 0.04), transparent 22%);
}
.project-image-link {
    position: relative;
    display: block;
    width: 100%;
    height: 250px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(195, 209, 224, 0.06);
    overflow: hidden;
}
.project-showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .45s ease;
}
.project-image-link:hover img { transform: scale(1.04); }
.project-image-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(13, 110, 253, 0.0);
    transition: background .2s ease;
}
.project-image-overlay .material-icons-outlined {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 30px;
    color: #dff4ff;
    border: 1px solid rgba(173, 227, 255, 0.65);
    background: rgba(8, 24, 45, 0.48);
    opacity: 0;
    transform: translateY(6px) scale(.96);
    transition: opacity .22s ease, transform .22s ease;
}
.project-image-link:hover .project-image-overlay,
.project-image-link:focus-visible .project-image-overlay {
    background: rgba(0, 72, 179, 0.26);
}
.project-image-link:hover .project-image-overlay .material-icons-outlined,
.project-image-link:focus-visible .project-image-overlay .material-icons-outlined {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.project-empty-media {
    width: 100%;
    height: 40%;
    min-height: 220px;
    display: grid;
    place-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at 50% 42%, rgba(0, 72, 179, 0.24), rgba(4, 17, 40, 0.96) 60%),
        radial-gradient(circle at 50% 68%, rgba(0, 136, 255, 0.16), transparent 23%);
}
.project-empty-media .material-icons-outlined {
    font-size: 44px;
    color: #0088ff;
}
.project-showcase-content {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: flex-start;
}
.project-showcase-content h3 {
    font-size: 1.22rem;
    line-height: 1.2;
    margin-bottom: 2px;
}
.project-showcase-content p {
    font-size: .94rem;
}
.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}
.project-stack span {
    font-size: .7rem;
    line-height: 1;
    color: #9db4d8;
    border: 1px solid #08214d;
    background: rgba(4, 17, 40, 0.9);
    border-radius: 999px;
    padding: 6px 11px;
}
.project-showcase-card-empty {
    justify-content: center;
    background:
        radial-gradient(circle at 100% 0, rgba(0, 72, 179, 0.14), transparent 42%),
        linear-gradient(165deg, #041128, #010712);
}
.project-detail-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
    color: #9db4d8;
    border: 1px solid #08214d;
    padding: 10px 14px;
    border-radius: 10px;
    transition: .22s ease;
    background: #041128;
    justify-content: center;
}
.project-detail-link .material-icons-outlined {
    font-size: 19px;
    color: #0088ff;
}
.project-detail-link:hover {
    border-color: #0088ff;
    color: #edf3fc;
    background: #08214d;
}

/* Project detail page */
.project-page .container {
    width: min(1320px, 95%);
}
.project-hero {
    padding-top: 150px;
    padding-bottom: 48px;
    position: relative;
    overflow: hidden;
}
.project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 58% 12%, rgba(13, 110, 253, 0.22), transparent 30%),
        radial-gradient(circle at 20% 55%, rgba(229, 6, 6, 0.08), transparent 30%);
    pointer-events: none;
}
.project-breadcrumb {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 30px;
}
.project-breadcrumb a {
    color: #a9c3ea;
    text-decoration: none;
    transition: color .2s ease;
}
.project-breadcrumb a:hover,
.project-breadcrumb a:focus-visible {
    color: #ffffff;
}
.project-breadcrumb .material-icons-outlined {
    font-size: 16px;
    color: rgba(157, 180, 216, 0.55);
}
.project-breadcrumb [aria-current] {
    color: #ff5964;
}

/* ═══════════════════════════════════════════
   Página legal — Política de Privacidade
═══════════════════════════════════════════ */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h1 { margin-bottom: 22px; }
.legal-content h2 { font-size: 1.3rem; margin-top: 34px; margin-bottom: 10px; }
.legal-content p { margin-bottom: 4px; }
.legal-updated { color: var(--muted); font-size: .88rem; margin-top: 22px; }
.project-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #ff5964;
    margin-bottom: 24px;
}
.project-back .material-icons-outlined {
    font-size: 19px;
}
.project-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 44px;
    align-items: center;
}
.project-chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(78, 171, 255, 0.38);
    color: #9fd6ff;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.project-hero-content h1 {
    margin-bottom: 14px;
}
.project-hero-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 24px 0 0;
}
.project-hero-meta > div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 16, 30, 0.85);
}
.project-meta-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 16, 30, 0.85);
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.project-meta-link:hover,
.project-meta-link:focus-visible {
    border-color: rgba(255, 89, 100, 0.6);
    background: rgba(26, 8, 14, 0.55);
    transform: translateY(-2px);
}
.project-hero-meta i {
    color: #4eabff;
}
.project-hero-meta span {
    line-height: 1.3;
    color: #d0e0ff;
    font-size: .88rem;
}
.project-hero-meta strong {
    color: #fff;
}
.project-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Browser mockup frame */
.browser-frame {
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(5, 13, 28, 0.92);
    box-shadow: 0 24px 60px rgba(1, 8, 22, 0.6);
}
.browser-frame-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    margin: 0;
    background: linear-gradient(180deg, rgba(16, 28, 52, 0.95), rgba(9, 18, 36, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.browser-dot:nth-of-type(1) { background: #ff5f57; }
.browser-dot:nth-of-type(2) { background: #febc2e; }
.browser-dot:nth-of-type(3) { background: #28c840; }
.browser-url {
    margin-left: 10px;
    font-size: .74rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    padding: 3px 14px;
    letter-spacing: .4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.browser-frame img {
    width: 100%;
    height: auto;
    display: block;
}
.project-hero-visual .browser-frame img {
    max-height: 520px;
    object-fit: cover;
    object-position: top;
}

/* Section heads */
.project-kicker {
    display: inline-block;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #ff5964;
    margin-bottom: 10px;
}
.project-section-head {
    max-width: 760px;
    margin-bottom: 44px;
}
.project-section-title {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    margin-bottom: 12px;
}
.project-section-lead {
    font-size: 1rem;
}
.project-detail-wrap {
    padding-top: 36px;
    padding-bottom: 36px;
}
.project-about {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 36px;
    padding: 40px 42px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at 45% -20%, rgba(13, 110, 253, 0.2), transparent 42%),
        linear-gradient(160deg, rgba(7, 17, 35, 0.96), rgba(5, 13, 28, 0.96));
    box-shadow: var(--shadow);
}
.project-about h2 {
    margin-bottom: 12px;
}
.project-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.project-pillars > div {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px 18px;
    background: rgba(8, 16, 30, 0.6);
    transition: transform .25s ease, border-color .25s ease;
}
.project-pillars > div:hover {
    transform: translateY(-4px);
    border-color: rgba(78, 171, 255, 0.45);
}
.project-pillar-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(227, 27, 35, 0.12);
    border: 1px solid rgba(227, 27, 35, 0.3);
}
.project-pillar-icon i,
.project-pillars i {
    color: #ff5964;
    font-size: 22px;
}
.project-pillars h3 {
    font-size: .92rem;
    margin: 12px 0 6px;
}
.project-pillars p {
    font-size: .86rem;
}

/* Case study rows */
.case-rows {
    display: flex;
    flex-direction: column;
    gap: 60px;
}
.case-row {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 44px;
    align-items: center;
}
.case-row:nth-child(even) {
    direction: rtl;
}
.case-row:nth-child(even) > * {
    direction: ltr;
}
.case-media .browser-frame {
    cursor: pointer;
    position: relative;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.case-media .browser-frame:hover,
.case-media .browser-frame:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(78, 171, 255, 0.5);
    box-shadow: 0 30px 70px rgba(1, 8, 22, 0.78);
}
.case-zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: #fff;
    background: rgba(3, 10, 24, 0.78);
    padding: 7px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.case-zoom-hint .material-icons-outlined {
    font-size: 16px;
}
.case-media .browser-frame:hover .case-zoom-hint,
.case-media .browser-frame:focus-visible .case-zoom-hint {
    opacity: 1;
}
.case-copy {
    position: relative;
}
.case-num {
    display: block;
    font-family: 'Eurostile Bold Extended', 'Eurostile', 'Microgramma D Extended Bold', 'Microgramma', 'Michroma', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(78, 171, 255, 0.5);
    margin-bottom: 14px;
}
.case-copy h3 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    margin-bottom: 10px;
}
.case-copy p {
    font-size: .98rem;
    max-width: 46ch;
}

/* Delivery process */
.project-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.project-process-step {
    position: relative;
    padding: 24px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 16, 30, 0.6);
    transition: transform .25s ease, border-color .25s ease;
}
.project-process-step:hover {
    transform: translateY(-4px);
    border-color: rgba(78, 171, 255, 0.45);
}
.project-process-num {
    position: absolute;
    top: 18px;
    right: 18px;
    font-family: 'Eurostile Bold Extended', 'Eurostile', 'Microgramma D Extended Bold', 'Microgramma', 'Michroma', sans-serif;
    font-size: 1.6rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
}
.project-process-step h3 {
    font-size: .95rem;
    margin: 14px 0 8px;
}
.project-process-step p {
    font-size: .86rem;
}

/* CTA row */
.project-cta-row {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 26px 30px;
    display: grid;
    grid-template-columns: 92px 1fr auto;
    align-items: center;
    gap: 18px;
    background:
        radial-gradient(circle at 10% 50%, rgba(13, 110, 253, 0.22), transparent 30%),
        linear-gradient(165deg, rgba(7, 18, 36, 0.96), rgba(7, 15, 30, 0.95));
    box-shadow: var(--shadow);
}
.project-cta-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 40%, rgba(10, 126, 210, 0.32), rgba(1, 18, 74, 0.42));
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.project-cta-icon .material-icons-outlined {
    color: #ffffff;
    font-size: 34px;
}
.project-cta-content h2 {
    margin-bottom: 6px;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
}
.project-cta-btn {
    white-space: nowrap;
}

/* Prev / next project navigation */
.project-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: stretch;
}
.project-nav-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 20px 22px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 16, 30, 0.6);
    transition: transform .25s ease, border-color .25s ease;
}
.project-nav-card:hover,
.project-nav-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 89, 100, 0.5);
}
.project-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--muted);
}
.project-nav-label .material-icons-outlined {
    font-size: 17px;
    color: #ff5964;
}
.project-nav-card strong {
    font-family: 'Eurostile Bold Extended', 'Eurostile', 'Microgramma D Extended Bold', 'Microgramma', 'Michroma', sans-serif;
    font-size: .98rem;
}
.project-nav-next {
    text-align: right;
    align-items: flex-end;
}
.project-nav-next .project-nav-label {
    flex-direction: row;
}
.project-nav-all {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .85rem;
}
.project-nav-all:hover,
.project-nav-all:focus-visible {
    color: #ffffff;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 16, 0.93);
    backdrop-filter: blur(8px);
    padding: 4vh 4vw;
}
.lightbox[hidden] {
    display: none;
}
.lightbox figure {
    max-width: min(1400px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}
.lightbox img {
    max-width: 100%;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.lightbox figcaption {
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(10, 20, 40, 0.8);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: border-color .2s ease, transform .2s ease;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
    border-color: #ff5964;
    transform: scale(1.05);
}

/* Legacy gallery (kept for older static project pages) */
.project-gallery {
    margin-top: 4px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.project-shot {
    background: rgba(8, 19, 36, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s ease, border-color .25s ease;
}
.project-shot:hover {
    transform: translateY(-4px);
    border-color: rgba(78, 171, 255, 0.45);
}
.project-shot img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px 14px 0 0;
}
.project-shot h3, .project-shot p {
    padding: 0 14px;
}
.project-shot h3 {
    font-size: 1rem;
    margin: 14px 0 6px;
}
.project-shot p {
    font-size: .9rem;
    padding-bottom: 14px;
}

.cta-section { padding-top: 40px; }
.cta-box {
    position: relative;
    display: grid;
    grid-template-columns: 52% 48%;
    gap: 10px;
    align-items: center;
    text-align: left;
    min-height: 430px;
    padding: 15px 36px;
    background:
        radial-gradient(circle at 18% 20%, rgba(11, 94, 215, 0.1), transparent 34%), linear-gradient(155deg, rgb(1 8 22), rgba(0, 8, 44, 0.78));
    border: 1px solid rgba(11, 94, 215, 0.3);
    border-radius: 24px;
    overflow: hidden;
}
.cta-content { align-self: center; position: relative; }
/* Glow extra do CTA final — escopado só ao texto (.cta-content), de
   propósito longe da ilustração do touro (.bull-wrap tem PNG com fundo
   transparente; um glow atrás dela virou "mancha de luz" antes, ver commit
   216c78f). .cta-box::before já existe em motion-sections.css (linha de
   energia no topo) — por isso o gancho aqui é outro. Sem z-index: fica
   atrás do h2/p/.btn só por ser o primeiro no fluxo. */
.cta-content::before {
    content: '';
    position: absolute;
    inset: -8% -10%;
    pointer-events: none;
    background:
        radial-gradient(420px circle at 20% 12%, var(--glow-cyan), transparent 62%),
        radial-gradient(360px circle at 32% 92%, var(--glow-blue), transparent 64%);
}
.cta-content .section-title {
    text-align: left;
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 16px;
}
.cta-content p {
    max-width: 36ch;
    margin: 0 0 24px;
    font-size: clamp(0.9rem, 1.05vw, 1.18rem);
}
.cta-content .cta-lead-line { display: block; font-size: inherit; }
.cta-content .cta-sub-line {
    display: block;
    margin-top: 2px;
    font-size: 0.92em;
}
.cta-illustration {
    display: grid;
    place-items: center;
    align-self: center;
}
.bull-wrap {
    position: relative;
    width: min(112%, 700px);
}
.cta-illustration img {
    width: min(112%, 700px);
    max-height: 460px;
    object-fit: contain;
    object-position: 42% 34%;
    transform: translate(-34px, -22px);
    opacity: 0.5;
    filter: drop-shadow(0 0 22px rgba(11, 94, 215, 0.25));
}
.bull-smoke {
    position: absolute;
    right: 21.5%;
    top: 65.5%;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.smoke-puff {
    position: absolute;
    left: 0;
    top: 0;
    width: clamp(34px, 4vw, 54px);
    height: clamp(18px, 2.2vw, 30px);
    border-radius: 48% 58% 54% 46%;
    background:
        radial-gradient(ellipse at 22% 54%, rgba(210, 238, 255, .62) 0 18%, transparent 48%),
        radial-gradient(ellipse at 52% 42%, rgba(105, 181, 236, .38) 0 24%, transparent 62%),
        radial-gradient(ellipse at 82% 58%, rgba(48, 123, 205, .22) 0 16%, transparent 66%);
    filter: blur(1.8px);
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(.72, .64);
    transform-origin: left center;
    --smoke-delay: 0s;
    --smoke-x: 72px;
    --smoke-y: -14px;
    --smoke-rotate: -9deg;
}
.puff-2 {
    top: 5px;
    --smoke-delay: .18s;
    --smoke-x: 82px;
    --smoke-y: 4px;
    --smoke-rotate: 4deg;
}
.puff-3 {
    top: 10px;
    width: clamp(30px, 3.5vw, 46px);
    --smoke-delay: .36s;
    --smoke-x: 68px;
    --smoke-y: 20px;
    --smoke-rotate: 12deg;
}
.cta-box.is-visible .smoke-puff {
    animation: bull-snort 2.8s cubic-bezier(.16, 1, .3, 1) calc(.95s + var(--smoke-delay)) 2;
}

@keyframes bull-snort {
    0%, 4% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(0) scale(.72, .64);
    }
    12% {
        opacity: .58;
        transform: translate3d(16px, calc(var(--smoke-y) * .2), 0) rotate(calc(var(--smoke-rotate) * .25)) scale(1, .9);
    }
    34% {
        opacity: .42;
        transform: translate3d(calc(var(--smoke-x) * .62), calc(var(--smoke-y) * .65), 0) rotate(calc(var(--smoke-rotate) * .7)) scale(1.38, 1.12);
    }
    62% {
        opacity: 0;
        transform: translate3d(var(--smoke-x), var(--smoke-y), 0) rotate(var(--smoke-rotate)) scale(1.72, 1.35);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--smoke-x), var(--smoke-y), 0) rotate(var(--smoke-rotate)) scale(1.72, 1.35);
    }
}

.contact-form { padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-group { margin-bottom: 14px; }
label { display: block; margin-bottom: 8px; font-weight: 600; color: #dce7ff; }
input, select, textarea {
    width: 100%;
    background: rgba(10, 16, 29, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 10px;
    padding: 12px 12px;
    font: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(0, 136, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.14);
}
.form-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: .86rem;
    color: var(--muted);
}
.form-note .material-icons-outlined { font-size: 18px; color: #4eabff; }
.error-message { color: #ff7080; min-height: 16px; display: block; margin-top: 4px; font-size: .83rem; }
.input-error { border-color: #ff7080; }
.form-message { margin-bottom: 12px; font-weight: 600; }
.form-message.success { color: #58f3b1; }
.form-message.error { color: #ff7080; }
.captcha-box {
    margin: 10px 0 16px;
    padding: 10px;
    border: 1px solid rgba(80, 214, 244, 0.24);
    border-radius: 10px;
    background: rgba(2, 16, 42, 0.72);
    width: fit-content;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 3000;
    display: grid;
    gap: 10px;
    pointer-events: none;
}
.toast {
    min-width: 360px;
    max-width: 460px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(42, 129, 218, 0.48);
    background: linear-gradient(165deg, rgba(4, 17, 40, 0.97), rgba(1, 12, 35, 0.96));
    box-shadow: 0 12px 28px rgba(1, 8, 28, 0.5), 0 0 0 1px rgba(0, 136, 255, 0.08) inset;
    color: #edf3fc;
    opacity: 0;
    transform: translateX(16px) scale(0.98);
    transition: opacity .24s ease, transform .24s ease;
    pointer-events: auto;
    overflow: hidden;
}
.toast::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0048b3, #0088ff);
    transform-origin: left;
    animation: toast-progress 5.1s linear forwards;
}
.toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.toast-icon {
    color: #79b9f0;
    font-size: 22px;
}
.toast-success .toast-icon {
    color: #50d6f4;
}
.toast-error .toast-icon {
    color: #8cbaf4;
}
.toast-message {
    font-size: .95rem;
    line-height: 1.35;
    color: #edf3fc;
}
.toast-close {
    border: 0;
    background: transparent;
    color: #9db4d8;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 2px;
}
.toast-close:hover {
    color: #edf3fc;
}
@keyframes toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.footer { border-top: 1px solid var(--line); margin-top: 72px; background: rgba(3, 7, 15, .94); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 24px; padding: 12px 0 38px; }
.footer h3, .footer h4 { margin-bottom: 10px; }
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.footer-brand-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.footer ul { list-style: none; color: var(--muted); }
.footer .footer-subcopy { font-size: 0.88em; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    transition: color var(--motion-duration-fast) var(--motion-ease-standard);
}
.footer-links a:hover { color: var(--text); }
.footer-links a .material-icons-outlined { font-size: 1.05rem; color: var(--neon); }
.footer-social { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: .85rem;
    transition: color var(--motion-duration-fast) var(--motion-ease-standard);
}
.footer-social-link:hover { color: var(--text); }
.footer-social-link .material-icons-outlined { font-size: 1.1rem; }
.footer-bottom { text-align: center; border-top: 1px solid var(--line); padding: 14px 0; }
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--text); }
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none !important;
    background: var(--neon);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 1200;
    box-shadow: 0 10px 24px rgba(227, 27, 35, .35);
    transition: transform .3s ease, filter .3s ease, opacity .32s ease, visibility .32s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.back-to-top .material-icons-outlined {
    font-size: 28px;
    line-height: 1;
}
.back-to-top:hover {
    transform: translateY(-4px);
    filter: brightness(1.06);
}

/* Sistema de reveal: assets/css/motion.css ([data-animate]) */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bull-smoke { display: none; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .header, .back-to-top, .bg-glow-layer, .bg-vignette { display: none !important; }
}

@media (max-width: 980px) {
    .hero-grid, .about-grid, .services-grid, .portfolio-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
    .diff-cards { grid-template-columns: repeat(2, 1fr); }
    .hero { min-height: auto; }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid-cards { grid-template-columns: 1fr 1fr; }
    .project-showcase-card { min-height: 560px; }
    .project-image-link, .project-empty-media { min-height: 210px; }
    .project-hero-grid, .project-about { grid-template-columns: 1fr; gap: 28px; }
    .project-pillars { grid-template-columns: repeat(2, 1fr); }
    .project-gallery { grid-template-columns: 1fr; }
    .case-row, .case-row:nth-child(even) { grid-template-columns: 1fr; gap: 20px; direction: ltr; }
    .case-rows { gap: 44px; }
    .case-copy p { max-width: none; }
    .project-process { grid-template-columns: repeat(2, 1fr); }
    .project-nav { grid-template-columns: 1fr; }
    .project-nav-next { text-align: left; align-items: flex-start; }
    .project-nav-all { justify-content: center; }
    .project-cta-row { grid-template-columns: 1fr; text-align: center; }
    .project-cta-icon { margin: 0 auto; }
    .project-cta-btn { justify-self: center; }
}

@media (max-width: 860px) {
    .cta-box {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: unset;
        padding: 38px 24px;
    }
    .cta-content .section-title {
        text-align: center;
        font-size: clamp(2rem, 9vw, 3rem);
    }
    .cta-content p {
        max-width: 72ch;
        margin-left: auto;
        margin-right: auto;
    }
    .cta-illustration img {
        width: min(80%, 360px);
        max-height: none;
        transform: none;
        object-position: center;
    }
    .bull-wrap { width: min(80%, 360px); }
    .bull-smoke {
        right: 27%;
        top: 65%;
        transform: scale(.72);
        transform-origin: left top;
    }
}

@media (max-width: 760px) {
    .menu-toggle { display: inline-flex; }
    .nav {
        position: absolute;
        top: 100%;
        right: 4%;
        width: min(320px, 92vw);
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #0b1321;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }
    .nav.open { display: flex; }
    .hero-content { padding-top: 28px; }
    .hero .eyebrow { margin-top: 0; }
    .hero-grid, .about-grid, .services-grid, .portfolio-grid, .form-grid, .footer-grid, .timeline { grid-template-columns: 1fr; }
    .portfolio-grid-cards { grid-template-columns: 1fr; }
    .portfolio-filters-wrap { margin-bottom: 18px; }
    .portfolio-filter-btn { width: auto; max-width: none; font-size: .88rem; padding: 8px 12px; }
    .project-showcase-card { min-height: auto; }
    .project-image-link, .project-empty-media { min-height: 190px; height: 210px; }
    .eyebrow { font-size: .68rem; letter-spacing: 0.6px; white-space: normal; overflow-wrap: break-word; }
    .diff-cards { grid-template-columns: 1fr; }
    .project-hero.section { padding-top: 220px; }
    .project-pillars, .project-gallery, .project-process { grid-template-columns: 1fr; }
    .project-about, .project-cta-row { padding: 18px; }
    .project-section-head { margin-bottom: 28px; }
    .browser-url { max-width: 55%; }
    .lightbox-close { top: 12px; right: 12px; }
    .project-page .container { width: min(1320px, 94%); }
    .back-to-top { right: 16px; bottom: 16px; width: 52px; height: 52px; }
    .section { padding: 72px 0; }
    /* .hero acumula a classe .section — precisa vir depois pra vencer o padding-top acima
       e não ficar espremido contra o header fixo (que é mais alto no mobile). */
    .hero {
        padding-top: 100px;
        isolation: isolate;
    }
    .hero::before {
        top: 96px;
        right: -43vw;
        width: 185vw;
        height: min(123vw, 760px);
        background-position: center top;
    }
}
