/* =============================================
   DESIGN TOKENS
============================================= */
:root {
    --orange: #E8501A;
    --orange-hover: #D14515;
    /* Same hue as --orange, darkened until it clears 4.5:1 on both white and
       --warm-bg - --orange itself only hits ~3.4-3.75:1 on those, which
       failed Lighthouse's color-contrast audit wherever it's used as text
       (footer links, cookie banner) rather than as a large surface/button
       fill. Kept as a separate token instead of changing --orange so the
       brand color stays exactly as designed everywhere else. */
    --orange-accessible: #c14113;
    --warm-bg: #f9f3e0;
    --grey-bg: #EBEBEB;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-tertiary: #6a6a6a;
    --white: #fff;
    --surface-soft: rgba(255,255,255,0.72);
    --card-shadow: 0 2px 20px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 20px 56px rgba(26, 13, 4, 0.18);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --content-max: 1200px;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

#scrollLeft, #scrollRight { display: none; }

button, a, #mobile-controls {
    user-select: none;
    -webkit-touch-callout: none;
}

/* MUST stay `auto`. CSS smooth scrolling makes every write to the scroll
   position an asynchronous, browser-driven animation instead of an instant
   move -- including the ones GSAP makes internally. ScrollToPlugin sets the
   scroll and assumes it took effect; ScrollTrigger.refresh() records the
   current scroll, reverts/re-measures every trigger and writes the recorded
   value back at the end. With `smooth` on, both read a position the page is
   still gliding away from: an anchor jump gets cancelled and snapped back
   (the click "does nothing" until you hit it enough times to win the race),
   and the scrub-driven triggers -- the portfolio h-scroll, the card-panel
   scale-down stacking, the #wrap-about fan -- get calibrated against a
   moving target and stay miscalibrated for the rest of the session.
   GSAP documents this as unsupported. In-page anchors are handled by
   main.js / main-en.js instead, which is why nothing here needs it.
   css/beyond.css already pins this to `auto` for the same reason. */
html {
    scroll-behavior: auto;
}

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    background:
        radial-gradient(circle at top, rgba(232,80,26,0.08), transparent 30%),
        linear-gradient(180deg, #fffaf2 0%, var(--warm-bg) 35%, #f3ead8 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 10000;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

::selection {
    background: rgba(232, 80, 26, 0.2);
    color: var(--text-primary);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(232, 80, 26, 0.8);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .cursor-follower {
        display: none !important;
    }
}

/* =============================================
   CURSOR
============================================= */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease),
                border-color 0.3s, background 0.3s, opacity 0.3s;
    mix-blend-mode: difference;
    opacity: 0;
}
.cursor-follower.visible { opacity: 1; }
.cursor-follower.hovering {
    width: 50px;
    height: 50px;
    background: rgba(232,80,26,0.15);
    border-color: #fff;
}

/* =============================================
   FIRST-TIME INTRO OVERLAY
============================================= */
#intro-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: var(--app-height, 100vh);
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F8D3D0;
    z-index: 999999;
    overflow: hidden;
    perspective: 1200px;
}

#intro-main-scene {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    color: #FE5000;
    animation: intro-gate-zoom 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes intro-gate-zoom {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes intro-slide-up {
    0%   { transform: translateY(0);    border-radius: 0 0 40px 40px; }
    20%  { transform: translateY(0);    border-radius: 0 0 40px 40px; }
    100% { transform: translateY(-100%); border-radius: 0 0 40px 40px; }
}

@media (max-width: 768px) {
    @keyframes intro-slide-up {
        0%   { transform: translateY(0);    border-radius: 0 0 0 0; }
        20%  { transform: translateY(0);    border-radius: 0 0 24px 24px; }
        100% { transform: translateY(-100%); border-radius: 0 0 24px 24px; }
    }
}

.intro-overlay-exit {
    animation: intro-slide-up 1s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

#intro-progress {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(260px, 60vw);
    color: #FE5000;
    z-index: 5;
    transition: color 0.5s ease;
}
#intro-progress-track {
    width: 100%;
    height: 3px;
    background: rgba(0,0,0,0.12);
    border-radius: 3px;
    overflow: hidden;
}
#intro-progress-fill {
    height: 100%;
    width: 0%;
    background: currentColor;
    border-radius: 3px;
    transition: width 0.12s linear;
}
#intro-progress-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

@media (max-width: 768px) {
    #intro-progress { bottom: 36px; }
}

.intro-row { display: flex; align-items: baseline; line-height: 1; }
.intro-row-top { margin-bottom: -85px; z-index: 2; }
.intro-row-bottom { z-index: 1; }
.intro-letter { display: inline-block; }

.intro-clarika { font-family: 'Clarika Geometric', 'Montserrat', sans-serif; font-weight: 600; }
.intro-bebas   { font-family: 'Bebas Neue', sans-serif; }
.intro-bernard { font-family: 'Bernard MT Condensed', 'Impact', sans-serif; }
.intro-corsiva { font-family: 'Monotype Corsiva', 'Apple Chancery', cursive; }

.intro-s-wrapper { position: relative; margin-right: 6px; }
.intro-s-overline {
    position: absolute; top: -0.05em; left: 0; width: 100%; height: 14px; 
    background-color: #FE5000;
}

