/* --- RESET & MINIMAL ARCHITECTURAL THEME --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide native cursor only on fine pointers once the custom cursor is live;
   touch / no-hover devices keep their native cursor as a safe fallback */
@media (hover: hover) and (pointer: fine) {
    html.cursor-ready,
    html.cursor-ready * { cursor: none; }
}

:root {
    --bg-base: #ffffff; /* Pure minimal white */
    --bg-surface: #f7f7f7; /* Very light neutral grey */
    --bg-surface-solid: #ebebeb;
    
    --border-color: #e5e5e5; /* Thin neutral architectural lines */
    --border-hover: #000000;
    
    --text-primary: #111111; /* Clean black */
    --text-secondary: #666666; /* Neutral stone grey */
    --text-muted: #999999;
    
    /* Elegant Architectural Accent: Deep charcoal / Solid black instead of terracotta */
    --accent-color: #111111;
    --accent-hover: #444444;
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
}

body {
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* --- CUSTOM MINIMAL CURSOR (WITH BLEND MODE INVERSION) --- */
/* On touch / no-hover devices the dots are useless: never show them */
@media (hover: none), (pointer: coarse) {
    .custom-cursor,
    .custom-cursor-follower { display: none !important; }
}

.custom-cursor {
    width: 6px;
    height: 6px;
    background: #ffffff; /* Must be white for difference mix-blend-mode */
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s var(--transition-fast), height 0.3s var(--transition-fast);
}

.custom-cursor-follower {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.7); /* White border for diff mix-blend-mode */
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out, width 0.3s var(--transition-smooth), height 0.3s var(--transition-smooth);
}

/* Hover effects for cursor */
.custom-cursor.hovered {
    width: 10px;
    height: 10px;
    background: #ffffff;
}
.custom-cursor-follower.hovered {
    width: 38px;
    height: 38px;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor, .custom-cursor-follower {
        display: none;
    }
    * {
        cursor: auto;
    }
}

/* --- 1. LANDING PAGE SELECTOR (unstudio.com style - Full Bleed) --- */
.landing-selector {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    transform: translateY(0);
}

.landing-selector.hidden {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
}

.selector-brand-floating {
    position: absolute;
    top: 3.5rem;
    left: 4rem;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    color: #fff;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.brand-sub {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    text-transform: uppercase;
}

.selector-grid {
    flex: 1;
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.selector-panel {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 5rem 4rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.selector-panel:last-child {
    border-right: none;
}

.panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(90%) contrast(1.05) brightness(0.75);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    z-index: 1;
}

.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.0) 0%, rgba(18, 18, 18, 0.65) 50%, #121212 100%);
    z-index: 2;
    transition: var(--transition-smooth);
}

.panel-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    color: #fff;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-num {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.8);
}

.panel-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
    transition: var(--transition-fast);
}

.panel-title .serif-italic {
    font-style: italic;
    font-weight: 400;
}

.panel-desc {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 320px;
    opacity: 0.8;
    transition: opacity 0.6s ease;
}

.panel-btn-text {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-bottom: 1px solid #fff;
    padding-bottom: 3px;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    transition: var(--transition-fast);
}

.panel-btn-text i {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

/* Selector Hover Effects */
.selector-panel:hover {
    flex: 1.25;
}

.selector-panel:hover .panel-bg {
    transform: scale(1.06);
    filter: grayscale(10%) contrast(1.05) brightness(0.85);
}

.selector-panel:hover .panel-overlay {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.0) 0%, rgba(18, 18, 18, 0.45) 40%, rgba(18, 18, 18, 0.92) 100%);
}

.selector-panel:hover .panel-title {
    color: #ffffff;
}

.selector-panel:hover .panel-btn-text {
    border-color: #ffffff;
    color: #ffffff;
}

.selector-panel:hover .panel-btn-text i {
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .selector-brand-floating {
        top: 2rem;
        left: 2rem;
    }
    .selector-grid {
        flex-direction: column;
    }
    .selector-panel {
        flex: 1;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 3rem 2rem;
    }
    .selector-panel:last-child {
        border-bottom: none;
    }
    .selector-panel:hover {
        flex: 1.3;
    }
    .panel-title {
        font-size: 2.2rem;
    }
    .panel-desc {
        max-width: 100%;
    }
}


/* --- 2. MAIN WEBSITE STRUCTURE --- */
.main-wrapper-site {
    opacity: 1;
    transition: opacity 0.8s ease;
    padding-top: 0;
}

.main-wrapper-site.hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- HEADER / NAVIGATION (Solid Black Theme) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.header-container {
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-name {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #ffffff;
    line-height: 1.1;
    transition: opacity 0.3s ease;
}

.logo-name.logo-minimal {
    display: none;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-left: 3px solid #000000;
    padding-left: 0.6rem;
    line-height: 1;
    color: #000000;
    transition: opacity 0.3s ease;
}

.logo-title {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    margin-top: 4px;
    transition: opacity 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    transition: var(--transition-smooth);
}

.nav-link-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.4rem 0;
    transition: var(--transition-fast);
}

.nav-link-btn:hover {
    color: #ffffff;
}

.nav-link-btn.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1005;
    transition: var(--transition-fast);
}

@media (max-width: 850px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #000000;
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: var(--transition-smooth);
        border-left: 1px solid rgba(255,255,255,0.1);
        z-index: 999;
        padding: 4rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link-btn {
        font-size: 1.4rem;
        font-family: var(--font-serif);
        text-transform: none;
        color: rgba(255,255,255,0.7);
        border-bottom: none;
    }
    
    .nav-link-btn.active {
        color: #ffffff;
        border-bottom: 2px solid #ffffff;
    }
}


/* --- TAB CONTENT PANELS --- */
.content-container {
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 50vh;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fade-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-reveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.20em;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}


/* --- PLAY-TIME.ES FULL SCREEN PROJECTS STACK --- */
.project-section-block {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin-bottom: 0;
    background-color: #ffffff;
    overflow: hidden;
    border: none;
}

