/* ============================================
   RESET & TOKENS
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #08080a;
    --surface: #0f0f12;
    --surface-2: #151519;
    --border: #1c1c22;
    --border-hover: #2a2a33;
    --text: #d4d4d8;
    --text-muted: #65656f;
    --text-dim: #3e3e47;

    --accent: #00ff9f;
    --accent-dim: rgba(0, 255, 159, 0.08);
    --accent-text: #0aff9f;
    --accent-glow: 0 0 8px rgba(0, 255, 159, 0.25);

    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --sidebar-w: 240px;
    --content-max: 860px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection { background: var(--accent); color: #08080a; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1a1a22; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #28282f; }

.mono { font-family: var(--font-mono); font-weight: 500; }
a { color: inherit; text-decoration: none; }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot, .cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    display: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 255, 159, 0.4);
    border-radius: 50%;
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .cursor-dot, .cursor-ring { display: block; }
    body, a, button { cursor: none; }
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    height: 2px;
    z-index: 9999;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transition: width 0.05s linear;
}

/* ============================================
   NOISE OVERLAY
   ============================================ */
.noise-overlay {
    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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9996;
    mix-blend-mode: overlay;
}

/* ============================================
   BOOT LOADER
   ============================================ */
.loader {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 10, 0.96);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden { opacity: 0; visibility: hidden; }

.loader::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.1) 2px, rgba(0,0,0,0.1) 3px);
    pointer-events: none;
}

.loader-content {
    width: 90%;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.loader-terminal {
    background: #0c0c0f;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 40px rgba(0,255,159,0.05);
    animation: loader-glow 2s ease-in-out infinite;
}

@keyframes loader-glow {
    0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 40px rgba(0,255,159,0.05); }
    50% { box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 60px rgba(0,255,159,0.12); }
}

.loader-body {
    padding: 18px 20px;
    font-family: var(--font-mono);
    font-size: 0.83rem;
    min-height: 170px;
    line-height: 1.9;
}

.boot-line { color: var(--text-muted); white-space: nowrap; overflow: hidden; }
.boot-prompt { color: var(--accent-text); }
.boot-text { color: var(--text); }
.boot-done { color: var(--accent); text-shadow: 0 0 12px rgba(0,255,159,0.4); font-weight: 600; margin-top: 4px; }

.loader-progress { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.loader-bar { flex: 1; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.loader-bar-fill { height: 100%; width: 0%; background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: width 0.08s ease; }
.loader-percent { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-text); min-width: 40px; text-align: right; }

/* ============================================
   MATRIX CANVAS
   ============================================ */
#matrixCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
}

/* ============================================
   CRT VIGNETTE + SCANLINES
   ============================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
    z-index: 9997;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 3px);
    pointer-events: none;
    z-index: 9998;
    opacity: 0.3;
}

/* ============================================
   HEADING GLITCH
   ============================================ */
.hero-heading.glitching {
    text-shadow: 2px 0 rgba(255,0,60,0.7), -2px 0 rgba(0,255,249,0.7);
    animation: glitch-shake 0.2s steps(2) 1;
}

@keyframes glitch-shake {
    0% { transform: translate(0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(2px, -1px); }
    75% { transform: translate(-1px, -1px); }
    100% { transform: translate(0); }
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border);
    background: var(--bg);
    z-index: 100;
}

.sidebar-logo { display: flex; align-items: center; gap: 12px; }

.sidebar-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(0, 180, 255, 0.3);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0, 180, 255, 0.2));
}

.sidebar-logo:hover .sidebar-logo-img {
    border-color: rgba(0, 255, 159, 0.6);
    filter: drop-shadow(0 0 8px rgba(0, 255, 159, 0.4));
    transform: scale(1.08);
}

.monogram { display: none; }
.monogram.sm { display: none; }

@keyframes glitch {
    0% { transform: translate(0); }
    25% { transform: translate(-1px, 1px); }
    50% { transform: translate(1px, -1px); }
    75% { transform: translate(-1px, -1px); }
    100% { transform: translate(0); }
}

.logo-name { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

.nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--accent-text); text-shadow: var(--accent-glow); }
.nav-link.active .nav-num { color: var(--accent-text); }

