:root {
  --desktop: #008080;
  --desktop-deep: #006f73;
  --win-face: #c0c0c0;
  --win-light: #ffffff;
  --win-mid: #d9d9d9;
  --win-dark: #808080;
  --win-shadow: #404040;
  --win-black: #050505;
  --title-start: #000080;
  --title-end: #1084d0;
  --yellow: #fff6a6;
  --green: #2fbf71;
  --red: #ff5b5b;
  --blue: #3ca7ff;
  --purple: #b978ff;
  --text: #101010;
  --muted: #3d3d3d;
  --font: "MS Sans Serif", Tahoma, Verdana, Arial, sans-serif;
  --mono: "Courier New", Consolas, ui-monospace, monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font: 14px/1.45 var(--font);
  background:
    linear-gradient(135deg, rgba(255,255,255,.08) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(315deg, rgba(0,0,0,.08) 25%, transparent 25%) 0 0 / 18px 18px,
    radial-gradient(circle at 20% 12%, rgba(255,255,255,.16), transparent 26rem),
    linear-gradient(160deg, var(--desktop), var(--desktop-deep));
  overflow-x: hidden;
}

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

.desktop-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .38;
  z-index: 0;
}

.desktop-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 22px 0 38px;
}

.window {
  background: var(--win-face);
  border: 2px solid var(--win-black);
  box-shadow:
    inset 1px 1px 0 var(--win-light),
    inset -1px -1px 0 var(--win-shadow),
    inset -2px -2px 0 var(--win-dark),
    12px 14px 0 rgba(0,0,0,.18);
}

.titlebar {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 5px 4px 6px;
  color: #fff;
  background: linear-gradient(90deg, var(--title-start), var(--title-end));
  border-bottom: 2px solid var(--win-black);
  font-weight: 700;
  letter-spacing: 0;
  user-select: none;
}

.title-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.title-left > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-icon,
.folder-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: grid;
}

.app-icon {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  padding: 2px;
  background: #fff;
  border: 1px solid #000;
  box-shadow: inset -1px -1px 0 #777;
}

.app-icon span:nth-child(1) { background: #ff5353; }
.app-icon span:nth-child(2) { background: #30b86f; }
.app-icon span:nth-child(3) { background: #ffe166; }
.app-icon span:nth-child(4) { background: #3ca7ff; }

.folder-icon {
  position: relative;
  background: #f4cf45;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff7b0, inset -1px -1px 0 #a27a00;
}

.folder-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: -5px;
  width: 9px;
  height: 6px;
  background: #f4cf45;
  border: 1px solid #000;
  border-bottom: 0;
}

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

.window-controls span {
  width: 20px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #000;
  background: var(--win-face);
  border: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-light), inset -1px -1px 0 var(--win-dark);
  font: 700 12px/1 var(--mono);
}

.hero-window {
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .72fr);
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
  padding: clamp(22px, 5vw, 62px);
  background:
    linear-gradient(90deg, rgba(255,255,255,.68), rgba(255,255,255,.18)),
    linear-gradient(#d8d8d8 1px, transparent 1px),
    linear-gradient(90deg, #d8d8d8 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
}

.eyebrow {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  background: var(--yellow);
  border: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #a79c3e;
  color: #000;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 90px);
  line-height: .92;
  letter-spacing: 0;
  color: #070707;
  text-shadow: 3px 3px 0 #fff, 6px 6px 0 rgba(0,0,0,.16);
}

.intro {
  max-width: 58ch;
  margin: 20px 0 0;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.35;
  color: #202020;
}

.hero-monitor {
  justify-self: center;
  width: min(100%, 330px);
  filter: drop-shadow(9px 10px 0 rgba(0,0,0,.18));
}

.monitor-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 4px),
    linear-gradient(140deg, #081c35, #0d5f70 62%, #16422d);
  border: 9px solid #222;
  box-shadow:
    inset 0 0 0 2px #6d6d6d,
    inset 0 0 28px rgba(0,0,0,.72);
}

.monitor-screen::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.22) 48%, transparent 54%);
  transform: translateX(-55%);
  animation: screenShine 5.8s ease-in-out infinite;
}

.monitor-stand {
  width: 42%;
  height: 52px;
  margin: 0 auto;
  background: var(--win-face);
  border: 2px solid var(--win-black);
  border-top: 0;
  box-shadow: inset 1px 0 0 var(--win-light), inset -1px -1px 0 var(--win-dark);
  clip-path: polygon(24% 0, 76% 0, 90% 100%, 10% 100%);
}

