/* ======================================== */
/* CSS CUSTOM PROPERTIES - DESIGN SYSTEM   */
/* ======================================== */
:root {
    /* Colors */
    --color-primary: #0a0a0a;
    --color-secondary: #1a1a1a;
    --color-tertiary: #2a2a2a;
    --color-text: #1a1a1a;
    --color-text-light: #4a4a4a;
    --color-text-lighter: #6a6a6a;
    --color-bg: #ffffff;
    --color-bg-light: #fafafa;
    --color-bg-lighter: #f5f5f5;
    --color-border: rgba(17, 17, 17, 0.1);
    --color-border-hover: rgba(17, 17, 17, 0.2);
    --color-accent: #0a0a0a;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Typography */
    --font-family-primary: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 32px 80px rgba(0, 0, 0, 0.15), 0 12px 32px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;
    
    /* Z-Index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    --gradient-bg: linear-gradient(180deg, #ffffff 0%, #fafafa 50%, #f5f5f5 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.3) 100%);
    
    /* Advanced Effects */
    --blur-sm: blur(4px);
    --blur-md: blur(10px);
    --blur-lg: blur(20px);
    --glow: 0 0 20px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Smooth scroll with momentum */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
    
    * {
        scroll-margin-top: 80px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    * {
        scroll-margin-top: 70px;
    }
    
    body {
        padding-top: 70px;
    }
}

/* Focus visible styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

html.intro-active {
    overflow: hidden;
    height: 100%;
}

body.intro-active {
    overflow: hidden;
    height: 100%;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.7;
    color: var(--color-text);
    background: var(--gradient-bg);
    background-attachment: fixed;
    overflow-x: hidden;
    font-weight: var(--font-weight-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    margin: 0;
    padding-top: 80px;
}

@media (pointer: fine) {
    body {
        cursor: none;
    }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 26px;
    height: 26px;
    border: 3px solid #0a0a0a;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.9),
        0 0 0 2px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
}

.custom-cursor.active {
    opacity: 1;
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(10, 10, 10, 0.12);
    border-color: #0a0a0a;
    border-width: 3.5px;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.95),
        0 0 0 3px rgba(0, 0, 0, 0.15),
        0 6px 16px rgba(0, 0, 0, 0.25);
}

.custom-cursor.hover-small {
    width: 42px;
    height: 42px;
    border-width: 3px;
}

.custom-cursor-follower {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #0a0a0a;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), opacity 0.3s ease;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.95),
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
}

.custom-cursor-follower.active {
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
}

html.intro-active .navbar {
    opacity: 0;
    visibility: hidden;
}

.navbar.visible {
    opacity: 1;
    visibility: visible;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    height: 80px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.navbar-name {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #ffffff;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', sans-serif;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: flex-end;
}

.navbar-menu li {
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 4vw;
        height: 70px;
    }
    
    .navbar-logo {
        height: 40px;
    }
    
    .navbar-name {
        font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    }
    
    .navbar-menu {
        gap: 4px;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 20px 4vw;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    }
    
    .navbar-menu.active {
        max-height: 500px;
        padding: 20px 4vw;
    }
    
    .navbar-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 16px 0;
        font-size: 1rem;
        width: 100%;
        border-radius: 0;
    }
    
    .nav-link::after {
        left: 0;
        right: 0;
    }
    
    .navbar-container {
        height: 70px;
        gap: 20px;
    }
    
    .navbar-logo {
        height: 36px;
    }
    
    .navbar-name {
        font-size: 0.95rem;
    }
}

/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #4CAF50;
    color: #fff;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #333;
    transform: translateY(-2px);
}

/* Video Control Button */
.video-control {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 1.2rem;
}

.video-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Content Section */
.content-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.content-section p {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}


/* ========================= */
/* Cinematic Portfolio Adds  */
/* ========================= */

/* Floating buttons */
.floating-btn {
    position: fixed;
    top: 40px;
    cursor: pointer;
    border: none;
    background: #1a1a1a;
    color: #fff;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-content: center;
    transition: background 300ms, transform 200ms, box-shadow 300ms;
    font-weight: 600;
    z-index: 1200;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', sans-serif;
    outline: none;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.floating-btn__text {
    position: absolute;
    inset: 0;
    animation: text-rotation 8s linear infinite;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.floating-btn__text > span {
    position: absolute;
    transform: rotate(calc(19deg * var(--index)));
    inset: 7px;
    display: inline-block;
}
.floating-btn__circle {
    position: relative;
    width: 40px;
    height: 40px;
    overflow: hidden;
    background: #fff;
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.floating-btn__icon {
    position: absolute;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.3s ease-in-out;
}
.floating-btn__icon--copy {
    position: absolute;
    transform: translate(-150%, 150%);
    transition: transform 0.3s ease-in-out 0.1s;
}
.floating-btn:hover {
    background: #0a0a0a;
    transform: scale(1.08);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.2);
}
.floating-btn:hover .floating-btn__icon {
    color: #0a0a0a;
}
.floating-btn:hover .floating-btn__icon:first-child {
    transform: translate(150%, -150%);
}
.floating-btn:hover .floating-btn__icon--copy {
    transform: translate(0);
}
.floating-btn.left { 
    left: 40px; 
    right: auto;
}
.floating-btn.right { 
    right: 40px; 
    left: auto;
}
.floating-btn:active {
    transform: scale(0.98);
}
.floating-btn.active {
    background: #0a0a0a;
}
.floating-btn.active .floating-btn__circle {
    background: #fff;
    color: #0a0a0a;
}
.floating-btn.active:hover {
    background: #000;
    transform: scale(1.05);
}
@keyframes text-rotation {
    to {
        rotate: 360deg;
    }
}

/* Intro overlay - Enhanced Cinematic Animation */
.intro { 
    position: fixed; 
    inset: 0; 
    z-index: 2000; 
    pointer-events: none; 
    overflow: hidden;
    background: #0a0a0a;
}

.intro-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    opacity: 1;
    z-index: 1;
}

.intro-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,.03) 0%, transparent 50%),
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,.02) 49%, rgba(255,255,255,.02) 51%, transparent 52%);
    background-size: 100% 100%, 100% 100%, 200px 200px;
    opacity: 1;
    z-index: 2;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0% 0%, 0% 0%, 0 0; }
    100% { background-position: 0% 0%, 0% 0%, 200px 200px; }
}

.intro-name-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    perspective: 1000px;
    gap: 2rem;
}

.intro-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
    filter: drop-shadow(0 0 40px rgba(255,255,255,.3)) drop-shadow(0 0 80px rgba(255,255,255,.2));
    will-change: transform, opacity;
}

.intro-logo img {
    max-width: clamp(120px, 25vw, 250px);
    max-height: clamp(80px, 15vw, 180px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.intro-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', sans-serif;
    text-shadow: 
        0 0 40px rgba(255,255,255,.3),
        0 0 80px rgba(255,255,255,.2),
        0 4px 8px rgba(0,0,0,.5);
    opacity: 0;
    transform: translateY(50px) rotateX(15deg);
}

.intro-word {
    display: inline-block;
    position: relative;
    overflow: hidden;
    line-height: 1.1;
}

.intro-word::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
    z-index: 1;
    pointer-events: none;
}

.intro-word:hover::after {
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.intro-word span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotateX(-90deg);
    transform-origin: bottom center;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.intro-mask-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #0a0a0a;
    z-index: 6;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    transform: translateX(-100%);
}

.intro-mask-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: #0a0a0a;
    z-index: 6;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    transform: translateX(100%);
}

.intro-black { 
    position: absolute; 
    inset: 0; 
    background: #000; 
    opacity: 0; 
    z-index: 7;
}

.intro-white { 
    position: absolute; 
    inset: 0; 
    background: #fff; 
    opacity: 0; 
    z-index: 8;
}

.intro-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,.1) 0%, transparent 70%);
    opacity: 0;
    z-index: 4;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}

