:root {
  --bg: #090d12;
  --panel: #0e151c;
  --panel-2: #111a23;
  --text: #edf2f7;
  --muted: #8e9dac;
  --line: #283746;
  --line-soft: rgba(63, 82, 99, .45);
  --cyan: #58d6ff;
  --green: #a7f070;
  --purple: #b18cff;
  --amber: #f5bd4f;
  --sans: "Space Grotesk", Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --gutter: clamp(1.25rem, 3vw, 3rem);
  --content-gutter: max(var(--gutter), calc((100vw - 1920px) / 2));
  --section-y: clamp(5.5rem, 8vw, 8rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--mono); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
body.is-loading { overflow: hidden; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: var(--bg); background: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; padding: .65rem .9rem; color: var(--bg); background: var(--cyan); transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.site-preloader { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 1.25rem; overflow: hidden; color: var(--text); background-color: var(--bg); background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 24px 24px; transition: opacity .45s var(--ease), visibility .45s; }
.site-preloader::before { content: ""; position: absolute; inset: 0; background: rgba(9,13,18,.9); }
.site-preloader::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(88,214,255,.8), transparent); box-shadow: 0 0 18px rgba(88,214,255,.35); animation: preloader-scan 1.8s linear infinite; }
.site-preloader.is-complete { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-window { position: relative; z-index: 3; width: min(640px, 100%); border: 1px solid var(--line); background: rgba(14,21,28,.97); box-shadow: 0 30px 100px rgba(0,0,0,.48); }
.preloader-titlebar { min-height: 42px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 0 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .58rem; }
.preloader-titlebar > span:last-child { justify-self: end; }
.window-dots { display: flex; gap: .42rem; }
.window-dots i { width: .48rem; height: .48rem; border-radius: 50%; background: #ff5f57; }
.window-dots i:nth-child(2) { background: var(--amber); }
.window-dots i:nth-child(3) { background: var(--green); }
.preloader-body { padding: clamp(2rem, 5vw, 3.4rem); }
.preloader-mark { margin-bottom: 2rem; color: var(--cyan); font-size: clamp(2.3rem, 7vw, 4.2rem); font-weight: 500; letter-spacing: -.09em; line-height: 1; animation: preloader-pulse 1.1s ease-in-out infinite alternate; }
.preloader-mark b { color: var(--text); font-weight: 600; }
.boot-log { min-height: 118px; color: #b9c5cf; font-size: clamp(.66rem, 1.4vw, .78rem); }
.boot-log p { margin: 0 0 .48rem; opacity: 0; transform: translateY(5px); animation: boot-line .35s var(--ease) forwards; }
.boot-log p:nth-child(2) { animation-delay: .15s; }
.boot-log p:nth-child(3) { animation-delay: .3s; }
.boot-log p:nth-child(4) { animation-delay: .45s; }
.boot-log p:first-child span, .boot-log p:nth-child(4) > i { color: var(--cyan); }
.boot-log p > i { color: var(--green); font-style: normal; }
.loader-cursor { display: inline-block; width: .5em; height: .9em; margin-left: .35rem; vertical-align: -.06em; background: var(--green); animation: blink .72s step-end infinite; }
.preloader-progress { height: 3px; overflow: hidden; background: var(--line); }
.preloader-progress i { display: block; width: var(--loader-progress, 0%); height: 100%; background: var(--cyan); box-shadow: 0 0 14px rgba(88,214,255,.65); transition: width .08s linear; }
.preloader-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .7rem; color: var(--muted); font-size: .56rem; }
.preloader-meta span:first-child { color: var(--cyan); }

@keyframes preloader-scan { from { top: -2%; } to { top: 102%; } }
@keyframes preloader-pulse { from { opacity: .72; text-shadow: 0 0 0 rgba(88,214,255,0); } to { opacity: 1; text-shadow: 0 0 22px rgba(88,214,255,.24); } }
@keyframes boot-line { to { opacity: 1; transform: translateY(0); } }

.grid-surface { background-color: var(--bg); background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.grid-surface::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(9,13,18,.92); }
.grid-surface > * { position: relative; z-index: 1; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; min-height: 68px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: clamp(1.2rem, 3vw, 3.5rem); padding: 0 var(--content-gutter); border-bottom: 1px solid var(--line); background: rgba(9,13,18,.95); backdrop-filter: blur(12px); transition: min-height .25s var(--ease), box-shadow .25s; }
.site-header.scrolled { min-height: 58px; box-shadow: 0 12px 35px rgba(0,0,0,.25); }
.brand { font-size: 1.25rem; font-weight: 600; letter-spacing: -.05em; white-space: nowrap; }
.brand strong { color: var(--cyan); }
.site-nav { justify-self: end; display: flex; gap: clamp(1rem, 2.4vw, 2.5rem); font-size: .7rem; }
.site-nav a, .site-footer nav a { position: relative; color: #c1cbd4; }
.site-nav a span { color: var(--muted); }
.site-nav a::after, .site-footer nav a::after { content: ""; position: absolute; left: 0; bottom: -.5rem; width: 100%; height: 1px; background: var(--cyan); transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current]::after, .site-footer nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-status { display: flex; align-items: center; gap: .55rem; margin: 0; color: var(--muted); font-size: .62rem; white-space: nowrap; }
.header-status i, .availability i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(167,240,112,.08); }
.header-cta { padding: .65rem 1rem; border: 1px solid var(--cyan); color: var(--cyan); font-size: .7rem; transition: color .2s, background .2s, transform .2s; white-space: nowrap; }
.header-cta:hover { color: var(--bg); background: var(--cyan); transform: translateY(-2px); }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; }

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(28rem, .82fr) minmax(37rem, 1.18fr); gap: clamp(3rem, 5vw, 6rem); align-items: center; padding: clamp(7rem, 11vh, 9rem) var(--content-gutter) clamp(3rem, 5vh, 4.5rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-copy { padding-left: clamp(0rem, 1vw, 1rem); }
.hero-profile { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.8rem; }
.hero-profile[hidden] { display: none; }
.profile-frame { position: relative; flex: 0 0 82px; width: 82px; height: 82px; padding: 5px; border: 1px solid var(--line); background: var(--panel); box-shadow: 8px 8px 0 rgba(88,214,255,.07); }
.profile-frame::before, .profile-frame::after { content: ""; position: absolute; z-index: 1; width: 13px; height: 13px; pointer-events: none; }
.profile-frame::before { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.profile-frame::after { right: -1px; bottom: -1px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); }
.profile-frame img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.82) contrast(1.04); }
.profile-frame i { position: absolute; right: -5px; bottom: 8px; z-index: 2; width: 11px; height: 11px; border: 2px solid var(--bg); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(167,240,112,.1); }
.hero-profile figcaption { display: grid; gap: .15rem; }
.hero-profile figcaption span, .hero-profile figcaption small { color: var(--muted); font-size: .6rem; font-weight: 400; }
.hero-profile figcaption span { color: var(--purple); }
.hero-profile figcaption strong { font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.terminal-path { margin: 0 0 1.7rem; color: var(--cyan); font-size: .72rem; }
.hero .terminal-path { color: var(--muted); }
.hero h1, .section-heading h2 { margin: 0; font-family: var(--sans); font-weight: 600; letter-spacing: -.055em; line-height: .98; }
.hero h1 { max-width: 15ch; font-size: clamp(3.5rem, 5vw, 5.5rem); }
.hero-intro { max-width: 45rem; margin: 2rem 0; color: #bdc8d2; font-size: clamp(.86rem, 1.1vw, 1rem); line-height: 1.7; }
.hero-tech { max-width: 44rem; margin: -1rem 0 0; color: var(--purple); font-size: .64rem; letter-spacing: .025em; }
.hero-actions { display: flex; align-items: center; gap: 2.2rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; min-height: 50px; padding: .8rem 1.4rem; font-size: .78rem; font-weight: 600; }
.button-primary { color: var(--bg); background: var(--cyan); border: 1px solid var(--cyan); transition: transform .25s var(--ease), box-shadow .25s; }
.button-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 0 rgba(88,214,255,.12); }
.text-link { display: inline-flex; gap: .5rem; padding-bottom: .2rem; border-bottom: 1px solid var(--muted); font-size: .76rem; transition: gap .25s, color .25s; }
.text-link:hover { gap: .85rem; color: var(--cyan); }
.availability { display: flex; align-items: center; gap: .75rem; margin-top: 2rem; color: var(--muted); font-size: .68rem; }

.editor { display: grid; grid-template-columns: 180px 1fr; min-height: 540px; border: 1px solid var(--line); background: rgba(14,21,28,.97); box-shadow: 0 22px 80px rgba(0,0,0,.2); }
.file-tree { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 0; border-right: 1px solid var(--line); color: var(--muted); font-size: .66rem; }
.file-tree > * { padding: .05rem 1rem; }
.file-tree .panel-label { margin-bottom: .5rem; color: #c3ccd4; text-transform: uppercase; }
.file-tree strong { color: #cdd6de; }
.file-tree .indent { padding-left: 2.2rem; }
.file-tree .file { width: 100%; padding: .42rem 1rem .42rem 1.7rem; border: 0; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.file-tree .file:hover, .file-tree .file.active { color: var(--text); background: #1a2835; }
.file-tree .file:first-of-type { color: var(--cyan); }
.editor-main { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; }
.editor-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); }
.editor-tabs button { flex: 1 0 145px; display: flex; justify-content: space-between; gap: .55rem; padding: .75rem .8rem; border: 0; border-right: 1px solid var(--line); border-top: 2px solid transparent; background: #0b1117; color: var(--muted); font-size: .62rem; cursor: pointer; }
.editor-tabs button b { color: var(--cyan); font-weight: 500; }
.editor-tabs button:nth-child(2) b { color: var(--amber); }
.editor-tabs button:nth-child(3) b { color: var(--green); }
.editor-tabs button.active { border-top-color: var(--cyan); color: var(--text); background: var(--panel); }
.editor-tabs button i { margin-left: auto; font-style: normal; }
.code-panel { min-height: 420px; padding: 1rem 1rem 1rem .25rem; overflow: auto; }
.code-lines { margin: 0; padding-left: 3.8rem; color: #60717e; font-size: clamp(.68rem, .85vw, .82rem); line-height: 1.75; }
.code-lines code { padding-left: .85rem; color: #dce4ea; white-space: pre; font-family: var(--mono); }
.cyan { color: var(--cyan) !important; }
.green { color: var(--green) !important; }
.purple { color: var(--purple) !important; }
.amber { color: var(--amber) !important; }
.muted { color: var(--muted) !important; }
.cursor { display: inline-block; width: .45em; height: .95em; margin-left: .35rem; vertical-align: -.08em; background: var(--green); animation: blink 1.1s step-end infinite; }
.editor-status { display: flex; gap: 1.3rem; justify-content: flex-end; padding: .35rem .75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .56rem; }
.editor-status span:first-child { margin-right: auto; }

.section { position: relative; padding: var(--section-y) var(--content-gutter); border-bottom: 1px solid var(--line); scroll-margin-top: 68px; }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; column-gap: clamp(3rem, 8vw, 9rem); align-items: end; }
.section-heading .terminal-path { grid-column: 1 / -1; }
.section-heading h2 { font-size: clamp(2.7rem, 4.8vw, 5rem); }
.section-heading > p:last-child { max-width: 38rem; margin: 0; color: var(--muted); font-size: .78rem; }
.section-heading.compact { grid-template-columns: 1fr; align-items: start; }
.section-heading.compact h2 { font-size: clamp(2.5rem, 4vw, 4.2rem); }
.section-heading.compact > p:last-child { margin-top: .8rem; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(4rem, 7vw, 7rem); }
.principles article { min-height: 190px; padding: .2rem 1.4rem 0; border-left: 1px solid var(--line); }
.principles article:last-child { border-right: 1px solid var(--line); }
.principles span { color: var(--muted); font-size: .68rem; }
.principles h3 { margin: .45rem 0 .8rem; font: 500 clamp(1rem, 1.4vw, 1.25rem)/1.2 var(--sans); }
.principles p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.7; }

.stack { min-height: 900px; }
.years-note { position: absolute; z-index: 2; top: var(--section-y); right: var(--content-gutter); margin: .5rem 0 0; color: var(--muted); font-size: .68rem; }
.years-note span { color: var(--green); font-weight: 600; }
.dependency-map { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.8rem, 1.6vw, 1.6rem); padding-top: 9rem; margin-top: 1rem; }
.map-root { position: absolute; top: 0; left: 50%; transform: translateX(-50%); min-width: 190px; padding: 1rem; border: 1px solid var(--line); background: var(--panel); }
.map-root strong, .map-root span { display: block; }
.map-root strong { font-size: .82rem; }
.map-root span { margin-top: .2rem; color: var(--muted); font-size: .62rem; }
.map-line { position: absolute; z-index: -1; top: 5rem; left: 8.3%; width: 83.4%; height: 4rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.dependency-map article { position: relative; min-height: 235px; padding: 1.2rem 1.25rem; border: 1px solid var(--line); background: rgba(14,21,28,.88); transition: transform .25s var(--ease), border-color .25s; }
.dependency-map article::before { content: ""; position: absolute; top: -4rem; left: 50%; height: 4rem; border-left: 1px solid var(--line); }
.dependency-map article:hover { transform: translateY(-5px); border-color: var(--cyan); }
.module-icon { display: block; margin-bottom: .75rem; font-size: 1.2rem; font-weight: 600; }
.dependency-map h3 { margin: 0 0 .8rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); font: 600 clamp(.82rem, 1.2vw, 1.05rem)/1.2 var(--sans); }
.dependency-map p { margin: 0; color: #a7b4bf; font-size: .68rem; line-height: 1.8; }

.career-ledger { margin-top: 4rem; border-top: 1px solid var(--line); }
.career-entry { position: relative; display: grid; grid-template-columns: 86px minmax(0, 1fr) minmax(240px, .42fr); min-height: 190px; border-bottom: 1px solid var(--line); background: rgba(14,21,28,.38); }
.career-entry::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--cyan); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); }
.career-entry:hover::before { transform: scaleY(1); }
.entry-rail { position: relative; display: grid; place-items: start center; padding-top: 2rem; border-right: 1px solid var(--line); color: var(--muted); font-size: .62rem; }
.entry-rail::after { content: ""; position: absolute; top: 4.6rem; bottom: 0; left: 50%; border-left: 1px solid var(--line); }
.career-entry:last-child .entry-rail::after { bottom: 2rem; }
.entry-rail i { position: absolute; z-index: 1; top: 4.25rem; left: calc(50% - .42rem); width: .84rem; height: .84rem; border: 1px solid var(--cyan); background: var(--panel); }
.entry-rail i::after { content: ""; position: absolute; inset: 3px; background: var(--cyan); }
.entry-main { align-self: center; padding: 2rem clamp(1.5rem, 3vw, 3rem); }
.entry-command { margin: 0 0 .65rem; color: var(--green); font-size: .62rem; }
.entry-main time, .credential-body time { color: var(--muted); font-size: .64rem; }
.entry-main h3, .credential-body h3 { margin: .55rem 0 .35rem; font: 600 clamp(1.15rem, 1.7vw, 1.55rem)/1.3 var(--sans); }
.entry-main h3 small { display: block; margin-top: .25rem; color: #b8c2cb; font: 500 .68em/1.4 var(--sans); letter-spacing: 0; }
.entry-main > p:not(.entry-command):not(.entry-summary), .credential-body > p { margin: 0; color: var(--cyan); font-size: .72rem; }
.entry-main .entry-summary { max-width: 54rem; margin: 1rem 0 0; color: var(--muted); font-size: .68rem; line-height: 1.65; }
.company-former-name { color: var(--muted); }
.entry-facts { align-self: stretch; display: grid; align-content: center; gap: .65rem; margin: 0; padding: 2rem; border-left: 1px solid var(--line); font-size: .62rem; }
.entry-facts div, .credential-body dl div { display: grid; grid-template-columns: 5.4rem 1fr; }
.entry-facts dt, .credential-body dt { color: #687987; }
.entry-facts dd, .credential-body dd { margin: 0; color: #c7d1d9; }

.education { background-color: #0a0e14; }
.education-ledger { display: grid; grid-template-columns: 1fr 1fr; margin-top: 4rem; border: 1px solid var(--line); }
.credential { min-width: 0; min-height: 285px; display: grid; grid-template-columns: 105px minmax(0, 1fr); background: rgba(14,21,28,.66); }
.credential + .credential { border-left: 1px solid var(--line); }
.credential-index { display: grid; align-content: space-between; padding: 1.8rem 1.25rem; border-right: 1px solid var(--line); color: var(--muted); font-size: .62rem; }
.credential-index b { color: var(--purple); font-size: 1rem; font-weight: 500; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .12em; }
.credential-body { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 2rem clamp(1.4rem, 3vw, 3rem); }
.credential-body .entry-command { color: var(--purple); }
.credential-body h3 small { display: block; margin-top: .2rem; color: #b8c2cb; font-size: .75em; font-weight: 500; }
.credential-body dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .6rem; }

.repo-browser { display: grid; grid-template-columns: minmax(350px, .88fr) minmax(500px, 1.12fr); margin-top: 3rem; border: 1px solid var(--line); background: rgba(14,21,28,.92); }
.work { padding-top: clamp(4rem, 5vw, 5rem); padding-bottom: clamp(4rem, 5vw, 5rem); }
.repo-list { border-right: 1px solid var(--line); }
.repo-item { position: relative; width: 100%; min-height: 78px; display: grid; grid-template-columns: 1.3rem 2rem 1fr auto; grid-template-rows: auto auto; gap: .15rem .8rem; align-items: center; padding: .8rem 1rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.repo-item:last-child { border-bottom: 0; }
.repo-item:hover, .repo-item.active { background: #121e28; }
.repo-item.active::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--cyan); }
.repo-item .file-icon { position: relative; grid-row: 1 / 3; width: .8rem; height: 1rem; border: 1px solid #b9c8d4; }
.repo-item .file-icon::after { content: ""; position: absolute; top: -1px; right: -1px; width: .3rem; height: .3rem; border-left: 1px solid #b9c8d4; border-bottom: 1px solid #b9c8d4; background: var(--panel); }
.repo-item small { grid-row: 1 / 3; color: var(--muted); font-size: .6rem; }
.repo-item strong { align-self: end; font-size: .72rem; }
.repo-item em { align-self: start; color: var(--muted); font-size: .58rem; font-style: normal; }
.repo-item b { grid-column: 4; grid-row: 1 / 3; color: var(--cyan); font-size: .58rem; font-weight: 400; }
.project-preview { position: sticky; top: 68px; align-self: start; min-width: 0; }
.preview-bar { min-height: 45px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; border-bottom: 1px solid var(--line); font-size: .6rem; }
.preview-bar > * { padding: .75rem 1rem; }
.preview-bar > span:first-child { color: var(--purple); border-right: 1px solid var(--line); }
.preview-bar strong { font-weight: 400; }
.preview-bar a { color: var(--cyan); }
.preview-actions { display: flex; justify-content: flex-end; gap: 0; padding: 0; white-space: nowrap; }
.preview-actions a { display: inline-flex; align-items: center; min-height: 45px; padding: .75rem 1rem; }
.preview-actions a + a { border-left: 1px solid var(--line); color: var(--green); }
.preview-actions a[hidden] { display: none; }
.preview-media { padding: .85rem; }
.preview-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.preview-meta { display: grid; grid-template-columns: 1.1fr .9fr; padding: 0 .85rem 1rem; color: var(--muted); font-size: .58rem; }
.preview-meta dl { margin: 0; padding-right: 1.5rem; border-right: 1px solid var(--line); }
.preview-meta dl div { display: grid; grid-template-columns: 5.5rem 1fr; }
.preview-meta dt { color: #687987; }
.preview-meta dd { margin: 0; color: #c5d0d8; }
.preview-meta p { margin: 0; padding-left: 1.5rem; }

.contact { padding-bottom: 0; }
.command-line { min-height: 76px; display: grid; grid-template-columns: auto auto 1fr auto; gap: 1rem; align-items: center; margin: 3rem 0 5rem; padding: 1rem 1.4rem; border: 1px solid var(--line); background: var(--panel); font-size: .72rem; }
.command-line > span { color: var(--green); }
.command-line > a { padding: .6rem 1rem; border: 1px solid var(--cyan); color: var(--cyan); }
.command-line > a:hover { color: var(--bg); background: var(--cyan); }
.command-line > i { justify-self: start; }
.command-line > small { color: var(--muted); font-size: .58rem; }
.site-footer { min-height: 95px; display: grid; grid-template-columns: auto auto 1fr auto auto; gap: 1rem; align-items: center; padding: 1.5rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .6rem; }
.footer-brand { color: var(--cyan); font-size: 1rem; font-weight: 600; }
.site-footer > span { color: var(--text); }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1.5rem; }

.floating-tools { position: fixed; z-index: 95; right: clamp(1rem, 2vw, 2rem); bottom: clamp(1rem, 2vw, 2rem); display: grid; gap: .75rem; justify-items: end; }
.whatsapp-bubble, .scroll-top { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; box-shadow: 0 12px 32px rgba(0,0,0,.38); transition: transform .25s var(--ease), opacity .25s, border-color .25s, background .25s; }
.whatsapp-bubble { color: #06130b; background: #25d366; }
.whatsapp-bubble svg { width: 27px; height: 27px; fill: currentColor; }
.whatsapp-bubble:hover { transform: translateY(-3px) scale(1.04); }
.presence-dot { position: absolute; right: 0; bottom: 2px; width: 13px; height: 13px; border: 3px solid var(--bg); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(167,240,112,.12); }
.scroll-top { overflow: hidden; padding: 0; border: 1px solid var(--line); color: var(--text); background: rgba(14,21,28,.94); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); }
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }
.progress-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-track, .progress-value { fill: none; stroke-width: 1.5; }
.progress-track { stroke: var(--line); }
.progress-value { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 150.8; stroke-dashoffset: 150.8; transition: stroke-dashoffset .12s linear; }
.scroll-arrow { width: 20px; height: 20px; margin-top: -7px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.scroll-top span { position: absolute; bottom: 8px; font-size: .46rem; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes blink { 0%, 47% { opacity: 1; } 48%, 100% { opacity: 0; } }

@media (max-width: 1150px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .header-status { display: none; }
  .hero { grid-template-columns: .8fr 1.2fr; gap: 2rem; }
  .hero h1 { font-size: clamp(3rem, 5vw, 4.3rem); }
  .editor { grid-template-columns: 145px 1fr; }
  .dependency-map { grid-template-columns: repeat(3, 1fr); row-gap: 1rem; padding-top: 8rem; }
  .map-line, .dependency-map article::before { display: none; }
  .repo-browser { grid-template-columns: .85fr 1.15fr; }
  .repo-item b { display: none; }
}

@media (max-width: 1280px) {
  .header-status { display: none; }
  .site-header { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-nav { display: none; }
  .menu-toggle { justify-self: end; display: flex; align-items: center; gap: .7rem; padding: .5rem; color: var(--muted); }
  .menu-toggle i { position: relative; width: 1.2rem; height: 1px; background: currentColor; }
  .menu-toggle i::before { content: ""; position: absolute; left: 0; top: -.38rem; width: 100%; height: 1px; background: currentColor; transition: transform .2s, top .2s; }
  .menu-toggle i::after { content: ""; position: absolute; left: 0; top: .38rem; width: 100%; height: 1px; background: currentColor; transition: transform .2s, top .2s; }
  .nav-open .menu-toggle i { background: transparent; }
  .nav-open .menu-toggle i::before { top: 0; transform: rotate(45deg); }
  .nav-open .menu-toggle i::after { top: 0; transform: rotate(-45deg); }
  .nav-open .site-header { backdrop-filter: none; }
  .nav-open .site-nav { position: fixed; z-index: 101; inset: 58px 0 0; width: 100%; height: calc(100dvh - 58px); display: flex; flex-direction: column; gap: 1.8rem; align-items: flex-start; justify-self: stretch; padding: 4rem var(--gutter); background: var(--bg); font-size: clamp(1.3rem, 5vw, 2rem); }
  .nav-open .site-nav a span { color: var(--cyan); }
  .nav-open .header-cta { display: none; }
  .hero { min-height: 100vh; min-height: 100svh; grid-template-columns: 1fr; padding-top: 8rem; }
  .hero-copy { max-width: 45rem; }
  .editor { min-height: 500px; }
  .principles { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .principles article:nth-child(3) { border-left: 1px solid var(--line); }
  .career-entry { grid-template-columns: 68px minmax(0, 1fr); }
  .entry-facts { grid-column: 2; grid-template-columns: 1fr 1fr; padding: 1rem clamp(1.5rem, 3vw, 3rem) 1.5rem; border-left: 0; border-top: 1px solid var(--line); }
  .education-ledger { grid-template-columns: 1fr; }
  .credential + .credential { border-left: 0; border-top: 1px solid var(--line); }
  .repo-browser { grid-template-columns: 1fr; }
  .repo-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .repo-item { min-height: 70px; }
  .project-preview { position: static; }
}

@media (max-width: 620px) {
  :root { --section-y: 5rem; }
  .site-header { min-height: 60px; }
  .header-cta { display: none; }
  .menu-toggle span { display: none; }
  .hero { padding-top: 7.5rem; }
  .hero-profile { margin-bottom: 1.5rem; }
  .profile-frame { flex-basis: 72px; width: 72px; height: 72px; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1.3rem; }
  .file-tree { display: none; }
  .editor { grid-template-columns: 1fr; min-height: 460px; }
  .editor-tabs button { flex-basis: 130px; }
  .code-panel { min-height: 370px; }
  .code-lines { padding-left: 3.2rem; font-size: .62rem; }
  .editor-status span:nth-child(2), .editor-status span:nth-child(3) { display: none; }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .section-heading > p:last-child { margin-top: 1.5rem; }
  .principles { grid-template-columns: 1fr; margin-top: 3.5rem; }
  .principles article, .principles article:last-child { min-height: 0; padding: 0 0 2rem 1.2rem; border-right: 0; }
  .years-note { position: static; margin: 1.5rem 0 0; }
  .dependency-map { grid-template-columns: 1fr 1fr; padding-top: 7rem; }
  .dependency-map article { min-height: 205px; }
  .career-entry { grid-template-columns: 52px minmax(0, 1fr); }
  .entry-main { padding: 1.6rem 1.2rem; }
  .entry-main h3, .credential-body h3 { font-size: 1.05rem; }
  .entry-facts { padding: 1rem 1.2rem 1.4rem; }
  .credential { grid-template-columns: 64px minmax(0, 1fr); }
  .credential-index { padding: 1.5rem .8rem; }
  .credential-body { padding: 1.6rem 1.2rem; }
  .credential-body dl { grid-template-columns: 1fr; }
  .repo-item { grid-template-columns: 1.2rem 1.8rem 1fr; }
  .repo-item em { grid-column: 3; }
  .project-preview { display: block; }
  .preview-media img { height: auto; }
  .preview-meta { grid-template-columns: 1fr; }
  .preview-meta dl { padding: 0 0 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .preview-meta p { padding: 1rem 0 0; }
  .preview-bar { grid-template-columns: auto 1fr; }
  .preview-actions { grid-column: 1 / -1; justify-content: stretch; border-top: 1px solid var(--line); }
  .preview-actions a { flex: 1; justify-content: center; }
  .command-line { grid-template-columns: 1fr auto; }
  .command-line > span { grid-column: 1 / -1; }
  .command-line > small { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: auto 1fr; }
  .site-footer p { display: none; }
  .site-footer nav { grid-column: 1 / -1; flex-wrap: wrap; }
  .floating-tools { right: .85rem; bottom: .85rem; gap: .55rem; }
  .whatsapp-bubble, .scroll-top { width: 52px; height: 52px; }
  .whatsapp-bubble svg { width: 24px; height: 24px; }
  .scroll-top span { bottom: 6px; }
  .preloader-titlebar { grid-template-columns: 1fr auto; }
  .preloader-titlebar > span:last-child { display: none; }
  .preloader-body { padding: 2rem 1.4rem; }
  .boot-log { min-height: 110px; }
}

@media (min-width: 1900px) {
  .hero { min-height: 100vh; min-height: 100svh; grid-template-columns: minmax(36rem, .88fr) minmax(48rem, 1.12fr); }
  .editor { width: 100%; max-width: 1060px; justify-self: end; }
  .section-heading > p:last-child { max-width: 44rem; }
  .preview-media { padding: 1rem; }
}

@media (max-width: 420px) {
  .dependency-map { grid-template-columns: 1fr; }
  .map-root { left: 0; transform: none; }
}

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