/* =========================================================================
   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 {
    display: flex;
    flex-direction: column;
    gap: 14px;
    counter-reset: faq-item;
}

.faq-item {
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: var(--c-white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.035);
    counter-increment: faq-item;
    transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.faq-item:hover {
    transform: translateX(6px);
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.07);
}

.faq-item.active {
    border-color: var(--c-black);
    background: var(--c-black);
    color: var(--c-white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.faq-item h3 {
    display: block;
    margin: 0;
    font-size: 24px;
}

.faq-question {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 28px 30px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.faq-question::before {
    content: counter(faq-item, decimal-leading-zero);
    color: rgba(0, 0, 0, 0.38);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    transition: color 0.35s ease;
}

.faq-question > span:first-child {
    min-width: 0;
    color: var(--c-black);
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    transform: none;
    transition: color 0.35s ease;
}

.faq-question .faq-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.035);
    color: var(--c-black);
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    transform: rotate(0);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
}

.faq-item.active .faq-question::before {
    color: rgba(255, 255, 255, 0.48);
}

.faq-item.active .faq-question > span:first-child {
    color: var(--c-white);
    transform: none;
}

.faq-item.active .faq-question .faq-icon {
    border-color: var(--c-white);
    background: var(--c-white);
    color: var(--c-black);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 30px 0 77px;
    transition: max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, padding 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
    max-height: 320px;
    opacity: 1;
    padding: 0 30px 30px 77px;
}

.faq-answer p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    font-size: 17px;
    opacity: 0;
    transform: translateY(12px);
    transition: transform 0.4s ease 0.08s, opacity 0.3s ease 0.08s;
}

.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;
    }
}

/* =========================================================================
   17. PREMIUM THREE-CARD WORK GRID
   ========================================================================= */

.work-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.work-card-premium {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 520px;
    background-color: var(--c-black);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.work-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.work-card-bg-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.work-card-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) grayscale(0.1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.work-card-premium:hover .work-card-bg-img {
    transform: scale(1.08);
    filter: brightness(0.45) grayscale(0);
}

.work-card-content-overlay {
    position: relative;
    z-index: 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

.work-card-header {
    min-width: 0;
    margin-bottom: 12px;
}

.work-card-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-bottom: 8px;
}

.work-card-heading-title {
    max-width: 100%;
    font-size: clamp(21px, 2vw, 28px);
    font-weight: 800;
    color: var(--c-white);
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.work-card-body-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0 0 24px 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin 0.4s ease;
}

.work-card-premium:hover .work-card-body-text {
    max-height: 80px;
    opacity: 1;
    margin-bottom: 24px;
}

.work-card-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    width: fit-content;
}

.work-card-action-btn span {
    position: relative;
}

.work-card-action-btn span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: var(--c-white);
    transform: scaleX(0.4);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card-premium:hover .work-card-action-btn span::after {
    transform: scaleX(1);
}

.action-btn-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card-premium:hover .action-btn-arrow {
    transform: translateX(6px);
}

/* =========================================================================
   18. CASOS DE ESTUDIO (HOME)
   ========================================================================= */

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.case-card-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.case-card-premium:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.05);
}

.case-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #1a1a1a;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card-premium:hover .case-image {
    transform: scale(1.05);
}

.case-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--c-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-details {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-details h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-white);
    margin: 0;
}

.case-desc {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.case-result {
    font-size: 13px;
    font-weight: 600;
    color: #a8ffb2; /* Subtle neon green for positive metrics */
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =========================================================================
   19. ADICIONES DE CONTACTO
   ========================================================================= */

.whatsapp-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* =========================================================================
   RESPONSIVITY FOR NEW COMPONENTS
   ========================================================================= */

@media screen and (max-width: 1024px) {
    .work-grid-three, .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .work-grid-three, .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .work-card-premium {
        height: 460px;
    }
    
    .contact-cta-section {
        margin: 0 20px 60px !important;
        padding: 60px 0 !important;
    }
    
    .contact-cta-layout {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 40px !important;
    }
    
    .contact-cta-actions {
        width: 100%;
    }
}

/* =========================================================================
   20. ACCESSIBILITY, LOCALIZATION AND 2026 PORTFOLIO REFINEMENTS
   ========================================================================= */

html.i18n-pending body {
    visibility: hidden;
}

body.menu-open {
    overflow: hidden;
}

:focus-visible {
    outline: 3px solid #2f6fed;
    outline-offset: 4px;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--c-black);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.language-switcher button {
    min-width: 40px;
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    opacity: 0.48;
}

.language-switcher button:hover,
.language-switcher button.is-active {
    background: rgba(14, 14, 14, 0.08);
    opacity: 1;
}

.mobile-menu-overlay {
    padding: 0;
    flex-direction: row;
    justify-content: flex-end;
    align-items: stretch;
    background: rgba(14, 14, 14, 0.3);
}

.mobile-menu-panel {
    position: relative;
    width: min(92vw, 660px);
    height: 100%;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    padding: 104px 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.14);
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(14, 14, 14, 0.12);
    border-radius: 999px;
    background: var(--c-white);
    color: var(--c-black);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 34px;
    line-height: 1;
}

.mobile-nav-links {
    gap: 22px;
}

.mobile-nav-links .mobile-link {
    font-size: clamp(30px, 7vw, 52px);
}

.mobile-menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.mobile-menu-socials {
    transform: none;
}

.hero-card > picture {
    position: absolute;
    inset: 0;
}

.hero-card-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 38%;
    display: block;
}