/* Intro animation responsive adjustments */
@media (max-width: 768px) {
    .intro-name-wrapper {
        gap: 1.5rem;
    }
    
    .intro-logo img {
        max-width: clamp(100px, 20vw, 200px);
        max-height: clamp(60px, 12vw, 150px);
    }
    
    .intro-name {
        font-size: clamp(1.8rem, 6vw, 3.5rem);
        gap: 0.4em;
        letter-spacing: 0.1em;
    }
    
    .intro-word {
        line-height: 1.2;
    }
    
    .intro-pattern {
        background-size: 100% 100%, 100% 100%, 150px 150px;
    }
}

@media (max-width: 480px) {
    .intro-name-wrapper {
        gap: 1rem;
    }
    
    .intro-logo img {
        max-width: clamp(80px, 18vw, 150px);
        max-height: clamp(50px, 10vw, 120px);
    }
    
    .intro-name {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        gap: 0.3em;
        letter-spacing: 0.08em;
    }
    
    .intro-mask-left,
    .intro-mask-right {
        clip-path: polygon(0 0, 100% 0, 0 100%);
    }
}

/* Torchlight panels */
.overlay-panel { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,.95); 
    color: #fff; 
    z-index: 1500; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity .4s cubic-bezier(0.4, 0, 0.2, 1), visibility .4s ease, backdrop-filter .4s ease; 
    backdrop-filter: blur(0px); 
}
.overlay-panel.active { 
    opacity: 1; 
    visibility: visible; 
    backdrop-filter: blur(8px); 
}
.overlay-panel .panel-close { 
    position: absolute; 
    top: 32px; 
    right: 32px; 
    font-size: 32px; 
    background: rgba(255,255,255,.1); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,.2); 
    border-radius: 50%; 
    width: 48px; 
    height: 48px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: all .3s ease; 
    backdrop-filter: blur(10px);
    z-index: 10;
}
.overlay-panel .panel-close:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.3);
    transform: rotate(90deg) scale(1.1);
}
.overlay-panel .torch { 
    position: absolute; 
    inset: 0; 
    pointer-events: none; 
    background: radial-gradient(400px 400px at 50% 50%, rgba(255,255,255,.15), rgba(0,0,0,.98) 70%); 
    mix-blend-mode: screen; 
    opacity: .85; 
    transition: opacity .4s ease; 
}
.overlay-panel.active .torch {
    opacity: 1;
}
.overlay-panel .panel-content { 
    position: relative; 
    z-index: 2; 
    padding: 20vh 10vw; 
    max-width: 1400px; 
    margin: 0 auto; 
    transform: translateY(20px); 
    opacity: 0; 
    transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1), opacity .5s ease; 
}
.overlay-panel.active .panel-content { 
    transform: translateY(0); 
    opacity: 1; 
}
.overlay-panel nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.overlay-panel nav a { 
    display: block; 
    color: #fff; 
    text-decoration: none; 
    font-size: clamp(2rem, 4vw, 3.5rem); 
    margin: 12px 0; 
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); 
    font-weight: 600;
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 0;
    opacity: 0.9;
}
.overlay-panel nav a::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    transition: width .3s ease;
}
.overlay-panel nav a:hover { 
    transform: translateX(16px); 
    opacity: 1; 
    padding-left: 24px;
}
.overlay-panel nav a:hover::before {
    width: 16px;
}
.contact-info { margin: 24px 0; }
.contact-info a { display: block; color: #fff; text-decoration: none; margin: 12px 0; font-size: 1.2rem; transition: opacity .2s ease; }
.contact-info a:hover { opacity: .8; }
.contact-info address { font-style: normal; color: #cfcfcf; margin-top: 12px; line-height: 1.6; }
.contact-hours { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.contact-hours p { margin: 8px 0; color: #cfcfcf; }

/* directional reveal */
.menu-panel { 
    clip-path: inset(0 50% 0 0); 
    transition: clip-path .6s cubic-bezier(0.4, 0, 0.2, 1); 
}
.menu-panel.active { 
    clip-path: inset(0 0% 0 0); 
}
.contact-panel { 
    clip-path: inset(0 0 0 50%); 
    transition: clip-path .6s cubic-bezier(0.4, 0, 0.2, 1); 
}
.contact-panel.active { 
    clip-path: inset(0 0 0 0); 
}

/* Hero */
.hero { 
    position: relative; 
    height: 100vh; 
    overflow: hidden; 
    min-height: 600px; 
    opacity: 0;
    will-change: opacity, transform;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive hero height adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        height: 100vh;
        max-height: 100vh;
    }
}

@media (max-height: 600px) {
    .hero {
        min-height: 100vh;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 100vh;
        height: auto;
    }
}

/* Hero Particle Effect */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    opacity: 0;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) scale(1);
        opacity: 0;
    }
}

.hero-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 15s; }
.hero-particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.hero-particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 20s; }
.hero-particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 16s; }
.hero-particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 22s; }
.hero-particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 17s; }
.hero-particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 19s; }
.hero-particle:nth-child(8) { left: 80%; animation-delay: 4.5s; animation-duration: 21s; }
.hero-particle:nth-child(9) { left: 90%; animation-delay: 1.5s; animation-duration: 18s; }
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
    opacity: 0;
    will-change: transform, opacity;
    transform: scale(1.05);
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: heroImageFadeIn 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-bg.loaded {
    opacity: 1;
    transform: scale(1);
}

@keyframes heroImageFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        rgba(0,0,0,.08) 0%, 
        rgba(0,0,0,.12) 25%,
        rgba(0,0,0,.06) 50%, 
        rgba(0,0,0,.15) 75%,
        rgba(0,0,0,.2) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.1) 0%,
        transparent 25%,
        transparent 75%,
        rgba(0,0,0,.25) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-overlay { 
    position: absolute; 
    inset: 0; 
    background: radial-gradient(
        ellipse 120% 100% at center 45%,
        transparent 0%,
        rgba(0,0,0,.08) 30%,
        rgba(0,0,0,.2) 60%,
        rgba(0,0,0,.4) 100%
    );
    pointer-events: none; 
    z-index: 2;
    opacity: 0.9;
    mix-blend-mode: multiply;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 30%,
        transparent 0%,
        rgba(0,0,0,.15) 50%,
        rgba(0,0,0,.35) 100%
    );
    pointer-events: none;
}

/* Mobile optimization - remove fixed attachment */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
        background-position: center top;
        transform: scale(1) !important;
    }
    
    .hero-overlay {
        background: radial-gradient(
            ellipse 100% 80% at center 40%,
            transparent 0%,
            rgba(0,0,0,.12) 35%,
            rgba(0,0,0,.25) 60%,
            rgba(0,0,0,.45) 100%
        );
    }
    
    .hero-overlay::before {
        background: radial-gradient(
            circle at 50% 35%,
            transparent 0%,
            rgba(0,0,0,.2) 50%,
            rgba(0,0,0,.4) 100%
        );
    }
}

/* Tablet optimization */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-bg {
        background-attachment: scroll;
        background-position: center center;
    }
}