.nav-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); transition: color 0.2s ease; }
.nav-link:hover .nav-num { color: var(--text-muted); }

.sidebar-footer { display: flex; flex-direction: column; gap: 14px; }

.social-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.social-link:hover { color: var(--accent-text); background: var(--surface); }

.sidebar-status {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.status-indicator {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ============================================
   MOBILE HEADER
   ============================================ */
.mobile-header {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 16px 20px;
    align-items: center;
    justify-content: space-between;
    background: rgba(8,8,10,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 200;
}

.mobile-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }

.mobile-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(0, 180, 255, 0.3);
}

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s var(--ease); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav.active { opacity: 1; pointer-events: all; }

.mobile-nav-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 180, 255, 0.3);
    filter: drop-shadow(0 0 16px rgba(0, 180, 255, 0.3));
    margin-bottom: 8px;
}

.mobile-nav nav { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mobile-nav nav a { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.3rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s ease; }
.mobile-nav nav a:hover { color: var(--accent-text); }
.mobile-nav .nav-num { font-size: 0.9rem; }

.mobile-telegram {
    display: flex; align-items: center; gap: 10px;
    margin-top: 20px;
    padding: 12px 28px;
    background: var(--accent);
    color: #08080a;
    font-weight: 600; font-size: 0.95rem;
    border-radius: 8px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main {
    margin-left: var(--sidebar-w);
    padding: 0 48px;
}

.section {
    max-width: var(--content-max);
    padding: 100px 0 80px;
    border-bottom: 1px solid var(--border);
}

.section:last-of-type { border-bottom: none; }

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
    margin-left: 12px;
}

.label-slash { font-size: 0.82rem; color: var(--accent-text); text-shadow: var(--accent-glow); }
.section-label-text { font-size: 0.82rem; color: var(--text-muted); }

/* ============================================
   TERMINAL WINDOW
   ============================================ */
.terminal-window {
    background: #0c0c0f;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 30px rgba(0,255,159,0.03);
}

.terminal-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    background: #141418;
    border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 6px; }
.terminal-dots .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dots .red { background: #ff5f56; }
.terminal-dots .yellow { background: #ffbd2e; }
.terminal-dots .green { background: #27c93f; }

.terminal-title { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); margin-left: auto; }

.terminal-body {
    padding: 18px 20px;
    font-family: var(--font-mono);
    font-size: 0.83rem;
    min-height: 130px;
    line-height: 1.9;
}

.terminal-line { color: var(--text-muted); white-space: pre-wrap; word-break: break-all; }
.terminal-prompt { color: var(--accent-text); }
.terminal-text { color: var(--text); }
.terminal-output { color: var(--text-muted); padding-left: 14px; }

.cursor-blink { color: var(--accent); animation: blink 1s step-end infinite; margin-left: 2px; }

@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ============================================
   HERO SECTION
   ============================================ */
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

/* ── hero identity row ── */
.hero-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.3s ease;
}

.hero-identity:hover {
    border-color: rgba(0, 180, 255, 0.25);
}

.hero-logo-wrap {
    position: relative;
    flex-shrink: 0;
}

.hero-logo-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(0, 180, 255, 0.35);
    filter: drop-shadow(0 0 10px rgba(0, 180, 255, 0.25));
    transition: filter 0.3s ease;
}

.hero-logo-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 180, 255, 0.18);
    animation: logo-ring-pulse 3s ease-in-out infinite;
}

@keyframes logo-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.07); opacity: 1; }
}

.hero-identity:hover .hero-logo-img {
    filter: drop-shadow(0 0 16px rgba(0, 180, 255, 0.5));
}

.hero-title-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-handle {
    font-size: 0.82rem;
    color: var(--accent-text);
    text-shadow: var(--accent-glow);
    letter-spacing: 0.02em;
}

.hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-tag {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    padding: 3px 10px;
    border: 1px solid rgba(0, 180, 255, 0.25);
    border-radius: 4px;
    color: #4db8ff;
    background: rgba(0, 120, 255, 0.06);
    letter-spacing: 0.03em;
}