.hero-card--portrait {
    min-height: 720px;
    justify-content: flex-start;
}

.hero-card--portrait .hero-card-overlay {
    background: linear-gradient(90deg, rgba(7, 9, 12, 0.82) 0%, rgba(7, 9, 12, 0.58) 48%, rgba(7, 9, 12, 0.16) 100%);
}

.hero-card-content--left {
    width: min(780px, 72%);
    align-items: flex-start;
    text-align: left;
    padding: 80px;
    gap: 24px;
}

.hero-card-content--left .hero-headline {
    max-width: 100%;
    margin: 0;
    text-align: left;
    font-size: clamp(46px, 6.2vw, 92px);
    line-height: 0.98;
    text-shadow: 0 8px 44px rgba(0, 0, 0, 0.36);
}

.hero-role {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-support {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(17px, 1.7vw, 22px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.btn-secondary-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: var(--c-white);
    font-size: 14px;
    font-weight: 700;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-secondary-light:hover {
    background: var(--c-white);
    color: var(--c-black);
}

.stat-box--wide {
    max-width: 360px;
}

.stat-box--wide h2 {
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.08;
}

.brand-proof {
    padding-top: 54px;
    padding-bottom: 0;
}

.brand-proof .logo-marquee {
    margin-bottom: 0;
}

.section-block {
    padding: 140px 0;
}

.section-block--dark {
    background: #0b0b0b;
}

.section-header-row {
    max-width: none;
}

.section-header-row--with-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    align-items: end;
    gap: 80px;
}

.section-header-row--with-copy > div {
    max-width: 900px;
}

.section-intro-copy,
.reel-description {
    color: var(--c-mid-grey);
    font-size: 18px;
    line-height: 1.65;
}

.section-center-action {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.work-card-premium {
    height: auto;
    aspect-ratio: 16 / 10;
}

.work-card-body-text {
    max-height: none;
    opacity: 1;
    overflow: visible;
    margin-bottom: 24px;
}

.reel-header {
    max-width: 880px;
    margin: 0 auto 64px;
}

.reel-description {
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.6);
}

.bracket-title--muted {
    color: rgba(255, 255, 255, 0.48);
}

.cases-section .statement-title {
    color: var(--c-white);
}

.dynamic-status {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 48px 0;
}

.case-card-premium {
    display: block;
}

.case-image-wrapper--missing {
    background: linear-gradient(135deg, #171717, #262626);
}

.case-result {
    color: rgba(255, 255, 255, 0.58);
}

.services-section .service-card {
    gap: 48px;
}

.services-section .service-card h3 {
    max-width: 43%;
    text-align: left;
}

.services-section .service-card p {
    max-width: 50%;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(48px, 8vw, 120px);
}

.about-layout .about-portrait-container {
    margin: 0;
}

.about-layout .portrait-img {
    height: auto;
    aspect-ratio: 4 / 5;
    object-position: 50% 30%;
}

.about-copy {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.about-copy .about-headline {
    margin-bottom: 12px;
}

.about-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 17px;
    line-height: 1.7;
}

.about-copy .about-lead {
    color: var(--c-white);
    font-size: 22px;
    font-weight: 700;
}

.faq-question .faq-icon {
    flex: 0 0 auto;
}

.contact-cta-section {
    padding: 100px 0;
    margin: 0 40px 100px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    background: var(--c-black);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.contact-cta-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 72px;
}

.contact-cta-text {
    flex: 1.2;
}

.contact-cta-heading {
    max-width: 900px;
    margin-bottom: 24px;
    color: var(--c-white);
    font-size: clamp(38px, 5.6vw, 72px);
    line-height: 1.02;
}

.contact-cta-text p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 18px;
    line-height: 1.65;
}

.contact-cta-actions {
    flex: 0.55;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.btn-large,
.whatsapp-btn-outline {
    justify-content: center;
    padding: 18px 28px;
    font-size: 16px;
}

.whatsapp-btn-outline {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--c-white);
    font-weight: 650;
    text-align: center;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

@media (max-width: 1100px) {
    .main-nav {
        gap: 18px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .header-cta {
        display: none;
    }

    .section-header-row--with-copy {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-layout .about-portrait-container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .language-switcher--header {
        margin-left: auto;
    }

    .hero-group {
        padding-top: 84px;
    }

    .hero-card--portrait {
        aspect-ratio: 4 / 5;
        min-height: 620px;
        align-items: flex-end;
    }

    .hero-card--portrait .hero-card-overlay {
        background: linear-gradient(0deg, rgba(7, 9, 12, 0.92) 0%, rgba(7, 9, 12, 0.54) 56%, rgba(7, 9, 12, 0.12) 100%);
    }

    .hero-card-bg-image {
        object-position: 50% 28%;
    }

    .hero-card-content--left {
        width: 100%;
        padding: 32px 24px;
        gap: 18px;
    }

    .hero-card-content--left .hero-headline {
        font-size: clamp(38px, 11vw, 58px);
    }

    .hero-role {
        font-size: 11px;
    }

    .hero-support {
        font-size: 16px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions a {
        flex: 1 1 180px;
    }

    .stat-box--wide {
        max-width: none;
    }

    .section-block,
    .services-section {
        padding: 88px 0;
    }

    .section-header-row,
    .section-header-row--with-copy {
        margin-bottom: 56px;
    }

    .work-card-premium {
        aspect-ratio: 4 / 3;
    }

    .services-section .service-card {
        gap: 20px;
        padding: 32px 24px;
    }

    .services-section .service-card h3,
    .services-section .service-card p {
        max-width: 100%;
    }

    .services-section .service-card p {
        margin: 0;
    }

    .about-section {
        width: calc(100% - 24px);
        margin: 12px auto;
        padding: 80px 0;
        border-radius: 24px;
    }

    .about-copy p {
        font-size: 16px;
    }

    .faq-question > span:first-child {
        font-size: 18px;
    }

    .faq-item:hover {
        transform: none;
    }

    .faq-question {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
        padding: 22px 20px;
    }

    .faq-question .faq-icon {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .faq-answer {
        padding-right: 20px;
        padding-left: 48px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 24px 48px;
    }

    .faq-answer p {
        font-size: 16px;
    }

    .contact-cta-section {
        margin: 0 12px 48px !important;
        padding: 72px 0 !important;
    }

    .contact-cta-layout {
        gap: 44px !important;
    }

    .contact-cta-heading {
        font-size: clamp(34px, 10vw, 52px);
    }

    .mobile-menu-panel {
        padding: 92px 24px 32px;
    }

    .mobile-menu-close {
        top: 18px;
        right: 18px;
    }

    .mobile-menu-footer {
        align-items: flex-end;
    }
}

@media (max-width: 430px) {
    .hero-card--portrait {
        min-height: 590px;
    }

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

    .hero-card-content--left .hero-headline {
        font-size: clamp(36px, 10.8vw, 48px);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions a {
        width: 100%;
        flex-basis: auto;
    }

    .work-card-premium {
        aspect-ratio: 4 / 3;
    }

    .work-card-content-overlay {
        padding: 28px 24px;
    }

    .work-card-heading-title {
        font-size: 24px;
    }

    .mobile-menu-panel {
        width: 94vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .marquee-track {
        animation: none;
        flex-wrap: wrap;
        width: auto;
    }

    .marquee-group[aria-hidden="true"] {
        display: none;
    }
}

/* =========================================================================
   21. WORK, GALLERY, CONTACT AND 404 PAGES
   ========================================================================= */

body {
    overflow-x: clip;
}

html {
    overflow-x: hidden;
}

.work-hero--stacked {
    max-width: 960px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 72px;
}

.work-hero--stacked .bracket-title {
    margin-bottom: 0;
}

.work-hero--stacked .work-hero-title {
    font-size: clamp(64px, 10vw, 148px);
}

.work-hero--stacked .work-hero-desc {
    max-width: 800px;
    font-size: clamp(17px, 1.7vw, 22px);
    line-height: 1.65;
}

.work-grid-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card-bg-placeholder {
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.09), transparent 34%),
        linear-gradient(135deg, #111, #242424);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.work-card-premium--pending .work-card-content-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.28));
}

.gallery-header {
    padding: 160px 40px 64px;
    text-align: center;
}

.gallery-title {
    margin-bottom: 20px;
    font-size: clamp(54px, 9vw, 120px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.back-link {
    display: inline-block;
    margin-bottom: 40px;
    color: var(--c-mid-grey);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--c-black);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: transparent;
    color: rgba(0, 0, 0, 0.62);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: rgba(0, 0, 0, 0.34);
    color: var(--c-black);
}

.filter-btn.active {
    border-color: var(--c-black);
    background: var(--c-black);
    color: var(--c-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: 28px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px 120px;
}

.gallery-status {
    grid-column: 1 / -1;
    padding: 96px 0;
    color: var(--c-mid-grey);
    text-align: center;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #1a1a1a;
    color: var(--c-white);
    cursor: pointer;
    font: inherit;
    opacity: 0;
    text-align: left;
    animation: galleryFadeIn 0.6s ease forwards;
    animation-delay: var(--gallery-delay, 0s);
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-7px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item--missing {
    background: linear-gradient(135deg, #111, #2a2a2a);
}

.item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.86), transparent 72%);
    opacity: 0.94;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.gallery-item-number {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 10px;
}

.gallery-item-title {
    color: var(--c-white);
    font-size: 21px;
    font-weight: 750;
}

@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-modal[hidden] {
    display: none;
}

.modal-backdrop {
    border: 0;
}

.modal-project-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-video-container--missing {
    background: linear-gradient(135deg, #050505, #1b1b1b);
}

.contact-page-main {
    max-width: 1440px;
    min-height: 82vh;
    margin: 0 auto;
    padding: 180px 40px 120px;
}

.contact-page-hero {
    max-width: 1200px;
    margin-bottom: 100px;
}

.contact-hero-title {
    max-width: 1180px;
    margin: 0 0 36px;
    color: var(--c-black);
    font-size: clamp(62px, 10vw, 150px);
    line-height: 0.93;
    letter-spacing: -0.055em;
}

.contact-page-description {
    max-width: 760px;
    color: var(--c-mid-grey);
    font-size: clamp(19px, 2.2vw, 28px);
    line-height: 1.55;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
}

.contact-start-card {
    padding: 40px;
    border: 1px solid rgba(14, 14, 14, 0.08);
    border-radius: 20px;
    background: var(--c-white);
}

.contact-start-card h2 {
    margin-bottom: 18px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
}

.contact-start-card p {
    margin-bottom: 28px;
    color: var(--c-mid-grey);
    font-size: 17px;
    line-height: 1.65;
}

.contact-start-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.contact-whatsapp-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 10px 18px;
    border: 1px solid rgba(14, 14, 14, 0.14);
    border-radius: 999px;
    color: var(--c-black);
    font-size: 14px;
    font-weight: 700;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 36px;
}

.contact-item-group {
    min-width: 0;
}

.contact-item-label {
    color: var(--c-mid-grey);
    font-size: 13px;
    font-weight: 600;
}

.contact-item-value {
    overflow-wrap: anywhere;
    color: var(--c-black);
    font-size: clamp(17px, 1.8vw, 22px);
    font-weight: 700;
}

.not-found-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 32px 40px 64px;
}

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

.language-switcher--dark {
    color: var(--c-white);
}

.language-switcher--dark button:hover,
.language-switcher--dark button.is-active {
    background: rgba(255, 255, 255, 0.12);
}

.not-found-content {
    width: min(1050px, 100%);
    margin: auto 0;
    padding: 80px 0;
}

.not-found-content h1 {
    margin-bottom: 32px;
    font-size: clamp(62px, 10vw, 150px);
    line-height: 0.92;
}

.not-found-content p {
    max-width: 680px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 20px;
    line-height: 1.65;
}

@media (max-width: 1024px) {
    .work-grid-six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .work-page-main,
    .contact-page-main {
        padding: 132px 20px 80px;
    }

    .work-hero--stacked .work-hero-title {
        font-size: clamp(58px, 18vw, 92px);
    }

    .work-grid-six {
        grid-template-columns: 1fr;
    }

    .gallery-header {
        padding: 132px 20px 48px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 80px;
    }

    .gallery-filters {
        align-items: stretch;
    }

    .filter-btn {
        flex: 1 1 120px;
    }

    .contact-page-hero {
        margin-bottom: 64px;
    }

    .contact-hero-title {
        font-size: clamp(52px, 15vw, 86px);
    }

    .contact-details-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-start-card {
        padding: 32px 24px;
    }

    .not-found-page {
        padding: 24px 20px 48px;
    }

    .not-found-content h1 {
        font-size: clamp(54px, 16vw, 88px);
    }
}

/* =========================================================================
   V5 — POSITIONING, PORTFOLIO AND CONVERSION SYSTEM
   ========================================================================= */

:root {
    --font-display: 'Inter', sans-serif;
    --c-accent: #36d6ff;
    --c-accent-dark: #006c86;
    --c-panel: #17191d;
    --shadow-soft: 0 24px 70px rgba(7, 12, 18, 0.1);
}

[hidden] {
    display: none !important;
}

body {
    overflow-x: clip;
}

h1,
h2,
h3,
.statement-title,
.work-hero-title,
.gallery-title,
.contact-hero-title,
.contact-cta-heading,
.about-headline {
    font-family: var(--font-display);
}

h1,
h2,
.service-card h3,
.case-details h3,
.comparison-copy h3 {
    font-weight: 800;
    text-transform: uppercase;
}

a,
button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 4px;
}

.bracket-title {
    color: var(--c-accent-dark);
}

.bracket-title--muted {
    color: var(--c-accent);
}

.main-nav a[aria-current='page'] {
    color: var(--c-accent-dark);
}

.language-switcher button {
    opacity: 0.68;
}

.btn-primary-dark,
.btn-primary,
.btn-primary-invert,
.btn-secondary-light,
.whatsapp-btn-outline {
    min-height: 46px;
}

/* Hero: short promise, visible face and a dedicated desktop composition. */
.hero-group {
    padding-top: 96px;
}

.hero-card--portrait {
    aspect-ratio: auto;
    min-height: clamp(690px, 76vh, 820px);
    align-items: flex-end;
    justify-content: flex-start;
    margin-bottom: 52px;
    background: #05090d;
    box-shadow: 0 35px 90px rgba(7, 12, 18, 0.18);
}

.hero-card--portrait > picture {
    inset: 0 0 0 auto;
    width: 66%;
}

.hero-card-bg-image {
    object-position: 50% 35%;
    transform: none;
}

.hero-card--portrait .hero-card-overlay {
    background:
        linear-gradient(0deg, rgba(5, 9, 13, 0.82) 0%, rgba(5, 9, 13, 0.22) 46%, rgba(5, 9, 13, 0.04) 76%),
        linear-gradient(90deg, #05090d 0%, rgba(5, 9, 13, 0.97) 25%, rgba(5, 9, 13, 0.58) 58%, rgba(5, 9, 13, 0.08) 100%);
}

.hero-card-content--left {
    width: min(760px, 68%);
    padding: clamp(44px, 6vw, 84px);
    gap: 18px;
}

.hero-card-content--left .hero-headline {
    max-width: 720px;
    font-size: clamp(52px, 7vw, 104px);
    font-weight: 650;
    line-height: 0.92;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.hero-role {
    color: var(--c-accent);
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.12em;
}

.hero-support {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.5;
}

.hero-bottom-info {
    padding-bottom: 32px;
}

.stat-box--wide h2 {
    font-weight: 600;
}

.brand-proof {
    padding: 38px 0 20px;
}

.brand-proof .marquee-img {
    width: 148px;
    height: 92px;
    object-fit: contain;
}

.brand-proof .marquee-group {
    gap: 58px;
}

/* Demo Reel */
.reel-section {
    padding: 132px 0;
}

.reel-header {
    max-width: 900px;
    margin: 0 0 58px;
    text-align: left;
}

.reel-header .statement-title {
    max-width: 800px;
    color: var(--c-white);
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
}

.reel-player {
    position: relative;
    margin-bottom: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #050505;
    box-shadow: 0 38px 100px rgba(0, 0, 0, 0.54);
}

.reel-video {
    display: block;
    object-fit: cover;
}

.reel-poster-ui {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.5));
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.reel-player.is-playing .reel-poster-ui {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.reel-play-button {
    width: clamp(76px, 9vw, 112px);
    height: clamp(76px, 9vw, 112px);
    display: grid;
    place-items: center;
    padding: 0 0 0 5px;
    border: 0;
    border-radius: 50%;
    background: var(--c-white);
    color: var(--c-black);
    cursor: pointer;
    font-size: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.reel-play-button:hover {
    transform: scale(1.07);
    background: var(--c-accent);
}

.reel-poster-meta {
    position: absolute;
    right: 28px;
    bottom: 24px;
    display: flex;
    gap: 16px;
    color: var(--c-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

/* Curated home work */
.cases-section {
    padding: 132px 0;
}

.section-intro-copy--dark {
    color: rgba(255, 255, 255, 0.62);
}

.cases-grid {
    gap: 24px;
}

.case-card-premium {
    min-width: 0;
    color: var(--c-white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.case-details {
    padding: 28px;
}

.case-details h3 {
    margin-bottom: 10px;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.case-meta {
    margin-bottom: 13px;
    color: var(--c-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.case-desc {
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.64);
    line-height: 1.6;
}

.case-link {
    display: inline-block;
    color: var(--c-white);
    font-size: 13px;
    font-weight: 700;
}

/* Before / after, shown only when complete Sanity pairs exist. */
.breakdowns-section {
    background: #e9edf0;
}

.breakdowns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
    gap: 28px;
}

.comparison-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--c-white);
    box-shadow: var(--shadow-soft);
}

.comparison-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.comparison-image,
.comparison-before-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.comparison-image {
    object-fit: cover;
}

.comparison-before-layer {
    clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.comparison-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--split);
    width: 2px;
    background: var(--c-white);
    transform: translateX(-1px);
    pointer-events: none;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.25);
}

.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 2px solid var(--c-white);
    border-radius: 50%;
    background: rgba(7, 10, 13, 0.8);
    color: var(--c-white);
    font-size: 20px;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(10px);
}

.comparison-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.comparison-label {
    position: absolute;
    top: 18px;
    z-index: 2;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(7, 10, 13, 0.65);
    color: var(--c-white);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.comparison-label--before {
    left: 18px;
}

.comparison-label--after {
    right: 18px;
}

.comparison-copy {
    padding: 28px;
}

.comparison-copy h3 {
    margin-bottom: 10px;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.05;
}

.comparison-copy p {
    margin-bottom: 18px;
    color: var(--c-mid-grey);
    line-height: 1.6;
}

.comparison-project-link {
    color: var(--c-accent-dark);
    font-size: 13px;
    font-weight: 800;
}

/* Three quick routes remain visible without dominating the home page. */
.specialties-section {
    padding: 110px 0 24px;
}

.specialties-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: 64px;
    margin-bottom: 46px;
}

.specialties-heading p {
    color: var(--c-mid-grey);
    font-size: 17px;
    line-height: 1.65;
}

.specialty-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(14, 14, 14, 0.1);
    border-radius: 18px;
    background: var(--c-white);
}

.specialty-link {
    min-width: 0;
    min-height: 150px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 28px;
    border-right: 1px solid rgba(14, 14, 14, 0.1);
    font-family: var(--font-display);
    font-size: clamp(19px, 2vw, 29px);
    font-weight: 650;
    line-height: 1.05;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.specialty-link:last-child {
    border-right: 0;
}

.specialty-link:hover,
.specialty-link--vfx {
    background: var(--c-black);
    color: var(--c-white);
}

.specialty-link--vfx:hover {
    background: #17191d;
}

.specialty-number {
    color: var(--c-accent-dark);
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.specialty-link--vfx .specialty-number,
.specialty-link:hover .specialty-number {
    color: var(--c-accent);
}

/* Service hierarchy */
.services-section {
    padding: 132px 0 152px;
}

.services-grid--hierarchy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.services-grid--hierarchy .service-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(30px, 4vw, 52px);
    border-radius: 20px;
}

.services-grid--hierarchy .service-card:hover {
    transform: translateY(-6px);
}

.services-grid--hierarchy .service-card > div {
    width: 100%;
}

.services-grid--hierarchy .service-card h3,
.services-grid--hierarchy .service-card p {
    max-width: 100%;
    text-align: left;
}

.services-grid--hierarchy .service-card h3 {
    margin-bottom: 20px;
    font-size: clamp(28px, 4vw, 54px);
    overflow-wrap: anywhere;
}

.services-grid--hierarchy .service-card p {
    margin: 0;
    font-size: 16px;
}

.service-card--primary {
    grid-column: 1 / -1;
    min-height: 430px !important;
    background:
        radial-gradient(circle at 90% 10%, rgba(54, 214, 255, 0.18), transparent 33%),
        var(--c-black) !important;
    color: var(--c-white);
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.services-grid--hierarchy .service-card--primary h3 {
    max-width: 1000px;
    color: var(--c-white);
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.95;
    overflow-wrap: normal;
    text-wrap: balance;
}

.services-grid--hierarchy .service-card--primary p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 18px;
}

.service-index {
    color: var(--c-accent-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.service-card--primary .service-index {
    color: var(--c-accent);
}

.about-section {
    border-radius: 26px;
}

.about-headline {
    overflow-wrap: anywhere;
}

.faq-section {
    padding: 132px 0 170px;
}

.faq-item.active .faq-answer {
    max-height: 520px;
}

.contact-cta-heading {
    max-width: 720px;
    font-size: clamp(52px, 7vw, 94px);
    line-height: 0.94;
}

/* Compact footer removes the duplicated final slogan. */
.site-footer--compact {
    min-height: 0;
    gap: 92px;
    padding: 48px 60px;
}

.site-footer--compact .footer-bottom-row {
    gap: 48px;
}

.site-footer--compact .footer-copy,
.site-footer--compact .contact-label {
    color: rgba(255, 255, 255, 0.62);
}

.footer-role {
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-display);
    font-size: 18px;
}

.footer-role span:last-child {
    color: var(--c-accent);
}

.contact-value {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Unified portfolio browser */
.work-page-main--gallery {
    max-width: 1600px;
    padding-bottom: 132px;
}

.work-page-main--gallery .work-hero {
    max-width: 1150px;
    margin-bottom: 76px;
}

.work-hero--stacked .work-hero-title {
    font-size: clamp(78px, 12vw, 176px);
    line-height: 0.86;
    overflow-wrap: anywhere;
}

.work-hero--stacked .work-hero-desc {
    max-width: 780px;
    color: var(--c-mid-grey);
}

.portfolio-browser {
    min-width: 0;
}

.portfolio-toolbar {
    position: sticky;
    top: 76px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid rgba(14, 14, 14, 0.08);
    border-radius: 20px;
    background: rgba(244, 244, 244, 0.92);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(18px);
}

.portfolio-filter-block {
    min-width: 0;
}

.filter-label {
    display: block;
    margin: 0 0 10px 4px;
    color: var(--c-mid-grey);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.category-filters,
.gallery-filters--compact {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
}

.category-filter-btn {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid rgba(14, 14, 14, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--c-mid-grey);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.category-filter-btn--primary {
    border-color: rgba(0, 123, 152, 0.25);
}

.category-filter-btn:hover {
    border-color: var(--c-black);
    color: var(--c-black);
}

.category-filter-btn.active {
    border-color: var(--c-black);
    background: var(--c-black);
    color: var(--c-white);
}

.category-filter-btn--primary.active {
    border-color: var(--c-accent-dark);
    background: var(--c-accent-dark);
}

.gallery-filters--compact .filter-btn {
    min-height: 42px;
    padding: 9px 16px;
}

.gallery-count {
    min-height: 24px;
    margin: 22px 2px;
    color: var(--c-mid-grey);
    font-size: 13px;
    font-weight: 700;
}

.work-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    padding: 0;
}

.gallery-item {
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
}

.gallery-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 11px;
}

.gallery-item-number {
    margin: 0;
}

.gallery-item-category {
    overflow: hidden;
    color: var(--c-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.gallery-item-title {
    display: block;
    overflow-wrap: anywhere;
}

.gallery-item-role {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
}

/* Project detail: enough context to sell the work without forcing empty space. */
.modal-content-wrapper {
    width: min(94vw, 1500px);
    height: auto;
    max-height: 92vh;
}

.modal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    min-height: min(78vh, 850px);
}

.modal-video-container {
    width: 100%;
    height: auto;
    min-height: 460px;
    padding: 22px;
}

.modal-video-container video,
.modal-video-container iframe,
.modal-project-image {
    width: 100%;
    height: 100%;
    max-height: calc(92vh - 44px);
    object-fit: contain;
}

.modal-info-panel {
    width: auto;
    min-width: 0;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 52px 38px 38px;
}

.modal-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
    padding-right: 48px;
}

.modal-categories span {
    padding: 6px 10px;
    border: 1px solid rgba(54, 214, 255, 0.3);
    border-radius: 999px;
    color: var(--c-accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.modal-title {
    margin-bottom: 18px;
    font-size: clamp(29px, 3.4vw, 48px);
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.modal-description {
    margin-bottom: 28px;
    padding: 0;
    color: rgba(255, 255, 255, 0.68);
    overflow-y: visible;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.modal-meta-list {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px 18px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-meta-list dt,
.modal-detail-block h3 {
    color: var(--c-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modal-meta-list dd {
    min-width: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.modal-detail-block h3 {
    margin-bottom: 8px;
}

.modal-detail-block p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.65;
}

.modal-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 32px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--c-white);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.modal-contact-link:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.modal-content-wrapper--media-only .modal-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    min-height: min(72vh, 760px);
}

/* Short project brief */
.contact-page-main {
    max-width: 1540px;
}

.contact-page-hero {
    max-width: 1160px;
    margin-bottom: 86px;
}

.contact-hero-title {
    font-size: clamp(62px, 10vw, 144px);
    overflow-wrap: anywhere;
}

.contact-brief-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(42px, 7vw, 110px);
    align-items: start;
    margin-bottom: 112px;
    padding: clamp(28px, 5vw, 64px);
    border-radius: 24px;
    background: var(--c-white);
    box-shadow: var(--shadow-soft);
}

.contact-brief-intro {
    position: sticky;
    top: 120px;
}

.contact-brief-intro h2 {
    margin-bottom: 20px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
}

.contact-brief-intro > p {
    color: var(--c-mid-grey);
    font-size: 17px;
    line-height: 1.65;
}

.contact-direct-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.contact-direct-links a {
    padding: 10px 15px;
    border: 1px solid rgba(14, 14, 14, 0.12);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.project-brief-form {
    min-width: 0;
}

.project-context {
    margin-bottom: 22px;
    padding: 13px 16px;
    border-left: 3px solid var(--c-accent-dark);
    background: rgba(0, 123, 152, 0.07);
    color: var(--c-accent-dark);
    font-size: 13px;
    font-weight: 750;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
}

.form-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-field--wide {
    grid-column: 1 / -1;
}

.form-field > span {
    font-size: 12px;
    font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    border: 1px solid rgba(14, 14, 14, 0.14);
    border-radius: 11px;
    background: #f8f9fa;
    color: var(--c-black);
    font: inherit;
    font-size: 15px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-field textarea {
    min-height: 136px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--c-accent-dark);
    background: var(--c-white);
    box-shadow: 0 0 0 4px rgba(0, 123, 152, 0.1);
    outline: 0;
}

.form-submit-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 26px;
}

.brief-submit {
    border: 0;
    cursor: pointer;
}

.form-submit-row small {
    color: var(--c-mid-grey);
}

.contact-details-grid--full {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
    padding-top: 54px;
    border-top: 1px solid rgba(14, 14, 14, 0.1);
}

@media (max-width: 1100px) {
    .hero-card-content--left {
        width: 76%;
    }

    .specialty-links {
        grid-template-columns: 1fr;
    }

    .specialty-link {
        min-height: 112px;
        border-right: 0;
        border-bottom: 1px solid rgba(14, 14, 14, 0.1);
    }

    .specialty-link:last-child {
        border-bottom: 0;
    }

    .portfolio-toolbar {
        position: static;
        grid-template-columns: 1fr;
    }

    .work-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modal-layout,
    .modal-content-wrapper--media-only .modal-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    }

    .contact-details-grid--full {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-card--portrait {
        min-height: 650px;
    }

    .hero-card--portrait > picture {
        inset: 0;
        width: 100%;
    }

    .hero-card-bg-image {
        object-position: 50% 24%;
        transform: scale(1.02);
    }

    .hero-card--portrait .hero-card-overlay {
        background: linear-gradient(0deg, rgba(5, 9, 13, 0.94) 0%, rgba(5, 9, 13, 0.5) 55%, rgba(5, 9, 13, 0.06) 100%);
    }

    .hero-card-content--left {
        width: 100%;
        padding: 32px 24px;
    }

    .hero-card-content--left .hero-headline {
        max-width: 520px;
        font-size: clamp(43px, 13vw, 64px);
        line-height: 0.94;
    }

    .brand-proof .marquee-img {
        width: 110px;
        height: 72px;
    }

    .brand-proof .marquee-group {
        gap: 32px;
    }

    .reel-section,
    .cases-section,
    .faq-section {
        padding: 88px 0;
    }

    .reel-header {
        margin-bottom: 36px;
    }

    .reel-poster-ui {
        padding: 18px;
    }

    .reel-poster-meta {
        right: 18px;
        bottom: 15px;
        left: 18px;
        justify-content: space-between;
        font-size: 9px;
    }

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

    .specialties-section {
        padding: 80px 0 8px;
    }

    .specialties-heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .service-card--primary {
        grid-column: auto;
        min-height: 360px !important;
    }

    .services-grid--hierarchy .service-card {
        min-height: 290px;
    }

    .services-grid--hierarchy .service-card--primary h3 {
        font-size: clamp(38px, 9vw, 60px);
    }

    .site-footer--compact {
        gap: 62px;
        padding: 40px 24px;
    }

    .footer-role {
        font-size: 16px;
    }

    .work-page-main--gallery {
        padding-right: 20px;
        padding-left: 20px;
    }

    .work-hero--stacked .work-hero-title {
        font-size: clamp(56px, 18vw, 86px);
    }

    .portfolio-toolbar {
        margin-right: -4px;
        margin-left: -4px;
        padding: 16px;
        overflow: hidden;
    }

    .category-filters,
    .gallery-filters--compact {
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .category-filter-btn,
    .gallery-filters--compact .filter-btn {
        flex: 0 0 auto;
    }

    .work-gallery-grid {
        grid-template-columns: 1fr;
    }

    .modal-content-wrapper {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .modal-layout,
    .modal-content-wrapper--media-only .modal-layout {
        display: flex;
        min-height: 0;
    }

    .modal-video-container {
        min-height: 250px;
        height: min(46vh, 420px);
        padding: 10px;
    }

    .modal-video-container video,
    .modal-video-container iframe,
    .modal-project-image {
        max-height: 100%;
    }

    .modal-info-panel {
        padding: 32px 22px 28px;
    }

    .modal-title {
        padding-right: 32px;
    }

    .contact-brief-layout {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }

    .contact-brief-intro {
        position: static;
    }

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

    .form-field--wide {
        grid-column: auto;
    }

    .form-submit-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .brief-submit {
        width: 100%;
        justify-content: center;
    }

    .contact-details-grid--full {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .hero-card--portrait {
        min-height: 620px;
    }

    .hero-card-content--left .hero-headline {
        font-size: clamp(40px, 12.5vw, 52px);
    }

    .hero-support {
        font-size: 15px;
    }

    .reel-header .statement-title,
    .contact-cta-heading {
        font-size: clamp(38px, 12vw, 54px);
    }

    .comparison-copy {
        padding: 22px;
    }

    .specialty-link {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 13px;
        padding: 22px 18px;
        font-size: 19px;
    }

    .category-filters {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        overflow: visible;
        padding-bottom: 0;
    }

    .category-filter-btn {
        width: 100%;
        text-align: left;
    }

    .services-grid--hierarchy .service-card h3 {
        font-size: 28px;
    }

    .services-grid--hierarchy .service-card--primary h3 {
        font-size: clamp(32px, 9vw, 40px);
    }

    .faq-question {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .faq-question::before {
        display: none;
    }

    .faq-answer,
    .faq-item.active .faq-answer {
        padding-left: 20px;
    }

    .footer-contact-info {
        width: 100%;
    }

    .contact-value {
        font-size: 16px;
    }

    .contact-hero-title {
        font-size: clamp(46px, 14vw, 66px);
    }
}

/* =========================================================================
   V8 — RESPONSIVE TEXT FIT
   ========================================================================= */

@media (max-width: 768px) {
    /*
     * The work title is rendered in uppercase and split into non-wrapping
     * characters for its entrance animation. Its previous 18vw scale was
     * therefore wider than the usable viewport between 320px and 430px.
     */
    .work-hero--stacked .work-hero-title {
        max-width: 100%;
        font-size: clamp(46px, 15vw, 86px);
        line-height: 0.9;
        overflow-wrap: normal;
        word-break: normal;
    }
}
