/* =========================================================================
   EDGAR DAVEY ANIMATION - 1:1 REPLICA CSS
   ========================================================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for sticky header */
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

:root {
    /* Exact colors from Framer */
    --c-black: #0e0e0e;
    --c-white: #ffffff;
    --c-light-grey: #f4f4f4;
    --c-mid-grey: rgba(14, 14, 14, 0.6);
    --c-light-border: rgba(14, 14, 14, 0.1);
    --c-dark-border: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-primary: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--c-light-grey);
    color: var(--c-black);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Themes */
.theme-dark {
    background-color: var(--c-black);
    color: var(--c-white);
}

.theme-light {
    background-color: var(--c-light-grey);
    color: var(--c-black);
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
h1 {
    font-size: clamp(60px, 12vw, 180px);
    /* Massive hero text */
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

h2 {
    font-weight: 700;
    letter-spacing: -0.04em;
}

h2.statement-title {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
}

.bracket-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: monospace;
    /* Fallback for precision */
    margin-bottom: 24px;
    display: block;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--c-black);
    color: var(--c-white);
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-fast);
}

.btn-primary-invert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--c-white);
    color: var(--c-black);
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-fast);
}

.btn-pill-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-white);
    color: var(--c-black);
    border-radius: 999px;
    padding: 24px 48px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
    transition: transform var(--transition-fast);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn-dot {
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    display: inline-block;
}

.btn-pill-large .btn-dot {
    width: 10px;
    height: 10px;
    margin-right: 12px;
}

.btn-primary:hover,
.btn-primary-invert:hover,
.btn-pill-large:hover {
    transform: scale(1.03);
}

/* =========================================================================
   1. GLOBAL HEADER
   ========================================================================= */
.global-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background: transparent;
    z-index: 1000;
    color: var(--c-black);
    position: fixed;
    top: 0;
    left: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.global-header.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    padding: 16px 40px;
}

.global-header.nav-hidden {
    transform: translateY(-100%);
}

.global-header.sticky {
    position: fixed;
}

.logo-area,
.header-cta {
    display: flex;
    flex: 1;
}

.header-cta {
    justify-content: flex-end;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo-img-header {
    height: 48px;
    /* Tweak height as necessary to frame the solid portion */
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 32px;
    flex: 2;
    justify-content: center;
}

.main-nav a {
    font-weight: 500;
    font-size: 14px;
    color: var(--c-black);
    letter-spacing: 0.02em;
    transition: opacity var(--transition-fast);
}

.main-nav a:hover {
    opacity: 0.6;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-end;
}

/* Hamburger Button */
.hamburger-btn {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--c-black);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.hamburger-btn.open .hamburger-line.top {
    transform: translateY(4px) rotate(45deg);
}

.hamburger-btn.open .hamburger-line.bottom {
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 120px 40px 60px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, visibility 0.6s;
    pointer-events: none; /* Disable clicks when closed */
}

/* When the menu is open */
.mobile-menu-overlay.is-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav-links .mobile-link {
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 800;
    color: var(--c-black);
    letter-spacing: -0.04em;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
    transform: translateY(40px);
    opacity: 0;
}

.mobile-menu-overlay.is-active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

/* Stagger delays for links */
.mobile-menu-overlay.is-active .mobile-link:nth-child(1) { transition: transform 0.5s 0.1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s 0.1s ease; }
.mobile-menu-overlay.is-active .mobile-link:nth-child(2) { transition: transform 0.5s 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s 0.15s ease; }
.mobile-menu-overlay.is-active .mobile-link:nth-child(3) { transition: transform 0.5s 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s 0.2s ease; }
.mobile-menu-overlay.is-active .mobile-link:nth-child(4) { transition: transform 0.5s 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s 0.25s ease; }
.mobile-menu-overlay.is-active .mobile-link:nth-child(5) { transition: transform 0.5s 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s 0.3s ease; }
.mobile-menu-overlay.is-active .mobile-link:nth-child(6) { transition: transform 0.5s 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s 0.35s ease; }
.mobile-menu-overlay.is-active .mobile-link:nth-child(7) { transition: transform 0.5s 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s 0.4s ease; }

.mobile-link.highlight-link {
    color: var(--c-dark-gray); 
}

.mobile-menu-socials {
    display: flex;
    gap: 24px;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-overlay.is-active .mobile-menu-socials {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s 0.5s ease;
}

.mobile-menu-socials a {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-black);
    text-decoration: underline;
}

.btn-primary-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--c-black);
    color: var(--c-white);
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-fast);
}

.btn-primary-dark .btn-dot {
    width: 6px;
    height: 6px;
    background-color: var(--c-white);
    border-radius: 50%;
    display: inline-block;
}

