:root {
    --black:   #080909;
    --surface: #0f1010;
    --border:  #1e2020;
    --dim:     #3a3d3d;
    --muted:   #6b7070;
    --base:    #c8cece;
    --bright:  #edf0f0;
    --acid:    #b8ff57;
    --acid-dim: rgba(184,255,87,0.12);
    --acid-glow: rgba(184,255,87,0.35);
    --red:     #ff5050;
    --mono: 'DM Mono', monospace;
    --sans: 'Syne', sans-serif;
}

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

html { 
    scroll-behavior: smooth; 
}

body {
    background: var(--black);
    color: var(--base);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

a, button { 
    cursor: none; 
}

#xhair {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    top: 0; left: 0;
    width: 20px; height: 20px;
    border: 1.5px solid var(--acid);
    transform: translate(-50%, -50%);
    transition: width 0.2s cubic-bezier(0.16,1,0.3,1),
                height 0.2s cubic-bezier(0.16,1,0.3,1),
                border-color 0.2s ease,
                opacity 0.2s ease;
}
#xhair-dot {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    top: 0; left: 0;
    width: 3px; height: 3px;
    background: var(--acid);
    transform: translate(-50%, -50%);
}
body.xhair-hover #xhair {
    width: 52px; height: 52px;
    border-color: var(--bright);
    opacity: 0.7;
}

body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='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.6;
}

body::after {
    content: '';
    position: fixed; inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.03) 2px,
        rgba(0,0,0,0.03) 4px
    );
    pointer-events: none;
    z-index: 9989;
}

.wrap { 
    max-width: 960px; margin: 0 auto; padding: 0 32px; 
}

nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    background: rgba(8,9,9,0.85);
}
.nav-inner {
    max-width: 960px; margin: 0 auto; padding: 0 32px;
    height: 56px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--bright);
    letter-spacing: -0.5px;
    text-decoration: none;
}
.nav-logo span { 
    color: var(--acid); 
}
.nav-links { 
    display: flex; gap: 32px; 
}
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { 
    color: var(--acid); 
}

.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding-bottom: 80px;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--sans);
    font-size: clamp(100px, 22vw, 280px);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--border);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
    z-index: 0;
}

.hero-content { 
    position: relative; z-index: 1; 
}

.hero-label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--acid);
    margin-bottom: 24px;
    display: flex; align-items: center; gap: 12px;
}
.hero-label::before {
    content: '';
    display: block; width: 32px; height: 1px;
    background: var(--acid);
}

.hero h1 {
    font-family: var(--sans);
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--bright);
    margin-bottom: 32px;
}
.hero h1 em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 2px var(--bright);
}

.hero-meta {
    display: flex; flex-wrap: wrap; gap: 0;
    border: 1px solid var(--border);
    width: fit-content;
    margin-bottom: 48px;
}
.hero-meta-item {
    padding: 10px 20px;
    border-right: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
}
.hero-meta-item:last-child { 
    border-right: none; 
}
.hero-meta-item a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.hero-meta-item a:hover { 
    color: var(--acid); 
}

.hero-cta { 
    display: flex; gap: 16px; align-items: center;
}

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    font-family: var(--mono);
    font-size: 0.82rem;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--acid);
    color: var(--black);
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--bright);
    box-shadow: 0 0 32px var(--acid-glow);
}

.btn-ghost {
    border: 1px solid var(--border);
    color: var(--muted);
}

.btn-ghost:hover {
    border-color: var(--acid);
    color: var(--acid);
}

.hero-scroll {
    position: absolute; bottom: 40px; right: 32px;
    writing-mode: vertical-rl;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
    display: flex; align-items: center; gap: 12px;
}

