@font-face {
  font-family:'JetBrains Mono';
  src:url('/fonts/jetbrains-mono-v18-cyrillic_cyrillic-ext_greek_latin_latin-ext_vietnamese-regular.woff2') format('woff2');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

:root {
  color-scheme: dark;
  --background: #0b0e0c;
  --text: #cdd6cf;
  --bright: #eff5f0;
  --muted: #90a095;
  --green: #9cdaa9;
  --line: #29372d;
  --navbar-height: 60px;
  background: var(--background);
  color: var(--text);
  font: 14px/1.75 'JetBrains Mono', ui-monospace, monospace;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--green); text-underline-offset: 4px; }
button {
  background: var(--background);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 3px;
}
button { cursor: pointer; }
button:hover { border-color: var(--green); color: var(--bright); }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
::selection { background: #31533b; color: var(--bright); }
[hidden] { display: none !important; }
/* The head script selects the first view before the terminal modules load. */
:root[data-initial-view="terminal"] #portfolio { display: none; }
:root[data-initial-view="terminal"] #terminal-view { display: block !important; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -80px;
  z-index: 20;
  background: var(--background);
  padding: 12px;
}
.skip-link:focus { top: 10px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--navbar-height);
  padding: 0 clamp(16px, 2vw, 28px);
  background: var(--background);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  font-size: 11px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
  font-size: 12px;
}
.mark {
  font-size: 14px;
  color: var(--green);
  border: 1px solid #4b6953;
  line-height: 30px;
  width: 32px;
  text-align: center;
}
.view-switch { display: flex; align-items: center; gap: 16px; }
.view-switch button[aria-pressed=true] { border-color: var(--green); color: var(--green); }
.view-switch a { text-decoration: none; }
.guest-link { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.guest-link a { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.guest-link button { padding: 2px 6px; }
#terminal-view {
  position: relative;
  height: calc(100vh - var(--navbar-height));
  height: calc(100dvh - var(--navbar-height));
  padding: clamp(12px, 2vw, 28px);
  overflow: hidden;
}
#terminal-screen { height: 100%; width: 100%; overflow: hidden; }
.xterm { height: 100%; background: var(--background); }
#terminal-screen .xterm-viewport { background: var(--background); scrollbar-color: #34463a var(--background); }
.boot-screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: inherit;
  background: var(--background);
  overflow: auto;
  font-size: 15px;
}
.boot-log { margin: 0 0 12px; font: inherit; line-height: 2; white-space: pre-wrap; }
.boot-marker { color: var(--muted); }
.boot-marker.is-done { color: var(--green); }
.boot-screen[data-state="failed"] .boot-cursor { animation: none; }
.boot-screen[data-state="off"] > * { visibility: hidden; }
.boot-error { max-width: 55ch; color: #edb6a8; }
.boot-cursor { color: var(--green); animation: boot-blink 1s steps(1) infinite; }
@keyframes boot-blink { 50% { opacity: 0; } }
.eyebrow { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
h1, h2, h3 { font-weight: 400; color: var(--bright); }
.portfolio {
  max-width:1120px;
  margin:0 auto;
  padding:54px clamp(20px,4vw,56px) 30px;
  scroll-margin-top:90px;
}

.portfolio-heading h2 {
  font-size:clamp(28px,4vw,44px);
  line-height:1.3;
  letter-spacing:-.055em;
  margin:16px 0 20px;
}

.portfolio-heading>p:last-child {
  max-width:65ch;
  color:var(--muted);
}

.directory-nav {
  display:flex;
  flex-wrap:wrap;
  gap:12px 25px;
  margin:30px 0 12px;
  padding:20px 0;
  border-block:1px solid var(--line);
  font-size:12px;
}

.directory-nav a {
  text-decoration:none;
}

.portfolio-section {
  padding-top:46px;
  scroll-margin-top:100px;
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:20px;
  margin-bottom:18px;
}

.section-heading h2 {
  font-size:20px;
  margin:0;
}

.section-heading>span,.section-heading>a {
  font-size:11px;
  color:var(--muted);
}

.project-list {
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:36px;
}

.project {
  border-top:1px solid var(--line);
  padding:22px 0 25px;
  min-width:0;
}

.project-meta {
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:10px;
}

.project h3 {
  font-size:16px;
  margin:12px 0;
}

.project h3 a {
  color:var(--bright);
  text-decoration:none;
}

.project h3 a:hover {
  color:var(--green);
}

.project h3 span {
  color:var(--green);
  font-size:13px;
}

.project p {
  font-size:12px;
  margin:10px 0;
}

.project .materials {
  font-size:10px;
  color:var(--muted);
}

.about-copy {
  white-space:pre-line;
  font-size:13px;
  max-width:80ch;
  margin-bottom:22px;
}

.about-copy+a {
  font-size:12px;
}

.role {
  border-top:1px solid var(--line);
  padding:20px 0;
  max-width:86ch;
}

.role>p:first-child {
  font-size:11px;
  margin:0;
}

.role h3 {
  font-size:16px;
  margin:8px 0 2px;
}

.role-title {
  margin:0;
  color:var(--green);
  font-size:12px;
}

.role-section h4 {
  margin:24px 0 8px;
  font-size:13px;
  color:var(--bright);
}

.role-section>.muted {
  margin:0 0 8px;
  font-size:11px;
}

.role .materials {
  margin-top:20px;
  color:var(--muted);
  font-size:11px;
}

.role ul {
  padding-left:20px;
  font-size:12px;
}

.role li {
  padding:4px 0;
}

.note {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:18px 0;
  border-top:1px solid var(--line);
  font-size:13px;
  text-decoration:none;
}

.note span+span {
  color:var(--muted);
}

.contact-links {
  max-width:700px;
  margin:24px 0;
}

.contact-links a {
  display:grid;
  grid-template-columns:12ch 1fr;
  gap:14px;
  padding:12px 0;
  border-top:1px solid var(--line);
  text-decoration:none;
  font-size:12px;
}

.contact-links a span+span {
  color:var(--text);
  overflow-wrap:anywhere;
}


.site-footer {
  padding: 12px clamp(16px, 2vw, 28px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
}

.site-credit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 8px;
  margin: 0;
}

.site-credit a {
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.site-credit a:hover, .site-credit a:focus-visible { text-decoration: underline; }

@media (max-width: 1050px) {
  .wordmark-name { display: none; }
}
@media (max-width: 600px) {
  :root { --navbar-height: 54px; }
  .topbar { padding: 0 12px; gap: 10px; }
  .view-switch { gap: 12px; }
  .has-guest-link .wordmark { display: none; }
  .boot-screen { font-size: 13px; }
  .project-list { grid-template-columns: 1fr; }
  .portfolio { padding-top: 28px; }
  .section-heading { flex-wrap: wrap; gap: 4px; }
  .portfolio-section { padding-top: 32px; }
  .contact-links a { grid-template-columns: 8ch 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .boot-cursor { animation: none; }
}