/* High DPI displays - better image rendering */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg {
        image-rendering: auto;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

/* Performance: Reduce effects on low-end devices */
@media (prefers-reduced-motion: reduce) {
    .hero-bg {
        animation: none;
        opacity: 1;
        transform: scale(1);
        transition: none;
    }
}
.hero-grid { display: none; }
.hero-foreground { 
    position: relative; 
    z-index: 3; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: #fff; 
    padding: 0 6vw; 
}
.hero-content-wrapper { 
    max-width: 1400px; 
    width: 100%; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 0 4vw;
    box-sizing: border-box;
}
.hero-title-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: fit-content;
    max-width: 90vw;
    position: relative;
    padding: 50px 60px;
    backdrop-filter: blur(20px);
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 20px 60px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1);
    box-sizing: border-box;
    overflow: hidden;
}
.site-title { 
    font-size: clamp(3rem, 10vw, 8.5rem); 
    line-height: .88; 
    letter-spacing: -0.02em; 
    font-weight: 900; 
    text-transform: uppercase; 
    text-shadow: 0 8px 40px rgba(0,0,0,.9), 0 4px 16px rgba(0,0,0,.7), 0 2px 8px rgba(0,0,0,.5), 0 0 2px rgba(0,0,0,.8); 
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', sans-serif;
    display: block;
    position: relative;
    color: #fff;
    filter: drop-shadow(0 0 20px rgba(0,0,0,.5));
    width: 100%;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
    overflow: hidden;
}
.site-title-accent {
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.95) 50%, rgba(255,255,255,.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,.6)) drop-shadow(0 2px 8px rgba(0,0,0,.4));
}
.site-title-accent::after {
    content: '';
    position: absolute;
    bottom: 8%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
    transform: scaleX(0);
    animation: underlineExpand 1.2s ease-out 0.5s forwards;
}
@keyframes underlineExpand {
    to { transform: scaleX(1); }
}
.hero-ctas { 
    display: flex; 
    gap: 24px; 
    margin-top: 0;
    justify-content: center; 
    flex-wrap: wrap; 
}
.cta { 
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    padding: 18px 42px; 
    border: 2px solid rgba(255,255,255,.7); 
    color: #fff; 
    text-decoration: none; 
    border-radius: 2px; 
    transition: all .5s cubic-bezier(0.4, 0, 0.2, 1); 
    font-weight: 600; 
    font-size: clamp(0.9rem, 1.1vw, 1rem); 
    letter-spacing: 0.1em; 
    backdrop-filter: blur(20px); 
    background: rgba(0,0,0,.3); 
    text-transform: uppercase; 
    position: relative;
    overflow: hidden;
    min-width: 180px;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
    box-shadow: 0 4px 20px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.2);
}
.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,.15);
    transition: left .5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
.cta:hover::before {
    left: 0;
}
.cta:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.3); 
    border-color: rgba(255,255,255,.95); 
    background: rgba(0,0,0,.4); 
}
.cta.primary { 
    background: #fff; 
    color: #0a0a0a; 
    border-color: #fff; 
    font-weight: 700; 
    box-shadow: 0 8px 30px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.15);
}
.cta.primary::before {
    background: rgba(0,0,0,.05);
}
.cta.primary:hover { 
    background: #f5f5f5; 
    box-shadow: 0 24px 60px rgba(255,255,255,.4), 0 8px 24px rgba(255,255,255,.3); 
    transform: translateY(-5px) scale(1.03); 
}
.scroll-cue { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); color: #fff; text-decoration: none; opacity: .85; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 10px 20px; font-size: .85rem; backdrop-filter: blur(10px); background: rgba(255,255,255,.05); transition: all .3s ease; font-weight: 500; letter-spacing: 0.05em; }
.scroll-cue:hover { opacity: 1; transform: translateX(-50%) translateY(-4px); border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.scroll-cue::after {
    content: '↓';
    display: inline-block;
    margin-left: 8px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

/* Stats Section */
.stats { padding: 10vh 6vw; background: #fafafa; border-top: 1px solid rgba(17,17,17,.08); border-bottom: 1px solid rgba(17,17,17,.08); }
.stats-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat-item { text-align: center; }
.stat-number { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; color: #111; margin-bottom: 8px; line-height: 1; }
.stat-label { font-size: clamp(0.9rem, 1.2vw, 1rem); color: #666; letter-spacing: .05rem; text-transform: uppercase; }

/* Content / Boxes */
.content { position: relative; background: #fff; padding: 0; border-top: 1px solid rgba(17,17,17,.05); }
.stack { display: grid; gap: 24px; max-width: 1000px; margin: 0 auto; }
.box { border: 1px solid #111; padding: 48px; font-size: clamp(1.2rem, 2vw, 2rem); background: #fff; transform: translateY(40px); opacity: 0; }

/* Large Section Headings */
.section-header-wrapper { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 8vh 6vw;
    position: relative;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}
.section-header-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,.02), transparent 70%);
    pointer-events: none;
}
.services .section-header-wrapper,
.cases .section-header-wrapper {
    background: #fafafa;
}

/* Services Special Heading Style */
.services-header-special {
    background: #fafafa;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.services-header-special::before {
    background: radial-gradient(circle at 30% 50%, rgba(26,26,26,.03), transparent 60%);
}
.services-heading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}
.services-heading-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(26,26,26,.2), transparent);
    max-width: 200px;
    transform-origin: center;
}
.services-title-special {
    display: flex;
    align-items: baseline;
    gap: 24px;
    font-size: clamp(4.5rem, 14vw, 10.5rem);
    font-weight: 700;
    letter-spacing: -0.08em;
    color: #0a0a0a;
    text-transform: uppercase;
    line-height: 0.85;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', sans-serif;
    position: relative;
    opacity: 1;
}
.services-title-number {
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(26,26,26,.4);
    position: relative;
    padding-right: 8px;
}
.services-title-number::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: rgba(26,26,26,.15);
}
.services-title-text {
    position: relative;
    display: inline-block;
    font-size: clamp(3.5rem, 11vw, 8rem);
    font-family: 'Poppins', sans-serif;
}
.services-title-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #1a1a1a;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.services-header-special.animate .services-title-text::before {
    width: 100%;
}

/* About Special Heading Style */
.about-header-special {
    background: #fafafa;
    flex-direction: column;
    gap: 60px;
    position: relative;
    padding-bottom: 12vh;
}
.about-header-special::before {
    background: radial-gradient(circle at 30% 50%, rgba(26,26,26,.03), transparent 60%);
}
.about-story-section {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.about-heading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}
.about-heading-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(26,26,26,.2), transparent);
    max-width: 200px;
    transform-origin: center;
}
.about-title-special {
    display: flex;
    align-items: baseline;
    gap: 24px;
    font-size: clamp(4.5rem, 14vw, 10.5rem);
    font-weight: 700;
    letter-spacing: -0.08em;
    color: #0a0a0a;
    text-transform: uppercase;
    line-height: 0.85;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', sans-serif;
    position: relative;
    opacity: 1;
}
.about-title-number {
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(26,26,26,.4);
    position: relative;
    padding-right: 8px;
}
.about-title-number::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: rgba(26,26,26,.15);
}
.about-title-text {
    position: relative;
    display: inline-block;
    font-size: clamp(3.5rem, 11vw, 8rem);
    font-family: 'Poppins', sans-serif;
}
.about-title-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #1a1a1a;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-header-special.animate .about-title-text::before {
    width: 100%;
}
.about-heading-subtitle {
    font-size: clamp(0.75rem, 1.1vw, 0.9rem);
    color: rgba(26,26,26,.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.3s;
    text-align: center;
}
.about-header-special.animate .about-heading-subtitle {
    opacity: 1;
    transform: translateY(0);
}
.about-story-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
}
.about-header-special.animate .about-story-content {
    opacity: 1;
    transform: translateY(0);
}
.about-story-text {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 8px;
}
.about-story-text p {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: #2a2a2a;
    line-height: 1.85;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.about-story-image {
    position: sticky;
    top: 120px;
    align-self: start;
    margin-top: 0;
}
.about-story-image::before {
    content: '';
    position: absolute;
    top: -24px;
    left: -24px;
    right: 24px;
    bottom: 24px;
    background: #f0f0f0;
    z-index: -1;
    border-radius: 4px;
    opacity: 0.8;
}
.about-story-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(17,17,17,.08);
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
}
.about-story-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(17,17,17,.1);
    background: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
    transition: all .5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 2px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.about-story-image:hover img {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
    border-color: rgba(17,17,17,.15);
}
.about-story-image:hover::before {
    opacity: 1;
    transform: translate(4px, 4px);
}

