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

  :root {
    --black: #030305;
    --void: #07070c;
    --card: rgba(255,255,255,0.03);
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.18);
    --text: #e8e8f0;
    --muted: rgba(255,255,255,0.35);
    --accent: #00ff9d;
    --accent2: #00cfff;
    --glow: rgba(0,255,157,0.18);
    --glow2: rgba(0,207,255,0.15);
    --mono: 'Space Mono', monospace;
    --sans: 'Syne', sans-serif;
  }

  html {
    scroll-behavior: smooth;
    font-size: 100%;
  }

  body {
    background: var(--black);
    color: var(--text);
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.7;
    cursor: none;
    overflow-x: hidden;
  }

  img, canvas, svg {
    max-width: 100%;
  }

  /* CURSOR */
  #cursor {
    position: fixed; width: 8px; height: 8px;
    background: var(--accent); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%,-50%);
    transition: transform 0.08s, width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: screen;
  }
  #cursor-ring {
    position: fixed; width: 32px; height: 32px;
    border: 1px solid rgba(0,255,157,0.4);
    border-radius: 50%; pointer-events: none; z-index: 9998;
    transform: translate(-50%,-50%);
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s, border-color 0.2s;
  }

  /* CANVAS BG */
  #bg-canvas {
    position: fixed; inset: 0;
    z-index: 0; opacity: 0.6;
    pointer-events: none;
  }

  /* SCANLINES OVERLAY */
  body::after {
    content: '';
    position: fixed; inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.08) 2px,
      rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 1;
  }

  /* LAYOUT */
  .site-wrap {
    position: relative; z-index: 2;
    width: min(100% - 4rem, 1100px);
    margin: 0 auto;
  }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.4rem 3rem;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(3,3,5,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav-logo {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-decoration: none;
    white-space: nowrap;
  }
  .nav-logo span { color: var(--muted); }

  .nav-links { display: flex; gap: 2.5rem; list-style: none; }
  .nav-links a {
    font-size: 11px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
  }
  .nav-links a::after {
    content: ''; position: absolute;
    bottom: -3px; left: 0; width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-links a:hover::after { width: 100%; }

  .nav-status {
    font-size: 11px; color: var(--accent);
    display: flex; align-items: center; gap: 8px;
  }
  .status-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s infinite;
  }
  @keyframes pulse-dot {
    0%,100% { opacity: 1; box-shadow: 0 0 6px var(--accent); }
    50% { opacity: 0.4; box-shadow: none; }
  }

  /* HERO */
  #hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 8rem 0 4rem;
    position: relative;
  }

  .hero-tag {
    font-size: 11px; color: var(--accent);
    letter-spacing: 0.18em; text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0; transform: translateY(20px);
    animation: fade-up 0.6s 0.3s forwards;
  }

  .hero-name {
    font-family: var(--sans);
    font-size: clamp(2.25rem, 6.6vw, 4.9rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0;
    color: #fff;
    margin-bottom: 2.5rem;
    opacity: 0; transform: translateY(30px);
    animation: fade-up 0.7s 0.5s forwards;
  }
  .hero-name .line2 {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.25);
    font-size: 0.62em;
    white-space: nowrap;
  }
  .hero-name .accent-word {
    color: var(--accent);
    -webkit-text-stroke: 0;
    white-space: nowrap;
  }

  .hero-desc {
    max-width: 480px;
    font-size: 13px; color: var(--muted);
    line-height: 1.9;
    margin-bottom: 3rem;
    opacity: 0; transform: translateY(20px);
    animation: fade-up 0.6s 0.7s forwards;
  }

  .hero-cta {
    display: flex; gap: 1rem; flex-wrap: wrap;
    opacity: 0; transform: translateY(20px);
    animation: fade-up 0.6s 0.9s forwards;
  }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px;
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
    cursor: none;
    transition: all 0.25s;
    position: relative; overflow: hidden;
  }
  .btn::before {
    content: ''; position: absolute;
    inset: 0; background: var(--accent);
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  }
  .btn:hover::before { transform: translateX(0); }
  .btn:hover { color: #000; border-color: var(--accent); }
  .btn span { position: relative; z-index: 1; }

  .btn-ghost {
    border-color: transparent;
    color: var(--accent);
  }
  .btn-ghost:hover { color: #000; border-color: var(--accent); }

  /* FLOATING OBJECTS */
  .float-obj {
    position: absolute;
    pointer-events: none;
    animation: anti-grav linear infinite;
  }

  .hex {
    width: 60px; height: 60px;
    border: 1px solid rgba(0,255,157,0.15);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(0,255,157,0.03);
  }
  .ring {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 1px solid rgba(0,207,255,0.15);
  }
  .dot-cluster {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 12px 8px 0 rgba(0,255,157,0.3),
                24px -4px 0 rgba(0,207,255,0.2),
                -8px 16px 0 rgba(0,255,157,0.2);
  }
  .cross::before, .cross::after {
    content: ''; position: absolute;
    background: rgba(0,207,255,0.2);
  }
  .cross { position: relative; width: 20px; height: 20px; }
  .cross::before { width: 100%; height: 1px; top: 50%; transform: translateY(-50%); }
  .cross::after { width: 1px; height: 100%; left: 50%; transform: translateX(-50%); }

  @keyframes anti-grav {
    0% { transform: translateY(40px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.7; }
    100% { transform: translateY(-120px) rotate(180deg); opacity: 0; }
  }

  @keyframes fade-up {
    to { opacity: 1; transform: translateY(0); }
  }

  /* SECTION COMMON */
  section { padding: 6rem 0; }

  .section-header {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 3rem;
  }
  .section-num {
    font-size: 11px; color: var(--accent);
    letter-spacing: 0.15em;
    min-width: 32px;
  }
  .section-title {
    font-family: var(--sans);
    font-size: 1.8rem; font-weight: 700;
    color: #fff; letter-spacing: -0.02em;
  }
  .section-line {
    flex: 1; height: 1px;
    background: var(--border);
  }

  /* REVEAL ANIMATION */
  .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
                transform 0.7s cubic-bezier(0.16,1,0.3,1);
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* BENTO GRID */
  .bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }

  .bento-cell {
    background: var(--void);
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
  }
  .bento-cell::before {
    content: ''; position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx,50%) var(--my,50%), var(--glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
  }
  .bento-cell:hover::before { opacity: 1; }
  .bento-cell:hover { background: rgba(255,255,255,0.025); }

  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-12 { grid-column: span 12; }

  .cell-label {
    font-size: 10px; color: var(--accent);
    letter-spacing: 0.18em; text-transform: uppercase;
    margin-bottom: 0.8rem;
  }
  .cell-title {
    font-family: var(--sans);
    font-size: 1.3rem; font-weight: 700;
    color: #fff; margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
  }
  .cell-body { font-size: 12px; color: var(--muted); line-height: 1.8; }

  /* ABOUT CELL */
  .about-stat {
    margin-top: 1.5rem;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .stat-item {}
  .stat-num {
    font-family: var(--sans);
    font-size: 2.2rem; font-weight: 800;
    color: #fff; line-height: 1;
    margin-bottom: 4px;
  }
  .stat-label { font-size: 10px; color: var(--muted); letter-spacing: 0.1em; }

  /* SKILLS */
  .skill-grid {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 1.2rem;
  }
  .skill-tag {
    font-size: 11px; font-family: var(--mono);
    padding: 5px 12px;
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: none;
    transition: all 0.2s;
    position: relative;
  }
  .skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px var(--glow);
    transform: translateY(-3px);
  }

  /* SCRAMBLE TEXT */
  .scramble { cursor: none; }

  /* PROJECTS */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }

  .project-card {
    background: var(--void);
    padding: 2rem;
    position: relative; overflow: hidden;
    transition: background 0.3s;
    cursor: none;
  }
  .project-card::after {
    content: ''; position: absolute;
    top: 0; left: 0; width: 3px; height: 0;
    background: var(--accent);
    transition: height 0.4s cubic-bezier(0.16,1,0.3,1);
  }
  .project-card:hover::after { height: 100%; }
  .project-card:hover { background: rgba(255,255,255,0.025); }

  .proj-num {
    font-size: 10px; color: var(--muted);
    letter-spacing: 0.15em;
    margin-bottom: 1.2rem;
  }
  .proj-title {
    font-family: var(--sans);
    font-size: 1.1rem; font-weight: 700;
    color: #fff; margin-bottom: 0.7rem;
    letter-spacing: -0.01em;
  }
  .proj-desc { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }
  .proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.5rem; }
  .proj-tag {
    font-size: 10px; padding: 3px 9px;
    border: 1px solid rgba(0,207,255,0.2);
    color: rgba(0,207,255,0.6);
    letter-spacing: 0.08em;
  }
  .proj-links { display: flex; gap: 1rem; }
  .proj-link {
    font-size: 11px; color: var(--muted);
    text-decoration: none; letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
    display: flex; align-items: center; gap: 5px;
  }
  .proj-link:hover { color: var(--accent); }
  .proj-link svg { width: 12px; height: 12px; }
  .proj-links .proj-link:first-child:not(:last-child) { display: none; }

  /* TERMINAL BLOCK */
  .terminal {
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--border);
    padding: 1.5rem;
    font-size: 12px;
    line-height: 2;
  }
  .term-line { display: flex; gap: 8px; }
  .term-prompt { color: var(--accent); }
  .term-cmd { color: var(--text); }
  .term-out { color: var(--muted); padding-left: 1.5rem; }
  .term-cursor {
    display: inline-block;
    width: 8px; height: 13px;
    background: var(--accent);
    animation: blink 1.1s steps(1) infinite;
    vertical-align: text-bottom;
  }
  @keyframes blink { 50% { opacity: 0; } }

  /* CONTACT */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }
  .contact-cell { background: var(--void); padding: 2.5rem; }

  .contact-link {
    display: flex; align-items: center; gap: 12px;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none; color: var(--text);
    transition: all 0.25s; cursor: none;
  }
  .contact-link:last-child { border-bottom: none; }
  .contact-link:hover { color: var(--accent); padding-left: 8px; }
  .contact-link:hover .link-icon { color: var(--accent); }
  .link-icon { color: var(--muted); font-size: 11px; min-width: 80px; letter-spacing: 0.1em; }
  .link-val { font-size: 12px; }

  /* FOOTER */
  footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; color: var(--muted);
  }

  /* SCROLL INDICATOR */
  .scroll-line {
    position: fixed; right: 2.5rem; top: 0;
    width: 1px; height: var(--progress, 0%);
    background: linear-gradient(to bottom, transparent, var(--accent));
    z-index: 50;
    transition: height 0.1s;
  }

  /* ANTI-GRAVITY SECTION LABEL */
  .ag-label {
    position: absolute; right: 2rem; top: 2rem;
    font-size: 10px; color: rgba(0,255,157,0.2);
    letter-spacing: 0.2em; text-transform: uppercase;
    writing-mode: vertical-rl;
    pointer-events: none;
  }

  /* GRID NOISE */
  .dot-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    opacity: 0.5;
  }

  /* TILT 3D */
  .tilt { transform-style: preserve-3d; will-change: transform; }

  /* GLOW BLOB */
  .glow-blob {
    position: absolute; border-radius: 50%;
    filter: blur(80px); pointer-events: none;
    animation: blob-drift 12s ease-in-out infinite alternate;
  }
  .blob-1 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(0,255,157,0.07), transparent 70%);
    top: 20%; right: -5%;
    animation-delay: 0s;
  }
  .blob-2 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(0,207,255,0.06), transparent 70%);
    bottom: 15%; left: -5%;
    animation-delay: -4s;
  }
  @keyframes blob-drift {
    from { transform: translate(0,0) scale(1); }
    to { transform: translate(30px, -40px) scale(1.1); }
  }

  /* RESPONSIVE */
  @media (max-width: 1024px) {
    .site-wrap { width: min(100% - 3rem, 920px); }
    nav { padding: 1.2rem 2rem; }
    .nav-links { gap: 1.5rem; }
    .hero-name { font-size: clamp(2.1rem, 7.5vw, 4.4rem); }
    .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 768px) {
    nav { padding: 1.2rem 1.5rem; }
    .nav-links { display: none; }
    .site-wrap { width: min(100% - 2rem, 680px); }
    #hero {
      min-height: auto;
      padding: 7rem 0 3.5rem;
    }
    section { padding: 4rem 0; }
    .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-name {
      font-size: clamp(1.8rem, 8.4vw, 3.5rem);
      margin-bottom: 1.75rem;
    }
    .hero-desc {
      max-width: 100%;
      margin-bottom: 2rem;
    }
    .projects-grid { grid-template-columns: 1fr; }
    .bento-cell,
    .project-card,
    .contact-cell {
      padding: 1.4rem;
    }
    .terminal {
      overflow-x: auto;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
    }
    footer {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }
  }

  @media (max-width: 480px) {
    body {
      font-size: 13px;
      cursor: auto;
    }
    #cursor,
    #cursor-ring {
      display: none;
    }
    nav {
      padding: 1rem;
      gap: 1rem;
    }
    .nav-logo {
      font-size: 10px;
    }
    .nav-status {
      font-size: 9px;
      white-space: nowrap;
    }
    .site-wrap { width: min(100% - 1.25rem, 420px); }
    .hero-tag {
      font-size: 9px;
      line-height: 1.7;
      margin-bottom: 1.2rem;
    }
    .hero-name {
      font-size: clamp(1.55rem, 9.5vw, 2.55rem);
      line-height: 1;
    }
    .hero-name .line2 { font-size: 0.58em; }
    .hero-cta {
      flex-direction: column;
      align-items: stretch;
    }
    .btn {
      justify-content: center;
      width: 100%;
      cursor: pointer;
    }
    .section-header {
      gap: 0.7rem;
      margin-bottom: 2rem;
    }
    .section-title { font-size: 1.35rem; }
    .section-line { min-width: 24px; }
    .about-stat { grid-template-columns: 1fr; }
    .projects-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    .contact-link {
      align-items: flex-start;
      flex-direction: column;
      gap: 4px;
      cursor: pointer;
    }
    .link-icon { min-width: 0; }
    .link-val {
      overflow-wrap: anywhere;
    }
    .float-obj,
    .glow-blob,
    .scroll-line,
    .ag-label {
      display: none;
    }
  }