.pixel-city {
  position: absolute;
  left: 11%;
  right: 10%;
  bottom: 14%;
  height: 44%;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  z-index: 1;
}

.pixel-city i {
  flex: 1;
  display: block;
  border: 1px solid rgba(255,255,255,.75);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 3px, transparent 3px 9px),
    linear-gradient(#2b9ed8, #176a9b);
  box-shadow: 4px 4px 0 rgba(0,0,0,.3);
  animation: cityPulse 3s ease-in-out infinite;
}

.pixel-city i:nth-child(1) { height: 44%; }
.pixel-city i:nth-child(2) { height: 77%; animation-delay: .2s; }
.pixel-city i:nth-child(3) { height: 60%; animation-delay: .5s; }
.pixel-city i:nth-child(4) { height: 90%; animation-delay: .1s; }
.pixel-city i:nth-child(5) { height: 54%; animation-delay: .35s; }

.orbit-demo {
  position: absolute;
  top: 15%;
  right: 11%;
  width: 88px;
  height: 88px;
  border: 1px dotted rgba(255,255,255,.64);
  border-radius: 50%;
  z-index: 1;
  animation: spin 9s linear infinite;
}

.earth-dot {
  position: absolute;
  inset: 25px;
  border-radius: 50%;
  background:
    linear-gradient(35deg, transparent 52%, rgba(255,255,255,.28) 53%),
    linear-gradient(135deg, #30b86f 0 28%, #35a6ff 28% 52%, #30b86f 52% 68%, #35a6ff 68%);
  box-shadow: 0 0 0 2px rgba(255,255,255,.78), 0 0 18px rgba(71,196,255,.58);
}

.moon-dot {
  position: absolute;
  right: 2px;
  top: 37px;
  width: 10px;
  height: 10px;
  background: #fff7a8;
  border-radius: 50%;
  box-shadow: 0 0 12px #fff;
}

.graph-demo {
  position: absolute;
  left: 13%;
  top: 15%;
  width: 34%;
  height: 31%;
  border-left: 2px solid rgba(255,255,255,.8);
  border-bottom: 2px solid rgba(255,255,255,.8);
  z-index: 1;
}

.graph-demo span {
  position: absolute;
  height: 3px;
  background: var(--yellow);
  transform-origin: left center;
  box-shadow: 0 0 10px rgba(255,246,166,.75);
}

.graph-demo span:nth-child(1) {
  left: 4px;
  bottom: 8px;
  width: 34px;
  transform: rotate(-22deg);
}

.graph-demo span:nth-child(2) {
  left: 35px;
  bottom: 20px;
  width: 35px;
  transform: rotate(-22deg);
}

.graph-demo span:nth-child(3) {
  right: 9px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.quick-dock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-top: 2px solid var(--win-black);
  background: #d2d2d2;
}

.dock-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  color: #000;
  background: var(--win-face);
  border: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-light), inset -1px -1px 0 var(--win-dark);
  font-weight: 700;
}

.dock-button:hover,
.dock-button:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -5px;
  background: #cecece;
}

.dock-button:active {
  box-shadow: inset -1px -1px 0 var(--win-light), inset 1px 1px 0 var(--win-dark);
  transform: translate(1px, 1px);
}

.dock-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  position: relative;
  border: 1px solid #000;
  background: #fff;
  box-shadow: inset -1px -1px 0 #888;
}

.dock-icon.worlds {
  background: linear-gradient(135deg, var(--green) 0 32%, var(--blue) 32%);
  border-radius: 50%;
}

.dock-icon.tools::before {
  content: "";
  position: absolute;
  inset: 4px 8px 4px 8px;
  background: #333;
  transform: rotate(35deg);
}