.intro-letter-s { font-size: 172px;}
.intro-letter-a { font-size: 190px; margin-left: -5px; margin-right: 4px; }
.intro-letter-m { font-size: 200px; margin-right: 0px; } 
.intro-letter-u { font-size: 285px; margin-left: -22px; }
.intro-letter-c { font-size: 155px; margin-right: -6px }
.intro-letter-dot { font-size: 155px; margin-right: -6px; } 
.intro-letter-l { font-size: 165px; margin-right: -9px; transform: translateY(0px); }
.intro-letter-i { font-size: 200px; margin-right: 4px; transform: translateY(-3px); }
.intro-letter-m-bottom { font-size: 170px; margin-left: -18px; }
.intro-letter-a-bottom { font-size: 155px; margin-left: -9px; }

.intro-letter[data-char] svg {
    display: inline-block !important;
    vertical-align: baseline !important;
    flex-shrink: 0 !important; 
}

.intro-letter-m[data-char="m"] svg {
    height: 0.65em !important;
    width: 0.67em !important;
    transform: translateY(0.0em);
    margin-right: 30px;
}
.intro-letter-u[data-char="u"] svg {
    height: 0.45em !important;
    width: 0.44em !important;
    transform: translateY(0.0em);
    margin-left: -5px;
}
.intro-letter-c[data-char="C"] svg {
    height: 0.80em !important;
    width: 0.51em !important;
    transform: translateY(0.04em);
}
.intro-letter-i[data-char="i"] svg {
    height: 0.6em !important;
    width: 0.36em !important;
    transform: translateY(0.04em);
}
.intro-letter-a-bottom[data-char="a"] svg {
    height: 0.65em !important;
    width: 0.65em !important;
    transform: translateY(0.00em);
    margin-left: -14px;
}

@media (max-width: 768px) {
    .intro-row-top { margin-bottom: -35px; }
    .intro-s-overline { height: 6px; }
    .intro-letter-s { font-size: 18vw; }
    .intro-letter-a { font-size: 20vw; margin-right: 1vw; }
    .intro-letter-m { font-size: 21vw; margin-right: 0; } 
    .intro-letter-u { font-size: 27vw; margin-left: -2vw; }
    .intro-letter-c { font-size: 16vw; }
    .intro-letter-dot { font-size: 16vw; margin-right: 0; } 
    .intro-letter-l { font-size: 17vw; margin-right: -1vw; }
    .intro-letter-i { font-size: 21vw; margin-right: -0vw; }
    .intro-letter-m-bottom { font-size: 19vw; margin-left: -2vw; } 
    .intro-letter-a-bottom { font-size: 16vw; margin-left: -1vw; } 
    .intro-letter-m[data-char="m"] svg,
    .intro-letter-u[data-char="u"] svg {
        margin-right: 3.6vw !important; 
    }
    .intro-letter-a-bottom[data-char="a"] svg {
        margin-left: -1.6vw !important; 
    }
}

/* Hide intro if already played */
html.hide-intro #intro-overlay {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =============================================
   CURSOR LABELS (MUSEUM & PORTFOLIO)
============================================= */
.museum-cursor-label {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: none; 
}

#portfolio-cursor-label .cursor-pill {
    background: #ffffff;
    box-shadow: none;
}
#portfolio-cursor-label .cursor-marquee span {
    color: var(--orange); 
}

.cursor-pill {
    width: 220px;
    height: 42px;
    background: var(--orange);
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(232, 80, 26, 0.3);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cursor-marquee {
    display: flex;
    width: max-content;
    animation: slideCursorText 6s linear infinite;
}

.cursor-marquee span {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    padding-right: 15px;
}

@keyframes slideCursorText {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.museum-cursor-label.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* =============================================
   NAVBAR
============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(232,80,26,0.96);
    backdrop-filter: blur(20px);
    transition: all 0.4s var(--ease);
}
.navbar.scrolled { box-shadow: 0 1px 30px rgba(0,0,0,0.15); }
.navbar.hidden { transform: translateY(-100%); }

.navbar-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    padding-top: max(14px, env(safe-area-inset-top));
}

.logo img { height: 44px; filter: brightness(0) invert(1); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255,255,255,0.84);
    transition: color 0.3s var(--ease), transform 0.3s var(--ease);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s var(--ease);
    transform: translateX(-50%);
}
.nav-links a:hover { color: #fff; transform: translateY(-1px); }
.nav-links a:hover::after { width: 100%; }

.nav-divider {
    color: #ffffff; 
    cursor: default;
    user-select: none;
    font-weight: 300;
}
.nav-links a.lang-btn,
.nav-links-header a.lang-btn {
    color: #ffffff !important;
    font-weight: 400;
    background-color: transparent;
    padding: 0;
}
.nav-links a.lang-btn:hover,
.nav-links-header a.lang-btn:hover {
    color: #ffffff !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.3s;
}

/* =============================================
   CARD STACK (STICKY PANELS)
============================================= */
.card-wrapper { position: relative; }

.card-panel {
    position: sticky;
    top: 0;
    border-radius: 40px 40px 0 0;
    overflow: hidden;
    will-change: transform;
    width: 100%;
    border: 1px solid rgba(26,26,26,0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.card-panel:first-child { border-radius: 0; border-top: none; }
.card-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    z-index: 10;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
}

.panel-shadow {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    border-radius: inherit;
}

.bg-orange     { background: var(--orange); }
.bg-warm       { background: var(--warm-bg); }
.bg-grey       { background: var(--grey-bg); }
.bg-orange-hab { background: #E14F1B; }
.bg-pink       { background: #ffc7c6; }

/* =============================================
   3D GALLERY — MENU & HUD
============================================= */
#labels-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.museum-plaque {
    position: absolute;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(8px);
    color: #1a1a1a;
    padding: 24px;
    border-radius: 12px;
    border-left: 5px solid var(--orange);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    width: 320px;
    text-align: left;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.museum-plaque h3 {
    margin: 0 0 10px;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
}
.museum-plaque p  { margin: 0 0 15px; font-size: 13px; color: #555; line-height: 1.6; }
.museum-plaque .hint {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--orange);
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.museum-plaque.visible { opacity: 1; pointer-events: auto; }
body.at-laptop .museum-plaque { pointer-events: none !important; }

#ui-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
    justify-content: center;
    align-items: center;
    display: none;
}

#crosshair {
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

#menu {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(12,12,12,0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    z-index: 20;
    transition: opacity 0.8s ease;
}

.menu-logo {
    height: 90px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1) drop-shadow(0 4px 16px rgba(0,0,0,0.3));
    animation: scaleReveal 1.2s var(--ease);
}

@keyframes scaleReveal {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

#menu p {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    margin-bottom: 48px;
    text-align: center;
    line-height: 1.8;
    max-width: 480px;
    font-weight: 300;
}
#menu p b { color: #fff; font-weight: 600; }

#btn-start {
    padding: 18px 54px;
    font-size: 13px;
    font-weight: 700;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    text-transform: uppercase;
    letter-spacing: 3px;
    box-shadow: 0 8px 30px rgba(232,80,26,0.35);
}
#btn-start:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 40px rgba(232,80,26,0.55);
}