.block-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-item {
    flex: 0 0 100%;
    height: 100%;
    width: 100%;
    overflow: hidden;
    padding-bottom: 95px; /* Gallery style bottom padding to prevent overlap with name/dots */
    background-color: #ffffff;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(8%) contrast(1.01);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Arrows for block slider (always visible when navigation is possible) */
.block-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.block-arrow.edge-hidden {
    opacity: 0;
    pointer-events: none;
}

.block-arrow:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.block-arrow.arrow-left {
    left: 2rem;
}

.block-arrow.arrow-right {
    right: 2rem;
}

/* Dynamic slide dots pagination */
.block-slide-dots {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-end;
    align-items: center;
    z-index: 15;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #111111;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slide-dot.active {
    background: #111111;
}

/* Captions overlay (Minimalist Black & Transparent Grid columns) */
.block-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.8rem 4rem; /* Edge-to-edge padding */
    background: transparent;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 15;
    color: #111111;
}

.caption-meta-col {
    text-align: left;
}

.caption-title-col {
    text-align: center;
}

.caption-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: #111111;
    transition: var(--transition-fast);
    display: inline-block;
}

.caption-title.info-trigger:hover {
    color: #666666;
    transform: scale(1.02);
}

.caption-meta {
    font-family: var(--font-sans);
    font-size: 0.68rem; /* Modest size */
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.4;
}

/* Integrated Slide-Up Info Panel */
.block-info-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 62%;
    background: var(--bg-base);
    color: var(--text-primary);
    border-top: 2px solid var(--accent-color);
    z-index: 25;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.15);
}

.block-info-panel.active {
    transform: translateY(0);
}

.info-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.5rem;
}

.info-close-btn:hover {
    color: var(--accent-color);
}

.info-content-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 4rem;
    padding: 3.8rem 4rem;
    overflow-y: auto;
}

@media (max-width: 850px) {
    .info-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 2rem;
    }
}

.info-col-text h5 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.info-col-text p {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.info-col-specs {
    border-left: 1px solid var(--border-color);
    padding-left: 2.5rem;
}

@media (max-width: 850px) {
    .info-col-specs {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 1.5rem;
    }
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.82rem;
}

.spec-item strong {
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.spec-item span {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-primary);
}


/* --- IMAGERY PORTFOLIO EDITORIAL SECTIONS (Every X scroll) --- */
.editorial-section-block {
    position: relative;
    width: 100%;
    height: 72vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    margin-bottom: 6rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.editorial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 29, 0.75);
    z-index: 1;
}

.editorial-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.editorial-tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.editorial-quote {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .editorial-quote {
        font-size: 1.6rem;
    }
}

.editorial-text {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 650px;
}


/* --- PANEL 3: TECHNOLOGY SPECIFICS --- */
.bim-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 4.5rem;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5rem;
    margin-bottom: 5rem;
}

@media (max-width: 950px) {
    .bim-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

.bim-sub {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.bim-intro-col p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

/* Elegant Light/Chalk Revit Console */
.minimal-console {
    width: 100%;
    max-width: 560px;
    background: #F5F4EF;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
}

.console-header {
    background: #EBEAE4;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.console-bullets {
    display: flex;
    gap: 0.4rem;
}

.c-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C4C3BC;
}

.console-label {
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.console-body {
    padding: 1.5rem;
    height: 240px;
    overflow-y: auto;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    line-height: 1.6;
    color: #4A4944;
}

.console-line {
    margin-bottom: 0.5rem;
}

.c-prompt {
    color: var(--accent-color);
    font-weight: 600;
}

.c-output {
    color: var(--text-secondary);
}

.c-success {
    color: #487046;
    font-weight: 600;
}

.console-cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    background: var(--text-primary);
    vertical-align: middle;
    animation: c-blink 1s step-end infinite;
}

@keyframes c-blink {
    from, to { background-color: transparent }
    50% { background-color: var(--text-primary); }
}

.console-controls {
    display: flex;
    background: #EBEAE4;
    border-top: 1px solid var(--border-color);
    padding: 0.6rem;
    gap: 0.6rem;
}

.console-btn {
    flex: 1;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.console-btn:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: #fff;
}

/* Technology Cards Grid */
.tech-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (max-width: 950px) {
    .tech-cards-grid {
        grid-template-columns: 1fr;
    }
}

.tech-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: var(--transition-fast);
}

.tech-card:hover {
    border-color: var(--text-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.tech-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--accent-color);
}

.tech-card-header i {
    width: 24px;
    height: 24px;
}

.tech-card-header h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-primary);
}

.tech-card-desc {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
}

.tech-card-list {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
}

.tech-card-list li strong {
    font-weight: 500;
    color: var(--text-primary);
}

