:root {
    --bg-color: #000000;
    --text-primary: #f8f9fa;
    --text-secondary: #a0a5b0;
    --accent: #e5533d;
    --border: rgba(255, 255, 255, 0.1);
    
    /* Light Mode Variables */
    --bg-light: #F1F0EC;
    --text-dark: #111111;
    --text-dark-muted: #555555;
    
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
    margin-top: 80px;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15); 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3); 
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: background 0.4s ease;
}

.navbar.scrolled {
    background: var(--bg-color);
    backdrop-filter: blur(10px);
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    transition: color 0.4s ease;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    transition: color 0.4s ease, opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    z-index: 102;
}

.logo:hover {
    opacity: 0.85;
}

.logo img {
    height: 30px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo .logo-black {
    display: none !important;
}

.logo .logo-white {
    display: block !important;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.4s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* HAMBURGER BUTTON */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 4px;
    z-index: 103;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    color: var(--text-primary);
    transition: color 0.3s ease;
    touch-action: manipulation;
}

.hamburger-line {
    display: block;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.2s ease,
                background-color 0.3s ease;
}

.hamburger-line.top-line {
    width: 22px;
}

.hamburger-line.bottom-line {
    width: 15px;
}

.menu-toggle:hover .hamburger-line.bottom-line {
    width: 22px;
}

.menu-toggle.is-active .hamburger-line.top-line {
    transform: translateY(4px) rotate(45deg);
    width: 22px;
}

.menu-toggle.is-active .hamburger-line.bottom-line {
    transform: translateY(-4px) rotate(-45deg);
    width: 22px;
}

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 101;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-menu-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    min-height: 100dvh;
    padding: 1.5rem 24px 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow-x: hidden;
}

.mobile-menu-overlay.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* MOBILE MENU HEADER & CLOSE BUTTON */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-tag {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: rgba(248, 249, 250, 0.4);
    text-transform: uppercase;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #f8f9fa;
    padding: 0;
    touch-action: manipulation;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
    opacity: 0.7;
    transform: scale(1.1);
}

.mobile-menu-close .close-line {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #f8f9fa;
    border-radius: 1px;
}

.mobile-menu-close .close-line:first-child {
    transform: rotate(45deg);
}

.mobile-menu-close .close-line:last-child {
    transform: rotate(-45deg);
}

.mobile-menu-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: rgba(248, 249, 250, 0.38);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-nav-link {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 6.5vw, 2.4rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.mobile-nav-link span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(248, 249, 250, 0.32);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #ffffff;
    transform: translateX(5px);
}

.mobile-nav-link:hover span,
.mobile-nav-link.active span {
    color: var(--accent, #e5533d);
}

.mobile-menu-footer {
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.mobile-cta {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-info-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: rgba(248, 249, 250, 0.38);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.mobile-contact-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-contact-link {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(248, 249, 250, 0.75);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    padding: 0.4rem 0;
    border: none;
    background: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.mobile-contact-link:hover,
.mobile-contact-link:active {
    color: #ffffff;
    opacity: 1;
}

/* Body scroll lock */
body.menu-locked {
    overflow: hidden !important;
    touch-action: none;
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    background: var(--text-primary);
    color: var(--bg-color);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: transparent;
    color: var(--text-primary);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    color: var(--text-primary);
    border: none;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.btn-secondary:hover {
    color: var(--text-primary);
}

.btn-secondary:hover::after {
    transform: scaleX(1);
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

@property --btn-light-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes btn-light-rotate {
    0% { --btn-light-angle: 0deg; opacity: 1; }
    85% { --btn-light-angle: 360deg; opacity: 1; }
    86% { --btn-light-angle: 360deg; opacity: 0; }
    99% { --btn-light-angle: 0deg; opacity: 0; }
    100% { --btn-light-angle: 0deg; opacity: 1; }
}

.hero .btn-primary {
    position: relative;
    z-index: 1;
}

.hero .btn-primary::after {
    content: "";
    position: absolute;
    inset: -1.5px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--btn-light-angle),
        transparent 0%,
        transparent 75%,
        rgba(255, 255, 255, 0.1) 85%,
        rgba(255, 255, 255, 0.4) 95%,
        rgba(255, 255, 255, 0.8) 100%
    );
    z-index: -1;
    pointer-events: none;
    
    padding: 1.5px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    
    animation: btn-light-rotate 7s linear infinite;
    animation-delay: 4.5s; /* Starts after entrance animation finishes */
    animation-fill-mode: backwards;
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    padding: 0 4rem;
    position: relative;
    align-items: center;
}

.hero-content {
    flex: 1;
    padding-right: 4rem;
    padding-top: 5rem;
    max-width: 65%;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 2.25rem;
}

.text-dim {
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .hero-description {
        max-width: 360px;
    }
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* IMAGE */
.hero-visual {
    flex: 0 0 35%;
    height: 100vh;
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: flex-end;
}

@media (min-width: 992px) {
    .hero-visual {
        right: 40px;
    }
}

.image-reveal-wrapper {
    width: 100%;
    height: 85vh;
    position: relative;
    opacity: 0;
    transform: translateX(15px);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: grayscale(20%) contrast(1.1);
}

/* TEXT REVEAL STRUCT */
.split-text {
    display: block;
}

.char-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.char-inner {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

.text-reveal-item {
    opacity: 0;
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 4rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0.4;
    animation: scroll-bounce 2.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* MANIFESTO */
.manifesto {
    min-height: 160vh; /* Scrollable height */
    position: relative;
    padding: 0;
}

.manifesto-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh; /* Viewport height for the sticky state */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    text-align: left;
}

.manifesto-text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    width: 90%;
    max-width: none;
    margin: 0 auto;
}

.manifesto-text span {
    display: inline;
    opacity: 0; /* Fully invisible initially */
}

@media (min-width: 992px) {
    .manifesto-text {
        width: 70%;
        max-width: 900px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .scroll-reveal-color span {
        opacity: 1 !important;
        color: var(--text-primary) !important;
    }
    /* Projects: reduced motion fallback */
    .editorial-project-item,
    .project-image,
    .project-expanded-content,
    .project-arrow-icon {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   PROJECTS SECTION (HORIZONTAL EDITORIAL CAROUSEL)
   ========================================================================== */
.projects-section {
    --bg-light: #F1F0EC;
    --text-dark: #111111;
    --text-dark-muted: #555555;

    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    padding: clamp(5rem, 9vh, 7.5rem) clamp(1.5rem, 5vw, 5rem) clamp(5.5rem, 10vh, 8.5rem);
    position: relative;
    overflow: hidden;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.projects-header-left {
    max-width: 800px;
}

.projects-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-dark-muted);
    margin-bottom: 1.25rem;
}

.projects-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.projects-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    padding-bottom: 0.25rem;
}

.projects-count {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-dark-muted);
    white-space: nowrap;
}

.projects-nav-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.projects-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(17, 17, 17, 0.22);
    background: transparent;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                transform 0.2s ease;
}

.projects-nav-btn:hover:not(:disabled) {
    background-color: var(--text-dark);
    color: var(--bg-light);
    border-color: var(--text-dark);
    transform: translateY(-1px);
}

.projects-nav-btn:active:not(:disabled) {
    transform: translateY(0);
}

.projects-nav-btn:focus-visible {
    outline: 2px solid var(--text-dark);
    outline-offset: 3px;
}

.projects-nav-btn:disabled {
    opacity: 0.22;
    cursor: not-allowed;
    pointer-events: none;
}

.projects-divider {
    width: 100%;
    height: 1px;
    background: rgba(17, 17, 17, 0.12);
    margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

.projects-empty-state {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed rgba(17, 17, 17, 0.2);
    border-radius: 4px;
    margin: 40px auto;
    max-width: 600px;
}

.projects-empty-state p {
    color: var(--text-dark-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Projects Horizontal Carousel */
.projects-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-right: calc(-1 * clamp(1.5rem, 5vw, 5rem));
    padding-right: clamp(1.5rem, 5vw, 5rem);
}

.projects-carousel-track {
    display: flex;
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0 1.5rem;
    cursor: grab;
    user-select: none;
}

.projects-carousel-track::-webkit-scrollbar {
    display: none;
}

.projects-carousel-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

.editorial-project-item {
    flex: 0 0 clamp(420px, 44vw, 620px);
    display: flex;
    flex-direction: column;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    transition: opacity 0.3s ease;
}

/* Project Meta Top */
.project-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    padding: 0 2px;
}

.project-number,
.project-year {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-dark-muted);
}

/* Project Image Container */
.project-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 4px;
    background: #111111;
    outline: none;
}

.project-image-container:focus-visible {
    outline: 2px solid var(--text-dark);
    outline-offset: 4px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    user-select: none;
}

.editorial-project-item:hover .project-image,
.project-image-container:focus-visible .project-image {
    transform: scale(1.02);
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.editorial-project-item:hover .project-image-overlay {
    opacity: 1;
}

/* Project Meta Bottom */
.project-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 1.25rem;
    padding: 0 2px;
    gap: 1rem;
}

.project-titles {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.project-name {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.2vw, 1.95rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.project-category {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-dark-muted);
    letter-spacing: 0.02em;
}

.project-direct-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 2px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    margin-top: 0.2rem;
}

.project-direct-link:hover {
    opacity: 0.7;
    transform: translateX(2px);
}


.projects-footer-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    margin-bottom: 1rem;
}

.projects-all-link {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding-bottom: 4px;
}

.projects-all-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-dark);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.projects-all-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.projects-all-link .link-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.projects-all-link:hover .link-arrow {
    transform: translateX(5px);
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .editorial-project-item {
        flex: 0 0 clamp(340px, 58vw, 480px);
    }
}

/* NAVBAR LIGHT MODE */
.navbar.light-mode {
    background: var(--bg-light, #F1F0EC) !important;
    backdrop-filter: none !important;
}

.navbar.light-mode .logo,
.navbar.light-mode .nav-brand {
    color: #111111;
}

.navbar.light-mode .logo .logo-white {
    display: none !important;
}

.navbar.light-mode .logo .logo-black {
    display: block !important;
}

.navbar.light-mode .nav-links a {
    color: #555555;
}

.navbar.light-mode .nav-links a:hover {
    color: #111111;
}

.navbar.light-mode .menu-toggle {
    color: #111111;
}

/* NAVBAR WHEN MOBILE MENU IS OPEN */
.navbar.menu-is-open {
    background: transparent !important;
    backdrop-filter: none !important;
}

.navbar.menu-is-open .logo .logo-white {
    display: block !important;
}

.navbar.menu-is-open .logo .logo-black {
    display: none !important;
}

.navbar.menu-is-open .menu-toggle {
    color: #f8f9fa !important;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .hero-content { max-width: 70%; }
    .hero-visual { flex: 0 0 40%; }
}

@media (max-width: 768px) {
    .navbar { 
        padding: 1.25rem 24px; 
        justify-content: space-between; 
        align-items: center;
    }
    .logo img { 
        height: 24px; 
    }
    .nav-links { 
        display: none; 
    }
    .menu-toggle { 
        display: flex; 
    }
    
    .hero { 
        position: relative;
        padding: 0 24px; 
        flex-direction: column; 
        justify-content: flex-start;
        height: auto;
        min-height: 100svh;
        overflow: hidden;
    }
    .hero-content {
        position: relative;
        max-width: 100%;
        padding-right: 0;
        padding-top: 18svh;
        margin-bottom: 0;
        z-index: 2;
    }
    .hero-title { 
        font-size: 40px; 
        line-height: 1;
        margin-bottom: 26px;
        max-width: 320px;
    }
    .hero-description {
        font-size: 15px;
        margin-bottom: 28px;
        max-width: 290px;
    }
    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .hero .btn-primary {
        font-size: 14px;
        padding: 0 22px;
        height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .hero .btn-secondary {
        font-size: 14px;
        padding: 0;
    }
    .hero-visual {
        position: absolute;
        top: auto;
        right: -100px;
        bottom: -5px;
        width: clamp(480px, 135vw, 650px);
        height: auto;
        display: block;
        z-index: 1;
    }
    .image-reveal-wrapper {
        width: 100%;
        height: auto;
        display: block;
    }
    .hero-image {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }
    .scroll-indicator {
        display: none;
    }

    /* Projects mobile - Horizontal Carousel Flow */
    .projects-section {
        padding: 4rem 1.25rem 4.5rem;
    }

    .projects-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .projects-heading {
        font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    }

    .projects-header-right {
        gap: 0.75rem;
    }

    .projects-count {
        display: none;
    }

    .projects-nav-btn {
        width: 36px;
        height: 36px;
    }

    .projects-divider {
        margin-bottom: 2rem;
    }

    .projects-carousel-wrapper {
        margin-right: -1.25rem;
        padding-right: 1.25rem;
    }

    .projects-carousel-track {
        gap: 1.25rem;
        padding-bottom: 1rem;
    }

    .editorial-project-item {
        flex: 0 0 84vw;
        max-width: 380px;
    }

    .editorial-project-item .project-image-container {
        aspect-ratio: 16 / 10 !important;
        border-radius: 4px;
    }

    .project-image-overlay {
        display: none;
    }

    .project-name {
        font-size: 1.35rem;
    }
}

/* --- SERVICES SECTION ("O QUE FAZEMOS") --- */
.services-section {
    background: var(--bg-light); /* Same as projects to create continuity */
    padding: 6rem 4rem 8rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12vh;
}

.services-label, .services-count {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-dark-muted);
}

.services-accordion {
    display: flex;
    flex-direction: column;
}

.service-divider {
    border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}

.service-row {
    display: flex;
    flex-direction: column;
}

.service-row-btn {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: start;
    padding: 3rem 0;
    cursor: pointer;
    gap: 2rem;
    position: relative;
    /* transition: opacity 0.3s ease; */
}

.service-row-btn:focus-visible {
    outline: 2px solid var(--text-dark);
    outline-offset: -2px;
    border-radius: 2px;
}

.service-number {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark-muted);
    margin-top: 1rem;
}

.service-name-wrapper {
    display: flex;
    flex-direction: column;
}

.service-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 5.5rem);
    line-height: 1;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    margin: 0;
    will-change: transform;
}

