:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #f0f0f0;
    --font-main: 'Inter', sans-serif;
    --header-height: 80px;
}

[data-theme="dark"],
.home-page {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
}

/* Glassmorphism Utilities */
/* Glassmorphism Utilities Removed for V0 Style */
.glass-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}

.glass-nav {
    background: transparent;
    padding: 0.8rem 0;
    border-radius: 0;
    border: none;
    backdrop-filter: none;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
    text-decoration: none;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 2rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #000;
    /* Fallback for video */
}

/* UGC Page Specific Adjustments (Desktop) */
.ugc-page .hero-section {
    height: 40vh; /* Reduced from 100vh to bring content closer */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Cinematic Noise Overlay for the video */
.hero-bg-video::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.12;
    pointer-events: none;
    z-index: 2;
    animation: noise-move 0.2s infinite alternate;
    mix-blend-mode: overlay;
}

@keyframes noise-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(2%, 2%); }
}

/* V0 Minimalist Corner Labels */
.hero-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    padding: 4rem;
    display: grid;
    grid-template-areas:
        "tl tr"
        "bl br";
    align-content: space-between;
}

.hero-labels div {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    opacity: 0.9;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.label-tl { grid-area: tl; text-align: left; }
.label-tr { grid-area: tr; text-align: right; }
.label-bl { grid-area: bl; text-align: left; }
.label-br { grid-area: br; text-align: right; }

.hero-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1); /* Slightly pushed for cinematic look */
}

/* Sections */
section {
    position: relative;
    padding: 10rem 4rem;
    background-color: var(--bg-color);
}

/* Landscape Style Headers */
.landscape-header {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 4rem;
}

.landscape-header span {
    font-weight: 900;
    color: #fff;
}

.marquee-wrapper {
    width: 100vw;
    margin-left: -4rem;
    /* Offset section padding */
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.section-number {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.5;
    padding-top: 0.5rem;
}

.section-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 0.9;
}

.category-description {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin-top: 1.5rem;
    line-height: 1.5;
}

/* Horizontal Scroll */
.horizontal-scroll-container {
    width: 100%;
    overflow: hidden;
}

.horizontal-inner {
    display: flex;
    gap: 2rem;
    padding-right: 4rem;
}

.project-card-h {
    flex: 0 0 35vw;
    /* Reduced from 50vw */
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    /* Slightly more rounded */
    cursor: pointer;
    background-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    /* Horizontal side-reveal structure */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-h::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 4;
    pointer-events: none;
}

.project-card-h:hover::after {
    opacity: 1;
}