.btn-primary-dark:hover {
    transform: scale(1.03);
}

/* =========================================================================
   2. HERO SECTION
   ========================================================================= */
.hero-group {
    padding-top: 100px;
    /* Space for absolute header */
    padding-bottom: 0px;
    /* Removed bottom padding to pull marquee closer */
}

.hero-card {
    position: relative;
    width: 100%;
    /* Wider width to span naturally */
    aspect-ratio: 16 / 9;
    /* Taller rectangular proportion */
    min-height: 65vh;
    /* Massive cinematic base */
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-card-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 14, 0.4);
    /* Gentle dark overlay */
    z-index: 1;
}

.hero-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

/* TEXT ANIMATION */
.hero-headline {
    color: var(--c-white);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 80%;
    /* Respetando margen con los bordes al centro */
    text-align: center;
    margin: 0 auto;
    text-shadow: 0 4px 60px rgba(255, 255, 255, 0.4);

    /* Animation */
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpHeadline 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes slideUpHeadline {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.btn-pill-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-black);
    color: var(--c-white);
    border-radius: 999px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
    transition: transform var(--transition-fast);
}

.btn-pill-dark:hover {
    transform: translateY(0) scale(1.05);
}

/* Hero Bottom Info (Stats + Desc) */
.hero-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align to bottom like screenshot */
    gap: 40px;
}

.stats-bar-inline {
    display: flex;
    gap: 60px;
    flex: 1;
}

.stat-box {
    text-align: left;
    /* Screenshot shows left-aligned */
}

.stat-box h2 {
    font-size: 48px;
    /* Slightly smaller than before */
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
    line-height: 1;
}

.hero-desc {
    flex: 1;
    max-width: 500px;
}

.hero-desc p {
    font-size: 18px;
    /* Slightly smaller, tight leading */
    color: var(--c-mid-grey);
    line-height: 1.5;
}

.hero-desc strong {
    color: var(--c-black);
    font-weight: 700;
}

/* =========================================================================
   3. WORK SECTION
   ========================================================================= */
.work-section {
    padding-bottom: 120px;
}

.stat-box p {
    font-weight: 600;
    color: var(--c-mid-grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 14px;
}

/* Logo Marquee */
.logo-marquee {
    width: 100%;
    overflow: hidden;
    padding: 45px 0;
    /* Increased by 15px up and down exactly */
    border-top: 1px solid var(--c-light-border);
    border-bottom: 1px solid var(--c-light-border);
    background: var(--c-white);
    margin-bottom: 50px;
    /* Increased by 20px */
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 80px;
    padding-right: 80px;
    /* Essential: gap at the end to match set repetition */
}

.marquee-img {
    height: 32px;
    /* Uniform height for brand logos */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.marquee-img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-33.3333%);
    }

    /* Exact jump after 1 full set */
}

/* -------------------------------------------------------------------------
   NEW WORK CAROUSEL SECTION
   ------------------------------------------------------------------------- */
.carousel-section {
    background-color: var(--c-light-grey);
    /* Or parent theme overrides this naturally */
    padding: 0 0 60px 0;
    /* Zero top padding connects elegantly to the marquee */
    overflow: hidden;
    width: 100vw;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 450px;
}

.carousel-track {
    display: flex;
    gap: 40px;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: max-content;
    will-change: transform;
}

.project-card.slide {
    width: 800px;
    /* Widescreen rectangular format */
    height: 450px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 1;
    /* User requested NO white fading */
    transform: scale(1);
    /* EXACT same size for all cards */
}

.project-card.slide.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    /* Softer shadow for light theme */
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    /* Invisible until hover */
    z-index: 1;
    transition: background 0.4s ease;
}

.project-card.slide.active .featured-overlay {
    background: rgba(0, 0, 0, 0.6);
    /* Dramatically darken to frame text */
}

