/* ==========================================================
   AWARD-WORTHY INTERACTIVE DIGITAL CV — STYLE
   Single-source-of-truth visual system.
   ========================================================== */

:root {
    --bg: #080808;
    --primary: #F2F0EA;
    --muted: #77746E;
    --grid: rgba(255, 255, 255, 0.07);
    --accent: #C8FF00;
    --line: rgba(242, 240, 234, 0.18);
}

* { box-sizing: border-box; }

html, body {
    background: var(--bg);
    color: var(--primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.4;
    cursor: none;
}

@media (max-width: 768px) {
    body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: none; }

::selection { background: var(--accent); color: var(--bg); }

/* ==========================================================
   GRAIN
   ========================================================== */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ==========================================================
   CUSTOM CURSOR
   ========================================================== */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate3d(-100px, -100px, 0);
    will-change: transform;
}

.cursor-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transition: width .25s ease, height .25s ease, background .25s ease;
}

.cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--bg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    transition: width .3s ease, height .3s ease, border-color .3s ease, background .3s ease;
}

.cursor-ring.is-hover {
    width: 80px; height: 80px;
    background: var(--accent);
    border-color: var(--accent);
}

.cursor-ring.is-hover .cursor-label { opacity: 1; }
.cursor-label { opacity: 0; transition: opacity .25s ease; }

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================
   GLOBAL GRID
   ========================================================== */
.global-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}
.grid-cols, .grid-rows {
    position: absolute; inset: 0;
}
.grid-cols {
    background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px);
    background-size: 8.333% 100%;
}
.grid-rows {
    background-image: linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 100% 25%;
}

/* ==========================================================
   SCROLL PROGRESS (RIGHT RAIL)
   ========================================================== */
.scroll-progress {
    position: fixed;
    right: 24px; top: 0;
    width: 18px; height: 100vh;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.progress-rail {
    position: relative;
    width: 1px; height: 60vh;
    background: var(--line);
}
.progress-fill {
    position: absolute; left: -0.5px; top: 0;
    width: 2px; height: 0%;
    background: var(--primary);
    transition: height .15s linear;
}
.progress-markers {
    position: absolute; left: 50%; top: 0;
    transform: translateX(-50%);
    width: 8px; height: 100%;
}
.progress-marker {
    position: absolute;
    left: 50%; transform: translate(-50%, -50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--primary);
    transition: background .2s, transform .2s;
}
.progress-marker.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.4);
}
.progress-current {
    margin-top: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--primary);
}

/* ==========================================================
   HUD
   ========================================================== */
.hud-section,
.hud-coords,
.hud-system {
    position: fixed;
    z-index: 40;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--muted);
    pointer-events: none;
}
.hud-section { top: 24px; left: 24px; }
.hud-coords { bottom: 24px; left: 24px; }
.hud-system { bottom: 24px; right: 70px; }

@media (max-width: 768px) {
    .hud-section { top: 14px; left: 14px; font-size: 9px; }
    .hud-coords { bottom: 14px; left: 14px; font-size: 9px; }
    .hud-system { display: none; }
}

/* ==========================================================
   NAV
   ========================================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 80;
    padding: 22px 28px;
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.15em;
    pointer-events: none;
}
.nav-logo, .nav-toggle {
    pointer-events: auto;
    color: var(--primary);
    transition: color .25s;
}
.nav-toggle:hover { color: var(--accent); }

@media (max-width: 768px) {
    .nav { padding: 14px; }
}

/* fullscreen nav */
.fullscreen-nav {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 70;
    display: flex;
    align-items: center; justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}
.fullscreen-nav.is-open { opacity: 1; pointer-events: auto; }
.fullscreen-nav-inner {
    width: min(900px, 90vw);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}
.fullscreen-nav-list { list-style: none; padding: 0; margin: 0; }
.fullscreen-nav-list li { margin-bottom: 8px; overflow: hidden; }
.fullscreen-nav-list a {
    display: inline-flex;
    align-items: baseline;
    gap: 18px;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    padding: 6px 0;
    transition: color .25s, transform .25s;
}
.fullscreen-nav-list a span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--muted);
}
.fullscreen-nav-list a:hover { color: var(--accent); }
.fullscreen-nav-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.8;
}

/* ==========================================================
   LOADER
   ========================================================== */