#loading-container {
    width: 260px;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.loading-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    overflow: hidden;
}
.loading-fill {
    height: 100%;
    width: 0%;
    background: var(--orange);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(232,80,26,0.6);
}
#loading-text {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* =============================================
   MOBILE CONTROLS (3D)
============================================= */
#mobile-controls {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9998;
    pointer-events: none;
}

#joystick-zone {
    position: absolute;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: max(30px, env(safe-area-inset-left));
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: auto;
    border: 2px solid rgba(232,80,26,0.3);
    backdrop-filter: blur(4px);
}

#joystick-knob {
    position: absolute;
    top: 50%; left: 50%;
    width: 50px; height: 50px;
    transform: translate(-50%, -50%);
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#look-zone {
    position: absolute;
    top: 0; right: 0;
    width: 50%; height: 100%;
    pointer-events: auto;
}

#btn-exit-3d {
    position: absolute;
    bottom: max(20px, env(safe-area-inset-bottom)); right: max(30px, env(safe-area-inset-right));
    padding: 12px 16px;
    z-index: 10000;
    pointer-events: auto;
    background: rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    backdrop-filter: blur(4px);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =============================================
   SCROLL INDICATOR
============================================= */
.scroll-indicator {
    position: absolute;
    bottom: max(40px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInUp 1s var(--ease) 1.5s forwards;
    cursor: pointer;
    transition: transform 0.3s var(--ease);
}
.scroll-indicator:hover { transform: translateX(-50%) translateY(-5px); }
.scroll-indicator span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--orange);
    font-weight: 700;
    text-align: center;
    display: block;
    line-height: 1.6;
}
.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--orange);
    border-radius: 12px;
    position: relative;
}
.scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    background: var(--orange);
    border-radius: 3px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%       { transform: translateY(10px); opacity: 0.2; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* =============================================
   SECTION HEADERS
============================================= */
.section-header { text-align: center; margin-bottom: 56px; }

.section-header img {
    width: auto;
    max-width: 90vw;
    object-fit: contain;
    margin: 0 auto;
}

#wrap-portfolio   .section-header img { height: 70px; }
#wrap-about       .section-header img { height: 60px; }
#wrap-Princípios .section-header img { height: 55px; }
#wrap-contact     .section-header img { height: 65px; }

.section-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0;
    color: var(--orange);
    text-wrap: balance;
}
#wrap-portfolio .section-title,
#wrap-about     .section-title,
#wrap-contact   .section-title,
#wrap-sobre     .section-title,
#wrap-contato   .section-title {
    font-size: clamp(3rem, 3.8vw, 4.2rem);
}
.section-title .sb-letter,
.section-title .sb-track span:not(.sb-gap) { height: 1.3em; line-height: 1.3em; }
.section-title .sb-track { transform: translateY(-3.2em); }

/* =============================================
   PORTFOLIO
============================================= */
#portfolio {
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
}

.portfolio-inner {
    width: 100%;
    padding: 40px;
    max-width: var(--content-max);
    margin: 0 auto;
}

.portfolio-hsroll-wrapper {
    position: relative;
    overflow: hidden;
    /* break out of .portfolio-inner so the track spans the page */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.portfolio-hscroll-track  { display: flex; gap: 32px;
    padding: 20px 0 20px clamp(90px, 9vw, 220px);
    will-change: transform; }
/* trailing gutter after the last card, matching the lead-in before the
   first. Must be a flex item: padding-right on an overflowing flex
   container is not counted in scrollWidth, so getScrollAmount() would
   stop the track flush against the edge. The 32px subtracted is the
   track's own gap, which sits between the last card and this spacer. */
.portfolio-hscroll-track::after {
    content: '';
    flex: 0 0 calc(clamp(90px, 9vw, 220px) - 32px);
}

.portfolio-card {
    flex-shrink: 0;
    width: min(465px, 78vw);
    border-radius: 63px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.88));
    border: 1px solid rgba(26,26,26,0.04);
    /* No drop shadow on these cards, resting or hovered. The lift itself
       carries the hover: transform, the image push-in and the caption
       overlay all still run. box-shadow is out of the transition list too,
       since there is no longer anything for it to animate.
       --card-shadow stays defined: the about panel and the nav bar use it. */
    transition: transform 0.5s var(--ease), border-color 0.3s var(--ease);
    transform-style: preserve-3d;
    will-change: transform;
}
.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02) rotateX(2deg) rotateY(-2deg) !important;
    border-color: rgba(232,80,26,0.12);
}

