/* =========================================
           CORE TOKENS & VARIABLES
           ========================================= */
        :root {
            --bg-body: #09090b;
            --text-primary: #f4f4f5;
            --text-secondary: #a1a1aa;
            --brand-primary: #a39c93;
            --border-light: #27272a;
            --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-body);
            color: var(--text-primary);
            margin: 0;
            overflow-x: hidden;
            font-family: 'Inter', sans-serif;
            opacity: 0;
            /* Set to 1 by JS Preloader */
        }

        /* --- Custom Scrollbar --- */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-body);
        }

        ::-webkit-scrollbar-thumb {
            background: #3f3f46;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--text-secondary);
        }

        /* --- Utility Classes --- */
        .text-stroke-transparent {
            color: transparent;
            -webkit-text-stroke: 1px var(--text-primary);
        }

        .noise-overlay {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 9000;
            opacity: 0.04;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
        }

        /* --- Button Beam Wrapper (from Design System 5) --- */
        .btn-beam-wrapper {
            position: relative;
            display: inline-flex;
            border-radius: 9999px;
            overflow: hidden;
            padding: 1px;
            cursor: pointer;
            transition: transform 0.3s;
        }

        .btn-beam-wrapper:hover {
            transform: scale(1.02);
        }

        .btn-beam-border {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 250%;
            aspect-ratio: 1;
            background: conic-gradient(from 0deg, transparent 0%, transparent 70%, var(--brand-primary) 90%, transparent 100%);
            animation: beam-spin 4s linear infinite;
        }

        .btn-beam-inner {
            position: relative;
            background: var(--bg-body);
            border-radius: 9999px;
            padding: 1rem 2.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 0.875rem;
            font-weight: 500;
            color: white;
            z-index: 10;
        }

        .section-cta .btn-beam-inner {
            background: #f1eee9;
            color: #151413;
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
            transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
        }

        .section-cta:hover .btn-beam-inner {
            background: #a39c93;
            color: #09090b;
            box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
        }

        .diferencial-card {
            position: relative;
            overflow: hidden;
            min-height: 210px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        .diferencial-card::before {
            content: '';
            position: absolute;
            inset: 0;
            opacity: 0;
            pointer-events: none;
            background: radial-gradient(520px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 42%);
            transition: opacity 0.35s ease;
        }

        .diferencial-card:hover::before {
            opacity: 1;
        }

        .diferencial-card>* {
            position: relative;
            z-index: 1;
        }

        .process-line-fill {
            transform-origin: top;
            transform: scaleY(0);
        }

        .process-step {
            --step-accent: #71717a;
        }

        .process-step::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.35rem;
            width: 0.7rem;
            height: 0.7rem;
            border-radius: 9999px;
            background: #18181b;
            border: 1px solid var(--step-accent);
            box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.025);
            transition: border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
        }

        .process-step.is-active::before {
            background: var(--brand-primary);
            border-color: var(--brand-primary);
            box-shadow: 0 0 0 7px rgba(163, 156, 147, 0.12);
        }

        @media (min-width: 768px) {
            .process-step::before {
                left: 50%;
                transform: translateX(-50%);
            }
        }

        .solution-card {
            position: relative;
            overflow: hidden;
            contain: layout paint;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
            border: 1px solid rgba(63, 63, 70, 0.9);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        .solution-card::before {
            content: '';
            position: absolute;
            inset: 0;
            opacity: 0;
            pointer-events: none;
            background: radial-gradient(760px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.055), transparent 42%);
            transition: opacity 0.35s ease;
        }

        .solution-card:hover::before {
            opacity: 1;
        }

        .solution-card>* {
            position: relative;
            z-index: 1;
        }

        .solution-card img {
            transform: scale(1.02);
            backface-visibility: hidden;
            transition: transform 0.9s var(--ease-out-expo), opacity 0.9s var(--ease-out-expo);
        }

        .solution-card:hover img {
            transform: scale(1.08);
            opacity: 0.95;
        }

        .portfolio-gallery {
            scrollbar-width: none;
            cursor: grab;
        }

        .portfolio-gallery:active {
            cursor: grabbing;
        }

        .portfolio-gallery::-webkit-scrollbar {
            display: none;
        }

        .portfolio-card {
            position: relative;
            overflow: hidden;
            contain: layout paint;
            background: #121214;
            border: 1px solid rgba(63, 63, 70, 0.82);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 70px rgba(0, 0, 0, 0.18);
            cursor: pointer;
        }

        .portfolio-card img {
            transform: scale(1.01);
            backface-visibility: hidden;
            transition: transform 1.1s var(--ease-out-expo), opacity 0.8s ease;
        }

        .portfolio-card:hover img {
            transform: scale(1.055);
            opacity: 0.96;
        }

        .portfolio-content {
            left: 0.9rem;
            right: 0.9rem;
            bottom: 0.9rem;
            min-height: 170px;
            padding: 1.2rem 1.3rem !important;
            border: 1px solid rgba(244, 244, 245, 0.12);
            background: linear-gradient(135deg, rgba(9, 9, 11, 0.94), rgba(18, 18, 20, 0.86));
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        .portfolio-content h3 {
            min-height: 2.7rem;
            display: flex;
            align-items: flex-end;
        }

        .portfolio-nav-btn {
            border: 1px solid rgba(244, 244, 245, 0.16);
            background: rgba(18, 18, 20, 0.74);
            color: #f4f4f5;
            transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
        }

        .portfolio-nav-btn:hover {
            border-color: rgba(163, 156, 147, 0.72);
            background: rgba(163, 156, 147, 0.16);
            color: #a39c93;
            transform: translateY(-1px);
        }

        @media (min-width: 768px) {
            .portfolio-card {
                width: calc((100% - 1rem) / 2) !important;
                transition: border-color 0.45s ease, box-shadow 0.45s ease;
                border-color: rgba(163, 156, 147, 0.42);
                box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 28px 80px rgba(0, 0, 0, 0.28);
            }

            .portfolio-visual {
                height: 500px !important;
            }

            .portfolio-content {
                left: 1.25rem;
                right: 1.25rem;
                bottom: 1.25rem;
                min-height: 188px;
                padding: 1.35rem 1.5rem !important;
                border: 1px solid rgba(244, 244, 245, 0.12);
                background: linear-gradient(135deg, rgba(9, 9, 11, 0.94), rgba(18, 18, 20, 0.86));
                box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
            }

            .portfolio-content h3 {
                min-height: 3rem;
            }
        }

        .portfolio-lightbox {
            position: fixed;
            inset: 0;
            z-index: 9500;
            display: grid;
            place-items: center;
            padding: 1.5rem;
            background: rgba(9, 9, 11, 0.92);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.38s ease;
        }

        .portfolio-lightbox.is-open {
            opacity: 1;
            pointer-events: auto;
        }

        .portfolio-lightbox-panel {
            width: min(1120px, 100%);
            transform: translateY(18px) scale(0.985);
            transition: transform 0.5s var(--ease-out-expo);
        }

        .portfolio-lightbox.is-open .portfolio-lightbox-panel {
            transform: translateY(0) scale(1);
        }

        .portfolio-lightbox-img {
            max-height: min(76vh, 760px);
            width: 100%;
            object-fit: contain;
            background: #0f1012;
            border: 1px solid rgba(244, 244, 245, 0.14);
            box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
        }

        .about-profile-card {
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
            border: 1px solid rgba(63, 63, 70, 0.9);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 26px 80px rgba(0, 0, 0, 0.22);
        }

        .about-profile-card::before {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(135deg, rgba(163, 156, 147, 0.12), transparent 42%);
            opacity: 0.72;
        }

        .about-profile-card>* {
            position: relative;
            z-index: 1;
        }

        .about-pillar {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
            border-top: 1px solid rgba(163, 156, 147, 0.34);
        }

        .contact-card {
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
            border: 1px solid rgba(63, 63, 70, 0.92);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 28px 82px rgba(0, 0, 0, 0.22);
        }

        .contact-card::before {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: radial-gradient(640px circle at 20% 0%, rgba(163, 156, 147, 0.1), transparent 48%);
        }

        .contact-card>* {
            position: relative;
            z-index: 1;
        }

        .contact-info-item {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 1rem;
            align-items: start;
            padding: 0.86rem 0;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        .contact-info-item:last-child {
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .contact-info-icon {
            display: inline-flex;
            width: 2.15rem;
            height: 2.15rem;
            align-items: center;
            justify-content: center;
            border-radius: 9999px;
            border: 1px solid rgba(163, 156, 147, 0.28);
            color: #a39c93;
            background: rgba(255, 255, 255, 0.025);
        }

        .contact-form {
            display: flex;
            flex: 1;
            flex-direction: column;
        }

        .contact-field {
            width: 100%;
            border: 1px solid rgba(113, 113, 122, 0.48);
            background: rgba(9, 9, 11, 0.44);
            color: #f4f4f5;
            border-radius: 0.5rem;
            padding: 0.78rem 0.95rem;
            font-size: 0.95rem;
            outline: none;
            transition: border-color 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
        }

        .contact-field:focus {
            border-color: rgba(163, 156, 147, 0.82);
            background: rgba(9, 9, 11, 0.66);
            box-shadow: 0 0 0 3px rgba(163, 156, 147, 0.1);
        }

        .contact-field::placeholder {
            color: #71717a;
        }

        .contact-field.is-invalid {
            border-color: rgba(244, 114, 114, 0.72);
            box-shadow: 0 0 0 3px rgba(244, 114, 114, 0.08);
        }

        .contact-native-select {
            position: absolute;
            width: 1px;
            height: 1px;
            opacity: 0;
            pointer-events: none;
        }

        .contact-select {
            position: relative;
        }

        .contact-select-trigger {
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            text-align: left;
        }

        .contact-select-trigger iconify-icon {
            color: #a39c93;
            transition: transform 0.28s ease;
        }

        .contact-select.is-open .contact-select-trigger iconify-icon {
            transform: rotate(180deg);
        }

        .contact-select-list {
            position: absolute;
            left: 0;
            right: 0;
            top: calc(100% + 0.45rem);
            z-index: 30;
            overflow: hidden;
            border: 1px solid rgba(113, 113, 122, 0.58);
            border-radius: 0.5rem;
            background: #111113;
            box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
            opacity: 0;
            pointer-events: none;
            transform: translateY(-0.35rem);
            transition: opacity 0.22s ease, transform 0.22s ease;
        }

        .contact-select.is-open .contact-select-list {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .contact-select-option {
            display: block;
            width: 100%;
            padding: 0.72rem 0.95rem;
            text-align: left;
            color: #d4d4d8;
            transition: background-color 0.22s ease, color 0.22s ease;
        }

        .contact-select-option:hover,
        .contact-select-option.is-selected {
            background: rgba(163, 156, 147, 0.16);
            color: #f4f4f5;
        }

        .contact-native-select.is-invalid+.contact-select .contact-select-trigger {
            border-color: rgba(244, 114, 114, 0.72);
            box-shadow: 0 0 0 3px rgba(244, 114, 114, 0.08);
        }

        .contact-status {
            visibility: hidden;
            opacity: 0;
            border: 1px solid rgba(163, 156, 147, 0.34);
            background: rgba(163, 156, 147, 0.09);
            color: #d8d3cc;
            transition: opacity 0.24s ease, visibility 0.24s ease;
        }

        .contact-error {
            visibility: hidden;
            opacity: 0;
            color: #fca5a5;
            transition: opacity 0.24s ease, visibility 0.24s ease;
        }

        .contact-status.is-visible,
        .contact-error.is-visible {
            visibility: visible;
            opacity: 1;
        }

        .contact-feedback {
            min-height: 5.75rem;
        }

        .contact-form button[type="submit"]:disabled {
            cursor: wait;
            opacity: 0.72;
            pointer-events: none;
        }

        .footer-link {
            position: relative;
            width: max-content;
            color: #a1a1aa;
            transition: color 0.28s ease;
        }

        .footer-link::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -0.28rem;
            width: 0;
            height: 1px;
            background: #a39c93;
            transition: width 0.28s ease;
        }

        .footer-link:hover {
            color: #f4f4f5;
        }

        .footer-link:hover::after {
            width: 100%;
        }

        .footer-top-button {
            color: #f4f4f5;
            transition: color 0.28s ease, transform 0.28s ease;
        }

        .footer-top-button:hover {
            color: #a39c93;
            transform: translateY(-2px);
        }

        .footer-brand .brand-mark {
            display: inline-flex;
            align-items: baseline;
            gap: 0.55rem;
            width: auto;
            white-space: nowrap;
            text-transform: uppercase;
            line-height: 1;
        }

        .footer-brand .brand-studio {
            display: inline-block;
            width: auto;
            color: transparent;
            -webkit-text-stroke: 1px rgba(244, 244, 245, 0.9);
            font-size: clamp(1rem, 1.8vw, 1.55rem);
            font-weight: 700;
            letter-spacing: 0.16em;
        }

        .footer-brand .brand-franca {
            display: inline-block;
            color: #f4f4f5;
            font-size: clamp(1rem, 1.8vw, 1.55rem);
            font-weight: 700;
            letter-spacing: 0.16em;
        }

        @keyframes beam-spin {
            from {
                transform: translate(-50%, -50%) rotate(0deg);
            }

            to {
                transform: translate(-50%, -50%) rotate(360deg);
            }
        }

        /* --- Button Outline --- */
        .btn-outline {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border-light);
            background: transparent;
            color: var(--text-primary);
            padding: 1rem 2.5rem;
            border-radius: 9999px;
            font-size: 0.875rem;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .btn-outline:hover {
            border-color: var(--text-primary);
            background: rgba(255, 255, 255, 0.02);
        }

        /* --- Nav Link Hover Effect --- */
        .nav-link {
            position: relative;
            padding-bottom: 4px;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 1px;
            background-color: var(--brand-primary);
            transition: width 0.3s ease-out;
        }

        .nav-link:hover::after {
            width: 100%;
        }

        .site-nav {
            background-color: rgba(10, 10, 10, 0);
            border-bottom: 1px solid rgba(255, 255, 255, 0);
            transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
        }

        .site-nav.is-scrolled,
        .site-nav.is-menu-open {
            background-color: rgba(10, 10, 10, 0.96);
            border-bottom-color: rgba(255, 255, 255, 0.08);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
        }

        .mobile-menu-overlay {
            position: fixed;
            inset: 0;
            z-index: 9998;
            background: rgba(9, 9, 11, 0.58);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.35s ease;
            -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
        }

        .mobile-menu-overlay.is-open {
            opacity: 1;
            pointer-events: auto;
        }

        .mobile-menu-panel {
            position: absolute;
            top: 5.25rem;
            left: 1rem;
            right: 1rem;
            overflow: hidden;
            border: 1px solid rgba(244, 244, 245, 0.12);
            border-radius: 0.75rem;
            background: linear-gradient(135deg, rgba(10, 10, 10, 0.94), rgba(24, 24, 27, 0.88));
            box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
            transform: translateY(-0.75rem) scale(0.985);
            transition: transform 0.42s var(--ease-out-expo);
        }

        .mobile-menu-overlay.is-open .mobile-menu-panel {
            transform: translateY(0) scale(1);
        }

        .mobile-menu-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 3.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.07);
            padding: 1rem 1.15rem;
            color: #f4f4f5;
            transition: color 0.28s ease, background-color 0.28s ease;
        }

        .mobile-menu-link:first-child {
            border-top: 0;
        }

        .mobile-menu-link:hover {
            color: #a39c93;
            background: rgba(255, 255, 255, 0.035);
        }

        /* --- Preloader --- */
        .loader {
            position: fixed;
            inset: 0;
            background: var(--bg-body);
            z-index: 10000;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 1.5rem;
        }

        .loader-logo {
            font-size: clamp(1.5rem, 5vw, 3rem);
            font-weight: 700;
            letter-spacing: 0.35em;
            text-transform: uppercase;
            color: var(--text-primary);
        }

        .loader-logo-studio {
            color: transparent;
            -webkit-text-stroke: 1px rgba(244, 244, 245, 0.88);
            text-stroke: 1px rgba(244, 244, 245, 0.88);
            font-weight: 800;
            letter-spacing: inherit;
        }

        .loader-rule {
            width: 0px;
            height: 1px;
            background: var(--brand-primary);
        }

        /* Hero Setup */
        .hero-img-container {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 1;
        }

        .hero-img {
            width: 100%;
            height: 130%;
            /* Extra height for parallax */
            object-fit: cover;
            transform: translateY(0);
        }

        /* Gradient overlay to ensure text legibility */
        .hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, rgba(9, 9, 11, 0.4) 0%, rgba(9, 9, 11, 0.7) 100%);
            z-index: 2;
        }