/* --- TECH SIGNATURE: CNC toolpath + key metrics --- */
.tech-signature {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

@media (max-width: 950px) {
    .tech-signature { grid-template-columns: 1fr; gap: 2.5rem; padding: 2rem; }
}

.tech-sheet-svg { width: 100%; height: auto; display: block; }
.sheet-holes circle { fill: none; stroke: var(--border-color); stroke-width: 2; }

.snake-path {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1500;
    stroke-dashoffset: 0;
}

.tech-signature.animate .snake-path {
    animation: snake-draw 3.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes snake-draw {
    from { stroke-dashoffset: 1500; }
    to { stroke-dashoffset: 0; }
}

.tech-sheet-label {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tech-metrics { display: flex; flex-direction: column; gap: 1.8rem; }

@media (max-width: 950px) {
    .tech-metrics { flex-direction: row; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
}

.tech-metric { display: flex; flex-direction: column; gap: 0.3rem; }

.metric-num {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1;
    color: var(--text-primary);
}

.metric-unit { font-size: 1.6rem; color: var(--text-secondary); margin-left: 0.05em; }

.metric-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    max-width: 220px;
}

/* --- TECH CARD MEDIA (line-art motifs) --- */
.tech-card-media {
    width: 100%;
    height: 72px;
    margin-bottom: 0.4rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-card-media svg {
    width: 100%;
    height: 100%;
    max-width: 180px;
    fill: none;
    stroke: var(--text-secondary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.tech-card-media svg circle { fill: var(--bg-surface); }
.tech-card-media svg .m-fill { fill: var(--text-secondary); stroke: none; }
.tech-card:hover .tech-card-media svg { stroke: var(--accent-color); }

/* --- TECH PIPELINE (DXF -> algorithm -> .rfa) --- */
.tech-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 5rem;
    padding: 3rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.pipe-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    flex: 1 1 160px;
    max-width: 220px;
}

.pipe-art { width: 100%; height: 90px; display: flex; align-items: center; justify-content: center; }

.pipe-art svg {
    height: 100%;
    width: auto;
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pipe-step {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.pipe-label { font-family: var(--font-serif); font-size: 1.25rem; color: var(--text-primary); }
.pipe-sub { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 300; color: var(--text-secondary); }

.pipe-arrow svg {
    width: 40px;
    height: 24px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 700px) {
    .pipe-arrow { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
    .tech-signature.animate .snake-path { animation: none; stroke-dashoffset: 0; }
}


/* --- CONTACT SECTION --- */
.contact-section {
    padding: 8rem 2.5rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.contact-editorial {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-title {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 2.2rem;
    }
}

.contact-intro {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 4rem;
}

.contact-links {
    display: flex;
    gap: 4rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .contact-links {
        gap: 2rem;
        flex-direction: column;
    }
}

.contact-link-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.link-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.link-value {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    transition: var(--transition-fast);
    padding-bottom: 0.2rem;
    border-bottom: 1px solid transparent;
}

.contact-link-item:hover .link-value {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.contact-platforms {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-base);
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    overflow: hidden;
    transition: var(--transition-fast);
    z-index: 0;
}

.platform-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--text-primary);
    transform: translateY(101%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1;
}

.platform-btn i {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
    transition: color 0.35s ease, transform 0.35s ease;
}

.platform-btn:hover {
    border-color: var(--text-primary);
    color: var(--bg-base);
    transform: translateY(-2px);
}

.platform-btn:hover::before {
    transform: translateY(0);
}

.platform-btn:hover i {
    color: var(--bg-base);
    transform: translateX(-1px) scale(1.08);
}


/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-base);
    padding: 3rem 4rem;
}

.footer-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.footer-copy {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-philosophy {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-secondary);
}

/* --- MOBILE RESPONSIVE OPTIMIZATIONS FOR PROJECT BLOCKS --- */
@media (max-width: 768px) {
    .project-section-block {
        height: 60vh;
        margin-bottom: 4rem;
    }
    
    .block-caption {
        padding: 1.5rem 1.8rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }
    
    .caption-meta-col {
        order: 2; /* Metadata below title */
        text-align: center;
    }
    
    .caption-title-col {
        order: 1; /* Title/Logo first */
        text-align: center;
    }
    
    .block-slide-dots {
        order: 3; /* Dots at the bottom */
        justify-content: center;
    }
    
    .caption-title {
        font-size: 1.65rem;
    }
    
    .block-arrow {
        width: 40px;
        height: 40px;
    }
    
    .block-arrow.arrow-left {
        left: 1rem;
    }
    
    .block-arrow.arrow-right {
        right: 1rem;
    }
    
    .block-slide-indicator {
        top: 1rem;
        right: 1rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .info-content-grid {
        gap: 1.5rem;
        padding: 2.2rem 1.8rem;
    }
    
    .info-col-text h5 {
        font-size: 1.45rem;
        margin-bottom: 0.8rem;
    }
}

/* --- TABS: ABOUT & CONTACT PAGE --- */
.about-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.about-img-container {
    position: relative;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.35);
}

.about-img-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18) 100%);
    pointer-events: none;
}

.about-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    filter: grayscale(100%) contrast(1.05);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.about-img-container:hover img {
    transform: scale(1.03);
    filter: grayscale(100%) contrast(1.08) brightness(1.03);
}

.about-text-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
}

.about-name {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--text-primary);
}

.about-subtitle {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.about-bio p {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}
.about-bio strong {
    font-weight: 600;
    color: var(--text-primary);
}

.about-cv-platforms {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.platforms-title {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1.2rem;
}

.platforms-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* --- PUBLICACIONES --- */
.publications-section {
    margin-top: 6rem;
    padding-top: 3.5rem;
    border-top: 1px solid var(--border-color);
}

.publications-header {
    margin-bottom: 2.5rem;
}

.publications-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.1;
    color: var(--text-primary);
    margin-top: 0.6rem;
}

.publication-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2rem;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.publication-card:hover {
    border-color: var(--text-primary);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.publication-cover {
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.3);
}

.publication-cover img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.publication-card:hover .publication-cover img {
    transform: scale(1.05);
}

.publication-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-color);
}

.publication-meta i {
    width: 15px;
    height: 15px;
}

.publication-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0.7rem 0 0.9rem;
}

.publication-desc {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .publications-section {
        margin-top: 3.5rem;
        padding-top: 2.5rem;
    }
    .publication-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .publication-cover {
        max-width: 160px;
    }
}

/* Contact Page Grid */
.contact-page-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: flex-start;
}

.contact-desc {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.contact-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.detail-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.detail-value {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
    align-self: flex-start;
}

a.detail-value:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Minimal form styling */
.minimal-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-row {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 300;
    padding: 0.8rem 0;
    color: var(--text-primary);
    transition: var(--transition-fast);
    outline: none;
    border-radius: 0;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236A6964' stroke-width='2' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right center;
    cursor: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: var(--text-primary);
}

.submit-form-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border: 1px solid var(--border-color);
    background: var(--text-primary);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: none;
    transition: var(--transition-fast);
    margin-top: 1rem;
}

.submit-form-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.form-status {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    margin-top: 1rem;
    min-height: 1.2em;
    color: var(--text-secondary);
}

