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

  :root {
    --black: #0a0a0a;
    --white: #f5f2eb;
    --cream: #ede8dd;
    --accent: #d4ff00;
    --accent2: #ff3c00;
    --muted: #888880;
    --card-bg: #121212;
    --border: rgba(255,255,255,0.08);
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--black);
    color: var(--white);
    font-family: 'Syne', sans-serif;
    overflow-x: hidden;
    cursor: none;
  }

  /* Custom cursor */
  .cursor {
    position: fixed;
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
  }
  .cursor-ring {
    position: fixed;
    width: 40px; height: 40px;
    border: 1px solid var(--accent);
    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, opacity 0.3s;
    opacity: 0.5;
  }
  .cursor.hovering { width: 20px; height: 20px; background: var(--accent2); }
  .cursor-ring.hovering { width: 60px; height: 60px; opacity: 0.2; }

  /* 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: 1000;
    opacity: 0.4;
  }

  /* Nav */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background: linear-gradient(to bottom, rgba(10,10,10,0.9) 0%, transparent 100%);
    backdrop-filter: blur(0px);
  }
  .nav-logo {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  .nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
  }
  .nav-links a {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s;
  }
  .nav-links a:hover { color: var(--white); }
  .nav-links a:hover::after { width: 100%; }

  /* Hero */
  #hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 48px 80px;
    position: relative;
    overflow: hidden;
  }

  .hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(120px, 20vw, 280px);
    font-weight: 800;
    color: rgba(255,255,255,0.02);
    white-space: nowrap;
    user-select: none;
    animation: bgFloat 8s ease-in-out infinite;
    letter-spacing: -0.05em;
  }
  @keyframes bgFloat {
    0%, 100% { transform: translate(-50%, -52%); }
    50% { transform: translate(-50%, -48%); }
  }

  .hero-tag {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .hero-tag::before {
    content: '';
    width: 32px; height: 1px;
    background: var(--accent);
    display: inline-block;
  }

  .hero-name {
    font-size: clamp(64px, 10vw, 140px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
  }
  .hero-name .italic {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
  }

  .hero-sub {
    font-size: clamp(16px, 2vw, 22px);
    color: var(--muted);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
  }

  .hero-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    animation: fadeUp 0.8s 0.8s forwards;
  }

  .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--accent);
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: transform 0.3s, background 0.3s;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  }
  .hero-cta:hover { background: var(--white); transform: translateY(-2px); }
  .hero-cta svg { width: 16px; height: 16px; }

  .hero-scroll {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
  }
  @keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(0.7); }
  }

  .floating-badge {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: 140px; height: 140px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateBadge 20s linear infinite;
  }
  .floating-badge svg {
    position: absolute;
    width: 100%; height: 100%;
    animation: rotateBadge 20s linear infinite;
  }
  .floating-badge-center {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--accent);
    animation: counterRotate 20s linear infinite;
  }
  @keyframes rotateBadge { to { transform: translateY(-50%) rotate(360deg); } }
  @keyframes counterRotate { to { transform: rotate(-360deg); } }

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

  /* Section base */
  section { padding: 120px 48px; }

  .section-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .section-label::before {
    content: '';
    width: 24px; height: 1px;
    background: var(--accent);
  }

  .section-title {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 64px;
  }
  .section-title .accent { color: var(--accent); }
  .section-title .italic {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
  }

  /* About */
  #about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 24px;
  }
  .about-text p strong { color: var(--white); font-weight: 600; }

  .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .stat-box {
    border: 1px solid var(--border);
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  }
  .stat-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212,255,0,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .stat-box:hover { border-color: var(--accent); transform: translateY(-4px); }
  .stat-box:hover::before { opacity: 1; }
  .stat-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Space Mono', monospace;
  }
  .stat-label {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  /* Skills */
  #skills { background: var(--card-bg); }
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
  .skill-chip {
    padding: 16px 24px;
    border: 1px solid var(--border);
    font-size: 14px;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }
  .skill-chip::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    height: 1px;
    width: 0;
    background: var(--accent);
    transition: width 0.4s;
  }
  .skill-chip:hover { border-color: var(--accent); color: var(--accent); }
  .skill-chip:hover::after { width: 100%; }
  .skill-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
  }
  .skill-chip:nth-child(3n) .skill-dot { background: var(--accent2); }
  .skill-chip:nth-child(5n) .skill-dot { background: #00d4ff; }

  /* Projects */
  #projects {}
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s, transform 0.4s;
    group: true;
  }
  .project-card:hover { border-color: var(--accent); transform: translateY(-6px); }
  .project-card:first-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .project-visual {
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .project-card:first-child .project-visual {
    height: auto;
    min-height: 320px;
  }
  .project-visual-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    transition: transform 0.4s;
  }
  .project-card:hover .project-visual-inner { transform: scale(1.05); }

  .project-visual.v1 { background: linear-gradient(135deg, #0a0a0a 0%, #1a0a00 100%); }
  .project-visual.v2 { background: linear-gradient(135deg, #0a0a0a 0%, #000a1a 100%); }
  .project-visual.v3 { background: linear-gradient(135deg, #0a0a0a 0%, #0a0014 100%); }
  .project-visual.v4 { background: linear-gradient(135deg, #0a0a0a 0%, #001a0a 100%); }

  .project-grid-visual {
    width: 120px; height: 120px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    animation: gridPulse 3s ease-in-out infinite;
  }
  @keyframes gridPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
  }
  .project-grid-cell {
    border-radius: 2px;
    animation: cellBlink 3s ease-in-out infinite;
  }
  .project-grid-cell:nth-child(odd) { animation-delay: 0.3s; }
  @keyframes cellBlink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
  }

  .project-body {
    padding: 32px;
  }
  .project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .project-tag {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .project-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
  }
  .project-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 24px;
  }
  .project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: gap 0.3s;
  }
  .project-link:hover { gap: 16px; }

  /* Timeline */
  #experience { background: var(--card-bg); }
  .timeline {
    position: relative;
    padding-left: 40px;
  }
  .timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), transparent);
  }
  .timeline-item {
    position: relative;
    padding-bottom: 64px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s;
  }
  .timeline-item.visible { opacity: 1; transform: translateX(0); }
  .timeline-dot {
    position: absolute;
    left: -44px;
    top: 4px;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 16px var(--accent);
  }
  .timeline-date {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .timeline-role {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
  }
  .timeline-company {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 16px;
  }
  .timeline-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 600px;
  }

  /* Contact */
  #contact {
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .contact-big {
    font-size: clamp(60px, 12vw, 180px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 48px;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255,255,255,0.2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .contact-links {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border: 1px solid var(--border);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }
  .contact-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateY(100%);
    transition: transform 0.3s;
    z-index: 0;
  }
  .contact-link:hover { color: var(--black); border-color: var(--accent); }
  .contact-link:hover::before { transform: translateY(0); }
  .contact-link span { position: relative; z-index: 1; }

  /* Marquee */
  .marquee-section {
    padding: 40px 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--black);
  }
  .marquee-track {
    display: flex;
    gap: 64px;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
  }
  .marquee-item {
    font-size: 13px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .marquee-item .dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
  }
  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* Footer */
  footer {
    padding: 40px 48px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  footer p {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
  }

  /* Scroll reveal */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s, transform 0.8s;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }

  @media (max-width: 768px) {
    nav { padding: 20px 24px; }
    .nav-links { display: none; }
    #hero, section { padding-left: 24px; padding-right: 24px; }
    #about { grid-template-columns: 1fr; gap: 48px; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card:first-child { grid-column: span 1; grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 16px; text-align: center; }
    .floating-badge { display: none; }
    .hero-bottom { flex-direction: column; align-items: flex-start; gap: 40px; }
  }
