:root {
  color-scheme: dark;
  --bg: #101411; --bg-soft: #151b17; --panel: #19211b; --panel-2: #1d2820;
  --line: #2b382e; --line-bright: #405745; --text: #edf2ed; --muted: #a3afa5;
  --quiet: #6f7e72; --green: #a8f0bc; --green-strong: #70d993; --green-dim: #254c32;
  --amber: #d6b57c; --radius: 18px; --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .16; z-index: -1; background-image: linear-gradient(rgba(168,240,188,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(168,240,188,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 78%); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
::selection { color: #0d170f; background: var(--green); }
.skip-link { position: fixed; top: -60px; left: 1rem; z-index: 100; background: var(--green); color: #101411; padding: .65rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.site-header { width: min(var(--max), calc(100% - 48px)); margin: auto; min-height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { font-weight: 800; letter-spacing: -.08em; font-size: 1.45rem; }
.brand-mark span { color: var(--green-strong); }
.brand-caption { color: var(--quiet); font: 600 .62rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; max-width: 125px; }
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); color: var(--muted); font-size: .83rem; }
.primary-nav a:hover, .hero-meta a:hover, .text-link:hover { color: var(--green); }
.language-toggle { border: 1px solid var(--line-bright); color: var(--green); background: transparent; border-radius: 7px; padding: .42rem .7rem; cursor: pointer; font-size: .75rem; font-weight: 700; }
.language-toggle span { color: var(--quiet); margin-left: .2rem; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 8px; padding: .5rem .75rem; }
.section-shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.hero { min-height: 625px; padding-top: 94px; padding-bottom: 32px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); column-gap: clamp(3rem, 8vw, 7rem); align-items: center; position: relative; }
.hero-copy { max-width: 670px; }
.eyebrow { color: var(--green-strong); font: 650 .7rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 1.15rem; }
.status-dot, .pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green-strong); box-shadow: 0 0 0 4px rgba(112,217,147,.1); margin-right: .55rem; vertical-align: middle; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.8rem, 5.2vw, 5.15rem); letter-spacing: -.065em; line-height: 1.04; font-weight: 610; margin-bottom: 1.5rem; max-width: 760px; }
.hero-lead { color: #b9c5bb; font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 650px; line-height: 1.8; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 1rem; border-radius: 8px; padding: .72rem 1.05rem; font-size: .88rem; font-weight: 650; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: #0f1b12; border: 1px solid var(--green); }
.button-primary:hover { background: #c3f8d0; }
.button-quiet { border: 1px solid var(--line-bright); color: var(--text); background: rgba(255,255,255,.015); }
.button-quiet:hover { border-color: var(--green-strong); }
.hero-meta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 2.2rem; color: var(--quiet); font-size: .76rem; }
.hero-meta a { color: var(--muted); }
.meta-icon { color: var(--green); font-size: 1rem; }
.hero-panel { background: linear-gradient(145deg, rgba(29,40,32,.96), rgba(20,27,22,.94)); border: 1px solid var(--line-bright); border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,.22); overflow: hidden; transform: translateY(8px); }
.panel-top, .terminal-bar { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .7rem 1rem; color: var(--quiet); font: .67rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.window-dots { display: inline-flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; display: block; border-radius: 50%; background: #6a786d; }
.window-dots i:first-child { background: #b77970; } .window-dots i:nth-child(2) { background: #c6a86e; } .window-dots i:nth-child(3) { background: #78ad83; }
.panel-lock { color: var(--green); }
.panel-content { padding: 1.8rem 1.6rem 1.3rem; }
.panel-kicker { color: var(--green-strong); font: .66rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; margin-bottom: .45rem; }
.panel-line { font-size: 1rem; line-height: 1.55; margin-bottom: 0; }
.panel-rule { height: 1px; background: var(--line); margin: 1.3rem 0; }
.panel-footer { margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
.pulse { width: 6px; height: 6px; margin-right: .6rem; }
.hero-bottomline { grid-column: 1 / -1; display: flex; gap: 1.2rem; align-items: center; color: var(--quiet); font: .63rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; margin-top: 4.5rem; }
.line-grow { height: 1px; background: var(--line); flex: 1; }
.metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2rem 0 1.35rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; }
.metric { display: flex; flex-direction: column; gap: .35rem; padding-right: 1rem; border-right: 1px solid var(--line); }
.metric:nth-child(4) { border-right: 0; }
.metric strong { font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 570; letter-spacing: -.06em; line-height: 1.1; }
.metric strong span { color: var(--green); font-size: .7em; }
.metric > span { color: var(--muted); font-size: .78rem; }
.content-section { padding-top: 112px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 2.5rem; }
.section-heading > div { max-width: 610px; }
h2 { font-size: clamp(2rem, 3.7vw, 3.3rem); line-height: 1.12; letter-spacing: -.055em; font-weight: 580; margin-bottom: 0; }
.section-intro { color: var(--muted); max-width: 400px; margin-bottom: .25rem; font-size: .92rem; line-height: 1.8; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.principle-card, .project-card, .contribution-card { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(150deg, rgba(25,33,27,.92), rgba(20,26,22,.85)); }
.principle-card { padding: 1.45rem; min-height: 295px; }
.card-index { float: right; color: var(--quiet); font: .68rem ui-monospace, monospace; }
.principle-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--green); border: 1px solid var(--line-bright); background: rgba(112,217,147,.07); border-radius: 10px; font: 1.3rem ui-monospace, monospace; margin: .7rem 0 1.3rem; }
h3 { font-size: 1.17rem; line-height: 1.35; letter-spacing: -.025em; font-weight: 600; margin-bottom: .7rem; }
.principle-card p, .project-body > p, .contribution-card > p:not(.contrib-org):not(.contrib-foot) { color: var(--muted); font-size: .84rem; line-height: 1.8; }
.tag-row { display: flex; flex-wrap: wrap; gap: .42rem; margin-top: 1.1rem; }
.tag-row span { color: #b7c5b9; border: 1px solid #344338; background: rgba(255,255,255,.018); border-radius: 5px; padding: .25rem .48rem; font: .66rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.project-feature { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.project-visual { min-height: 250px; position: relative; overflow: hidden; background: #151e18; border-bottom: 1px solid var(--line); }
.project-feature .project-visual { border-bottom: 0; border-right: 1px solid var(--line); min-height: 330px; }
.project-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(168,240,188,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(168,240,188,.06) 1px, transparent 1px); background-size: 26px 26px; opacity: .55; }
.visual-label, .visual-caption { position: absolute; z-index: 2; left: 1.2rem; color: var(--quiet); font: .62rem ui-monospace, monospace; letter-spacing: .1em; }
.visual-label { top: 1rem; } .visual-caption { bottom: 1rem; }
.node-map { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 2rem; }
.node { position: relative; z-index: 1; display: grid; place-content: center; text-align: center; width: 86px; height: 72px; border: 1px solid #52775b; border-radius: 8px; background: #1c3022; color: var(--green); font: .62rem/1.5 ui-monospace, monospace; box-shadow: 0 0 28px rgba(112,217,147,.06); }
.node-b { width: 105px; height: 90px; background: #253d2b; }
.connector { width: 32px; height: 1px; background: var(--green-strong); position: relative; }
.connector::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--green-strong); border-right: 1px solid var(--green-strong); transform: rotate(45deg); }
.connector-short { width: 20px; }
.visual-network { background: radial-gradient(ellipse at center, #243a29, #151e18 68%); }
.network-orbit { width: 160px; height: 160px; border: 1px solid #385940; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; }
.network-orbit::before { content: ""; position: absolute; width: 108px; height: 108px; border: 1px dashed #456b4c; border-radius: 50%; }
.orbit-center { display: grid; place-items: center; border: 1px solid var(--green-strong); border-radius: 50%; width: 58px; height: 58px; color: var(--green); background: #203627; font: .65rem ui-monospace, monospace; z-index: 1; }
.orbit-point { width: 10px; height: 10px; position: absolute; background: var(--green-strong); border-radius: 50%; box-shadow: 0 0 12px #70d99355; }
.p1 { top: 12px; left: 75px; } .p2 { right: 12px; top: 75px; } .p3 { bottom: 12px; left: 75px; } .p4 { left: 12px; top: 75px; }
.orbit-line { position: absolute; width: 1px; height: 140px; background: #3a5940; transform: rotate(45deg); }
.visual-linux { background: radial-gradient(ellipse at 35% 30%, #243629, #151d18 68%); }
.terminal-art { position: absolute; left: 10%; top: 26%; width: 80%; color: #8fa595; font: .78rem/2 ui-monospace, monospace; border: 1px solid #3a4b3e; border-radius: 8px; background: #101611dd; padding: 1.1rem; box-shadow: 0 14px 45px #0003; }
.terminal-command { color: var(--green); } .terminal-success { color: #80d69b; } .terminal-cursor { color: var(--green); }
.project-body { padding: 1.5rem; }
.project-meta { display: flex; justify-content: space-between; color: var(--green-strong); font: .65rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.project-body h3 { font-size: 1.45rem; }
.project-body > p { margin-bottom: .2rem; }
.open-source-banner { display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem; margin-bottom: 1rem; border: 1px solid var(--line-bright); border-radius: 14px; background: linear-gradient(100deg, #1b2b1e, #151c17); }
.open-source-symbol { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #416649; color: var(--green); border-radius: 12px; font-size: 2rem; }
.open-source-banner .eyebrow { margin-bottom: .4rem; }
.open-source-banner h3 { margin-bottom: 0; font-size: 1.2rem; }
.open-source-banner > a { margin-left: auto; white-space: nowrap; }
.text-link { display: inline-flex; gap: .5rem; color: var(--green); font-size: .8rem; font-weight: 650; margin-top: 1rem; }
.contribution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contribution-card { padding: 1.35rem; display: flex; flex-direction: column; min-height: 350px; }
.contrib-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.contrib-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-bright); background: #203427; color: var(--green); border-radius: 9px; font-size: .9rem; font-weight: 800; }
.status-pill { display: inline-flex; align-items: center; gap: .4rem; font: .63rem ui-monospace, monospace; color: var(--green); background: #1d3323; border: 1px solid #355b3d; border-radius: 99px; padding: .28rem .55rem; }
.status-pill i { width: 5px; height: 5px; background: var(--green-strong); border-radius: 50%; }
.status-pill.repo { color: #b4c2b7; background: #202922; border-color: #3a483d; }
.contrib-org { color: var(--quiet); font: .63rem ui-monospace, monospace; letter-spacing: .08em; margin-bottom: .6rem; }
.contribution-card h3 { font-size: 1.2rem; }
.contribution-card > p:not(.contrib-org):not(.contrib-foot) { margin-bottom: .2rem; }
.contribution-card .tag-row { margin-bottom: 1rem; }
.contribution-card .text-link { margin-top: auto; align-self: flex-start; }
.contrib-foot { color: var(--quiet); font-size: .68rem; margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 170px 1fr; gap: 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--green); font: .76rem ui-monospace, monospace; padding-top: .25rem; }
.timeline-item h3 { font-size: 1.17rem; margin-bottom: .5rem; }
.timeline-item h3 span { color: var(--green-strong); font-weight: 450; }
.timeline-item p { color: var(--muted); max-width: 760px; margin-bottom: .2rem; font-size: .87rem; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.skills-grid article { position: relative; padding: 1.35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 160px; }
.skill-number { color: var(--green-strong); font: .66rem ui-monospace, monospace; }
.skills-grid h3 { margin-top: .85rem; font-size: 1rem; }
.skills-grid p { color: var(--muted); font-size: .79rem; margin-bottom: 0; }
.terminal-section { padding-top: 112px; }
.terminal-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.6rem; }
.terminal-heading h2 { max-width: 630px; }
.terminal-heading > p { color: var(--muted); max-width: 340px; font-size: .84rem; margin-bottom: .25rem; }
.terminal-window { border: 1px solid #354b39; background: #0d120e; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 60px #0002; }
.terminal-bar { background: #151e17; }
.terminal-output { min-height: 100px; max-height: 230px; overflow-y: auto; padding: 1.2rem 1.3rem .6rem; color: #b5d9bc; font: .8rem/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-output p { margin-bottom: .35rem; }
.terminal-output .command-line { color: #eef5ee; }
.terminal-output .response-line { color: #94caa0; padding-left: .8rem; white-space: pre-wrap; }
.terminal-form { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.2rem; border-top: 1px solid #26362a; color: var(--green); font: .78rem ui-monospace, monospace; }
.terminal-form label { white-space: nowrap; }
.terminal-form input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.terminal-form button { border: 1px solid #36523b; background: #1b2d20; color: var(--green); padding: .4rem .7rem; border-radius: 5px; cursor: pointer; font-size: .72rem; }
.terminal-form button:hover { background: #25412c; }
.contact-section { padding-top: 112px; padding-bottom: 90px; }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 3rem; padding: clamp(1.6rem, 4vw, 3.5rem); border: 1px solid var(--line-bright); border-radius: var(--radius); background: radial-gradient(ellipse at 0% 0%, #233729, #172019 62%); }
.contact-card > div:first-child { max-width: 700px; }
.contact-card h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.contact-card p:not(.eyebrow) { color: var(--muted); margin: 1rem 0 0; }
.contact-actions { min-width: 220px; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.contact-actions .button { white-space: nowrap; }
.site-footer { min-height: 90px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--quiet); font-size: .72rem; }
.site-footer p { margin: 0; }
@media (max-width: 980px) {
  .primary-nav { gap: 1rem; }
  .hero { column-gap: 2.5rem; }
  .hero-meta { gap: .8rem; }
  .contribution-grid { grid-template-columns: repeat(2, 1fr); }
  .contribution-card:last-child { grid-column: span 2; min-height: 290px; }
  .section-heading { align-items: start; flex-direction: column; gap: 1rem; }
  .section-intro { max-width: 650px; }
}
@media (max-width: 760px) {
  .site-header, .section-shell { width: min(100% - 32px, var(--max)); }
  .site-header { min-height: 76px; position: relative; }
  .brand-caption { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .primary-nav { display: none; position: absolute; z-index: 20; top: calc(100% - 1px); left: 0; right: 0; padding: 1rem; flex-direction: column; align-items: stretch; gap: 0; background: #151c17; border: 1px solid var(--line-bright); border-radius: 0 0 12px 12px; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); }
  .language-toggle { margin-top: .8rem; align-self: flex-start; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 2.5rem; padding-top: 68px; min-height: auto; }
  h1 { font-size: clamp(2.6rem, 11vw, 4rem); }
  .hero-panel { max-width: 560px; transform: none; }
  .hero-bottomline { margin-top: 1rem; }
  .metrics { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3) { border-right: 1px solid var(--line); }
  .metric:nth-child(4) { border-right: 0; }
  .content-section, .terminal-section { padding-top: 80px; }
  .principle-grid, .contribution-grid, .skills-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: auto; }
  .project-grid { grid-template-columns: 1fr; }
  .project-feature { grid-column: auto; display: flex; flex-direction: column; }
  .project-feature .project-visual { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .contribution-card:last-child { grid-column: auto; }
  .open-source-banner { align-items: flex-start; flex-wrap: wrap; }
  .open-source-banner > a { margin-left: 0; }
  .timeline-item { grid-template-columns: 1fr; gap: .6rem; }
  .skills-grid { border-left: 0; }
  .skills-grid article { border-left: 1px solid var(--line); }
  .terminal-heading { align-items: start; flex-direction: column; gap: .8rem; }
  .contact-card { align-items: flex-start; flex-direction: column; gap: 2rem; }
  .site-footer { padding: 1.2rem 0; flex-wrap: wrap; }
}
@media (max-width: 430px) {
  .hero-meta { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { justify-content: space-between; }
  .node-map { gap: .35rem; padding-inline: .5rem; }
  .node { width: 68px; height: 65px; font-size: .55rem; }
  .node-b { width: 78px; height: 78px; }
  .connector { width: 14px; }
  .connector-short { width: 10px; }
  .terminal-form { gap: .5rem; flex-wrap: wrap; }
  .terminal-form label { font-size: .7rem; }
  .terminal-form button { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