.loader {
    position: fixed; inset: 0;
    z-index: 200;
    background: var(--bg);
    display: flex;
    align-items: center; justify-content: center;
}
.loader-inner {
    width: min(560px, 80vw);
    text-align: center;
}
.loader-line {
    display: flex; flex-direction: column;
    align-items: center; gap: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--primary);
    letter-spacing: 0.05em;
    transform-origin: center;
}
.loader-text { color: var(--muted); }
.loader-bar {
    position: relative;
    width: 360px; max-width: 80vw;
    height: 8px;
    border: 1px solid var(--line);
    overflow: hidden;
}
.loader-bar-fill {
    position: absolute; inset: 0 100% 0 0;
    background: var(--accent);
    transition: right .2s linear;
}
.loader-percent { color: var(--primary); }

/* ==========================================================
   SECTION BASE
   ========================================================== */
section {
    position: relative;
    padding: 120px 6vw;
    z-index: 2;
}
.section-label {
    position: absolute;
    top: 30px; left: 6vw;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--muted);
}

@media (max-width: 768px) {
    section { padding: 80px 5vw; }
    .section-label { top: 20px; left: 5vw; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    min-height: 320vh;
    padding: 0 6vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hero-hud {
    position: absolute;
    inset: 24px 24px auto 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    pointer-events: none;
}
.hero-hud-item { position: absolute; }
.hero-hud-tl { top: 0; left: 0; }
.hero-hud-tr { top: 0; right: 80px; }
.hero-hud-bl { bottom: 0; left: 0; }
.hero-hud-br { bottom: 0; right: 0; }

.hero-scatter {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}
.scatter-letter {
    position: absolute;
    font-size: clamp(80px, 18vw, 240px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--primary);
    will-change: transform, opacity;
}
.scatter-letter[data-letter="I"]    { top: 18%; left: 12%; }
.scatter-letter[data-letter="D"]    { top: 22%; left: 82%; }
.scatter-letter[data-letter="E"]    { top: 38%; left: 30%; }
.scatter-letter[data-letter="N"]    { top: 48%; left: 70%; }
.scatter-letter[data-letter="T"]    { top: 58%; left: 22%; }
.scatter-letter[data-letter="I2"]   { top: 66%; left: 78%; }
.scatter-letter[data-letter="T2"]   { top: 76%; left: 44%; }
.scatter-letter[data-letter="Y"]    { top: 84%; left: 14%; }

.hero-identity {
    position: relative;
    margin: 0;
    font-size: clamp(80px, 18vw, 240px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
    text-align: center;
    color: var(--primary);
    opacity: 0;
    z-index: 4;
}
.hero-defined {
    margin-top: 12px;
    font-size: clamp(20px, 2vw, 28px);
    letter-spacing: 0.1em;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0;
    z-index: 4;
}

.hero-name-clip {
    margin-top: 80px;
    width: 100%;
    overflow: hidden;
    text-align: center;
}
.hero-name {
    margin: 0;
    font-size: clamp(80px, 16vw, 220px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--primary);
    transform: translateY(110%);
    will-change: transform;
}

.hero-title-block {
    margin-top: 40px;
    text-align: center;
}
.hero-title-letters {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 3vw, 60px);
    font-size: clamp(28px, 4vw, 60px);
    font-weight: 500;
    letter-spacing: 0.05em;
}
.hero-title-letters span { will-change: transform, opacity; }
.hero-title-space { width: clamp(40px, 6vw, 100px); }

.hero-subroles {
    margin-top: 28px;
    list-style: none; padding: 0;
    display: flex; flex-wrap: wrap;
    justify-content: center;
    gap: 14px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.15em;
    color: var(--muted);
}
.hero-subroles li {
    opacity: 0;
    transform: translateY(20px);
}

.hero-resolve {
    position: relative;
    margin-top: 200px;
    text-align: center;
    opacity: 0;
}
.hero-resolve-name {
    font-size: clamp(40px, 6vw, 90px);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--primary);
}
.hero-resolve-title {
    margin-top: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--muted);
}
.hero-resolve::after {
    content: none;
}
.hero-resolve-line {
    display: block;
    width: 0;
    height: 1px;
    background: var(--primary);
    margin: 60px auto 0;
}

