/* ===== Extracted from inline <style> blocks ===== */

body {
            box-sizing: border-box;
            overflow-x: hidden;
        }
        
        .hero-bg {
            background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }
        
        .hero-bg-loaded {
            background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
            background-position: center;
            background-size: cover;
        }
        
        .lazy-img {
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .lazy-img.loaded {
            opacity: 1;
        }
        
        .loading-placeholder {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
        }
        
        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        .step-card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .step-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        
        .project-tile {
            transition: transform 0.3s ease;
            cursor: pointer;
        }
        
        .project-tile:hover {
            transform: scale(1.05);
        }
        
        .material-card {
            transition: transform 0.3s ease;
        }
        
        .material-card:hover {
            transform: translateY(-3px);
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            z-index: 1000;
        }
        
        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            margin: 1rem;
        }
        
        .file-upload {
            border: 2px dashed #c9b896;
            border-radius: 8px;
            padding: 2rem;
            text-align: center;
            transition: border-color 0.3s ease;
            cursor: pointer;
        }
        
        .file-upload:hover {
            border-color: #b8a882;
        }
        
        .file-upload.dragover {
            border-color: #a89770;
            background-color: #f9f7f4;
        }
        
        .pull-to-refresh {
            position: fixed;
            top: -60px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            transition: all 0.3s ease;
            z-index: 1000;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .pull-to-refresh.visible {
            top: 20px;
        }
        
        .pull-to-refresh.refreshing {
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            from { transform: translateX(-50%) rotate(0deg); }
            to { transform: translateX(-50%) rotate(360deg); }
        }

/* ---- next block ---- */

@view-transition { navigation: auto; }

/* Fix hero text cutoff on mobile */
@media (max-width: 640px) {
  section#home {
    padding-top: 6rem !important;
  }
}

