:root {
  --ink: #101310;
  --panel: #161b17;
  --panel-2: #1d241f;
  --paper: #e8e5d5;
  --muted: #989d8f;
  --line: #51594e;
  --acid: #c7ff45;
  --cyan: #67e8d4;
  --red: #ff5f56;
  --font-ui: var(--font-mono, "Courier New", monospace);
  --font-display: var(--font-sans, Arial, sans-serif);
}

html {
  background: var(--ink);
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 18%, rgba(103, 232, 212, 0.07), transparent 24rem),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  background: var(--acid);
  color: var(--ink);
  font: 800 0.75rem/1 var(--font-ui);
  text-decoration: none;
}

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

::selection {
  background: var(--acid);
  color: var(--ink);
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  border: 8px solid var(--paper);
}

.screen-noise {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(232, 229, 213, 0.055) 4px
  );
  mix-blend-mode: screen;
}

.system-bar {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  border-bottom: 2px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.system-mark,
.system-actions a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.system-mark {
  gap: 0.6rem;
  padding: 0 1rem;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.system-mark__block {
  width: 13px;
  height: 13px;
  background: var(--ink);
  box-shadow: 5px -5px 0 var(--acid);
}

.system-bar__readout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4rem);
  border-inline: 2px solid var(--ink);
}

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

.section-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.system-actions {
  display: flex;
}

.system-actions a {
  padding: 0 1rem;
  border-left: 1px solid var(--ink);
}

.system-actions a:hover {
  background: var(--acid);
}

.hero {
  width: min(1480px, 100%);
  min-height: calc(100vh - 112px);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 6rem) clamp(1.2rem, 5vw, 5.5rem) clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  align-items: center;
}

.hero-copy {
  position: relative;
}

.path-label,
.kicker {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.path-label {
  margin-bottom: clamp(2rem, 5vw, 5.5rem);
  color: var(--cyan);
  text-transform: lowercase;
}

.path-label::after {
  content: "_";
  color: var(--acid);
  animation: cursor-blink 1.1s steps(1) infinite;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.kicker span {
  color: var(--acid);
  font-size: 0.55rem;
}

.hero-title {
  margin: 0.75rem 0 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 8.5vw, 8.8rem);
  font-weight: 850;
  line-height: 0.78;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

.hero-title span:last-child {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
  transform: translateX(0.04em);
}

.role-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.role-stack span {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

.identity-data {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.identity-data div {
  min-width: 0;
  padding: 0.8rem 0.6rem;
  border-right: 1px solid var(--line);
}

.identity-data div:first-child {
  padding-left: 0;
}

.identity-data div:last-child {
  border-right: 0;
}

.identity-data dt {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.identity-data dd {
  margin: 0;
  overflow: hidden;
  color: var(--paper);
  font-size: clamp(0.66rem, 1vw, 0.78rem);
  text-overflow: ellipsis;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.45rem;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.pixel-button {
  position: relative;
  display: inline-flex;
  justify-content: space-between;
  gap: 2rem;
  min-width: 200px;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font: 700 0.68rem/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--line);
}

.pixel-button::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 5px;
  height: 5px;
  background: var(--ink);
}

.pixel-button:hover,
.pixel-button--primary {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
  box-shadow: 4px 4px 0 #637d23;
}

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

.node-window {
  position: relative;
  width: min(100%, 520px);
  justify-self: end;
  border: 2px solid var(--paper);
  background: var(--panel);
  box-shadow: 15px 15px 0 rgba(0, 0, 0, 0.5), 17px 17px 0 var(--line);
}

.node-window::before,
.node-window::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--acid);
}

.node-window::before {
  top: -18px;
  right: 36px;
  width: 74px;
  height: 8px;
}

.node-window::after {
  right: -12px;
  bottom: 50px;
  width: 6px;
  height: 86px;
}

.window-titlebar,
.window-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 0.8rem;
  font-size: 0.64rem;
  letter-spacing: 0.09em;
}

.window-titlebar {
  border-bottom: 2px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.window-controls {
  display: flex;
  gap: 5px;
}

.window-controls i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  background: var(--acid);
}

.window-controls i:nth-child(2) { background: var(--cyan); }
.window-controls i:nth-child(3) { background: var(--red); }

.node-screen {
  position: relative;
  min-height: 380px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-content: center;
  gap: 1.4rem;
  overflow: hidden;
  padding: 2.5rem 2rem 3.7rem;
  background: #0e1511;
}

.node-screen__grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(var(--cyan) 1px, transparent 1px),
    linear-gradient(90deg, var(--cyan) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
}

.server-graphic {
  position: relative;
  z-index: 1;
  align-self: center;
  padding-top: 18px;
  filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.6));
}

