  :root {
    --bg: #060608;
    --bg2: #0a0a0f;
    --accent: #e8ff00;
    --accent2: #ff3c00;
    --text: #f0f0f0;
    --muted: #555;
    --card: #0f0f14;
    --border: rgba(232,255,0,0.12);
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    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;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
  }
  .cursor-ring {
    position: fixed; width: 40px; height: 40px;
    border: 1px solid rgba(232,255,0,0.5);
    border-radius: 50%; pointer-events: none;
    z-index: 9998; transition: all 0.15s ease;
    transform: translate(-50%, -50%);
  }

  /* NOISE OVERLAY */
  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.03'/%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: 500;
    padding: 24px 60px;
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(to bottom, rgba(6,6,8,0.9) 0%, transparent 100%);
    backdrop-filter: blur(4px);
  }
  .logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px; letter-spacing: 3px;
    color: var(--accent);
  }
  .nav-links { display: flex; gap: 40px; list-style: none; }
  .nav-links a {
    position: relative;
    text-decoration: none; color: #cfcfcf;
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    transition: color 0.3s;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }
  .nav-links a:hover,
  .nav-links a:focus-visible,
  .nav-links a.is-active,
  .nav-links a[aria-current="page"] { color: var(--accent); }
  .nav-links a:hover::after,
  .nav-links a:focus-visible::after,
  .nav-links a.is-active::after,
  .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-actions {
    display: flex; align-items: center; gap: 12px;
  }
  .lang-switch { position: relative; }
  .lang-switch__btn {
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(12,12,16,0.7);
    color: var(--text);
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
  }
  .lang-switch__btn:hover,
  .lang-switch__btn[aria-expanded="true"] {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(232,255,0,0.06);
  }
  .lang-switch__menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 128px;
    border: 1px solid var(--border);
    background: #0d0e14;
    box-shadow: 0 18px 36px rgba(0,0,0,0.45);
    display: none;
    z-index: 20;
  }
  .lang-switch.is-open .lang-switch__menu { display: block; }
  .lang-switch__item {
    width: 100%;
    padding: 10px 12px;
    border: none;
    text-align: left;
    display: block;
    background: transparent;
    color: var(--muted);
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    font-family: 'Manrope', sans-serif;
  }
  .lang-switch__item.is-active {
    color: var(--accent);
    background: rgba(232,255,0,0.08);
  }
  .lang-switch__item.is-disabled {
    color: #7b7b7b;
    cursor: not-allowed;
    user-select: none;
  }
  .lang-ru-cross {
    position: relative;
    display: inline-block;
    padding: 0 2px;
    color: #9a9a9a;
  }
  .lang-ru-cross::before,
  .lang-ru-cross::after {
    content: '';
    position: absolute;
    left: -1px;
    right: -1px;
    top: 50%;
    height: 1px;
    background: rgba(255,90,90,0.9);
    transform-origin: center;
  }
  .lang-ru-cross::before { transform: rotate(32deg); }
  .lang-ru-cross::after { transform: rotate(-32deg); }
  .nav-cta {
    padding: 10px 28px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
  }
  .nav-cta:hover { background: var(--accent); color: var(--bg); }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
  }

  .hero-left {
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 120px 60px 80px;
    position: relative; z-index: 2;
  }

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

  .hero-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(80px, 10vw, 140px);
    line-height: 0.9;
    letter-spacing: -2px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    opacity: 0; animation: fadeUp 0.8s 0.5s forwards;
  }
  .hero-name-line {
    display: block;
    opacity: 0;
    transform: translateY(42px);
    animation: heroLineReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero-name-line:first-child { animation-delay: 0.58s; }
  .hero-name-accent {
    position: relative;
    color: var(--accent);
    animation-delay: 0.72s;
  }
  .hero-name-accent::before,
  .hero-name-accent::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
  }
  .hero-name-accent::before {
    color: #ff5c5c;
    transform: translate3d(0, 0, 0);
  }
  .hero-name-accent::after {
    color: #8dfcff;
    transform: translate3d(0, 0, 0);
  }
  .hero-name:hover .hero-name-accent::before,
  .hero-name:hover .hero-name-accent::after {
    opacity: 0.65;
    animation: heroNameGlitch 420ms steps(2, end) 2;
  }

  .hero-sub {
    font-size: 18px; color: #c9c9c9;
    max-width: 320px; line-height: 1.8;
    margin-top: 32px;
    opacity: 0; animation: heroTextReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.86s forwards;
  }

  .hero-actions {
    display: flex; gap: 20px; margin-top: 48px;
    opacity: 0; animation: fadeUp 0.8s 0.9s forwards;
  }
.btn-primary {
  padding: 16px 40px;
  background: var(--accent); color: var(--bg);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; font-weight: 700;
  transition: all 0.3s; display: inline-block;
  border: none; cursor: pointer;
  font-family: 'Manrope', sans-serif;
}
  .btn-primary:hover {
    background: var(--accent2); transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,60,0,0.3);
  }
.btn-outline {
  padding: 16px 40px;
  border: 1px solid var(--muted); color: var(--text);
  background: transparent;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; transition: all 0.3s; display: inline-block;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
}
  .btn-outline:hover { border-color: var(--accent); color: var(--accent); }

  /* HERO RIGHT — PHOTO CONTAINER */
  .hero-right {
    position: relative; overflow: hidden;
  }

  .hero-photo-wrap {
    position: absolute; inset: 0;
    overflow: hidden;
    isolation: isolate;
  }

  .hero-photo {
    --hero-photo-offset: -24px;
    width: 100%; height: 120%;
    object-fit: cover; object-position: center top;
    filter: grayscale(100%) contrast(1.1);
    transform: scale(1.05) translateY(var(--hero-photo-offset));
    transition: filter 1.2s ease, transform 0.5s ease;
  }

  .hero-pixel-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
  }

  .hero-photo-wrap.is-pixel-active .hero-photo {
    filter: grayscale(82%) contrast(1.15) brightness(1.03);
  }

  .hero-pixel {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--pixel-size, 12px);
    height: var(--pixel-size, 12px);
    background: var(--pixel-color, var(--accent));
    box-shadow: 0 0 8px rgba(232,255,0,0.18);
    opacity: 0;
    will-change: transform, opacity;
    animation: heroPixelBurst var(--pixel-duration, 560ms) steps(5, end) forwards;
  }

  @keyframes heroPixelBurst {
    0% {
      opacity: 0;
      transform: translate3d(var(--pixel-x), var(--pixel-y), 0) scale(0.55);
    }
    18% {
      opacity: 0.72;
      transform: translate3d(calc(var(--pixel-x) + var(--pixel-drift-x) * 0.25), calc(var(--pixel-y) + var(--pixel-drift-y) * 0.25), 0) scale(1);
    }
    100% {
      opacity: 0;
      transform: translate3d(calc(var(--pixel-x) + var(--pixel-drift-x)), calc(var(--pixel-y) + var(--pixel-drift-y)), 0) scale(0.3);
    }
  }

  /* Gradient overlays */
  .hero-right::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 30%);
    z-index: 3;
    pointer-events: none;
  }
  .hero-right::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, transparent 30%);
    z-index: 3;
    pointer-events: none;
  }

  /* Photo color reveal on scroll */
  .hero-photo.revealed {
    filter: grayscale(0%) contrast(1.0);
  }

  /* Glitch lines on photo */
  .photo-glitch {
    position: absolute; inset: 0; z-index: 3;
    pointer-events: none;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.03) 2px,
      rgba(0,0,0,0.03) 4px
    );
  }

  /* Photo accent tag */
  .photo-label {
    position: absolute; bottom: 100px; left: -20px; z-index: 10;
    background: var(--accent); color: var(--bg);
    padding: 12px 24px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px; letter-spacing: 2px;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: bottom left;
    opacity: 0; animation: fadeIn 1s 1.2s forwards;
  }

  /* STATS BAR */
  .stats-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
  }
  .stat {
    padding: 40px 60px;
    border-right: 1px solid var(--border);
    opacity: 0; transform: translateY(20px);
    transition: all 0.6s ease;
  }
  .stat.visible { opacity: 1; transform: translateY(0); }
  .stat:last-child { border-right: none; }
  .stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 56px; color: var(--accent);
    line-height: 1;
  }
  .stat-label {
    font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--muted); margin-top: 8px;
  }

  /* ABOUT SECTION */
  .about {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
  }

  .about-photo-side {
    position: relative; overflow: hidden;
  }

  /* THE WOW EFFECT — PHOTO COMES ALIVE ON SCROLL */
  .about-photo-container {
    position: sticky; top: 0;
    height: 100vh; overflow: hidden;
    background:
      radial-gradient(circle at 20% 20%, rgba(232,255,0,0.08), transparent 32%),
      linear-gradient(180deg, #080a0f 0%, #030406 100%);
  }

  .about-photo {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    filter: grayscale(100%) brightness(0.6);
    transform: scale(1.1);
    transition: filter 1s ease, transform 1s ease, opacity 0.45s ease;
    will-change: filter, transform, opacity;
  }

  /* Eyes glow effect */
  .eyes-glow {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 30% 10% at 38% 40%, rgba(232,255,0,0.08) 0%, transparent 60%),
                radial-gradient(ellipse 20% 8% at 62% 40%, rgba(232,255,0,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: 2;
    pointer-events: none;
  }

  .about-photo-container.awakened .about-photo {
    filter: grayscale(0%) brightness(0.85) contrast(1.05);
    transform: scale(1.0);
  }

  .about-photo-container.awakened .eyes-glow {
    opacity: 1;
  }

  .about-code-scene {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(4, 6, 10, 0.24) 0%, rgba(4, 6, 10, 0.86) 100%);
    transition: opacity 0.45s ease;
  }

  .about-photo-container.code-active .about-code-scene {
    opacity: 1;
  }

  .about-photo-container.code-active .about-photo,
  .about-photo-container.code-active .eyes-glow {
    opacity: 0.08;
  }

  .about-code-panel {
    width: min(78%, 560px);
    min-height: 260px;
    margin: 0;
    padding: 28px 26px;
    border: 1px solid rgba(232,255,0,0.16);
    background: rgba(5, 8, 12, 0.82);
    box-shadow: 0 28px 80px rgba(0,0,0,0.42);
    color: #d7e7d0;
    font: 500 15px/1.65 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    white-space: pre-wrap;
    overflow: hidden;
  }

  .about-code-panel code::after {
    content: '';
    display: inline-block;
    width: 0.58em;
    height: 1.1em;
    margin-left: 2px;
    vertical-align: -0.18em;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(232,255,0,0.35);
    animation: codeCaret 0.7s steps(1, end) infinite;
  }

  .about-code-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: -14%;
    height: 22%;
    opacity: 0;
    background: linear-gradient(
      180deg,
      rgba(232,255,0,0) 0%,
      rgba(232,255,0,0.18) 48%,
      rgba(232,255,0,0.05) 80%,
      rgba(232,255,0,0) 100%
    );
    mix-blend-mode: screen;
    pointer-events: none;
  }

  .about-photo-container.scan-active .about-code-scan {
    opacity: 1;
    animation: aboutCodeSweep 0.95s ease forwards;
  }

  /* Particle effect */
  .particles {
    position: absolute; inset: 0; z-index: 3;
    pointer-events: none; overflow: hidden;
  }

  .particle {
    position: absolute; width: 2px; height: 2px;
    background: var(--accent); border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
  }

  @keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100%) translateX(0); }
    10% { opacity: 0.8; }
    90% { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-20%) translateX(var(--drift)); }
  }

  .about-photo-container.awakened .particle {
    animation-play-state: running;
  }

  /* Scan line effect */
  .scan-line {
    position: absolute; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: 0;
    z-index: 4;
    animation: scan 4s linear infinite;
    animation-play-state: paused;
  }

  .about-photo-container.awakened .scan-line {
    opacity: 0.3;
    animation-play-state: running;
  }

  @keyframes scan {
    0% { top: -2px; }
    100% { top: 100%; }
  }

  @keyframes aboutCodeSweep {
    0% {
      top: -18%;
      opacity: 0;
    }
    12% {
      opacity: 0.95;
    }
    100% {
      top: 100%;
      opacity: 0;
    }
  }

  @keyframes codeCaret {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
  }

  .about-content {
    padding: 60px 80px 100px;
    display: flex; flex-direction: column; justify-content: center;
    width: 100%;
  }

  .section-tag {
    font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 20px;
    display: flex; align-items: center;
  }

  .section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 5vw, 80px);
    line-height: 1; letter-spacing: 1px;
    margin-bottom: 40px;
  }

  .about-text {
    font-size: 16px; color: #aaa; line-height: 1.9;
    margin-bottom: 24px; max-width: 480px;
  }

  @media (min-width: 1025px) {
    .about-text {
      max-width: none;
      width: 100%;
    }
  }

  .skills-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 12px; margin-top: 40px;
  }

  .skill-item {
    padding: 16px 20px;
    border: 1px solid var(--border);
    background: var(--card);
    font-size: 12px; letter-spacing: 1px;
    display: flex; justify-content: space-between;
    align-items: center;
    transition: all 0.3s; cursor: default;
  }
  .skill-item:hover {
    border-color: var(--accent);
    background: rgba(232,255,0,0.04);
    transform: translateX(4px);
  }
  .skill-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
  }

  /* PROJECTS */
  .projects { padding: 120px 60px; background: var(--bg); }

  .section-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 60px;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .project-card {
    position: relative; aspect-ratio: 4/2.15;
    background: var(--card);
    overflow: hidden; cursor: pointer;
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .project-card.visible { opacity: 1; transform: translateY(0); }

  .project-card-inner {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    background: linear-gradient(to top, rgba(6,6,8,0.95) 0%, transparent 60%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .project-bg {
    position: absolute; inset: 0;
    background: var(--card);
    transition: transform 0.5s ease, filter 0.5s ease;
  }

  .project-card:nth-child(1) .project-bg { background: linear-gradient(135deg, #0f1020 0%, #1a1030 100%); }
  .project-card:nth-child(2) .project-bg { background: linear-gradient(135deg, #100f10 0%, #201010 100%); }
  .project-card:nth-child(3) .project-bg { background: linear-gradient(135deg, #0f1510 0%, #102015 100%); }
  .project-bg--chocopix {
    background-image:
      linear-gradient(to top, rgba(6,6,8,0.72) 0%, rgba(6,6,8,0.2) 60%),
      url("https://image.thum.io/get/width/1200/noanimate/https://www.chocopix.store/");
    background-size: cover;
    background-position: center top;
  }

  .project-card:hover .project-bg {
    transform: scale(1.08);
    filter: brightness(1.2);
  }

  .project-tag {
    font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 6px;
  }
  .project-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px; letter-spacing: 1px;
    line-height: 1.1; transition: color 0.3s;
  }
  .project-card:hover .project-title { color: var(--accent); }
  .project-desc {
    font-size: 14px; color: var(--muted);
    margin-top: 6px; line-height: 1.5;
  }
  .project-site-link {
    margin-top: 8px;
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1px;
    text-decoration: none;
    color: #b8b8b8;
    border-bottom: 1px solid rgba(184,184,184,0.35);
    transition: color 0.3s ease, border-color 0.3s ease;
  }
  .project-site-link:hover {
    color: var(--accent);
    border-color: rgba(232,255,0,0.7);
  }

  .project-arrow {
    position: absolute; top: 24px; right: 24px;
    width: 44px; height: 44px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 18px;
    transition: all 0.3s;
    transform: translateY(-10px); opacity: 0;
    z-index: 2;
  }
  .project-card:hover .project-arrow {
    transform: translateY(0); opacity: 1;
    border-color: var(--accent); color: var(--accent);
  }

  .project-tech {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-top: 10px;
  }
  .tech-tag {
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--muted);
    transition: all 0.3s;
  }
  .project-card:hover .tech-tag {
    border-color: rgba(232,255,0,0.3); color: var(--accent);
  }

  /* PROCESS */
  .process { padding: 120px 60px; background: var(--bg2); }

  .process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--border);
    margin-top: 80px;
  }
  .process-step {
    background: var(--bg2);
    padding: 48px 40px;
    transition: background 0.3s;
    opacity: 0; transform: translateY(20px);
    transition: all 0.5s ease;
  }
  .process-step.visible { opacity: 1; transform: translateY(0); }
  .process-step:hover { background: var(--card); }
  .step-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px; letter-spacing: 1px;
    margin: 20px 0 12px;
    color: var(--text);
  }
  .step-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }

  /* CTA */
  .cta-section {
    padding: 160px 60px;
    text-align: center; position: relative; overflow: hidden;
    background: var(--bg);
  }

  .cta-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%,
      rgba(232,255,0,0.04) 0%, transparent 70%);
    pointer-events: none;
  }

  .cta-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(60px, 8vw, 120px);
    line-height: 1; letter-spacing: 2px;
    position: relative;
  }

  .cta-title .outline {
    -webkit-text-stroke: 1px rgba(255,255,255,0.15);
    color: transparent;
  }

  .cta-email {
    font-size: 20px; color: var(--accent);
    text-decoration: none; letter-spacing: 2px;
    display: inline-block; margin: 40px 0;
    position: relative;
  }
  .cta-email::after {
    content: '';
    position: absolute; bottom: -2px; left: 0; right: 0;
    height: 1px; background: var(--accent);
    transform: scaleX(0); transition: transform 0.3s;
  }
  .cta-email:hover::after { transform: scaleX(1); }

  /* FOOTER */
  footer {
    padding: 40px 60px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg2);
  }
  .footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px; color: var(--accent); letter-spacing: 3px;
  }
  .footer-copy { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
  .social-links { display: flex; gap: 24px; }
  .social-links a {
    font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted); text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
  }
  .social-links a::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -4px;
    height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease;
  }
  .social-links a:hover,
  .social-links a:focus-visible {
    color: var(--accent);
    text-shadow: 0 0 14px rgba(232,255,0,0.35);
  }
  .social-links a:hover::after,
  .social-links a:focus-visible::after { transform: scaleX(1); }

  .scroll-top {
    position: fixed;
    right: 28px;
    bottom: 76px;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(232,255,0,0.22);
    border-radius: 50%;
    background: rgba(10,10,15,0.86);
    color: var(--accent);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 700;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.92);
    box-shadow: 0 16px 32px rgba(0,0,0,0.34);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  }

  .scroll-top:hover {
    border-color: var(--accent);
    background: rgba(232,255,0,0.08);
    transform: translateY(0) scale(1);
  }

  .scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes heroLineReveal {
    from { opacity: 0; transform: translateY(42px); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
  }
  @keyframes heroTextReveal {
    from { opacity: 0; transform: translateY(26px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
  }
  @keyframes heroNameGlitch {
    0% { transform: translate3d(0, 0, 0); clip-path: inset(0 0 0 0); }
    20% { transform: translate3d(-3px, 1px, 0); clip-path: inset(12% 0 58% 0); }
    40% { transform: translate3d(4px, -1px, 0); clip-path: inset(72% 0 8% 0); }
    60% { transform: translate3d(-2px, 2px, 0); clip-path: inset(38% 0 28% 0); }
    80% { transform: translate3d(3px, -2px, 0); clip-path: inset(82% 0 2% 0); }
    100% { transform: translate3d(0, 0, 0); clip-path: inset(0 0 0 0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* LOADING SCREEN */
  .loader {
    position: fixed; inset: 0;
    background: var(--bg); z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 20px;
    transition: opacity 0.8s ease, visibility 0.8s ease;
  }
  .loader.hidden { opacity: 0; visibility: hidden; }

  .loader-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px; letter-spacing: 6px; color: var(--muted);
  }
  .loader-bar-track {
    width: 240px; height: 1px; background: var(--muted);
    position: relative; overflow: hidden;
  }
  .loader-bar {
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%; background: var(--accent);
    animation: loadBar 1.5s ease forwards;
  }
  .loader-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 80px; color: var(--accent);
    line-height: 1;
  }

  @keyframes loadBar {
    to { left: 0; }
  }

  /* HORIZONTAL MARQUEE */
  .marquee-wrap {
    overflow: hidden; border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0; background: var(--bg2);
  }
  .marquee-inner {
    display: flex; gap: 0;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
  }
  .marquee-item {
    display: flex; align-items: center; gap: 32px;
    padding: 0 32px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px; letter-spacing: 3px; color: var(--muted);
  }
  .marquee-item span { color: var(--accent); font-size: 20px; }

  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* Horizontal scroll indicator */
  .scroll-indicator {
    position: absolute; bottom: 40px; left: 60px;
    display: flex; align-items: center; gap: 16px;
    opacity: 0; animation: fadeIn 1s 1.5s forwards;
    z-index: 10;
  }
  .scroll-line {
    width: 48px; height: 1px; background: var(--muted);
    position: relative; overflow: hidden;
  }
  .scroll-line::after {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%; background: var(--accent);
    animation: scrollAnim 2s ease infinite;
  }
  @keyframes scrollAnim {
    to { left: 100%; }
  }
.scroll-text { font-size: 10px; letter-spacing: 3px; color: rgba(255,255,255,0.72); text-transform: uppercase; }

/* PROJECT MODAL */
body.modal-open { overflow: hidden !important; }

.project-modal {
  position: fixed; inset: 0;
  z-index: 8000;
  display: grid; place-items: center;
  padding: 28px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.project-modal.is-open { opacity: 1; visibility: visible; }

.project-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(6,6,8,0.86);
  backdrop-filter: blur(6px);
}

.project-modal__dialog {
  width: min(980px, 100%);
  max-height: min(90vh, 920px);
  overflow: auto;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #0f1118 0%, #090a0f 100%);
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
  padding: 52px;
}

.project-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 28px; line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}
.project-modal__close:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.project-modal__tag {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.project-modal__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 92px);
  letter-spacing: 1px; line-height: 0.9;
}
.project-modal__subtitle {
  margin-top: 16px;
  max-width: 620px;
  color: #9d9d9d;
  line-height: 1.7;
  font-size: 14px;
}

.project-form { margin-top: 34px; }

.project-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-field span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
}
.project-field input,
.project-field select,
.project-field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(6,6,8,0.75);
  color: var(--text);
  padding: 14px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.project-field select { cursor: pointer; }
.project-field textarea {
  resize: vertical;
  min-height: 120px;
}
.project-field input:focus,
.project-field select:focus,
.project-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,255,0,0.12);
  background: rgba(10,10,15,0.95);
}
.project-field--full { grid-column: 1 / -1; }