.hero-scroll::after {
    content: '';
    width: 1px; height: 60px;
    background: linear-gradient(to bottom, var(--dim), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

section { 
    padding: 120px 0; 
}

.section-header {
    display: flex; align-items: baseline; gap: 20px;
    margin-bottom: 64px;
}
.section-num {
    font-size: 0.72rem;
    color: var(--acid);
    letter-spacing: 0.1em;
}
.section-title {
    font-family: var(--sans);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--bright);
    letter-spacing: -0.03em;
    line-height: 1;
}
.section-line {
    flex: 1; height: 1px;
    background: var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.about-text {
    font-size: 1.05rem;
    color: var(--base);
    line-height: 1.85;
}
.about-text p + p { 
    margin-top: 20px; 
}
.about-text strong { 
    color: var(--bright); font-weight: 500; 
}

.about-stats { 
    display: flex; flex-direction: column; gap: 1px; 
}
.stat-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.stat-row:first-child { 
    border-top: 1px solid var(--border); 
}
.stat-label { 
    font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; 
}
.stat-value {
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bright);
}
.stat-value span { 
    color: var(--acid); 
}

.project-item {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    transition: background 0.3s;
}
.project-item:last-child { border-bottom: 1px solid var(--border); }
.project-item:hover { background: rgba(184,255,87,0.02); }
.project-item:hover .project-num { color: var(--acid); }

.project-left { 
    padding-top: 4px; 
}
.project-num {
    font-size: 0.7rem;
    color: var(--dim);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    transition: color 0.3s;
}
.project-status {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    padding: 3px 8px;
    width: fit-content;
    margin-top: 6px;
}

.project-right {}
.project-name {
    font-family: var(--sans);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--bright);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 12px;
}
.project-tagline {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 24px;
    font-style: italic;
}
.project-bullets {
    list-style: none;
    margin-bottom: 28px;
    display: flex; flex-direction: column; gap: 8px;
}
.project-bullets li {
    font-size: 0.88rem;
    color: var(--base);
    padding-left: 18px;
    position: relative;
    line-height: 1.6;
}
.project-bullets li::before {
    content: '·';
    position: absolute; left: 0;
    color: var(--acid);
    font-size: 1.4rem;
    line-height: 1;
    top: 2px;
}
.project-stack {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 24px;
}
.stack-tag {
    padding: 3px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    font-family: var(--mono);
}
.project-links { 
    display: flex; gap: 24px; 
}
.project-link {
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.06em;
    display: flex; align-items: center; gap: 6px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: all 0.2s;
}
.project-link:hover { color: var(--acid); border-color: var(--acid); }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.skill-block {
    background: var(--black);
    padding: 32px;
    transition: background 0.3s;
}
.skill-block:hover { 
    background: var(--surface); 
}
.skill-block-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--acid);
    margin-bottom: 20px;
}
.skill-items { 
    display: flex; flex-direction: column; gap: 8px; 
}
.skill-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.85rem;
    color: var(--base);
}
.skill-item::before {
    content: '';
    width: 4px; height: 4px;
    background: var(--dim);
    border-radius: 50%;
    flex-shrink: 0;
}

.edu-list { 
    display: flex; flex-direction: column; 
}
.edu-item {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 32px;
    align-items: baseline;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}
.edu-item:first-child { 
    border-top: 1px solid var(--border); 
}
.edu-date {
    font-size: 0.75rem;
    color: var(--dim);
    letter-spacing: 0.06em;
    font-family: var(--mono);
}
.edu-name {
    font-family: var(--sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bright);
    letter-spacing: -0.02em;
}
.edu-sub { 
    font-size: 0.8rem; color: var(--muted); margin-top: 4px; 
}
.edu-badge {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--acid);
    border: 1px solid rgba(184,255,87,0.3);
    padding: 4px 10px;
    white-space: nowrap;
}

.contact-section {
    padding: 120px 0 80px;
    border-top: 1px solid var(--border);
}
.contact-big {
    font-family: var(--sans);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    color: var(--bright);
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 48px;
}
.contact-big em {
    font-style: normal;
    color: var(--acid);
}
.contact-row {
    display: flex; flex-wrap: wrap; gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
}
.contact-chip {
    padding: 10px 20px;
    border: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.contact-chip:hover {
    border-color: var(--acid);
    color: var(--acid);
    background: var(--acid-dim);
}

footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}
.footer-inner {
    max-width: 960px; margin: 0 auto; padding: 0 32px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.72rem;
    color: var(--dim);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

.divider { width: 100%; height: 1px; background: var(--border); }

@media (max-width: 768px) {
    .wrap { padding: 0 20px; }
    .nav-links { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .project-item { grid-template-columns: 1fr; gap: 16px; }
    .skills-grid { grid-template-columns: 1fr; }
    .edu-item { grid-template-columns: 1fr; gap: 6px; }
    .hero-meta { flex-direction: column; width: 100%; }
    .hero-meta-item { border-right: none; border-bottom: 1px solid var(--border); }
}

::selection { background: var(--acid); color: var(--black); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--acid); }