.hero-scroll-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column;
    align-items: center; gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--muted);
    z-index: 6;
    pointer-events: none;
}
.hero-scroll-line {
    width: 1px; height: 36px;
    background: var(--muted);
    animation: scrollHint 1.6s ease-in-out infinite;
}
@keyframes scrollHint {
    0%, 100% { transform: scaleY(0.4); transform-origin: top; }
    50%      { transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 768px) {
    .hero { min-height: 250vh; }
    .hero-hud { inset: 14px; font-size: 9px; }
    .hero-hud-tr { right: 40px; }
    .scatter-letter { font-size: 60px; }
    .hero-name { font-size: 60px; }
    .hero-resolve { margin-top: 100px; }
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-headline {
    display: flex;
    flex-direction: column;
    line-height: 0.85;
    font-size: clamp(80px, 18vw, 280px);
    font-weight: 500;
    letter-spacing: -0.04em;
}
.about-headline-2 {
    margin-left: clamp(40px, 12vw, 200px);
}
.about-content {
    margin-top: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.about-text {
    font-size: clamp(18px, 1.4vw, 22px);
    line-height: 1.55;
    color: var(--primary);
    max-width: 580px;
}
.about-line {
    display: block;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(40px);
    will-change: transform, opacity, filter;
}
.about-line:nth-child(odd) { transform: translate(-40px, 40px); }
.about-signature { display: flex; flex-direction: column; gap: 20px; }
.signature-svg { width: 100%; max-width: 480px; height: auto; }
.signature-svg path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
}
.signature-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--muted);
}
@media (max-width: 900px) {
    .about-content { grid-template-columns: 1fr; gap: 60px; }
}

/* ==========================================================
   DNA
   ========================================================== */
.dna {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.dna-title {
    font-size: clamp(40px, 5vw, 80px);
    letter-spacing: -0.02em;
    margin-bottom: 60px;
}
.dna-title em {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    color: var(--accent);
}
.dna-field {
    position: relative;
    height: 60vh;
}
.dna-word {
    position: absolute;
    font-size: clamp(50px, 8vw, 140px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--primary);
    will-change: transform, opacity;
}
.dna-word[data-keep="false"] { opacity: 0; }

.dna-word:nth-child(1) { top: 0%;   left: 5%; }
.dna-word:nth-child(2) { top: 18%;  left: 35%; }
.dna-word:nth-child(3) { top: 36%;  left: 65%; }
.dna-word:nth-child(4) { top: 54%;  left: 15%; }
.dna-word:nth-child(5) { top: 64%;  left: 50%; }
.dna-word:nth-child(6) { top: 78%;  left: 25%; }
.dna-word:nth-child(7) { top: 85%;  left: 60%; }

.dna-final {
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px 60px;
    font-size: clamp(30px, 4vw, 60px);
    font-weight: 500;
    letter-spacing: -0.02em;
}
.dna-final span { opacity: 0; }

/* ==========================================================
   SKILLS
   ========================================================== */
.skills {
    min-height: 120vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}
.skills-stage {
    position: relative;
    width: min(560px, 90vw);
    height: min(560px, 90vw);
}
.skills-atom {
    position: relative;
    width: 100%; height: 100%;
}
.atom-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 130px; height: 130px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.2em;
    z-index: 2;
}
.atom-orbit {
    position: absolute; inset: 0;
    animation: orbit 60s linear infinite;
}
.atom-node {
    position: absolute;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--primary);
    transform: translate(-50%, -50%);
    cursor: none;
    transition: background .2s, border-color .2s, transform .2s;
}
.atom-node::after {
    content: attr(data-label);
    position: absolute;
    top: 50%; left: 150%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--muted);
    pointer-events: none;
}
.atom-node.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.4);
}
.atom-node.active::after { color: var(--accent); }

@keyframes orbit {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.skills-info {
    margin-top: 40px;
    min-height: 80px;
}
.skills-info-name {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.1em;
}
.skills-info-tags {
    margin-top: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.1em;
}

.skills-final {
    margin-top: 80px;
    font-size: clamp(50px, 8vw, 140px);
    font-weight: 500;
    letter-spacing: -0.03em;
    opacity: 0;
}

@media (max-width: 768px) {
    .skills { min-height: 90vh; }
    .skills-stage { width: 90vw; height: 90vw; }
    .atom-core { width: 90px; height: 90px; font-size: 14px; }
    .atom-node { width: 18px; height: 18px; }
    .atom-node::after { font-size: 9px; left: 130%; }
}

/* ==========================================================
   EXPERIENCE
   ========================================================== */
.experience {
    min-height: 220vh;
    overflow: hidden;
}
.experience-track {
    position: relative;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}
.experience-year {
    font-size: clamp(120px, 22vw, 380px);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--primary);
}
.experience-detail {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 480px;
}
.exp-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: baseline;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.exp-key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--muted);
}
.exp-val {
    font-size: clamp(18px, 1.6vw, 24px);
    letter-spacing: -0.01em;
}

