:root {
  --bg: #c9c9c2;
  --paper: #fffdf3;
  --ink: #080808;
  --muted: #625f58;
  --acid: #b9ff00;
  --hot: #ff3b2e;
  --blue: #1649ff;
  --pink: #ff74c8;
  --yellow: #ffe900;
  --line: #080808;
  --shadow: 9px 9px 0 var(--line);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(8, 8, 8, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 8, 8, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 18px 18px;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0;
}

body.performance-mode {
  --bg: #101010;
  --paper: #151515;
  --ink: #f7f2dc;
  --muted: #c5bca6;
  --acid: #ffec00;
  --hot: #00e0ff;
  --blue: #ff5a00;
  --line: #f7f2dc;
  --shadow: 9px 9px 0 #f7f2dc;
  color: var(--ink);
}

body.performance-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: difference;
  opacity: 0.16;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050505;
  color: #f7f2dc;
  cursor: default;
}

.boot.is-dismissed {
  display: none;
}

.boot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 236, 0, 0.18), transparent 18%, rgba(0, 224, 255, 0.12) 58%, transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12) 1px, transparent 1px, transparent 5px);
  mix-blend-mode: screen;
  opacity: 0.42;
}

.boot-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.55) saturate(0.85);
  opacity: 0.68;
  transform: scale(1.04);
  animation: boot-image-drift 3.7s steps(4, end) infinite;
}

.boot-log {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 8px;
  width: min(760px, calc(100vw - 28px));
  border: 1px solid #ffec00;
  padding: 18px;
  background: rgba(5, 5, 5, 0.64);
  box-shadow: 0 0 28px rgba(255, 236, 0, 0.26), 10px 10px 0 rgba(8, 8, 8, 0.72);
  font-size: clamp(0.9rem, 2vw, 1.35rem);
  line-height: 1.7;
  text-transform: uppercase;
  backdrop-filter: blur(1px);
}

.boot-log span {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  animation: type-line 0.55s steps(34, end) both;
}

.boot-log span:nth-child(2) {
  animation-delay: 0.42s;
}

.boot-log span:nth-child(3) {
  animation-delay: 0.84s;
}

.boot-log span:nth-child(4) {
  animation-delay: 1.26s;
}

.boot-log span:nth-child(5) {
  animation-delay: 1.68s;
}

.boot-title {
  color: #fffdf3;
  font-size: clamp(1.6rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 0.95;
}

.boot-title::after {
  content: "|";
  color: #ffec00;
  animation: cursor-blink 0.7s steps(1, end) infinite;
}

.boot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.boot-choice {
  position: relative;
  border: 2px solid #ffec00;
  padding: 12px;
  background: rgba(5, 5, 5, 0.78);
  color: #f7f2dc;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.76);
  font-size: clamp(0.86rem, 1.7vw, 1.1rem);
  font-weight: 900;
  line-height: 1.1;
  text-align: left;
  text-transform: uppercase;
}

.boot-choice small {
  display: block;
  margin-top: 7px;
  color: #ffec00;
  font-size: 0.66rem;
  line-height: 1.25;
}

.boot-choice:hover,
.boot-choice:focus-visible,
.boot-choice.is-recommended {
  background: #ffec00;
  color: #080808;
}

.boot-choice:hover small,
.boot-choice:focus-visible small,
.boot-choice.is-recommended small {
  color: #080808;
}

.boot-choice.is-recommended::after {
  content: "recommended";
  position: absolute;
  top: -10px;
  right: 8px;
  border: 1px solid #080808;
  padding: 3px 5px;
  background: #b9ff00;
  color: #080808;
  font-size: 0.56rem;
  line-height: 1;
}

.boot-hint {
  min-height: 2.6em;
  margin: 4px 0 0;
  border-top: 1px solid rgba(255, 236, 0, 0.64);
  padding-top: 9px;
  color: #f7f2dc;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  line-height: 1.35;
  text-transform: uppercase;
}

.cursor-tag {
  position: fixed;
  z-index: 420;
  top: 0;
  left: 0;
  border: 1px solid #080808;
  padding: 4px 7px;
  background: var(--acid);
  color: #080808;
  font-size: 0.72rem;
  font-weight: 900;
  pointer-events: none;
  transform: translate(12px, 12px);
  mix-blend-mode: multiply;
}

.signal-line {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 3px;
  background: var(--hot);
  opacity: 0;
  pointer-events: none;
}

.signal-line.is-scanning {
  animation: scan 1.4s linear forwards;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: max-content minmax(240px, 1fr) max-content;
  gap: 10px;
  align-items: center;
  border-bottom: 2px solid #080808;
  padding: 8px 12px;
  background: var(--paper);
  color: #080808;
  isolation: isolate;
}

.brand,
.topbar nav a,
.toolbar button,
.language-switcher button {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand {
  text-decoration: none;
}

.topbar nav,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.topbar nav {
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar nav::-webkit-scrollbar {
  display: none;
}

.toolbar {
  position: relative;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.topbar nav a,
.toolbar button,
.language-switcher button {
  border: 1px solid #080808;
  padding: 7px 9px;
  background: #fff;
  color: #080808;
  text-decoration: none;
  white-space: nowrap;
}

.mode-switch {
  min-width: 154px;
  padding-block: 10px !important;
  background: var(--hot) !important;
  box-shadow: 4px 4px 0 #080808;
}

body.interactive-mode .mode-switch {
  background: var(--acid) !important;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0 !important;
  font-size: 1rem !important;
  line-height: 1;
  box-shadow: 3px 3px 0 #080808;
}

.language-menu {
  position: relative;
}

.language-switcher {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 520;
  display: flex;
  gap: 5px;
  border: 1px solid #080808;
  padding: 7px;
  background: var(--paper);
  box-shadow: 5px 5px 0 #080808;
}

.language-switcher[hidden] {
  display: none;
}

.language-switcher button.is-active,
.mode-button.is-active {
  background: var(--acid);
}

.mode-switch.is-active {
  background: var(--hot) !important;
  color: #fff;
}

body.interactive-mode .mode-switch {
  background: var(--acid) !important;
  color: #080808;
}

.shuffle-button {
  background: var(--hot) !important;
  color: #fff !important;
}

.desktop-shuffle {
  position: absolute;
  z-index: 16;
  left: clamp(14px, 3vw, 38px);
  bottom: 18px;
  border-width: 2px !important;
  padding: 10px 12px !important;
  box-shadow: 7px 7px 0 #080808;
}

.desktop-hero {
  position: relative;
  min-height: calc(100svh - 54px);
  overflow: hidden;
  isolation: isolate;
  background: #111;
}

body.interactive-mode .desktop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 5px
    ),
    linear-gradient(90deg, rgba(185, 255, 0, 0.16), transparent 22%, rgba(255, 59, 46, 0.16));
  mix-blend-mode: screen;
  opacity: 0.32;
  animation: signal-breath 4s steps(4, end) infinite;
}

.autoplay-frame {
  position: absolute;
  inset: -5%;
  z-index: 0;
  background: #111;
  opacity: 0.45;
  pointer-events: none;
}

.autoplay-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(1.2) contrast(1.2);
  transform: scale(1.06);
}

.hero-image {
  position: absolute;
  inset: clamp(18px, 4vw, 52px) auto clamp(18px, 4vw, 52px) clamp(18px, 4vw, 52px);
  z-index: 2;
  width: min(48vw, 720px);
  margin: 0;
  border: 2px solid #080808;
  background: #111;
  box-shadow: 12px 12px 0 #080808;
  overflow: hidden;
  transform: rotate(-0.6deg);
  transition: opacity 1.25s ease, filter 1.25s ease, transform 1.25s ease;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.18) saturate(0.9);
}