.card-img-wrap { overflow: hidden; position: relative; }
.card-img-wrap img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.portfolio-card:hover .card-img-wrap img { transform: scale(1.08); }

@media (hover: hover) {
    .portfolio-card {
        transition: transform 0.45s var(--ease), border-color 0.3s var(--ease);
    }
}

.card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(0deg, rgba(26,26,26,0.85) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    padding: 24px;
}
.portfolio-card:hover .card-hover { opacity: 1; }
.card-hover span {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-hover span::after { content: '\2192'; font-size: 16px; transition: transform 0.3s; }
.portfolio-card:hover .card-hover span::after { transform: translateX(4px); }

.card-body { padding: 22px 24px 26px; }
.card-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.card-body p  { font-size: 13px; color: var(--text-tertiary); line-height: 1.55; }

.portfolio-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 36px;
}

.hscroll-arrows { display: flex; align-items: center; gap: 16px; }
.hscroll-arrows button {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    background: var(--white);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
    color: var(--text-primary);
}
.hscroll-arrows button:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    transform: scale(1.1);
}

.btn-pause {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    background: var(--white);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
    color: var(--text-primary);
}
.btn-pause:hover,
.btn-pause.paused {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

.hscroll-dots { display: flex; gap: 8px; align-items: center; }
.hscroll-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.12);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    padding: 0;
}
.hscroll-dot.active {
    background: var(--orange);
    width: 28px;
    border-radius: 5px;
}

.hscroll-progress { display: none; }
.hscroll-progress-bar {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background: var(--orange);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

/* =============================================
   SOBRE MIM
============================================= */
.about-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 100px 40px;
}

#wrap-about .section-header { text-align: left; }
#wrap-about .section-header img { margin: 0; }

.gallery-marquee {
    margin-top: 60px;
    margin-bottom: 40px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow-x: hidden;
    overflow-y: visible;
    cursor: grab;
}
.gallery-marquee.dragging { cursor: grabbing; }

.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 20px max(40px, calc((100vw - var(--content-max)) / 2 + 40px)) 40px;
}

.gallery-track img {
    width: 400px;
    height: 525px;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
    -webkit-user-drag: none;
    user-select: none;
}
.gallery-track img:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.companies-section { padding: 20px 0 16px; margin-top: 80px; }
.companies-title {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-tertiary);
    margin-bottom: 28px;
}
.companies {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.companies a { display: block; position: relative; }
.companies a img {
    height: 52px;
    width: 140px;
    object-fit: contain;
    opacity: 0.4;
    transition: all 0.5s var(--ease);
    filter: grayscale(100%);
}
.companies a:hover img {
    opacity: 0.85;
    filter: grayscale(0%);
    transform: scale(1.15) translateY(-4px);
}

/* =============================================
   HABILIDADES & PRINCÍPIOS
============================================= */
#Princípios {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.sitebot-wrap {
    max-width: 1100px; margin: clamp(6px, 1vw, 18px) auto; width: 100%;
    background: #ffc7c6; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
    display: flex; flex-direction: column;
    font-family: 'DM Sans', sans-serif;
}

.sitebot-hero {
    display: none;
    text-align: center;
    padding: clamp(6px, 1vw, 12px) 28px 2px;
    background: var(--warm-bg);
}
.sitebot-hero h2 {
    font-family: 'DM Sans', sans-serif; font-weight: 700;
    font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.015em;
    color: var(--text-primary); margin: 0 0 18px; text-wrap: balance;
    line-height: 1.3;
}

.slot-title { line-height: 1.3; }
.slot-title .sb-word { display: inline-block; white-space: nowrap; }
.slot-title .sb-letter {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    height: 1.3em;
    line-height: 1.3em;
}
.slot-title .sb-track { display: inline-block; will-change: transform; transform: translateY(-3.2em); }
.slot-title .sb-track span.sb-gap { display: block; height: .3em; min-height: .3em; flex: none; }
.slot-title .sb-track span:not(.sb-gap) {
    display: flex; align-items: center; justify-content: center;
    height: 1.3em; line-height: 1.3em;
}

.sitebot-hero p { color: var(--text-secondary); font-size: .95rem; margin: 0 auto; max-width: 460px; line-height: 1.6; }
.sitebot-hero p a { color: var(--orange); font-weight: 600; text-decoration: none; }
.sitebot-hero p a:hover { text-decoration: underline; }