.service-desc-container {
    height: 0;
    overflow: hidden;
}

.service-desc {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-dark-muted);
    max-width: 500px;
    margin: 0;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
    opacity: 0;
    transform: translateY(8px);
    will-change: transform, opacity;
}

.service-category {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-dark-muted);
    text-transform: uppercase;
    opacity: 0.45;
    margin-top: 1rem;
    will-change: transform, opacity;
}

/* Services Responsive */
@media (max-width: 992px) {
    .service-row-btn {
        grid-template-columns: 30px 1fr;
    }
    .service-category {
        display: none;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 5rem 2rem 4rem;
    }
    .services-header {
        margin-bottom: 4rem;
    }
    .service-row-btn {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 2rem 0;
    }
    .service-number {
        margin-top: 0;
    }
    .service-category {
        display: none; /* Already hidden, just making sure */
    }
}

/* --- PROCESS SECTION ("COMO TRABALHAMOS") --- */
.process-section {
    background: var(--bg-color); /* Return to dark background (#000000) */
    color: var(--text-primary);
    padding: 8rem 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.process-intro {
    max-width: 900px;
    margin-bottom: 6rem; /* Reduced from 8rem to balance composition */
}

.process-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    will-change: transform, opacity;
}

.process-statement {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem); /* Reduced 10-15% */
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    will-change: transform, opacity;
}

