   :root {
    --bg: #f1eaea;
    --accent: #B4E50D;
    --text: #000000;
    --font: 'Roboto Condensed', sans-serif;
    --ease-cinematic: cubic-bezier(0.25, 1, 0.3, 1);
    --transition-slow: all 1.4s cubic-bezier(0.25, 1, 0.3, 1);
    --transition-med: all 0.7s cubic-bezier(0.25, 1, 0.3, 1);
}

/* Reset & Layout Mechanics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    overflow: hidden;
    width: 100%;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Viewport Layout System for Snap Scrolling */
.page-scroll-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    position: relative;
}

section {
    width: 100%;
    height: 100vh;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6vw 8vw;
}

/* Global Typography Weights & Spacing */
h1, h2, h3, h4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.85;
}

p {
    font-weight: 300;
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--text);
}

p.editorial-body {
    font-weight: 300;
    opacity: 0.85;
}

/* Custom Global Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--text);
}

/* Multi-page System View Router States */
.spa-view-page {
    display: none;
    width: 100%;
    height: 100%;
}
.spa-view-page.active-page {
    display: block;
}

/* ==========================================================
   FLOATING NAVIGATION ARCHITECTURE (MUSEUM OVERLAYS)
   ========================================================== */
.logo-fixed-top {
    position: fixed;
    top: 40px;
    left: 50%;
    background-color: #B4E50D;
    transform: translateX(-50%);
    z-index: 1000;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 0.25em;
    cursor: pointer;
    text-transform: uppercase;
    color: #fff;
    transition: var(--transition-med);
}

.logo-fixed-top:hover {
    opacity: 0.7;
}

.btn-contact-fixed-left {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 1000;
    background: var(--accent);
    color: var(--text);
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    overflow: hidden;
    position: fixed;
    display: inline-block;
    transition: var(--transition-med);
}

.btn-contact-fixed-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text);
    transition: var(--transition-med);
    z-index: -1;
}

.btn-contact-fixed-left:hover {
    color: var(--accent);
    background: var(--text);
}

.capsule-nav-fixed-right {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    background: rgba(231, 211, 211, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 6px;
    border-radius: 100px;
    display: flex;
    align-items: center;
}

.capsule-nav-item {
    padding: 12px 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.4);
    transition: var(--transition-med);
    border-radius: 100px;
}

.capsule-nav-item:hover, .capsule-nav-item.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.45);
}

/* Architectural Mobile Hamburger Setup */
.hamburger-menu-node {
    display: none;
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 2000;
    width: 32px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-menu-node span {
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: var(--transition-med);
    transform-origin: center;
}

.hamburger-menu-node.open-state span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu-node.open-state span:nth-child(2) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-overlay-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    z-index: 1999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateY(-100%);
    transition: var(--transition-slow);
    pointer-events: none;
}

.mobile-overlay-navigation.active-overlay {
    transform: translateY(0);
    pointer-events: all;
}

.mobile-overlay-navigation a {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.02em;
    transition: var(--transition-med);
}

.mobile-overlay-navigation a:hover {
    color: rgba(0,0,0,0.4);
}

/* Interactive Follower Circle */
.cursor-follower-ring {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 1px solid var(--text);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    transition: width 0.3s var(--ease-cinematic), height 0.3s var(--ease-cinematic), background 0.3s;
}

/* ==========================================================
   CINEMATIC REVEAL MECHANICS & MASK ARCHITECTURE
   ========================================================== */
.reveal-word-token {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: tokenRevealEffect 1.4s var(--ease-cinematic) forwards;
}

@keyframes tokenRevealEffect {
    to { opacity: 1; transform: translateY(0); }
}

.mask-vertical-reveal {
    position: relative;
    overflow: hidden;
}

.mask-vertical-reveal img, .mask-vertical-reveal video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transition: transform 12s var(--ease-cinematic);
}

section:hover .mask-vertical-reveal img,
section:hover .mask-vertical-reveal video {
    transform: scale(1);
}

.text-fade-up {
    opacity: 0;
    transform: translateY(25px);
    transition: var(--transition-slow);
}

.active-section-view .text-fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* Layout Elements Across Variations */
.split-60-40-axis {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}

.pane-left-60 { width: 60%; height: 100%; position: relative; overflow: hidden; }
.pane-right-40 { width: 40%; padding-left: 6vw; display: flex; flex-direction: column; justify-content: center; }

.outline-giant-typography {
    color: transparent;
    -webkit-text-stroke: 2px var(--text);
    font-size: clamp(6rem, 22vw, 26rem);
    line-height: 0.8;
    font-weight: 900;
    transition: var(--transition-slow);
}

.gallery-asymmetric-matrix {
    display: flex;
    gap: 4vw;
    width: 100%;
    height: 75vh;
    align-items: center;
}

