        body {
            box-sizing: border-box;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-dark: #0A0E14;
            --bg-card: #141922;
            --text-primary: #E8EDF3;
            --text-secondary: #9BA8B8;
            --accent-blue: #4A9EFF;
            --accent-teal: #2DD4BF;
            --line-silver: #2A3544;
        }

        body {
            font-family: 'Crimson Text', serif;
            background: var(--bg-dark);
            color: var(--text-primary);
            overflow-x: hidden;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Cinzel', serif;
            font-weight: 600;
        }

        .cursive {
            font-family: 'Playfair Display', serif;
            font-style: italic;
        }

        .cursive-text {
            font-family: 'Lora', serif;
            font-style: italic;
        }

        .prose {
            font-family: 'Crimson Text', serif;
            font-size: 1.125rem;
            line-height: 1.8;
        }

        /* Animated Grid Background */
        .grid-bg {
            position: relative;
            background: 
                linear-gradient(90deg, var(--line-silver) 1px, transparent 1px),
                linear-gradient(var(--line-silver) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: gridPulse 20s ease-in-out infinite;
        }

        @keyframes gridPulse {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.6; }
        }

        /* Scan Line Animation */
        .scan-line {
            position: absolute;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
            animation: scan 4s ease-in-out infinite;
            opacity: 0.5;
        }

        @keyframes scan {
            0% { transform: translateY(-100px); opacity: 0; }
            50% { opacity: 0.5; }
            100% { transform: translateY(100vh); opacity: 0; }
        }

        /* Logo Letter Animation */
        .logo-letter {
            opacity: 0;
            display: inline-block;
            animation: letterReveal 0.5s ease forwards;
        }

        @keyframes letterReveal {
            to { opacity: 1; }
        }

        .logo-letter:nth-child(1) { animation-delay: 0.1s; }
        .logo-letter:nth-child(2) { animation-delay: 0.2s; }
        .logo-letter:nth-child(3) { animation-delay: 0.3s; }
        .logo-letter:nth-child(4) { animation-delay: 0.4s; }
        .logo-letter:nth-child(5) { animation-delay: 0.5s; }
        .logo-letter:nth-child(6) { animation-delay: 0.6s; }
        .logo-letter:nth-child(7) { animation-delay: 0.7s; }
        .logo-letter:nth-child(8) { animation-delay: 0.8s; }
        .logo-letter:nth-child(9) { animation-delay: 0.9s; }
        .logo-letter:nth-child(10) { animation-delay: 1.0s; }
        .logo-letter:nth-child(11) { animation-delay: 1.1s; }
        .logo-letter:nth-child(12) { animation-delay: 1.2s; }
        .logo-letter:nth-child(13) { animation-delay: 1.3s; }
        .logo-letter:nth-child(14) { animation-delay: 1.4s; }
        .logo-letter:nth-child(15) { animation-delay: 1.5s; }
        .logo-letter:nth-child(16) { animation-delay: 1.6s; }
        .logo-letter:nth-child(17) { animation-delay: 1.7s; }

        /* Scroll Indicator Pulse */
        .scroll-pulse {
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.4; transform: translateY(0); }
            50% { opacity: 1; transform: translateY(10px); }
        }

        /* Storytelling Fade In */
        .story-fade {
            opacity: 0;
            transform: translateY(40px);
            animation: storyFade 1.2s ease forwards;
        }

        @keyframes storyFade {
            to { opacity: 1; transform: translateY(0); }
        }

        .story-fade-1 { animation-delay: 0.2s; }
        .story-fade-2 { animation-delay: 0.4s; }
        .story-fade-3 { animation-delay: 0.6s; }
        .story-fade-4 { animation-delay: 0.8s; }
        .story-fade-5 { animation-delay: 1.0s; }

        /* Card Hover */
        .capability-card {
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid var(--line-silver);
        }

        .capability-card:hover {
            transform: translateY(-8px);
            border-color: var(--accent-blue);
            box-shadow: 0 20px 40px rgba(74, 158, 255, 0.2);
        }

        /* Scroll Reveal */
        .scroll-reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: all 1s ease;
        }

        .scroll-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }

        /* Modal */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(10, 14, 20, 0.95);
            z-index: 9999;
            overflow-y: auto;
        }

        .modal-overlay.active {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .modal-content {
            background: var(--bg-card);
            border: 1px solid var(--line-silver);
            padding: 3rem;
            border-radius: 8px;
            max-width: 600px;
            width: 100%;
            position: relative;
        }

        /* Button Press */
        .btn-press {
            transition: all 0.2s ease;
        }

        .btn-press:active {
            transform: scale(0.98) translateY(2px);
        }

        /* Page Transition */
        .page {
            display: none;
        }

        .page.active {
            display: block;
            animation: pageSlideIn 0.6s ease;
        }

        @keyframes pageSlideIn {
            from { opacity: 0; transform: translateX(30px); }
            to { opacity: 1; transform: translateX(0); }
        }

        /* Navigation */
        nav {
            backdrop-filter: blur(10px);
            background: rgba(10, 14, 20, 0.95);
            border-bottom: 1px solid var(--line-silver);
        }

        /* Hero Background Image */
        .hero-bg-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.15;
            animation: slowZoom 30s ease-in-out infinite alternate;
        }

        @keyframes slowZoom {
            from { transform: scale(1); }
            to { transform: scale(1.1); }
        }

        /* Project Card */
        .project-card {
            transition: all 0.5s ease;
            position: relative;
            overflow: hidden;
        }

        .project-card:hover .project-overlay {
            opacity: 1;
        }

        .project-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, transparent 50%, rgba(10, 14, 20, 0.95));
            opacity: 0;
            transition: opacity 0.5s ease;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 2rem;
        }

        /* Filter Active */
        .filter-btn.active {
            background: var(--accent-blue) !important;
            color: var(--bg-dark) !important;
            border: none !important;
        }

        /* Cart Badge */
        .cart-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--accent-teal);
            color: var(--bg-dark);
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
        }

        /* Search */
        .search-results {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--bg-card);
            border: 1px solid var(--line-silver);
            border-radius: 8px;
            margin-top: 8px;
            max-height: 400px;
            overflow-y: auto;
            z-index: 1000;
        }

        .search-results.active {
            display: block;
        }

        /* Toast */
        .toast {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: var(--accent-blue);
            color: var(--bg-dark);
            padding: 1rem 2rem;
            border-radius: 8px;
            font-weight: bold;
            z-index: 10000;
            animation: toastSlide 0.3s ease;
        }

        @keyframes toastSlide {
            from { transform: translateX(400px); }
            to { transform: translateX(0); }
        }

        /* Responsive */
        @media (max-width: 768px) {
            h1 { font-size: 2.5rem; }
            h2 { font-size: 2rem; }
            .modal-content { padding: 1.5rem; }
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-dark);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--line-silver);
            border-radius: 5px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--accent-blue);
        }
    