.process-content-wrapper {
    position: relative;
    width: 100%;
    margin-top: auto; /* Push down to balance vertical rhythm if needed */
}

.process-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 5rem);
    width: 100%;
    margin-bottom: 4rem; /* Increased space between steps and progress line */
}

.process-step {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Increased from 1.5rem */
}

.process-number {
    font-family: var(--font-body);
    font-size: 1.5rem; /* Increased from 1.25rem */
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.process-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* Increased from 1rem */
}

.process-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2vw, 2rem); /* Increased 20-30% */
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 1.2;
}

.process-desc {
    font-family: var(--font-body);
    font-size: 1.125rem; /* Increased from 1rem */
    line-height: 1.6;
    color: var(--text-primary);
}

.process-line-track {
    position: relative;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.10);
}

.process-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.65);
    transform: scaleX(0);
    transform-origin: left center;
}

/* Process Responsive */
@media (max-width: 992px) {
    .process-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 4rem;
    }
}

@media (max-width: 768px) {
    .process-section {
        padding: 5rem 2rem;
    }
    .process-intro {
        margin-bottom: 4rem;
    }
    
    .process-content-wrapper {
        position: relative;
        padding-left: 2rem; /* Make room for the vertical line */
    }

    .process-list {
        display: flex;
        flex-direction: column;
        gap: 4rem;
        margin-bottom: 0;
    }

    .process-step {
        gap: 1rem;
    }

    .process-line-track {
        position: absolute;
        left: 0;
        top: 0;
        width: 1px;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.10);
    }

    .process-line-fill {
        width: 100%;
        height: 100%;
        transform: scaleY(0);
        transform-origin: top center;
    }
}