.hero-copy {
  position: absolute;
  z-index: 3;
  top: clamp(28px, 7vw, 100px);
  right: clamp(18px, 4vw, 52px);
  width: min(54vw, 850px);
  border: 2px solid #080808;
  padding: clamp(18px, 3vw, 38px);
  background: var(--paper);
  color: #080808;
  box-shadow: 12px 12px 0 #080808;
  transition: opacity 1.25s ease, transform 1.25s ease;
}

.hero-copy h1 {
  max-width: 11ch;
  margin: 0 0 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3.5rem, 8.2vw, 8.7rem);
  line-height: 0.79;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-copy p {
  max-width: 70ch;
  margin: 0 0 15px;
  font-size: clamp(0.9rem, 1.25vw, 1.15rem);
  line-height: 1.48;
}

.sysline {
  color: var(--blue);
  font-size: 0.76rem !important;
  font-weight: 900;
  text-transform: uppercase;
}

.tag-list,
.window-tags,
.window-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span,
.window-tags span,
.window-meta span {
  border: 1px solid #080808;
  padding: 5px 7px;
  background: #fff;
  color: #080808;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-panel {
  position: absolute;
  z-index: 7;
  right: 2vw;
  bottom: 2vw;
  display: grid;
  gap: 5px;
  max-width: min(460px, 70vw);
  border: 2px solid #080808;
  padding: 10px;
  background: var(--acid);
  color: #080808;
  box-shadow: 6px 6px 0 #080808;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.interactive-mode .status-panel {
  background: rgba(8, 8, 8, 0.84);
  color: #f7f2dc;
  border-color: #f7f2dc;
  box-shadow: 8px 8px 0 #080808;
}

body.interactive-mode .status-panel::before {
  content: "APP PERFORMANCE MODE";
  display: block;
  margin-bottom: 4px;
  color: var(--acid);
}

.living-marquee {
  position: relative;
  z-index: 20;
  width: 100vw;
  margin: 0;
  overflow: hidden;
  border-block: 2px solid #080808;
  background: #080808;
  color: var(--acid);
  pointer-events: none;
}

.living-marquee-track {
  display: flex;
  width: max-content;
  min-width: 200%;
  gap: 36px;
  padding: 12px 0;
  animation: scrollText 24s linear infinite;
  will-change: transform;
}

