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

  :root {
    --bg: #0a0a0f;
    --surface: #111118;
    --surface2: #1a1a24;
    --border: rgba(255,255,255,0.07);
    --accent: #7fff6e;
    --accent2: #5be8ff;
    --accent3: #ff6b6b;
    --text: #f0efe8;
    --muted: #7a7a8c;
    --card-bg: rgba(255,255,255,0.03);
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
  }

  .cursor {
    position: fixed;
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    mix-blend-mode: difference;
  }
  .cursor-ring {
    position: fixed;
    width: 40px; height: 40px;
    border: 1px solid rgba(127,255,110,0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
  }
  .cursor.hover { width: 20px; height: 20px; }
  .cursor-ring.hover { width: 60px; height: 60px; border-color: var(--accent); }

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

  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s;
  }

  .nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
  }
  .nav-logo span { color: var(--accent); }

  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }
  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
    cursor: none;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s;
  }
  .nav-links a:hover { color: var(--accent); }
  .nav-links a:hover::after { transform: scaleX(1); }

  .nav-cta {
    background: var(--accent);
    color: #000;
    padding: 0.5rem 1.25rem;
    border-radius: 2px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.2s, transform 0.2s;
    cursor: none;
  }
  .nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

  /* Hero */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 3rem 4rem;
    position: relative;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(ellipse 60% 50% at 70% 40%, rgba(127,255,110,0.06) 0%, transparent 60%),
      radial-gradient(ellipse 40% 40% at 20% 70%, rgba(91,232,255,0.04) 0%, transparent 50%);
  }

  .hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
      linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  }

  .hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(160px, 18vw, 220px) auto;
    gap: 3rem;
    align-items: center;
  }

  .hero-left { min-width: 0; }

  .hero-profile {
    width: clamp(160px, 18vw, 220px);
    aspect-ratio: 1 / 1;
    padding: 0.45rem;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 18px 42px rgba(0,0,0,0.35);
    opacity: 0;
    animation: fadeUp 0.7s 0.9s forwards;
  }

  .hero-profile::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent2), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: rotateBorder 6s linear infinite;
    pointer-events: none;
  }

  .hero-profile::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(127,255,110,0.25);
    pointer-events: none;
  }

  .hero-profile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(160deg, #1a1a24 0%, #0f1017 100%);
    object-position: top center;
  }

  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(127,255,110,0.1);
    border: 1px solid rgba(127,255,110,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s forwards;
  }

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

  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

  .hero-name {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.35s forwards;
  }

  .hero-name em {
    font-style: italic;
    font-family: 'Fraunces', serif;
    font-weight: 300;
    color: var(--accent);
  }

  .hero-title {
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.5s forwards;
  }

  .hero-desc {
    font-size: 1rem;
    color: rgba(240,239,232,0.7);
    max-width: 540px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.7s 0.65s forwards;
  }

  .hero-desc strong { color: var(--text); font-weight: 500; }

  .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s 0.8s forwards;
  }

  .btn-primary {
    background: var(--accent);
    color: #000;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 2px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(127,255,110,0.3); }

  .btn-ghost {
    background: transparent;
    color: var(--text);
    padding: 0.85rem 2rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: none;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

  .hero-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    animation: fadeIn 0.8s 1s forwards;
  }

  .stat-item { text-align: right; }
  .stat-num {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--text);
    line-height: 1;
    display: block;
  }
  .stat-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
  .stat-divider { width: 1px; height: 60px; background: linear-gradient(to bottom, transparent, var(--border), transparent); align-self: center; margin: 0 auto; }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes rotateBorder { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  section { padding: 7rem 3rem; }

  .container { max-width: 1200px; margin: 0 auto; }

  .section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
  }
  .section-label::before { content: ''; width: 30px; height: 1px; background: var(--accent); }

  .section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 3rem;
  }

  /* About */
  .about { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

  .about-text p { color: rgba(240,239,232,0.7); line-height: 1.9; font-weight: 300; margin-bottom: 1.5rem; }
  .about-text p strong { color: var(--text); font-weight: 500; }

  .about-right { display: flex; flex-direction: column; gap: 2.5rem; }

  .info-block { border-left: 2px solid var(--accent); padding-left: 1.25rem; }
  .info-block-label { font-size: 0.65rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.4rem; }
  .info-block-value { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--text); }
  .info-block-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }

  /* Skills */
  .skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

  .skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
  }
  .skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(127,255,110,0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .skill-card:hover { border-color: rgba(127,255,110,0.25); transform: translateY(-3px); }
  .skill-card:hover::before { opacity: 1; }

  .skill-card-icon { width: 36px; height: 36px; background: rgba(127,255,110,0.1); border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.1rem; }
  .skill-card-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
  .skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

  .skill-tag {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    padding: 0.3rem 0.7rem;
    border-radius: 2px;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    transition: border-color 0.2s, color 0.2s;
  }
  .skill-card:hover .skill-tag { border-color: rgba(127,255,110,0.15); color: rgba(240,239,232,0.9); }

  /* Projects */
  .projects-section { background: var(--surface); border-top: 1px solid var(--border); }

  .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }

  .project-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
    cursor: none;
  }
  .project-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
  }
  .project-card:hover { border-color: rgba(127,255,110,0.2); transform: translateY(-4px); }
  .project-card:hover::after { transform: scaleX(1); }

  .project-num { font-size: 0.65rem; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 1rem; }
  .project-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
  .project-type { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; }

  .project-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .tech-badge {
    background: rgba(91,232,255,0.08);
    border: 1px solid rgba(91,232,255,0.15);
    color: var(--accent2);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }

  .thesis-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--surface2) 0%, rgba(127,255,110,0.03) 100%);
    border: 1px solid rgba(127,255,110,0.15);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
  }
  .thesis-badge {
    background: rgba(127,255,110,0.1);
    border: 1px solid rgba(127,255,110,0.2);
    padding: 0.3rem 0.8rem;
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 1rem;
  }
  .thesis-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; margin-bottom: 1rem; line-height: 1.2; }
  .thesis-points { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
  .thesis-points li { font-size: 0.82rem; color: rgba(240,239,232,0.7); padding-left: 1rem; position: relative; font-weight: 300; }
  .thesis-points li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
  .thesis-meta { text-align: right; }
  .thesis-tag { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; display: block; }

  /* Experience */
  .experience-timeline { position: relative; padding-left: 2rem; }
  .experience-timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--accent), transparent); }

  .exp-item {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.5s;
  }
  .exp-item.visible { opacity: 1; transform: translateX(0); }
  .exp-item::before { content: ''; position: absolute; left: -0.45rem; top: 0.5rem; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px rgba(127,255,110,0.5); }

  .exp-date { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem; }
  .exp-role { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.2rem; letter-spacing: -0.01em; }
  .exp-company { font-size: 0.82rem; color: var(--accent); margin-bottom: 0.75rem; letter-spacing: 0.05em; }
  .exp-desc { font-size: 0.82rem; color: rgba(240,239,232,0.65); line-height: 1.75; font-weight: 300; }

  /* Education */
  .edu-section { background: var(--surface); border-top: 1px solid var(--border); }
  .edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

  .edu-card { border: 1px solid var(--border); border-radius: 4px; padding: 2rem; background: var(--card-bg); position: relative; overflow: hidden; transition: border-color 0.3s; }
  .edu-card:hover { border-color: rgba(127,255,110,0.2); }
  .edu-card.featured { border-color: rgba(127,255,110,0.2); }

  .edu-gpa { position: absolute; top: 1.5rem; right: 1.5rem; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.8rem; color: rgba(127,255,110,0.15); line-height: 1; }
  .edu-card.featured .edu-gpa { color: rgba(127,255,110,0.25); }
  .edu-level { font-size: 0.68rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.75rem; }
  .edu-degree { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 0.4rem; line-height: 1.3; }
  .edu-school { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; }
  .edu-period { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.05em; }

  .certs-list { display: flex; flex-direction: column; gap: 1rem; }
  .cert-item { display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem 1.5rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 4px; transition: border-color 0.3s; }
  .cert-item:hover { border-color: rgba(127,255,110,0.2); }
  .cert-icon { width: 36px; height: 36px; background: rgba(127,255,110,0.1); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
  .cert-name { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
  .cert-issuer { font-size: 0.75rem; color: var(--muted); }

  /* Contact */
  .contact-section { background: var(--surface); border-top: 1px solid var(--border); text-align: center; position: relative; overflow: hidden; }
  .contact-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(127,255,110,0.05) 0%, transparent 70%); }

  .contact-big { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.04em; margin-bottom: 1.5rem; line-height: 1; }
  .contact-big em { font-style: italic; font-family: 'Fraunces', serif; font-weight: 300; color: var(--accent); }
  .contact-sub { font-size: 0.9rem; color: var(--muted); max-width: 400px; margin: 0 auto 3rem; font-weight: 300; }

  .contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
  .contact-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border: 1px solid var(--border); border-radius: 2px; text-decoration: none; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.05em; transition: all 0.2s; cursor: none; }
  .contact-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

  footer { padding: 2rem 3rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.05em; }
  .footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; color: var(--text); font-size: 0.85rem; }
  .footer-logo span { color: var(--accent); }

  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: none; background: none; border: none; padding: 4px; }
  .hamburger span { display: block; width: 24px; height: 1px; background: var(--text); transition: all 0.3s; }

  @media (max-width: 1024px), (hover: none), (pointer: coarse) {
    body { cursor: auto; }
    .cursor, .cursor-ring { display: none; }
    a, button, .project-card, .nav-links a, .nav-cta, .btn-primary, .btn-ghost, .contact-link, .hamburger { cursor: pointer; }
  }

  @media (max-width: 900px) {
    nav { padding: 1.25rem 1.5rem; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 2rem 1.5rem; gap: 1.5rem; }
    .hero { padding: 6rem 1.5rem 3rem; }
    .hero-content { grid-template-columns: 1fr; }
    .hero-profile { order: -1; }
    .hero-profile { width: min(220px, 70vw); justify-self: center; }
    .hero-stats { flex-direction: row; justify-content: space-around; }
    .stat-item { text-align: center; }
    .stat-divider { display: none; }
    section { padding: 5rem 1.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .thesis-card { grid-template-columns: 1fr; }
    .thesis-meta { text-align: left; }
    footer { flex-direction: column; gap: 1rem; text-align: center; }
  }

  @media (max-width: 600px) {
    .projects-grid { grid-template-columns: 1fr; }
    .hero-name { font-size: 2.5rem; }
    .hero-profile { width: min(190px, 75vw); }
    .contact-big { font-size: 2.2rem; }
    .edu-grid { grid-template-columns: 1fr; }
  }