.server-antenna {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 20px;
  background: var(--paper);
}

.server-antenna::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -3px;
  width: 10px;
  height: 6px;
  background: var(--acid);
}

.server-unit {
  position: relative;
  height: 42px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 3px solid var(--paper);
  background: #273029;
}

.server-unit i {
  width: 7px;
  height: 7px;
  background: var(--acid);
  animation: server-light 1.8s steps(1) infinite;
}

.server-unit i:nth-child(2) { animation-delay: 0.4s; }
.server-unit i:nth-child(3) { animation-delay: 0.8s; background: var(--cyan); }

.server-unit span {
  height: 5px;
  flex: 1;
  margin-left: 4px;
  background: repeating-linear-gradient(90deg, var(--muted) 0 8px, transparent 8px 12px);
}

.server-base {
  width: 60%;
  height: 9px;
  margin: 8px auto 0;
  background: var(--paper);
  box-shadow: 14px 0 0 var(--paper), -14px 0 0 var(--paper);
}

.boot-log {
  position: relative;
  z-index: 1;
  align-self: center;
  font-size: clamp(0.57rem, 1vw, 0.68rem);
  line-height: 1.7;
}

.boot-log p {
  margin: 0;
  white-space: nowrap;
}

.boot-log span {
  color: var(--acid);
}

.node-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(16, 19, 16, 0.9);
  color: var(--muted);
  font-size: 0.55rem;
}

.window-footer {
  color: var(--muted);
}

.signal-bars {
  height: 15px;
  display: flex;
  align-items: end;
  gap: 2px;
}

.signal-bars i {
  width: 3px;
  background: var(--acid);
}

.signal-bars i:nth-child(1) { height: 4px; }
.signal-bars i:nth-child(2) { height: 7px; }
.signal-bars i:nth-child(3) { height: 10px; }
.signal-bars i:nth-child(4) { height: 13px; }

.status-ticker {
  min-height: 50px;
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  align-items: center;
  border-top: 2px solid var(--paper);
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.status-ticker > span {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1.2rem;
  border-right: 1px solid var(--line);
}

.status-ticker__lead {
  color: var(--paper);
}

.status-ticker__lead i {
  width: 7px;
  height: 7px;
  margin-right: 0.6rem;
  background: var(--acid);
  box-shadow: 0 0 7px var(--acid);
}

.status-ticker__end {
  border-right: 0 !important;
}

.content-section {
  position: relative;
  scroll-margin-top: 1rem;
  border-top: 8px solid var(--paper);
}

.content-section.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.content-section.reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.6fr) 2fr auto;
  align-items: end;
  min-height: 130px;
  padding: 2.1rem clamp(1.2rem, 5vw, 5.5rem) 1.4rem;
  border-bottom: 2px solid var(--paper);
}

.section-heading p,
.section-heading span {
  margin: 0;
  color: var(--muted);
  font-size: 0.59rem;
  letter-spacing: 0.1em;
}