.living-marquee span {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: clamp(1.2rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.living-marquee span::after {
  content: "";
}

.folder-stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.folder {
  position: absolute;
  z-index: var(--folder-z, 12);
  width: clamp(190px, 22vw, 360px);
  max-width: min(360px, calc(100vw - 24px));
  min-width: 0;
  min-height: 84px;
  border: 2px solid #080808;
  padding: clamp(12px, 1.6vw, 20px);
  background: var(--folder-color, var(--acid));
  color: #080808;
  box-shadow: 12px 12px 0 #080808;
  text-align: left;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  overflow-wrap: anywhere;
  isolation: isolate;
  transition: box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
  animation: folder-breathe var(--breathe-speed, 8s) ease-in-out infinite;
}

.folder::before {
  content: attr(data-action);
  position: absolute;
  z-index: 3;
  top: -18px;
  left: 16px;
  max-width: calc(100% - 32px);
  border: 1px solid #080808;
  padding: 3px 8px;
  background: #fff;
  color: #080808;
  font-size: 0.67rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: normal;
}

.folder strong {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.45rem, 3.2vw, 3.6rem);
  line-height: 0.86;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
}

.folder small {
  display: block;
  margin-top: 7px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.folder:hover,
.folder:focus-visible {
  filter: saturate(1.3);
  box-shadow:
    5px 5px 0 #080808,
    14px 14px 0 color-mix(in srgb, var(--hot) 75%, transparent);
  animation: folder-hover-glitch 0.34s steps(2, end) infinite;
}

.folder.is-dragging {
  cursor: grabbing;
  box-shadow: 4px 4px 0 #080808;
  animation: none !important;
  transition: none;
}

.folder.is-settling {
  animation: folder-settle 360ms cubic-bezier(0.2, 1.3, 0.35, 1);
}

.folder.is-shuffled {
  animation:
    folder-shuffle 420ms steps(2, end),
    folder-breathe var(--breathe-speed, 8s) ease-in-out infinite 420ms;
}

.folder[data-key="sampling"] {
  left: 3%;
  top: 12%;
  --folder-color: var(--acid);
  border-style: dashed;
  background:
    repeating-linear-gradient(-45deg, var(--acid), var(--acid) 12px, #e8ff6a 12px, #e8ff6a 24px);
  box-shadow: 10px 10px 0 #080808, 18px 18px 0 var(--hot);
  transform: rotate(-1deg);
  --breathe-speed: 7.5s;
}

.folder[data-key="sampling"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  width: 22px;
  height: 44px;
  border: 2px solid #080808;
  border-radius: 999px;
  background: var(--bg);
  transform: translateY(-50%);
}

.folder[data-key="puma"] {
  right: 3%;
  top: 29%;
  width: clamp(360px, 34vw, 480px);
  max-width: min(480px, calc(100vw - 24px));
  --folder-color: var(--blue);
  color: #fff;
  border-width: 3px;
  clip-path: polygon(0 8%, 94% 0, 100% 78%, 82% 100%, 4% 94%);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.18) 0 12%, transparent 12% 100%),
    repeating-linear-gradient(90deg, var(--blue), var(--blue) 18px, #0a31b9 18px, #0a31b9 22px);
  box-shadow: 12px 12px 0 var(--acid), 24px 24px 0 #080808;
  transform: rotate(1deg);
  animation: puma-drift 6.5s ease-in-out infinite;
}

.folder[data-key="puma"] strong {
  font-size: clamp(2.1rem, 3.15vw, 3.25rem);
  white-space: normal;
}

.folder[data-key="inaudit"] {
  left: 34%;
  bottom: 12%;
  --folder-color: var(--yellow);
  border-radius: 2px 2px 34px 2px;
  background:
    linear-gradient(135deg, transparent 0 72%, rgba(8, 8, 8, 0.18) 72% 100%),
    repeating-linear-gradient(0deg, var(--yellow), var(--yellow) 10px, #fff585 10px, #fff585 18px);
  box-shadow: 6px 6px 0 #080808, 12px 12px 0 var(--hot), 18px 18px 0 #080808;
  transform: rotate(-0.5deg);
  --breathe-speed: 8.8s;
}

.folder[data-key="inaudit"]::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 42px;
  height: 42px;
  border-top: 2px solid #080808;
  border-left: 2px solid #080808;
  background: #fff;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.folder[data-key="motivation"] {
  left: 5%;
  bottom: 10%;
  --folder-color: var(--pink);
  border-radius: 42px 8px 38px 14px;
  background:
    radial-gradient(circle at 16% 22%, #fff 0 7px, transparent 8px),
    linear-gradient(100deg, var(--pink), #ff9cdc 58%, #ffffff 58% 62%, var(--pink) 62%);
  box-shadow: 0 15px 0 #080808, 10px 21px 0 var(--blue);
  transform: rotate(1deg);
  --breathe-speed: 9.4s;
}

.folder[data-key="okey"] {
  right: 18%;
  top: 7%;
  min-height: 128px;
  width: clamp(270px, 25vw, 390px);
  --folder-color: #fff;
  border-radius: 0;
  padding: 18px;
  background:
    linear-gradient(0deg, rgba(8, 8, 8, 0.08) 0 2px, transparent 2px 100%),
    #fffdf3;
  background-size: auto, 100% 18px, auto;
  box-shadow: 8px 8px 0 #080808, 16px 16px 0 var(--acid);
  transform: rotate(-1deg);
  --breathe-speed: 8.2s;
}

.folder[data-key="okey"] strong,
.folder[data-key="okey"] small {
  opacity: 1;
}

.folder[data-key="device"] {
  right: 3%;
  bottom: 6%;
  --folder-color: #111;
  color: #fffdf3;
  border-color: #fffdf3;
  background:
    radial-gradient(circle at 20% 28%, rgba(185, 255, 0, 0.65) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 68%, rgba(0, 224, 255, 0.65) 0 7px, transparent 8px),
    linear-gradient(135deg, #111, #222 62%, #050505);
  box-shadow: 8px 8px 0 #080808, 14px 14px 0 var(--acid);
  transform: rotate(0.5deg);
  --breathe-speed: 7.2s;
}

.folder[data-key="education"] {
  left: 49%;
  top: 34%;
  --folder-color: #fff;
  border-style: dotted;
  border-width: 3px;
  background:
    linear-gradient(45deg, rgba(255, 116, 200, 0.9) 0 18%, transparent 18% 100%),
    linear-gradient(135deg, transparent 0 54%, rgba(22, 73, 255, 0.16) 54% 100%),
    repeating-linear-gradient(-45deg, #fff, #fff 12px, #dff7ff 12px, #dff7ff 24px);
  box-shadow: 8px 8px 0 var(--blue), 16px 16px 0 #080808;
  transform: rotate(1.4deg);
  --breathe-speed: 7.8s;
}

.folder[data-key="education"]::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 16px;
  width: 38px;
  height: 28px;
  border: 2px solid #080808;
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 50%, #080808 0 6px, var(--acid) 7px 11px, transparent 12px),
    #fff;
}

.folder[data-key="supports"] {
  right: 8%;
  bottom: 9%;
  width: clamp(250px, 24vw, 360px);
  min-height: 150px;
  --folder-color: var(--green);
  border-width: 3px;
  border-radius: 12px 12px 44px 12px;
  background:
    radial-gradient(circle at 86% 22%, #080808 0 7px, transparent 8px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0 18%, transparent 18% 100%),
    repeating-linear-gradient(90deg, var(--green), var(--green) 16px, #d8ff61 16px, #d8ff61 32px);
  box-shadow: 9px 9px 0 #080808, 18px 18px 0 var(--blue);
  transform: rotate(-1.2deg);
  --breathe-speed: 8.1s;
}

.folder[data-key="supports"]::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 14px;
  width: 54px;
  height: 28px;
  border: 2px solid #080808;
  background:
    linear-gradient(90deg, #080808 0 8px, transparent 8px 14px, #080808 14px 22px, transparent 22px),
    #fffdf3;
}

.folder[data-key="bio"] {
  left: 18%;
  top: 41%;
  display: grid;
  width: clamp(170px, 18vw, 260px);
  min-height: 0;
  aspect-ratio: 1;
  place-items: center;
  --folder-color: var(--acid);
  border-width: 3px;
  border-radius: 50%;
  padding: 20px;
  background:
    radial-gradient(circle at 34% 28%, #ffffff 0 11px, transparent 12px),
    radial-gradient(circle at 65% 70%, rgba(8, 8, 8, 0.2) 0 14px, transparent 15px),
    var(--acid);
  box-shadow: 10px 10px 0 #080808, 19px 19px 0 var(--hot);
  text-align: center;
  transform: rotate(2deg);
  --breathe-speed: 8.5s;
}

.folder[data-key="bio"]::after {
  display: none;
}

.folder[data-key="bio"]::before {
  display: none;
}

.folder[data-key="bio"] strong,
.folder[data-key="bio"] small {
  position: relative;
  z-index: 2;
}

.folder[data-key="bio"] strong {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.78;
}

.folder[data-key="bio"] small {
  max-width: 14ch;
  margin-inline: auto;
  font-size: 0.62rem;
  line-height: 1.15;
}

.folder[data-key="puma"]::before {
  background: var(--acid);
  color: #080808;
}

.folder[data-key="device"]::before {
  border-color: #fffdf3;
  background: var(--acid);
  color: #080808;
}

.folder[data-key="sampling"]:hover,
.folder[data-key="sampling"]:focus-visible {
  background:
    repeating-linear-gradient(45deg, var(--pink), var(--pink) 12px, var(--acid) 12px, var(--acid) 24px);
}

.folder[data-key="puma"]:hover,
.folder[data-key="puma"]:focus-visible {
  animation: puma-pulse 0.7s steps(3, end) infinite;
}

.folder[data-key="device"]:hover,
.folder[data-key="device"]:focus-visible {
  animation: folder-bug 0.42s steps(2, end) infinite;
}

.folder[data-key="device"]:hover::after,
.folder[data-key="device"]:focus-visible::after {
  content: attr(data-key);
  position: absolute;
  inset: 18px auto auto 18px;
  max-width: calc(100% - 36px);
  color: var(--hot);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.45rem, 3.2vw, 3.6rem);
  font-weight: 900;
  line-height: 0.86;
  opacity: 0.7;
  pointer-events: none;
  text-transform: uppercase;
  transform: translate(7px, -5px);
}

.video-peek {
  position: absolute;
  z-index: 15;
  left: 50%;
  bottom: 12px;
  border: 1px solid #080808;
  padding: 5px 8px;
  background: var(--acid);
  color: #080808;
  font-size: 0.68rem;
  font-weight: 900;
  transform: translateX(-50%);
}

.desktop-hero.video-reveal .hero-image,
.desktop-hero.cursor-reveal .hero-image {
  opacity: 0.18;
  filter: grayscale(1);
  transform: rotate(-0.6deg) scale(0.985);
}

.desktop-hero.video-reveal .hero-copy,
.desktop-hero.cursor-reveal .hero-copy {
  opacity: 0.34;
  transform: translateY(5px);
}

.reading-view {
  display: grid;
  gap: 50px;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(32px, 7vw, 90px) clamp(16px, 4vw, 50px);
}

body.reading-mode .desktop-hero,
body.reading-mode .desktop-layer,
body.reading-mode .living-marquee {
  display: none;
}

body.reading-mode .reading-view {
  display: grid;
  gap: clamp(36px, 6vw, 84px);
  max-width: 1320px;
  padding-top: clamp(34px, 6vw, 84px);
}

.reading-intro,
.reading-section {
  scroll-margin-top: 76px;
  border: 2px solid #080808;
  background: var(--paper);
  color: #080808;
  box-shadow: 10px 10px 0 #080808;
  overflow: hidden;
}

.reading-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  border-bottom: 2px solid #080808;
  padding: 7px 10px;
  background: var(--acid);
  color: #080808;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reading-bar span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reading-section-content {
  padding: clamp(18px, 4vw, 44px);
}

.reading-intro h1,
.reading-section h2,
.reading-section h3 {
  margin-top: 0;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.reading-intro h1 {
  max-width: 10ch;
  font-size: clamp(3.8rem, 10vw, 9rem);
  line-height: 0.8;
}

.reading-section h2 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 7vw, 6.6rem);
  line-height: 0.82;
}

.reading-media {
  margin: clamp(18px, 3vw, 32px) 0 18px;
  border: 2px solid #080808;
  background: #080808;
  box-shadow: 8px 8px 0 #080808;
}

.reading-media iframe,
.reading-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: cover;
}

.reading-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.reading-tab {
  border: 2px solid #080808;
  padding: clamp(14px, 2vw, 22px);
  background: #fff;
  color: #080808;
  box-shadow: 5px 5px 0 #080808;
}

.reading-tab p,
.window-tab-content p {
  font-size: clamp(0.98rem, 1.2vw, 1.14rem);
  line-height: 1.55;
}

.reading-intro .reading-section-content > p:not(.sysline) {
  max-width: 760px;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.5;
}

.reading-presentation {
  scroll-margin-top: 76px;
}

.section-head {
  max-width: 1080px;
  margin: 0 0 clamp(22px, 4vw, 42px);
}

.section-head h2 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3.3rem, 8vw, 7.6rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.section-intro {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.5;
}

.presentation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.presentation-card {
  position: relative;
  min-height: clamp(360px, 42vw, 500px);
  border: 2px solid #080808;
  background: #111;
  box-shadow: 8px 8px 0 #080808;
  overflow: hidden;
}

.presentation-card:nth-child(2n) {
  transform: translateY(24px);
}

.presentation-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #111;
  pointer-events: none;
}

.presentation-preview iframe,
.presentation-preview img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  pointer-events: none;
  transform: scale(1.03);
}

.presentation-preview::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 84px;
  background: linear-gradient(#080808 0%, rgba(8, 8, 8, 0.86) 54%, rgba(8, 8, 8, 0));
  pointer-events: none;
}

.presentation-preview-empty {
  background:
    linear-gradient(90deg, rgba(185, 255, 0, 0.7) 0 2px, transparent 2px 100%),
    linear-gradient(0deg, rgba(185, 255, 0, 0.7) 0 2px, transparent 2px 100%),
    #080808;
  background-size: 42px 42px;
}

.presentation-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr auto;
  color: #080808;
  text-decoration: none;
}

.presentation-link > .file-type {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  margin: 0;
  border: 2px solid #080808;
  background: var(--acid);
  color: #080808;
  padding: 7px 9px;
}

.presentation-copy {
  grid-row: 2;
  display: grid;
  min-height: 116px;
  align-content: center;
  gap: 8px;
  border-top: 2px solid #080808;
  padding: 16px 64px 16px 16px;
  background: var(--paper);
}

.presentation-copy strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.55rem, 2.35vw, 2.7rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.presentation-copy small {
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  line-height: 1.3;
}

.presentation-play {
  position: absolute;
  right: 16px;
  bottom: 24px;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 2px solid #080808;
  background: var(--acid);
  color: #080808;
  font-size: 1.45rem;
  line-height: 1;
}

.presentation-card:hover,
.presentation-card:focus-within {
  transform: translate(4px, 4px) rotate(-0.5deg);
}

.presentation-card:nth-child(2n):hover,
.presentation-card:nth-child(2n):focus-within {
  transform: translate(4px, 28px) rotate(0.5deg);
}

.expanded-grid,
.image-grid,
.video-grid,
.support-grid {
  display: grid;
  gap: 16px;
}

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

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

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

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

.expanded-card,
.image-tile,
.video-card,
.support-card {
  border: 2px solid #080808;
  background: #fff;
  color: #080808;
  box-shadow: 6px 6px 0 #080808;
}

.expanded-card,
.support-card,
.video-card-copy {
  padding: 14px;
}

.expanded-media,
.video-frame {
  background: #111;
}

.expanded-media img,
.expanded-media iframe,
.image-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2);
}