@media (max-width: 768px) {
    .section-header-wrapper {
        padding: 6vh 4vw;
        min-height: 50vh;
        overflow: visible;
    }
    
    .about-heading-container {
        flex-direction: column;
        gap: 24px;
        padding: 0 4vw;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    .about-heading-line {
        width: 100px;
        max-width: none;
    }
    .about-title-special {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        text-align: center;
    }
    .about-title-text {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .about-title-number::after {
        display: none;
    }
    .about-title-number {
        padding-right: 0;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(26,26,26,.15);
    }
    .about-story-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-story-text {
        gap: 24px;
        padding-top: 0;
    }
    .about-story-image {
        margin-top: 0;
    }
    .about-story-image::before {
        top: -16px;
        left: -16px;
        right: 16px;
        bottom: 16px;
    }
    .about-header-special {
        gap: 40px;
        padding-bottom: 8vh;
    }
    .services-heading-container {
        flex-direction: column;
        gap: 24px;
    }
    .services-heading-line {
        width: 100px;
        max-width: 100px;
    }
    .services-title-special {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        text-align: center;
    }
    .services-title-text {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .services-heading-container,
    .projects-heading-container,
    .cases-heading-container,
    .testimonials-heading-container,
    .gallery-heading-container,
    .lets-talk-heading-container {
        padding: 0 4vw;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    .services-title-number::after {
        display: none;
    }
    .services-title-number {
        padding-right: 0;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(26,26,26,.15);
    }
    .projects-heading-container {
        flex-direction: column;
        gap: 24px;
    }
    .projects-heading-line {
        width: 100px;
        max-width: 100px;
    }
    .projects-title-special {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        max-width: 100%;
        text-align: center;
        font-size: clamp(3rem, 12vw, 6rem) !important;
        padding: 0 4vw;
        box-sizing: border-box;
    }
    .projects-title-text {
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        display: block;
    }
    .projects-title-number::after {
        display: none;
    }
    .projects-title-number {
        padding-right: 0;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(26,26,26,.15);
        text-align: center;
        width: 100%;
        display: block;
        margin: 0 auto;
    }
    .lets-talk-heading-container {
        flex-direction: column;
        gap: 24px;
    }
    .lets-talk-heading-line {
        width: 100px;
        max-width: 100px;
    }
    .lets-talk-title-special {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        text-align: center;
    }
    .lets-talk-title-text {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .lets-talk-title-number::after {
        display: none;
    }
    .lets-talk-title-number {
        padding-right: 0;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(26,26,26,.15);
        text-align: center;
        width: 100%;
        display: block;
        margin: 0 auto;
    }
    .cases-heading-container {
        flex-direction: column;
        gap: 24px;
    }
    .cases-heading-line {
        width: 100px;
        max-width: 100px;
    }
    .cases-title-special {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        text-align: center;
    }
    .cases-title-text {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .cases-title-number::after {
        display: none;
    }
    .cases-title-number {
        padding-right: 0;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(26,26,26,.15);
        text-align: center;
        width: 100%;
        display: block;
        margin: 0 auto;
    }
    .testimonials-heading-container {
        flex-direction: column;
        gap: 24px;
    }
    .testimonials-heading-line {
        width: 100px;
        max-width: 100px;
    }
    .testimonials-title-special {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        max-width: 100%;
        text-align: center;
        font-size: clamp(3rem, 12vw, 6rem) !important;
        padding: 0 4vw;
        box-sizing: border-box;
    }
    .testimonials-title-text {
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        display: block;
    }
    .testimonials-title-number::after {
        display: none;
    }
    .testimonials-title-number {
        padding-right: 0;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(26,26,26,.15);
        text-align: center;
        width: 100%;
        display: block;
        margin: 0 auto;
    }
    .gallery-heading-container {
        flex-direction: column;
        gap: 24px;
    }
    .gallery-heading-line {
        width: 100px;
        max-width: 100px;
    }
    .gallery-title-special {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        max-width: 100%;
        text-align: center;
        font-size: clamp(3rem, 12vw, 6rem) !important;
        padding: 0 4vw;
        box-sizing: border-box;
    }
    .gallery-title-text {
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        display: block;
    }
    .gallery-title-number::after {
        display: none;
    }
    .gallery-title-number {
        padding-right: 0;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(26,26,26,.15);
        text-align: center;
        width: 100%;
        display: block;
        margin: 0 auto;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Reduce font sizes on very small screens for better visibility */
    .about-title-special,
    .services-title-special,
    .projects-title-special,
    .cases-title-special,
    .testimonials-title-special,
    .gallery-title-special,
    .lets-talk-title-special {
        font-size: clamp(2.25rem, 9vw, 4.5rem);
        gap: 8px;
    }
    
    .about-title-number,
    .services-title-number,
    .projects-title-number,
    .cases-title-number,
    .testimonials-title-number,
    .gallery-title-number,
    .lets-talk-title-number {
        font-size: clamp(1.15rem, 3vw, 1.9rem);
    }
}

@media (max-width: 480px) {
    .about-heading-container,
    .services-heading-container,
    .projects-heading-container,
    .cases-heading-container,
    .testimonials-heading-container,
    .gallery-heading-container,
    .lets-talk-heading-container {
        padding: 0 3vw;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .about-title-special,
    .services-title-special,
    .cases-title-special,
    .lets-talk-title-special {
        font-size: clamp(1.9rem, 7.5vw, 3.75rem) !important;
        gap: 6px;
        line-height: 1.2;
    }
    
    /* Specific fixes for Projects, Testimonials, Gallery */
    .projects-title-special,
    .testimonials-title-special,
    .gallery-title-special {
        font-size: clamp(1.5rem, 6.75vw, 3.4rem) !important;
        gap: 6px;
        line-height: 1.2;
        padding: 0 3vw;
        white-space: normal !important;
    }
    
    .about-title-text,
    .services-title-text,
    .cases-title-text,
    .lets-talk-title-text {
        font-size: clamp(1.2rem, 5.4vw, 2.7rem);
    }
    
    .projects-title-text,
    .testimonials-title-text,
    .gallery-title-text {
        font-size: clamp(1.1rem, 4.8vw, 2.4rem) !important;
        white-space: normal !important;
        max-width: 100%;
        display: block;
    }
    
    .about-title-number,
    .services-title-number,
    .cases-title-number,
    .lets-talk-title-number {
        font-size: clamp(0.9rem, 2.6vw, 1.5rem);
    }
    
    .projects-title-number,
    .testimonials-title-number,
    .gallery-title-number {
        font-size: clamp(0.75rem, 2.25vw, 1.35rem) !important;
    }
}
.section-title-large { 
    font-size: clamp(8rem, 21vw, 16.5rem); 
    font-weight: 700; 
    letter-spacing: -0.1em; 
    color: #0a0a0a; 
    text-transform: uppercase;
    line-height: 0.82;
    text-align: center;
    opacity: 1 !important;
    transform: translateY(0) scale(1);
    white-space: nowrap;
    width: 100%;
    padding: 0 2vw;
    box-sizing: border-box;
    will-change: opacity, transform;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', sans-serif;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .section-title-large {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 4vw;
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .section-title-large {
        font-size: clamp(3rem, 15vw, 6rem);
        line-height: 1.2;
        padding: 0 4vw;
    }
}
.testimonials .section-title-large {
    font-size: clamp(4.9rem, 13.5vw, 10.5rem);
}
.cases .section-title-large {
    font-size: clamp(5.25rem, 15vw, 12rem);
}

/* About Section */
.about {
    padding: 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
    border-top: 1px solid var(--color-border);
    position: relative;
    isolation: isolate;
}
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(26,26,26,.015), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(26,26,26,.01), transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.about > * {
    position: relative;
    z-index: 1;
}
.about-content {
    padding: 12vh 6vw;
    background: #fff;
    opacity: 0;
    transform: translateY(50px);
}
.about-inner {
    max-width: 1400px;
    margin: 0 auto;
}
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: center;
}
.about-text {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.about-text p {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: #2a2a2a;
    line-height: 1.85;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.about-image {
    position: relative;
}
.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: #f5f5f5;
    z-index: -1;
    border-radius: 2px;
}
.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    position: relative;
    border-radius: var(--radius-sm);
    will-change: transform, box-shadow;
}
.about-image:hover img {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--color-border-hover);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-text {
        gap: 20px;
    }
}
.reveal { transform: translateY(30px); opacity: 0; }
/* Fallback: Show reveal elements if JS fails or hasn't loaded yet */
.no-js .reveal,
.reveal.visible { transform: translateY(0); opacity: 1; }

/* Services Section */
.services { 
    padding: 0; 
    background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg) 100%); 
    border-top: 1px solid var(--color-border); 
    position: relative;
    isolation: isolate;
}
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 70%, rgba(26,26,26,.015), transparent 50%),
        radial-gradient(circle at 20% 30%, rgba(26,26,26,.01), transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.services > * {
    position: relative;
    z-index: 1;
}
.services-grid { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 4vh 6vw 8vh; 
    display: grid; 
    grid-template-columns: repeat(3, minmax(0,1fr)); 
    gap: 32px; 
    opacity: 0; 
    transform: translateY(50px); 
    transition: opacity 1s ease, transform 1s ease;
}
.services-header-special.animate ~ .services-grid,
.services-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Projects Special Heading Style */
.projects-header-special {
    background: #fff;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.projects-header-special::before {
    background: radial-gradient(circle at 30% 50%, rgba(26,26,26,.03), transparent 60%);
}
.projects-heading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}
.projects-heading-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(26,26,26,.2), transparent);
    max-width: 200px;
    transform-origin: center;
}
.projects-title-special {
    display: flex;
    align-items: baseline;
    gap: 24px;
    font-size: clamp(4.5rem, 14vw, 10.5rem);
    font-weight: 700;
    letter-spacing: -0.08em;
    color: #0a0a0a;
    text-transform: uppercase;
    line-height: 0.85;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', sans-serif;
    position: relative;
    opacity: 1;
}
.projects-title-number {
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(26,26,26,.4);
    position: relative;
    padding-right: 8px;
}
.projects-title-number::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: rgba(26,26,26,.15);
}
.projects-title-text {
    position: relative;
    display: inline-block;
    font-size: clamp(3.5rem, 11vw, 8rem);
    font-family: 'Poppins', sans-serif;
}
.projects-title-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #1a1a1a;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.projects-header-special.animate .projects-title-text::before {
    width: 100%;
}