.dock-icon.math {
  background:
    linear-gradient(135deg, transparent 46%, #000 47% 53%, transparent 54%),
    linear-gradient(#fff, #fff);
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  padding: 5px 8px;
  border-top: 1px solid var(--win-dark);
  background: var(--win-face);
  color: #111;
  font-size: 12px;
}

.statusbar span {
  min-height: 18px;
  display: flex;
  align-items: center;
  padding: 1px 7px;
  border: 1px solid var(--win-dark);
  box-shadow: inset 1px 1px 0 #9d9d9d, inset -1px -1px 0 #fff;
  background: #d8d8d8;
}

.project-board {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.group-window {
  scroll-margin-top: 18px;
}

.title-count {
  flex: 0 0 auto;
  padding: 2px 6px;
  color: #000;
  background: var(--win-face);
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
  font-size: 12px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background:
    linear-gradient(#d6d6d6 1px, transparent 1px),
    linear-gradient(90deg, #d6d6d6 1px, transparent 1px),
    #eeeeee;
  background-size: 18px 18px;
}

.project-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  min-height: 218px;
  display: grid;
  grid-template-rows: 74px 1fr auto;
  gap: 12px;
  padding: 13px;
  color: #000;
  background: var(--win-face);
  border: 1px solid var(--win-black);
  box-shadow:
    inset 1px 1px 0 var(--win-light),
    inset -1px -1px 0 var(--win-dark),
    5px 5px 0 rgba(0,0,0,.12);
  transform: perspective(800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.48) 48%, transparent 55%);
  transform: translateX(-85%);
  pointer-events: none;
}

.project-card:hover,
.project-card:focus-visible {
  background: #cbcbcb;
  box-shadow:
    inset 1px 1px 0 var(--win-light),
    inset -1px -1px 0 var(--win-dark),
    8px 8px 0 rgba(0,0,0,.16);
}

.project-card:hover::before,
.project-card:focus-visible::before {
  opacity: 1;
  animation: cardGlint .78s ease forwards;
}

.project-card:focus-visible {
  outline: 2px dotted #000;
  outline-offset: -6px;
}

.project-card.is-pinged {
  animation: linkPing .5s steps(2, end);
}

.project-icon {
  position: relative;
  width: 82px;
  height: 68px;
  display: block;
  align-self: start;
  image-rendering: pixelated;
}

.project-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-kicker,
.project-title,
.project-copy {
  display: block;
}

.project-kicker {
  width: fit-content;
  max-width: 100%;
  padding: 2px 6px;
  background: #ffffe1;
  border: 1px solid var(--win-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-title {
  font-size: 20px;
  line-height: 1.08;
  font-weight: 700;
}

.project-copy {
  color: var(--muted);
  font-size: 13px;
}

.launch-chip {
  justify-self: start;
  min-width: 76px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: var(--win-face);
  border: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-light), inset -1px -1px 0 var(--win-dark);
  font-weight: 700;
}

.project-card:hover .launch-chip,
.project-card:focus-visible .launch-chip {
  background: var(--yellow);
}

.city-icon {
  transform: skewY(-8deg);
}

.city-icon .building {
  position: absolute;
  bottom: 12px;
  width: 18px;
  border: 1px solid #000;
  background:
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(255,255,255,.8) 6px 8px),
    linear-gradient(#51c8ff, #12649c);
  box-shadow: 4px 4px 0 rgba(0,0,0,.18);
}

.city-icon .b1 {
  left: 5px;
  height: 38px;
}

.city-icon .b2 {
  left: 29px;
  height: 58px;
  background:
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,.75) 5px 7px),
    linear-gradient(#ffc85a, #c7651b);
}

.city-icon .b3 {
  left: 54px;
  height: 45px;
  background:
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(255,255,255,.8) 6px 8px),
    linear-gradient(#9cdf78, #288b48);
}

.city-icon .road {
  position: absolute;
  left: 0;
  right: 5px;
  bottom: 0;
  height: 15px;
  background:
    repeating-linear-gradient(90deg, #fff 0 8px, transparent 8px 18px),
    #4b4b4b;
  border: 1px solid #000;
}

.earth-icon .globe {
  position: absolute;
  left: 11px;
  top: 8px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #000;
  background:
    linear-gradient(140deg, transparent 0 30%, rgba(255,255,255,.34) 31% 38%, transparent 39%),
    linear-gradient(40deg, #31bd74 0 25%, #38a9ff 25% 50%, #31bd74 50% 67%, #38a9ff 67%);
  box-shadow: inset -8px -7px 0 rgba(0,0,0,.17), 4px 4px 0 rgba(0,0,0,.13);
}

.earth-icon .globe::before,
.earth-icon .globe::after {
  content: "";
  position: absolute;
  background: #31bd74;
  border: 1px solid rgba(0,0,0,.36);
}

.earth-icon .globe::before {
  left: 7px;
  top: 11px;
  width: 21px;
  height: 14px;
  clip-path: polygon(0 20%, 70% 0, 100% 48%, 58% 100%, 10% 77%);
}

.earth-icon .globe::after {
  right: 6px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  clip-path: polygon(8% 14%, 100% 0, 86% 74%, 31% 100%);
}

.earth-icon .orbit {
  position: absolute;
  left: 0;
  top: 23px;
  width: 78px;
  height: 24px;
  border: 2px solid #fff;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-17deg);
  animation: orbitWobble 4s ease-in-out infinite;
}

.earth-icon .satellite {
  position: absolute;
  right: 3px;
  top: 18px;
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border: 1px solid #000;
  animation: satelliteBlink 1.8s steps(2, end) infinite;
}

.todo-icon {
  background: #fff;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #e5e5e5, 4px 4px 0 rgba(0,0,0,.14);
}

.todo-icon::before {
  content: "";
  position: absolute;
  left: 25px;
  top: -7px;
  width: 30px;
  height: 13px;
  background: var(--win-face);
  border: 2px solid #000;
}

.todo-icon span {
  position: absolute;
  left: 11px;
  width: 57px;
  height: 9px;
  border-left: 9px solid var(--green);
  border-bottom: 2px solid #777;
}

.todo-icon span:nth-child(1) { top: 17px; }
.todo-icon span:nth-child(2) { top: 34px; animation: checkFlash 2.2s steps(2, end) infinite; }
.todo-icon span:nth-child(3) { top: 51px; }

.seating-icon {
  display: grid;
  grid-template-columns: repeat(4, 14px);
  grid-auto-rows: 14px;
  gap: 7px;
  padding: 10px 0 0 6px;
}

.seating-icon span {
  border: 1px solid #000;
  background: #fff;
  box-shadow: inset -2px -2px 0 #d7d7d7;
}

.seating-icon span:nth-child(3),
.seating-icon span:nth-child(6) {
  background: var(--yellow);
}

.seating-icon em {
  position: absolute;
  left: 9px;
  top: 12px;
  width: 58px;
  height: 36px;
  border: 2px dotted #000;
  border-bottom-color: transparent;
  border-left-color: transparent;
  transform: rotate(-7deg);
  animation: routeDash 3s linear infinite;
}

.grades-icon .bar {
  position: absolute;
  bottom: 7px;
  width: 14px;
  border: 1px solid #000;
  background: var(--blue);
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.45);
}

.grades-icon .bar-a {
  left: 6px;
  height: 30px;
}

.grades-icon .bar-b {
  left: 26px;
  height: 48px;
  background: var(--green);
}

.grades-icon .bar-c {
  left: 46px;
  height: 39px;
  background: var(--yellow);
}

.grades-icon .paper {
  position: absolute;
  right: 2px;
  top: 6px;
  width: 29px;
  height: 39px;
  background:
    repeating-linear-gradient(#fff 0 7px, #a7d4ff 7px 9px);
  border: 1px solid #000;
  box-shadow: 4px 4px 0 rgba(0,0,0,.16);
  transform: rotate(7deg);
}

.equation-icon {
  width: 120px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.equation-icon span,
.equation-icon em {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  background: #fff;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #e5e5e5, 3px 3px 0 rgba(0,0,0,.12);
  font: 700 15px/1 var(--mono);
}

.equation-icon em {
  background: var(--yellow);
  font-style: normal;
  animation: balanceTick 2s steps(2, end) infinite;
}

.linear-icon {
  background:
    linear-gradient(#d4ecff 1px, transparent 1px),
    linear-gradient(90deg, #d4ecff 1px, transparent 1px),
    #fff;
  background-size: 13px 13px;
  border: 1px solid #000;
  box-shadow: 4px 4px 0 rgba(0,0,0,.14);
}

.linear-icon .axis {
  position: absolute;
  background: #000;
}

.linear-icon .x-axis {
  left: 7px;
  right: 8px;
  bottom: 15px;
  height: 2px;
}

.linear-icon .y-axis {
  left: 15px;
  top: 8px;
  bottom: 7px;
  width: 2px;
}

.linear-icon .line {
  position: absolute;
  left: 13px;
  bottom: 19px;
  width: 58px;
  height: 3px;
  background: var(--red);
  transform: rotate(-32deg);
  transform-origin: left center;
  box-shadow: 0 0 0 1px rgba(0,0,0,.18);
  animation: drawLine 2.8s ease-in-out infinite;
}

.linear-icon .table {
  position: absolute;
  right: 7px;
  width: 13px;
  height: 8px;
  background: var(--yellow);
  border: 1px solid #000;
}

.linear-icon .t1 { top: 9px; }
.linear-icon .t2 { top: 20px; background: var(--green); }

.urn-icon .urn {
  position: absolute;
  left: 7px;
  bottom: 6px;
  width: 42px;
  height: 44px;
  background: linear-gradient(#fff7ad, #d99936);
  border: 2px solid #000;
  border-radius: 8px 8px 14px 14px;
  box-shadow: inset -7px -5px 0 rgba(0,0,0,.13), 4px 4px 0 rgba(0,0,0,.14);
}

.urn-icon .urn::before {
  content: "";
  position: absolute;
  left: 7px;
  top: -12px;
  width: 24px;
  height: 14px;
  background: #fff7ad;
  border: 2px solid #000;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.urn-icon .ball {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid #000;
  animation: ballPop 2.5s ease-in-out infinite;
}

.urn-icon .red {
  left: 25px;
  top: 2px;
  background: var(--red);
}

.urn-icon .blue {
  left: 11px;
  top: 11px;
  background: var(--blue);
  animation-delay: .45s;
}

.urn-icon .branch {
  position: absolute;
  left: 51px;
  width: 34px;
  height: 2px;
  background: #000;
  transform-origin: left center;
}

.urn-icon .branch-a {
  top: 24px;
  transform: rotate(-29deg);
}

.urn-icon .branch-b {
  top: 31px;
  transform: rotate(26deg);
}

.urn-icon .branch::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  border: 1px solid #000;
}

@keyframes screenShine {
  0%, 42% { transform: translateX(-55%); }
  70%, 100% { transform: translateX(55%); }
}

@keyframes cityPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes cardGlint {
  to { transform: translateX(85%); }
}

@keyframes linkPing {
  0%, 100% { background: var(--win-face); }
  50% { background: var(--yellow); }
}

@keyframes orbitWobble {
  0%, 100% { transform: rotate(-17deg) scaleX(1); }
  50% { transform: rotate(-17deg) scaleX(.86); }
}

@keyframes satelliteBlink {
  50% { background: #fff; }
}

@keyframes checkFlash {
  50% { border-left-color: var(--red); }
}

@keyframes routeDash {
  to { stroke-dashoffset: -40; filter: contrast(1.4); }
}

@keyframes balanceTick {
  50% { transform: translateY(-3px); }
}

@keyframes drawLine {
  0% { clip-path: inset(0 100% 0 0); }
  45%, 100% { clip-path: inset(0 0 0 0); }
}

@keyframes ballPop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (max-width: 920px) {
  .desktop-shell {
    width: min(100% - 18px, 760px);
    padding-top: 14px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero-monitor {
    width: min(100%, 280px);
    filter: drop-shadow(6px 7px 0 rgba(0,0,0,.18));
  }

  .intro {
    max-width: 31ch;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    font-size: 13px;
  }

  .desktop-shell {
    width: calc(100% - 12px);
    padding-bottom: 18px;
  }

  .window {
    box-shadow:
      inset 1px 1px 0 var(--win-light),
      inset -1px -1px 0 var(--win-shadow),
      inset -2px -2px 0 var(--win-dark),
      6px 7px 0 rgba(0,0,0,.18);
  }

  .titlebar {
    min-height: 28px;
    font-size: 12px;
  }

  .window-controls span {
    width: 18px;
    height: 16px;
  }

  .hero-content {
    padding: 22px 16px;
  }

  h1 {
    font-size: clamp(38px, 16vw, 58px);
    text-shadow: 2px 2px 0 #fff, 4px 4px 0 rgba(0,0,0,.16);
  }

  .intro {
    font-size: 16px;
  }

  .quick-dock {
    grid-template-columns: 1fr;
  }

  .dock-button {
    justify-content: flex-start;
  }

  .project-board {
    gap: 16px;
    margin-top: 16px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .project-card {
    min-height: 0;
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
  }

  .project-icon {
    grid-row: 1 / span 2;
  }

  .launch-chip {
    grid-column: 2;
  }

  .project-title {
    font-size: 18px;
  }
}

@media (max-width: 390px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-icon,
  .launch-chip {
    grid-column: auto;
  }

  .title-count {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .desktop-canvas {
    display: none;
  }
}