.experience-graph {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.graph-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 20px;
}
.career-svg { width: 100%; height: 240px; }
.career-svg #careerLine {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}
.career-point {
    fill: var(--accent);
}
.career-point-label {
    fill: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .experience-track {
        grid-template-columns: 1fr;
        height: auto;
        padding: 100px 0;
    }
    .experience-year { font-size: 140px; }
    .exp-row { grid-template-columns: 90px 1fr; }
}

/* ==========================================================
   PROJECTS
   ========================================================== */
.projects {
    min-height: 200vh;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}
.projects-track {
    display: flex;
    height: 100vh;
    align-items: center;
}
.project-slide {
    flex: 0 0 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 0 8vw;
    gap: 40px;
}
.project-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.2em;
}
.project-title {
    font-size: clamp(60px, 9vw, 160px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin: 20px 0 30px;
}
.project-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.1em;
}
.project-tags {
    margin-top: 16px;
    display: flex; flex-wrap: wrap;
    gap: 8px;
}
.project-tag {
    padding: 4px 10px;
    border: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--primary);
}
.project-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #0E0E0E;
    border: 1px solid var(--line);
    overflow: hidden;
    clip-path: inset(50% 50% 50% 50%);
    transition: transform .4s ease;
}
.project-visual::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(135deg, rgba(200,255,0,0.08), transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.05) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.05) 40px);
}
.project-visual::after {
    content: attr(data-label);
    position: absolute;
    bottom: 14px; left: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.15em;
}
.project-slide:hover .project-visual { transform: scale(1.02); }

@media (max-width: 900px) {
    .project-slide {
        grid-template-columns: 1fr;
        height: auto;
        padding: 100px 5vw;
    }
    .projects-track { display: block; height: auto; }
}

/* ==========================================================
   SYSTEM CONSTELLATION
   ========================================================== */
.system {
    min-height: 140vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.system-title {
    font-size: clamp(40px, 6vw, 100px);
    letter-spacing: -0.02em;
    margin-bottom: 60px;
}
.system-title em {
    font-family: 'Instrument Serif', serif;
    color: var(--accent);
    font-style: italic;
}
.system-stage {
    width: min(800px, 95vw);
    aspect-ratio: 1 / 1;
}
.system-svg { width: 100%; height: 100%; }
.system-link {
    stroke: var(--line);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 4 4;
}
.system-node circle {
    fill: var(--bg);
    stroke: var(--primary);
    stroke-width: 1.5;
}
.system-node.center circle {
    fill: var(--accent);
    stroke: var(--accent);
}
.system-node text {
    fill: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-anchor: middle;
    dominant-baseline: middle;
}
.system-node.center text { fill: var(--bg); font-weight: 600; }

/* ==========================================================
   NUMBERS
   ========================================================== */
.numbers {
    min-height: 100vh;
}
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
}
.number-item {
    border-top: 1px solid var(--line);
    padding-top: 20px;
}
.number-value {
    font-size: clamp(80px, 12vw, 200px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
}
.number-label {
    margin-top: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--muted);
}
@media (max-width: 768px) {
    .numbers-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services {
    min-height: 120vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.services-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-item {
    position: relative;
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 30px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    transition: transform .4s ease, color .4s ease, font-size .4s ease;
    cursor: none;
}
.service-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.15em;
}
.service-name {
    font-size: clamp(40px, 6vw, 90px);
    font-weight: 500;
    letter-spacing: -0.03em;
    transition: transform .4s ease;
}
.service-desc {
    grid-column: 2;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .4s ease, opacity .4s ease, margin-top .4s ease;
}
.service-item.is-hover {
    transform: translateX(20px);
    color: var(--accent);
}
.service-item.is-hover .service-name { transform: scale(1.05); }
.service-item.is-hover .service-desc {
    max-height: 60px;
    opacity: 1;
    margin-top: 8px;
}
@media (max-width: 768px) {
    .service-item { grid-template-columns: 50px 1fr; gap: 16px; cursor: pointer; }
}

/* ==========================================================
   PROCESS
   ========================================================== */
.process {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.process-headline {
    font-size: clamp(40px, 6vw, 100px);
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 80px;
}
.process-arrow { position: relative; }
.process-svg { width: 100%; height: 200px; }
.process-svg #processLine {
    stroke-dasharray: 1100;
    stroke-dashoffset: 1100;
}
.process-stages {
    display: flex;
    justify-content: space-between;
    margin-top: -100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.15em;
}
.process-stage {
    color: var(--muted);
    transition: color .3s ease;
}
.process-stage.active { color: var(--accent); }

@media (max-width: 768px) {
    .process-stages { flex-wrap: wrap; gap: 12px; margin-top: 20px; }
}

/* ==========================================================
   DEBUG / TERMINAL
   ========================================================== */
.debug {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.terminal {
    width: min(720px, 95vw);
    background: #0B0B0B;
    border: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
}
.terminal-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--line);
}
.terminal-title { margin-left: 12px; }
.terminal-body {
    padding: 24px;
    font-size: 14px;
    line-height: 1.7;
    min-height: 280px;
    color: var(--primary);
}
.t-line { white-space: pre-wrap; }
.t-error { color: #FF6E6E; }
.t-success { color: var(--accent); }
.t-cursor {
    display: inline-block;
    width: 9px; height: 16px;
    background: var(--primary);
    vertical-align: -2px;
    margin-left: 4px;
    animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================
   PERSONALITY
   ========================================================== */
.personality {
    min-height: 140vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.personality-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: clamp(40px, 7vw, 120px);
    font-weight: 500;
    letter-spacing: -0.03em;
}
.personality-line {
    overflow: hidden;
}
.personality-line span {
    display: inline-block;
    transform: translateY(110%);
}
.focus {
    margin-top: 120px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-top: 1px solid var(--line);
    padding-top: 40px;
}
.focus-word {
    font-size: clamp(28px, 3.5vw, 50px);
    font-weight: 500;
    letter-spacing: -0.02em;
}
.focus-sub {
    margin-top: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--muted);
}
@media (max-width: 768px) {
    .focus { grid-template-columns: 1fr; }
}

/* ==========================================================
   EDUCATION
   ========================================================== */
.education {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.doc {
    position: relative;
    max-width: 720px;
    padding: 60px;
    border: 1px solid var(--line);
    background: #0B0B0B;
}
.doc-stamp {
    position: absolute;
    top: 20px; right: 20px;
    padding: 6px 12px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
}
.doc-title {
    font-size: 28px;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}
.doc-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    align-items: baseline;
}
.doc-key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--muted);
}
.doc-val {
    font-size: 18px;
    letter-spacing: -0.01em;
}
.doc-foot {
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--muted);
}