.hero-heading {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-bio {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 14px;
}

.hero-bio strong { color: var(--text); font-weight: 600; }

.hero-secondary {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 28px;
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.hero-badge {
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.hero-badge:hover {
    color: var(--accent-text);
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 8px rgba(0,255,159,0.1);
}

.hero-right {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── availability card ── */
.avail-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid rgba(0, 255, 159, 0.12);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.avail-card:hover {
    border-color: rgba(0, 255, 159, 0.3);
}

.avail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.avail-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.avail-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.avail-cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-text);
    padding: 7px 16px;
    border: 1px solid rgba(0, 255, 159, 0.3);
    border-radius: 8px;
    background: var(--accent-dim);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.avail-cta:hover {
    background: var(--accent);
    color: #08080a;
    border-color: var(--accent);
}

/* ============================================
   ABOUT STATS
   ============================================ */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.about-stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--accent-text);
    letter-spacing: -0.02em;
    text-shadow: var(--accent-glow);
}

.stat-text { font-size: 0.78rem; color: var(--text-dim); line-height: 1.3; }

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
}

/* ============================================
   SERVICES LIST
   ============================================ */
.services-list { display: flex; flex-direction: column; }

.service-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    transition: all 0.25s ease;
    position: relative;
}

.service-row:last-child { border-bottom: 1px solid var(--border); }

.service-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    border-radius: 2px;
    transition: height 0.3s var(--ease);
    transform: translateY(-50%);
}

.service-row:hover::before { height: 60%; }

.service-row:hover {
    background: var(--surface);
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 8px;
    border-top-color: transparent;
}

.service-row:hover + .service-row { border-top-color: transparent; }

.service-num { font-size: 0.82rem; color: var(--text-dim); padding-top: 3px; min-width: 24px; transition: color 0.2s ease; }
.service-row:hover .service-num { color: var(--accent-text); text-shadow: var(--accent-glow); }

.service-content h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.service-content p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================
   WORK TABS + CARDS
   ============================================ */
.work-tabs { display: flex; gap: 8px; margin-bottom: 32px; }

.tab-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover { color: var(--text); border-color: var(--border-hover); }

.tab-btn.active {
    color: var(--accent-text);
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 12px rgba(0,255,159,0.1);
}

.tab-count { font-size: 0.75rem; opacity: 0.6; }

.work-panel { display: none; }
.work-panel.active { display: block; }

.work-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.work-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.25s var(--ease);
    position: relative;
    overflow: hidden;
}

.work-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s var(--ease);
}

.work-item:hover::before { transform: scaleY(1); transform-origin: top; }