.project-consent {
  margin-top: 22px;
  display: flex; align-items: flex-start; gap: 10px;
  color: #9d9d9d;
  font-size: 13px;
}
.project-consent input {
  margin-top: 2px;
  accent-color: #d6ea00;
}

.project-form__actions {
  margin-top: 30px;
  display: flex; gap: 14px; flex-wrap: wrap;
}

.project-form__notice {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(214, 234, 0, 0.35);
  background:
    linear-gradient(135deg, rgba(214, 234, 0, 0.14), rgba(214, 234, 0, 0.04)),
    rgba(10, 10, 15, 0.96);
  color: var(--text);
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-form__notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-form__notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.project-form__notice p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.88);
}

/* MOBILE */
  @media (max-width: 900px) {
    nav {
      padding: 16px 20px;
      gap: 12px;
      flex-wrap: wrap;
    }
    .cursor, .cursor-ring { display: none; }
    body { cursor: auto; }
    .logo {
      font-size: 24px;
      letter-spacing: 2px;
      min-width: 0;
      max-width: calc(100% - 180px);
    }
    .nav-links { display: none; }
    .nav-actions {
      gap: 8px;
      margin-left: auto;
      min-width: 0;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .lang-switch__btn,
    .nav-cta {
      max-width: 100%;
      white-space: normal;
    }
    .lang-switch__btn { padding: 9px 10px; }
    .nav-cta { padding: 10px 18px; }
    .hero { grid-template-columns: 1fr; }
    .hero-right { height: 58vh; min-height: 420px; order: -1; }
    .hero-left {
      padding: 84px 20px 56px;
      min-width: 0;
    }
    .hero-sub { max-width: 100%; }
    .hero-actions { flex-wrap: wrap; }
    .hero-actions .btn-primary,
    .hero-actions .btn-outline { width: 100%; text-align: center; }
    .scroll-indicator { display: none; }
    .stats-bar { grid-template-columns: 1fr; }
    .stat { padding: 32px 24px; border-right: none; border-bottom: 1px solid var(--border); }
    .about { grid-template-columns: 1fr; }
    .about-photo-container { position: relative; height: 78vh; min-height: 520px; }
    .about-content {
      padding: 60px 20px;
      min-width: 0;
    }
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 24px; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card { min-height: 420px; }
    .project-card-inner { padding: 24px; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .process-step { padding: 36px 24px; }
    .projects { padding: 80px 20px; }
    .process { padding: 80px 20px; }
    .cta-section { padding: 100px 20px; }
    footer { flex-direction: column; gap: 24px; text-align: center; padding: 32px 20px; }
    .project-modal { padding: 14px; }
    .project-modal__dialog { padding: 44px 20px 24px; max-height: 92vh; }
    .project-form__grid { grid-template-columns: 1fr; }
    .project-form__actions { flex-direction: column; }
    .project-form__actions .btn-primary,
    .project-form__actions .btn-outline { width: 100%; text-align: center; }
    .hero,
    .hero-left,
    .hero-right,
    .about,
    .about-content,
    .projects-grid,
    .project-card,
    .project-card-inner,
    .process-grid,
    .cta-email,
    footer {
      min-width: 0;
    }
    .project-site-link,
    .cta-email {
      overflow-wrap: anywhere;
    }
    .scroll-top {
      right: 20px;
      bottom: 84px;
    }
  }

  @media (max-width: 640px) {
    nav {
      padding: 6px 16px 16px;
      align-items: flex-start;
      gap: 6px;
      flex-wrap: wrap;
    }
    .logo {
      max-width: 100%;
      font-size: 22px;
      letter-spacing: 1.5px;
      word-break: break-word;
    }
    .nav-actions {
      width: auto;
      margin-left: auto;
      flex-direction: row;
      align-items: flex-start;
      min-width: 0;
      margin-top: 0;
      gap: 8px;
    }
    .lang-switch {
      width: auto;
      display: flex;
      justify-content: flex-end;
    }
    .lang-switch__btn,
    .nav-cta {
      max-width: 100%;
      white-space: normal;
    }
    .nav-cta {
      padding: 10px 14px;
      font-size: 10px;
      letter-spacing: 1.4px;
    }
    .lang-switch__menu {
      min-width: 104px;
    }
    .hero-left {
      padding: 24px 16px 44px;
      justify-content: flex-start;
    }
    .hero-tag {
      margin-bottom: 12px;
    }
    .hero-name {
      font-size: clamp(58px, 18vw, 88px);
      line-height: 0.92;
    }
    .hero-sub,
    .about-text {
      font-size: 14px;
      line-height: 1.75;
    }
    .hero-sub {
      margin-top: 18px;
    }
    .hero-actions {
      margin-top: 22px;
      gap: 12px;
      width: 100%;
    }
    .btn-primary,
    .btn-outline {
      max-width: 100%;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-outline,
    .project-form__actions .btn-primary,
    .project-form__actions .btn-outline {
      padding: 15px 18px;
      font-size: 11px;
      letter-spacing: 1.4px;
      overflow-wrap: anywhere;
    }
    .hero-right {
      height: 52vh;
      min-height: 360px;
    }
    .hero-photo {
      height: 112%;
      object-position: center top;
    }
    .about-photo-container {
      height: 62vh;
      min-height: 380px;
    }
    .about-code-panel {
      width: calc(100% - 32px);
      min-height: 220px;
      padding: 20px 18px;
      font-size: 13px;
      line-height: 1.55;
    }
    .section-title {
      margin-bottom: 28px;
      font-size: clamp(40px, 12vw, 64px);
    }
    .skills-grid {
      grid-template-columns: 1fr;
      margin-top: 28px;
    }
    .skill-item {
      padding: 14px 16px;
      font-size: 11px;
    }
    .projects,
    .process,
    .cta-section {
      padding-left: 16px;
      padding-right: 16px;
    }
    .project-card {
      min-height: 176px;
      aspect-ratio: auto;
    }
    .project-title {
      font-size: 28px;
    }
    .project-desc {
      font-size: 12px;
    }
    .project-arrow {
      width: 40px;
      height: 40px;
      top: 12px;
      right: 12px;
      opacity: 1;
      transform: none;
    }
    .process-grid {
      grid-template-columns: 1fr;
      margin-top: 48px;
    }
    .process-step {
      padding: 28px 20px;
    }
    .cta-title {
      font-size: clamp(48px, 16vw, 78px);
    }
    .cta-email {
      font-size: 16px;
      letter-spacing: 1px;
      word-break: break-all;
    }
    .social-links {
      flex-direction: column;
      gap: 14px;
    }
    .project-modal {
      padding: 8px;
    }
    .project-modal__dialog {
      padding: 42px 16px 20px;
      max-height: 94vh;
    }
    .project-form__actions {
      width: 100%;
    }
    .project-modal__title {
      font-size: clamp(40px, 15vw, 64px);
    }
    .project-field input,
    .project-field select,
    .project-field textarea {
      padding: 13px 14px;
      font-size: 16px;
    }
    .scroll-top {
      width: 50px;
      height: 50px;
      right: 16px;
      bottom: 78px;
      font-size: 24px;
    }
  }