.expanded-card:hover img,
.expanded-card:hover iframe,
.image-tile:hover img {
  filter: grayscale(0) contrast(1.25);
}

.image-tile p {
  margin: 0;
  padding: 10px;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.file-type {
  display: block;
  margin: 0 0 10px;
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--blue);
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.expanded-card h3,
.video-card h3,
.support-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1;
}

.expanded-card p,
.video-card p,
.support-card p {
  font-size: 0.98rem;
  line-height: 1.45;
}

.support-card a,
.reading-tab a {
  color: #080808;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.desktop-layer {
  position: fixed;
  inset: 0;
  z-index: 450;
  pointer-events: none;
}

.desktop-window {
  position: fixed;
  z-index: var(--window-z, 460);
  width: min(980px, calc(100vw - 24px));
  max-height: min(88vh, 900px);
  overflow: hidden;
  border: 2px solid #080808;
  background: var(--paper);
  color: #080808;
  box-shadow: 12px 12px 0 #080808;
  pointer-events: auto;
}

.desktop-window-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  border-bottom: 2px solid #080808;
  padding: 6px 7px;
  background: var(--acid);
  color: #080808;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.desktop-window-bar span {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.desktop-window-bar button {
  min-width: 32px;
  min-height: 26px;
  border: 1px solid #080808;
  background: #fff;
  color: #080808;
  font-weight: 900;
}