.featured-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    color: var(--c-white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.project-card.slide.active .featured-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.featured-content h2 {
    font-size: 40px;
    /* Accommodate smaller card size */
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Arrow buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    opacity: 0;
    /* Hidden by default */
    pointer-events: none;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: calc(50vw - 370px);
    /* Overlap 800px card edge slightly */
}

.carousel-btn.next {
    right: calc(50vw - 370px);
}

.carousel-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .project-card.slide {
        width: 85vw;
        height: 420px;
    }

    .carousel-container {
        height: 420px;
    }

    .carousel-title {
        font-size: 40px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .featured-content h2 {
        font-size: 28px;
    }
}

/* =========================================================================
   4. REEL SECTION
   ========================================================================= */
.reel-section {
    padding: 80px 0;
}

.reel-header {
    text-align: center;
    margin-bottom: 80px;
}

.video-player {
    aspect-ratio: 16/9;
    background: #111;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    overflow: hidden;
    /* Ensures video corners stay rounded */
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    outline: none;
}

.play-button-large {
    width: 100px;
    height: 100px;
    background: var(--c-white);
    color: var(--c-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding-left: 6px;
    /* Visual center adjustment */
    transition: transform var(--transition-fast);
}

.video-player:hover .play-button-large {
    transform: scale(1.1);
}

.reel-footer {
    display: flex;
    justify-content: center;
}

/* =========================================================================
   5. SERVICES SECTION
   ========================================================================= */
.services-section {
    padding: 160px 0;
}

.section-header-row {
    max-width: 900px;
    margin-bottom: 120px;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Tighter gap for horizontal rows */
}

.service-card {
    background: var(--c-white);
    padding: 40px 60px;
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 140px;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateX(10px);
    border-color: var(--c-light-border);
}

.service-card p {
    font-size: 16px;
    color: var(--c-mid-grey);
    max-width: 50%;
    /* Description on the left */
    line-height: 1.6;
    margin: 0;
}

.service-card h3 {
    font-size: 32px;
    font-weight: 800;
    text-align: right;
    margin: 0;
    max-width: 45%;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

@media (max-width: 992px) {
    .service-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
    }

    .service-card p {
        max-width: 100%;
        margin-bottom: 24px;
    }

    .service-card h3 {
        max-width: 100%;
        text-align: left;
        font-size: 28px;
    }
}

/* =========================================================================
   6. WORKFLOW SECTION
   ========================================================================= */
.workflow-section {
    padding: 160px 0;
    background: var(--c-white);
    /* Slightly lighter background to differentiate */
}

.workflow-header {
    margin-bottom: 100px;
    max-width: 800px;
}

.workflow-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--c-light-border);
}

.workflow-item {
    display: flex;
    padding: 60px 0;
    border-bottom: 1px solid var(--c-light-border);
}

.step-num {
    font-size: 80px;
    font-weight: 900;
    color: var(--c-light-border);
    width: 200px;
    line-height: 1;
}

.step-content {
    max-width: 600px;
}

.step-content h3 {
    font-size: 32px;
    margin-bottom: 16px;
}

.step-content p {
    font-size: 18px;
    color: var(--c-mid-grey);
}

/* =========================================================================
   7. ABOUT SECTION (REDESIGNED)
   ========================================================================= */
.about-section {
    padding: 120px 0;
    margin: 40px auto;
    width: 95%;
    border-radius: 40px;
    overflow: hidden;
}

.about-header {
    margin-bottom: 80px;
}

.about-headline {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 800;
}

.about-headline .dimmed {
    color: rgba(255, 255, 255, 0.4);
}

.about-headline .highlight {
    color: var(--c-white);
}

.about-marquee {
    margin: 40px 0 80px;
    padding: 30px 0;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-marquee .marquee-img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.about-marquee .marquee-img:hover {
    opacity: 1;
}

.about-portrait-container {
    width: 100%;
    margin-bottom: 80px;
}

.portrait-img {
    width: 100%;
    height: 600px;
    border-radius: 24px;
    object-fit: cover;
    object-position: 40% 15%;
    display: block;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card {
    background: #151515;
    padding: 20px 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 240px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.info-card:hover {
    background: #1c1c1c;
    border-color: rgba(255, 255, 255, 0.1);
}

.info-label {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 28px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-card h3 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--c-white);
    letter-spacing: -0.02em;
    text-align: center;
}

@media (max-width: 768px) {
    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .about-headline {
        font-size: 36px;
    }

    .info-card {
        padding: 40px 30px;
        min-height: auto;
    }

    .info-card h3 {
        font-size: 24px;
    }
}

/* =========================================================================
   8. TESTIMONIALS SECTION
   ========================================================================= */
.testimonials-section {
    padding: 160px 0 80px; /* Reducido el espacio inferior (el tercer valor) de 160px a 80px */
    overflow: hidden;
    background: #f4f4f4; /* Subtle light gray background to pop the white cards */
}

.testimonials-header {
    text-align: left;
    margin-bottom: 40px;
    padding: 0 40px;
}

.testimonials-header .bracket-title {
    margin-bottom: 24px;
}

.testimonials-header .statement-title {
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--c-black);
}

.testimonials-header .statement-title .dimmed {
    color: var(--c-dark-gray);
}

.testimonials-scroller-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    gap: 32px;
    width: max-content;
    animation: scrollMarquee 45s linear infinite;
    padding-left: 40px; /* Initial offset so it doesn't start flush to the edge if we want to pause */
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 16px)); } /* Scrolls half of the total width + half gap */
}