.card-visual {
    flex: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-side-meta {
    flex: 0;
    width: 0;
    opacity: 0;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.side-count {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.side-tags {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-visual img,
.card-visual iframe.vimeo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.05);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    pointer-events: none;
    /* Let clicks pass through to the card */
}

/* Slightly oversize the iframe to hide any 1px black borders from Vimeo */
.card-visual iframe.vimeo-bg {
    width: 105%;
    height: 105%;
}

.card-video {
    opacity: 0;
    z-index: 1;
    transition: filter 0.6s ease, opacity 0.6s ease;
}

.card-video.autoplay-active {
    opacity: 1;
}

.card-thumb {
    z-index: 2;
    opacity: 1;
    transition: filter 0.6s ease, opacity 0.6s ease;
}

/* Hover Effects */
.project-card-h:hover .card-thumb,
.project-card-v:hover .card-thumb {
    opacity: 0;
}

.project-card-h:hover .card-video,
.project-card-v:hover .card-video,
.project-card-h:hover .card-video-local,
.project-card-v:hover .card-video-local {
    opacity: 1;
    transform: scale(1.1);
}

.project-card-h:hover .card-visual img,
.project-card-v:hover .card-visual img {
    transform: translate(-50%, -50%) scale(1.1);
}

.card-hover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    z-index: 10;
    transition: opacity 0.4s ease;
    pointer-events: none; /* Deixa o clique passar para o banner/modal */
}

.hover-icon {
    font-size: 1.5rem;
    color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: scale(0.8) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-h:hover .card-hover-overlay,
.project-card-v:hover .card-hover-overlay {
    opacity: 1;
}

.project-card-h:hover .hover-icon,
.project-card-v:hover .hover-icon {
    transform: scale(1) translateY(0);
}

.project-card-h:hover .hover-text,
.project-card-v:hover .hover-text {
    transform: translateY(0);
}

/* Sibling (Peer) Hover Effect for Grids */
/* 1. When hovering the container, turn all cards B&W and dim them */
.horizontal-inner:hover .project-card-h,
.marquee-row:hover .project-card-v {
    filter: grayscale(100%);
    opacity: 0.4;
}

/* 2. The specifically hovered card regains full color, brightness, and pops over peers */
.horizontal-inner .project-card-h:hover,
.marquee-row .project-card-v:hover {
    filter: grayscale(0%);
    opacity: 1;
    z-index: 20;
}

/* Metadata Reveal on Hover */
.card-metadata {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 80%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* View More Button (Bottom Right) hover */
.view-more-btn {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.view-more-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.view-more-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.project-card-h:hover .view-more-btn,
.project-card-v:hover .view-more-btn {
    opacity: 1;
    transform: translateY(0);
}

.project-card-h:hover .card-metadata,
.project-card-v:hover .card-metadata {
    opacity: 1;
}

.meta-stats {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.meta-tags {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card-h .card-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
}

.project-card-h:hover .card-info {
    opacity: 1;
}

.card-title {
    font-size: 1.5rem;
    /* Scaled down */
    font-weight: 900;
}

.card-category {
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* Project Page Specifics */
/* Description Section */
.description-section {
    padding: 20vh 4rem;
    background-color: var(--bg-color);
}

.description-container {
    display: flex;
    flex-direction: column;
    gap: 2vh;
    /* Reduced gap based on user feedback to bring words much closer */
    align-items: flex-start;
}

.desc-line {
    font-size: 8.5vw;
    font-weight: 400;
    /* Removed Bold */
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.05);
    /* Very muted gray */
    background: linear-gradient(to right, #ffffff 50%, rgba(255, 255, 255, 0.05) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.1s ease-out, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
    /* Slight smoothing */
    text-transform: uppercase;
    display: inline-block;
}

.desc-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    margin: 0;
}

.watch-reel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.8rem;
    font-weight: 400;
    color: #ffffff;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.desc-link:hover .watch-reel {
    opacity: 1;
    transform: translateX(0);
    background-color: #ffffff;
    color: #000000;
}

.desc-link:hover .desc-line {
    /* No spatial shift */
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.desc-line.highlight {
    font-family: var(--font-main);
    font-style: italic;
    font-weight: 400;
}

/* Old classes removed to avoid conflicts with new structure */
.project-content {
    display: contents;
    /* Effectively removes the container while keeping children */
}

.showcase-category {
    padding: 10rem 0;
    background-color: #000;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    width: 100vw;
}

.showcase-category .section-header {
    padding: 0 4rem;
}

.showcase-category .section-title {
    color: #fff;
    font-weight: 900;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    /* Stack the rows vertically */
    gap: 1rem;
    /* Space between rows */
    margin-top: 2rem;
    overflow: hidden;
    /* Prevent horizontal scrollbars on parent */
}

.marquee-row {
    display: flex;
    gap: 1rem;
    /* Space between cards horizontally */
    width: max-content;
    padding-left: 2rem;
    padding-right: 2rem;
    will-change: transform; /* Promote to GPU for smoother marquee performance */
}

/* Adjust cards for horizontal drift */
.project-card-v {
    width: clamp(320px, 35vw, 600px);
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background-color: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-v:hover {
    transform: scale(1.03);
    z-index: 10;
}

/* UGC Specific: 9:16 Vertical Aspect Ratio */
.ugc-card {
    width: clamp(200px, 20vw, 350px) !important;
    aspect-ratio: 9/16 !important;
    background-color: #111;
}

.ugc-card .card-visual video {
    object-fit: cover; /* Fill the card by default */
}

.ugc-card .card-hover-overlay .hover-icon {
    width: 45px;
    height: 45px;
    font-size: 1rem;
}

.ugc-card .card-hover-overlay .hover-text {
    font-size: 0.6rem;
}

.card-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Pre-loading safety */
    overflow: hidden;
    z-index: 1;
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.8s ease; /* Slower fade for smoothness */
    z-index: 2;
}

.card-video, .card-video-local {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.card-video {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.card-video-local {
    opacity: 1; /* Instant visible for local */
    display: block;
}

.card-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.project-card-v:hover .card-info {
    opacity: 1;
}

/* Logic for clean video transition (Hiding thumb when video paints) */
.project-card-v.video-active .card-thumb {
    opacity: 0 !important;
}

/* Metadata remains visible or fades relative to JS logic */
.card-side-meta {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 10;
    color: #fff;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Consolidated project styles moved to the end of the file for better control */

.project-bg-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

/* --- Cinema Hero Layout (project.html) --- */
.cinema-layout {
    background: #000;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.cinema-main {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#project-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: #000;
    opacity: 1; /* 100% Full Screen */
    pointer-events: none;
    overflow: hidden;
}

#project-bg-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 proportion */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 proportion */
    transform: translate(-50%, -50%) scale(1.1); /* Extra scale for total bleed */
    pointer-events: none;
}

#project-bg-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.cinema-hero-ui {
    position: absolute;
    inset: 0;
    z-index: 20; /* Above the video */
    pointer-events: none;
}

/* Center Play Button */
.cinema-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    pointer-events: auto; /* Re-enable for the button */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinema-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-circle {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.play-arrow {
    font-size: 2rem;
    color: #fff;
}

.play-text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: #fff;
}

/* Bottom Left Title */
.cinema-bottom-left {
    position: fixed;
    bottom: 5vh;
    left: 4rem;
    z-index: 50;
    pointer-events: none;
}

.cinema-description {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    max-width: 450px;
    margin-top: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Shadow for legibility on full video */
}

.cinema-title {
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    line-height: 0.85;
    letter-spacing: -3px;
    color: #ffffff !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); /* Shadow for legibility */
}

/* Bottom Right Info */
.cinema-bottom-right {
    position: fixed;
    bottom: 5vh;
    right: 4rem;
    z-index: 50;
    pointer-events: none;
    text-align: right;
}

.cinema-meta {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cinema-bottom-left {
        left: 1.5rem;
        bottom: 8vh;
    }
    .cinema-bottom-right {
        right: 1.5rem;
        bottom: 4vh;
        text-align: left;
    }
    .cinema-title {
        font-size: 3rem;
    }
    .play-circle {
        width: 80px;
        height: 80px;
    }
}
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.next-arrow {
    font-size: 8rem;
    font-weight: 300;
    line-height: 1;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.next-project-link:hover .next-label {
    opacity: 1;
}

.next-project-link:hover .next-arrow {
    transform: translateX(20px) scale(1.1);
}

/* Project Gallery (Editorial Grid) */
.project-gallery {
    padding: 10rem 4rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 4rem 2rem;
    background-color: #000;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: #111;
    display: flex;
    flex-direction: column;
}

.card-visual {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0c0c0c; /* High-end dark background */
    border: 1px solid rgba(255, 255, 255, 0.03); /* Subtle structure */
}

.gallery-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-visual img {
    transform: scale(1.08);
}

/* Sizing Utility Classes */
.gi-span-3 { grid-column: span 3; }
.gi-span-4 { grid-column: span 4; }
.gi-span-6 { grid-column: span 6; }
.gi-span-8 { grid-column: span 8; }
.gi-span-12 { grid-column: span 12; }

.aspect-sq { aspect-ratio: 1/1; }
.aspect-vid { aspect-ratio: 16/9; }
.aspect-tall { aspect-ratio: 3/4; }
.aspect-wide { aspect-ratio: 21/9; }

.gi-caption {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gi-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
}

.gi-title {
    font-size: 0.8rem;
    font-weight: 400;
    color: #fff;
    opacity: 0.8;
}

/* Big Aesthetic Numbers */
.gi-number {
    position: absolute;
    top: -3rem;
    left: -1rem;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .gi-span-3, .gi-span-4, .gi-span-6, .gi-span-8, .gi-span-12 { grid-column: span 1; }
}

@media (max-width: 768px) {
    .project-gallery {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
    }
    section {
        padding: 4rem 2rem;
    }

    .project-header {
        padding: 8rem 2rem 3rem;
    }

    .detail-title {
        font-size: 3rem;
    }

    .project-video-showcase {
        padding: 0 0 10rem;
    }

    .video-container {
        border-radius: 0;
    }

    header {
        padding: 0 2rem;
    }
}

/* --- HOLIDAY THEME (Full Screen Video + High Fid Mural) --- */
.holiday-theme {
    --bg-color: #e3e1db; /* Authentic Beige Paper */
    --text-color: #000000;
    background-color: var(--bg-color) !important;
}

/* --- GLOBAL PROJECT PAGE HEADER & VIDEO BANNER --- */
.project-page main {
    padding: 0 !important;
    margin: 0 !important;
}

.project-page header {
    position: absolute !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    background: transparent !important;
    padding: 3rem 4rem;
    z-index: 100;
    border: none;
    display: flex;
    justify-content: flex-start;
}

.project-page .logo {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #fff !important;
    font-weight: 900;
    mix-blend-mode: difference;
}

.project-bg-video {
    position: relative;
    width: 100vw;
    height: 100vh; /* Controlled landing height */
    margin: 0;
    padding: 0;
    z-index: 1;
    overflow: hidden;
    background: #000;
}

.project-bg-video iframe,
.project-bg-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* Respects 16:9 ratio width-first */
    min-height: 100vh;
    min-width: 100vw;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    border: none;
    
    /* Cinematic Effect */
    filter: brightness(0.45) contrast(1.1) saturate(1.1);
}

/* Atmospheric bottom fade only - absolutely no side borders */
.project-bg-video::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #000 0%, transparent 40%);
    z-index: 2;
    pointer-events: none;
}

.project-split-layout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4rem;
    z-index: 10;
    pointer-events: none;
}

/* Page context reset */
.project-page main {
    background: #000 !important;
}

.next-project-section {
    background: #000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.holiday-theme .split-left {
    align-items: flex-start;
    text-align: left;
}

.holiday-theme .project-gallery {
    background-color: transparent;
    position: relative;
    z-index: 5;
    padding: 5rem 4rem 10rem; 
    gap: 0; 
    max-width: 100vw;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
}

.holiday-theme .gi-span-2 { grid-column: span 2; }
.holiday-theme .gi-span-3 { grid-column: span 3; }
.holiday-theme .gi-span-4 { grid-column: span 4; }
.holiday-theme .gi-span-5 { grid-column: span 5; }
.holiday-theme .gi-span-12 { grid-column: span 12; }

.aspect-thin { aspect-ratio: 9/21; }

.holiday-theme .gallery-item {
    filter: grayscale(100%);
    border: none;
    background-color: transparent;
    transition: filter 0.8s ease, transform 0.8s ease;
}

.holiday-theme .gi-text-block {
    border-left: 1px solid rgba(0,0,0,0.1);
    color: rgba(0,0,0,0.6);
    padding: 1rem;
    z-index: 10;
}

/* Precise Overlaps */
.gi-overlap-left { margin-left: -5rem; }
.gi-overlap-right { margin-right: -5rem; }

/* Big Aesthetic Typography */
.holiday-decoration-bg {
    position: absolute;
    top: 5rem;
    left: 2rem;
    font-size: 35vw;
    font-weight: 900;
    color: #000;
    opacity: 0.04;
    line-height: 0.8;
    z-index: 1;
    pointer-events: none;
    letter-spacing: -10px;
}

.holiday-mural-title {
    grid-column: span 12;
    text-align: right;
    padding-top: 5rem;
    padding-bottom: 2rem;
    pointer-events: none;
}

.holiday-mural-title h2 {
    font-size: 15vw;
    font-weight: 900;
    line-height: 0.8;
    color: #000;
    opacity: 0.03;
    text-transform: uppercase;
    letter-spacing: -10px;
}

.holiday-mural-sub {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.6;
    letter-spacing: 2px;
}

.holiday-theme .gi-caption,
.holiday-theme .gi-number {
    display: none !important;
}

/* --- PREMIUM NEXT PROJECT SECTION --- */
.next-project-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 15rem 4rem 10rem; /* Increased top padding for the fade */
    
    /* Smooth gradient transition instead of solid color */
    background: linear-gradient(to bottom, #000 0%, #0d0d0d 100%);
    
    position: relative;
    z-index: 5;
    cursor: pointer;
}

/* Remove the hard border */
.next-project-section::before {
    content: '';
    position: absolute;
    top: -10rem;
    left: 0;
    width: 100%;
    height: 10rem;
    background: linear-gradient(to bottom, transparent, #000);
    pointer-events: none;
}

.next-project-link {
    text-decoration: none;
    display: block;
    color: #fff;
}

.next-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.next-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
}

.next-arrow {
    font-size: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.next-title {
    font-size: 8vw; /* Reduced from 10vw to fit on one line */
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -3px;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap; /* Force single line */
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Gradient Effect */
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0.4) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.8;
}

/* Hover States */
.next-project-link:hover .next-title {
    opacity: 1;
    transform: translateX(1.5rem);
    background-position: right center; /* Gradient Sweep */
}

.next-project-link:hover .next-arrow {
    transform: translateX(1rem);
}

.footer-bottom-info {
    padding: 3rem 4rem;
    background-color: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* Specific overrides for Holiday Theme (if needed) */
.holiday-theme .next-project-section {
    background-color: var(--bg-color);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.holiday-theme .next-project-link {
    color: #000;
}

.holiday-theme .footer-bottom-info {
    background-color: var(--bg-color);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.3);
}

/* About Me Section */
.about-section {
    padding: 10rem 4rem;
    background-color: #000;
    transition: background-color 1s cubic-bezier(0.16, 1, 0.3, 1), color 1s ease;
}

.about-trigger-wrapper {
    display: flex;
    justify-content: flex-start;
    gap: 4rem;
    align-items: center;
    cursor: pointer;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    user-select: none;
}

.about-trigger-wrapper:hover {
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

.about-trigger-wrapper .desc-link {
    pointer-events: none; /* Let the wrapper handle clicks */
}

.info-toggle {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.about-trigger-wrapper:hover .info-toggle {
    background: transparent;
}

.info-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
}

.about-trigger-wrapper:hover .info-text {
    opacity: 1;
    animation: text-pulse 1.5s infinite;
}

@keyframes text-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.toggle-base {
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    position: relative;
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes thumb-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.toggle-thumb {
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: thumb-nudge 1.5s infinite ease-in-out;
}

.about-section.active {
    background-color: #ffffff;
    color: #000000;
}

.about-section.active .desc-line {
    color: #000;
    -webkit-text-fill-color: #000;
}

.about-section.active .info-text {
    color: #000;
    opacity: 0.8;
}

.about-section.active .toggle-base {
    background: #000;
    border-color: #000;
}

.about-section.active .toggle-thumb {
    transform: translateX(30px) !important;
    background: #fff;
    animation: none; /* Força parada da animação de vai-e-vem ao clicar */
}

.about-section.active .about-trigger-wrapper {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.about-section.active .bio-main,
.about-section.active .spec-value,
.about-section.active .inline-link {
    color: #000;
}

.about-section.active .bio-secondary,
.about-section.active .spec-label {
    color: rgba(0, 0, 0, 0.5);
}

.about-section.active .spec-item {
    border-left-color: rgba(0, 0, 0, 0.1);
}

.about-section.active .inline-link::after {
    background: #000;
}

@media (max-width: 1024px) {
    .about-section.active .spec-item {
        border-top-color: rgba(0, 0, 0, 0.1);
    }
}

/* Expandable Content */
.about-expandable {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, padding 0.6s ease;
}

.about-section.active .about-expandable {
    max-height: 2000px; /* Large enough to accommodate content */
    opacity: 1;
    padding-top: 5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 8vw;
}

.bio-main {
    font-size: clamp(1.8rem, 3.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: -2px;
    color: #fff;
}

.bio-secondary {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
}

.about-col.specs {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-top: 1rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
}

.spec-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    opacity: 0.3;
    text-transform: uppercase;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.4;
}

.h-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.inline-link {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 2px;
}

.inline-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.inline-link:hover::after {
    width: 100%;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    .spec-item {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 2rem;
    }
}

/* --- MOBILE RESPONSIVE OVERHAUL (768px and below) --- */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100vw !important;
        position: relative;
    }

    /* Force all containers to stay within viewport */
    .hero-section,
    .description-section,
    .showcase-category,
    .about-section,
    .next-project-section,
    .footer-bottom-info {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 4rem 1.2rem !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* Hero Typography Fixes */
    .hero-title {
        font-size: 2.8rem !important;
        letter-spacing: -1px;
        white-space: normal !important;
        line-height: 1.1;
    }

    /* Description Section Typography */
    .desc-line {
        font-size: 2.2rem !important;
        line-height: 1.1;
        white-space: normal !important;
        word-break: break-word;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important; /* Fix for 'muted/faded' look */
        opacity: 1 !important;
    }

    .description-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; /* Mantém todos os inícios de palavra na mesma linha */
        width: fit-content !important; 
        margin: 0 auto !important;          /* Centraliza o conjunto na tela */
        gap: 1.5rem;
        padding-top: 1rem;
    }

    .desc-link, .description-container > h2.desc-line {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.8rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Harmonized alignment for Menu and Section Titles */
    .description-container, 
    .showcase-category .section-header {
        width: 85% !important;             /* Shared width ensures synced left edges */
        max-width: 450px !important;       /* Consistent boundary */
        margin: 0 auto !important;         /* Centered content block */
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; /* Forces same left baseline */
        padding: 0 !important;
    }

    .showcase-category .section-title {
        font-size: 2.5rem !important;
        line-height: 1.1;
        letter-spacing: -1px;
        color: #fff !important;
        opacity: 1 !important;
        text-align: left !important;
        width: 100% !important;
    }

    .watch-reel {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 1.1rem !important;
        opacity: 1 !important;
        transform: translateY(-4px) !important; /* Lifts the arrow for visual balance with caps */
        background: rgba(255, 255, 255, 0.1);
        display: flex !important;
        flex-shrink: 0;
    }

    /* Banners Fixes */
    .project-card-v {
        width: 95vw !important;
        height: 220px !important;
        aspect-ratio: auto !important;
        margin: 0 auto;
        flex-shrink: 0;
    }

    .marquee-row {
        gap: 1.2rem;
        padding: 0.5rem 0;
    }

    /* Video Modal Locking (Mobile Only) */
    body.no-scroll {
        overflow: hidden !important;
        height: 100vh;
        width: 100%;
        position: fixed;
    }

    /* About Section Fixes */
    .about-trigger-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* Forces same line */
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 0.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .about-trigger-wrapper .desc-link {
        width: fit-content !important; 
        margin: 0 !important;
        display: flex !important;
    }

    .about-trigger-wrapper h2.desc-line {
        font-size: 2.2rem !important;
        margin: 0;
        white-space: nowrap; /* Prevents text wrapping */
    }

    .info-toggle {
        margin: 0 !important;
        transform: scale(0.85);
        flex-shrink: 0; /* Prevents toggle from squeezing */
    }

    .about-section {
        padding-top: 1rem !important; /* Raises the section on mobile */
    }

    /* UGC Page Specific Mobile Optimizations */
    .ugc-page .hero-section {
        height: auto !important;
        padding: 5rem 2rem 2rem 2rem !important;
    }

    .ugc-page .desc-line {
        font-size: 15vw !important; /* Larger fluid size for impact on small screens */
    }

    .ugc-page .desc-link:nth-child(2) .desc-line {
        font-size: 8vw !important;
    }

    .ugc-page .ugc-card {
        width: 70vw !important; /* Much wider for mobile impact */
        height: auto !important;
        aspect-ratio: 9/16 !important;
        margin: 0;
    }

    .ugc-page .marquee-row {
        gap: 1.5rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .ugc-page .showcase-category {
        padding-bottom: 2rem !important;
    }

    .ugc-page .about-section {
        padding: 2rem 2rem 5rem 2rem !important;
    }

    /* Global Horizontal Scroll Fix */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
}