:root {
    --bg: #11130f;
    --bg-soft: #191c16;
    --panel: #20241c;
    --line: rgba(236, 241, 224, 0.15);
    --text: #f0f2e8;
    --muted: #a7ad9b;
    --accent: #c9f45a;
    --accent-dark: #182000;
    --paper: #e9eadf;
    --ink: #151811;
    --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 80% 0%, rgba(201, 244, 90, .08), transparent 34%);
    z-index: -1;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.noise {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    opacity: .18;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section-shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.site-header {
    width: min(calc(100% - 48px), var(--max));
    height: 92px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.logo { font-size: 24px; font-weight: 900; letter-spacing: -.05em; }
.logo span, h1 em, h2 em { color: var(--accent); font-style: normal; }
.navigation { display: flex; align-items: center; gap: 34px; font-size: 13px; font-weight: 650; }
.navigation a { transition: color .2s; }
.navigation a:hover { color: var(--accent); }
.nav-cta { border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; }
.menu-button { display: none; background: none; border: 0; }

.hero { min-height: calc(100vh - 92px); padding: 88px 0 36px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.availability { display: inline-flex; gap: 9px; align-items: center; border: 1px solid var(--line); padding: 9px 12px; border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 44px; }
.availability span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(201,244,90,.12); }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1 { max-width: 790px; margin: 0; font-size: clamp(55px, 6vw, 88px); line-height: .96; letter-spacing: -.065em; font-weight: 760; }
.hero-description { max-width: 630px; margin: 32px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button { border: 1px solid var(--line); border-radius: 4px; padding: 17px 22px; display: inline-flex; gap: 30px; align-items: center; cursor: pointer; font-weight: 750; font-size: 13px; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--accent-dark); background: var(--accent); border-color: var(--accent); }
.button-ghost { background: transparent; }
.hero-visual { min-height: 450px; position: relative; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; width: 390px; height: 390px; border-radius: 50%; background: var(--accent); opacity: .08; filter: blur(3px); }
.portrait-frame { position: relative; z-index: 1; width: min(100%, 430px); padding: 10px; background: var(--paper); border: 1px solid rgba(201,244,90,.24); box-shadow: 0 30px 80px rgba(0,0,0,.4); transform: rotate(-2deg); }
.portrait-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 28%; filter: saturate(.92) contrast(1.03); }
.portrait-caption { display: flex; align-items: center; justify-content: space-between; padding: 13px 6px 4px; color: var(--ink); font: 700 10px Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; }
.portrait-caption b { color: #656b5d; font-weight: 600; }
.code-window { position: relative; z-index: 1; width: min(100%, 470px); background: #171a15; border: 1px solid rgba(201,244,90,.24); border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.4); transform: rotate(-2deg); overflow: hidden; }
.window-bar { display: flex; gap: 7px; align-items: center; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.window-bar span { width: 8px; height: 8px; border-radius: 50%; background: #555a4e; }
.window-bar span:first-child { background: var(--accent); }
.window-bar small { margin-left: auto; color: #767c6e; font: 10px Consolas, monospace; }
pre { margin: 0; padding: 30px; font: 14px/1.8 Consolas, monospace; color: #a8ae9c; overflow: hidden; }
code b, code i { color: #de83ff; font-style: normal; font-weight: normal; }
code strong { color: #eef3e5; } code u { color: #87d9ff; text-decoration: none; } code span { color: #fdca6a; } code mark { color: var(--accent); background: none; }
.code-status { padding: 12px 18px; border-top: 1px solid var(--line); color: #848a7b; font: 10px Consolas, monospace; }
.code-status span, .code-status b { color: var(--accent); }
.code-status b { float: right; }
.orbit { position: absolute; z-index: 2; background: var(--paper); color: var(--ink); font: 800 11px Consolas, monospace; padding: 15px 18px; box-shadow: 0 10px 30px #0006; }
.orbit-one { top: 45px; right: 0; transform: rotate(6deg); }
.orbit-two { bottom: 55px; left: 0; background: var(--accent); transform: rotate(-8deg); }
.hero-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 30px; }
.hero-stats > div { display: flex; gap: 12px; align-items: baseline; }
.hero-stats strong { font-size: 25px; letter-spacing: -.04em; }
.hero-stats span { color: var(--muted); font-size: 11px; }
.scroll-hint { justify-content: flex-end; text-transform: uppercase; letter-spacing: .14em; }
.scroll-hint i { color: var(--accent); font-style: normal; }

.about { padding: 150px 0; display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; border-top: 1px solid var(--line); }
.section-heading h2, .skills h2, .experience h2, .projects h2, .contact h2 { margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.about-copy { padding-top: 25px; }
.about-copy .lead { margin: 0 0 28px; color: var(--text); font-size: 26px; line-height: 1.45; letter-spacing: -.025em; }
.about-copy > p:not(.lead) { max-width: 680px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.principles { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 38px; }
.principles span, .tags span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; color: var(--muted); font-size: 11px; }
.resume-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.resume-facts > div { padding: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.resume-facts span, .resume-facts small { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }
.resume-facts span { margin-bottom: 12px; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.resume-facts strong { display: block; margin-bottom: 6px; font-size: 15px; }

.skills { padding: 120px 0; }
.skills-top { display: flex; align-items: end; justify-content: space-between; margin-bottom: 55px; }
.skill-filters { display: flex; gap: 7px; }
.skill-filters button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 10px 14px; font-size: 11px; cursor: pointer; }
.skill-filters button.active { background: var(--accent); border-color: var(--accent); color: var(--accent-dark); }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.skill-card { min-height: 145px; padding: 22px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s, opacity .25s, transform .25s; }
.skill-card:hover { background: var(--panel); }
.skill-card[hidden] { display: none; }
.skill-card span { color: #697061; font: 10px Consolas, monospace; }
.skill-card strong { margin-top: auto; font-size: 21px; }
.skill-card i { margin-left: auto; color: var(--accent); font-style: normal; }

.experience { padding: 150px 0; display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-meta { display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 11px; }
.timeline-meta time { color: var(--accent); font-weight: 750; }
.timeline-content h3 { margin: 0 0 14px; font-size: 23px; letter-spacing: -.03em; }
.timeline-content p { margin: 0; max-width: 530px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.timeline-result { align-self: start; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; white-space: nowrap; color: var(--accent); font-size: 10px; }

.projects { padding: 140px 0; }
.projects-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 62px; }
.projects-heading > p { max-width: 320px; color: var(--muted); line-height: 1.7; font-size: 14px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project-card { position: relative; background: var(--paper); color: var(--ink); overflow: hidden; }
.project-main { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; }
.project-number { position: absolute; z-index: 2; top: 22px; left: 22px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 11px Consolas, monospace; }
.project-art { min-height: 280px; display: grid; place-items: center; overflow: hidden; }
.project-main .project-art { min-height: 430px; }
.project-art-one { background: #22281b; color: var(--accent); }
.dashboard-widget { width: 72%; background: #161a12; padding: 28px; transform: rotate(-4deg); box-shadow: 0 30px 60px #0008; }
.dashboard-widget span { color: #909b7d; font: 10px Consolas, monospace; }
.dashboard-widget strong { display: block; margin-top: 12px; font-size: 46px; }
.dashboard-widget svg { width: 100%; margin-top: 20px; }
.project-art-two { background: #c9f45a; }
.terminal-lines { width: 64%; background: #171a15; padding: 40px; transform: rotate(5deg); box-shadow: 0 25px 45px #38480055; }
.terminal-lines i { display: block; height: 7px; width: 85%; background: #42483b; margin-bottom: 14px; }
.terminal-lines i:nth-child(2) { width: 55%; } .terminal-lines i:nth-child(3) { width: 70%; }
.terminal-lines b { display: block; margin-top: 28px; color: var(--accent); font: 12px Consolas, monospace; }
.project-art-three { background: #282c24; color: var(--paper); }
.project-art-three span { font-size: 76px; font-weight: 800; letter-spacing: -.07em; }
.project-art-three small { color: var(--accent); font-size: 30px; }
.project-info { padding: 34px; }
.project-main .project-info { padding: 58px; display: flex; flex-direction: column; justify-content: center; }
.project-info span { font-size: 9px; letter-spacing: .13em; font-weight: 750; }
.project-info h3 { margin: 9px 0 20px; font-size: 32px; letter-spacing: -.04em; }
.project-main .project-info h3 { font-size: 45px; }
.project-info p { margin: 0; color: #5d6256; font-size: 14px; line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.tags span { color: #4b5045; border-color: #c7cabd; letter-spacing: 0; padding: 7px 10px; }

.contact { position: relative; min-height: 650px; padding: 150px 0 70px; text-align: center; border-top: 1px solid var(--line); overflow: hidden; }
.contact h2 { font-size: clamp(52px, 7.5vw, 105px); }
.contact-link { position: relative; z-index: 1; display: inline-flex; gap: 70px; margin-top: 62px; padding-bottom: 10px; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: clamp(20px, 3vw, 36px); font-weight: 700; }
.contact-bottom { position: absolute; bottom: 55px; left: 0; right: 0; display: flex; justify-content: space-between; text-align: left; }
.socials { display: flex; gap: 26px; font-size: 12px; font-weight: 700; }
.contact-bottom p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: right; }
.contact-orb { position: absolute; top: 100px; left: 12%; color: #0f120d; background: var(--accent); width: 80px; height: 80px; display: grid; place-items: center; border-radius: 50%; font-size: 34px; font-weight: 850; transform: rotate(-10deg); }
.site-footer { padding: 24px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #747b6c; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
    .hero { grid-template-columns: 1fr; padding-top: 64px; }
    .hero-copy { max-width: 730px; }
    .hero-visual { min-height: 390px; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); }
    .scroll-hint { display: none !important; }
    .about, .experience { grid-template-columns: 1fr; gap: 55px; }
    .skill-grid { grid-template-columns: repeat(3, 1fr); }
    .project-main { grid-template-columns: 1fr; }
    .contact-bottom { position: static; margin-top: 110px; }
}

@media (max-width: 680px) {
    .section-shell, .site-header { width: min(calc(100% - 32px), var(--max)); }
    .site-header { height: 74px; }
    .menu-button { display: flex; flex-direction: column; gap: 6px; cursor: pointer; padding: 8px; }
    .menu-button span:not(.sr-only) { width: 22px; height: 1px; background: var(--text); }
    .navigation { display: none; position: absolute; z-index: 9; top: 74px; left: 16px; right: 16px; padding: 24px; flex-direction: column; align-items: stretch; background: #191c16; border: 1px solid var(--line); }
    .navigation.open { display: flex; }
    .hero { min-height: auto; padding: 55px 0 80px; gap: 40px; }
    .availability { margin-bottom: 32px; }
    h1 { font-size: clamp(47px, 15vw, 66px); }
    .hero-description { font-size: 16px; }
    .hero-actions { flex-direction: column; }
    .button { justify-content: space-between; }
    .hero-visual { min-height: 330px; }
    .code-window { width: 94%; }
    .portrait-frame { width: 86%; }
    pre { padding: 22px; font-size: 11px; }
    .orbit-one { right: -3px; top: 15px; } .orbit-two { left: -2px; bottom: 25px; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 26px; }
    .hero-stats > div { flex-direction: column; gap: 3px; }
    .about, .skills, .experience, .projects { padding: 95px 0; }
    .about-copy .lead { font-size: 22px; }
    .resume-facts { grid-template-columns: 1fr; }
    .skills-top, .projects-heading { align-items: start; flex-direction: column; gap: 35px; }
    .skill-filters { width: 100%; overflow-x: auto; padding-bottom: 5px; }
    .skill-grid { grid-template-columns: 1fr 1fr; }
    .skill-card { min-height: 125px; }
    .timeline-item { grid-template-columns: 1fr; gap: 20px; }
    .timeline-result { justify-self: start; }
    .project-grid { grid-template-columns: 1fr; }
    .project-main { grid-column: auto; }
    .project-main .project-art { min-height: 310px; }
    .project-main .project-info { padding: 34px; }
    .project-main .project-info h3 { font-size: 32px; }
    .contact { min-height: 620px; padding-top: 120px; }
    .contact-orb { width: 55px; height: 55px; top: 55px; left: 7%; font-size: 24px; }
    .contact-link { gap: 25px; }
    .contact-bottom { flex-direction: column; gap: 40px; align-items: center; text-align: center; }
    .contact-bottom p { text-align: center; }
    .site-footer { gap: 20px; flex-wrap: wrap; }
    .site-footer span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    :root { --bg: #fff; --text: #171a15; --muted: #555; --line: #ddd; }
    .noise, .site-header, .hero-visual, .hero-actions, .scroll-hint, .skill-filters, .project-art, .contact-orb { display: none !important; }
    .hero { min-height: auto; display: block; padding: 50px 0; }
    .hero-stats { margin-top: 45px; }
    .about, .experience { grid-template-columns: .7fr 1.3fr; padding: 60px 0; }
    .skills, .projects, .contact { padding: 60px 0; }
    .skill-grid { grid-template-columns: repeat(4, 1fr); }
    .project-grid { grid-template-columns: 1fr 1fr; }
    .project-main { grid-column: 1 / -1; display: block; }
    .contact { min-height: auto; }
    .contact-bottom { position: static; margin-top: 60px; }
    .reveal { opacity: 1; transform: none; }
}