.section-heading h2 {
  margin: 0;
  font: 800 clamp(2rem, 5vw, 4.8rem)/0.9 var(--font-display);
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.section-heading > span {
  justify-self: end;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 400px;
}

.profile-statement {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 6rem);
  border-right: 2px solid var(--paper);
}

.profile-statement p {
  max-width: 720px;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font: 400 clamp(0.9rem, 1.4vw, 1.1rem)/1.7 var(--font-ui);
}

.profile-statement .profile-statement__lead {
  margin: 0;
  color: var(--paper);
  font: 650 clamp(1.8rem, 4vw, 4rem)/1.08 var(--font-display);
  letter-spacing: -0.04em;
}

.profile-facts {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  margin: 0;
}

.profile-facts div {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid var(--line);
}

.profile-facts div:last-child {
  border-bottom: 0;
}

.profile-facts dt {
  color: var(--acid);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.profile-facts dd {
  margin: 0;
  font: 550 clamp(0.8rem, 1.2vw, 1rem)/1.45 var(--font-ui);
}

.stack-section {
  background: var(--paper);
  color: var(--ink);
}

.stack-section .section-heading {
  border-color: var(--ink);
}

.stack-section .section-heading p,
.stack-section .section-heading span {
  color: #62675e;
}

.module-browser {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) 1fr;
  border-bottom: 2px solid var(--ink);
}

.module-sidebar {
  padding: 2rem clamp(1.2rem, 3vw, 3rem);
  border-right: 2px solid var(--ink);
  background: #d5d2c3;
  font-size: 0.67rem;
  line-height: 2.2;
}

.module-sidebar p {
  margin: 0 0 1.2rem;
  font-weight: 800;
}

.module-sidebar span {
  display: block;
  white-space: nowrap;
}

.module-list {
  display: grid;
}

.module-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 98px;
  padding: 1rem clamp(1.2rem, 3vw, 3rem);
  border-bottom: 1px solid #87897e;
}

.module-row:last-child {
  border-bottom: 0;
}

.module-row--active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset 8px 0 0 var(--acid);
}

.module-index {
  color: #777b70;
  font-size: 0.65rem;
}

.module-row p {
  margin: 0 0 0.3rem;
  color: #777b70;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.module-row h3 {
  margin: 0;
  font: 750 clamp(1.1rem, 2vw, 1.7rem)/1.1 var(--font-display);
  letter-spacing: -0.03em;
}

.module-row h3 small {
  color: #72766c;
  font: 500 0.65em/1 var(--font-ui);
  letter-spacing: 0;
}

.module-state {
  padding: 0.3rem 0.45rem;
  border: 1px solid currentColor;
  color: #516029;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.module-row--active .module-state {
  color: var(--acid);
}

.module-state--learning {
  color: #005f5e;
}

.module-note {
  margin: 0;
  padding: 1.1rem clamp(1.2rem, 5vw, 5.5rem);
  color: #65695f;
  font-size: 0.6rem;
  letter-spacing: 0.035em;
}

.history-section {
  background: var(--paper);
  color: var(--ink);
}

.section-heading--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.history-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
}

.history-main {
  padding: clamp(2rem, 6vw, 6rem);
  border-right: 2px solid var(--ink);
}

.history-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 2rem;
  align-items: center;
  max-width: 620px;
  font-size: 0.61rem;
}

.history-meta strong {
  justify-self: start;
  padding: 0.28rem 0.45rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
}

.history-label,
.history-side p {
  margin: 4rem 0 0.7rem;
  color: #6d7167;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.history-main h3 {
  max-width: 820px;
  margin: 0;
  font: 750 clamp(1.8rem, 4vw, 4.2rem)/1 var(--font-display);
  letter-spacing: -0.055em;
}

.history-main ul {
  max-width: 730px;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #98998e;
}

.history-main li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.5rem;
  border-bottom: 1px solid #98998e;
  font: 500 clamp(0.75rem, 1.1vw, 0.9rem)/1.45 var(--font-ui);
}