/* ==========================================================
   CV DOWNLOAD
   ========================================================== */
.cv-download {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 40px;
}
.cv-headline-1,
.cv-headline-2 {
    font-size: clamp(50px, 9vw, 160px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 0.95;
}
.cv-headline-2 { color: var(--accent); }

.cv-btn {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 24px 60px;
    border: 1px solid var(--primary);
    font-size: 18px;
    letter-spacing: 0.15em;
    position: relative;
    overflow: hidden;
    transition: color .3s ease;
}
.cv-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
    z-index: -1;
}
.cv-btn:hover::before { transform: scaleX(1); }
.cv-btn:hover { color: var(--bg); }
.cv-btn-arrow {
    transition: transform .3s ease;
}
.cv-btn:hover .cv-btn-arrow { transform: translateX(8px); }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-headline {
    display: flex;
    flex-direction: column;
    font-size: clamp(60px, 12vw, 200px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.9;
}
.contact-2 {
    margin-left: clamp(40px, 12vw, 200px);
    color: var(--accent);
}
.contact-links {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
}
.contact-link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    transition: padding-left .3s ease, color .3s ease;
}
.contact-link:hover {
    padding-left: 20px;
    color: var(--accent);
}
.contact-key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--muted);
}
.contact-val {
    font-size: clamp(20px, 2.6vw, 36px);
    font-weight: 500;
    letter-spacing: -0.02em;
}
@media (max-width: 768px) {
    .contact-link { flex-direction: column; gap: 4px; }
}

/* ==========================================================
   FINAL
   ========================================================== */
.final {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.final-name {
    font-size: clamp(40px, 6vw, 90px);
    font-weight: 500;
    letter-spacing: -0.03em;
}
.final-title {
    margin-top: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: 0.25em;
    color: var(--muted);
}
.final-thanks {
    margin-top: 80px;
    font-size: clamp(24px, 3vw, 40px);
    letter-spacing: 0.1em;
    color: var(--muted);
    opacity: 0;
}
.final-dot {
    margin-top: 60px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
}

/* ==========================================================
   BACK TO TOP
   ========================================================== */
.back-to-top {
    position: fixed;
    right: 60px; bottom: 24px;
    z-index: 60;
    display: flex; flex-direction: column;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
    transition: color .2s;
}
.back-to-top:hover { color: var(--accent); }
.btt-arrow { font-size: 16px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.meta-footer {
    position: relative;
    z-index: 2;
    padding: 30px 6vw;
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.2em;
    border-top: 1px solid var(--line);
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    html { scroll-behavior: auto !important; }
}