.testimonial-card {
    background: var(--c-white);
    padding: 48px 40px;
    border-radius: 20px;
    width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background-color: #ddd; /* Fallback */
}

.testimonial-info strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--c-black);
}

.testimonial-info span {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-dark-gray);
}

.testimonial-card .quote {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--c-black);
    margin: 0;
}

/* =========================================================================
   9. FAQ SECTION
   ========================================================================= */
.faq-section {
    padding: 80px 0 240px; /* Reducido el espacio superior de 160px a 80px */
    /* Extra bottom padding before footer */
}

.faq-split {
    display: flex;
    gap: 80px;
}

.faq-left {
    flex: 1;
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.faq-right {
    flex: 1.5;
}

.faq-accordion {
    border-top: 1px solid var(--c-light-border);
}

.faq-item {
    padding: 40px 0;
    border-bottom: 1px solid var(--c-light-border);
    cursor: pointer;
}

.faq-item h3 {
    font-size: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3 span {
    font-size: 32px;
    font-weight: 300;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.faq-item.active h3 span {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-top: 16px;
}

.faq-answer p {
    color: var(--c-mid-grey);
    line-height: 1.6;
    font-size: 18px;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    transition-delay: 0.15s;
}

.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   10. FOOTER
   ========================================================================= */
.footer-wrapper {
    padding: 0 40px 40px;
    /* Surrounding light grey space */
    background: var(--c-light-grey);
}

.site-footer {
    background-color: var(--c-black);
    border-radius: 20px;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav-links {
    display: flex;
    gap: 32px;
}

.footer-nav-links a {
    color: #8da4a8;
    /* Match the subtle grey-blue tone from screenshot */
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-nav-links a:hover {
    color: var(--c-white);
}

.footer-center {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    /* Pushes top and bottom apart */
}

.footer-slogan {
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.footer-slogan .dimmed {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.footer-slogan .highlight {
    color: var(--c-white);
    font-weight: 700;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-logo-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo-area .logo {
    display: flex;
    align-items: center;
}

.logo-img-footer {
    height: 64px;
    /* Slightly larger for footer */
    width: auto;
    object-fit: contain;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: 500;
}

.footer-contact-info {
    display: flex;
    gap: 80px;
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 500;
}

.contact-value {
    color: var(--c-white);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: opacity var(--transition-fast);
}

.contact-value:hover {
    opacity: 0.7;
}

/* =========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================= */
@media (max-width: 1024px) {
    .stats-bar {
        flex-direction: column;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-split,
    .faq-split {
        flex-direction: column;
    }

    .faq-left {
        position: static;
        margin-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    /* Header Adjustments */
    .global-header {
        padding: 16px 20px;
    }
    
    .logo-img-header {
        height: 36px;
    }

    .main-nav, .header-cta {
        display: none; /* Hide primary nav and desk CTA on mobile */
    }

    .hamburger-btn {
        display: flex; /* Show Hamburger */
    }
    
    .container {
        padding: 0 20px;
    }

    /* Typography Overrides */
    h1 {
        font-size: min(15vw, 60px);
    }

    h2.statement-title {
        font-size: clamp(32px, 8vw, 40px);
    }

    /* Hero Adjustments */
    .hero-bottom-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    
    .stats-bar-inline {
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }

    .hero-card-content {
        padding: 40px 20px;
    }

    .hero-headline {
        font-size: min(12vw, 42px);
        margin-bottom: 24px;
    }
    
    .hero-subheadline {
        font-size: 16px;
    }
    
    .stats-bar {
        padding: 40px 20px;
    }
    
    .stat-item h3 {
        font-size: 48px;
    }

    /* Transition Logo */
    #transition-overlay .transition-logo {
        max-width: 80vw;
    }

    /* Logo Marquee mobile spacing */
    .logo-marquee {
        margin-bottom: 10px;
    }

    /* Carousel Adjustments */
    .carousel-section {
        padding-top: 20px;
    }

    .carousel-container {
        height: 350px;
    }

    .project-card.slide {
        width: 85vw; /* Fit in screen with slight peek */
        height: 350px;
    }

    .featured-content h2 {
        font-size: 28px;
    }

    /* Testimonials Adjustments */
    .testimonials-section {
        padding: 80px 0 60px;
    }
    
    .testimonials-header {
        margin-bottom: 30px;
        padding: 0 20px;
    }
    
    .testimonials-header .statement-title {
        font-size: clamp(28px, 6vw, 36px);
    }
    
    .testimonials-track {
        padding-left: 20px;
        animation-duration: 30s; /* Adjust speed for smaller screens */
    }

    .testimonial-card {
        width: 85vw; /* Make cards responsive to screen width */
        min-width: 300px;
        padding: 32px 24px;
        gap: 24px;
    }
    
    .testimonial-card .quote {
        font-size: 16px;
    }
    
    /* FAQ Adjustments */
    .faq-section {
        padding: 40px 0 80px;
    }
    
    .faq-item h3 {
        font-size: 18px;
    }
    
    .faq-item h3 span {
        font-size: 24px;
    }

    /* Footer Adjustments */
    .footer-wrapper {
        padding: 0 16px 16px;
    }
    
    .site-footer {
        padding: 40px 24px;
        min-height: auto;
        gap: 60px;
    }

    .footer-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    
    .footer-nav-links {
        flex-wrap: wrap;
        gap: 16px 24px;
    }

    .footer-center {
        text-align: left;
        align-items: flex-start;
    }

    .footer-slogan {
        font-size: clamp(32px, 8vw, 48px);
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .footer-contact-info {
        flex-direction: column;
        gap: 32px;
    }
    
    .contact-value {
        font-size: 18px;
    }
}

/* =========================================================================
   12. PROJECT MODAL (GALLERY)
   ========================================================================= */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.modal-content-wrapper {
    position: relative;
    width: 90vw;
    max-width: 1400px;
    height: 90vh;
    background: #0f0f0f;
    border-radius: 24px;
    overflow-y: auto; /* Allow scroll on mobile */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 1024px) {
    .modal-layout {
        flex-direction: row;
    }
}

.modal-video-container {
    flex: none;
    height: 40vh;
    min-height: 250px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

@media (min-width: 1024px) {
    .modal-video-container {
        flex: 1;
        height: auto;
        padding: 20px;
    }
}

.modal-video-container video,
.modal-video-container iframe {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    /* CRUCIAL: Never crop the video */
    background: #000;
}

.modal-info-panel {
    width: 100%;
    background: #111;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 1024px) {
    .modal-info-panel {
        width: 400px;
        min-width: 400px;
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }
}

.modal-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.modal-brand {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a1a1a1;
    margin-bottom: 24px;
}

.modal-description {
    font-size: 16px;
    color: #d0d0d0;
    line-height: 1.6;
    overflow-y: auto;
    /* Scrollable if text is too long */
    padding-right: 10px;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}




/* =========================================================================
   15. TYPOGRAPHY ANIMATIONS
   ========================================================================= */

/* Invisible mask wrapper generated by JS */
.text-mask {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    /* Ensuring trailing spaces are maintained */
    white-space: pre-wrap; 
    /* Prevent italic letters from being cut off on the right side */
    padding-right: 0.15em;
    margin-right: -0.15em;
}

/* Individual letter/word elements */
.text-mask > .char,
.text-mask > .word {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Let the letters be slightly faster than words to achieve the 'quick letters' requirement */
.animate-letters-fast .text-mask > .char {
    transition-duration: 0.5s;
    transition-timing-function: cubic-bezier(0.85, 0, 0.15, 1);
}

.animate-words-soft .text-mask > .word {
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* When the intersection observer adds .is-visible to the parent wrapper */
.animate-letters-fast.is-visible .text-mask > .char,
.animate-words-soft.is-visible .text-mask > .word {
    transform: translateY(0);
    opacity: 1;
}

/* =========================================================================
   16. WORK / CATEGORY ENTRY PAGE
   ========================================================================= */

.work-page-main {
    padding: 160px 40px 100px;
    max-width: 1440px;
    margin: 0 auto;
}

.work-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    gap: 40px;
}

.work-hero-title {
    font-size: clamp(80px, 10vw, 180px);
    font-weight: 900;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--c-black);
}

.work-hero-desc {
    max-width: 450px;
    font-size: 16px;
    color: var(--c-dark-gray);
    line-height: 1.5;
    margin: 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.work-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}

.work-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background-color: #f0f0f0;
}

.work-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: brightness(1);
    display: block;
}

.work-card:hover .work-card-img {
    transform: scale(1.05);
    filter: brightness(0.65);
}

.work-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.work-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-black);
    margin: 0;
    letter-spacing: -0.02em;
}

.work-card-pill {
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 20px;
    background-color: #f1f1f1;
    color: var(--c-dark-gray);
    font-weight: 500;
}

/* Responsive */
@media screen and (max-width: 900px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .work-hero {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px;
    }
    
    .work-card[style] {
        grid-column: 1 / -1 !important;
        max-width: 100% !important;
    }
}