.sitebot-wrap.landing .sitebot-hero { display: block; }
.sitebot-wrap.landing .sitebot-head { display: none; }
.sitebot-wrap.landing .sitebot-log { display: none; }
.sitebot-wrap.landing {
    background: transparent; box-shadow: none; border-radius: 0; overflow: visible;
}
.sitebot-wrap.landing .sitebot-hero { background: transparent; }
.sitebot-wrap.landing .sitebot-hero h2 { color: #fff; }
.sitebot-wrap.landing .sitebot-hero p { color: rgba(255,255,255,.88); }
.sitebot-wrap.landing .sitebot-hero p a { color: #fff; text-decoration: underline; }
.sitebot-wrap.landing .sitebot-inputbar { background: transparent; border-top: 0; padding-bottom: clamp(5px, 0.8vw, 10px); }
.sitebot-wrap.landing .sitebot-pill { border-color: transparent; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.sitebot-wrap.landing .sitebot-hint { color: rgba(255,255,255,.85); opacity: 1; }

.sitebot-head {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 26px; background: #ffc7c6;
    border-bottom: 1px solid rgba(26,26,26,.08);
}
.sitebot-face {
    width: 52px; height: 40px; background: var(--orange);
    border-radius: 11px; position: relative; flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(232,80,26,.35);
}
.sitebot-eye {
    position: absolute; top: 10px; width: 10px; height: 10px;
    border-radius: 50%; background: #fff;
    animation: sitebotBlink 4s infinite;
}
.sitebot-eye:first-child { left: 11px; }
.sitebot-eye:nth-child(2) { right: 11px; }
.sitebot-mouth {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    width: 18px; height: 3.5px; background: #fff; border-radius: 2px;
}
@keyframes sitebotBlink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.sitebot-title { flex: 1; min-width: 0; }
.sitebot-title h2 {
    font-family: 'DM Sans', sans-serif; font-weight: 700;
    color: var(--orange); font-size: 1.25rem; letter-spacing: -0.02em; margin: 0 0 2px;
    display: flex; align-items: center; gap: 10px;
}
.sitebot-status {
    font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: #2e9e44; display: inline-flex; align-items: center; gap: 5px;
}
.sitebot-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #2e9e44;
    animation: sitebotPulse 2.2s infinite;
}
@keyframes sitebotPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(46,158,68,.45); }
    50% { box-shadow: 0 0 0 5px rgba(46,158,68,0); }
}
.sitebot-title p { color: var(--orange); opacity: .8; font-size: .84rem; margin: 0; line-height: 1.4; }
.sitebot-3d {
    flex-shrink: 0; text-decoration: none;
    font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--orange); border: 1.5px solid var(--orange);
    padding: 9px 16px; border-radius: 100px;
    transition: background .25s, color .25s, transform .25s;
}
.sitebot-3d:hover { background: var(--orange); color: #fff; transform: translateY(-1px); }

.sitebot-log {
    height: 380px; overflow-y: auto; padding: 26px 26px 10px;
    display: flex; flex-direction: column; gap: 18px;
    background: var(--warm-bg);
    scrollbar-width: thin; scrollbar-color: rgba(26,26,26,.18) transparent;
}
.sitebot-row { display: flex; gap: 12px; align-items: flex-end; animation: sitebotIn .35s var(--ease) both; }
.sitebot-row.me { justify-content: flex-end; }
@keyframes sitebotIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sitebot-ava {
    width: 30px; height: 24px; border-radius: 7px; background: #fff;
    border: 1.5px solid var(--orange);
    position: relative; flex-shrink: 0; margin-bottom: 2px;
}
.sitebot-ava::before, .sitebot-ava::after {
    content: ''; position: absolute; top: 6px; width: 6px; height: 6px;
    border-radius: 50%; background: var(--orange);
}
.sitebot-ava::before { left: 6px; }
.sitebot-ava::after { right: 6px; }
.sitebot-msg {
    max-width: 76%; padding: 12px 16px;
    font-size: .95rem; line-height: 1.65; white-space: pre-wrap; word-break: break-word;
}
.sitebot-msg.bot {
    background: var(--orange); color: #fff;
    box-shadow: 0 6px 16px rgba(232,80,26,.25);
    border-radius: 16px 16px 16px 5px;
}
.sitebot-msg.me {
    background: #fff; color: var(--text-primary);
    border-radius: 16px 16px 5px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.sitebot-typing { display: inline-flex; gap: 5px; padding: 15px 16px 13px; }
.sitebot-typing span {
    width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.75);
    animation: sitebotBounce 1.2s infinite;
}
.sitebot-typing span:nth-child(2) { animation-delay: .15s; }
.sitebot-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes sitebotBounce { 0%,60%,100% { transform: none; opacity:.4; } 30% { transform: translateY(-5px); opacity:1; } }

.sitebot-chips {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    padding: 10px 20px 6px; background: #ffc7c6;
}
.sitebot-chip {
    border: 1.5px solid var(--orange); background: #fff; color: var(--orange);
    font-family: 'DM Sans', sans-serif; font-size: .8rem; font-weight: 600;
    padding: 8px 14px; border-radius: 100px; cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}
.sitebot-chip:hover { background: var(--orange); color: #fff; transform: translateY(-1px); }
.sitebot-chip:disabled { opacity: .45; cursor: default; transform: none; }
.sitebot-wrap.landing .sitebot-chips { background: transparent; padding-top: 22px; padding-bottom: 22px; }
.sitebot-wrap.landing .sitebot-chip {
    background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.7); color: #fff;
}
.sitebot-wrap.landing .sitebot-chip:hover { background: #fff; color: var(--orange); }

.sitebot-inputbar { padding: 14px 20px 16px; background: #ffc7c6; border-top: 1px solid rgba(26,26,26,.08); }
.sitebot-pill {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1.5px solid rgba(26,26,26,.12);
    border-radius: 100px; padding: 6px 6px 6px 20px;
    transition: border-color .2s, box-shadow .2s;
}
.sitebot-pill:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(232,80,26,.1);
}
.sitebot-pill input {
    flex: 1; border: 0; outline: none; background: transparent;
    color: var(--text-primary); font-size: .95rem; font-family: 'DM Sans', sans-serif;
    padding: 8px 0;
}
.sitebot-pill input::placeholder { color: var(--text-tertiary); }
.sitebot-pill button {
    width: 40px; height: 40px; border-radius: 50%; border: 0; flex-shrink: 0;
    background: var(--orange); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .2s;
}
.sitebot-pill button:hover { background: var(--orange-hover); transform: scale(1.06); }
.sitebot-pill button:disabled { opacity: .45; cursor: default; transform: none; }
.sitebot-hint {
    margin: 10px 4px 0; text-align: center;
    font-size: .72rem; color: var(--orange); opacity: .85;
}

@media (max-width: 640px) {
    .sitebot-log { height: 380px; padding: 18px 16px 8px; }
    .sitebot-head { padding: 16px; }
    .sitebot-3d { display: none; }
    .sitebot-chips { padding: 6px 16px 12px; }
    .sitebot-msg { max-width: 88%; }
}

.Princípios-inner {
    padding: 16px 40px 6px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

#Princípios .section-header {
    position: relative;
    z-index: 10;
    background: #E14F1B;
    padding-bottom: 24px;
    margin-bottom: 0;
}

.bg-orange-hab .section-header img { filter: brightness(0) invert(1); }

.skills-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.skill-row {
    display: flex;
    align-items: center;
    padding: 48px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    gap: 48px;
    transition: transform 0.5s var(--ease), padding-left 0.5s var(--ease);
}
.skill-row:hover { padding-left: 16px; background: rgba(255,255,255,0.3); }

.skill-icon-wrap {
    flex: 0 0 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.skill-shape {
    position: absolute;
    width: 64px; height: 64px;
    z-index: 0;
    opacity: 0.9;
    transition: transform 0.6s var(--ease);
}
.skill-row:hover .skill-shape { transform: rotate(15deg) scale(1.1); }

.color-1 { background: var(--orange); transform: rotate(-8deg); border-radius: 8px; }
.color-2 { background: #F06261; transform: rotate(12deg); border-radius: 50% 20% / 10% 40%; }
.color-3 { background: var(--orange); transform: rotate(-15deg); border-radius: 12px 30px 12px 12px; }

.skill-icon-wrap .icon { position: relative; z-index: 1; font-size: 36px; }

.skill-title { flex: 1 1 40%; }
.skill-title h3 { font-size: 22px; font-weight: 400; line-height: 1.4; letter-spacing: -0.5px; }

.skill-desc { flex: 1 1 40%; }
.skill-desc p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.bg-orange-hab .skill-title h3           { color: #fff; }
.bg-orange-hab .skill-desc p             { color: rgba(255,255,255,0.85); }
.bg-orange-hab .skills-list              { border-top: 1px solid rgba(255,255,255,0.2); }
.bg-orange-hab .skill-row                { border-bottom: 1px solid rgba(255,255,255,0.2); }
.bg-orange-hab .skill-row:hover          { background: rgba(255,255,255,0.08); }
.bg-orange-hab .color-1                  { background: rgba(255,255,255,0.15); }
.bg-orange-hab .color-2                  { background: rgba(0,0,0,0.15); }
.bg-orange-hab .color-3                  { background: rgba(255,255,255,0.25); }

.principles-ed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px;
    text-align: left;
}

.pr-eyebrow {
    grid-column: 1 / -1;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.22em;
    color: rgba(255,255,255,0.85);
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.28);
    padding-bottom: 14px;
    margin-bottom: clamp(30px, 4.5vw, 56px);
}

.pr-statement {
    grid-column: 1 / 12;
    font-size: clamp(28px, 3.8vw, 56px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0;
    text-wrap: balance;
}
.pr-statement em { font-style: italic; font-weight: 700; }

.pr-sub {
    grid-column: 6 / 12;
    margin-top: clamp(20px, 2.5vw, 32px);
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
}

.pr-readings {
    grid-column: 1 / -1;
    margin-top: clamp(44px, 6vw, 80px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pr-reading {
    border-top: 2px solid #fff;
    padding-top: 18px;
    transition: transform 0.5s var(--ease);
}
.pr-reading:hover { transform: translateY(-6px); }
.pr-reading > span {
    display: block;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}
.pr-reading h3 {
    font-size: clamp(19px, 1.8vw, 23px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 10px;
    text-wrap: balance;
}
.pr-reading p {
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.pr-closing {
    grid-column: 1 / -1;
    margin-top: clamp(44px, 6vw, 72px);
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.28);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
}
.pr-closing p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    font-style: italic;
    margin: 0;
}
.pr-closing span {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.22em;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .pr-statement, .pr-sub { grid-column: 1 / -1; }
    .pr-statement { font-size: clamp(25px, 6.4vw, 32px); }
    .pr-readings { grid-template-columns: 1fr; row-gap: 32px; margin-top: 44px; }
    .pr-reading:hover { transform: none; }
    .pr-eyebrow { flex-direction: column; gap: 4px; align-items: flex-start; }
    .pr-closing { flex-direction: column; gap: 10px; align-items: flex-start; }
}

.places-showcase { margin-top: 32px; text-align: center; overflow: hidden; }
.places-showcase img {
    height: 100px;
    margin: 0 auto;
    opacity: 0;
    transition: all 0.5s var(--ease);
    animation: placesFloat 4s ease-in-out infinite;
}
.places-showcase img.revealed-places { opacity: 0.5; }
.places-showcase:hover img { opacity: 0.85; transform: scale(1.05); }

@keyframes placesFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* =============================================
   CONTATO
============================================= */
.contact-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 150px 20px;
}

.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    width: 100%;
}

.contact-form-card {
    width: 100%;
    max-width: 900px;
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--card-shadow);
}

.contact-form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #f4f4f4;
    border: none;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.phone-input-wrapper {
    display: flex;
    background: #eeeeee;
    border-radius: 12px;
    overflow: hidden;
}
.country-select {
    padding: 0 15px;
    display: flex;
    align-items: center;
    border-right: 1px solid #ddd;
    font-size: 18px;
}
.phone-input-wrapper input { background: transparent; border-radius: 0; }

.btn-submit {
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-submit:hover { background: var(--orange-hover); }

.lgpd-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0 15px;
    width: 100%;
}
.lgpd-wrapper input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    accent-color: var(--orange);
    width: 16px; height: 16px;
    flex-shrink: 0;
}
.lgpd-wrapper label {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.contact-direct-card {
    width: 100%;
    background: var(--white);
    border-radius: 60px;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--card-shadow);
}

.direct-left { display: flex; align-items: center; gap: 30px; }

.btn-whatsapp-small {
    background: var(--orange);
    color: #fff;
    padding: 12px 35px;
    border-radius: 10px;
    font-weight: 600;
}

.email-link { color: var(--orange); font-weight: 500; }

.social-icons-row { display: flex; gap: 20px; align-items: center; }
.social-icons-row img { height: 32px; }

/* =============================================
   FOOTER
============================================= */
.footer { border-top: 1px solid rgba(0,0,0,0.06); padding: 48px 40px; text-align: center; }

.footer-logo {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
}

.footer-logo-svg {
    width: 90vw;
    max-width: 1600px;
    height: auto;
    overflow: visible !important;
}

.letra-logo { will-change: transform, opacity; }
.footer p { font-size: 12px; color: var(--text-tertiary); margin-bottom: 10px; }

/* =============================================
   SCROLL / REVEAL ANIMATIONS
============================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.clip-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.clip-reveal.revealed { clip-path: inset(0 0% 0 0); }

.scale-reveal {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.scale-reveal.revealed { opacity: 1; transform: scale(1); }

.rotate-reveal {
    opacity: 0;
    transform: translateY(30px) rotate(3deg);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.rotate-reveal.revealed { opacity: 1; transform: translateY(0) rotate(0); }

.rd1 { transition-delay: 0.1s !important; }
.rd2 { transition-delay: 0.2s !important; }
.rd3 { transition-delay: 0.3s !important; }
.rd4 { transition-delay: 0.4s !important; }

/* =============================================
   SCROLL PROGRESS & BACK-TO-TOP
============================================= */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px; width: 100%;
    background: linear-gradient(90deg, #D42B1E, var(--orange), #ff8c42);
    z-index: 1001;
    transform-origin: left;
    transform: scaleX(0);
}

.back-to-top {
    position: fixed;
    bottom: max(32px, env(safe-area-inset-bottom)); right: max(32px, env(safe-area-inset-right));
    z-index: 999;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s var(--ease);
    box-shadow: 0 4px 20px rgba(232,80,26,0.3);
}
.back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); }
.back-to-top:hover   { transform: translateY(-3px) scale(1.08); box-shadow: 0 8px 30px rgba(232,80,26,0.4); }