.history-main li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: #6b7f28;
  font-size: 0.45rem;
}

.history-side {
  display: grid;
  grid-template-rows: 1fr 0.65fr;
}

.history-side article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  padding: clamp(2rem, 4vw, 4rem);
  border-bottom: 2px solid var(--ink);
}

.history-side article:last-child {
  border-bottom: 0;
  background: var(--acid);
}

.history-side article > span {
  align-self: start;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--ink);
  font-size: 0.6rem;
}

.history-side p {
  margin-top: 2rem;
}

.history-side h3 {
  margin: 0 0 1rem;
  font: 750 clamp(1.2rem, 2.4vw, 2rem)/1.08 var(--font-display);
  letter-spacing: -0.04em;
}

.history-side small {
  color: #5d6158;
  font-size: 0.68rem;
  line-height: 1.6;
}

.history-side article:last-child p,
.history-side article:last-child small {
  color: #4a5b1d;
}

.terminal-section {
  background: #09100c;
}

.terminal-window {
  margin: clamp(2rem, 5vw, 5rem) auto clamp(3rem, 7vw, 7rem);
  width: min(1080px, calc(100% - 2.4rem));
  border: 2px solid var(--paper);
  box-shadow: 12px 12px 0 var(--line);
}

.terminal-topbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.9rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 800;
}

.terminal-topbar button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.terminal-topbar button:hover {
  color: #637d23;
}

.terminal-output {
  height: 250px;
  overflow-y: auto;
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(103, 232, 212, 0.03), rgba(103, 232, 212, 0.03)),
    repeating-linear-gradient(to bottom, transparent 0 24px, rgba(103, 232, 212, 0.045) 25px);
  scrollbar-color: var(--acid) var(--ink);
}

.terminal-line {
  margin: 0 0 0.5rem;
  color: #c4c7b8;
  font-size: clamp(0.7rem, 1.2vw, 0.88rem);
  line-height: 1.4;
}

.terminal-line span {
  color: var(--acid);
}

.terminal-line--command {
  color: var(--paper);
}

.terminal-line--error,
.terminal-line--error span {
  color: #ff806f;
}

.terminal-form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.5rem;
}

.terminal-form label {
  color: var(--acid);
  font-size: clamp(0.67rem, 1.2vw, 0.84rem);
  white-space: nowrap;
}

.terminal-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font: 500 clamp(0.7rem, 1.2vw, 0.85rem)/1.4 var(--font-ui);
  caret-color: var(--acid);
}

.terminal-form input::placeholder {
  color: #555d53;
}

.command-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.5rem 1.2rem;
}

.command-chips button {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 500 0.58rem/1 var(--font-ui);
  cursor: pointer;
}

.command-chips button:hover,
.command-chips button:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
}

.contact-section {
  background: var(--acid);
  color: var(--ink);
}

.section-heading--contact {
  border-color: var(--ink);
}

.section-heading--contact p,
.section-heading--contact span {
  color: #485818;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 480px;
}

.contact-callout {
  margin: 0;
  display: flex;
  align-items: end;
  padding: clamp(2rem, 6vw, 6rem);
  border-right: 2px solid var(--ink);
  font: 750 clamp(2rem, 4.8vw, 5rem)/0.98 var(--font-display);
  letter-spacing: -0.055em;
}

.contact-links {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.4rem, 4vw, 4rem);
  border-bottom: 1px solid #526320;
  text-decoration: none;
}

.contact-links a:last-child {
  border-bottom: 0;
}

.contact-links a:hover {
  background: var(--ink);
  color: var(--paper);
}

