    /* === FONT FACE === */
    @font-face {
      font-family: 'Gravitica';
      src: url('/static/fonts/Gravitica-Regular.otf') format('opentype');
      font-weight: 400; font-style: normal; font-display: swap;
    }
    @font-face {
      font-family: 'Gravitica';
      src: url('/static/fonts/Gravitica-Medium.otf') format('opentype');
      font-weight: 500; font-style: normal; font-display: swap;
    }
    @font-face {
      font-family: 'Gravitica';
      src: url('/static/fonts/Gravitica-Bold.otf') format('opentype');
      font-weight: 700; font-style: normal; font-display: swap;
    }
    @font-face {
      font-family: 'Gravitica';
      src: url('/static/fonts/Gravitica-ExtraBold.otf') format('opentype');
      font-weight: 800; font-style: normal; font-display: swap;
    }

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

    :root {
      --bg:         #06070a;
      --bg-raised:  #0a0c11;
      --bg-card:    #0e1017;
      --text:       #d4d6dc;
      --text-dim:   rgba(212,214,220,0.4);
      --text-muted: rgba(212,214,220,0.18);
      --accent:     #0d9488;
      --accent-lit: #2dd4bf;
      --accent-bg:  rgba(13,148,136,0.10);
      --border:     rgba(255,255,255,0.05);
      --border-h:   rgba(45,212,191,0.3);
      --font-head:  'Gravitica', sans-serif;
      --font-body:  'Outfit', sans-serif;
      --font-mono:  'Space Mono', monospace;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: var(--font-body);
      background: var(--bg);
      color: var(--text);
      -webkit-font-smoothing: antialiased;
      line-height: 1.6;
      overflow-x: hidden;
    }

    ::selection { background: rgba(45,212,191,0.35); color: #fff; }
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

    img, video { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

    /* === LAYOUT === */
    .wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 72px); }
    .section { padding: clamp(80px, 10vw, 140px) 0; }

    /* === TYPOGRAPHY === */
    .tag {
      font-family: var(--font-mono);
      font-size: 10px; font-weight: 700;
      letter-spacing: 0.2em; text-transform: uppercase;
      color: var(--accent-lit);
    }
    h1, h2, h3, h4 {
      font-family: var(--font-head);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.05;
      color: #fff;
    }

    /* === REVEAL === */
    .reveal {
      opacity: 0; transform: translateY(24px);
      transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
    }
    .reveal.vis { opacity: 1; transform: none; }
    .d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; }
    .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

    /* ============================================
       CODE-GLOW — cycling blue → cyan → warm → blue
       ============================================ */
    @keyframes codeShift {
      0%   { color: #2dd4bf; text-shadow: 0 0 40px rgba(45,212,191,0.5), 0 0 80px rgba(45,212,191,0.15); }
      15%  { color: #5eead4; text-shadow: 0 0 40px rgba(94,234,212,0.5), 0 0 80px rgba(94,234,212,0.15); }
      30%  { color: #67e8f9; text-shadow: 0 0 40px rgba(103,232,249,0.45), 0 0 80px rgba(103,232,249,0.12); }
      50%  { color: #a5f3fc; text-shadow: 0 0 40px rgba(165,243,252,0.45), 0 0 80px rgba(165,243,252,0.12); }
      70%  { color: #0d9488; text-shadow: 0 0 40px rgba(13,148,136,0.5), 0 0 80px rgba(13,148,136,0.15); }
      85%  { color: #14b8a6; text-shadow: 0 0 40px rgba(20,184,166,0.5), 0 0 80px rgba(20,184,166,0.15); }
      100% { color: #2dd4bf; text-shadow: 0 0 40px rgba(45,212,191,0.5), 0 0 80px rgba(45,212,191,0.15); }
    }
    .code-glow {
      animation: codeShift 6s ease-in-out infinite;
      position: relative;
      display: inline-block;
    }

    /* Scanline sweep */
    @keyframes scanline {
      0%   { left: -30%; opacity: 0; }
      5%   { opacity: 1; }
      95%  { opacity: 1; }
      100% { left: 130%; opacity: 0; }
    }
    .code-glow::after {
      content: '';
      position: absolute;
      top: 0; left: -30%;
      width: 12%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
      animation: scanline 4s ease-in-out infinite;
      pointer-events: none;
    }

    /* Tag blink dot */
    @keyframes tagPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
    .tag-blink { display: inline-flex; align-items: center; gap: 8px; }
    .tag-blink::before {
      content: '';
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--accent-lit);
      box-shadow: 0 0 10px var(--accent-lit), 0 0 20px rgba(45,212,191,0.3);
      animation: tagPulse 2s ease-in-out infinite;
    }

    /* Typing cursor */
    @keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
    .typing-cursor::after {
      content: '|'; color: var(--accent-lit); font-weight: 300;
      animation: blink .9s step-end infinite; margin-left: 2px;
    }

    /* Code comment hints */
    .code-line {
      font-family: var(--font-mono); font-size: 10px;
      color: var(--text-muted); display: block; margin-bottom: 6px;
    }

    /* === NAV === */
    .nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      transition: background .35s, border-color .35s;
      border-bottom: 1px solid transparent;
    }
    .nav.scrolled {
      background: rgba(6,7,10,0.88);
      backdrop-filter: blur(24px) saturate(1.3);
      -webkit-backdrop-filter: blur(24px) saturate(1.3);
      border-bottom-color: var(--border);
    }
    .nav-inner {
      max-width: 1320px; margin: 0 auto;
      padding: 0 clamp(24px,5vw,72px);
      display: flex; align-items: center; justify-content: space-between; height: 68px;
    }
    .nav-logo {
      display: flex; align-items: center; height: 68px;
    }
    .nav-logo img {
      height: 20px; width: auto;
      mix-blend-mode: screen;
    }
    .nav-links { display: flex; align-items: center; gap: 32px; }
    .nav-links a { font-size: 13px; font-weight: 500; color: var(--text-dim); transition: color .2s; }
    .nav-links a:hover { color: #fff; }
    .nav-cta {
      font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
      padding: 10px 24px; border: 1px solid var(--accent); color: var(--accent-lit);
      border-radius: 4px; transition: background .25s, color .25s;
    }
    .nav-cta:hover { background: var(--accent); color: #fff; }
    .mob-btn { display: none; color: #fff; padding: 6px; }
    .mob-btn svg { width: 22px; height: 22px; }
    .mobile-menu {
      position: fixed; inset: 0; z-index: 99;
      background: rgba(6,7,10,0.98); backdrop-filter: blur(20px);
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
      opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
    }
    .mobile-menu.open { opacity: 1; visibility: visible; }
    .mobile-menu a {
      font-family: var(--font-head); font-size: 24px; font-weight: 600;
      color: var(--text-dim); text-transform: uppercase; transition: color .2s;
    }
    .mobile-menu a:hover { color: #fff; }
    @media (max-width: 768px) { .nav-links { display: none; } .mob-btn { display: block; } }

    /* === HERO === */
    .hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
    .hero-bg { position: absolute; inset: 0; }
    .hero-bg video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
    .hero-bg::after {
      content: ''; position: absolute; inset: 0;
      background:
        linear-gradient(180deg, var(--bg) 0%, transparent 30%),
        linear-gradient(0deg, var(--bg) 0%, transparent 55%),
        linear-gradient(90deg, var(--bg) 0%, transparent 65%);
    }
    .hero-content {
      position: relative; z-index: 2; padding-top: 68px;
      animation: heroIn 1s cubic-bezier(0.16,1,0.3,1) .15s both;
    }
    @keyframes heroIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
    .hero h1 {
      font-size: clamp(36px, 5.5vw, 68px); line-height: 1.05;
      margin: 20px 0 28px; max-width: 700px; text-transform: uppercase;
    }
    .hero-sub {
      font-size: clamp(15px,1.6vw,18px); font-weight: 300;
      color: var(--text-dim); max-width: 480px; line-height: 1.7; margin-bottom: 44px;
    }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
    .btn-primary {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 14px 32px; background: var(--accent); color: #fff;
      font-weight: 600; font-size: 13px; letter-spacing: .03em;
      text-transform: uppercase; border-radius: 4px;
      transition: background .25s, transform .25s;
    }
    .btn-primary:hover { background: var(--accent-lit); transform: translateY(-2px); }
    .btn-primary svg { width: 16px; height: 16px; }
    .btn-outline {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 14px 32px; border: 1px solid rgba(255,255,255,0.1);
      color: var(--text-dim); font-weight: 500; font-size: 13px;
      letter-spacing: .03em; text-transform: uppercase; border-radius: 4px;
      transition: border-color .25s, color .25s;
    }
    .btn-outline:hover { border-color: var(--accent); color: var(--accent-lit); }

    /* === STATS BAR === */
    .stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-raised); }
    .stats-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
    .stat { padding: clamp(28px,4vw,48px) clamp(16px,2vw,32px); text-align: center; position: relative; }
    .stat:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: var(--border); }
    .stat-val {
      font-family: var(--font-head); font-size: clamp(26px,3vw,40px); font-weight: 700;
      color: #fff; letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px;
    }
    .stat-lbl { font-size: 12px; font-weight: 400; color: var(--text-dim); }
    @media (max-width: 640px) { .stats-bar-inner { grid-template-columns: 1fr 1fr; } .stat:nth-child(2)::after { display: none; } }

    /* === CAPABILITIES === */
    .cap-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px,6vw,100px); align-items: start; }
    .cap-left { position: sticky; top: 100px; }
    .cap-left h2 { font-size: clamp(28px,3.5vw,42px); text-transform: uppercase; margin: 16px 0 20px; }
    .cap-left p { font-size: 15px; font-weight: 300; color: var(--text-dim); line-height: 1.75; max-width: 380px; }
    .cap-link {
      display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
      font-size: 13px; font-weight: 600; color: var(--accent-lit);
      letter-spacing: .03em; text-transform: uppercase; transition: gap .25s;
    }
    .cap-link:hover { gap: 14px; }
    .cap-link svg { width: 16px; height: 16px; }
    .cap-cards { display: flex; flex-direction: column; gap: 8px; }
    .cap-card {
      display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
      padding: 28px; border-radius: 6px; border: 1px solid var(--border);
      background: var(--bg-raised); transition: border-color .3s, background .3s;
    }
    .cap-card:hover { border-color: var(--border-h); background: var(--bg-card); }
    .cap-icon {
      width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
      border-radius: 6px; background: var(--accent-bg); color: var(--accent-lit);
      font-family: var(--font-mono); font-size: 13px; font-weight: 700;
    }
    .cap-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
    .cap-card p { font-size: 14px; font-weight: 300; color: var(--text-dim); line-height: 1.6; }
    @media (max-width: 768px) { .cap-grid { grid-template-columns: 1fr; } .cap-left { position: static; } }

    /* === WORK TEASER === */
    .work-teaser { background: var(--bg-raised); }
    .teaser-header { margin-bottom: clamp(32px,4vw,48px); }
    .teaser-header h2 { font-size: clamp(28px,3.5vw,42px); text-transform: uppercase; margin: 16px 0 16px; }
    .teaser-header p { font-size: 15px; font-weight: 300; color: var(--text-dim); line-height: 1.75; max-width: 480px; }
    .teaser-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4px; }
    .teaser-card {
      position: relative; border-radius: 6px; overflow: hidden;
      background: #000; display: block; cursor: pointer;
    }
    .teaser-card video, .teaser-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.16,1,.3,1); }
    .teaser-card:hover video, .teaser-card:hover img { transform: scale(1.03); }
    .teaser-main { aspect-ratio: 16/10; }
    .teaser-side { display: flex; flex-direction: column; gap: 4px; }
    .teaser-side .teaser-card { flex: 1; min-height: 0; }
    .teaser-side .teaser-card video, .teaser-side .teaser-card img { height: 100%; }
    .teaser-overlay {
      position: absolute; bottom: 0; left: 0; right: 0;
      padding: clamp(16px,2vw,24px);
      background: linear-gradient(0deg, rgba(6,7,10,.85) 0%, transparent 100%);
      opacity: 0; transition: opacity .3s;
    }
    .teaser-card:hover .teaser-overlay { opacity: 1; }
    .teaser-overlay h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 2px; }
    .teaser-overlay span { font-size: 11px; color: var(--accent-lit); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
    .teaser-cta { margin-top: clamp(24px,3vw,40px); }
    @media (max-width: 768px) {
      .teaser-grid { grid-template-columns: 1fr; }
      .teaser-overlay { opacity: 1; background: linear-gradient(0deg, rgba(6,7,10,.75) 0%, transparent 80%); }
    }

    /* === PROCESS === */
    .process { background: var(--bg); }
    .process-head { max-width: 560px; margin-bottom: clamp(48px,6vw,72px); }
    .process-head h2 { font-size: clamp(28px,3.5vw,42px); text-transform: uppercase; margin: 16px 0 16px; }
    .process-head p { font-size: 15px; font-weight: 300; color: var(--text-dim); line-height: 1.75; }
    .process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
    .step { padding: 36px 28px; background: var(--bg-raised); position: relative; transition: background .3s; }
    .step:hover { background: var(--bg-card); }
    .step-num {
      font-family: var(--font-head); font-size: 48px; font-weight: 700;
      color: rgba(13,148,136,0.06); line-height: 1; letter-spacing: -0.04em; margin-bottom: 24px;
    }
    .step h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
    .step p { font-size: 14px; font-weight: 300; color: var(--text-dim); line-height: 1.6; }
    .step-line {
      position: absolute; bottom: 0; left: 28px; right: 28px; height: 2px;
      background: var(--accent); transform: scaleX(0); transform-origin: left;
      transition: transform .4s cubic-bezier(0.16,1,0.3,1);
    }
    .step:hover .step-line { transform: scaleX(1); }
    @media (max-width: 768px) { .process-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }

    /* === MANIFESTO === */
    .manifesto { position: relative; padding: clamp(120px,16vw,220px) 0; text-align: center; overflow: hidden; }
    .manifesto-bg { position: absolute; inset: 0; }
    .manifesto-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.15; }
    .manifesto-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(6,7,10,0.4), var(--bg) 70%); }
    .manifesto-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
    .manifesto-content h2 { font-size: clamp(32px,4vw,52px); text-transform: uppercase; margin: 20px 0 24px; }
    .manifesto-content p { font-size: 16px; font-weight: 300; color: var(--text-dim); line-height: 1.8; max-width: 500px; margin: 0 auto; }


    /* === CONTACT === */
    .contact { background: var(--bg-raised); }
    .contact-center { text-align: center; max-width: 560px; margin: 0 auto; }
    .contact-center h2 { font-size: clamp(28px,3.5vw,42px); text-transform: uppercase; margin: 16px 0 20px; }
    .contact-center > p { font-size: 15px; font-weight: 300; color: var(--text-dim); line-height: 1.75; margin-bottom: 36px; }
    .email-btn {
      display: inline-flex; align-items: center; gap: 12px;
      padding: 16px 36px; border: 1px solid var(--accent); border-radius: 4px;
      font-size: 15px; font-weight: 500; color: var(--accent-lit);
      letter-spacing: 0.01em; transition: background .25s, color .25s, transform .25s;
    }
    .email-btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
    .email-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

    /* === FOOTER === */
    .footer { border-top: 1px solid var(--border); padding: 40px 0; }
    .footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
    .footer-logo {
      display: inline-flex; align-items: center;
    }
    .footer-logo img {
      height: 16px; width: auto;
      mix-blend-mode: screen;
    }
    .footer-links { display: flex; gap: 24px; }
    .footer-links a { font-size: 13px; color: var(--text-dim); transition: color .2s; }
    .footer-links a:hover { color: #fff; }
    .footer-copy { width: 100%; text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
    .footer-address { width: 100%; text-align: center; font-size: 11px; font-weight: 400; color: var(--text-dim); margin-top: 8px; letter-spacing: 0.04em; }

    /* === GRAIN === */
    .grain {
      position: fixed; inset: 0; z-index: 9999; pointer-events: none;
      opacity: .02; mix-blend-mode: overlay;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    /* === BLOG === */
    .blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
    .blog-card {
      background: var(--bg-raised); border: 1px solid var(--border); border-radius: 6px;
      overflow: hidden; transition: border-color .3s, transform .3s;
    }
    .blog-card:hover { border-color: var(--border-h); transform: translateY(-4px); }
    .blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-card); }
    .blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
    .blog-card:hover .blog-card-img img { transform: scale(1.04); }
    .blog-card-body { padding: 24px; }
    .blog-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
    .blog-card-meta span { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
    .blog-card-meta .blog-tag { color: var(--accent-lit); }
    .blog-card h3 { font-size: 17px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; line-height: 1.3; }
    .blog-card p { font-size: 14px; font-weight: 300; color: var(--text-dim); line-height: 1.6; }
    .blog-card-link { display: block; text-decoration: none; color: inherit; }

    /* Blog post single */
    .post-header { padding: clamp(140px,18vw,200px) 0 clamp(40px,5vw,60px); }
    .post-header h1 { font-size: clamp(28px,4vw,48px); text-transform: uppercase; margin: 16px 0 20px; max-width: 700px; }
    .post-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
    .post-meta span { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
    .post-meta .post-tag { color: var(--accent-lit); }
    .post-hero-img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: 6px; margin-bottom: clamp(40px,5vw,64px); }
    .post-content { max-width: 720px; margin: 0 auto; padding-bottom: clamp(80px,10vw,140px); }
    .post-content h2 { font-size: clamp(20px,2.5vw,28px); text-transform: uppercase; margin: 48px 0 16px; }
    .post-content h3 { font-size: clamp(17px,2vw,22px); text-transform: uppercase; margin: 36px 0 12px; }
    .post-content p { font-size: 16px; font-weight: 300; color: var(--text); line-height: 1.85; margin-bottom: 24px; }
    .post-content img { width: 100%; border-radius: 6px; margin: 32px 0; }
    .post-content blockquote {
      border-left: 2px solid var(--accent); padding: 16px 24px; margin: 32px 0;
      font-style: italic; color: var(--text-dim); background: var(--accent-bg);
      border-radius: 0 6px 6px 0;
    }
    .post-content a { color: var(--accent-lit); text-decoration: underline; text-underline-offset: 3px; }
    .post-content code { font-family: var(--font-mono); font-size: 14px; background: var(--bg-card); padding: 2px 8px; border-radius: 3px; }
    .post-content pre { background: var(--bg-card); padding: 20px; border-radius: 6px; overflow-x: auto; margin: 24px 0; }
    .post-content pre code { background: none; padding: 0; }

    /* Empty state */
    .empty-state { text-align: center; padding: clamp(60px,8vw,100px) 0; }
    .empty-state p { font-size: 15px; color: var(--text-dim); }

    @media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

    /* === PORTFOLIO PAGE === */
    .page-hero {
      padding: clamp(140px,18vw,200px) 0 clamp(60px,8vw,100px);
      position: relative;
    }
    .page-hero h1 {
      font-size: clamp(36px,5.5vw,68px);
      text-transform: uppercase;
      margin: 16px 0 20px;
    }
    .page-hero p {
      font-size: clamp(15px,1.6vw,18px); font-weight: 300;
      color: var(--text-dim); max-width: 520px; line-height: 1.7;
    }
    .page-hero-line {
      position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
      background: linear-gradient(90deg, transparent, var(--border-h), transparent);
    }
    .project-count {
      font-family: var(--font-mono); font-size: 11px; font-weight: 700;
      letter-spacing: .12em; color: var(--text-dim); margin-top: 24px;
    }
    .project-count strong { color: var(--accent-lit); }

    .filter-bar {
      padding: 28px 0;
      position: sticky; top: 68px; z-index: 50;
      background: rgba(6,7,10,.92);
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      margin-bottom: clamp(32px,4vw,56px);
    }
    .filter-inner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .fbtn {
      padding: 8px 20px; font-size: 11px; font-weight: 600;
      letter-spacing: .06em; text-transform: uppercase;
      color: var(--text-dim); border: 1px solid var(--border); border-radius: 3px; transition: all .2s;
    }
    .fbtn:hover { border-color: rgba(255,255,255,.15); color: var(--text); }
    .fbtn.on { background: var(--accent); border-color: var(--accent); color: #fff; }

    .projects {
      display: flex; flex-direction: column;
      gap: clamp(24px,4vw,48px);
      padding-bottom: clamp(80px,10vw,140px);
    }

    .proj.wide { display: block; }
    .proj.wide .proj-video {
      width: 100%; aspect-ratio: 21/9; border-radius: 6px; overflow: hidden;
      position: relative; background: #000;
    }
    .proj.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
    .proj.pair .proj-video {
      aspect-ratio: 16/10; border-radius: 6px; overflow: hidden;
      position: relative; background: #000;
    }
    .proj.feature {
      display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px,3vw,48px);
      align-items: center;
    }
    .proj.feature.flip { grid-template-columns: 1fr 1.6fr; }
    .proj.feature .proj-video {
      aspect-ratio: 16/10; border-radius: 6px; overflow: hidden;
      position: relative; background: #000;
    }

    .proj-video video, .proj-video img {
      width: 100%; height: 100%; object-fit: cover; display: block;
      transition: transform .6s cubic-bezier(.16,1,.3,1);
    }
    .proj-video:hover video, .proj-video:hover img { transform: scale(1.03); }

    .play {
      position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
      width: 56px; height: 56px; border-radius: 50%;
      background: rgba(0,0,0,.4); backdrop-filter: blur(10px);
      border: 1px solid rgba(255,255,255,.12);
      display: flex; align-items: center; justify-content: center;
      opacity: 0; transition: opacity .3s; cursor: pointer;
    }
    .proj-video:hover .play { opacity: 1; }
    .play svg { width: 20px; height: 20px; color: #fff; margin-left: 2px; }

    .proj-overlay {
      position: absolute; bottom: 0; left: 0; right: 0;
      padding: clamp(16px,2vw,28px);
      background: linear-gradient(0deg, rgba(6,7,10,.85) 0%, transparent 100%);
      opacity: 0; transition: opacity .35s;
    }
    .proj-video:hover .proj-overlay { opacity: 1; }
    .proj-overlay h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 2px; }
    .proj-overlay span { font-size: 11px; color: var(--accent-lit); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

    .proj-info { padding: clamp(8px,2vw,24px) 0; }
    .proj-info .tag { margin-bottom: 12px; display: block; }
    .proj-info h3 { font-size: clamp(22px,2.5vw,32px); text-transform: uppercase; margin-bottom: 12px; }
    .proj-info p { font-size: 14px; font-weight: 300; color: var(--text-dim); line-height: 1.75; margin-bottom: 20px; }
    .proj-info .meta { display: flex; gap: 28px; }
    .proj-info .meta-item dt { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-lit); margin-bottom: 2px; }
    .proj-info .meta-item dd { font-size: 13px; color: var(--text); font-weight: 500; }
    .proj-info .code-hint { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-bottom: 8px; display: block; }

    .proj-bottom {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 20px; margin-top: 16px; flex-wrap: wrap;
    }
    .proj-bottom h3 { font-size: clamp(16px,1.8vw,22px); text-transform: uppercase; }
    .proj-bottom p { font-size: 13px; font-weight: 300; color: var(--text-dim); max-width: 400px; line-height: 1.6; margin-top: 4px; }
    .proj-bottom .meta { display: flex; gap: 24px; }
    .proj-bottom .meta-item dt { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-lit); margin-bottom: 2px; }
    .proj-bottom .meta-item dd { font-size: 13px; color: var(--text); font-weight: 500; }

    .pair-info { display: flex; gap: 4px; margin-top: 4px; }
    .pair-info-item {
      flex: 1; padding: 16px 20px;
      background: var(--bg-raised); border-radius: 4px;
      border: 1px solid var(--border);
    }
    .pair-info-item h3 { font-size: 14px; text-transform: uppercase; margin-bottom: 2px; }
    .pair-info-item span { font-size: 11px; color: var(--text-dim); font-weight: 400; }

    .cta-banner {
      padding: clamp(60px,8vw,100px) 0; text-align: center;
      border-top: 1px solid var(--border);
    }
    .cta-banner h2 { font-size: clamp(24px,3vw,36px); text-transform: uppercase; margin: 12px 0 16px; }
    .cta-banner p { font-size: 15px; font-weight: 300; color: var(--text-dim); max-width: 420px; margin: 0 auto 32px; }
    .cta-btn {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 14px 36px; background: var(--accent); color: #fff;
      font-weight: 600; font-size: 13px; letter-spacing: .03em; text-transform: uppercase;
      border-radius: 4px; transition: background .25s, transform .25s;
    }
    .cta-btn:hover { background: var(--accent-lit); transform: translateY(-2px); }

    @media (max-width: 768px) {
      .proj.feature { grid-template-columns: 1fr; }
      .proj.feature.flip { grid-template-columns: 1fr; }
      .proj.feature.flip .proj-info { order: -1; }
      .proj.pair { grid-template-columns: 1fr; }
      .pair-info { flex-direction: column; }
      .proj.wide .proj-video { aspect-ratio: 16/10; }
      .proj-overlay { opacity: 1; background: linear-gradient(0deg, rgba(6,7,10,.75) 0%, transparent 80%); }
      .play { opacity: .8; width: 48px; height: 48px; }
      .play svg { width: 18px; height: 18px; }
      .proj-video.playing .play { background: rgba(13,148,136,.5); border-color: var(--accent-lit); }
    }
