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

  :root {
    --bg: #0a0a0f;
    --bg2: #11111a;
    --bg3: #18182a;
    --line: rgba(255,255,255,0.07);
    --line2: rgba(255,255,255,0.14);
    --text: #e8e6f0;
    --muted: #7a7890;
    --accent: #7ef7c4;
    --accent2: #c4a7f7;
    --accent3: #f7c47e;
    --danger: #f77ea7;
    --mono: 'DM Mono', monospace;
    --serif: 'DM Serif Display', serif;
    --sans: 'Syne', sans-serif;
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    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.2s, height 0.2s, opacity 0.2s;
    mix-blend-mode: exclusion;
  }
  .cursor-ring {
    position: fixed;
    width: 36px; height: 36px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease-out, width 0.2s, height 0.2s, opacity 0.3s;
    opacity: 0.5;
  }
  body:has(a:hover) .cursor, body:has(button:hover) .cursor { width: 20px; height: 20px; }
  body:has(a:hover) .cursor-ring, body:has(button:hover) .cursor-ring { width: 60px; height: 60px; opacity: 0.2; }

  /* GRID OVERLAY */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 0;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(10,10,15,0.95), transparent);
    backdrop-filter: blur(8px);
  }
  .nav-logo {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-decoration: none;
  }
  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }
  .nav-links a {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-cta {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: background 0.2s, color 0.2s;
  }
  .nav-cta:hover { background: var(--accent); color: var(--bg); }

  /* HERO */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    overflow: hidden;
    z-index: 1;
  }
  .hero-bg-glow {
    position: absolute;
    width: 800px; height: 800px;
    background: radial-gradient(ellipse, rgba(126,247,196,0.06) 0%, transparent 70%);
    top: -200px; right: -200px;
    pointer-events: none;
  }
  .hero-bg-glow2 {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(ellipse, rgba(196,167,247,0.05) 0%, transparent 70%);
    bottom: -100px; left: 100px;
    pointer-events: none;
  }
  .hero-inner {
    max-width: 1100px;
    width: 100%;
  }
  .hero-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.2s forwards;
  }
  .hero-label::before {
    content: '';
    display: block;
    width: 40px; height: 1px;
    background: var(--accent);
  }
  .hero-title {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    line-height: 0.95;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
  }
  .hero-title em {
    font-style: italic;
    color: var(--accent2);
  }
  .hero-title .line2 {
    display: block;
    color: var(--muted);
  }
  .hero-sub {
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
  }
  .hero-actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    opacity: 0;
    animation: fadeUp 0.8s 0.8s forwards;
  }
  .btn-primary {
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 0.9rem 2.2rem;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    cursor: none;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
  }
  .btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }
  .btn-secondary {
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.2s;
  }
  .btn-secondary:hover { color: var(--accent); }
  .btn-secondary::after {
    content: '↓';
    font-size: 1.1rem;
  }
  .hero-stats {
    position: absolute;
    right: 3rem;
    bottom: 3rem;
    display: flex;
    gap: 3rem;
    opacity: 0;
    animation: fadeUp 0.8s 1s forwards;
  }
  .stat-item {
    text-align: right;
  }
  .stat-num {
    font-family: var(--serif);
    font-size: 2.5rem;
    color: var(--accent);
    display: block;
    line-height: 1;
  }
  .stat-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  /* MARQUEE */
  .marquee-wrap {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
    background: var(--bg2);
  }
  .marquee-inner {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    width: max-content;
  }
  .marquee-item {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .marquee-item::after {
    content: '✦';
    color: var(--accent);
    font-size: 0.6rem;
  }

  /* SECTIONS */
  section { position: relative; z-index: 1; }

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

  /* ABOUT */
  .about {
    padding: 8rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
  }
  .about-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
  }
  .about-title em { font-style: italic; color: var(--accent2); }
  .about-text {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 2;
    margin-bottom: 1.5rem;
  }
  .skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
  }
  .skill-item {
    background: var(--bg);
    padding: 1.5rem;
    transition: background 0.2s;
  }
  .skill-item:hover { background: var(--bg3); }
  .skill-icon {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    display: block;
  }
  .skill-name {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
  }
  .skill-desc {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.6;
  }

  /* PROJECTS */
  .projects {
    padding: 6rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  .projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 4rem;
  }
  .projects-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }
  .projects-title em { font-style: italic; color: var(--accent3); }
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
  }
  .project-card {
    background: var(--bg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: background 0.25s;
    cursor: none;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
  }
  .project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(126,247,196,0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .project-card:hover { background: var(--bg2); }
  .project-card:hover::after { opacity: 1; }
  .project-card.featured {
    grid-column: span 2;
    background: var(--bg2);
  }
  .project-card.featured::before {
    content: 'FEATURED';
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    background: rgba(126,247,196,0.08);
    padding: 0.3rem 0.7rem;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }
  .project-num {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.1em;
  }
  .project-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--accent3);
    border: 1px solid rgba(247,196,126,0.3);
    padding: 0.2rem 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .project-tag.ai { color: var(--accent2); border-color: rgba(196,167,247,0.3); }
  .project-tag.web { color: var(--accent); border-color: rgba(126,247,196,0.3); }
  .project-name {
    font-family: var(--serif);
    font-size: 1.6rem;
    line-height: 1.15;
  }
  .project-desc {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.8;
    flex-grow: 1;
  }
  .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
  }
  .tech-pill {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    background: var(--bg3);
    padding: 0.2rem 0.6rem;
    letter-spacing: 0.08em;
  }
  .project-arrow {
    font-size: 1.2rem;
    color: var(--muted);
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
    margin-top: auto;
  }
  .project-card:hover .project-arrow { color: var(--accent); transform: translate(4px, -4px); }
  .project-links { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
  .project-link-btn {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    border: 1px solid var(--line2);
    padding: 0.25rem 0.7rem;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s, border-color 0.2s;
  }
  .project-link-btn:hover { color: var(--accent); border-color: rgba(126,247,196,0.4); }

  /* HARDWARE SHOWCASE */
  .hardware {
    padding: 6rem 3rem;
    background: var(--bg2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .hardware-inner {
    max-width: 1200px;
    margin: 0 auto;
  }
  .hardware-header {
    margin-bottom: 4rem;
  }
  .hardware-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
  }
  .hardware-title em { font-style: italic; color: var(--danger); }
  .hardware-subtitle {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 500px;
    line-height: 1.8;
  }
  .hw-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line);
  }
  .hw-item {
    background: var(--bg2);
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    align-items: center;
    padding: 2rem 2.5rem;
    gap: 2.5rem;
    transition: background 0.2s;
    cursor: none;
    text-decoration: none;
    color: inherit;
  }
  .hw-item:hover { background: var(--bg3); }
  .hw-item:hover .hw-num { color: var(--accent3); }
  .hw-item-link { text-decoration: none; color: inherit; display: contents; }
  .hw-arrow {
    font-size: 1.1rem;
    color: var(--muted);
    transition: color 0.2s, transform 0.2s;
    justify-self: end;
    align-self: center;
  }
  .hw-item:hover .hw-arrow { color: var(--accent3); transform: translate(3px, -3px); }
  .hw-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 2.5rem;
    color: var(--line2);
    transition: color 0.2s;
    line-height: 1;
  }
  .hw-body {}
  .hw-name {
    font-family: var(--sans);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
  }
  .hw-desc {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.6;
  }
  .hw-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .hw-tag {
    font-family: var(--mono);
    font-size: 0.65rem;
    padding: 0.25rem 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .hw-tag.iot { background: rgba(196,167,247,0.1); color: var(--accent2); }
  .hw-tag.ai { background: rgba(126,247,196,0.1); color: var(--accent); }
  .hw-tag.embedded { background: rgba(247,196,126,0.1); color: var(--accent3); }
  .hw-tag.pcb { background: rgba(247,126,167,0.1); color: var(--danger); }

  /* PROCESS */
  .process {
    padding: 8rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  .process-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
  }
  .process-title em { font-style: italic; color: var(--accent); }
  .process-steps {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--line);
  }
  .step {
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--line);
    position: relative;
  }
  .step:last-child { border-right: none; }
  .step-num {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
  }
  .step-name {
    font-family: var(--serif);
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  .step-desc {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.8;
  }
  .step-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.3s;
  }
  .step:hover .step-accent { background: var(--accent); }

  /* CONTACT */
  .contact {
    padding: 8rem 3rem;
    text-align: center;
    background: var(--bg2);
    border-top: 1px solid var(--line);
    position: relative;
    overflow: hidden;
  }
  .contact-glow {
    position: absolute;
    width: 1000px; height: 500px;
    background: radial-gradient(ellipse, rgba(126,247,196,0.04) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  .contact-inner { position: relative; z-index: 1; }
  .contact-label { justify-content: center; }
  .contact-title {
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.95;
    margin: 1.5rem 0 2rem;
  }
  .contact-title em { font-style: italic; color: var(--accent2); }
  .contact-sub {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 3.5rem;
    line-height: 1.8;
  }
  .contact-email {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(126,247,196,0.3);
    padding-bottom: 0.25rem;
    transition: border-color 0.2s;
    display: inline-block;
    margin-bottom: 3rem;
  }
  .contact-email:hover { border-color: var(--accent); }
  .social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
  }
  .social-link {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .social-link:hover { color: var(--text); }

  /* FOOTER */
  footer {
    position: relative;
    z-index: 1;
    padding: 2rem 3rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .footer-copy {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.08em;
  }
  .footer-back {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .footer-back:hover { color: var(--accent); }

  /* SCROLL REVEAL */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* AVAILABILITY BADGE */
  .avail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.1em;
  }
  .avail-dot {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(126,247,196,0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(126,247,196,0); }
  }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .hero { padding: 0 1.5rem; }
    .hero-stats { right: 1.5rem; gap: 1.5rem; }
    .about { grid-template-columns: 1fr; padding: 5rem 1.5rem; gap: 3rem; }
    .projects { padding: 4rem 1.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card.featured { grid-column: span 1; }
    .hardware { padding: 4rem 1.5rem; }
    .hw-item { grid-template-columns: 50px 1fr; padding: 1.5rem; }
    .hw-tags { display: none; }
    .hw-arrow { display: none; }
    .process { padding: 5rem 1.5rem; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .step { border-bottom: 1px solid var(--line); }
    .contact { padding: 5rem 1.5rem; }
    footer { padding: 1.5rem; flex-direction: column; gap: 1rem; }
  }
