        /* ============================================
           DESIGN SYSTEM — Inspired by Anthropic + OpenAI
           Clean, editorial, spacious, sophisticated
           ============================================ */

        :root {
            /* Anthropic-inspired warm neutrals with a hint of cream */
            --bg-primary: #0D0D0D;
            --bg-secondary: #141414;
            --bg-tertiary: #1A1A1A;
            --bg-elevated: #1F1F1F;
            --bg-card: #181818;
            --bg-card-hover: #1E1E1E;
            --bg-glass: rgba(20, 20, 20, 0.8);

            --text-primary: #F5F0EB;
            --text-secondary: #A8A29E;
            --text-tertiary: #78716C;
            --text-muted: #57534E;

            /* Accent — warm amber/copper inspired by Anthropic's palette */
            --accent: #D4956A;
            --accent-hover: #E8A97E;
            --accent-subtle: rgba(212, 149, 106, 0.12);
            --accent-glow: rgba(212, 149, 106, 0.06);

            /* Secondary accent — OpenAI-inspired cool tone */
            --accent-cool: #6BA3BE;
            --accent-cool-subtle: rgba(107, 163, 190, 0.12);

            --border: rgba(245, 240, 235, 0.06);
            --border-hover: rgba(245, 240, 235, 0.12);
            --border-strong: rgba(245, 240, 235, 0.18);

            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --radius-full: 9999px;

            --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
            --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
            --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
            --shadow-glow: 0 0 40px rgba(212, 149, 106, 0.08);

            --transition-fast: 150ms cubic-bezier(0.25, 0.1, 0.25, 1);
            --transition-base: 250ms cubic-bezier(0.25, 0.1, 0.25, 1);
            --transition-slow: 400ms cubic-bezier(0.25, 0.1, 0.25, 1);

            --font-display: 'Instrument Serif', Georgia, serif;
            --font-body: 'DM Sans', -apple-system, sans-serif;
            --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

            --page-max: 1280px;
            --page-padding: clamp(20px, 5vw, 80px);
        }

        [data-theme="light"] {
            --bg-primary: #FAFAF8;
            --bg-secondary: #F5F3F0;
            --bg-tertiary: #EDEBE8;
            --bg-elevated: #FFFFFF;
            --bg-card: #FFFFFF;
            --bg-card-hover: #F9F8F6;
            --bg-glass: rgba(250, 250, 248, 0.85);

            --text-primary: #1C1917;
            --text-secondary: #57534E;
            --text-tertiary: #78716C;
            --text-muted: #A8A29E;

            --accent: #B8763A;
            --accent-hover: #9A6230;
            --accent-subtle: rgba(184, 118, 58, 0.08);
            --accent-glow: rgba(184, 118, 58, 0.04);

            --accent-cool: #3B7A94;
            --accent-cool-subtle: rgba(59, 122, 148, 0.08);

            --border: rgba(28, 25, 23, 0.08);
            --border-hover: rgba(28, 25, 23, 0.14);
            --border-strong: rgba(28, 25, 23, 0.2);

            --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
            --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
            --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
            --shadow-glow: 0 0 40px rgba(184, 118, 58, 0.06);
        }

        /* ============================================
           RESET & BASE
           ============================================ */

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

        html {
            scroll-behavior: smooth;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body {
            font-family: var(--font-body);
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            font-weight: 400;
            overflow-x: hidden;
            font-size: 16px;
        }

        ::selection {
            background: var(--accent);
            color: var(--bg-primary);
        }

        a {
            color: var(--accent);
            text-decoration: none;
            transition: color var(--transition-fast);
        }

        a:hover {
            color: var(--accent-hover);
        }

        img {
            max-width: 100%;
            display: block;
        }

        /* ============================================
           NAVIGATION — Floating, minimal, Anthropic-style
           ============================================ */

        .nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            padding: 16px var(--page-padding);
            transition: all var(--transition-base);
        }

        .nav.scrolled {
            background: var(--bg-glass);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid var(--border);
        }

        .nav-inner {
            max-width: var(--page-max);
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 48px;
        }

        .nav-logo {
            font-family: var(--font-display);
            font-size: 1.35rem;
            color: var(--text-primary);
            letter-spacing: -0.02em;
            transition: opacity var(--transition-fast);
        }

        .nav-logo:hover {
            opacity: 0.7;
            color: var(--text-primary);
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 32px;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-secondary);
            font-size: 0.875rem;
            font-weight: 500;
            letter-spacing: 0.01em;
            transition: color var(--transition-fast);
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--text-primary);
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .theme-toggle {
            width: 36px;
            height: 36px;
            border-radius: var(--radius-full);
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
            font-size: 0.875rem;
        }

        .theme-toggle:hover {
            border-color: var(--border-hover);
            color: var(--text-primary);
            background: var(--bg-tertiary);
        }

        .btn-nav {
            padding: 8px 20px;
            border-radius: var(--radius-full);
            font-size: 0.8125rem;
            font-weight: 500;
            font-family: var(--font-body);
            letter-spacing: 0.01em;
            cursor: pointer;
            transition: all var(--transition-fast);
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text-primary);
        }

        .btn-nav:hover {
            background: var(--bg-tertiary);
            border-color: var(--border-hover);
        }

        .btn-nav.primary {
            background: var(--text-primary);
            color: var(--bg-primary);
            border-color: var(--text-primary);
        }

        .btn-nav.primary:hover {
            opacity: 0.85;
        }

        .mobile-toggle {
            display: none;
            width: 36px;
            height: 36px;
            border: none;
            background: transparent;
            color: var(--text-primary);
            cursor: pointer;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .mobile-toggle span {
            display: block;
            width: 20px;
            height: 1.5px;
            background: var(--text-primary);
            transition: all var(--transition-fast);
        }

        /* ============================================
           HERO — Cinematic, editorial, Anthropic-style
           ============================================ */

        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            padding: 120px var(--page-padding) 80px;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -30%;
            right: -20%;
            width: 800px;
            height: 800px;
            background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
            pointer-events: none;
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: -20%;
            left: -10%;
            width: 600px;
            height: 600px;
            background: radial-gradient(ellipse, var(--accent-cool-subtle) 0%, transparent 70%);
            pointer-events: none;
        }

        .hero-inner {
            max-width: var(--page-max);
            margin: 0 auto;
            width: 100%;
            position: relative;
            z-index: 1;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 16px;
            border-radius: var(--radius-full);
            border: 1px solid var(--border);
            background: var(--bg-secondary);
            font-size: 0.8125rem;
            color: var(--text-secondary);
            font-weight: 500;
            margin-bottom: 32px;
            opacity: 0;
            animation: fadeUp 0.8s ease forwards 0.2s;
        }

        .hero-badge .dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #4ADE80;
            animation: pulse-dot 2s ease infinite;
        }

        .hero-title {
            font-family: var(--font-display);
            font-size: clamp(3rem, 7vw, 5.5rem);
            line-height: 1.05;
            letter-spacing: -0.03em;
            font-weight: 400;
            max-width: 900px;
            margin-bottom: 28px;
            opacity: 0;
            animation: fadeUp 0.8s ease forwards 0.35s;
        }

        .hero-title em {
            font-style: italic;
            color: var(--accent);
        }

        .hero-subtitle {
            font-size: clamp(1.05rem, 1.8vw, 1.25rem);
            color: var(--text-secondary);
            max-width: 620px;
            line-height: 1.7;
            font-weight: 300;
            margin-bottom: 48px;
            opacity: 0;
            animation: fadeUp 0.8s ease forwards 0.5s;
        }

        .hero-actions {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
            opacity: 0;
            animation: fadeUp 0.8s ease forwards 0.65s;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 14px 28px;
            border-radius: var(--radius-full);
            font-size: 0.9375rem;
            font-weight: 500;
            font-family: var(--font-body);
            cursor: pointer;
            transition: all var(--transition-fast);
            border: 1px solid transparent;
            letter-spacing: 0.01em;
        }

        .btn-primary {
            background: var(--text-primary);
            color: var(--bg-primary);
        }

        .btn-primary:hover {
            opacity: 0.85;
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
            color: var(--bg-primary);
        }

        .btn-secondary {
            background: transparent;
            color: var(--text-primary);
            border-color: var(--border-strong);
        }

        .btn-secondary:hover {
            background: var(--bg-tertiary);
            border-color: var(--border-hover);
            transform: translateY(-1px);
            color: var(--text-primary);
        }

        .btn-icon {
            font-size: 1.1em;
        }

        .hero-stats {
            display: flex;
            gap: 48px;
            margin-top: 72px;
            padding-top: 40px;
            border-top: 1px solid var(--border);
            opacity: 0;
            animation: fadeUp 0.8s ease forwards 0.8s;
        }

        .hero-stat-value {
            font-family: var(--font-display);
            font-size: 2.25rem;
            color: var(--text-primary);
            letter-spacing: -0.02em;
        }

        .hero-stat-label {
            font-size: 0.8125rem;
            color: var(--text-tertiary);
            font-weight: 500;
            margin-top: 4px;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        /* ============================================
           SECTIONS — Shared
           ============================================ */

        .section {
            padding: 120px var(--page-padding);
            position: relative;
        }

        .section-inner {
            max-width: var(--page-max);
            margin: 0 auto;
        }

        .section-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--accent);
            font-weight: 600;
            margin-bottom: 16px;
        }

        .section-title {
            font-family: var(--font-display);
            font-size: clamp(2rem, 4vw, 3.25rem);
            line-height: 1.15;
            letter-spacing: -0.025em;
            max-width: 700px;
            margin-bottom: 20px;
        }

        .section-desc {
            font-size: 1.0625rem;
            color: var(--text-secondary);
            max-width: 560px;
            line-height: 1.7;
            font-weight: 300;
        }

        .section-header {
            margin-bottom: 64px;
        }

        /* ============================================
           EXPERTISE — Feature cards, OpenAI-style
           ============================================ */

        .expertise-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1px;
            background: var(--border);
            border-radius: var(--radius-lg);
            overflow: hidden;
        }

        .expertise-card {
            background: var(--bg-card);
            padding: 48px 40px;
            transition: all var(--transition-slow);
            position: relative;
            cursor: default;
        }

        .expertise-card:hover {
            background: var(--bg-card-hover);
        }

        .expertise-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--accent);
            transform: scaleX(0);
            transition: transform var(--transition-slow);
            transform-origin: left;
        }

        .expertise-card:hover::before {
            transform: scaleX(1);
        }

        .expertise-icon {
            width: 48px;
            height: 48px;
            border-radius: var(--radius-md);
            background: var(--accent-subtle);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            margin-bottom: 28px;
            color: var(--accent);
        }

        .expertise-card:nth-child(even) .expertise-icon {
            background: var(--accent-cool-subtle);
            color: var(--accent-cool);
        }

        .expertise-card h3 {
            font-family: var(--font-body);
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 12px;
            letter-spacing: -0.01em;
        }

        .expertise-card p {
            font-size: 0.9375rem;
            color: var(--text-secondary);
            line-height: 1.65;
            font-weight: 300;
        }

        .expertise-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 20px;
        }

        .expertise-tag {
            padding: 4px 12px;
            border-radius: var(--radius-full);
            font-size: 0.75rem;
            font-family: var(--font-mono);
            color: var(--text-tertiary);
            border: 1px solid var(--border);
            font-weight: 400;
        }

        /* ============================================
           BLOG — Editorial, magazine-style
           ============================================ */

        .blog-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }

        .blog-card {
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            overflow: hidden;
            transition: all var(--transition-base);
            background: var(--bg-card);
        }

        .blog-card:hover {
            border-color: var(--border-hover);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .blog-card.featured {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: 1.2fr 1fr;
        }

        .blog-card-image {
            aspect-ratio: 16/10;
            background: var(--bg-tertiary);
            overflow: hidden;
            position: relative;
        }

        .blog-card.featured .blog-card-image {
            aspect-ratio: auto;
            min-height: 360px;
        }

        .blog-card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform var(--transition-slow);
        }

        .blog-card:hover .blog-card-image img {
            transform: scale(1.03);
        }

        .blog-card-content {
            padding: 32px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .blog-card-meta {
            font-size: 0.8125rem;
            color: var(--text-tertiary);
            font-weight: 500;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .blog-card-meta .category {
            color: var(--accent);
        }

        .blog-card h3 {
            font-family: var(--font-display);
            font-size: 1.375rem;
            line-height: 1.3;
            letter-spacing: -0.015em;
            margin-bottom: 12px;
            transition: color var(--transition-fast);
        }

        .blog-card.featured h3 {
            font-size: 1.75rem;
        }

        .blog-card:hover h3 {
            color: var(--accent);
        }

        .blog-card p {
            font-size: 0.9375rem;
            color: var(--text-secondary);
            line-height: 1.65;
            font-weight: 300;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .blog-card .read-more {
            margin-top: 20px;
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--accent);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: gap var(--transition-fast);
        }

        .blog-card:hover .read-more {
            gap: 10px;
        }

        .blog-view-all {
            text-align: center;
            margin-top: 48px;
        }

        /* ============================================
           AI CHAT AGENT — Floating assistant
           ============================================ */

        .chat-trigger {
            position: fixed;
            bottom: 28px;
            right: 28px;
            z-index: 90;
            width: 56px;
            height: 56px;
            border-radius: var(--radius-full);
            background: var(--accent);
            color: #FFF;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.35rem;
            box-shadow: var(--shadow-lg), var(--shadow-glow);
            transition: all var(--transition-fast);
        }

        .chat-trigger:hover {
            transform: scale(1.06);
            box-shadow: var(--shadow-lg), 0 0 60px rgba(212, 149, 106, 0.15);
        }

        .chat-trigger.active {
            border-radius: var(--radius-md);
            transform: rotate(45deg);
        }

        .chat-panel {
            position: fixed;
            bottom: 96px;
            right: 28px;
            z-index: 89;
            width: 420px;
            max-height: 600px;
            border-radius: var(--radius-xl);
            border: 1px solid var(--border);
            background: var(--bg-elevated);
            box-shadow: var(--shadow-lg);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(12px) scale(0.97);
            transition: all var(--transition-base);
        }

        .chat-panel.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .chat-header {
            padding: 20px 24px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .chat-avatar {
            width: 36px;
            height: 36px;
            border-radius: var(--radius-full);
            background: linear-gradient(135deg, var(--accent), var(--accent-cool));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.875rem;
            color: #FFF;
            font-weight: 600;
        }

        .chat-header-info h4 {
            font-size: 0.9375rem;
            font-weight: 600;
        }

        .chat-header-info span {
            font-size: 0.75rem;
            color: var(--text-tertiary);
        }

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 20px 24px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            min-height: 300px;
            max-height: 400px;
        }

        .chat-msg {
            max-width: 85%;
            padding: 12px 16px;
            border-radius: var(--radius-lg);
            font-size: 0.875rem;
            line-height: 1.6;
            animation: msgIn 0.3s ease;
        }

        .chat-msg.assistant {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            align-self: flex-start;
            border-bottom-left-radius: 4px;
        }

        .chat-msg.user {
            background: var(--accent);
            color: #FFF;
            align-self: flex-end;
            border-bottom-right-radius: 4px;
        }

        .chat-msg.typing .dots {
            display: inline-flex;
            gap: 4px;
        }

        .chat-msg.typing .dots span {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--text-tertiary);
            animation: bounce 1.4s infinite;
        }

        .chat-msg.typing .dots span:nth-child(2) { animation-delay: 0.2s; }
        .chat-msg.typing .dots span:nth-child(3) { animation-delay: 0.4s; }

        .chat-input-area {
            padding: 16px 24px 20px;
            border-top: 1px solid var(--border);
            display: flex;
            gap: 10px;
            align-items: flex-end;
        }

        .chat-input {
            flex: 1;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 12px 16px;
            font-size: 0.875rem;
            font-family: var(--font-body);
            color: var(--text-primary);
            resize: none;
            outline: none;
            min-height: 42px;
            max-height: 100px;
            transition: border-color var(--transition-fast);
        }

        .chat-input:focus {
            border-color: var(--accent);
        }

        .chat-input::placeholder {
            color: var(--text-muted);
        }

        .chat-send {
            width: 42px;
            height: 42px;
            border-radius: var(--radius-md);
            background: var(--accent);
            color: #FFF;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            transition: all var(--transition-fast);
            flex-shrink: 0;
        }

        .chat-send:hover {
            background: var(--accent-hover);
        }

        .chat-send:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        /* ============================================
           SKILL.MD VIEWER — Code-like section
           ============================================ */

        .skill-section {
            background: var(--bg-secondary);
        }

        .skill-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 48px;
            align-items: start;
        }

        .skill-preview {
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            overflow: hidden;
        }

        .skill-preview-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.8125rem;
            font-family: var(--font-mono);
            color: var(--text-tertiary);
        }

        .skill-preview-header .file-icon {
            color: var(--accent);
        }

        .skill-preview-code {
            padding: 24px;
            font-family: var(--font-mono);
            font-size: 0.8125rem;
            line-height: 1.8;
            color: var(--text-secondary);
            overflow-x: auto;
            max-height: 440px;
            overflow-y: auto;
        }

        .skill-preview-code .key { color: var(--accent-cool); }
        .skill-preview-code .val { color: var(--accent); }
        .skill-preview-code .comment { color: var(--text-muted); font-style: italic; }

        /* ============================================
           FOOTER — Minimal, Anthropic-style
           ============================================ */

        .footer {
            padding: 64px var(--page-padding);
            border-top: 1px solid var(--border);
        }

        .footer-inner {
            max-width: var(--page-max);
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 48px;
        }

        .footer-brand {
            max-width: 300px;
        }

        .footer-brand h3 {
            font-family: var(--font-display);
            font-size: 1.5rem;
            margin-bottom: 12px;
        }

        .footer-brand p {
            font-size: 0.875rem;
            color: var(--text-tertiary);
            line-height: 1.6;
        }

        .footer-col h4 {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            font-weight: 600;
            margin-bottom: 20px;
        }

        .footer-col ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .footer-col a {
            font-size: 0.875rem;
            color: var(--text-secondary);
            transition: color var(--transition-fast);
        }

        .footer-col a:hover {
            color: var(--text-primary);
        }

        .footer-bottom {
            max-width: var(--page-max);
            margin: 48px auto 0;
            padding-top: 32px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8125rem;
            color: var(--text-muted);
        }

        .footer-socials {
            display: flex;
            gap: 16px;
        }

        .footer-socials a {
            color: var(--text-muted);
            transition: color var(--transition-fast);
        }

        .footer-socials a:hover {
            color: var(--text-primary);
        }

        /* ============================================
           SCROLL ANIMATIONS
           ============================================ */

        .reveal {
            opacity: 0;
            transform: translateY(24px);
            transition: all 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
        }

        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .reveal-delay-1 { transition-delay: 0.1s; }
        .reveal-delay-2 { transition-delay: 0.2s; }
        .reveal-delay-3 { transition-delay: 0.3s; }
        .reveal-delay-4 { transition-delay: 0.4s; }
        .reveal-delay-5 { transition-delay: 0.5s; }

        /* ============================================
           KEYFRAMES
           ============================================ */

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes pulse-dot {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        @keyframes bounce {
            0%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-6px); }
        }

        @keyframes msgIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ============================================
           MOBILE MENU
           ============================================ */

        .mobile-menu {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 99;
            background: var(--bg-primary);
            padding: 80px var(--page-padding) 40px;
            flex-direction: column;
            gap: 8px;
            opacity: 0;
            visibility: hidden;
            transition: all var(--transition-base);
        }

        .mobile-menu.open {
            opacity: 1;
            visibility: visible;
        }

        .mobile-menu a {
            display: block;
            font-size: 1.75rem;
            font-family: var(--font-display);
            color: var(--text-primary);
            padding: 16px 0;
            border-bottom: 1px solid var(--border);
        }

        /* ============================================
           RESPONSIVE
           ============================================ */

        @media (max-width: 1024px) {
            .expertise-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .skill-container {
                grid-template-columns: 1fr;
            }
            .footer-inner {
                grid-template-columns: 1fr 1fr;
                gap: 32px;
            }
        }

        @media (max-width: 768px) {
            .nav-links,
            .nav-actions .btn-nav {
                display: none;
            }
            .mobile-toggle {
                display: flex;
            }
            .mobile-menu {
                display: flex;
            }
            .hero {
                padding-top: 100px;
                min-height: auto;
                padding-bottom: 60px;
            }
            .hero-stats {
                flex-direction: column;
                gap: 24px;
            }
            .expertise-grid {
                grid-template-columns: 1fr;
            }
            .blog-grid {
                grid-template-columns: 1fr;
            }
            .blog-card.featured {
                grid-template-columns: 1fr;
            }
            .blog-card.featured .blog-card-image {
                min-height: 200px;
            }
            .section {
                padding: 80px var(--page-padding);
            }
            .footer-inner {
                grid-template-columns: 1fr;
                gap: 32px;
            }
            .footer-bottom {
                flex-direction: column;
                gap: 16px;
                text-align: center;
            }
            .chat-panel {
                width: calc(100vw - 32px);
                right: 16px;
                bottom: 88px;
                max-height: 70vh;
            }
        }

        @media (max-width: 480px) {
            .hero-title {
                font-size: 2.25rem;
            }
            .section-title {
                font-size: 1.75rem;
            }
            .blog-card-content {
                padding: 24px;
            }
        }

        /* ============================================
           "I AM AGENT" BUTTON
           ============================================ */

        .btn-agent {
            background: transparent;
            color: var(--accent-cool);
            border: 1px solid var(--accent-cool);
            position: relative;
            overflow: hidden;
        }

        .btn-agent::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--accent-cool);
            opacity: 0;
            transition: opacity var(--transition-fast);
        }

        .btn-agent:hover {
            color: #FFF;
            border-color: var(--accent-cool);
            transform: translateY(-1px);
            box-shadow: 0 0 24px rgba(107, 163, 190, 0.2);
        }

        .btn-agent:hover::before { opacity: 1; }

        .btn-agent span, .btn-agent .btn-icon { position: relative; z-index: 1; }

        .btn-agent .agent-pulse {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent-cool);
            display: inline-block;
            animation: pulse-dot 1.5s ease infinite;
            position: relative;
            z-index: 1;
        }

        .btn-agent:hover .agent-pulse { background: #FFF; }

        /* ============================================
           AGENT MODAL
           ============================================ */

        .agent-overlay {
            position: fixed;
            inset: 0;
            z-index: 200;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            opacity: 0;
            visibility: hidden;
            transition: all var(--transition-base);
        }

        .agent-overlay.open { opacity: 1; visibility: visible; }

        .agent-modal {
            width: 100%;
            max-width: 820px;
            max-height: 90vh;
            background: var(--bg-elevated);
            border: 1px solid var(--border-strong);
            border-radius: var(--radius-xl);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transform: translateY(12px) scale(0.97);
            transition: transform var(--transition-base);
            box-shadow: var(--shadow-lg);
        }

        .agent-overlay.open .agent-modal { transform: translateY(0) scale(1); }

        .agent-modal-header {
            padding: 24px 32px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
        }

        .agent-modal-header-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .agent-modal-icon {
            width: 42px;
            height: 42px;
            border-radius: var(--radius-md);
            background: var(--accent-cool-subtle);
            border: 1px solid rgba(107, 163, 190, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            color: var(--accent-cool);
        }

        .agent-modal-header h3 { font-size: 1.0625rem; font-weight: 600; }
        .agent-modal-header .sub { font-size: 0.8125rem; color: var(--text-tertiary); }

        .agent-modal-close {
            width: 36px;
            height: 36px;
            border-radius: var(--radius-full);
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            transition: all var(--transition-fast);
        }

        .agent-modal-close:hover { background: var(--bg-tertiary); color: var(--text-primary); }

        .agent-modal-tabs {
            display: flex;
            border-bottom: 1px solid var(--border);
            padding: 0 32px;
            flex-shrink: 0;
        }

        .agent-tab {
            padding: 12px 20px;
            font-size: 0.8125rem;
            font-weight: 500;
            color: var(--text-tertiary);
            cursor: pointer;
            border: none;
            background: none;
            font-family: var(--font-body);
            border-bottom: 2px solid transparent;
            transition: all var(--transition-fast);
            margin-bottom: -1px;
        }

        .agent-tab:hover { color: var(--text-secondary); }
        .agent-tab.active { color: var(--accent-cool); border-bottom-color: var(--accent-cool); }

        .agent-modal-body { flex: 1; overflow-y: auto; }

        .agent-tab-content { display: none; padding: 28px 32px; }
        .agent-tab-content.active { display: block; }

        .agent-endpoint {
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 18px 22px;
            margin-bottom: 20px;
        }

        .agent-endpoint-label {
            font-size: 0.6875rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            font-weight: 600;
            margin-bottom: 6px;
        }

        .agent-endpoint-url {
            font-family: var(--font-mono);
            font-size: 0.8125rem;
            color: var(--accent-cool);
            word-break: break-all;
        }

        .agent-method {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.6875rem;
            font-weight: 700;
            font-family: var(--font-mono);
            text-transform: uppercase;
            margin-right: 8px;
        }

        .agent-method.get { background: rgba(74, 222, 128, 0.15); color: #4ADE80; }

        .agent-code-block {
            background: var(--bg-primary);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            overflow: hidden;
            margin-bottom: 20px;
        }

        .agent-code-header {
            padding: 10px 16px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.75rem;
            font-family: var(--font-mono);
            color: var(--text-muted);
        }

        .agent-code-copy {
            padding: 4px 10px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text-tertiary);
            font-size: 0.6875rem;
            font-family: var(--font-body);
            cursor: pointer;
            font-weight: 500;
            transition: all var(--transition-fast);
        }

        .agent-code-copy:hover { background: var(--bg-tertiary); color: var(--text-primary); }

        .agent-code-body {
            padding: 20px;
            font-family: var(--font-mono);
            font-size: 0.775rem;
            line-height: 1.75;
            color: var(--text-secondary);
            overflow-x: auto;
            max-height: 340px;
            overflow-y: auto;
            white-space: pre;
            tab-size: 2;
        }

        .agent-code-body .hl-key { color: var(--accent-cool); }
        .agent-code-body .hl-str { color: var(--accent); }
        .agent-code-body .hl-comment { color: var(--text-muted); font-style: italic; }
        .agent-code-body .hl-section { color: #4ADE80; font-weight: 600; }
        .agent-code-body .hl-bracket { color: var(--text-muted); }

        .agent-info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            margin-bottom: 24px;
        }

        .agent-info-card {
            padding: 18px;
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            background: var(--bg-primary);
        }

        .agent-info-card h4 {
            font-size: 0.6875rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--text-muted);
            font-weight: 600;
            margin-bottom: 6px;
        }

        .agent-info-card p { font-size: 0.9375rem; font-weight: 500; }

        .agent-cap-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 24px;
        }

        .agent-cap-tag {
            padding: 5px 14px;
            border-radius: var(--radius-full);
            font-size: 0.8125rem;
            font-weight: 500;
            border: 1px solid var(--border);
            color: var(--text-secondary);
            background: var(--bg-primary);
        }

        .agent-cap-tag.primary {
            border-color: var(--accent-cool);
            color: var(--accent-cool);
            background: var(--accent-cool-subtle);
        }

        .agent-instructions {
            font-size: 0.9375rem;
            color: var(--text-secondary);
            line-height: 1.7;
        }

        .agent-instructions p { margin-bottom: 14px; }

        .agent-instructions code {
            font-family: var(--font-mono);
            font-size: 0.8rem;
            padding: 2px 7px;
            border-radius: 4px;
            background: var(--bg-primary);
            border: 1px solid var(--border);
            color: var(--accent-cool);
        }

        @media (max-width: 768px) {
            .agent-modal { max-height: 95vh; }
            .agent-modal-header, .agent-modal-tabs, .agent-tab-content { padding-left: 20px; padding-right: 20px; }
            .agent-info-grid { grid-template-columns: 1fr; }
        }

        /* ============================================
           SKILL.MD STYLED PREVIEW — Formatted
           ============================================ */

        .skill-preview-code {
            padding: 0 !important;
            max-height: 520px !important;
        }

        .skill-doc {
            padding: 28px 28px 36px;
            font-family: var(--font-body);
            font-size: 0.875rem;
            line-height: 1.7;
            color: var(--text-secondary);
        }

        .skill-doc-title {
            font-family: var(--font-display);
            font-size: 1.35rem;
            color: var(--text-primary);
            margin-bottom: 4px;
            letter-spacing: -0.02em;
        }

        .skill-doc-subtitle {
            font-size: 0.8125rem;
            color: var(--text-muted);
            margin-bottom: 24px;
            font-style: italic;
        }

        .skill-doc-section { margin-bottom: 22px; }

        .skill-doc-section-title {
            font-size: 0.6875rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--accent);
            font-weight: 700;
            margin-bottom: 10px;
            padding-bottom: 6px;
            border-bottom: 1px solid var(--border);
        }

        .skill-doc-section-title.cool { color: var(--accent-cool); }

        .skill-doc-field {
            display: flex;
            gap: 8px;
            margin-bottom: 5px;
            align-items: baseline;
        }

        .skill-doc-key {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            color: var(--accent-cool);
            min-width: 70px;
            flex-shrink: 0;
            font-weight: 500;
        }

        .skill-doc-val {
            font-size: 0.8125rem;
            color: var(--text-primary);
            font-weight: 400;
        }

        .skill-doc-list {
            list-style: none;
            padding: 0;
            margin: 4px 0 0;
        }

        .skill-doc-list li {
            position: relative;
            padding-left: 18px;
            margin-bottom: 4px;
            font-size: 0.8125rem;
            color: var(--text-secondary);
        }

        .skill-doc-list li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 8px;
            width: 6px;
            height: 6px;
            border-radius: 2px;
            background: var(--accent);
            opacity: 0.6;
        }

        .skill-doc-list.cool li::before { background: var(--accent-cool); }

        .skill-doc-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 8px;
        }

        .skill-doc-tag {
            padding: 3px 10px;
            border-radius: var(--radius-full);
            font-size: 0.6875rem;
            font-family: var(--font-mono);
            color: var(--text-tertiary);
            border: 1px solid var(--border);
        }

        .skill-doc-divider {
            height: 1px;
            background: var(--border);
            margin: 18px 0;
        }

        .skill-doc-links a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 0;
            font-size: 0.8125rem;
            color: var(--text-secondary);
            border-bottom: 1px solid var(--border);
            transition: color var(--transition-fast);
        }

        .skill-doc-links a:last-child { border-bottom: none; }
        .skill-doc-links a:hover { color: var(--accent-cool); }

        .skill-doc-links .link-label {
            font-family: var(--font-mono);
            font-size: 0.6875rem;
            color: var(--text-muted);
            min-width: 60px;
        }

        /* Scrollbar */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