.gallery-item-block {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Pinned Horizontal Gallery Matrix */
.horizontal-scroller-viewport {
    display: flex;
    width: 500vw;
    height: 100%;
    align-items: center;
}

.horizontal-story-pane {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: 6vw 8vw;
}

.typography-wall-container {
    position: absolute;
    width: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 1vh;
    z-index: 0;
}

.wall-text-line {
    font-size: clamp(6rem, 16vw, 20rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.8;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.editorial-stat-row {
    border-bottom: 1px solid rgba(0,0,0,0.15);
    padding: 3vh 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.magazine-layout-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5vw;
    margin-top: 4vh;
}

.input-editorial-line {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text);
    padding: 24px 0;
    font-family: var(--font);
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 30px;
    transition: var(--transition-med);
}

.input-editorial-line:focus {
    border-bottom-color: rgba(0,0,0,0.4);
}

/* Fullscreen Curtain Change Transition */
.spa-curtain-transition-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.spa-curtain-transition-layer.curtain-active {
    transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE RE-ENGINEERING SYSTEM
   ========================================================== */
@media (max-width: 1024px) {
    /* Hide desktop navigation */
    .capsule-nav-fixed-right, .btn-contact-fixed-left { display: none; }
    
    /* Show hamburger */
    .hamburger-menu-node { display: flex; }
    
    /* Layout adjustments */
    .split-60-40-axis { flex-direction: column; }
    .pane-left-60, .pane-right-40 { width: 100%; height: 50%; padding-left: 0; }
    .magazine-layout-columns { grid-template-columns: 1fr; }
    .gallery-asymmetric-matrix { flex-direction: column; height: auto; }
    .gallery-item-block { width: 100%; height: 45vh; }
    
    /* FIX: Remove scroll-snap and fixed height on mobile */
    body, html {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }
    
    .page-scroll-container { 
        scroll-snap-type: none; 
        height: auto; 
        overflow-y: visible; 
        min-height: 100vh;
        -webkit-overflow-scrolling: touch;
    }
    
    .spa-view-page {
        height: auto;
        min-height: 100vh;
    }
    
    section { 
        height: auto; 
        min-height: 100vh; 
        padding: 140px 6vw 80px 6vw; 
        scroll-snap-align: none;
        overflow: visible;
    }
    
    /* Fix sections with padding:0 */
    section[style*="padding:0"] {
        min-height: 100vh;
        height: auto;
        overflow: visible;
        padding: 0;
    }
    
    .horizontal-scroller-viewport { 
        flex-direction: column; 
        width: 100%; 
        height: auto; 
    }
    .horizontal-story-pane { 
        width: 100%; 
        height: 50vh; 
    }
    
    /* Ensure mobile overlay doesn't block scrolling */
    .mobile-overlay-navigation {
        pointer-events: none;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1);
    }
    .mobile-overlay-navigation.active-overlay {
        transform: translateY(0);
        pointer-events: all;
    }
    .mobile-overlay-navigation a {
        pointer-events: all;
    }
    
    /* Fix logo on mobile */
    .logo-fixed-top {
        mix-blend-mode: normal;
        background: var(--accent);
        color: var(--text);
        padding: 8px 20px;
        font-size: 1rem;
        top: 20px;
        border-radius: 2px;
        z-index: 1001;
    }
    
    /* Fix hamburger on mobile */
    .hamburger-menu-node {
        top: 20px;
        right: 20px;
        z-index: 2001;
    }
    
    .hamburger-menu-node span {
        background: var(--text);
    }
    
    /* Fix curtain on mobile */
    .spa-curtain-transition-layer {
        z-index: 9998;
    }
    
    /* Fix outline text on mobile */
    .outline-giant-typography {
        -webkit-text-stroke: 1px var(--text);
    }
    
    /* Fix typography wall on mobile */
    .typography-wall-container {
        position: relative;
        gap: 0.5vh;
    }
    
    .wall-text-line {
        font-size: clamp(3rem, 10vw, 6rem);
    }
    
    /* Fix mask reveal on mobile */
    .mask-vertical-reveal img, 
    .mask-vertical-reveal video {
        transform: scale(1);
        min-height: 300px;
    }
    
    /* Fix floating elements */
    .floating-stat-card-element,
    .floating-brutalist-block-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
    
    /* Fix radial nodes on mobile */
    .radial-informational-card-node {
        position: relative !important;
        width: 100% !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
    
    .rotating-medical-illustration-axis {
        display: none !important;
    }
    
    /* Fix hero on mobile */
    .hero-section-container {
        flex-direction: column !important;
        padding-top: 160px !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    
    .hero-left-content, 
    .hero-right-composition {
        width: 100% !important;
    }
    
    .hero-right-composition {
        margin-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .layered-geometric-wrapper {
        width: 100% !important;
        height: auto !important;
    }
    
    .oversized-outline-square {
        display: none !important;
    }
}

/* Small phone fixes */
@media (max-width: 480px) {
    .logo-fixed-top {
        font-size: 0.8rem;
        padding: 6px 14px;
        top: 15px;
    }
    
    .hamburger-menu-node {
        top: 15px;
        right: 15px;
        width: 26px;
        height: 16px;
    }
    
    section {
        padding: 120px 5vw 60px 5vw;
        min-height: 100vh;
    }
    
    .mobile-overlay-navigation a {
        font-size: 2.2rem;
    }
    
    .magazine-layout-columns {
        gap: 30px;
    }
    
    .editorial-stat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .editorial-stat-row h1 {
        font-size: clamp(3rem, 15vw, 4rem) !important;
    }
}