/* --- ABOUT SECTION ("SOBRE A MSA CODE") --- */
.about-section {
    background: var(--bg-color);
    color: var(--text-primary);
    padding: 8rem 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-container {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(3rem, 5vw, 6rem);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.about-visual {
    width: 100%;
}

.about-image-wrapper {
    width: 100%;
    overflow: hidden;
    will-change: clip-path;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-header {
    margin-bottom: 3rem;
    will-change: transform, opacity;
}

.about-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-statement {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
    will-change: transform, opacity;
}

.about-body p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.about-identity {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    will-change: transform, opacity;
}

.about-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.about-role {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* About Responsive */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 5rem 2rem;
    }
    
    .about-container {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    
    .about-content {
        display: contents;
    }
    
    .about-header {
        order: 1;
        margin-bottom: 0; /* Reset margin since gap handles it */
    }
    
    .about-visual {
        order: 2;
    }
    
    .about-body {
        order: 3;
        margin-bottom: 0;
    }
    
    .about-identity {
        order: 4;
    }
}

/* --- CONTACT SECTION ("VAMOS CONVERSAR") --- */
.contact-section {
    background: var(--bg-color);
    color: var(--text-primary);
    padding: 8rem 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(3rem, 5vw, 6rem);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    will-change: transform, opacity;
}

.contact-statement {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 4rem;
    will-change: transform, opacity;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    will-change: transform, opacity;
}

.contact-block-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.contact-link,
.contact-text {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.7;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.form-field input,
.form-field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.75rem 0;
    width: 100%;
    border-radius: 0;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-secondary);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-bottom-color: var(--text-primary);
}

/* Radio Group (Service) */
.contact-service-fieldset {
    border: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-service-fieldset legend {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-service-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: flex-start;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.radio-label {
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.radio-label span {
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.radio-label:hover {
    color: rgba(255, 255, 255, 0.8);
}

.radio-label input:checked + span {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.radio-label input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Submit Button */
.form-submit-wrapper {
    margin-top: 1rem;
}

.contact-submit {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 100%;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.submit-text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.submit-arrow {
    font-family: var(--font-body);
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-submit:hover {
    border-bottom-color: var(--text-primary);
}

.contact-submit:hover .submit-arrow {
    transform: translate(4px, -4px);
}

.contact-submit:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.form-group-anim {
    will-change: transform, opacity;
}

/* Contact Responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-service-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 5rem 2rem;
    }

    .contact-service-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --- FOOTER SECTION --- */
.footer {
    background: var(--bg-color);
    color: var(--text-primary);
    padding: clamp(5rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    margin-bottom: 5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.footer-brand-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.footer-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.footer-links li {
    display: flex;
}

.footer-links a,
.footer-external-link {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    position: relative;
    padding-bottom: 2px;
}

.footer-links a::after,
.footer-external-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-external-link:hover,
.footer-external-link:focus-visible {
    color: var(--text-primary);
    outline: none;
}

.footer-links a:hover::after,
.footer-links a:focus-visible::after,
.footer-external-link:hover::after,
.footer-external-link:focus-visible::after {
    transform: scaleX(1);
}

.footer-arrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.footer-external-link:hover .footer-arrow,
.footer-external-link:focus-visible .footer-arrow {
    transform: translate(3px, -3px);
}

/* Bottom Row */
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy,
.footer-location {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-back-to-top {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-back-to-top:hover,
.footer-back-to-top:focus-visible {
    color: var(--text-primary);
    outline: none;
}

.footer-arrow-up {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-back-to-top:hover .footer-arrow-up,
.footer-back-to-top:focus-visible .footer-arrow-up {
    transform: translateY(-3px);
}

.footer-group-anim {
    will-change: transform, opacity;
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* =========================================
   PAGE: PROJETOS
========================================= */
.page-projetos {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-projetos .navbar {
    background: transparent;
}
.page-projetos .navbar.scrolled {
    background: rgba(241, 240, 236, 0.9);
    backdrop-filter: blur(10px);
}
.page-projetos .navbar .logo,
.page-projetos .navbar .nav-links a {
    color: var(--text-dark);
}
.page-projetos .navbar .logo .logo-white {
    display: none !important;
}
.page-projetos .navbar .logo .logo-black {
    display: block !important;
}
.page-projetos .navbar .menu-toggle {
    color: var(--text-dark);
}
.page-projetos .navbar .nav-links a:hover {
    opacity: 0.7;
}

/* Hero Projetos */
.projetos-hero {
    padding: 9rem 4rem 2rem; /* Reduced top and bottom spacing */
    max-width: 1200px;
}

.projetos-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-dark-muted);
    margin-bottom: 2rem;
}

.projetos-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 3.4rem); /* Reduced by ~20% */
    line-height: 1.15; /* Slightly relaxed line height for readability */
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 2rem; /* Brought tags closer */
    max-width: 850px;
}

.projetos-tags {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark-muted);
}

/* Filtros */
.projetos-filters-section {
    padding: 0 4rem 2rem;
}

.projetos-info {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-dark-muted);
    margin-bottom: 2rem; /* Reduced from 3rem */
    opacity: 0.6;
}

.projetos-filters-wrapper {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.projetos-filters-wrapper::-webkit-scrollbar {
    display: none;
}

.projetos-filters {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    border-bottom: 1px solid rgba(17,17,17,0.1);
    padding-bottom: 1rem;
    min-width: max-content;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark-muted);
    cursor: pointer;
    padding: 0 0 0.25rem 0;
    position: relative;
    transition: color 0.3s ease;
}
.filter-btn:hover {
    color: var(--text-dark);
}
.filter-btn.active {
    color: var(--text-dark);
}
.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem; /* match border-bottom spacing */
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--text-dark);
}

/* Grid Editorial */
.projetos-grid-section {
    padding: 0.5rem 4rem clamp(3rem, 6vh, 5rem);
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(20px, 2vw, 32px);
    row-gap: clamp(32px, 4vw, 52px);
}

.projeto-item {
    display: flex;
    flex-direction: column;
    position: relative;
    will-change: transform, opacity;
}

.projeto-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0;
    background: #111111;
    margin-bottom: 1rem;
}

.projeto-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    user-select: none;
}

.projeto-item:hover .projeto-img {
    transform: scale(1.02);
}

.projeto-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.projeto-meta-top {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.2rem;
}

.projeto-number {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-dark-muted);
}

.projeto-category-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dark-muted);
    opacity: 0.8;
}

.projeto-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.projeto-name {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin: 0;
    transition: opacity 0.3s ease;
}

.projeto-item:hover .projeto-name {
    opacity: 0.75;
}

.projeto-direct-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 1px;
    flex-shrink: 0;
    margin-top: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.projeto-direct-link:hover {
    opacity: 0.65;
    transform: translateX(2px);
}

/* Override footer colors for light page */
.page-projetos .footer {
    background: var(--bg-light);
    color: var(--text-dark);
    border-top: 1px solid rgba(17,17,17,0.1);
}
.page-projetos .footer-brand-name,
.page-projetos .footer-label {
    color: var(--text-dark-muted);
}
.page-projetos .footer-brand-desc,
.page-projetos .footer-links a,
.page-projetos .footer-copy,
.page-projetos .footer-location,
.page-projetos .footer-back-to-top {
    color: var(--text-dark);
}
.page-projetos .footer-links a:hover,
.page-projetos .footer-back-to-top:hover {
    color: var(--text-dark-muted);
}
.page-projetos .footer-arrow,
.page-projetos .footer-arrow-up {
    color: var(--text-dark);
}

/* Responsividade */
@media (max-width: 1024px) {
    .projetos-grid-section {
        padding: 0.5rem 3rem clamp(2.5rem, 5vh, 4rem);
    }
    .projetos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 36px;
    }
}

@media (max-width: 768px) {
    .projetos-hero {
        padding: 6.5rem 24px 1.5rem;
    }
    .projetos-filters-section,
    .projetos-grid-section {
        padding-left: 24px;
        padding-right: 24px;
    }
    .projetos-grid {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }
}

/* ==========================================================================
   PROJETOS FINAL CTA
   ========================================================================== */
.projetos-final-cta {
    background-color: var(--bg-light, #F1F0EC);
    padding: clamp(4rem, 8vh, 6rem) clamp(1.5rem, 5vw, 5rem);
    border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.projetos-final-cta-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .projetos-final-cta-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 4rem;
    }
}

.cta-eyebrow-col {
    flex: 0 0 25%;
}

.cta-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-dark-muted);
    text-transform: uppercase;
}

.cta-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
}

.cta-heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.8vw, 3.8rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    max-width: 800px;
}

.cta-action-link {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 4px;
    position: relative;
    transition: opacity 0.3s ease;
}

.cta-action-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-dark);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-action-link:hover::after {
    transform: scaleX(0);
    transform-origin: left;
}

.cta-action-link .arrow {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-action-link:hover .arrow {
    transform: translate(3px, -3px);
}