/* Let's Talk Section - Heading */
.lets-talk-header-special {
    background: #fff;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.lets-talk-header-special::before {
    background: radial-gradient(circle at 30% 50%, rgba(26,26,26,.03), transparent 60%);
}
.lets-talk-heading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}
.lets-talk-heading-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(26,26,26,.2), transparent);
    max-width: 200px;
    transform-origin: center;
}
.lets-talk-title-special {
    display: flex;
    align-items: baseline;
    gap: 24px;
    font-size: clamp(4.5rem, 14vw, 10.5rem);
    font-weight: 700;
    letter-spacing: -0.08em;
    color: #0a0a0a;
    text-transform: uppercase;
    line-height: 0.85;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', sans-serif;
    position: relative;
    opacity: 1;
}
.lets-talk-title-number {
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(26,26,26,.4);
    position: relative;
    padding-right: 8px;
}
.lets-talk-title-number::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: rgba(26,26,26,.15);
}
.lets-talk-title-text {
    position: relative;
    display: inline-block;
    font-size: clamp(3.5rem, 11vw, 8rem);
    font-family: 'Poppins', sans-serif;
}
.lets-talk-title-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #1a1a1a;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.lets-talk-header-special.animate .lets-talk-title-text::before {
    width: 100%;
}

/* Let's Talk Section - Content */
.lets-talk-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4vh 6vw 4vh;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}
.lets-talk-header-special.animate ~ .lets-talk-content,
.lets-talk-content.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Fallback: Show content if JS fails */
.no-js .lets-talk-content { opacity: 1; transform: translateY(0); }
.lets-talk-content {
    display: grid;
    gap: 60px;
}
.lets-talk-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.lets-talk-intro h3 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 600;
    margin-bottom: 20px;
    color: #0a0a0a;
    letter-spacing: -0.02em;
}
.lets-talk-intro p {
    font-size: clamp(0.85rem, 1.35vw, 1rem);
    line-height: 1.8;
    color: #4a4a4a;
}

/* Contact Form */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
    transition: color var(--transition-base);
}

.form-group:focus-within label {
    color: var(--color-accent);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    font-size: 1rem;
    font-family: var(--font-family-primary);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 
        0 0 0 3px rgba(26,26,26,.08),
        var(--shadow-md);
    transform: translateY(-1px);
    background: var(--color-bg);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .cta {
    width: 100%;
    margin-top: 12px;
    padding: 18px 36px;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-base);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.contact-form .cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-form .cta:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.section-title { font-size: clamp(1.6rem, 3.2vw, 2.8rem); text-align: center; margin-bottom: 40px; font-weight: 600; letter-spacing: -.02em; }
.service-card { 
    border: 1px solid var(--color-border); 
    padding: 2.5rem; 
    background: var(--color-bg); 
    transition: all var(--transition-slow); 
    position: relative; 
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
}
.service-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 4px; 
    height: 0; 
    background: var(--gradient-primary); 
    transition: height var(--transition-slow); 
    z-index: 1;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(26,26,26,.04), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}
.service-card:hover::before { height: 100%; }
.service-card:hover::after { opacity: 1; }
.service-card:hover { 
    transform: translateY(-10px) scale(1.01) rotateX(2deg) translate(var(--magnetic-x, 0), var(--magnetic-y, 0)); 
    box-shadow: var(--shadow-2xl); 
    border-color: var(--color-border-hover); 
    background: var(--color-bg);
}

.service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h3 { font-size: clamp(1rem, 1.7vw, 1.25rem); margin-bottom: 16px; font-weight: 600; letter-spacing: -0.02em; color: #1a1a1a; }
.service-card p { font-size: clamp(0.8rem, 1.05vw, 0.9rem); color: #4a4a4a; line-height: 1.75; letter-spacing: -0.01em; }

/* Cases */
.cases { padding: 0; background: #fafafa; border-top: 1px solid rgba(17,17,17,.05); }
.cases-header-special {
    background: #fafafa;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.cases-header-special::before {
    background: radial-gradient(circle at 30% 50%, rgba(26,26,26,.03), transparent 60%);
}
.cases-heading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}
.cases-heading-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(26,26,26,.2), transparent);
    max-width: 200px;
    transform-origin: center;
}
.cases-title-special {
    display: flex;
    align-items: baseline;
    gap: 24px;
    font-size: clamp(4.5rem, 14vw, 10.5rem);
    font-weight: 700;
    letter-spacing: -0.08em;
    color: #0a0a0a;
    text-transform: uppercase;
    line-height: 0.85;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', sans-serif;
    position: relative;
    opacity: 1;
}
.cases-title-number {
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(26,26,26,.4);
    position: relative;
    padding-right: 8px;
}
.cases-title-number::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: rgba(26,26,26,.15);
}
.cases-title-text {
    position: relative;
    display: inline-block;
    font-size: clamp(3.5rem, 11vw, 8rem);
    font-family: 'Poppins', sans-serif;
}
.cases-title-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #1a1a1a;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.cases-header-special.animate .cases-title-text::before {
    width: 100%;
}
.cases-inner { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 4vh 6vw 8vh; 
    opacity: 0; 
    transform: translateY(50px); 
    transition: opacity 1s ease, transform 1s ease;
}
.cases-header-special.animate ~ .cases-inner,
.cases-inner.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Fallback: Show content if JS fails */
.no-js .cases-inner { opacity: 1; transform: translateY(0); }
.cases-wrap { 
    display: grid; 
    gap: 32px; 
    grid-template-columns: repeat(3, minmax(0,1fr)); 
}
.case { 
    border: 1px solid var(--color-border); 
    background: var(--color-bg); 
    display: flex; 
    flex-direction: column; 
    transition: all var(--transition-slow); 
    overflow: hidden; 
    border-radius: var(--radius-sm);
    position: relative;
    max-height: 600px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
}
.case::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: height var(--transition-slow);
    z-index: 2;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.case::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.02) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
    z-index: 1;
}
.case:hover::before {
    height: 100%;
}
.case:hover::after {
    opacity: 1;
}
.case:hover { 
    transform: translateY(-14px) scale(1.02) rotateY(2deg) translate(var(--magnetic-x, 0), var(--magnetic-y, 0)); 
    box-shadow: var(--shadow-2xl); 
    border-color: var(--color-border-hover); 
    background: var(--color-bg);
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger Animation Delay */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }

/* Advanced Parallax Effects */
.parallax-element {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Enhanced Section Dividers */
.section-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
    margin: 8vh 0;
    opacity: 0.5;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-bg);
    transform: translateY(-50%);
}

.section-divider::before {
    left: 20%;
}

.section-divider::after {
    right: 20%;
}

/* Smooth Scroll Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.case-media { 
    overflow: hidden; 
    position: relative; 
    background: #f8f8f8; 
    aspect-ratio: 1 / 1;
    min-height: 0;
    flex-shrink: 0;
}
.case-media::after { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: linear-gradient(to bottom, rgba(0,0,0,.15), transparent 40%, transparent 60%, rgba(0,0,0,.1)); 
    opacity: 0; 
    transition: opacity .5s ease; 
    z-index: 1;
}
.case:hover .case-media::after { 
    opacity: 1; 
}
.case-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent, rgba(0,0,0,.08));
    opacity: 0;
    transition: opacity .5s ease;
    z-index: 1;
    pointer-events: none;
}
.case:hover .case-media::before {
    opacity: 1;
}
.case-media img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1); 
}
.case:hover .case-media img { 
    transform: scale(1.12); 
}
.case-body { 
    padding: 24px 28px; 
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
}
.case-body h3 { 
    margin-bottom: 0; 
    font-size: clamp(0.95rem, 1.6vw, 1.2rem); 
    font-weight: 600; 
    letter-spacing: -0.03em; 
    color: #1a1a1a; 
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.case-body p { 
    font-size: clamp(0.75rem, 1vw, 0.85rem); 
    color: #4a4a4a; 
    line-height: 1.6; 
    margin-bottom: 0; 
    letter-spacing: -0.01em; 
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
}
.case-meta { 
    font-size: 0.75rem; 
    color: #6a6a6a; 
    margin-top: 0; 
    padding-top: 12px; 
    border-top: 1px solid rgba(17,17,17,.1); 
    letter-spacing: 0.02em; 
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Before / After Section */
.before-after { padding: 0; background: #fafafa; border-top: 1px solid rgba(17,17,17,.05); }
.before-after-inner { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 4vh 6vw 8vh; 
    opacity: 0; 
    transform: translateY(50px); 
    transition: opacity 1s ease, transform 1s ease;
}
.projects-header-special.animate ~ .before-after-inner,
.before-after-inner.visible {
    opacity: 1;
    transform: translateY(0);
}
.ba-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.ba-image-wrapper { position: sticky; top: 120px; }
.ba-image-wrapper .ba { 
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    will-change: transform, box-shadow;
}
.ba-image-wrapper .ba:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-6px) scale(1.01);
}

/* Project Image Display */
.project-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    will-change: transform, box-shadow;
    background: #fff;
}

.project-image:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-6px) scale(1.01);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform var(--transition-slow);
}

.project-image:hover img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .ba-image-wrapper {
        position: relative;
        top: 0;
    }
    
    .project-image {
        margin-bottom: 40px;
    }
}
.ba-content-wrapper { display: flex; flex-direction: column; gap: 40px; }
.ba-header { margin-bottom: 0; }
.ba-header-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 24px; flex-wrap: wrap; }
.ba-title { 
    font-size: clamp(1.75rem, 3.6vw, 3rem); 
    margin-bottom: 0; 
    font-weight: var(--font-weight-semibold); 
    letter-spacing: -.03em; 
    flex: 1; 
    color: var(--color-text); 
    line-height: 1.1;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ba-badge { 
    padding: 10px 24px; 
    background: var(--color-primary); 
    color: var(--color-white); 
    border: 1px solid var(--color-primary); 
    font-size: 0.75rem; 
    letter-spacing: 0.12rem; 
    text-transform: uppercase; 
    font-weight: var(--font-weight-semibold); 
    white-space: nowrap; 
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}
.ba-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.ba-subtitle { 
    font-size: clamp(0.9rem, 1.2vw, 1.05rem); 
    color: var(--color-text-light); 
    line-height: 1.7; 
    margin-bottom: 24px; 
    font-weight: 400; 
    letter-spacing: -0.01em; 
}
.ba-description { 
    font-size: clamp(0.8rem, 1.1vw, 0.9rem); 
    color: var(--color-text-lighter); 
    line-height: 1.8; 
    margin-top: 32px; 
    letter-spacing: -0.01em; 
}
.ba-features { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(17,17,17,.1); }
.ba-feature-item { display: flex; align-items: flex-start; gap: 16px; }
.ba-feature-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.ba-feature-text { display: flex; flex-direction: column; gap: 4px; }
.ba-feature-text strong { font-size: clamp(0.95rem, 1.2vw, 1.1rem); color: #111; font-weight: 600; }
.ba-feature-text span { font-size: clamp(0.85rem, 1vw, 0.95rem); color: #666; line-height: 1.5; }
.ba-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 0; padding-top: 32px; border-top: 1px solid rgba(17,17,17,.1); }
.ba-stat { text-align: center; }
.ba-stat-number { font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 700; color: #111; margin-bottom: 8px; line-height: 1; }
.ba-stat-label { font-size: clamp(0.85rem, 1vw, 0.95rem); color: #666; letter-spacing: 0.05rem; text-transform: uppercase; }

/* Before/After comparator */
.ba { position: relative; width: 100%; height: min(70vh, 600px); border: 1px solid #111; background: #fff; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.06); }
.ba img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before { position: absolute; inset: 0; filter: grayscale(.08) brightness(.98); }
.ba-after-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 2px solid rgba(17,17,17,.25); transition: width .2s cubic-bezier(.4,0,.2,1); }
.ba-after { position: absolute; inset: 0; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; background: #111; cursor: ew-resize; z-index: 3; }
.ba-handle-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(255,255,255,.6); transform: translateX(-50%); }
.ba-handle .ba-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 999px; background: #111; box-shadow: 0 0 0 8px rgba(255,255,255,.95), 0 4px 12px rgba(0,0,0,.15); transition: transform .2s ease, box-shadow .2s ease; }
.ba-handle:hover .ba-knob { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 8px rgba(255,255,255,.95), 0 6px 20px rgba(0,0,0,.2); }
.ba-label { position: absolute; top: 20px; padding: 8px 14px; background: rgba(255,255,255,.92); color: #111; border: 1px solid #111; font-size: .9rem; letter-spacing: .1rem; text-transform: uppercase; font-weight: 500; backdrop-filter: blur(4px); }
.ba-label-left { left: 20px; }
.ba-label-right { right: 20px; }
.ba-instruction { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 6px 12px; background: rgba(255,255,255,.85); color: #666; border: 1px solid rgba(17,17,17,.15); font-size: .8rem; letter-spacing: .08rem; opacity: .8; pointer-events: none; }

/* Gallery */
.gallery { position: relative; padding: 0; background: #fff; border-top: 1px solid rgba(17,17,17,.05); }
.gallery-header-special {
    background: #fff;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.gallery-header-special::before {
    background: radial-gradient(circle at 30% 50%, rgba(26,26,26,.03), transparent 60%);
}
.gallery-heading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}
.gallery-heading-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(26,26,26,.2), transparent);
    max-width: 200px;
    transform-origin: center;
}
.gallery-title-special {
    display: flex;
    align-items: baseline;
    gap: 24px;
    font-size: clamp(4.5rem, 14vw, 10.5rem);
    font-weight: 700;
    letter-spacing: -0.08em;
    color: #0a0a0a;
    text-transform: uppercase;
    line-height: 0.85;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', sans-serif;
    position: relative;
    opacity: 1;
}
.gallery-title-number {
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(26,26,26,.4);
    position: relative;
    padding-right: 8px;
}
.gallery-title-number::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: rgba(26,26,26,.15);
}
.gallery-title-text {
    position: relative;
    display: inline-block;
    font-size: clamp(3.5rem, 11vw, 8rem);
    font-family: 'Poppins', sans-serif;
}
.gallery-title-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #1a1a1a;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-header-special.animate .gallery-title-text::before {
    width: 100%;
}
.gallery-content { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 4vh 6vw 8vh; 
    opacity: 0; 
    transform: translateY(50px); 
    transition: opacity 1s ease, transform 1s ease;
}
.gallery-header-special.animate ~ .gallery-content,
.gallery-content.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Fallback: Show content if JS fails */
.no-js .gallery-content { opacity: 1; transform: translateY(0); }
.gallery .section-title { margin-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 20px; max-width: 100%; grid-auto-flow: dense; }
.grid-item { 
    position: relative; 
    overflow: hidden; 
    border: 1px solid var(--color-border); 
    cursor: pointer; 
    background: var(--color-bg); 
    transition: all var(--transition-slow); 
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
}
.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.12), transparent);
    opacity: 0;
    transition: opacity .5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
}
.grid-item:hover::before { opacity: 1; }
.grid-item:hover { 
    border-color: var(--color-border-hover); 
    box-shadow: var(--shadow-xl); 
    transform: translateY(-6px) scale(1.01) translate(var(--magnetic-x, 0), var(--magnetic-y, 0));
}
.grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(0.4, 0, 0.2, 1); }
.grid-item:hover img { transform: scale(1.1); }
.grid-item .caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); color: #fff; font-size: clamp(0.9rem, 1.2vw, 1.1rem); font-weight: 500; opacity: 0; transform: translateY(10px); transition: all .4s ease; z-index: 3; }
.grid-item:hover .caption { opacity: 1; transform: translateY(0); }
.grid-item { grid-column: span 2; grid-row: span 2; }
.grid-item.wide { grid-column: span 4; grid-row: span 2; }
.grid-item.tall { grid-column: span 2; grid-row: span 4; }
.grid-item.span-2x2 { grid-column: span 4; grid-row: span 4; }