.form-status.is-ok { color: #1a7f37; }
.form-status.is-err { color: #b42318; }

.submit-form-btn i {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.submit-form-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.submit-form-btn:hover i {
    transform: translateX(5px);
}

/* Language Switcher Button Styling */
.lang-selector-nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 1.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    cursor: none;
    transition: var(--transition-fast);
    padding: 0.2rem 0.4rem;
}

.lang-btn.active {
    color: var(--text-primary);
    font-weight: 700;
}

.lang-btn:hover {
    color: var(--accent-color);
}

.lang-separator {
    color: var(--border-color);
    font-weight: 300;
    user-select: none;
}

/* Language Toggle Display Rules */
body.lang-es .lang-en { display: none !important; }
body.lang-en .lang-es { display: none !important; }

/* Responsiveness for about and contact */
@media (max-width: 950px) {
    .about-grid, .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .about-img-container {
        max-width: 220px;
        margin: 0 auto;
    }

    .lang-selector-nav {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* --- SERVICE INTRO BLOCKS (Tab Entrances) --- */
.tab-intro-block {
    width: 100vw;
    /* min-height, no height: con height fijo el centrado flex desborda hacia ARRIBA
       cuando el contenido es mas alto que el hueco y el texto se mete bajo el header negro */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
    padding: 120px clamp(2.5rem, 9vw, 9rem) 4rem; /* Top padding shifts content below fixed header */
}

.intro-content-wrapper {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
}

.intro-tag {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--accent-color);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}
.intro-tag::before {
    content: "";
    width: 2.6rem;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

.intro-title {
    font-family: var(--font-serif);
    font-size: 3.8rem;
    font-weight: 300;
    line-height: 1.1;
    color: var(--text-primary);
    max-width: 16ch;
}

@media (max-width: 768px) {
    .intro-title {
        font-size: 2.5rem;
    }
}

.intro-desc {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 60ch;
}

.intro-scroll-hint {
    margin-top: 2rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* --- BOXED LAYOUT CONTAINER FOR TEXT TABS --- */
.page-container {
    width: 100%;
    padding: 130px 4rem 6rem;
}

/* --- FULL-BLEED EDITORIAL BREAK PAGES --- */
.editorial-section-block.full-bleed-page {
    width: 100vw;
    height: 100vh;
    background-color: #0c0c0c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 0;
    border: none;
    overflow: hidden;
}

.editorial-section-block.full-bleed-page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- SCROLLED HEADER MINIMAL STATE --- */
header.scrolled {
    background: transparent;
    border-bottom: none;
    pointer-events: none;
}

header.scrolled .header-container {
    padding: 1.2rem 4rem;
}

header.scrolled .logo-full,
header.scrolled .logo-title,
header.scrolled .nav-links:not(.active) {
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

header.scrolled .logo-name.logo-minimal {
    display: block;
    pointer-events: auto;
}

header.scrolled .mobile-nav-toggle {
    display: flex !important;
    pointer-events: auto;
    background: #000000;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-fast);
}

header.scrolled .mobile-nav-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Scrolled Nav Links Overlay Drawer */
header.scrolled .nav-links.active {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: var(--transition-smooth);
    z-index: 999;
    padding: 4rem;
    pointer-events: auto;
    border-left: none;
}

header.scrolled .nav-links.active .nav-link-btn {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    text-transform: none;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: none;
}

header.scrolled .nav-links.active .nav-link-btn:hover,
header.scrolled .nav-links.active .nav-link-btn.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

header.scrolled .nav-links.active .lang-selector-nav {
    margin-left: 0;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

header.scrolled .nav-links.active .lang-btn {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

header.scrolled .nav-links.active .lang-btn.active {
    color: #ffffff;
}

/* --- TECHNOLOGY CASE STUDIES SECTION --- */
.tech-cases-section {
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
    padding-top: 6rem;
}

.tech-cases-header {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tech-cases-tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.20em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.tech-cases-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.tech-cases-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.tech-case-item {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.tech-case-item.inverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.tech-case-item.inverse .case-image-wrapper {
    order: 2;
}

.case-image-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background-color: var(--bg-surface);
}

.case-image-wrapper img,
.case-image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%) contrast(1.02);
    transition: var(--transition-smooth);
}

.tech-case-item:hover .case-image-wrapper img {
    transform: scale(1.03);
    filter: grayscale(0%) contrast(1.02);
}

.tech-case-item:hover .case-image-wrapper video {
    filter: grayscale(0%) contrast(1.02);
}

.case-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.case-tag {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.case-info h4 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.2;
}

.case-info p {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* --- TECH: code proof snippet + download links --- */
.code-proof {
    margin: 0.4rem 0 0;
    border: 1px solid var(--border-color);
    background: #0e0e0e;
}

.code-proof figcaption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-proof-file {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.68rem;
    color: #e6e6e6;
    letter-spacing: 0.02em;
}

.code-proof-note {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7a7a7a;
}

.code-proof pre {
    margin: 0;
    padding: 0.9rem 1rem;
    overflow-x: auto;
}

.code-proof code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.74rem;
    line-height: 1.55;
    color: #d4d4d4;
    white-space: pre;
}

.case-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.case-proof-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.case-proof-link:hover {
    color: #fff;
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.case-proof-link i {
    width: 14px;
    height: 14px;
}

/* --- TECH: contratable services + CTA --- */
.tech-services {
    margin-top: 8rem;
    padding-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.tech-services-lead {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 56ch;
    margin-top: 1.4rem;
}

.tech-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}
/* con un numero impar de tarjetas la ultima ocupa el ancho: sin celda hueca */
.tech-services-grid > .tech-service:last-child:nth-child(odd) { grid-column: 1 / -1; }

.tech-service {
    background: var(--bg-base);
    padding: 2.6rem 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.tech-service:hover {
    background: var(--bg-surface);
}

.tech-service-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.tech-service-head i {
    width: 22px;
    height: 22px;
    color: var(--text-primary);
    stroke-width: 1.4;
    flex-shrink: 0;
}

.tech-service-head h4 {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-primary);
}

.tech-service-desc {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
}

.tech-service-proof {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

.tech-cta {
    margin-top: 5rem;
    padding: 4.5rem 3rem;
    background: var(--text-primary);
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.tech-cta-title {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 300;
    line-height: 1.15;
    color: #fff;
    max-width: 20ch;
}

.tech-cta-sub {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 52ch;
}

.tech-cta-btn {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tech-cta-btn i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.tech-cta-btn:hover {
    background: #fff;
    color: var(--text-primary);
    border-color: #fff;
}

.tech-cta-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 950px) {
    .tech-services-grid {
        grid-template-columns: 1fr;
    }
    .tech-services {
        margin-top: 5rem;
    }
    .tech-cta {
        padding: 3.5rem 1.6rem;
    }
    .tech-cta-title {
        font-size: 1.9rem;
    }
    .tech-case-item,
    .tech-case-item.inverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .tech-case-item.inverse .case-image-wrapper {
        order: 0;
    }
    .tech-cases-title {
        font-size: 2.2rem;
    }
}

/* --- PROJECTS NAVIGATION STRIP (Visual Index style) --- */
.projects-nav-strip {
    width: 100%;
    background-color: var(--bg-base);
    border-top: 1px solid var(--border-color);
    margin-bottom: 5rem;
    margin-top: 2rem;
}

.nav-strip-item {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    align-items: center;
    padding: 1.5rem 4rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}

.nav-strip-item:hover {
    background-color: var(--bg-surface);
    border-bottom-color: var(--text-primary);
}

.nav-strip-left {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-strip-num {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-strip-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
}

.nav-strip-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
}

.nav-strip-meta {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-strip-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-strip-logo {
    max-height: 38px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    opacity: 0.75;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.nav-strip-item:hover .nav-strip-logo {
    opacity: 1;
    filter: grayscale(0%) contrast(1) brightness(1);
}

.nav-strip-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-strip-thumb {
    width: 90px;
    height: 50px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    filter: grayscale(100%) brightness(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease, border-color 0.4s ease;
}

.nav-strip-item:hover .nav-strip-thumb {
    transform: scale(1.04);
    filter: grayscale(0%) brightness(1);
    border-color: var(--text-primary);
}

@media (max-width: 850px) {
    .nav-strip-item {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1.5rem 2rem;
    }
    
    .nav-strip-center {
        justify-content: flex-start;
        padding-left: 2.8rem;
    }
    
    .nav-strip-right {
        justify-content: flex-start;
        padding-left: 2.8rem;
    }
}

/* =====================================================================
   PROTOTIPO: PLANTILLA A SANGRE ESTILO IMAGERY (.bleed)
   Imagen cover edge-to-edge · texto izq · logo centro · círculos numerados
   Convive con la plantilla actual: solo aplica con la clase .bleed
   ===================================================================== */
.project-section-block.bleed { background-color: #000; }

.project-section-block.bleed .slide-item {
    padding-bottom: 0;
    background-color: #000;
}
.project-section-block.bleed .slide-item img {
    object-fit: cover;
    filter: none;
}
.project-section-block.bleed .slide-item video {
    object-fit: cover !important;
}

/* Degradado mínimo solo en el borde inferior (legibilidad del texto/logo),
   sin oscurecer la imagen del proyecto */
.project-section-block.bleed .pf-scrim {
    position: absolute;
    inset: 0;
    z-index: 12;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.12) 12%, rgba(0,0,0,0) 24%);
}

/* Barra inferior: info pequeña izq · logo centro · círculos der */
.project-section-block.bleed .pf-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 16;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 1.5rem;
    padding: 2.2rem clamp(1.5rem, 4vw, 3.5rem);
    pointer-events: none;
    color: #fff;
}
.project-section-block.bleed .pf-overlay .pf-logo,
.project-section-block.bleed .pf-overlay .pf-dots { pointer-events: auto; }

/* Texto pequeño abajo-izquierda (info del proyecto) */
.bleed .pf-info { grid-column: 1; max-width: 32ch; }
.bleed .pf-name {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 1.7vw, 1.4rem);
    font-weight: 500;
    line-height: 1.14;
    margin-bottom: 0.35rem;
    text-shadow: 0 1px 14px rgba(0,0,0,0.45);
}
.bleed .pf-meta {
    font-family: var(--font-sans);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.82);
    margin-bottom: 0.45rem;
}
.bleed .pf-desc {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 300;
    line-height: 1.55;
    color: rgba(255,255,255,0.9);
}

/* Logo centrado sobre una placa blanca discreta (legibilidad de logos a color
   sin el aspecto de pegatina del borde negro + sombra dura anteriores) */
/* Cuadrado blanco con borde negro, idéntico en todas las páginas:
   tamaño y posición fijos (logo centrado dentro con object-fit) */
.bleed .pf-logo {
    grid-column: 2;
    justify-self: center;
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #000;
    padding: 6px;
    border-radius: 0;
    box-shadow: none;
}

/* Círculos pequeños negros, sin número (como los originales) */
.bleed .pf-dots {
    grid-column: 3;
    justify-self: end;
    gap: 0.5rem;
}
.bleed .pf-dots .slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #111;
    background: #fff;
}
.bleed .pf-dots .slide-dot::before { content: none; }
.bleed .pf-dots .slide-dot.active { background: #111; }

/* Flechas claras sobre la foto */
.bleed .block-arrow {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
}

@media (max-width: 850px) {
    .bleed .pf-overlay { grid-template-columns: 1fr; row-gap: 1rem; justify-items: start; }
    .bleed .pf-logo, .bleed .pf-dots { grid-column: 1; justify-self: start; }
}

/* --- BANDA DE LOGOS DE PROYECTOS (índice clicable, antes del scroll hint) --- */
.logo-band {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-end;
    gap: clamp(1.4rem, 4vw, 3.2rem);
    margin: 2.5rem 0 1.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
    max-width: 1080px;
}
.logo-band-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    opacity: 0.55;
    transition: var(--transition-fast);
}
.logo-band-item:hover { opacity: 1; transform: translateY(-3px); }
.logo-band-item img {
    height: 32px;
    width: auto;
    max-width: 88px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition-fast);
}
.logo-band-item:hover img { filter: grayscale(0%); }
.logo-band-label {
    font-family: var(--font-sans);
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Ocultar la lista índice nav-strip (sustituida por la banda de logos) */
#panel-architecture .projects-nav-strip,
#panel-visualization .projects-nav-strip { display: none; }

/* --- SCROLL-SNAP por proyecto (solo en architecture/visualization) ---
   proximity (no mandatory) para poder ver libremente la intro/inicio */
html.snap-mode { scroll-snap-type: y proximity; }
html.snap-mode .project-section-block,
html.snap-mode .editorial-section-block.full-bleed-page {
    scroll-snap-align: start;
}

/* --- Accesibilidad: respetar "reducir movimiento" del SO --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================================
   ARQUITECTURA EDITORIAL (estilo El Croquis / Arquitectura Viva)
   Artículo contenido, ficha técnica, memoria destacada, pies numerados.
   No usa la JS del slider: clase .project-article (no .project-section-block)
   ===================================================================== */
.pa-preview-note {
    max-width: 1180px;
    margin: 1rem auto 2.5rem;
    padding: 0.6rem 0 0.6rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-left: 2px solid var(--accent-color);
}

.project-article {
    max-width: 1180px;
    margin: 0 auto 9rem;
    padding: 0 2.5rem;
}

.pa-header {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    align-items: end;
    border-top: 2px solid var(--text-primary);
    padding-top: 1.4rem;
    margin-bottom: 3rem;
}

@media (max-width: 850px) {
    .pa-header { grid-template-columns: 1fr; gap: 2rem; }
}

.pa-num {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

.pa-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.pa-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-top: 0.8rem;
}

.pa-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
}

.pa-facts > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
}

.pa-facts dt {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pa-facts dd {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-primary);
}

.pa-lead {
    max-width: 760px;
    margin-bottom: 3.5rem;
}

.pa-lead p {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
}

.pa-body {
    columns: 2;
    column-gap: 3rem;
    max-width: 900px;
    margin: 3.5rem 0;
}

@media (max-width: 700px) {
    .pa-body { columns: 1; }
}

.pa-body p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
}

.pa-figure { margin: 0 0 2.5rem; }

.pa-figure img,
.pa-figure video {
    width: 100%;
    display: block;
    background: var(--bg-surface);
}

.pa-figure-lead img { aspect-ratio: 16 / 10; object-fit: cover; }

.project-article figcaption {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-top: 0.7rem;
    display: flex;
    gap: 0.6rem;
}

.fc-num { font-weight: 600; color: var(--text-secondary); }

.pa-row { display: grid; gap: 2.5rem; margin-bottom: 2.5rem; }
.pa-row-2 { grid-template-columns: 1fr 1fr; }

@media (max-width: 700px) {
    .pa-row-2 { grid-template-columns: 1fr; }
}

.pa-row figure { margin: 0; }

.pa-row img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--bg-surface);
}

/* === ARQUITECTURA: índice (manifiesto + 7 logos) + vistas de proyecto === */
.arch-index { max-width: 1180px; margin: 0 auto; padding: 120px 2.5rem 7rem; }
.arch-index.hidden { display: none; }

.arch-manifesto { max-width: 840px; margin: 0 auto 4.5rem; text-align: center; }

.arch-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.arch-statement {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 400;
    line-height: 1.16;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 1.2rem 0 1.5rem;
}

.arch-statement em { font-style: italic; color: var(--text-secondary); }

.arch-lead {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.arch-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 3.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}

.arch-logo {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    width: 200px;
    padding: 1rem 0.5rem;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-logo:hover { transform: scale(1.07); }

.arch-logo-imgwrap {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arch-logo img {
    max-height: 80px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.45s ease, opacity 0.45s ease;
}

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

.arch-logo-glyph {
    width: 64px;
    height: 48px;
    fill: var(--text-muted);
    transition: fill 0.45s ease;
}

.arch-logo:hover .arch-logo-glyph { fill: var(--text-primary); }

.arch-logo-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.1;
}

.arch-logo-meta {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 700px) {
    .arch-logo { width: 44%; }
    .arch-index { padding: 104px 1.5rem 5rem; }
}

.arch-view { display: none; position: relative; padding-bottom: 7rem; }
.arch-view.active { display: block; animation: fade-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1); }

/* Back button floats over the hero, clear of the fixed black header */
.arch-back {
    position: absolute;
    top: 104px;
    left: 1.6rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    backdrop-filter: blur(6px);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: background 0.3s ease;
}
.arch-back i { width: 14px; height: 14px; }
.arch-back:hover { background: #fff; }

/* --- MVRDV-style project page --- */
/* El header es fixed y opaco: sin este hueco se come la parte alta de la imagen */
.mv-hero { width: 100%; height: 100vh; margin: 0; background: var(--bg-surface); padding-top: 120px; box-sizing: border-box; }
.mv-hero img { width: 100%; height: 100%; object-fit: cover; display: block; border: none; }
.mv-hero.contain { background: #f0efe9; }
.mv-hero.contain img { object-fit: contain; padding: 1.5rem; }
/* hero a sangre SIN recorte: ocupa todo el ancho y crece en alto lo que pida la imagen */
.mv-hero.full { height: auto; background: transparent; }
.mv-hero.full img { width: 100%; height: auto; object-fit: fill; }

.mv-intro { max-width: 1100px; margin: 0 auto; padding: 4.5rem 2.5rem 0; }
.mv-num {
    font-family: var(--font-sans);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--text-muted);
}
.mv-title {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 400;
    line-height: 1.02; letter-spacing: -0.015em; color: var(--text-primary);
    margin: 1rem 0 1.2rem;
}
.mv-sub {
    font-family: var(--font-serif); font-style: italic;
    font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 400;
    line-height: 1.3; color: var(--text-secondary); max-width: 780px;
}

.mv-grid {
    max-width: 1100px; margin: 0 auto; padding: 3.5rem 2.5rem;
    display: grid; grid-template-columns: 1.7fr 1fr; gap: 4rem; align-items: start;
}
@media (max-width: 850px) { .mv-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.mv-lead {
    font-family: var(--font-serif);
    font-size: 1.4rem; line-height: 1.5; font-weight: 400;
    color: var(--text-primary); margin-bottom: 1.6rem;
}
.mv-text p {
    font-family: var(--font-sans); font-size: 0.98rem; font-weight: 300;
    line-height: 1.85; color: var(--text-secondary); margin-bottom: 1.3rem;
}
.mv-text p.mv-lead { font-family: var(--font-serif); font-size: 1.4rem; color: var(--text-primary); }

.mv-facts { display: block; border-top: 2px solid var(--text-primary); }
.mv-facts > div {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: 0.7rem 0; border-bottom: 1px solid var(--border-color);
}
.mv-facts dt {
    font-family: var(--font-sans); font-size: 0.62rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
}
.mv-facts dd {
    font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-primary); text-align: right;
}

.mv-fig { width: 100%; max-width: 1100px; margin: 0 auto 1.5rem; padding: 0 2.5rem; }
.mv-fig img, .mv-fig video { width: 100%; display: block; background: var(--bg-surface); }
.mv-fig object { width: 100%; height: 78vh; display: block; border: 1px solid var(--border-color); background: var(--bg-surface); }
.mv-fig figcaption {
    font-family: var(--font-sans); font-size: 0.72rem; font-weight: 300;
    color: var(--text-muted); margin-top: 0.7rem; display: flex; gap: 0.6rem;
}
.mv-fig .fc-num { font-weight: 600; color: var(--text-secondary); }

.mv-fig-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv-fig-2 figure { margin: 0; }
@media (max-width: 700px) { .mv-fig-2 { grid-template-columns: 1fr; } }

.mv-block { max-width: 1100px; margin: 0 auto; padding: 2.5rem 2.5rem 0; }
.mv-block p {
    font-family: var(--font-sans); font-size: 0.98rem; font-weight: 300;
    line-height: 1.85; color: var(--text-secondary); margin-bottom: 1.3rem; max-width: 720px;
}

/* --- staggered image+text rows --- */
.mv-split {
    max-width: 1100px; margin: 0 auto 2.6rem; padding: 0 2.5rem;
    display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.8rem; align-items: center;
}
.mv-split figure { margin: 0; }
.mv-split img, .mv-split video { width: 100%; display: block; background: var(--bg-surface); }
.mv-split figcaption {
    font-family: var(--font-sans); font-size: 0.72rem; font-weight: 300;
    color: var(--text-muted); margin-top: 0.7rem; display: flex; gap: 0.6rem;
}
.mv-split figcaption .fc-num { font-weight: 600; color: var(--text-secondary); }
.mv-split-text p {
    font-family: var(--font-sans); font-size: 0.95rem; font-weight: 300;
    line-height: 1.8; color: var(--text-secondary); margin-bottom: 1rem;
}
.mv-split-text p.lead {
    font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.45;
    font-weight: 400; color: var(--text-primary);
}
.mv-split.flip { grid-template-columns: 1fr 1.55fr; }
.mv-split.flip .mv-split-media { order: 2; }
.mv-split.flip .mv-split-text { text-align: right; }

/* --- uneven, vertically offset image pair --- */
.mv-duo {
    max-width: 1100px; margin: 0 auto 2.6rem; padding: 0 2.5rem;
    display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 1.8rem; align-items: start;
}
.mv-duo.right { grid-template-columns: 0.75fr 1.25fr; }
.mv-duo figure { margin: 0; }
.mv-duo img { width: 100%; display: block; background: var(--bg-surface); }
.mv-duo figcaption {
    font-family: var(--font-sans); font-size: 0.72rem; font-weight: 300;
    color: var(--text-muted); margin-top: 0.6rem; display: flex; gap: 0.6rem;
}
.mv-duo figcaption .fc-num { font-weight: 600; color: var(--text-secondary); }
.mv-duo .offset { margin-top: 3.5rem; }

.mv-fig.tall { text-align: center; }
.mv-fig.tall img { width: auto; max-width: 100%; max-height: 90vh; margin: 0 auto; }
/* imagen que necesita respirar: mas aire arriba y abajo */
.mv-fig.air { margin-top: 4.5rem; margin-bottom: 4.5rem; }
.mv-block.right p { margin-left: auto; text-align: right; }

/* --- carrete horizontal de laminas (planos, paginas de PDF) ---
   Ocupa TODO el ancho: los planos necesitan tamano para leerse. El texto que los
   acompana va siempre encima o debajo, nunca al lado. */
.mv-reel { max-width: none; margin: 0 auto 3.2rem; padding: 0 clamp(1.5rem, 4vw, 4rem); }
.mv-reel-viewport { position: relative; }
.mv-reel-track {
    display: flex; gap: 1.2rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding-bottom: 0.9rem; scrollbar-width: thin;
}
.mv-reel-track::-webkit-scrollbar { height: 6px; }
.mv-reel-track::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.mv-reel-track > figure { margin: 0; flex: 0 0 100%; scroll-snap-align: center; }
.mv-reel-track img {
    width: 100%; display: block; background: #fff;
    border: 1px solid var(--border-color);
}
.mv-reel-track figcaption {
    font-family: var(--font-sans); font-size: 0.72rem; font-weight: 300;
    color: var(--text-muted); margin-top: 0.7rem; display: flex; gap: 0.6rem;
}
.mv-reel-track figcaption .fc-num { font-weight: 600; color: var(--text-secondary); }
.mv-reel-arrow {
    position: absolute; top: 42%; transform: translateY(-50%); z-index: 3;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.92); color: var(--text-primary);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background 0.25s ease, opacity 0.25s ease;
}
.mv-reel-arrow:hover { background: #fff; }
.mv-reel-arrow:disabled { opacity: 0.25; cursor: default; }
.mv-reel-arrow i, .mv-reel-arrow svg { width: 17px; height: 17px; }
.mv-reel-arrow.prev { left: -14px; }
.mv-reel-arrow.next { right: -14px; }
.mv-reel-foot { display: flex; align-items: center; gap: 1rem; margin-top: 0.3rem; }
.mv-reel-dots { display: flex; gap: 7px; flex-wrap: wrap; }
.mv-reel-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--border-color);
    cursor: pointer; transition: background 0.25s ease, transform 0.25s ease;
}
.mv-reel-dot:hover { transform: scale(1.35); }
.mv-reel-dot.active { background: var(--text-primary); }
.mv-reel-count {
    font-family: var(--font-sans); font-size: 0.7rem; font-weight: 400;
    letter-spacing: 0.12em; color: var(--text-muted); margin-left: auto;
}
/* rotulo de texto propio del carrete, encima de la tira */
.mv-reel-head { max-width: 1100px; margin: 0 auto 1.4rem; padding: 0 2.5rem; }
.mv-reel-head .lead {
    font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.45;
    font-weight: 400; color: var(--text-primary); margin-bottom: 0.9rem;
}
.mv-reel-head p:not(.lead) {
    font-family: var(--font-sans); font-size: 0.95rem; font-weight: 300;
    line-height: 1.8; color: var(--text-secondary); margin-bottom: 1rem; max-width: 760px;
}

/* figura a sangre, de lado a lado de la pantalla */
.mv-fig.bleed { max-width: none; padding: 0; margin-bottom: 2.6rem; }
.mv-fig.bleed img { width: 100%; height: auto; }
.mv-fig.bleed figcaption { max-width: 1100px; margin: 0.7rem auto 0; padding: 0 2.5rem; }

@media (max-width: 850px) {
    .mv-split, .mv-split.flip { grid-template-columns: 1fr; gap: 1.4rem; }
    .mv-split.flip .mv-split-media { order: 0; }
    .mv-split.flip .mv-split-text { text-align: left; }
    .mv-duo, .mv-duo.right { grid-template-columns: 1fr; }
    .mv-duo .offset { margin-top: 0; }
    .mv-reel-arrow.prev { left: 4px; }
    .mv-reel-arrow.next { right: 4px; }
}

/* =====================================================================
   ADDITIONAL RESPONSIVE ADJUSTMENTS FOR MOBILE VIEWPORTS
   ===================================================================== */

@media (max-width: 768px) {
    /* 1. Header Container Padding */
    .header-container,
    header.scrolled .header-container {
        padding: 1rem 1.5rem !important;
    }

    /* 2. Main Page Containers & Content Spacing */
    .page-container {
        padding: 100px 1.2rem 4rem !important;
    }

    .tab-intro-block {
        height: auto !important;
        min-height: 100vh !important;
        padding: 100px 1.2rem 3rem !important;
    }

    .intro-title {
        font-size: clamp(2rem, 7vw, 2.8rem) !important;
    }

    /* 3. General Project and Article Paddings */
    .project-article {
        padding: 0 1.2rem !important;
        margin-bottom: 5rem !important;
    }

    .arch-index {
        padding: 100px 1.2rem 5rem !important;
    }

    .mv-intro {
        padding: 3rem 1.2rem 0 !important;
    }

    .mv-grid {
        padding: 2rem 1.2rem !important;
    }

    .mv-fig {
        padding: 0 1.2rem !important;
    }

    .mv-block {
        padding: 1.5rem 1.2rem 0 !important;
    }

    .mv-split, 
    .mv-split.flip,
    .mv-duo, 
    .mv-duo.right {
        padding: 0 1.2rem !important;
    }

    .about-name {
        font-size: 2.6rem !important;
    }

    /* 4. Slide Overlay Clean-up & Anti-overlapping */
    .project-section-block.bleed .pf-overlay {
        grid-template-columns: 1fr auto !important;
        padding: 1rem 1.2rem !important;
        gap: 1rem !important;
    }

    .bleed .pf-info {
        grid-column: 1 !important;
        max-width: 80% !important;
    }

    .bleed .pf-desc {
        display: none !important;
    }

    .bleed .pf-logo {
        display: none !important;
    }

    .bleed .pf-dots {
        grid-column: 2 !important;
        justify-self: end !important;
        align-self: center !important;
    }

    .slide-item {
        padding-bottom: 60px !important;
    }

    /* Adjust main selector grid height on mobile to fit nicely */
    .selector-grid {
        height: auto !important;
        min-height: 100vh !important;
    }

    .selector-panel {
        padding: 2.5rem 1.5rem !important;
    }
}

@media (max-width: 600px) {
    /* 5. Selector Panel fine-tuning for small screens */
    .panel-desc {
        display: none !important;
    }
    .selector-panel {
        padding: 1.5rem 1.5rem !important;
        gap: 0.5rem !important;
    }
    .panel-content {
        gap: 0.6rem !important;
    }
    .panel-title {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 480px) {
    /* 6. Console & Technology Section elements */
    .console-controls {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .console-btn {
        width: 100% !important;
        padding: 0.65rem 0 !important;
    }

    .tech-metrics {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 2rem !important;
    }

    .tech-sheet {
        text-align: center !important;
    }

    .tech-signature {
        padding: 1.5rem 1rem !important;
    }

    /* 7. General text & titles */
    .arch-statement {
        font-size: 1.8rem !important;
    }
    
    .tech-service {
        padding: 1.8rem 1.2rem !important;
    }
    
    .tech-card {
        padding: 1.8rem 1.2rem !important;
    }
}

@media (max-width: 950px) {
    /* 8. Consistency of showcase images on mobile viewports */
    .case-image-wrapper {
        order: -1 !important;
    }
}
