:root {
    --color-bg: #ffffff;
    --color-text: #2a2a2a;
    --color-secondary: #cfb698;
    --color-accent: #cfb698;
    --font-primary: 'Suisse Intl', 'Suisseintl', sans-serif;
    --font-secondary: 'Suisse Intl', 'Suisseintl', sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Lenis Smooth Scroll Configuration */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Performance Optimizations */
.hero-bg,
.works-bg-inner,
.showcase-img {
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.header.scrolled {
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    /* Spaces logo and nav */
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.header-logo {
    height: 40px;
    width: auto;
    transition: var(--transition-smooth);
}

.brand-name {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    font-weight: 500;
    color: #ffffff;
    transition: var(--transition-smooth);
    margin: 0;
    line-height: 1;
    transform: translateY(3px);
}

.header.scrolled .brand-name {
    color: #ffffff;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 400;
    transition: var(--transition-smooth);
    position: relative;
    opacity: 0.9;
}

.header.scrolled .nav-link {
    color: #ffffff;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile social row inside the hamburger overlay — hidden on desktop */
.mobile-social {
    display: none;
}

@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
    }

    .nav-link {
        color: #ffffff !important;
        font-size: 1.5rem;
        opacity: 1;
    }

    /* Social icons row pinned to the bottom of the mobile sidebar */
    .mobile-social {
        display: flex;
        position: absolute;
        bottom: max(40px, env(safe-area-inset-bottom, 0px));
        left: 0;
        right: 0;
        justify-content: center;
        align-items: center;
        gap: 32px;
        padding: 0 24px;
    }

    .mobile-social-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        color: rgba(255, 255, 255, 0.85);
        transition: var(--transition-smooth);
    }

    .mobile-social-link svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    .mobile-social-link:hover,
    .mobile-social-link:focus-visible {
        color: #ffffff;
        transform: translateY(-2px);
    }

    .mobile-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
    }

    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 1px;
        background-color: #ffffff;
        position: absolute;
        transition: 0.3s;
    }

    .mobile-toggle.active span {
        background-color: #ffffff;
    }

    .header.scrolled .mobile-toggle span {
        background-color: #ffffff;
    }

    .mobile-toggle span:nth-child(1) {
        top: 0;
    }

    .mobile-toggle span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-toggle span:nth-child(3) {
        bottom: 0;
    }

    .mobile-toggle.active span:nth-child(1) {
        top: 50%;
        transform: rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        top: 50%;
        transform: rotate(-45deg);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align content to the left */
    color: #ffffff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('hero.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
}

.hero-video-wrapper {
    display: none;
    /* Hidden by default on desktop */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-content {
    z-index: 2;
    width: 100%;
}

.hero-text-wrapper {
    max-width: 600px;
    text-align: left;
}

.hero-tagline {
    display: block;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-headline {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 500;
}

.hero-subheadline {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 500px;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #ffffff;
    color: #2a2a2a;
    border-radius: 50px;
    /* Rounded pill button like reference */
}

.btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-5px);
}

/* Application form sits on off-white (#fbfbfb), so invert the primary
   button colors to keep contrast and avoid the white-on-white state. */
.application .btn-primary {
    background-color: var(--color-text);
    color: #ffffff;
    border-color: var(--color-text);
}

.application .btn-primary:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Hero Image Section - Moved to Background */