/* Viewer */
.viewer { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,.98); 
    z-index: 1600; 
    display: none; 
    backdrop-filter: blur(20px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.viewer.active { 
    display: grid; 
    place-items: center; 
}

.viewer-close { 
    position: absolute; 
    top: 24px; 
    right: 32px; 
    font-size: 32px; 
    background: rgba(255,255,255,.1); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,.2); 
    border-radius: 50%; 
    width: 48px; 
    height: 48px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.viewer-close:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.3);
    transform: scale(1.1) rotate(90deg);
}

.viewer-content { 
    max-width: 90vw; 
    max-height: 86vh; 
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.viewer-content img { 
    width: 100%; 
    height: auto; 
    display: block; 
}

/* Fade to black */
.fade-black { position: sticky; bottom: 0; height: 10vh; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 70%); opacity: 0; pointer-events: none; }
.footer { 
    background: var(--color-primary); 
    color: var(--color-white); 
    padding: 8vh 6vw 5vh; 
    border-top: 1px solid rgba(255,255,255,.1); 
    opacity: 0; 
    transform: translateY(50px);
    position: relative;
    isolation: isolate;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    pointer-events: none;
}
/* Fallback: Show content if JS fails */
.no-js .footer { opacity: 1; transform: translateY(0); }
.footer-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-title { 
    font-size: clamp(1.45rem, 2.8vw, 2.25rem); 
    margin-bottom: 16px; 
    font-weight: var(--font-weight-semibold); 
    letter-spacing: -0.02em; 
    color: var(--color-white);
}
.footer-copy { 
    color: rgba(255,255,255,.7); 
    max-width: 48ch; 
    line-height: 1.7; 
    font-size: clamp(0.8rem, 1vw, 0.9rem); 
}
.footer-col a { 
    color: rgba(255,255,255,.8); 
    text-decoration: none; 
    transition: all var(--transition-base); 
    font-size: clamp(0.95rem, 1.1vw, 1rem);
    position: relative;
    display: inline-block;
}
.footer-col a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-white);
    transition: width var(--transition-base);
}
.footer-col a:hover { 
    color: var(--color-white); 
    opacity: 1; 
    transform: translateX(4px); 
}
.footer-col a:hover::after {
    width: 100%;
}
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
.footer-group { display: flex; flex-direction: column; gap: 12px; }
.footer-group .label { font-size: 0.75rem; letter-spacing: .15rem; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 8px; font-weight: 600; }
.footer-contact address { font-style: normal; color: rgba(255,255,255,.7); line-height: 1.8; font-size: clamp(0.95rem, 1.1vw, 1rem); }
.footer-bottom { max-width: 1400px; margin: 32px auto 0; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.6); font-size: clamp(0.9rem, 1vw, 1rem); }
.to-top { color: rgba(255,255,255,.8); text-decoration: none; transition: all .3s ease; font-weight: 500; }
.to-top:hover { color: #fff; transform: translateY(-2px); }

@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* Marquee */
.marquee { 
    overflow: hidden; 
    border-top: 1px solid rgba(17,17,17,.12); 
    border-bottom: 1px solid rgba(17,17,17,.12); 
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 50%, #ffffff 100%);
    position: relative; 
}
.marquee::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(26,26,26,.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(26,26,26,.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}
.marquee::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(17,17,17,.08), transparent);
    z-index: 1;
    pointer-events: none;
}
.marquee .fade-left, .marquee .fade-right { 
    content: ''; 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    width: 200px; 
    z-index: 10; 
    pointer-events: none; 
}
.marquee .fade-left { 
    left: 0; 
    background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,.95) 30%, rgba(255,255,255,.7) 60%, transparent 100%); 
}
.marquee .fade-right { 
    right: 0; 
    background: linear-gradient(to left, #ffffff 0%, rgba(255,255,255,.95) 30%, rgba(255,255,255,.7) 60%, transparent 100%); 
}
.marquee-track { 
    display: flex; 
    align-items: center;
    gap: 100px; 
    padding: 60px 6vw; 
    white-space: nowrap; 
    animation: marquee 35s linear infinite; 
    will-change: transform;
    position: relative;
    z-index: 2;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.marquee-track span { 
    font-weight: 800; 
    letter-spacing: .35rem; 
    color: #1a1a1a; 
    opacity: .4; 
    transition: all .5s cubic-bezier(0.4, 0, 0.2, 1); 
    font-size: clamp(0.75rem, 1.2vw, 0.95rem); 
    text-transform: uppercase; 
    position: relative;
    padding: 12px 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.marquee-track span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 50%;
    transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1), opacity .5s ease;
    opacity: 0;
}
.marquee-track span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, #1a1a1a, transparent);
    transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.marquee-track span:hover { 
    opacity: 1; 
    color: #0a0a0a; 
    transform: translateY(-2px);
    letter-spacing: .4rem;
}
.marquee-track span:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}
.marquee-track span:hover::after {
    transform: translateX(-50%) scaleX(1);
}
@keyframes marquee { 
    from { transform: translateX(0); } 
    to { transform: translateX(-50%); } 
}