.desktop-window-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.7fr);
  gap: 14px;
  max-height: calc(min(88vh, 900px) - 38px);
  overflow: auto;
  padding: 14px;
}

.window-main {
  min-width: 0;
}

.window-title {
  margin: 0 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 5vw, 5.8rem);
  line-height: 0.85;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.window-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 12px;
}

.window-tabs button {
  border: 1px solid #080808;
  padding: 7px 9px;
  background: #fff;
  color: #080808;
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.window-tabs button.is-active {
  background: var(--hot);
  color: #fff;
}

.window-extent {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  border: 1px solid #080808;
  padding: 6px;
  background: #fffdf3;
  color: #080808;
}

.window-extent span,
.window-extent button {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.window-extent span {
  padding: 3px 0;
}

.window-extent button {
  border: 1px solid #080808;
  padding: 6px 8px;
  background: #080808;
  color: #fffdf3;
}

.window-tab-content {
  border: 2px solid #080808;
  padding: 16px;
  background: #fff;
  color: #080808;
}

.window-tab-content a {
  font-weight: 900;
}

.mediation-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(72px, auto);
  gap: clamp(8px, 1.4vw, 16px);
  min-height: 420px;
  padding: clamp(8px, 1.8vw, 18px);
  background:
    linear-gradient(rgba(8, 8, 8, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 8, 8, 0.05) 1px, transparent 1px),
    #fff;
  background-size: 18px 18px;
}

.mediation-collage figure {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 2px solid #080808;
  background: #fffdf3;
  box-shadow: 6px 6px 0 #080808;
  overflow: hidden;
}

.mediation-collage figure:nth-child(1) {
  grid-column: 1 / span 4;
  grid-row: 1 / span 3;
  transform: rotate(-2deg);
}

.mediation-collage figure:nth-child(2) {
  grid-column: 5 / span 4;
  grid-row: 1 / span 2;
  transform: rotate(1.5deg);
}

.mediation-collage figure:nth-child(3) {
  grid-column: 9 / span 4;
  grid-row: 1 / span 4;
  transform: rotate(-0.6deg);
}

.mediation-collage figure:nth-child(4) {
  grid-column: 2 / span 5;
  grid-row: 4 / span 3;
  transform: rotate(2deg);
}

.mediation-collage figure:nth-child(5) {
  grid-column: 7 / span 3;
  grid-row: 3 / span 3;
  transform: rotate(-2.6deg);
}

.mediation-collage figure:nth-child(6) {
  grid-column: 10 / span 3;
  grid-row: 5 / span 2;
  transform: rotate(1.2deg);
}

.mediation-collage figure:nth-child(7) {
  grid-column: 4 / span 4;
  grid-row: 7 / span 2;
  transform: rotate(-1.1deg);
}

.mediation-collage img {
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
  filter: contrast(1.15) saturate(0.9);
}

.mediation-collage figcaption {
  position: absolute;
  right: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  border: 1px solid #080808;
  padding: 4px 6px;
  background: var(--acid);
  color: #080808;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.window-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

.window-side-tags-only {
  align-content: end;
}

.window-side img,
.window-side iframe {
  width: 100%;
  min-height: 260px;
  border: 2px solid #080808;
  background: #111;
  object-fit: cover;
}

.window-meta {
  grid-column: 1 / -1;
  border-top: 2px solid #080808;
  padding-top: 10px;
}

.desktop-window.is-minimized {
  width: min(430px, calc(100vw - 24px));
}

.desktop-window.is-minimized .desktop-window-body {
  display: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  border-top: 2px solid #080808;
  padding: 18px;
  background: var(--hot);
  color: #fff;
}

.site-footer a {
  border: 1px solid #080808;
  padding: 7px 9px;
  background: #fff;
  color: #080808;
  font-weight: 900;
}

.edit-panel {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 850;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: min(620px, calc(100vw - 24px));
  border: 2px solid #080808;
  padding: 8px;
  background: #111;
  color: #fff;
  box-shadow: 7px 7px 0 var(--acid);
}

.edit-panel[hidden] {
  display: none !important;
}

.edit-panel button {
  border: 1px solid #080808;
  padding: 7px 9px;
  background: var(--acid);
  color: #080808;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.edit-panel [data-edit-toggle] {
  background: #42d9f5;
}

.edit-panel span {
  align-self: center;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.edit-mode [data-edit-text] {
  outline: 2px dashed var(--hot);
  outline-offset: 3px;
  cursor: text;
}

body.edit-mode [data-edit-image] {
  outline: 3px dashed var(--hot);
  outline-offset: -8px;
  cursor: pointer;
}

body.edit-mode .folder {
  pointer-events: none;
}

body.performance-mode .reading-intro,
body.performance-mode .reading-section,
body.performance-mode .expanded-card,
body.performance-mode .video-card,
body.performance-mode .support-card,
body.performance-mode .desktop-window,
body.performance-mode .hero-copy,
body.performance-mode .topbar {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 0 rgba(247, 242, 220, 0.08);
}

body.performance-mode .desktop-hero {
  background: #050505;
}

body.performance-mode .autoplay-frame {
  opacity: 0.56;
}

body.performance-mode .living-marquee {
  border-color: var(--line);
  background: #050505;
  color: var(--acid);
  box-shadow: none;
}

body.performance-mode .topbar nav a,
body.performance-mode .toolbar button,
body.performance-mode .language-switcher button,
body.performance-mode .reading-intro,
body.performance-mode .reading-section,
body.performance-mode .expanded-card,
body.performance-mode .video-card,
body.performance-mode .support-card,
body.performance-mode .desktop-window,
body.performance-mode .hero-copy {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

body.performance-mode .topbar nav a,
body.performance-mode .toolbar button,
body.performance-mode .language-switcher button {
  box-shadow: none;
}

body.performance-mode .language-switcher {
  border-color: var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

body.performance-mode .language-switcher button.is-active,
body.performance-mode .mode-button.is-active,
body.performance-mode .icon-button.is-active,
body.performance-mode .edit-panel button {
  background: var(--acid);
  color: #080808;
}

body.performance-mode .shuffle-button {
  background: var(--hot) !important;
  color: #080808 !important;
}

body.performance-mode .reading-tab,
body.performance-mode .window-tab-content,
body.performance-mode .image-tile,
body.performance-mode .mediation-collage {
  border-color: var(--line);
  background: #050505;
  color: var(--ink);
}

body.performance-mode .mediation-collage figure {
  border-color: var(--line);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--line);
}

body.performance-mode .mediation-collage figcaption {
  border-color: var(--line);
  background: var(--acid);
  color: #080808;
}

body.performance-mode .window-tabs button,
body.performance-mode .desktop-window-bar button,
body.performance-mode .window-extent,
body.performance-mode .support-card a,
body.performance-mode .reading-tab a,
body.performance-mode .site-footer a {
  border-color: var(--line);
  background: #050505;
  color: var(--ink);
}

body.performance-mode .window-tabs button.is-active,
body.performance-mode .window-extent button {
  background: var(--hot);
  color: #080808;
}

body.performance-mode .desktop-window-bar {
  border-color: var(--line);
  background: var(--acid);
  color: #080808;
}

body.performance-mode .status-panel {
  border-color: var(--line);
  background: var(--hot);
  color: #080808;
  box-shadow: 6px 6px 0 var(--line);
}

body.performance-mode .site-footer {
  border-color: var(--line);
  background: #050505;
  color: var(--ink);
}

body.performance-mode .folder[data-key="puma"] {
  color: #f7f2dc;
}

body.performance-mode .folder::before,
body.performance-mode .tag-list span,
body.performance-mode .window-tags span,
body.performance-mode .window-meta span {
  color: #080808;
}

body.performance-mode .sysline,
body.performance-mode .file-type {
  color: var(--blue);
}

body.performance-mode .folder::before,
body.performance-mode .tag-list span,
body.performance-mode .window-tags span,
body.performance-mode .window-meta span {
  border-color: var(--line);
  background: var(--acid);
}

@keyframes boot-image-drift {
  0%,
  100% {
    transform: scale(1.04) translate(0, 0);
  }

  35% {
    transform: scale(1.07) translate(-1.2vw, 0.7vh);
  }

  62% {
    transform: scale(1.05) translate(1vw, -0.5vh);
  }
}

@keyframes type-line {
  from {
    max-width: 0;
  }

  to {
    max-width: 100%;
  }
}

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

  49%,
  100% {
    opacity: 0;
  }
}

@keyframes scrollText {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes boot-out {
  0%, 84% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes scan {
  from { opacity: 0.95; transform: translateX(-5vw); }
  to { opacity: 0; transform: translateX(105vw); }
}

@keyframes folder-breathe {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -4px;
  }
}

@keyframes folder-hover-glitch {
  0% {
    translate: 0 0;
    filter: saturate(1.25);
  }

  33% {
    translate: 5px -2px;
    filter: saturate(1.55) contrast(1.12);
  }

  66% {
    translate: -4px 3px;
    filter: saturate(1.4);
  }

  100% {
    translate: 2px -1px;
    filter: saturate(1.3);
  }
}

@keyframes folder-settle {
  0% {
    translate: 0 0;
  }

  42% {
    translate: 0 -10px;
  }

  70% {
    translate: 0 3px;
  }

  100% {
    translate: 0 0;
  }
}

@keyframes folder-shuffle {
  0%,
  100% {
    filter: none;
  }

  45% {
    translate: 5px -4px;
    filter: invert(1) saturate(1.6);
  }
}

@keyframes signal-breath {
  0%,
  100% {
    opacity: 0.18;
  }

  50% {
    opacity: 0.46;
  }
}

@keyframes puma-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(1deg);
  }

  50% {
    transform: translate(8px, -6px) rotate(-0.5deg);
  }
}

@keyframes puma-pulse {
  0% {
    transform: translate(-3px, 2px) rotate(-1deg);
  }

  50% {
    transform: translate(7px, -4px) rotate(1deg);
  }

  100% {
    transform: translate(-2px, 3px) rotate(-1deg);
  }
}

@keyframes folder-bug {
  0% {
    transform: translate(-1px, 1px) skewX(0deg);
    filter: none;
  }

  33% {
    transform: translate(6px, -2px) skewX(-4deg);
    filter: contrast(1.5);
  }

  66% {
    transform: translate(-5px, 3px) skewX(3deg);
    filter: saturate(1.6);
  }

  100% {
    transform: translate(2px, -1px) skewX(0deg);
    filter: none;
  }
}

@media (max-width: 1050px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .topbar nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .hero-image {
    width: 60vw;
  }

  .hero-copy {
    width: 62vw;
  }

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

@media (max-width: 760px) {
  body {
    background-size: 14px 14px;
  }

  .cursor-tag,
  .video-peek {
    display: none;
  }

  .topbar {
    position: sticky;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 6px;
    border-bottom-width: 3px;
    padding: 6px;
  }

  .brand {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .boot-log {
    max-height: calc(100svh - 28px);
    overflow-y: auto;
    width: calc(100vw - 18px);
    border-width: 2px;
    padding: 14px;
    font-size: 0.86rem;
  }

  .boot-title {
    font-size: clamp(2.15rem, 14vw, 4.4rem);
  }

  .boot-actions {
    grid-template-columns: 1fr;
  }

  .boot-choice[data-boot-choice="interactive"],
  .mode-switch {
    display: none;
  }

  .boot-choice.is-recommended::after {
    display: none;
  }

  .boot-choice {
    min-height: 84px;
    padding: 14px;
  }

  .topbar nav {
    grid-column: 1 / -1;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
    justify-content: flex-start;
    scroll-snap-type: x proximity;
  }

  .topbar nav a {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .toolbar {
    justify-content: flex-end;
  }

  .mode-switch {
    min-width: 118px;
    padding-inline: 8px !important;
    font-size: 0.66rem !important;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .desktop-hero {
    min-height: auto;
    padding: 12px;
    background: #111;
  }

  .hero-image,
  .hero-copy,
  .status-panel,
  .folder-stage {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
    margin: 0 0 14px;
  }

  .hero-image {
    min-height: 46vh;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 17vw, 5.5rem);
  }

  .folder-stage {
    display: grid;
    gap: 10px;
    pointer-events: auto;
  }

  .folder {
    position: relative;
    inset: auto !important;
    width: 100%;
    min-height: 94px;
    margin: 10px 0;
    transform: none !important;
    touch-action: manipulation;
  }

  .desktop-shuffle {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin: 0 0 14px;
  }

  .reading-tabs,
  .presentation-grid,
  .expanded-grid,
  .image-grid,
  .video-grid,
  .support-grid,
  .desktop-window-body {
    grid-template-columns: 1fr;
  }

  body.reading-mode .reading-view {
    gap: 30px;
    padding: 18px 10px 46px;
  }

  .reading-presentation {
    scroll-margin-top: 106px;
  }

  .section-head {
    margin-bottom: 16px;
  }

  .section-head h2 {
    max-width: 9ch;
    font-size: clamp(2.7rem, 15vw, 4.6rem);
  }

  .section-intro {
    margin-top: 12px;
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .presentation-card,
  .presentation-card:nth-child(2n),
  .presentation-card:hover,
  .presentation-card:focus-within,
  .presentation-card:nth-child(2n):hover,
  .presentation-card:nth-child(2n):focus-within {
    min-height: min(76svh, 480px);
    transform: none;
  }

  .presentation-copy {
    min-height: 126px;
    padding: 14px 62px 14px 14px;
  }

  .presentation-copy strong {
    font-size: clamp(1.65rem, 8.5vw, 2.7rem);
  }

  .presentation-copy small {
    font-size: 0.92rem;
  }

  .presentation-play {
    right: 12px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }

  .reading-section {
    scroll-margin-top: 106px;
    border-width: 2px;
    box-shadow: 5px 5px 0 #080808;
  }

  .reading-bar {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.64rem;
  }

  .reading-section-content {
    padding: 14px;
  }

  .reading-section h2 {
    max-width: 10ch;
    font-size: clamp(2.15rem, 11vw, 3.8rem);
    line-height: 0.86;
  }

  .reading-media {
    margin: 14px 0;
    box-shadow: 5px 5px 0 #080808;
  }

  .reading-tab {
    padding: 13px;
    box-shadow: 4px 4px 0 #080808;
  }

  .reading-tab p,
  .window-tab-content p {
    font-size: 0.98rem;
    line-height: 1.48;
  }

  .desktop-window {
    left: 6px !important;
    top: 6px !important;
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
  }

  .desktop-window-body {
    max-height: calc(100vh - 52px);
  }

  .mediation-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    min-height: 0;
  }

  .mediation-collage figure,
  .mediation-collage figure:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    transform: none;
  }

  .window-side img,
  .window-side iframe {
    min-height: 200px;
  }

  .edit-panel {
    display: none;
  }
}

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