/* Manifesto Section */
.manifesto {
    height: 450px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fbfbfb;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.manifesto-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.container-reveal {
    position: relative;
    /* Removed sticky for shorter section */
    z-index: 10;
    max-width: 800px !important;
    padding: 0 40px;
}

.manifesto-content {
    display: block;
    width: 100%;
}

.manifesto-text.reveal-text {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    line-height: 1.6;
    color: #2a2a2a;
    font-weight: 400;
    margin: 0 auto;
    text-align: center;
    opacity: 1;
    max-width: 850px;
    /* Refined width for better line distribution */
    text-wrap: balance;
    /* Prevents orphans and balances line lengths */
    /* Keep container visible */
}

.reveal-letter {
    display: inline-block;
    opacity: 0.15;
    will-change: opacity;
}

/* Sliced Scroll Reveal Section */
.sliced-scroll-wrapper {
    height: 100vh;
    /* Controlled by ScrollTrigger pin duration */
    position: relative;
    background-color: #fbfbfb;
    /* Match Manifesto background for seamless transition */
}

.sliced-scroll-sticky {
    height: 100vh;
    width: 100%;
    position: sticky;
    top: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    isolation: isolate;
    /* Create a new stacking context for blend modes */
}

.works-bg-container {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    clip-path: inset(0% 0 0 0);
    /* Visible by default */
}

.works-bg-inner {
    width: 100%;
    height: 120%;
    /* Extra height for parallax */
    position: absolute;
    top: 0;
    left: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('obras-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.slice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
    text-align: center;
    opacity: 1;
    /* Visible by default */
    transform: translateY(0);
    /* Positioned by default */
    /* mix-blend-mode removed to avoid rendering glitches during massive scale */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transform-style: preserve-3d;
}



/* Obras Header Section - Refined for Slices */
.dark-section {
    background-color: #121212;
    color: #ffffff;
    padding: 150px 0;
}

.huge-text {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1;
    /* Tighter line height for premium feel */
    margin: 0 auto 15px auto;
    font-weight: 400;
    letter-spacing: -0.04em;
    /* Slightly more aggressive tracking */
    color: #ffffff;
    max-width: 90%;
    text-align: center;
    display: block;
    transition: none !important;
}

.section-subtext {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    color: #ffffff;
    line-height: 1.6;
    margin: 0 auto;
    text-align: center;
    display: block;
    transition: none !important;
    text-wrap: balance;
    /* Ensures harmonious line breaks */
}



/* Showcase Section */
.section_showcase {
    display: flex;
    width: 100%;
    height: 100vh;
    background-color: #121212;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.showcase_image_container {
    flex: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
    transition: flex 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    filter: grayscale(100%) brightness(0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase_image_container:last-child {
    border-right: none;
}

.showcase_image_container:hover {
    flex: 2;
    filter: grayscale(0%) brightness(1);
    z-index: 2;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase_image_container:hover .showcase-img {
    transform: scale(1.05);
}

.showcase_info-wrapper {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 10;
    color: #fff;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(10px);
}

.showcase_image_container:hover .showcase_info-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.showcase_info-heading {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 5px;
    line-height: 1.1;
}

.showcase_info-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    font-weight: 400;
}

.showcase_info-underline {
    height: 2px;
    background-color: var(--color-secondary);
    width: 0%;
    margin-top: 15px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase_image_container:hover .showcase_info-underline {
    width: 60px;
}

/* Responsive Queries */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-bg {
        background-attachment: scroll;
        /* Better performance on mobile chips */
    }

    .manifesto {
        padding: 80px 0;
        /* Fallback for older browsers without full 100vh support */
    }

    .dark-section {
        padding: 100px 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header {
        padding: 20px 0;
    }

    .header.scrolled {
        padding: 12px 0;
    }

    .logo-link {
        gap: 10px;
    }

    .header-logo {
        height: 30px;
    }

    .brand-name {
        font-size: 0.9rem;
        letter-spacing: 0.05rem;
        transform: translateY(3px);
        margin: 0;
    }

    .hero {
        text-align: left;
        padding-top: 80px;
        align-items: center;
    }

    .hero-bg {
        display: none;
    }

    .hero-video-wrapper {
        display: block;
    }

    .hero-text-wrapper {
        max-width: 100%;
    }

    .hero-headline {
        font-size: 2.5rem;
        /* Specific size for small phones if clamp is too big */
    }

    .hero-subheadline {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .btn {
        padding: 15px 32px;
        font-size: 0.8rem;
    }

    .manifesto {
        height: auto;
        /* Allow text to breathe on small screens */
        min-height: 80vh;
        padding: 120px 0;
    }

    .manifesto-line {
        height: 50px;
        bottom: calc(100% + 30px);
    }

    .manifesto-text {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .huge-text {
        font-size: 2.8rem;
    }

    .section-subtext {
        font-size: 1.1rem;
    }



    /* Sliced Scroll Reveal Mobile - Static 200px Section */
    .sliced-scroll-wrapper {
        height: auto;
        /* No longer full screen */
    }

    .sliced-scroll-sticky {
        position: relative;
        top: 0;
        height: auto;
        overflow: visible;
        display: block;
        padding: 0;
    }

    .works-bg-container {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 200px;
        z-index: 1;
    }

    .works-bg-inner {
        height: 100%;
    }

    .slice-overlay {
        position: relative;
        height: 200px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        z-index: 2;
        /* Above background */
        opacity: 1;
        transform: none !important;
        pointer-events: auto;
    }

    .huge-text {
        font-size: 1.8rem;
        /* Scaled for 200px height */
        margin-bottom: 8px;
        max-width: 90%;
    }

    .section-subtext {
        font-size: 0.9rem;
        max-width: 85%;
    }

    .section_showcase {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        width: 100%;
        position: relative;
        top: 0;
        left: 0;
        opacity: 1;
        pointer-events: auto;
        background-color: #121212;
        padding: 0;
        /* Remove padding for full-width images */
        gap: 0;
        /* Remove gap for seamless section look */
        z-index: 5;
    }

    .showcase_image_container {
        width: 100%;
        height: 450px;
        /* Increased height for a more 'sectional' feel */
        filter: grayscale(0%) brightness(0.9);
        border: none;
        border-radius: 0;
        /* Sharp edges like a section */
        overflow: hidden;
        flex: none;
    }

    .showcase_image_container:hover {
        flex: none;
    }

    .showcase_info-wrapper {
        bottom: 12px;
        left: 12px;
        right: 12px;
        transform: translateY(0);
        opacity: 1;
    }

    .showcase_info-heading {
        font-size: 1.4rem;
        margin-bottom: 4px;
        font-weight: 500;
        letter-spacing: 0.05rem;
    }

    .showcase_info-text {
        font-size: 0.8rem;
        opacity: 0.8;
    }

    .showcase_info-underline {
        display: none;
    }
}


/* Luxury Section Styles - Cleaned Up */
.luxury-section {
    position: relative;
    height: 400vh;
    background-color: #000;
}

.luxury-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('RESIDENCIAIS/Ananda e Willian - A_W/FACHADA_201-enhanced.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.luxury-card {
    position: relative;
    background-color: #ffffff;
    width: 90%;
    max-width: 1100px;
    height: 60vh;
    min-height: 500px;
    margin: 0 auto;
    display: flex;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.luxury-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.luxury-text-column {
    width: 55%;
    padding: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.luxury-text-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
}

.luxury-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease-out;
    pointer-events: none;
}

.luxury-block.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.luxury-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.luxury-paragraph {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.luxury-image-column {
    width: 45%;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

.luxury-image-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.luxury-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .luxury-card {
        flex-direction: column-reverse;
        height: auto;
        min-height: auto;
    }

    .luxury-text-column {
        width: 100%;
        padding: 40px 20px;
        height: 300px;
    }

    .luxury-image-column {
        width: 100%;
        height: 250px;
    }

    .luxury-title {
        font-size: 1.5rem;
    }

    .luxury-paragraph {
        font-size: 1rem;
    }
}

/* Experience Section */
.experience {
    position: relative;
    padding: 150px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.experience-grid {
    display: flex;
    align-items: center;
    gap: 80px;
}

.experience-image-column {
    flex: 1.2;
    /* Image takes a bit more space */
    position: relative;
}

.experience-bg-wrapper {
    width: 100%;
    height: 65vh;
    min-height: 500px;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.experience-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-image: url('RESIDENCIAIS/Fachadas/enhanced_1.png');
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.experience-text-column {
    flex: 1;
}

.experience-text-wrapper {
    max-width: 550px;
    text-align: left;
    color: var(--color-text);
}

.experience-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    /* 1/3 of the 4.5rem hero headline */
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0;
    margin: 0;
    margin-bottom: 2rem;
}

.experience-text {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.01em;
    margin: 0;
}

@media (max-width: 1024px) {
    .experience-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .experience {
        padding: 80px 0;
    }

    .experience-grid {
        flex-direction: column;
        gap: 60px;
    }

    .experience-image-column {
        width: 100%;
    }

    .experience-bg-wrapper {
        height: 50vh;
        min-height: 400px;
    }

    .experience-text-wrapper {
        max-width: 100%;
        text-align: left;
    }

    .experience-title,
    .experience-text {
        font-size: 1.1rem;
    }
}

/* Values Horizontal Section */
.values-horizontal {
    background-color: #fffffffa;
    overflow: hidden;
    position: relative;
    height: 350px;
    /* PC height */
}

.values-container {
    display: flex;
    width: 300%;
    /* 3 items, each 100vw */
    height: 350px;
}

.value-item {
    width: 100vw;
    height: 350px;
    display: flex;
    align-items: center;
    position: relative;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    /* Align with top of section */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
}

.value-item-inner {
    display: flex;
    align-items: center;
    /* Center vertically inside 350px */
    gap: 100px;
}

.value-sidebar {
    flex: 0 0 300px;
}

.value-index {
    display: block;
    font-size: 2.4rem;
    /* 3x original 0.8rem */
    color: var(--color-accent);
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.4;
    /* Subtle opacity for a more sophisticated look at larger size */
}

.value-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 500;
    color: var(--color-text);
    text-transform: uppercase;
}

.value-description {
    flex: 1;
    max-width: 700px;
    margin-top: 20px;
}

.value-description p {
    font-size: 1.35rem;
    /* Larger than body, subtÃ­tulo style */
    line-height: 1.7;
    font-weight: 300;
    color: #444;
}

@media (max-width: 1024px) {
    .value-item-inner {
        gap: 50px;
    }

    .value-sidebar {
        flex: 0 0 200px;
    }
}

@media (max-width: 768px) {
    .values-horizontal {
        height: auto;
        padding: 40px 0;
    }

    .values-container {
        display: block;
        width: 100%;
        height: auto;
    }

    .value-item {
        width: 100%;
        height: auto;
        padding: 30px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .value-item:last-child {
        border-bottom: none;
    }

    .value-item::before {
        display: none;
    }

    .value-item-inner {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .value-sidebar {
        flex: none;
        width: 100%;
    }

    .value-index {
        font-size: 0.7rem;
        margin-bottom: 5px;
        opacity: 0.6;
    }

    .value-title {
        font-size: 2.2rem;
        letter-spacing: -0.02em;
        margin-bottom: 0;
    }

    .value-description {
        width: 100%;
        margin-top: 0;
    }

    .value-description p {
        font-size: 1.1rem;
        line-height: 1.6;
        color: #555;
    }
}

/* Footer Styles */
.footer {
    background-color: #fcfbf9;
    /* Warm Off-White / Light Grey */
    color: #1a1a1a;
    /* Graphite */
    padding: 0;
    overflow: hidden;
}

/* Footer CTA Section */
.footer-cta {
    padding: 120px 0;
    text-align: center;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    /* Ultra-thin divider */
}

.cta-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.footer-cta-btn {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.footer-cta-btn:hover {
    background-color: transparent;
    color: #1a1a1a;
    border-color: #1a1a1a;
}

/* Footer Main Grid */
.footer-main {
    padding: 100px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-tagline {
    font-size: 0.95rem;
    color: #666;
    max-width: 250px;
    line-height: 1.6;
}

.footer-heading {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    margin-bottom: 30px;
    font-weight: 600;
    color: #1a1a1a;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link,
.social-link {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
}

.footer-link:hover,
.social-link:hover {
    color: #1a1a1a;
    opacity: 1;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 0.1px;
    /* Ultra thin underline */
    background-color: #1a1a1a;
    transition: var(--transition-smooth);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-info {
    font-style: normal;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #666;
    transition: var(--transition-smooth);
}

.social-icon-link svg {
    width: 100%;
    height: 100%;
    display: block;
}

.social-icon-link:hover {
    color: #1a1a1a;
    transform: translateY(-1px);
}

.social-icon-link::after {
    display: none;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 40px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #999;
}

.copyright,
.credits {
    margin: 0;
}

.zenyth-link {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.zenyth-link:hover {
    color: #1a1a1a;
}

/* Footer Mobile Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-cta {
        padding: 80px 20px;
    }

    .footer-main {
        padding: 60px 20px 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns on mobile */
        gap: 40px;
        text-align: left;
        /* Left align for a more modern look */
    }

    .footer-branding {
        grid-column: span 2;
        /* Branding takes full width */
        margin-bottom: 20px;
    }

    .footer-tagline {
        margin: 0;
        /* Align left */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: left;
        align-items: flex-start;
    }
}

/* Founder Section */
.founder {
    background-color: #ffffff;
    padding: 60px 0 0 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.founder-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.founder .container {
    position: relative;
    z-index: 1;
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
    width: 100%;
}

.founder-text-column {
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.founder-header {
    margin-bottom: 50px;
}

.founder-name {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 500;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.founder-title {
    font-size: 1.4rem;
    font-style: italic;
    color: #888;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.founder-bio p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
    font-weight: 300;
}

.founder-bio p:last-child {
    margin-bottom: 0;
}

.founder-image-column {
    display: flex;
    justify-content: flex-end;
    align-self: flex-end;
    position: relative;
    z-index: 10;
}

.founder-image-wrapper {
    width: 100%;
    max-width: 800px;
    position: relative;
    background-color: transparent;
    display: flex;
    align-items: flex-end;
}

.founder-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom right;
    display: block;
}

@media (max-width: 1024px) {
    .founder-grid {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .founder {
        padding: 200px 0 0 0;
        min-height: auto;
        display: block;
    }

    .founder-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .founder-image-column {
        order: -1;
        justify-content: center;
        display: flex;
        width: 100%;
        overflow: visible;
    }

    .founder-image-wrapper {
        max-width: 100%;
        justify-content: center;
        transform: scale(1.32);
        transform-origin: center bottom;
        z-index: 10;
    }

    .founder-text-column {
        max-width: 100%;
        margin: 0 auto;
        padding-bottom: 80px;
        position: relative;
        z-index: 5;
    }

    .founder-name {
        font-size: 2.8rem;
    }

    .founder-bio p {
        font-size: 1.1rem;
    }

    .founder-img {
        object-position: center bottom;
        max-height: 60vh;
        width: auto;
        /* CULPADA do deslocamento no iOS real (27/jul): com width:auto a foto
           renderizava 468px numa tela de 414 e o Safari ALARGAVA o layout
           viewport — todo o texto centralizado descia deslocado pra direita.
           Emuladores toleram; iPhone real nao. A foto NUNCA pode passar da tela. */
        max-width: 100vw;
    }

    /* contem tambem o vazamento do scale(1.32) do wrapper: efeito visual fica,
       mas nada alarga a pagina */
    .founder {
        overflow-x: clip;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 140px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.testimonials-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
    align-items: center;
}

.testimonials-tag {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--color-accent);
    margin-bottom: 25px;
    font-weight: 600;
}

.testimonials-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.testimonials-title em {
    font-style: italic;
    font-weight: 300;
}

.testimonials-divider {
    width: 60px;
    height: 1px;
    background-color: var(--color-text);
    margin-bottom: 40px;
}

.testimonials-subtitle {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
    max-width: 450px;
    margin-bottom: 50px;
}

.testimonials-nav {
    display: flex;
    gap: 15px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background-color: var(--color-text);
    color: #ffffff;
    border-color: var(--color-text);
}

/* Testimonials Track */
.testimonials-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 450px;
    /* Aumentado para comportar o desnÃ­vel vertical */
}

.testimonials-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px 0;
    /* Padding extra para o desnÃ­vel nÃ£o cortar */
}

.testimonial-card:nth-child(odd) {
    transform: translateY(-30px);
    /* Sobe levemente o card da esquerda */
}

.testimonials-track::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.testimonial-card {
    width: 100%;
    background: #fcfbf9;
    padding: 40px;
    /* Reduzido de 60px */
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    box-sizing: border-box;
    height: 400px;
    /* Altura fixa para garantir alinhamento vertical perfeito */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.quote-icon {
    font-size: 2.5rem;
    /* Reduzido de 4rem */
    font-family: serif;
    color: rgba(207, 182, 152, 0.2);
    line-height: 1;
    margin-bottom: 5px;
}

.testimonial-text {
    font-size: 1rem;
    /* Reduzido de 1.15rem */
    line-height: 1.6;
    color: #2a2a2a;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.author-name {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-title {
    font-size: 0.8rem;
    color: #999;
}

@media (max-width: 1024px) {
    .testimonials-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .testimonials-header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .testimonials-nav {
        margin-top: 20px;
    }

    .testimonials-inner {
        height: auto;
        min-height: 500px;
    }

    .testimonial-card {
        flex: 0 0 350px;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 60px 0;
    }

    .testimonials-inner {
        height: auto;
        min-height: 450px;
    }

    .testimonials-track {
        display: flex;
        /* Flex para scroll horizontal */
        flex-direction: row;
        gap: 0;
        padding: 0;
    }

    .testimonial-card {
        flex: 0 0 100%;
        /* Um por vez */
        padding: 30px;
        height: auto;
        min-height: 400px;
        transform: none !important;
        /* Remove desnÃ­vel no mobile */
        margin: 0;
    }

    .testimonial-text {
        font-size: 1rem;
    }
}

/* Application Form Section */
.application {
    padding: 120px 0;
    background-color: #fbfbfb;
    /* Off-white background */
    color: var(--color-text);
}

.container-large {
    max-width: 1400px !important;
    margin: 0 auto;
    padding: 0 40px;
}

.application-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: flex-start;
}

.application-image-wrapper {
    position: sticky;
    top: 15vh;
    height: 70vh;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.application-parallax-container {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
}

.application-parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.application-header {
    text-align: left;
    margin-bottom: 60px;
}

.application-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.application-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: #666;
    max-width: 500px;
    margin: 0;
    line-height: 1.6;
    text-wrap: balance;
}

.application-form {
    background: transparent;
}

.form-group {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-group label {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1a1a1a;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.15);
    /* Ultra-thin underline */
    padding: 12px 0;
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-text);
    transition: var(--transition-smooth);
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #1a1a1a;
}

/* Phone input with fixed +55 prefix */
.input-tel {
    display: flex;
    align-items: baseline;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.input-tel:focus-within {
    border-bottom-color: #1a1a1a;
}

.tel-prefix {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-text);
    padding: 12px 10px 12px 0;
    user-select: none;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.input-tel input[type="tel"] {
    flex: 1;
    border-bottom: none;
    padding-left: 0;
}

.input-tel input[type="tel"]:focus {
    border-bottom: none;
}

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 8.825L1.175 4 2.59 2.585 6 6l3.415-3.415L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.form-group textarea {
    resize: none;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    padding: 15px;
    margin-top: 5px;
}

.form-group textarea:focus {
    border-color: #1a1a1a;
}

.form-footer {
    margin-top: 20px;
    text-align: left;
}

.btn-block {
    width: 100%;
    padding: 20px;
}

.privacy-notice {
    margin-top: 25px;
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.lock-icon {
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .application-grid {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .application {
        padding: 80px 20px;
    }

    .container-large {
        padding: 0 20px;
    }

    .application-grid {
        grid-template-columns: 1fr;
    }

    .application-image-wrapper {
        display: none;
        /* Hide image on mobile as requested */
    }

    .application-header {
        text-align: center;
    }

    .application-subtitle {
        margin: 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-footer {
        text-align: center;
    }

    .privacy-notice {
        justify-content: center;
    }
}

/* Equipe Section */
.equipe-horizontal {
    padding: 100px 0;
    background-color: var(--color-bg);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.equipe-header-wrapper {
    margin-bottom: 50px;
    text-align: left;
}

.equipe-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-weight: 500;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    text-align: left;
}

.equipe-header-wrapper .testimonials-tag {
    text-align: left;
}

.equipe-scroll-container {
    width: 100%;
    overflow: hidden;
}

.equipe-wrapper {
    display: flex;
    width: max-content;
    padding-left: max(40px, calc((100vw - 1400px) / 2 + 40px));
}

.equipe-item {
    width: clamp(240px, 33vh, 350px);
    margin-right: 40px;
    flex-shrink: 0;
}

.equipe-item:last-child {
    margin-right: max(40px, calc((100vw - 1400px) / 2 + 40px));
}

.equipe-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 4px;
    overflow: hidden;
}

.equipe-card img {
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.equipe-img-guilherme {
    object-position: center 30% !important;
}

.equipe-img-gladys {
    object-position: center 60% !important;
}

.equipe-card:hover img {
    transform: scale(1.05);
}

.equipe-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    transform: translateY(0);
    opacity: 1;
    transition: padding 0.4s ease;
}

.equipe-info h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.equipe-info p {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .equipe-wrapper {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .equipe-horizontal {
        padding: 60px 0;
    }

    .equipe-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }

    .equipe-item {
        width: 100%;
        margin-right: 0;
    }

    .equipe-item:last-child {
        margin-right: 0;
    }

    .equipe-info {
        padding: 15px 10px;
    }

    .equipe-info h3 {
        font-size: 1rem;
    }

    .equipe-info p {
        font-size: 0.7rem;
    }
}

/* Jornada Áurea Section */
.jornada {
    padding: 140px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.jornada-header {
    margin-bottom: 80px;
    max-width: 900px;
}

.jornada-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 35px;
    letter-spacing: -0.03em;
    color: #1a1a1a;
}

.jornada-intro {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.7;
    color: #444;
    font-weight: 300;
    text-wrap: balance;
}

.jornada-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.jornada-item {
    display: flex;
    flex-direction: column;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    position: relative;
}

.jornada-item:hover {
    border-top-color: var(--color-accent);
}

.jornada-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.jornada-item:hover::before {
    width: 100%;
}

.jornada-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 500;
    color: rgba(207, 182, 152, 0.15);
    margin-bottom: 25px;
    line-height: 1;
}

.jornada-info h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.jornada-info p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    font-weight: 400;
}

@media (max-width: 1200px) {
    .jornada-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px 40px;
    }
}

@media (max-width: 992px) {
    .jornada-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .jornada {
        padding: 80px 0;
    }
    
    .jornada-header {
        margin-bottom: 50px;
    }
    
    .jornada-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-top: 50px;
    }
}

/* Project Modal Gallery */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    opacity: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
}

.project-modal.active {
    display: flex;
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 80px 40px;
}

.modal-header {
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
}

.modal-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-secondary);
}

.modal-gallery-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 0 40px 100px 40px;
}

/* Room Captions Styling */
.project-gallery-item, .modal-gallery-item {
    position: relative;
    overflow: hidden;
}

/* Project Gallery Slider - Edge to Edge & Glassmorphism */
.project-gallery-slider-container {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 60px;
}

.project-gallery-slider {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 5vw; /* Padding lateral para o efeito de "espiada" */
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.project-gallery-slider::-webkit-scrollbar {
    display: none;
}

.project-gallery-slider .project-gallery-item {
    flex: 0 0 clamp(350px, 45vw, 650px);
    height: 520px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.project-gallery-slider .project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-gallery-slider .project-gallery-item:hover img {
    transform: scale(1.1);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12); /* Glassmorphism puro */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.slider-nav.prev { left: 3vw; }
.slider-nav.next { right: 3vw; }

@media (max-width: 768px) {
    .project-gallery-slider {
        gap: 15px;
        padding: 10px 20px;
        mask-image: none; /* Disabilitar mask no mobile para evitar cortes estranhos */
        -webkit-mask-image: none;
    }
    .project-gallery-slider .project-gallery-item {
        flex: 0 0 75vw; /* Faz com que 25% da próxima imagem apareça */
        height: 260px;
    }
    .slider-nav {
        display: none;
    }
}

/* Room Captions Styling - Enhanced for Premium Look */
.project-gallery-item, .modal-gallery-item {
    position: relative;
    overflow: hidden;
}

.room-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    padding: 10px 18px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 2px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    border-left: 3px solid var(--color-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 5;
}

.project-gallery-item:hover .room-caption,
.modal-gallery-item:hover .room-caption {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .room-caption {
        opacity: 1;
        transform: translateY(0);
        bottom: 15px;
        left: 15px;
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}

.modal-gallery-item.full-width {
    grid-column: span 2;
}

.modal-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .modal-grid img.full-width {
        grid-column: span 1;
        aspect-ratio: 16/9;
    }
    .modal-content {
        padding: 60px 20px;
    }
}

/* Language Switcher — Glassmorphism */
.lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: 16px;
}
.lang-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
    position: relative;
}
.lang-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
    z-index: 2;
}
.lang-flag {
    width: 78%;
    height: 78%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.lang-btn:hover {
    transform: translateY(-2px) scale(1.06);
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}
.lang-btn.active {
    border-color: var(--color-accent, #c8a973);
    background: rgba(200, 169, 115, 0.22);
    box-shadow:
        0 6px 20px rgba(200, 169, 115, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 2px rgba(200, 169, 115, 0.25);
    transform: scale(1.05);
}
/* Light context (header rolado, página portfólio) */
.header.scrolled .lang-btn,
body:not(:has(.hero)) .lang-btn {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.header.scrolled .lang-btn:hover,
body:not(:has(.hero)) .lang-btn:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.15);
}
.header.scrolled .lang-btn.active,
body:not(:has(.hero)) .lang-btn.active {
    background: rgba(200, 169, 115, 0.18);
    border-color: var(--color-accent, #c8a973);
}
@media (max-width: 1024px) {
    .lang-switcher {
        margin-left: auto;
        margin-right: 16px;
    }
}
@media (max-width: 768px) {
    .lang-switcher {
        position: absolute;
        top: 22px;       /* alinhado ao centro do texto da logo (header normal) */
        right: 64px;
        margin: 0;
        gap: 5px;
        transition: top 0.3s ease;
    }
    .lang-btn {
        width: 26px;
        height: 26px;
    }
    /* Header rolado fica mais compacto → bandeiras descem pra continuar alinhadas com a logo */
    .header.scrolled .lang-switcher {
        top: 14px;
    }
}

/* ============================================================
   Bandeiras DENTRO do menu hamburguer (mobile) — no topo, centralizadas
   ============================================================ */
.lang-switcher-in-menu {
    display: none;
}
@media (max-width: 1024px) {
    .lang-switcher-in-menu {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 90px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        gap: 14px;
        width: auto;
        z-index: 1;
    }
    .lang-switcher-in-menu .lang-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        min-height: 44px;
        aspect-ratio: 1 / 1;
        flex: 0 0 44px;
        padding: 0;
        border-radius: 50%;
    }
    .lang-switcher-in-menu .lang-flag {
        width: 80%;
        height: 80%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 50%;
    }
}
@media (max-width: 768px) {
    .lang-switcher-in-menu {
        top: 76px;
    }
}

/* ============================================================
   Som ambiente — botão flutuante (canto inferior direito)
   ============================================================ */
.aurea-audio-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    border: 1px solid rgba(207, 182, 152, 0.6);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.aurea-audio-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
}
.aurea-audio-toggle:hover {
    transform: scale(1.08);
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.aurea-audio-toggle.is-playing {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
/* Pulso-convite sutil enquanto o som ainda não começou */
.aurea-audio-toggle.is-hint {
    animation: aureaAudioPulse 2.4s ease-in-out infinite;
}
@keyframes aureaAudioPulse {
    0%, 100% { box-shadow: 0 6px 22px rgba(0,0,0,0.10), 0 0 0 0 rgba(207,182,152,0.55); }
    50%      { box-shadow: 0 6px 22px rgba(0,0,0,0.10), 0 0 0 12px rgba(207,182,152,0); }
}
@media (max-width: 768px) {
    .aurea-audio-toggle {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
    .aurea-audio-toggle svg { width: 20px; height: 20px; }
}

/* ---- Mobile: parallax sem flick ----
   Imagens animadas por scrub ganham camada propria de compositing: sem isso o
   celular repinta a imagem inteira a cada frame do scroll (flick/rasgo visual). */
@media (max-width: 768px) {
    .hero-bg,
    .experience-bg,
    .experience-text-wrapper,
    .showcase-img,
    .equipe-card img,
    .application-parallax-img {
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* ---- Mobile: KILL-SWITCH do deslocamento da secao da fundadora ----
   !important vence ate estilo inline: nenhum JS (nem versao antiga em cache no
   aparelho) consegue empurrar a coluna de texto pro lado no celular. */
@media (max-width: 768px) {
    .founder-text-column,
    .founder-header,
    .founder-bio {
        transform: none !important;
        opacity: 1 !important;
    }
}