.work-item:hover {
    border-color: rgba(0,255,159,0.2);
    background: var(--surface-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.work-item-icon {
    width: 38px; height: 38px; min-width: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.work-item:hover .work-item-icon {
    color: var(--accent-text);
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 8px rgba(0,255,159,0.15);
}

.work-item-name {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
    word-break: break-all;
}

.work-item:hover .work-item-name { color: var(--text); }

.work-tag {
    position: absolute;
    top: 8px; right: 12px;
    font-family: var(--font-mono);
    font-size: 0.56rem;
    font-weight: 500;
    color: var(--text-dim);
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.work-item:hover .work-tag {
    color: var(--accent-text);
    border-color: rgba(0,255,159,0.3);
    background: var(--accent-dim);
}

.work-item-arrow {
    margin-left: auto;
    color: var(--text-dim);
    opacity: 0;
    transition: all 0.2s ease;
}

.work-item:hover .work-item-arrow {
    opacity: 1;
    color: var(--accent-text);
    transform: translate(2px, -2px);
}

/* ============================================
   WHY ME — BENTO
   ============================================ */
.why-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bento-cell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-cell::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
}

.bento-cell:hover::after { transform: scaleX(1); }

.bento-cell:hover {
    border-color: rgba(0,255,159,0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 16px rgba(0,255,159,0.06);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.bento-wide { grid-column: span 2; }

.bento-num { display: block; font-size: 0.78rem; color: var(--text-dim); margin-bottom: 16px; transition: color 0.2s ease; }
.bento-cell:hover .bento-num { color: var(--accent-text); }

.bento-cell h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.bento-cell p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
.bento-large h3 { font-size: 1.2rem; }
.bento-large p { font-size: 0.95rem; }

/* ============================================
   CONTACT — SPLIT
   ============================================ */
.contact-split {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.contact-left { max-width: 520px; }
.contact-intro { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 12px; }

.contact-heading {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 36px;
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 26px;
    background: var(--accent);
    color: #08080a;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    transition: box-shadow 0.25s var(--ease), transform 0.15s ease;
    margin-bottom: 32px;
    will-change: transform;
}

.contact-cta:hover {
    box-shadow: 0 8px 28px rgba(0,255,159,0.3), 0 0 20px rgba(0,255,159,0.1);
}

.cta-arrow { transition: transform 0.25s var(--ease); }
.contact-cta:hover .cta-arrow { transform: translate(3px, -3px); }
.contact-quote { font-style: italic; color: var(--text-muted); font-size: 0.95rem; }

/* contact right — logo */
.contact-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-logo-wrap {
    position: relative;
    width: 200px;
    height: 200px;
}

.contact-logo-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 180, 255, 0.25);
    position: relative;
    z-index: 1;
    transition: filter 0.4s ease, transform 0.4s ease;
    filter: drop-shadow(0 0 20px rgba(0, 180, 255, 0.2));
}

.contact-logo-wrap:hover .contact-logo-img {
    filter: drop-shadow(0 0 36px rgba(0, 180, 255, 0.5));
    transform: scale(1.04);
}

.contact-logo-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 120, 255, 0.08) 0%, transparent 70%);
    animation: contact-glow-pulse 4s ease-in-out infinite;
}

@keyframes contact-glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.12); opacity: 1; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer { max-width: var(--content-max); padding: 40px 0 60px; }

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left { display: flex; align-items: center; gap: 10px; }

.footer-logo-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 180, 255, 0.25);
    filter: drop-shadow(0 0 4px rgba(0, 180, 255, 0.2));
}

.footer-center {
    flex: 1;
    text-align: center;
    font-size: 0.76rem;
    color: var(--text-dim);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 20px;
}

.footer-prompt { color: var(--accent-text); }

.footer-name { font-family: var(--font-head); font-weight: 500; font-size: 0.92rem; }
.footer-right { font-size: 0.8rem; color: var(--text-dim); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .why-bento { grid-template-columns: repeat(2, 1fr); }
    .bento-large { grid-column: span 2; grid-row: span 1; min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-right { position: static; }
    .contact-split { grid-template-columns: 1fr; gap: 40px; }
    .contact-right { justify-content: flex-start; }
    .contact-logo-img { width: 140px; height: 140px; }
    .contact-logo-wrap { width: 140px; height: 140px; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .mobile-header { display: flex; }
    .menu-toggle { display: flex; }
    .mobile-nav { display: flex; }

    .main { margin-left: 0; padding: 0 24px; padding-top: 70px; }
    .section { padding: 60px 0 50px; }
    .terminal-window { max-width: 100%; }
    .work-list { grid-template-columns: 1fr; }
    .why-bento { grid-template-columns: 1fr; }
    .bento-large, .bento-wide { grid-column: span 1; }
    .hero-identity { flex-direction: column; text-align: center; }
    .hero-tags { justify-content: center; }
    .footer-inner { flex-direction: column; gap: 12px; }
    .footer-center { display: none; }
    .scroll-progress { left: 0; }
    .contact-right { display: none; }
}

@media (max-width: 480px) {
    .main { padding: 0 20px; padding-top: 70px; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .work-tabs { flex-direction: column; }
    .terminal-body { font-size: 0.76rem; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    #matrixCanvas { display: none; }
    body::after { display: none; }
    .noise-overlay { display: none; }
    .cursor-dot, .cursor-ring { display: none !important; }
    body { cursor: auto; }
    .cursor-blink { animation: none; }
    .status-indicator { animation: none; }
    .monogram:hover { animation: none; }
    .loader-terminal { animation: none; }
    .reveal { transition: none; opacity: 1; transform: none; }
}