/* =============================================
   FAN CARDS (SOBRE MIM)
============================================= */
.fan-cards-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -30px 0 0px 0;
    touch-action: pan-y;
    z-index: 15;
    user-select: none;
    -webkit-user-select: none;
}

.fan-card {
    position: absolute;
    width: 240px; 
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    transform-origin: center 400%; 
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), z-index 0s;
    cursor: pointer;
    will-change: transform;
}

.fan-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: #E8501A;
    opacity: var(--orange-depth, 0);
    transition: opacity 0.6s ease;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 10;
}

.fan-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    pointer-events: none;
}

.br-desktop { display: inline; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
    .br-desktop { display: none; }
    
    #wrap-portfolio   .section-header img { height: 45px; }
    #wrap-about .section-header img {
        height: 32px !important;
        width: auto;
    }
    #wrap-Princípios .section-header img { height: 36px; }
    #wrap-contact     .section-header img { height: 42px; }

    .navbar-inner { padding: 12px 20px; padding-top: max(12px, env(safe-area-inset-top)); }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(232,80,26,0.98);
        flex-direction: column;
        padding: 20px;
        gap: 14px;
    }
    .nav-links.active { display: flex; }
    .mobile-toggle    { display: flex; }

    .portfolio-inner  { padding: 60px 20px 80px; }
    .portfolio-card   { width: min(300px, 82vw); border-radius: 38px; }
    .portfolio-hscroll-track { gap: 16px; }

    .about-inner       { padding: 32px 20px; }
    .gallery-track     { padding: 20px 20px 40px; }
    .gallery-track img { width: 240px; height: 330px; }

    .Princípios-inner { padding: 24px 20px 20px; }

    .contact-inner     { padding: 32px 20px; }
    .contact-form .row { grid-template-columns: 1fr; }
    .contact-direct-card {
        flex-direction: column;
        border-radius: 24px;
        padding: 30px;
        gap: 20px;
    }
    .direct-left { flex-direction: column; gap: 15px; }

    .card-panel { border-radius: 16px 16px 0 0; }

    #wrap-about .gallery-track img { width: 60vw; height: 80vw; }

    .companies {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 28px 8px;
        padding: 0 16px;
        align-items: center;
    }
    .companies a:nth-child(1) { grid-column: 1 / 3; }
    .companies a:nth-child(2) { grid-column: 3 / 5; }
    .companies a:nth-child(3) { grid-column: 5 / 7; }
    .companies a:nth-child(4) { grid-column: 2 / 4; }
    .companies a:nth-child(5) { grid-column: 4 / 6; }
    .companies a { display: flex; justify-content: center; }
    .companies a img { width: 100%; max-width: 100px; height: 40px; object-fit: contain; }

    .fan-cards-container { height: 450px; margin: 10px 0 30px 0; }
    .fan-card { width: 180px; transform-origin: center 350%; }

    /* Portfolio / About / Contact text, 20% smaller than desktop */
    #wrap-portfolio .section-title,
    #wrap-about     .section-title,
    #wrap-contact   .section-title { font-size: 2.4rem; }

    #wrap-portfolio .card-body h3     { font-size: 12.8px; }
    #wrap-portfolio .card-body p      { font-size: 10.4px; }
    #wrap-portfolio .card-hover span  { font-size: 9.6px; }
    #wrap-portfolio .hscroll-arrows button { font-size: 14.4px; }
    #wrap-portfolio .btn-pause        { font-size: 11.2px; }

    #wrap-contact .contact-lead        { font-size: 12.8px; }
    #wrap-contact .form-group label    { font-size: 11.2px; }
    #wrap-contact .form-group input,
    #wrap-contact .form-group textarea { font-size: 11.2px; }
    #wrap-contact .lgpd-wrapper label  { font-size: 10.4px; }
    #wrap-contact .btn-submit          { font-size: 12.8px; }
    #wrap-contact .btn-whatsapp-small  { font-size: 12.8px; }
    #wrap-contact .email-link         { font-size: 12.8px; }
}

