:root {
  --ink: #e9ecf5;
  --muted: #969db2;
  --void: #090b13;
  --panel: #111522;
  --line: #252b3d;
  --cyan: #50f4d0;
  --pink: #ff4fa3;
  --yellow: #f5dd5b;
  --mono: "Liberation Mono", "Courier New", monospace;
  --sans: "Liberation Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--void); color: var(--ink); font: 16px/1.65 var(--sans); overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--pink); color: var(--void); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; background: var(--cyan); color: var(--void); padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.scanlines { position: fixed; inset: 0; pointer-events: none; z-index: 10; opacity: .09; background: repeating-linear-gradient(0deg, transparent 0 3px, #000 4px); }

.nav-shell { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--void) 88%, transparent); backdrop-filter: blur(14px); }
nav { min-height: 74px; max-width: 1220px; margin: auto; padding: 0 28px; display: flex; align-items: center; gap: 40px; }
.logo { margin-right: auto; font: 700 1.15rem var(--mono); text-decoration: none; letter-spacing: -.06em; }
.logo span, .logo::after { color: var(--cyan); }
.logo::after { content: "_"; animation: blink 1s steps(1) infinite; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.nav-links a:hover, .nav-links a:focus { color: var(--cyan); }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--cyan); background: var(--cyan); color: #07120f; box-shadow: 5px 5px 0 #256b60; font: 600 .75rem var(--mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: .18s ease; }
.button:hover, .button:focus { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #256b60; }
.button.mini { min-height: 38px; padding: 0 15px; box-shadow: 3px 3px 0 #256b60; font-size: .66rem; }
.text-link { font: 600 .78rem var(--mono); letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.text-link span { color: var(--pink); }

.hero { min-height: calc(100vh - 74px); max-width: 1220px; margin: auto; padding: clamp(70px, 9vw, 130px) 28px 40px; position: relative; }
.hero::before { content: ""; position: absolute; width: 580px; height: 580px; right: -260px; top: -160px; border: 1px solid #1a8b77; border-radius: 50%; box-shadow: 0 0 120px #123c35 inset; opacity: .35; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr); align-items: center; gap: clamp(45px, 7vw, 95px); position: relative; }
.eyebrow, .section-label { color: var(--cyan); font: 500 .72rem var(--mono); letter-spacing: .14em; }
.hero h1 { margin: 20px 0 28px; font-size: clamp(3.3rem, 7vw, 7rem); line-height: .91; letter-spacing: -.065em; }
.hero h1 em, .blog-main h1 em { color: var(--pink); font-style: normal; text-shadow: 3px 3px 0 #662240; }
.lede { max-width: 720px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.2rem); }
.actions { margin-top: 35px; display: flex; align-items: center; gap: 30px; }
.status-panel { border: 1px solid var(--line); background: linear-gradient(145deg, #131827, #0d101a); box-shadow: 12px 12px 0 #06070c; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); position: relative; transform: rotate(.7deg); }
.panel-head { padding: 12px 15px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); color: var(--muted); font: .62rem var(--mono); letter-spacing: .1em; }
.panel-head span { margin-right: auto; }.panel-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }.panel-head i:nth-last-child(2) { background: var(--yellow); }.panel-head i:last-child { background: var(--cyan); }
.profile-frame { height: 330px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #11152f url("retro-sunset.svg") center / cover no-repeat; isolation: isolate; }
.profile-frame::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent 65%, rgba(9,11,19,.82) 100%); }
.profile-frame::after { content: none; }
.profile-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 34%; filter: none; transform: none; }
.profile-hud { position: absolute; z-index: 4; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: end; justify-content: space-between; color: var(--cyan); font-family: var(--mono); text-shadow: 0 1px 8px #000; }
.profile-hud span { font-size: .58rem; letter-spacing: .14em; }.profile-hud strong { color: var(--ink); font-size: .76rem; letter-spacing: .08em; }
.status-panel dl { margin: 0; padding: 1px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.status-panel dl div { min-height: 76px; padding: 13px 14px; display: block; background: #0f1320; }
.status-panel dt { color: var(--muted); font: .6rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }.status-panel dd { margin: 7px 0 0; text-align: left; font-size: .86rem; font-weight: 600; line-height: 1.25; }
.meter { padding: 14px 18px 22px; color: var(--muted); font: .62rem var(--mono); }.meter b { display: block; height: 9px; margin: 7px 0; border: 1px solid var(--line); }.meter b i { display: block; width: 88%; height: 100%; background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 10px); }.meter small { color: var(--cyan); }
.scroll-cue { position: absolute; bottom: 25px; color: #545b70; font: .62rem var(--mono); letter-spacing: .12em; }

.section { max-width: 1220px; margin: auto; padding: clamp(80px, 10vw, 145px) 28px; border-top: 1px solid var(--line); }
.section-label { margin-bottom: 45px; }
.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.two-col h2, .section-title h2, .cta h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 5rem); line-height: .95; letter-spacing: -.06em; }
.two-col h2 span { color: var(--cyan); }
.two-col > div > p { margin-top: 0; color: var(--muted); font-size: 1.14rem; }
.achievements { padding: 0; margin-top: 32px; list-style: none; }
.achievements li { padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); position: relative; }
.achievements li::before { content: "+"; position: absolute; left: 2px; color: var(--pink); font-family: var(--mono); }
.section-title { margin-bottom: 50px; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.section-title p { max-width: 450px; margin: 0; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card { min-height: 330px; padding: 28px; border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.project-card::after { content: ""; width: 90px; height: 90px; position: absolute; right: -46px; bottom: -46px; border: 1px solid var(--pink); transform: rotate(45deg); }
.project-card:hover { border-color: var(--cyan); transform: translateY(-4px); }
.project-meta { display: flex; justify-content: space-between; color: var(--cyan); font: .65rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.project-card h3 { max-width: 85%; margin: 55px 0 18px; font-size: 1.55rem; line-height: 1.1; }
.project-card p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }.chips span { padding: 3px 7px; border: 1px solid #343b51; color: #afb6c8; font: .6rem var(--mono); text-transform: uppercase; }
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.skill-card { min-height: 210px; padding: 28px; background: var(--void); }.skill-card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 190px; }.skill-card .prompt { color: var(--pink); font: .62rem var(--mono); }.skill-card h3 { margin: 40px 0 12px; font-size: 1.25rem; }.skill-card p { color: var(--muted); font: .78rem/1.8 var(--mono); }
.cta { text-align: center; max-width: none; background: radial-gradient(circle at 50% 50%, #172b2b 0, var(--void) 52%); }.cta h2 { margin: 25px 0 45px; }.cta .actions { justify-content: center; }
footer { min-height: 90px; max-width: 1220px; margin: auto; padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: #666d80; font: .62rem var(--mono); }

.blog-main, .article { max-width: 950px; margin: auto; padding: 100px 28px; }.blog-main h1 { margin: 20px 0 70px; font-size: clamp(3.5rem, 8vw, 7rem); line-height: .9; letter-spacing: -.07em; }.post-list { display: grid; gap: 15px; }.post-card, .empty-state { padding: 30px; border: 1px solid var(--line); background: var(--panel); }.post-card time, .article time { color: var(--cyan); font: .7rem var(--mono); }.post-card h2 { margin: 15px 0 8px; }.post-card h2 a { text-decoration: none; }.post-card p { color: var(--muted); }.empty-state { text-align: center; padding: 80px 30px; }.empty-state span { color: var(--pink); font: .7rem var(--mono); }
.article { max-width: 780px; }.article > time { display: block; margin-top: 60px; }.article h1 { margin: 18px 0 40px; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; letter-spacing: -.05em; }.article h2 { margin-top: 50px; }.article p, .article li { color: #b7bdcc; }
.reveal { opacity: 0; transform: translateY(18px); }.reveal.visible { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 820px) {
  nav { gap: 18px; }.nav-links { display: none; }.hero-grid, .two-col { grid-template-columns: 1fr; }.hero { min-height: auto; }.hero::before { display: none; }.status-panel { max-width: 500px; }.profile-frame { height: 340px; }.scroll-cue { display: none; }.two-col { gap: 35px; }.section-title { align-items: start; flex-direction: column; }.project-grid { grid-template-columns: 1fr; }.project-card { min-height: auto; }.skill-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  nav, .hero, .section, footer { padding-left: 18px; padding-right: 18px; }.profile-frame { height: 290px; }.button.mini { font-size: 0; width: 42px; padding: 0; }.button.mini::after { content: "CV"; font-size: .7rem; }.actions { align-items: flex-start; flex-direction: column; }.hero h1 { font-size: 3.2rem; }.project-card { padding: 22px; }.project-card h3 { margin-top: 35px; }.skill-card { padding: 22px; } footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }
