@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=IBM+Plex+Mono:wght@400;500;600&family=VT323&display=swap');

:root {
  --black: #070a0b;
  --black-soft: #101516;
  --teal: #008080;
  --teal-dark: #005858;
  --win: #c0c0c0;
  --win-light: #ffffff;
  --win-shadow: #555b5b;
  --navy: #000080;
  --phosphor: #91ff75;
  --amber: #ffcc66;
  --red: #ff5f56;
  --ink: #111718;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --display: 'VT323', monospace;
  --pixel: 'DM Mono', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--win);
  background: var(--teal);
  font-family: var(--mono);
  font-size: 13px;
}

body::selection {
  color: var(--black);
  background: var(--phosphor);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--phosphor);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.boot-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--phosphor);
  background: var(--black);
  transition: opacity 500ms ease, visibility 500ms ease;
}

.boot-screen.is-done {
  visibility: hidden;
  opacity: 0;
}

.boot-screen__inner {
  width: min(100% - 48px, 650px);
  padding: 30px;
}

.boot-screen__brand {
  margin-bottom: 3px;
  color: var(--win-light);
  font-family: var(--display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.04em;
  line-height: 0.8;
}

.boot-screen__brand span {
  color: var(--phosphor);
}

.boot-screen__version,
.boot-footer,
.boot-terminal,
.boot-skip {
  color: #727e7c;
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boot-terminal {
  min-height: 150px;
  margin: 62px 0 22px;
  color: #8f9d9a;
  line-height: 2;
}

.boot-terminal p {
  margin: 0;
}

.boot-terminal p[data-boot-line] {
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.boot-terminal p[data-boot-line].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.boot-prompt,
.boot-terminal b {
  color: var(--phosphor);
}

.boot-progress {
  height: 5px;
  overflow: hidden;
  background: #1c2827;
}

.boot-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--phosphor);
  box-shadow: 0 0 17px var(--phosphor);
  transition: width 400ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.boot-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 13px;
}

.boot-skip {
  padding: 0;
  color: #b0bab7;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.boot-skip:hover {
  color: var(--phosphor);
}

.system-shell {
  position: relative;
  display: none;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  color: var(--win);
  background: var(--teal);
}

.system-shell.is-ready {
  display: grid;
  grid-template-rows: 38px 1fr 33px;
}

.system-shell.is-contrast {
  --teal: #001f1f;
  --teal-dark: #001414;
  --phosphor: #f1ff54;
}

.scanlines {
  position: absolute;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  opacity: 0.065;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.5) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: multiply;
}

.system-topbar,
.taskbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: var(--black);
  color: var(--win);
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-topbar {
  border-bottom: 1px solid rgba(145, 255, 117, 0.16);
}

.system-brand,
.system-topbar__meta,
.taskbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.system-led,
.network-status i,
.blinking-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--phosphor);
  box-shadow: 0 0 10px var(--phosphor);
}

.system-brand__exe {
  color: var(--phosphor);
}

.system-brand__build,
.status-pill {
  color: #687472;
  font-size: 8px;
}

.status-pill {
  padding: 4px 6px;
  border: 1px solid #263130;
}

.contrast-toggle {
  padding: 0;
  color: var(--win);
  background: none;
  font-size: 9px;
}

.contrast-toggle:hover,
.contrast-toggle[aria-pressed='true'] {
  color: var(--phosphor);
}

.desktop {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 81% 22%, rgba(145, 255, 117, 0.11), transparent 14rem),
    radial-gradient(circle at 12% 86%, rgba(0, 0, 128, 0.28), transparent 19rem),
    var(--teal);
}

.desktop__grid {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 75%, transparent);
}

.desktop__watermark {
  position: absolute;
  right: 5vw;
  bottom: 7vh;
  color: rgba(0, 0, 0, 0.13);
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 11rem);
  letter-spacing: 0.03em;
  line-height: 0.68;
  pointer-events: none;
  text-align: right;
  transform: rotate(-8deg);
}

.desktop__intro {
  position: absolute;
  top: clamp(35px, 8vh, 95px);
  left: clamp(28px, 7vw, 110px);
  z-index: 1;
}

.terminal-label,
.data-label,
.system-card__label,
.archive-count,
.taskbar,
.project-node small,
.project-detail__meta,
.contact-status {
  color: #6d8581;
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.terminal-label {
  margin: 0 0 16px;
  color: var(--phosphor);
}

.desktop__intro h1 {
  max-width: 660px;
  margin: 0 0 17px;
  color: var(--win-light);
  font-family: var(--display);
  font-size: clamp(3.8rem, 7vw, 7.2rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.78;
}

.desktop__intro h1 span {
  color: var(--phosphor);
}

.desktop__hint {
  margin: 0;
  color: rgba(192, 192, 192, 0.68);
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.7;
}

.desktop-icons {
  position: absolute;
  top: clamp(45px, 10vh, 115px);
  right: clamp(22px, 6vw, 88px);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 82px);
  gap: 25px 22px;
}

.desktop-icon {
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 5px 3px;
  color: var(--win-light);
  background: transparent;
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

.desktop-icon:hover .desktop-icon__glyph,
.desktop-icon:focus-visible .desktop-icon__glyph {
  color: var(--phosphor);
  transform: translateY(-3px) rotate(-3deg);
}

.desktop-icon__glyph {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid var(--win-light);
  color: var(--black);
  background: var(--win);
  box-shadow: 3px 3px 0 var(--black);
  font-family: var(--display);
  font-size: 27px;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease;
}

.desktop-icon__glyph--user {
  border-radius: 50%;
  color: var(--navy);
  background: var(--phosphor);
}

.desktop-icon__glyph--folder {
  color: var(--navy);
  background: var(--amber);
}

.desktop-icon__glyph--chart {
  color: var(--win-light);
  background: var(--navy);
}

.desktop-icon__glyph--terminal {
  color: var(--phosphor);
  background: var(--black);
  font-family: var(--pixel);
  font-size: 15px;
}

.system-card {
  position: absolute;
  z-index: 2;
  right: 6vw;
  bottom: 6vh;
  width: 210px;
  padding: 14px;
  border: 1px solid rgba(192, 192, 192, 0.35);
  background: rgba(0, 0, 0, 0.28);
  color: var(--win);
}

.system-card__label {
  margin-bottom: 18px;
  color: var(--phosphor);
}

.system-card__row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 10px 0 5px;
  color: #aab6b2;
  font-family: var(--pixel);
  font-size: 9px;
  text-transform: uppercase;
}

.system-card__row strong {
  color: var(--win-light);
  font-weight: 400;
}

.meter,
.skill-bar {
  height: 5px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.48);
}

.meter span,
.skill-bar span {
  display: block;
  height: 100%;
  background: var(--phosphor);
}

.meter--amber span {
  background: var(--amber);
}

.system-card__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  color: #84918e;
  font-family: var(--pixel);
  font-size: 9px;
}

.blinking-dot {
  animation: blink 1.3s steps(2, start) infinite;
}

.window-layer {
  position: absolute;
  z-index: 50;
  inset: 0;
  pointer-events: none;
}

.app-window {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(620px, calc(100% - 40px));
  min-height: 340px;
  border: 2px solid var(--black);
  color: var(--ink);
  background: var(--win);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.38);
  pointer-events: auto;
}

.app-window.is-focused {
  z-index: 35;
}

.app-window--welcome {
  top: 47%;
  left: 50%;
  width: min(580px, calc(100% - 40px));
  transform: translate(-50%, -50%);
}

.app-window--about {
  top: 12%;
  left: 18%;
}

.app-window--projects {
  top: 10%;
  left: 28%;
  width: min(735px, calc(100% - 40px));
}

.app-window--skills {
  top: 18%;
  right: 10%;
  width: min(490px, calc(100% - 40px));
}

.app-window--contact {
  top: 23%;
  left: 31%;
  width: min(520px, calc(100% - 40px));
}

.app-window--terminal {
  right: 7%;
  bottom: 9%;
  width: min(580px, calc(100% - 40px));
  min-height: 315px;
  color: var(--phosphor);
  background: var(--black);
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 25px;
  padding: 3px 4px 3px 8px;
  color: var(--win-light);
  background: var(--navy);
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.05em;
  cursor: grab;
  user-select: none;
}

.window-titlebar:active {
  cursor: grabbing;
}

.window-titlebar__icon {
  margin-right: 4px;
  color: var(--phosphor);
  font-style: normal;
}

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

.window-controls button {
  display: grid;
  width: 18px;
  height: 17px;
  place-items: center;
  border: 1px solid var(--black);
  color: var(--black);
  background: var(--win);
  font-family: var(--pixel);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.window-controls button:active {
  border-color: var(--win-shadow);
  box-shadow: inset 1px 1px 0 var(--win-shadow);
}

.window-body {
  flex: 1;
  padding: 28px;
}

.welcome-body {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: center;
  padding-right: 105px;
}

.welcome-body__stamp {
  position: absolute;
  top: 26px;
  right: 25px;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-family: var(--pixel);
  font-size: 12px;
  line-height: 0.95;
  text-align: center;
  transform: rotate(7deg);
}

.welcome-body__stamp span {
  color: var(--teal-dark);
  font-size: 8px;
}

.welcome-body h2,
.about-body h2,
.projects-body h2,
.skills-body h2,
.contact-body h2 {
  margin: 0 0 19px;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.78;
}

.welcome-body h2 em,
.about-body h2 em,
.projects-body h2 em,
.skills-body h2 em,
.contact-body h2 em {
  color: var(--teal-dark);
  font-style: normal;
}

.welcome-body__copy,
.about-body__lead,
.contact-body > p:not(.terminal-label) {
  max-width: 485px;
  margin: 0 0 26px;
  color: #475455;
  font-family: var(--pixel);
  font-size: 12px;
  line-height: 1.7;
}

.welcome-body__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pixel-button {
  padding: 11px 13px;
  border: 2px solid var(--black);
  color: var(--win-light);
  background: var(--navy);
  box-shadow: 3px 3px 0 var(--win-shadow);
  font-family: var(--pixel);
  font-size: 10px;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.pixel-button span {
  color: var(--phosphor);
}

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

.text-button {
  padding: 0;
  color: var(--navy);
  background: none;
  font-family: var(--pixel);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button:hover {
  color: var(--teal-dark);
}

.welcome-body__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 38px;
  padding-top: 11px;
  border-top: 1px dotted #6b7777;
  color: #6d7979;
  font-family: var(--pixel);
  font-size: 8px;
  text-transform: uppercase;
}

.welcome-body__footer b {
  color: var(--navy);
  font-weight: 500;
}

.about-body__header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.pixel-avatar {
  position: relative;
  display: grid;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--black);
  background: var(--teal);
}

.pixel-avatar::before,
.pixel-avatar::after,
.pixel-avatar span {
  position: absolute;
  display: block;
  content: '';
}

.pixel-avatar::before {
  top: 17px;
  width: 34px;
  height: 34px;
  background: var(--amber);
  box-shadow: -8px 7px 0 var(--amber), 8px 7px 0 var(--amber), 0 19px 0 var(--navy);
}

.pixel-avatar::after {
  top: 30px;
  left: 23px;
  width: 6px;
  height: 6px;
  background: var(--black);
  box-shadow: 16px 0 0 var(--black);
}

.pixel-avatar span {
  top: 21px;
  width: 41px;
  height: 8px;
  background: var(--navy);
}

.about-body h2 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

.about-body__lead {
  max-width: none;
  padding-bottom: 20px;
  border-bottom: 1px dotted #6b7777;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 25px;
}

.about-grid div {
  display: grid;
  gap: 5px;
}

.data-label {
  color: #6f7e7d;
}

.about-grid strong {
  color: var(--navy);
  font-family: var(--pixel);
  font-size: 11px;
  font-weight: 500;
}

.quest-log {
  padding: 14px;
  border: 1px solid #7b8786;
  background: #d2d2d2;
}

.quest-log p {
  display: flex;
  gap: 10px;
  margin: 11px 0 0;
  color: #495554;
  font-family: var(--pixel);
  font-size: 10px;
}

.quest-log p span {
  color: var(--teal-dark);
}

.projects-body {
  padding-bottom: 18px;
}

.projects-body__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.projects-body h2 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

.archive-count {
  margin-top: 10px;
  padding: 5px 7px;
  border: 1px solid #8b9797;
  color: var(--teal-dark);
  white-space: nowrap;
}

.project-map {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border: 2px solid #777f7f;
  background: #132021;
}

.map-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: linear-gradient(rgba(145, 255, 117, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(145, 255, 117, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
}

.map-route {
  position: absolute;
  display: block;
  height: 1px;
  background: var(--phosphor);
  opacity: 0.7;
  transform-origin: left center;
}

.map-route--one {
  top: 47%;
  left: 27%;
  width: 27%;
  transform: rotate(-21deg);
}

.map-route--two {
  top: 57%;
  left: 53%;
  width: 24%;
  transform: rotate(27deg);
}

.project-node {
  position: absolute;
  display: grid;
  width: 146px;
  min-height: 70px;
  gap: 2px;
  padding: 9px;
  border: 1px solid rgba(145, 255, 117, 0.32);
  color: var(--win);
  background: rgba(7, 10, 11, 0.82);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.project-node:hover,
.project-node.is-selected {
  border-color: var(--phosphor);
  background: rgba(0, 128, 128, 0.6);
  transform: translateY(-3px);
}

.project-node span {
  color: var(--phosphor);
  font-family: var(--pixel);
  font-size: 9px;
}

.project-node b {
  color: var(--win-light);
  font-family: var(--display);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.9;
}

.project-node small {
  color: #8ba09b;
  font-size: 8px;
}

.project-node--one {
  top: 35%;
  left: 10%;
}

.project-node--two {
  top: 17%;
  left: 51%;
}

.project-node--three {
  right: 9%;
  bottom: 11%;
}

.project-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr 0.8fr;
  gap: 20px;
  align-items: center;
  margin-top: 13px;
  padding: 13px;
  border-top: 3px solid var(--navy);
  background: #d0d0d0;
}

.project-detail h3 {
  margin: 3px 0 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: 31px;
  font-weight: 400;
  line-height: 0.9;
}

.project-detail p {
  margin: 0;
  color: #495554;
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.6;
}

.project-detail__meta {
  display: grid;
  gap: 7px;
  color: var(--teal-dark);
  font-size: 8px;
  text-align: right;
}

.skills-body h2 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.skill-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.skill-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 6px;
  color: #455151;
  font-family: var(--pixel);
  font-size: 10px;
}

.skill-row b {
  color: var(--navy);
  font-weight: 500;
}

.skill-bar {
  border: 1px solid #737d7d;
  background: #dedede;
}

.skill-bar span {
  background: var(--teal);
}

.skills-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 31px 0 0;
  color: var(--teal-dark);
  font-family: var(--pixel);
  font-size: 9px;
  text-transform: uppercase;
}

.contact-body h2 {
  font-size: clamp(3rem, 6vw, 5rem);
}

.contact-links {
  display: grid;
  gap: 11px;
  margin-top: 28px;
  padding: 15px;
  border: 1px solid #7c8786;
  background: #d2d2d2;
}

.contact-links a {
  color: var(--navy);
  font-family: var(--pixel);
  font-size: 11px;
}

.contact-links a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.contact-status {
  display: block;
  margin-top: 17px;
  color: var(--teal-dark);
}

.terminal-body {
  display: flex;
  min-height: 286px;
  flex-direction: column;
  padding: 18px;
  font-family: var(--pixel);
  font-size: 12px;
  line-height: 1.55;
}

.terminal-output {
  flex: 1;
  overflow: auto;
}

.terminal-output p {
  margin: 0 0 7px;
}

.terminal-output .terminal-green,
.terminal-output b {
  color: var(--phosphor);
}

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

.terminal-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--phosphor);
}

.terminal-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--phosphor);
  background: transparent;
  caret-color: var(--phosphor);
}

.terminal-cursor {
  animation: blink 1s steps(2, start) infinite;
}

.taskbar {
  z-index: 60;
  border-top: 2px solid var(--win-light);
  background: var(--win);
  color: var(--black);
}

.start-button,
.taskbar-apps button {
  min-height: 23px;
  padding: 2px 9px;
  border: 2px solid;
  border-color: var(--win-light) var(--win-shadow) var(--win-shadow) var(--win-light);
  color: var(--black);
  background: var(--win);
  font-family: var(--pixel);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.start-button:active,
.taskbar-apps button.is-active {
  border-color: var(--win-shadow) var(--win-light) var(--win-light) var(--win-shadow);
}

.start-flag {
  color: var(--navy);
  font-size: 14px;
}

.taskbar-divider {
  width: 1px;
  height: 21px;
  margin: 0 8px;
  border-left: 1px solid var(--win-shadow);
  border-right: 1px solid var(--win-light);
}

.taskbar-apps {
  display: flex;
  flex: 1;
  gap: 6px;
  overflow: hidden;
}

.taskbar-apps button {
  display: none;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taskbar-apps button.is-visible {
  display: block;
}

.taskbar-right {
  gap: 10px;
  padding-left: 8px;
  border-left: 2px solid var(--win-shadow);
  font-size: 9px;
}

.network-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #2c4441;
}

.network-status i {
  width: 4px;
  height: 4px;
  box-shadow: none;
}

.start-menu {
  position: absolute;
  z-index: 80;
  bottom: 33px;
  left: 3px;
  display: flex;
  width: 250px;
  min-height: 290px;
  border: 2px solid var(--black);
  background: var(--win);
  box-shadow: 6px -5px 0 rgba(0, 0, 0, 0.28);
}

.start-menu__side {
  display: flex;
  width: 35px;
  align-items: flex-end;
  padding: 7px 5px;
  color: var(--win-light);
  background: var(--navy);
  font-family: var(--display);
  font-size: 24px;
  line-height: 0.78;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.start-menu__side span {
  color: var(--phosphor);
}

.start-menu__items {
  display: grid;
  width: 100%;
  align-content: start;
  padding: 10px 7px;
}

.start-menu__items button {
  padding: 10px 11px;
  color: var(--black);
  background: none;
  font-family: var(--pixel);
  font-size: 11px;
  text-align: left;
}

.start-menu__items button:hover {
  color: var(--win-light);
  background: var(--navy);
}

.start-menu__items hr {
  width: calc(100% - 8px);
  margin: 7px 4px;
  border: 0;
  border-top: 1px solid var(--win-shadow);
  border-bottom: 1px solid var(--win-light);
}

@keyframes blink {
  50% { opacity: 0.15; }
}

@media (max-width: 820px) {
  .desktop__intro {
    top: 30px;
    left: 25px;
  }

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

  .desktop-icons {
    top: 255px;
    right: 25px;
  }

  .system-card {
    right: 25px;
    bottom: 32px;
  }

  .app-window--welcome {
    top: 54%;
  }

  .app-window--about,
  .app-window--projects,
  .app-window--skills,
  .app-window--contact,
  .app-window--terminal {
    top: 8%;
    right: auto;
    left: 20px;
    bottom: auto;
    width: calc(100% - 40px);
  }

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

  .project-detail__meta {
    display: none;
  }
}

@media (max-width: 580px) {
  body {
    font-size: 12px;
  }

  .system-shell.is-ready {
    grid-template-rows: 34px 1fr 35px;
  }

  .system-topbar {
    padding: 0 8px;
  }

  .system-brand__build,
  .status-pill,
  .contrast-toggle,
  .system-topbar__meta > span:first-child {
    display: none;
  }

  .desktop__intro {
    top: 26px;
    left: 17px;
  }

  .desktop__intro h1 {
    max-width: 300px;
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .desktop__hint {
    font-size: 9px;
  }

  .desktop-icons {
    top: 222px;
    right: 18px;
    grid-template-columns: repeat(2, 70px);
    gap: 14px 13px;
  }

  .desktop-icon {
    font-size: 8px;
  }

  .desktop-icon__glyph {
    width: 38px;
    height: 38px;
    font-size: 23px;
  }

  .system-card {
    right: 17px;
    bottom: 25px;
    width: 178px;
    padding: 10px;
  }

  .system-card__note {
    font-size: 8px;
  }

  .app-window,
  .app-window--welcome,
  .app-window--about,
  .app-window--projects,
  .app-window--skills,
  .app-window--contact,
  .app-window--terminal {
    top: 5%;
    left: 10px;
    width: calc(100% - 20px);
    min-height: 0;
    max-height: calc(100% - 50px);
  }

  .window-body {
    overflow: auto;
    padding: 20px;
  }

  .welcome-body {
    min-height: 370px;
    padding-right: 20px;
  }

  .welcome-body__stamp {
    top: 18px;
    right: 18px;
    width: 53px;
    height: 53px;
    font-size: 10px;
  }

  .welcome-body h2,
  .about-body h2,
  .projects-body h2,
  .skills-body h2,
  .contact-body h2 {
    font-size: 3.8rem;
  }

  .welcome-body__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .welcome-body__footer {
    flex-direction: column;
    margin-top: 25px;
  }

  .about-body__header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .project-map {
    min-height: 315px;
  }

  .project-node {
    width: 104px;
  }

  .project-node--one {
    top: 36%;
    left: 4%;
  }

  .project-node--two {
    top: 11%;
    left: auto;
    right: 4%;
  }

  .project-node--three {
    right: 14%;
    bottom: 9%;
  }

  .project-detail {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .taskbar {
    padding: 0 7px;
  }

  .taskbar-apps {
    max-width: 135px;
  }

  .taskbar-right {
    gap: 5px;
    font-size: 8px;
  }

  .network-status {
    display: none;
  }

  .start-menu {
    bottom: 35px;
    left: 2px;
    width: min(250px, calc(100% - 4px));
  }
}

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