.contact-links span {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.contact-links strong {
  overflow-wrap: anywhere;
  font: 700 clamp(0.95rem, 2vw, 1.6rem)/1.1 var(--font-display);
}

.site-footer {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0 clamp(1rem, 3vw, 3rem);
  border-top: 8px solid var(--paper);
  background: var(--ink);
  color: var(--muted);
  font-size: 0.6rem;
}

.site-footer .system-mark {
  padding: 0;
  color: var(--paper);
}

.site-footer p {
  justify-self: center;
}

.site-footer > a:last-child {
  text-decoration: none;
}

.site-footer > a:last-child:hover {
  color: var(--acid);
}

@keyframes cursor-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes server-light {
  0%, 70% { opacity: 1; }
  71%, 88% { opacity: 0.25; }
  89%, 100% { opacity: 1; }
}

@media (max-width: 980px) {
  .system-bar__readout span:last-child,
  .status-ticker > span:nth-child(3) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .path-label {
    margin-bottom: 3rem;
  }

  .hero-title {
    font-size: clamp(4rem, 14vw, 8rem);
  }

  .node-window {
    justify-self: start;
  }

  .status-ticker {
    grid-template-columns: auto 1fr auto;
  }

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

  .profile-statement,
  .history-main,
  .contact-callout {
    border-right: 0;
    border-bottom: 2px solid currentColor;
  }

  .history-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .history-side article:first-child {
    border-right: 2px solid var(--ink);
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .site-shell {
    border-width: 4px;
  }

  .system-bar {
    grid-template-columns: 1fr auto;
  }

  .system-bar__readout,
  .system-actions a:first-child {
    display: none;
  }

  .system-actions a {
    padding-inline: 0.75rem;
  }

  .hero {
    min-height: auto;
    gap: 3.5rem;
    padding: 2.5rem 1rem 4rem;
  }

  .path-label {
    margin-bottom: 2.5rem;
  }

  .hero-title {
    font-size: clamp(3.2rem, 17vw, 5.4rem);
    line-height: 0.84;
  }

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

  .identity-data div:nth-child(2) {
    border-right: 0;
  }

  .identity-data div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .identity-data div:nth-child(3) {
    padding-left: 0;
  }

  .pixel-button {
    width: 100%;
  }

  .node-window {
    width: calc(100% - 10px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5), 10px 10px 0 var(--line);
  }

  .node-screen {
    min-height: 330px;
    grid-template-columns: 1fr;
    padding: 2rem 1.2rem 3.5rem;
  }

  .server-graphic {
    width: 150px;
    justify-self: center;
  }

  .boot-log {
    display: none;
  }

  .status-ticker {
    grid-template-columns: 1fr auto;
  }

  .status-ticker > span:nth-child(2) {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr auto;
    min-height: 110px;
    padding: 1.4rem 1rem 1rem;
  }

  .section-heading h2 {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0.8rem;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .profile-statement,
  .history-main,
  .contact-callout {
    padding: 3rem 1.2rem;
  }

  .profile-facts div {
    grid-template-columns: 80px 1fr;
    padding: 1.2rem;
  }

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

  .module-sidebar {
    display: none;
  }

  .module-row {
    grid-template-columns: 34px 1fr;
    min-height: 90px;
    padding: 0.9rem 1rem;
  }

  .module-state {
    display: none;
  }

  .module-row h3 small {
    display: block;
    margin-top: 0.3rem;
  }

  .history-meta {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .history-meta strong {
    margin-bottom: 0.8rem;
  }

  .history-label {
    margin-top: 2.5rem;
  }

  .history-side {
    grid-template-columns: 1fr;
  }

  .history-side article:first-child {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .terminal-window {
    width: calc(100% - 1.4rem);
    margin-block: 1.5rem 3.5rem;
    box-shadow: 6px 6px 0 var(--line);
  }

  .terminal-output,
  .terminal-form {
    padding-inline: 0.8rem;
  }

  .terminal-form {
    align-items: flex-start;
    flex-direction: column;
  }

  .terminal-form input {
    width: 100%;
  }

  .command-chips {
    padding-inline: 0.8rem;
  }

  .contact-callout {
    min-height: 330px;
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .contact-links a {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.4rem 1.2rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
