#prog { position: fixed; z-index: 120; inset: 0 auto auto 0; width: 100%; height: 2px; border: 0; background: transparent; appearance: none; }
#prog::-webkit-progress-bar { background: transparent; }
#prog::-webkit-progress-value { background: var(--signal); }
#prog::-moz-progress-bar { background: var(--signal); }
.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: var(--header-height); border-bottom: 1px solid transparent; background: transparent; transition: background-color 180ms ease, border-color 180ms ease; }
.site-header.scrolled { border-color: var(--border); background: var(--header); backdrop-filter: blur(16px); }
.site-nav { display: flex; align-items: center; width: min(100%, calc(var(--content) + (var(--gutter) * 2))); height: 100%; margin-inline: auto; padding-inline: var(--gutter); gap: 2rem; }
.nlogo { display: inline-flex; align-items: center; gap: .7rem; color: var(--bright); text-decoration: none; white-space: nowrap; }
.nlogo > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--border-strong); color: var(--accent); font-family: var(--mono); font-size: .67rem; }
.nlogo strong { font-size: .82rem; font-weight: 600; }
.npill { display: flex; align-items: center; gap: 1.65rem; margin-inline: auto; list-style: none; }
.npill a, .nav-resume { position: relative; display: inline-flex; min-height: 36px; align-items: center; color: var(--muted); font-size: .76rem; font-weight: 600; text-decoration: none; transition: color 160ms ease; }
.npill a::after { content: ""; position: absolute; right: 0; bottom: -.5rem; left: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 180ms var(--ease-out); }
.npill a:hover, .npill a.active, .nav-resume:hover { color: var(--bright); }
.npill a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: .65rem; }
.nav-resume { padding: .55rem .8rem; border: 1px solid var(--border-strong); color: var(--bright); }
.lang-switcher { display: flex; align-items: center; gap: .15rem; padding: .2rem; border: 1px solid var(--border); background: var(--bg-raised); }
.lang-btn { min-width: 36px; min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: .58rem; cursor: pointer; }
.lang-btn.is-active { background: var(--surface-strong); color: var(--bright); }
.icon-control { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid var(--border); background: var(--bg-raised); cursor: pointer; }
.ham { display: none; width: 44px; height: 44px; margin-left: auto; padding: 11px 8px; flex-direction: column; justify-content: center; gap: 5px; border: 0; background: transparent; cursor: pointer; }
.ham span { width: 100%; height: 1px; background: var(--bright); transition: transform 200ms var(--ease-out), opacity 120ms ease; }
.ham.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .75rem 1.1rem; border: 1px solid transparent; text-decoration: none; font-size: .78rem; font-weight: 700; transition: transform 140ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.button--primary { background: var(--accent); color: #04100c; }
.button--primary:hover { background: var(--bright); }
.button--secondary { border-color: var(--border-strong); color: var(--bright); }
.button--secondary:hover { border-color: var(--accent); color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--bright); font-size: .78rem; font-weight: 600; text-underline-offset: .3rem; }
.text-link:hover { color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--staging { color: var(--signal); }
.status--live { color: var(--accent); }
.tech-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.tech-list li { padding: .25rem .5rem; border: 1px solid var(--border); color: var(--muted); font-family: var(--mono); font-size: .6rem; line-height: 1.2; }

.section-dots { position: fixed; z-index: 80; top: 50%; right: max(1rem, calc((100vw - var(--content)) / 2 - 3rem)); display: flex; flex-direction: column; gap: .65rem; opacity: 0; pointer-events: none; transform: translateY(-50%); transition: opacity 180ms ease; }
.section-dots.visible { opacity: 1; pointer-events: auto; }
.section-dot { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.section-dot::before { content: ""; display: block; width: 4px; height: 4px; margin: 14px; border-radius: 50%; background: var(--muted); transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.section-dot.active::before { background: var(--signal); transform: scale(1.8); }

.mobile-menu { position: fixed; z-index: 90; inset: 0; display: grid; grid-template-rows: 1fr auto; padding: calc(var(--header-height) + 2rem) var(--gutter) 2rem; background: var(--bg); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity 200ms ease, transform 220ms var(--ease-out); }
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu__links { display: flex; flex-direction: column; justify-content: center; }
.ma { padding: .55rem 0; border-bottom: 1px solid var(--border); color: var(--bright); font-size: clamp(1.7rem, 8vw, 2.6rem); line-height: 1.15; text-decoration: none; }
.mobile-menu__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; }

.intro[hidden] { display: none; }
.intro { position: fixed; z-index: 500; inset: 0; display: grid; place-items: center; padding: 1rem; background: var(--bg); opacity: 0; transition: opacity 180ms ease; }
.intro.active { opacity: 1; }
.intro.exit { opacity: 0; }
.term { width: min(650px, 100%); border: 1px solid var(--border-strong); background: var(--bg-raised); box-shadow: var(--shadow); }
.tb { display: flex; height: 44px; align-items: center; padding: 0 .85rem; border-bottom: 1px solid var(--border); gap: .75rem; }
.window-dots { display: flex; gap: .35rem; }
.window-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.window-dots span:nth-child(2) { background: var(--signal); }
.window-dots span:nth-child(3) { background: var(--accent); }
.tb-ttl { color: var(--muted); font-family: var(--mono); font-size: .65rem; }
.intro-skip { min-height: 36px; margin-left: auto; padding: .35rem .55rem; border: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: .62rem; cursor: pointer; }
.intro-skip:hover { color: var(--bright); }
.tbody { min-height: 180px; padding: 1.5rem; color: var(--text); font-family: var(--mono); font-size: clamp(.7rem, 2vw, .82rem); line-height: 1.9; }
.terminal-command { color: var(--bright); }
.terminal-command > span:first-child { color: var(--accent); }
.tcar { display: inline-block; width: 7px; height: 1em; margin-left: 3px; vertical-align: middle; background: var(--accent); animation: caret 800ms steps(1) infinite; }
.to { color: var(--muted); }
.to.ready { color: var(--accent); }
@keyframes caret { 50% { opacity: 0; } }

.rv, .rvl { opacity: 1; transform: none; }
.js.motion-ok .rv.in { animation: reveal-up 480ms var(--ease-out) both; }
.js.motion-ok .rvl.in { animation: reveal-left 480ms var(--ease-out) both; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes reveal-left { from { opacity: 0; transform: translateX(-18px); } }

#cd, #cr { display: none; position: fixed; z-index: 999; top: 0; left: 0; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); }
#cd { width: 4px; height: 4px; background: var(--bright); }
#cr { width: 40px; height: 40px; }
#cr::after { content: ""; position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--accent), transparent 35%); border-radius: 50%; transform: scale(.65); transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.cbig #cr::after { background: color-mix(in srgb, var(--accent), transparent 88%); transform: scale(1); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { body.cursor-ready, body.cursor-ready a, body.cursor-ready button { cursor: none; } body.cursor-ready #cd, body.cursor-ready #cr { display: block; } .button:active, .icon-control:active, .lang-btn:active, .ham:active { transform: scale(.97); } }

.site-footer { padding-block: 1.5rem; border-top: 1px solid var(--border); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-family: var(--mono); font-size: .62rem; }
.site-footer .wrap > div { display: flex; gap: 1.25rem; }
.site-footer a { color: inherit; text-underline-offset: .2rem; }