@media (max-width: 600px) {
    #wrap-about .section-header img {
        height: 28px !important;
    }
    #cookie-banner p { white-space: normal !important; }
    #cookie-banner   { flex-direction: column; text-align: center; }
    .fan-cards-container { height: 350px; margin: 0px 0 20px 0; }
    .fan-card { width: 140px; transform-origin: center 250%; }
}

@media (max-width: 900px) {
    .contact-layout   { grid-template-columns: 1fr; }
    .card-panel       { position: sticky; top: 0; border-radius: 0; overflow: hidden; }
    .portfolio-card   { width: min(330px, 82vw); }
    .cursor-follower  { display: none; }
    .places-showcase img { height: 70px; }
    .gallery-track img   { width: 280px; height: 380px; }

    .skill-row {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 16px;
        row-gap: 4px;
        padding: 20px 0;
        align-items: start;
    }
    .skill-icon-wrap { grid-column: 1; grid-row: 1 / 3; align-self: start; margin-top: 4px; height: 44px; width: 44px; justify-content: flex-start; margin-right: 12px; }
    .skill-icon-wrap .icon { font-size: 24px; }
    .skill-shape     { width: 44px; height: 44px; }
    .skill-title     { grid-column: 2; grid-row: 1; }
    .skill-title h3  { font-size: 20px; }
    .skill-desc      { grid-column: 2; grid-row: 2; }
    .skill-row:hover { padding-left: 0; }
    .pr-statement { font-size: clamp(25px, 6.4vw, 32px); }

    .gallery-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; cursor: default; }
    .portfolio-hsroll-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .portfolio-hscroll-track  { width: max-content; }

    #wrap-portfolio {
        overflow: hidden;
        width: 100%;
    }
    .portfolio-hsroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
    .portfolio-hscroll-track {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        padding-left: 28px;
        padding-right: 0;
    }
    body, html {
        overflow-x: hidden;
        position: relative;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    #cookie-banner { flex-direction: column; padding: 12px 16px; }
    #cookie-banner p { white-space: normal; font-size: 12px; }
    #wrap-about .gallery-track img { width: 30vw; height: 40vw; }
    .contact-inner { padding: 60px 20px 32px; }
    .contact-form-card { padding: 24px; border-radius: 16px; }
    .contact-form .row { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
    .form-group input,
    .form-group textarea { padding: 10px 12px; font-size: 11.2px; }
    .form-group textarea { min-height: 60px; }
    .section-header { margin-bottom: 8px !important; }
}

@media (max-height: 480px) {
    .scroll-indicator { display: none !important; }
    #menu .menu-logo  { height: 60px; margin-bottom: 15px; margin-top: 80px; }
    #menu p           { margin-bottom: 24px; }
}

@media (min-width: 1024px) {
    .portfolio-card  { width: min(400px, 78vw); }
    .gallery-track img { width: 340px; height: 460px; }
}

@media (min-width: 1800px) {
    :root { --content-max: 1500px; }
    .portfolio-card    { width: min(465px, 78vw); }
    .gallery-track img { width: 280px; height: 382px; }
    .companies a img   { height: 62px; }
    .places-showcase img { height: 130px; }
    .Princípios-inner { max-width: 1400px; }
}

@media (min-width: 2200px) {
    :root { --content-max: 1800px; }
    .portfolio-card    { width: min(485px, 78vw); }
    .gallery-track img { width: 300px; height: 410px; }
    .companies a img   { height: 72px; }
    .places-showcase img { height: 150px; }
    .Princípios-inner { max-width: 1600px; }
}

@media (max-width: 900px) {
    .portfolio-controls { display: none; }
}