:root {
      --bg: #0f1014;
      --surface: #14151a;
      --surface2: #1b1c22;
      --border: rgba(255, 255, 255, 0.05);
      --accent: #e2e8f0;
      --accent2: #94a3b8;
      --accent3: #cbd5e1;
      --text: #f8fafc;
      --muted: #8b96a5;
      --dim: #3f4552;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Syne', sans-serif;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* Noise overlay */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 999;
      opacity: 0.6;
    }

    /* Sidebar */
    .layout {
      display: grid;
      grid-template-columns: 260px 1fr;
      min-height: 100vh;
    }

    .sidebar {
      position: sticky;
      top: 0;
      height: 100vh;
      background: var(--surface);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      padding: 32px 20px;
      gap: 0;
      animation: fadeInLeft 0.6s ease both;
    }

    @keyframes fadeInLeft {
      from {
        opacity: 0;
        transform: translateX(-20px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .avatar-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 20px;
    }

    .avatar {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1));
      border: 2px solid var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'DM Serif Display', serif;
      font-size: 28px;
      color: var(--accent);
      letter-spacing: -1px;
    }

    .sidebar-name {
      font-family: 'Syne', sans-serif;
      font-weight: 800;
      font-size: 18px;
      letter-spacing: 0.04em;
      color: var(--text);
      text-align: center;
    }

    .sidebar-title {
      font-family: 'Space Mono', monospace;
      font-size: 9px;
      color: var(--accent);
      text-align: center;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      line-height: 1.6;
    }

    /* Nav */
    .nav-section {
      margin-bottom: 20px;
    }

    .nav-label {
      font-family: 'Space Mono', monospace;
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--muted);
      padding: 4px 8px;
      margin-bottom: 4px;
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 8px;
      border-radius: 6px;
      text-decoration: none;
      color: var(--muted);
      font-size: 13px;
      font-weight: 600;
      transition: all 0.15s;
      cursor: pointer;
    }

    .nav-item:hover {
      background: rgba(255, 255, 255, 0.05);
      color: var(--accent);
    }

    .nav-item .icon {
      font-size: 14px;
    }

    /* Contact chips */
    .sidebar-contacts {
      margin-top: auto;
      padding-top: 20px;
      border-top: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .contact-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      color: var(--muted);
      text-decoration: none;
      transition: color 0.15s;
    }

    .contact-item:hover {
      color: var(--accent2);
    }

    .contact-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--dim);
      flex-shrink: 0;
    }

    /* Main content */
    .main {
      padding: 0;
      animation: fadeInUp 0.7s ease 0.1s both;
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(16px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Hero */

    .hero {
      padding: 80px 64px 64px;
      border-bottom: 1px solid var(--border);
      position: relative;
      overflow: hidden;
    }

    .hero-bg {
      position: absolute;
      top: 0;
      right: 0;
      width: 60%;
      height: 100%;
      background-image: url('hero.jpg');
      background-size: cover;
      background-position: center left;
      -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
      mask-image: linear-gradient(to right, transparent, black 40%);
      z-index: 0;
      opacity: 0.5;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 650px;
    }


    .hero::after {
      content: '';
      position: absolute;
      top: -80px;
      right: -80px;
      width: 300px;
      height: 300px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
      pointer-events: none;
    }

    .hero-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--accent);
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 4px 12px;
      border-radius: 100px;
      margin-bottom: 20px;
    }

    .hero-tag::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.3;
      }
    }

    .hero h1 {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(42px, 5vw, 72px);
      line-height: 1;
      letter-spacing: -0.02em;
      color: var(--text);
      margin-bottom: 8px;
    }

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

    .hero-sub {
      font-family: 'Space Mono', monospace;
      font-size: 12px;
      color: var(--muted);
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-bottom: 24px;
    }

    .hero-bio {
      max-width: 620px;
      font-size: 15px;
      line-height: 1.75;
      color: #a8a89e;
      font-weight: 400;
    }

    .hero-bio strong {
      color: var(--text);
      font-weight: 700;
    }

    .stat-row {
      display: flex;
      gap: 32px;
      margin-top: 36px;
      flex-wrap: wrap;
    }

    .stat {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .stat-num {
      font-family: 'DM Serif Display', serif;
      font-size: 32px;
      color: var(--accent);
      line-height: 1;
    }

    .stat-label {
      font-family: 'Space Mono', monospace;
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--muted);
    }

    /* Section */
    .section {
      padding: 48px 64px;
      border-bottom: 1px solid var(--border);
    }

    .section-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 32px;
    }

    .section-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      flex-shrink: 0;
    }

    .icon-green {
      background: rgba(255, 255, 255, 0.04);
    }

    .icon-cyan {
      background: rgba(255, 255, 255, 0.03);
    }

    .icon-orange {
      background: rgba(255, 255, 255, 0.03);
    }

    .section-title {
      font-family: 'Syne', sans-serif;
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.01em;
      color: var(--text);
    }

    .section-line {
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* Experience Timeline */
    .timeline {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .tl-item {
      display: grid;
      grid-template-columns: 100px 1fr;
      gap: 24px;
      position: relative;
      padding-bottom: 32px;
    }

    .tl-item:last-child {
      padding-bottom: 0;
    }

    .tl-item:not(:last-child) .tl-right::before {
      content: '';
      position: absolute;
      left: 108px;
      top: 24px;
      bottom: 0;
      width: 1px;
      background: linear-gradient(to bottom, var(--dim), transparent);
    }

    .tl-date {
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      color: var(--muted);
      letter-spacing: 0.06em;
      padding-top: 4px;
      text-align: right;
      line-height: 1.5;
    }

    .tl-right {
      position: relative;
      padding-left: 20px;
    }

    .tl-right::after {
      content: '';
      position: absolute;
      left: -1px;
      top: 8px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }

    .tl-role {
      font-size: 16px;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 2px;
    }

    .tl-company {
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      color: var(--accent2);
      letter-spacing: 0.06em;
      margin-bottom: 12px;
      text-transform: uppercase;
    }

    .tl-bullets {
      display: flex;
      flex-direction: column;
      gap: 6px;
      list-style: none;
    }

    .tl-bullets li {
      font-size: 13px;
      color: #8a8a82;
      line-height: 1.6;
      padding-left: 14px;
      position: relative;
    }

    .tl-bullets li::before {
      content: '→';
      position: absolute;
      left: 0;
      color: var(--accent);
      font-size: 11px;
    }

    /* Skills Grid */
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 16px;
    }

    .skill-card {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 18px;
      transition: all 0.2s;
      cursor: default;
    }

    .skill-card:hover {
      border-color: rgba(255, 255, 255, 0.1);
      background: rgba(255, 255, 255, 0.02);
      transform: translateY(-2px);
    }

    .skill-cat {
      font-family: 'Space Mono', monospace;
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--accent);
      margin-bottom: 10px;
    }

    .skill-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .tag {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      color: #9a9a92;
      font-size: 11px;
      padding: 3px 8px;
      border-radius: 4px;
      font-weight: 600;
    }

    /* Projects */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 16px;
    }


    .project-card {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 12px;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .project-img {
      width: 100%;
      height: 160px;
      object-fit: cover;
      border-bottom: 1px solid var(--border);
      background: var(--surface);
    }

    .project-content {
      padding: 24px;
      flex: 1;
    }


    .project-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
      opacity: 0;
      transition: opacity 0.3s;
    }

    .project-card:hover {
      border-color: rgba(255, 255, 255, 0.1);
      transform: translateY(-3px);
    }

    .project-card:hover::before {
      opacity: 1;
    }

    .project-emoji {
      font-size: 24px;
      margin-bottom: 12px;
      display: block;
    }

    .project-name {
      font-size: 16px;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 6px;
    }

    .project-type {
      font-family: 'Space Mono', monospace;
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--accent);
      margin-bottom: 12px;
    }

    .project-desc {
      font-size: 13px;
      color: #7a7a72;
      line-height: 1.65;
    }

    /* Growth */
    .growth-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .growth-card {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 22px;
      display: flex;
      gap: 16px;
      align-items: flex-start;
      transition: all 0.2s;
    }

    .growth-card:hover {
      border-color: rgba(255, 255, 255, 0.1);
      transform: translateY(-2px);
    }

    .growth-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.03);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
    }

    .growth-content {}

    .growth-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 6px;
    }

    .growth-desc {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.6;
    }

    /* Awards */
    .award-badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 16px 20px;
      margin-right: 12px;
      margin-bottom: 12px;
    }

    .award-badge .aw-icon {
      font-size: 20px;
    }

    .award-badge .aw-text {}

    .award-badge .aw-name {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
    }

    .award-badge .aw-sub {
      font-family: 'Space Mono', monospace;
      font-size: 9px;
      color: var(--accent3);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    /* Community */
    .community-card {
      display: flex;
      align-items: center;
      gap: 20px;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 22px 24px;
      max-width: 480px;
      transition: all 0.2s;
    }

    .community-card:hover {
      border-color: rgba(255, 255, 255, 0.08);
    }

    .cc-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.03);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
    }

    .cc-role {
      font-size: 15px;
      font-weight: 700;
      color: var(--text);
    }

    .cc-org {
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-top: 4px;
    }

    /* Education */
    .edu-card {
      display: flex;
      gap: 20px;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 24px;
      max-width: 560px;
    }

    .edu-icon {
      font-size: 28px;
      flex-shrink: 0;
    }

    .edu-degree {
      font-size: 16px;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 4px;
    }

    .edu-school {
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      color: var(--accent2);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 12px;
    }

    .edu-courses {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .edu-course {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 3px 10px;
      font-size: 11px;
      color: #7a7a72;
      font-weight: 600;
    }

    /* Footer */
    .footer {
      padding: 32px 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
    }

    .footer-brand {
      font-family: 'DM Serif Display', serif;
      font-size: 20px;
      color: var(--muted);
    }

    .footer-brand em {
      font-style: italic;
      color: var(--accent);
    }

    .footer-note {
      font-family: 'Space Mono', monospace;
      font-size: 9px;
      color: var(--dim);
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    /* Responsive */
    @media (max-width: 900px) {
      .layout {
        grid-template-columns: 1fr;
      }

      .sidebar {
        position: static;
        height: auto;
      }

      .hero,
      .section {
        padding: 40px 28px;
      }

      .growth-grid {
        grid-template-columns: 1fr;
      }

      .footer {
        padding: 32px 28px;
      }
    }

    /* Custom Cursor */
    .cursor {
      position: fixed;
      top: 0;
      left: 0;
      width: 20px;
      height: 20px;
      border: 1px solid var(--accent);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      z-index: 9999;
      transition: width 0.2s, height 0.2s, background-color 0.2s;
    }

    .cursor-dot {
      position: fixed;
      top: 0;
      left: 0;
      width: 4px;
      height: 4px;
      background: var(--accent);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      z-index: 10000;
    }

    /* Reveal Animations */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    }

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

    /* Hover effects on elements */
    .nav-item {
      transition: transform 0.2s;
    }

    .nav-item:hover {
      transform: translateX(5px);
    }

    .project-img {
      transition: transform 0.5s;
    }

    .project-card:hover .project-img {
      transform: scale(1.05);
    }

    /* Thread Card */
    .threads-header {
      margin-top: 48px;
      margin-bottom: 24px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .thread-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 16px;
    }

    .thread-card {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      transition: all 0.2s;
      text-decoration: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .thread-card:hover {
      border-color: rgba(255, 255, 255, 0.2);
      transform: translateY(-2px);
    }

    .thread-author {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .thread-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      object-fit: cover;
    }

    .thread-meta {
      display: flex;
      flex-direction: column;
    }

    .thread-meta .name {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
    }

    .thread-meta .handle {
      font-size: 11px;
      color: var(--muted);
    }

    .thread-content {
      font-size: 13px;
      color: var(--text);
      line-height: 1.5;
    }

    .thread-link {
      margin-top: auto;
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      display: flex;
      align-items: center;
      gap: 4px;
    }