/* Testimonials */
.testimonials { padding: 0; background: #fafafa; border-top: 1px solid rgba(17,17,17,.05); }
.testimonials-header-special {
    background: #fafafa;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.testimonials-header-special::before {
    background: radial-gradient(circle at 30% 50%, rgba(26,26,26,.03), transparent 60%);
}
.testimonials-heading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}
.testimonials-heading-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(26,26,26,.2), transparent);
    max-width: 200px;
    transform-origin: center;
}
.testimonials-title-special {
    display: flex;
    align-items: baseline;
    gap: 24px;
    font-size: clamp(4.5rem, 14vw, 10.5rem);
    font-weight: 700;
    letter-spacing: -0.08em;
    color: #0a0a0a;
    text-transform: uppercase;
    line-height: 0.85;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', sans-serif;
    position: relative;
    opacity: 1;
}
.testimonials-title-number {
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(26,26,26,.4);
    position: relative;
    padding-right: 8px;
}
.testimonials-title-number::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: rgba(26,26,26,.15);
}
.testimonials-title-text {
    position: relative;
    display: inline-block;
    font-size: clamp(3.5rem, 11vw, 8rem);
    font-family: 'Poppins', sans-serif;
}
.testimonials-title-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #1a1a1a;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonials-header-special.animate .testimonials-title-text::before {
    width: 100%;
}
.testimonials-content { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 4vh 6vw 8vh; 
    opacity: 0; 
    transform: translateY(50px); 
    transition: opacity 1s ease, transform 1s ease;
}
.testimonials-header-special.animate ~ .testimonials-content,
.testimonials-content.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Fallback: Show content if JS fails */
.no-js .testimonials-content { opacity: 1; transform: translateY(0); }
.testimonials .section-title { margin-bottom: 40px; }

/* Let's Talk Section */
.lets-talk { padding: 0; background: #fff; border-top: 1px solid rgba(17,17,17,.05); }
.quotes { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.quotes blockquote { 
    border: 1px solid var(--color-border); 
    background: var(--color-bg); 
    padding: 2.5rem; 
    font-size: clamp(0.85rem, 1.35vw, 1.1rem); 
    line-height: 1.8; 
    color: var(--color-text); 
    position: relative; 
    transition: all var(--transition-slow); 
    overflow: hidden; 
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
}
.quotes blockquote::before { 
    content: '"'; 
    position: absolute; 
    top: 20px; 
    left: 20px; 
    font-size: 4rem; 
    line-height: 1; 
    color: rgba(17,17,17,.08); 
    font-family: Georgia, serif; 
    transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1); 
}
.quotes blockquote::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #1a1a1a, transparent);
    transform: scaleX(0);
    transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1);
}
.quotes blockquote:hover::before { transform: scale(1.1); }
.quotes blockquote:hover::after { transform: scaleX(1); }
.quotes blockquote:hover { 
    border-color: var(--color-border-hover); 
    box-shadow: var(--shadow-xl); 
    transform: translateY(-6px) scale(1.01); 
}
.quotes cite { display: block; margin-top: 24px; color: #6a6a6a; font-style: normal; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em; }

/* Film grain noise overlay */
.noise { 
    position: fixed; 
    inset: 0; 
    pointer-events: none; 
    z-index: 100; 
    opacity: .04; 
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140" viewBox="0 0 140 140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.25"/></svg>'); 
    mix-blend-mode: overlay;
}

/* Selection styles */
::selection {
    background: var(--color-accent);
    color: var(--color-white);
}

::-moz-selection {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Enhanced Link Styles - Custom cursor handled by JS */
@media (pointer: fine) {
    a, button, .cta {
        cursor: none;
        position: relative;
    }

    a:hover, button:hover, .cta:hover {
        cursor: none;
    }
}

/* Smooth Page Transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.page-transition.active {
    transform: translateY(0);
    pointer-events: all;
}

/* Loading State */
.loading-state {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.loading-state.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
/* Mobile: Disable custom cursor and restore default */
@media (max-width: 768px), (pointer: coarse) {
    body {
        cursor: auto !important;
    }
    
    .custom-cursor,
    .custom-cursor-follower {
        display: none !important;
    }
    
    a, button, .cta, input, textarea, select {
        cursor: pointer !important;
    }
}

@media (max-width: 768px) {
    .marquee .fade-left, .marquee .fade-right { width: 80px; }
    .marquee-track { 
        gap: 60px; 
        padding: 40px 4vw; 
        animation-duration: 25s;
    }
    .marquee-track span { 
        font-size: clamp(0.65rem, 2vw, 0.8rem); 
        letter-spacing: .25rem; 
        padding: 10px 20px;
    }
    .marquee-track span:hover {
        letter-spacing: .3rem;
    }
    .marquee-track span::before {
        width: 6px;
        height: 6px;
    }
    .marquee-track span::after {
        width: 70%;
        height: 1.5px;
    }
    .hero-content-wrapper {
        gap: 32px;
    }
    .hero-title-wrapper {
        padding: 30px 24px;
        width: fit-content;
        max-width: calc(100vw - 48px);
        min-width: 0;
    }
    .site-title {
        font-size: clamp(2.5rem, 12vw, 6rem);
        line-height: .9;
        white-space: nowrap;
        max-width: 100%;
    }
    .site-title-accent::after {
        height: 2px;
        bottom: 6%;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 280px;
    }
    .cta {
        width: 100%;
        padding: 16px 32px;
        min-width: auto;
    }
    .floating-btn {
        top: 24px;
        width: 80px;
        height: 80px;
    }
    .floating-btn.left { 
        left: 20px; 
        right: auto;
    }
    .floating-btn.right { 
        right: 20px; 
        left: auto;
    }
    .floating-btn__circle {
        width: 32px;
        height: 32px;
    }
    .floating-btn__icon {
        font-size: 1rem;
    }
    .floating-btn__text {
        font-size: 0.55rem;
    }
    .floating-btn__text > span {
        inset: 5px;
    }
    .overlay-panel .panel-close {
        top: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
    .overlay-panel .panel-content {
        padding: 15vh 6vw;
    }
    .overlay-panel nav a {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin: 10px 0;
    }
    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .cases-wrap { grid-template-columns: 1fr; gap: 28px; }
    .case-body { padding: 20px 24px; }
    .case { max-height: none; }
    .case-body h3 { -webkit-line-clamp: 2; line-clamp: 2; }
    .case-body p { -webkit-line-clamp: 3; line-clamp: 3; }
    .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-item, .grid-item.wide, .grid-item.tall, .grid-item.span-2x2 { grid-column: span 2; grid-row: span 2; }
    .quotes { grid-template-columns: 1fr; }
    .about { grid-template-columns: 1fr; gap: 24px; }
    .about-title-large, .section-title-large { font-size: clamp(3.75rem, 13.5vw, 9rem); white-space: nowrap; }
    .testimonials .section-title-large { font-size: clamp(3rem, 10.5vw, 6.4rem); }
    .cases .section-title-large { font-size: clamp(3rem, 11.25vw, 6.75rem); }
    .about-header-wrapper, .section-header-wrapper { min-height: 80vh; padding: 6vh 4vw; }
    .content, .services, .cases, .before-after, .gallery, .testimonials { padding: 6vh 4vw; }
    .before-after { padding: 6vh 4vw; }
    .ba-layout { grid-template-columns: 1fr; gap: 32px; }
    .ba-image-wrapper { position: relative; top: 0; }
    .ba-content-wrapper { gap: 24px; }
    .ba-header { margin-bottom: 0; }
    .ba-header-top { flex-direction: column; align-items: flex-start; gap: 12px; }
    .ba-features { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; padding-top: 24px; }
    .ba-stats { grid-template-columns: 1fr; gap: 24px; margin-top: 0; padding-top: 24px; }
    .ba { height: min(50vh, 400px); }
    .ba-handle .ba-knob { width: 40px; height: 40px; }
    .ba-label { top: 12px; padding: 6px 10px; font-size: .8rem; }
    .ba-label-left { left: 12px; }
    .ba-label-right { right: 12px; }
    .ba-instruction { bottom: 12px; font-size: .75rem; padding: 4px 10px; }
    .section-title { margin-bottom: 32px; }
    .footer { padding: 6vh 4vw 3vh; }
}
