:root {
  --void: #050b08;
  --screen: #07130e;
  --deep: #0b2017;
  --panel: #102f20;
  --panel-2: #17442d;
  --line: #3a7255;
  --line-soft: #244d39;
  --emerald: #4fdd86;
  --mint: #adf0bb;
  --cream: #f2efc4;
  --cream-dim: #c5c99d;
  --gold: #f1cd58;
  --coral: #f87562;
  --blue: #67c8cf;
  --shadow: #020604;
  --shell: 1280px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 5rem;
}

body {
  min-width: 300px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgb(79 221 134 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(79 221 134 / 3%) 1px, transparent 1px),
    radial-gradient(circle at 75% 5%, #123522 0, transparent 30rem),
    var(--screen);
  background-size: 24px 24px, 24px 24px, auto, auto;
  color: var(--cream);
  font-family: "Courier New", Courier, ui-monospace, monospace;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 49%, rgb(79 221 134 / 2%) 49% 51%, transparent 51%) 0 0 / 48px 48px,
    radial-gradient(circle at 10% 78%, rgb(79 221 134 / 8%), transparent 24rem);
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--gold);
  color: var(--void);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.scanlines {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgb(0 0 0 / 5%) 3px,
    rgb(0 0 0 / 5%) 4px
  );
  pointer-events: none;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border: 2px solid var(--cream);
  background: var(--void);
  color: var(--cream);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell-width {
  width: min(100%, calc(var(--shell) + (var(--gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.system-bar {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 2px solid var(--line);
  background: rgb(5 11 8 / 94%);
  box-shadow: 0 4px 0 rgb(2 6 4 / 60%);
  backdrop-filter: blur(10px);
}

.system-bar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.5rem;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 2.2rem;
  height: 1.65rem;
  place-items: center;
  border: 2px solid var(--emerald);
  color: var(--emerald);
  font-size: 0.75rem;
  box-shadow: 3px 3px 0 var(--line-soft);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

nav a,
.site-footer a {
  color: var(--cream-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

nav a:hover,
.site-footer a:hover {
  color: var(--gold);
}

.system-status {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.55rem;
  margin: 0;
  color: var(--emerald);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.system-status span,
#project-status span {
  width: 0.55rem;
  height: 0.55rem;
  background: currentColor;
  box-shadow: 0 0 0 3px rgb(79 221 134 / 15%);
}

.hero {
  padding-block: clamp(2rem, 6vw, 5rem) clamp(4.5rem, 9vw, 8rem);
}

.window {
  border: 2px solid var(--line);
  background: var(--deep);
  box-shadow:
    0 0 0 3px var(--screen),
    0 0 0 5px var(--line-soft),
    10px 10px 0 var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.6rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 2px solid var(--line);
  background: var(--panel-2);
  color: var(--mint);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.window-bar p {
  margin: 0;
}

.window-bar p span {
  color: var(--gold);
}

.window-controls {
  display: flex;
  gap: 0.45rem;
}

.window-controls i {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid var(--cream-dim);
  background: var(--deep);
}

.window-controls i:first-child {
  background: var(--emerald);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.75fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  min-height: 620px;
  padding: clamp(2rem, 6vw, 5.25rem);
}

.command-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
  color: var(--cream-dim);
  font-size: 0.76rem;
}

.prompt {
  color: var(--emerald);
  font-weight: 700;
}

.hero-kicker,
.project-kind,
.section-path {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.6rem;
  color: var(--mint);
  font-size: clamp(4.4rem, 11vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.105em;
  line-height: 0.82;
  text-shadow:
    4px 0 0 var(--panel-2),
    0 4px 0 var(--panel-2);
}

.cursor {
  color: var(--gold);
  animation: cursor-blink 900ms steps(1, end) infinite;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

.hero-intro {
  max-width: 45rem;
  margin-bottom: 2rem;
  color: var(--cream-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.pixel-button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border: 2px solid var(--line);
  background: var(--screen);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--shadow);
  transition:
    color 100ms linear,
    border-color 100ms linear,
    transform 100ms linear,
    box-shadow 100ms linear;
}

.pixel-button:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--shadow);
}

.pixel-button--primary {
  border-color: var(--emerald);
  background: var(--emerald);
  color: var(--void);
}

.pixel-button--primary:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--void);
}

.pixel-button--disabled {
  border-color: var(--line-soft);
  color: var(--cream-dim);
  cursor: not-allowed;
  opacity: 0.7;
}

.capability-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  border-top: 1px solid var(--line-soft);
}

.capability-readout div {
  padding: 1rem 0.6rem 0 0;
  border-right: 1px solid var(--line-soft);
}

.capability-readout div + div {
  padding-left: 1rem;
}

.capability-readout div:last-child {
  border-right: 0;
}

.capability-readout dt,
.profile-data dt {
  margin-bottom: 0.35rem;
  color: var(--cream-dim);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.capability-readout dd,
.profile-data dd {
  margin: 0;
  color: var(--mint);
  font-size: 0.68rem;
  font-weight: 700;
}

.hero-art {
  min-width: 0;
}

.pixel-frame {
  position: relative;
  max-width: 34rem;
  margin-inline: auto;
  padding: 0.65rem;
  border: 2px solid var(--line);
  background: var(--screen);
  box-shadow:
    inset 0 0 0 4px var(--void),
    7px 7px 0 var(--shadow);
}

.pixel-frame::before,
.pixel-frame::after {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border-color: var(--gold);
  content: "";
}

.pixel-frame::before {
  top: -5px;
  left: -5px;
  border-top: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
}

.pixel-frame::after {
  right: -5px;
  bottom: -5px;
  border-right: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.pixel-frame img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.pixel-frame__label,
.pixel-frame__coords {
  position: absolute;
  bottom: 1rem;
  margin: 0;
  padding: 0.2rem 0.35rem;
  background: var(--screen);
  color: var(--mint);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.pixel-frame__label {
  left: 1rem;
}

.pixel-frame__coords {
  right: 1rem;
  color: var(--gold);
}

.hero-statusbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--line);
  background: var(--screen);
}

.hero-statusbar p {
  margin: 0;
  padding: 0.8rem 1rem;
  border-right: 1px solid var(--line-soft);
  color: var(--cream-dim);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.hero-statusbar p:last-child {
  border-right: 0;
}

.hero-statusbar span {
  color: var(--emerald);
  font-weight: 700;
}

.projects {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-path {
  margin-bottom: 0.8rem;
}

.section-header h2 {
  margin-bottom: 0;
  color: var(--mint);
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.section-note {
  max-width: 25rem;
  margin-bottom: 0.2rem;
  color: var(--cream-dim);
  font-size: 0.68rem;
  line-height: 1.7;
  text-align: right;
}

.section-note code {
  color: var(--gold);
}

.window-bar--light {
  background: var(--cream);
  color: var(--void);
}

.window-bar--light p span {
  color: var(--panel-2);
}

.window-memory {
  color: var(--panel);
}

.project-browser {
  display: grid;
  grid-template-columns: minmax(18rem, 0.34fr) minmax(0, 1fr);
  min-height: 760px;
}

.project-tree {
  overflow: hidden;
  border-right: 2px solid var(--line);
  background: #0a1b13;
}

.tree-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--cream-dim);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.tree-group {
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line-soft);
}

.tree-group h3 {
  margin: 0;
  padding: 0.45rem 0.75rem;
  color: var(--gold);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
}

.tree-group h3 span {
  color: var(--emerald);
}

.project-file {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 2.25rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.75rem 0.4rem 1.55rem;
  border: 0;
  background: transparent;
  color: var(--cream-dim);
  cursor: pointer;
  font-size: 0.7rem;
  text-align: left;
}

.project-file::before {
  position: absolute;
  left: 0.5rem;
  color: transparent;
  content: "▶";
  font-size: 0.65rem;
}

.project-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-file b {
  color: var(--line);
  font-size: 0.58rem;
  font-weight: 400;
}

.project-file em {
  color: var(--line);
  font-size: 0.55rem;
  font-style: normal;
}

.project-file:hover {
  background: rgb(79 221 134 / 8%);
  color: var(--cream);
}

.project-file.is-active {
  background: var(--emerald);
  color: var(--void);
  font-weight: 700;
}

.project-file.is-active::before {
  color: var(--void);
}

.project-file.is-active b,
.project-file.is-active em {
  color: var(--panel);
}

.project-inspector {
  min-width: 0;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  background:
    linear-gradient(rgb(79 221 134 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(79 221 134 / 3%) 1px, transparent 1px),
    var(--deep);
  background-size: 32px 32px;
}

.inspector-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--cream-dim);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.inspector-meta p {
  margin: 0;
}

#project-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--emerald);
}

.project-visual {
  position: relative;
  display: grid;
  min-height: 190px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  place-items: center;
  border: 2px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49%, rgb(79 221 134 / 12%) 49% 51%, transparent 51%),
    linear-gradient(transparent 49%, rgb(79 221 134 / 12%) 49% 51%, transparent 51%),
    radial-gradient(circle, var(--panel-2) 0 14%, transparent 14% 100%),
    var(--screen);
  background-size: 48px 48px, 48px 48px, 240px 240px, auto;
  box-shadow: inset 0 0 0 5px var(--void);
}

.project-visual::before,
.project-visual::after {
  position: absolute;
  width: 38%;
  height: 4px;
  background: var(--emerald);
  content: "";
}

.project-visual::before {
  top: 1.1rem;
  left: 1.1rem;
}

.project-visual::after {
  right: 1.1rem;
  bottom: 1.1rem;
}

.project-visual[data-category="sme"]::before,
.project-visual[data-category="sme"]::after {
  background: var(--gold);
}

.project-visual[data-category="lab"]::before,
.project-visual[data-category="lab"]::after {
  background: var(--blue);
}

.project-glyph {
  position: relative;
  z-index: 2;
  color: var(--mint);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.12em;
  line-height: 1;
  text-shadow: 5px 5px 0 var(--panel-2);
}

.project-visual[data-category="sme"] .project-glyph {
  color: var(--gold);
  text-shadow: 5px 5px 0 #5d4d18;
}

.project-visual[data-category="lab"] .project-glyph {
  color: var(--blue);
  text-shadow: 5px 5px 0 #164c50;
}

.visual-address {
  position: absolute;
  right: 1.2rem;
  top: 1.7rem;
  color: var(--cream-dim);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.pixel-node {
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--emerald);
  background: var(--screen);
}

.pixel-node--one {
  top: 26%;
  left: 18%;
}

.pixel-node--two {
  right: 20%;
  bottom: 30%;
}

.pixel-node--three {
  right: 12%;
  top: 45%;
}

.project-kind {
  margin-bottom: 0.75rem;
}

.project-inspector h3 {
  max-width: 54rem;
  margin-bottom: 1.4rem;
  color: var(--cream);
  font-size: clamp(2rem, 5vw, 4.5rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.project-summary {
  max-width: 56rem;
  margin-bottom: 1.75rem;
  color: var(--cream-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.98rem, 1.6vw, 1.14rem);
  line-height: 1.75;
}

.project-highlights {
  display: grid;
  gap: 0.7rem;
  max-width: 54rem;
  margin: 0 0 1.8rem;
  padding: 1rem 1rem 1rem 2.25rem;
  border-left: 3px solid var(--emerald);
  background: rgb(5 11 8 / 55%);
  color: var(--cream-dim);
  font-size: 0.74rem;
}

.project-highlights li::marker {
  color: var(--gold);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.project-tags li {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--screen);
  color: var(--mint);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.terminal-console {
  border-top: 2px solid var(--line);
  background: var(--void);
}

.terminal-output {
  min-height: 2.7rem;
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--cream-dim);
  font-size: 0.68rem;
}

.terminal-output b {
  color: var(--gold);
}

.terminal-output.is-error {
  color: var(--coral);
}

.terminal-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 3.4rem;
}

.terminal-form label {
  padding-left: 0.9rem;
  color: var(--emerald);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.terminal-form input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0.65rem;
  border: 0;
  background: transparent;
  color: var(--cream);
  caret-color: var(--gold);
  outline: 0;
}

.terminal-form input::placeholder {
  color: var(--line);
}

.terminal-form button {
  align-self: stretch;
  padding-inline: 1.25rem;
  border: 0;
  border-left: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--mint);
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
}

.terminal-form button:hover {
  background: var(--emerald);
  color: var(--void);
}

.noscript-note,
.noscript-links {
  color: var(--cream-dim);
  font-size: 0.75rem;
}

.profile {
  padding-block: clamp(4rem, 9vw, 8rem) clamp(6rem, 11vw, 10rem);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.5fr) minmax(20rem, 1.2fr) minmax(15rem, 0.65fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2rem, 6vw, 5rem);
}

.profile-id {
  align-self: start;
}

.profile-avatar {
  position: relative;
  display: grid;
  width: min(100%, 15rem);
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid var(--emerald);
  background:
    linear-gradient(45deg, var(--panel) 25%, transparent 25% 75%, var(--panel) 75%) 0 0 / 24px 24px,
    linear-gradient(45deg, var(--panel) 25%, transparent 25% 75%, var(--panel) 75%) 12px 12px / 24px 24px,
    var(--screen);
  box-shadow:
    inset 0 0 0 6px var(--void),
    8px 8px 0 var(--shadow);
}

.profile-avatar span {
  color: var(--gold);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.12em;
  text-shadow: 4px 4px 0 #574a19;
}

.profile-avatar i {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  color: var(--emerald);
  font-size: 0.8rem;
  font-style: normal;
}

.profile-id > p {
  margin-top: 1.1rem;
  color: var(--cream-dim);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.profile-copy h2 {
  margin-bottom: 1.5rem;
  color: var(--mint);
  font-size: clamp(2rem, 5vw, 4.2rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.profile-copy > p:not(.command-line) {
  color: var(--cream-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.75;
}

.profile-copy .pixel-button {
  margin-top: 1rem;
}

.profile-data {
  align-self: start;
  margin: 0;
  border-top: 2px solid var(--line);
}

.profile-data div {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  min-height: 6rem;
  gap: 1rem;
  border-top: 2px solid var(--line);
  color: var(--cream-dim);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer a {
  justify-self: end;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    order: 1;
  }

  .hero-art {
    order: 2;
    max-width: 34rem;
    margin-inline: auto;
  }

  .project-browser {
    grid-template-columns: minmax(15rem, 0.42fr) minmax(0, 1fr);
  }

  .profile-grid {
    grid-template-columns: minmax(11rem, 0.45fr) 1fr;
  }

  .profile-data {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }

  .profile-data div {
    padding-inline: 0.75rem;
    border-right: 1px solid var(--line-soft);
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 4rem;
  }

  .system-bar__inner {
    grid-template-columns: 1fr auto;
    min-height: 4rem;
  }

  .system-status {
    display: none;
  }

  nav a:nth-child(2) {
    display: none;
  }

  .hero-grid {
    padding: 2rem clamp(1.1rem, 5vw, 2rem);
  }

  h1 {
    font-size: clamp(4.2rem, 20vw, 7rem);
  }

  .hero-statusbar {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-statusbar p:nth-child(2) {
    border-right: 0;
  }

  .hero-statusbar p:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .section-header {
    display: block;
  }

  .section-note {
    margin-top: 1.25rem;
    text-align: left;
  }

  .project-browser {
    grid-template-columns: 1fr;
  }

  .project-tree {
    max-height: 28rem;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .project-inspector {
    padding: 1.5rem;
  }

  .terminal-form {
    grid-template-columns: 1fr auto;
  }

  .terminal-form label {
    grid-column: 1 / -1;
    padding-top: 0.7rem;
  }

  .terminal-form input {
    padding-left: 0.9rem;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-avatar {
    max-width: 13rem;
  }

  .profile-data {
    grid-column: auto;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 0.85rem;
  }

  .brand span:last-child {
    display: none;
  }

  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.62rem;
  }

  .window {
    box-shadow:
      0 0 0 2px var(--screen),
      0 0 0 4px var(--line-soft),
      6px 6px 0 var(--shadow);
  }

  .window-bar {
    font-size: 0.58rem;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .command-line {
    display: block;
    font-size: 0.66rem;
  }

  .command-line span {
    display: block;
  }

  .hero-kicker {
    font-size: 0.61rem;
  }

  h1 {
    font-size: clamp(3.7rem, 21vw, 6rem);
  }

  .hero-intro {
    font-size: 0.94rem;
  }

  .hero-actions,
  .project-actions {
    display: grid;
  }

  .pixel-button {
    width: 100%;
  }

  .capability-readout {
    grid-template-columns: 1fr;
  }

  .capability-readout div,
  .capability-readout div + div {
    padding: 0.75rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .hero-statusbar {
    grid-template-columns: 1fr;
  }

  .hero-statusbar p {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .pixel-frame__coords {
    display: none;
  }

  .section-header h2 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .project-inspector h3 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .project-visual {
    min-height: 150px;
  }

  .inspector-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-grid {
    padding: 1.5rem;
  }

  .profile-copy h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .profile-data {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-block: 1.5rem;
  }

  .site-footer p:nth-child(2) {
    text-align: left;
  }

  .site-footer a {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
