/* ============================================================
   /lab/ — 1995 → 2035
   Two operating systems, evolving in parallel.
   Interactive desktop: clickable icons, draggable windows.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --t-fast: 200ms;
  --t-med: 480ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Win9x palette */
  --w9x-gray: #c0c0c0;
  --w9x-gray-dark: #808080;
  --w9x-gray-darker: #404040;
  --w9x-gray-light: #dfdfdf;
  --w9x-white: #ffffff;
  --w9x-black: #000000;
  --w9x-titlebar-from: #000080;
  --w9x-titlebar-to:   #1084d0;
  --w9x-titlebar-inactive-from: #808080;
  --w9x-titlebar-inactive-to:   #b5b5b5;
  --w9x-titlebar-text: #ffffff;
  --w9x-desktop-teal:  #008080;

  /* Win2000 palette */
  --w2k-gray: #d4d0c8;
  --w2k-titlebar-from: #0a246a;
  --w2k-titlebar-to: #a6caf0;
  --w2k-desktop: #3a6ea5;

  /* XP palette */
  --xp-bg: #5fa0e9;
  --xp-blue: #0058e6;
  --xp-blue-light: #3c9eef;
  --xp-blue-dark: #0036ab;
  --xp-taskbar-from: #245edc;
  --xp-taskbar-to: #3a7bee;
  --xp-start-from: #5eac56;
  --xp-start-mid: #3f9032;
  --xp-start-to: #36791f;

  /* Mac palette */
  --mac-window-bg: #ececec;
  --mac-titlebar-from: #e8e8e8;
  --mac-titlebar-to:   #c8c8c8;
  --mac-text: #1d1d1f;
  --mac-text-muted: #6e6e73;

  /* Future palette */
  --future-bg: #07090f;
  --future-text: #f3f3ee;
  --future-text-soft: rgba(243, 243, 238, 0.78);
  --future-text-muted: rgba(243, 243, 238, 0.56);
  --future-line: rgba(255, 255, 255, 0.10);
  --future-blue: #6c98ff;
  --future-violet: #b29bff;
  --future-teal: #5cd9b9;
}

/* ============================================================
   Cursors — per-era body class
   ============================================================ */
.era-context-win95,
.era-context-win98,
.era-context-win2k,
.era-context-winxp {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path d='M5 3 L5 23 L10 18 L13 24 L16 22.5 L13 17 L20 17 Z' fill='white' stroke='black' stroke-width='1.4' stroke-linejoin='miter'/></svg>") 4 3, auto;
}

.era-context-mac {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><path d='M5 3 L5 20 L9 17 L12 22 L14 21 L11 16 L17 16 Z' fill='black' stroke='white' stroke-width='1' stroke-linejoin='round'/></svg>") 4 3, auto;
}

.era-context-future {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><circle cx='10' cy='10' r='4' fill='%236c98ff' opacity='0.85'/><circle cx='10' cy='10' r='8' fill='none' stroke='%23b29bff' stroke-width='1' opacity='0.5'/></svg>") 10 10, auto;
}

/* Hand cursor on interactive elements in retro eras */
.era-context-win95 a, .era-context-win95 button, .era-context-win95 [data-window], .era-context-win95 [data-action],
.era-context-win98 a, .era-context-win98 button, .era-context-win98 [data-window], .era-context-win98 [data-action],
.era-context-win2k a, .era-context-win2k button, .era-context-win2k [data-window], .era-context-win2k [data-action],
.era-context-winxp a, .era-context-winxp button, .era-context-winxp [data-window], .era-context-winxp [data-action] {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path d='M11 4 L11 16 L9 14 L7 16 L11 22 L17 22 L17 16 L19 16 L19 12 L21 12 L21 10 L23 10 L23 8 L11 4 Z' fill='white' stroke='black' stroke-width='1.2' stroke-linejoin='miter'/></svg>") 11 4, pointer;
}

/* Drag cursor on titlebars */
[data-drag-handle] {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><path d='M14 4 L11 7 L13 7 L13 13 L7 13 L7 11 L4 14 L7 17 L7 15 L13 15 L13 21 L11 21 L14 24 L17 21 L15 21 L15 15 L21 15 L21 17 L24 14 L21 11 L21 13 L15 13 L15 7 L17 7 Z' fill='white' stroke='black' stroke-width='1.2'/></svg>") 14 14, move;
  user-select: none;
}

/* ============================================================
   Body & layout
   ============================================================ */
html, body {
  width: 100%;
  min-height: 100vh;
  background: var(--w9x-desktop-teal);
  overflow-x: hidden;
  font-family: 'Tahoma', 'MS Sans Serif', 'Geneva', sans-serif;
  color: var(--w9x-black);
  -webkit-font-smoothing: antialiased;
}

body {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overflow-y: auto;
  height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

.lab { position: relative; z-index: 1; }

.era {
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

.era__desktop {
  width: 100%;
  height: 100%;
  position: relative;
}

/* ============================================================
   FIXED OVERLAY UI
   ============================================================ */
.sound-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 80;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background var(--t-fast);
}

.sound-toggle:hover { background: rgba(0, 0, 0, 0.55); }
.sound-toggle[aria-pressed="true"] .sound-toggle__slash { display: none; }
.sound-toggle[aria-pressed="true"] .sound-toggle__waves { opacity: 1; }

.era-pager {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  pointer-events: none;
  user-select: none;
}

.era-pager__year { font-weight: 600; min-width: 36px; }
.era-pager__dots { display: inline-flex; align-items: center; gap: 6px; }

.era-pager__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background var(--t-fast), transform var(--t-fast);
}

.era-pager__dot.is-active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.4);
}

/* ============================================================
   BOOT OVERLAY
   ============================================================ */
.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease-out);
}

.boot-overlay.is-active { opacity: 1; pointer-events: auto; }

.boot-overlay__inner {
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Inter', sans-serif;
  max-width: 320px;
  padding: 0 24px;
}

.boot-overlay__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-size: 18px;
  font-weight: 500;
}

.boot-overlay__logo {
  font-size: 24px;
  color: var(--future-violet);
  animation: bootSpin 1.6s linear infinite;
}

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

.boot-overlay__bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 18px;
}

.boot-overlay__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--future-violet), var(--future-blue), var(--future-teal));
  transition: width 800ms var(--ease-out);
}

.boot-overlay.is-active .boot-overlay__fill { width: 100%; }

.boot-overlay__hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

/* ============================================================
   DESKTOP ICONS
   ============================================================ */
.era--win95 { background: var(--w9x-desktop-teal); }
.era--win98 {
  background: var(--w9x-desktop-teal);
  background-image:
    radial-gradient(circle at 30% 40%, rgba(0,100,150,0.25), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0,180,200,0.18), transparent 50%);
}
.era--win2k {
  background: var(--w2k-desktop);
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(0,40,80,0.5), transparent 70%),
    linear-gradient(180deg, #5a8ec5, #3a6ea5);
}

.desktop-icons {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: 88px;
  gap: 14px;
  list-style: none;
  z-index: 4;
}

.xp-icons { z-index: 4; }

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  outline: none;
  transition: background var(--t-fast);
  border-radius: 3px;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  background: rgba(0, 0, 128, 0.45);
}

.desktop-icon__glyph {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.4));
}

.desktop-icon__label {
  color: #fff;
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
  text-shadow: 1px 1px 0 #000;
  user-select: none;
}

/* ============================================================
   WIN9x / Win2K WINDOWS
   ============================================================ */
.win95-window {
  position: absolute;
  left: var(--x, 200px);
  top: var(--y, 80px);
  width: var(--w, 540px);
  max-width: calc(100% - 32px);
  background: var(--w9x-gray);
  border: 2px solid var(--w9x-gray-light);
  border-right-color: var(--w9x-gray-darker);
  border-bottom-color: var(--w9x-gray-darker);
  box-shadow:
    inset 1px 1px 0 var(--w9x-white),
    inset -1px -1px 0 var(--w9x-gray-dark),
    3px 3px 0 rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  font-family: 'Tahoma', 'MS Sans Serif', 'Geneva', sans-serif;
  font-size: 13px;
  z-index: 5;
  max-height: calc(100vh - 90px);
}

.win95-window.is-open {
  display: flex;
}

.win95-window.is-minimized {
  display: none;
}

.win95-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 4px 3px 6px;
  background: linear-gradient(90deg, var(--w9x-titlebar-inactive-from) 0%, var(--w9x-titlebar-inactive-to) 100%);
  color: var(--w9x-titlebar-text);
  font-weight: bold;
  font-size: 12px;
  user-select: none;
  flex-shrink: 0;
}

.win95-window.is-active .win95-titlebar {
  background: linear-gradient(90deg, var(--w9x-titlebar-from) 0%, var(--w9x-titlebar-to) 100%);
}

.win2k-titlebar {
  padding: 4px 5px 4px 8px;
}

.win95-window.is-active .win2k-titlebar {
  background: linear-gradient(90deg, var(--w2k-titlebar-from) 0%, var(--w2k-titlebar-to) 100%);
}

.win95-titlebar__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
}

.win95-titlebar__controls { display: inline-flex; gap: 2px; }

.win95-btn {
  width: 22px;
  height: 20px;
  background: var(--w9x-gray);
  border: 1px solid var(--w9x-gray-light);
  border-right-color: var(--w9x-gray-darker);
  border-bottom-color: var(--w9x-gray-darker);
  box-shadow: inset 1px 1px 0 var(--w9x-white), inset -1px -1px 0 var(--w9x-gray-dark);
  color: var(--w9x-black);
  font-size: 11px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.win95-btn:active {
  border-color: var(--w9x-gray-darker);
  border-right-color: var(--w9x-gray-light);
  border-bottom-color: var(--w9x-gray-light);
  box-shadow: inset 1px 1px 0 var(--w9x-gray-dark), inset -1px -1px 0 var(--w9x-white);
}

.win95-menubar {
  display: flex;
  gap: 14px;
  padding: 3px 8px;
  background: var(--w9x-gray);
  font-size: 12px;
  border-bottom: 1px solid var(--w9x-gray-dark);
  flex-shrink: 0;
}

.win95-content {
  background: var(--w9x-white);
  padding: 18px 22px;
  font-family: 'Tahoma', 'MS Sans Serif', monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--w9x-black);
  overflow-y: auto;
  flex: 1;
  border: 1px solid var(--w9x-gray-dark);
  border-top-color: var(--w9x-gray-darker);
  border-left-color: var(--w9x-gray-darker);
  border-right-color: var(--w9x-white);
  border-bottom-color: var(--w9x-white);
  margin: 2px;
}

.win95-content--list { padding: 12px 14px; }
.win95-content--center { text-align: center; padding: 30px 22px; }
.win95-content p { margin-bottom: 12px; }
.win95-content p:last-child { margin-bottom: 0; }
.win95-content strong { color: #000080; font-weight: bold; }
.win95-hint { color: #808080; font-style: italic; font-size: 11px; margin-top: 14px; }

.win95-cursor-blink {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  animation: blink 1s steps(2, end) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.win95-drive {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
}

.win95-drive:hover {
  background: var(--w9x-titlebar-from);
  color: #fff;
}

/* TASKBAR */
.win95-taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: var(--w9x-gray);
  border-top: 2px solid var(--w9x-gray-light);
  box-shadow: inset 0 1px 0 var(--w9x-white);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  font-size: 12px;
  z-index: 10;
}

.win95-start {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  height: 22px;
  background: var(--w9x-gray);
  border: 1px solid var(--w9x-gray-light);
  border-right-color: var(--w9x-gray-darker);
  border-bottom-color: var(--w9x-gray-darker);
  box-shadow: inset 1px 1px 0 var(--w9x-white), inset -1px -1px 0 var(--w9x-gray-dark);
  font-weight: bold;
  color: var(--w9x-black);
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.win95-start__flag {
  width: 16px;
  height: 14px;
  background:
    linear-gradient(135deg, #ff5050 0 50%, transparent 50%),
    linear-gradient(45deg, #50d050 0 50%, transparent 50%),
    linear-gradient(225deg, #5050ff 0 50%, transparent 50%),
    linear-gradient(315deg, #ffd000 0 50%, transparent 50%);
  background-size: 50% 50%;
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
  background-repeat: no-repeat;
  display: inline-block;
}

.win95-taskbar__items {
  display: inline-flex;
  gap: 3px;
  flex: 1;
  padding: 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.win95-taskbar__items::-webkit-scrollbar { display: none; }

.taskbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 22px;
  background: var(--w9x-gray);
  border: 1px solid var(--w9x-gray-light);
  border-right-color: var(--w9x-gray-darker);
  border-bottom-color: var(--w9x-gray-darker);
  box-shadow: inset 1px 1px 0 var(--w9x-white), inset -1px -1px 0 var(--w9x-gray-dark);
  font-size: 11px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}

.taskbar-item.is-active {
  background: var(--w9x-gray-light);
  border-color: var(--w9x-gray-dark);
  border-right-color: var(--w9x-gray-light);
  border-bottom-color: var(--w9x-gray-light);
  box-shadow: inset 1px 1px 0 var(--w9x-gray-dark), inset -1px -1px 0 var(--w9x-white);
}

.win95-tray {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  height: 22px;
  background: var(--w9x-gray);
  border: 1px solid var(--w9x-gray-dark);
  border-right-color: var(--w9x-white);
  border-bottom-color: var(--w9x-white);
  box-shadow: inset 1px 1px 0 var(--w9x-gray-dark), inset -1px -1px 0 var(--w9x-white);
  font-size: 11px;
  flex-shrink: 0;
}

/* WIN98 specifics */
.win98-toolbar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--w9x-gray);
  border-bottom: 1px solid var(--w9x-gray-dark);
  flex-shrink: 0;
}

.win98-toolbar__btn {
  padding: 4px 10px;
  background: var(--w9x-gray);
  border: 1px solid var(--w9x-gray-light);
  border-right-color: var(--w9x-gray-darker);
  border-bottom-color: var(--w9x-gray-darker);
  box-shadow: inset 1px 1px 0 var(--w9x-white), inset -1px -1px 0 var(--w9x-gray-dark);
  font-size: 11px;
}

.win98-address {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: var(--w9x-gray);
  border-bottom: 1px solid var(--w9x-gray-dark);
  font-size: 11px;
  flex-shrink: 0;
}

.win98-address label { color: var(--w9x-gray-darker); }

.win98-address__bar {
  flex: 1;
  background: var(--w9x-white);
  padding: 3px 6px;
  border: 1px solid var(--w9x-gray-dark);
  border-right-color: var(--w9x-white);
  border-bottom-color: var(--w9x-white);
  box-shadow: inset 1px 1px 0 var(--w9x-gray-darker);
  font-size: 11px;
  font-family: 'Tahoma', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win98-link { color: #0000ee; text-decoration: underline; }

.win98-construction {
  font-size: 22px;
  filter: drop-shadow(0 0 4px rgba(255, 200, 0, 0.7));
}

.win98-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 12px 0;
  height: 36px;
}

.win98-waveform span {
  flex: 1;
  background: #00aa00;
  border-radius: 1px;
  animation: waveform 1.2s ease-in-out infinite alternate;
}

.win98-waveform span:nth-child(2n) { animation-delay: 0.1s; height: 70%; }
.win98-waveform span:nth-child(3n) { animation-delay: 0.2s; height: 30%; }
.win98-waveform span:nth-child(5n) { animation-delay: 0.3s; height: 90%; }
.win98-waveform span:nth-child(7n) { animation-delay: 0.4s; height: 50%; }

@keyframes waveform {
  from { transform: scaleY(0.2); }
  to { transform: scaleY(1); }
}

.win98-buddylist {
  font-family: 'Tahoma', monospace;
  font-size: 12px;
  line-height: 1.9;
  background: #fff;
  border: 1px solid #888;
  padding: 8px 12px;
}

/* WIN2K specifics */
.win2k-window {
  background: var(--w2k-gray);
  box-shadow:
    inset 1px 1px 0 var(--w9x-white),
    inset -1px -1px 0 var(--w9x-gray-dark),
    4px 4px 14px rgba(0, 0, 0, 0.4);
}

.win2k-code .win2k-pre {
  background: #000;
  color: #00ff00;
  padding: 14px 16px;
  margin: 12px 0;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  border: 1px solid #333;
}

.win2k-progress {
  width: 100%;
  height: 16px;
  background: #fff;
  border: 1px solid var(--w9x-gray-dark);
  border-right-color: var(--w9x-white);
  border-bottom-color: var(--w9x-white);
  box-shadow: inset 1px 1px 0 var(--w9x-gray-darker);
  display: flex;
  margin: 12px 0;
  overflow: hidden;
}

.win2k-progress__fill {
  background: repeating-linear-gradient(90deg, #000080 0 8px, transparent 8px 10px);
  height: 100%;
  width: 0;
  animation: progressFill 4s linear infinite;
}

@keyframes progressFill {
  from { width: 0; }
  to { width: 100%; }
}

.win2k-paint-canvas {
  background: #fff;
  border: 1px solid #888;
  border-radius: 0;
  padding: 8px;
  margin-bottom: 8px;
}

/* ============================================================
   WINDOWS XP
   ============================================================ */
.era--winxp { background: var(--xp-bg); }

.xp-bliss { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.xp-bliss__sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #6db4ff 0%, #95cdff 40%, #c6e4ff 65%, #a4d76d 65.5%, #5fa539 100%);
}

.xp-bliss__cloud {
  position: absolute;
  width: 180px;
  height: 60px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  filter: blur(8px);
}

.xp-bliss__cloud--1 { top: 12%; left: 12%; transform: scale(0.8); }
.xp-bliss__cloud--2 { top: 22%; left: 65%; width: 240px; transform: scale(1.1); opacity: 0.7; }
.xp-bliss__cloud--3 { top: 32%; left: 30%; width: 150px; opacity: 0.6; }

.xp-bliss__hill {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 130%;
  height: 45%;
  background: radial-gradient(ellipse 80% 100% at 40% 100%, #6dba3e 0%, #4a9930 60%, #38791e 100%);
  border-radius: 50% 50% 0 0 / 35% 35% 0 0;
  transform: translateY(8%);
}

.xp-window {
  position: absolute;
  left: var(--x, 200px);
  top: var(--y, 80px);
  width: var(--w, 580px);
  max-width: calc(100% - 32px);
  background: var(--xp-blue);
  border: 3px solid var(--xp-blue);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: none;
  flex-direction: column;
  font-family: 'Tahoma', sans-serif;
  font-size: 13px;
  z-index: 5;
  max-height: calc(100vh - 90px);
}

.xp-window.is-open { display: flex; }
.xp-window.is-minimized { display: none; }

.xp-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 10px;
  background: linear-gradient(180deg, #7da6db 0%, #5586b6 100%);
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.xp-window.is-active .xp-titlebar {
  background: linear-gradient(180deg, #0058e6 0%, #1370d4 40%, #0b58b4 100%);
}

.xp-titlebar__text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-titlebar__controls { display: inline-flex; gap: 2px; }

.xp-btn {
  width: 22px;
  height: 20px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.xp-btn--min, .xp-btn--max {
  background: linear-gradient(180deg, #6097e6 0%, #2c64b6 100%);
}

.xp-btn--close {
  background: linear-gradient(180deg, #e87760 0%, #b73a1d 100%);
}

.xp-content {
  background: #ece9d8;
  padding: 22px 26px;
  flex: 1;
  overflow-y: auto;
  color: var(--w9x-black);
  line-height: 1.6;
  font-size: 13.5px;
}

.xp-content p { margin-bottom: 12px; }
.xp-content p:last-child { margin-bottom: 0; }
.xp-content strong { color: var(--xp-blue-dark); font-weight: bold; }

.xp-taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  z-index: 10;
  background: linear-gradient(180deg, var(--xp-taskbar-from) 0%, var(--xp-taskbar-to) 100%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.xp-start {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px 0 12px;
  background: linear-gradient(180deg, var(--xp-start-from) 0%, var(--xp-start-mid) 55%, var(--xp-start-to) 100%);
  border: none;
  border-radius: 0 16px 16px 0;
  color: #fff;
  font-family: 'Tahoma', sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 14px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.xp-start__flag { font-size: 14px; }

.xp-taskbar__items {
  display: inline-flex;
  gap: 3px;
  flex: 1;
  padding: 0 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.xp-taskbar__items::-webkit-scrollbar { display: none; }

.xp-taskbar__items .taskbar-item {
  height: 24px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow: none;
}

.xp-taskbar__items .taskbar-item.is-active {
  background: linear-gradient(180deg, #1370d4, #0058e6);
  border-color: rgba(255, 255, 255, 0.35);
}

.xp-tray {
  background: linear-gradient(180deg, #0058e6, #0b50b8);
  border-radius: 6px 0 0 6px;
  padding: 0 12px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 11.5px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

/* ============================================================
   MAC ERA
   ============================================================ */
.era--mac { background: #2c3e50; }

.mac-desktop {
  background: linear-gradient(180deg, #1f3a5f 0%, #3a6da8 50%, #6ba5e0 100%);
}

.mac-wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(180, 220, 255, 0.4), transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(120, 180, 255, 0.35), transparent 55%);
  z-index: 0;
}

.mac-menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(238,238,238,0.92));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  color: var(--mac-text);
  z-index: 10;
}

.mac-menubar__apple { font-size: 16px; }
.mac-menubar__item--app { font-weight: 600; }

.mac-menubar__right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.mac-window {
  position: absolute;
  left: var(--x, 200px);
  top: var(--y, 80px);
  width: var(--w, 580px);
  max-width: calc(100% - 32px);
  background: var(--mac-window-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.12);
  display: none;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  z-index: 5;
  max-height: calc(100vh - 130px);
}

.mac-window.is-open { display: flex; }
.mac-window.is-minimized { display: none; }

.mac-window.is-active {
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.18);
}

.mac-titlebar {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: linear-gradient(180deg, var(--mac-titlebar-from) 0%, var(--mac-titlebar-to) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  flex-shrink: 0;
}

.mac-traffic { display: inline-flex; align-items: center; gap: 7px; }

.mac-traffic__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.mac-traffic__dot--close { background: radial-gradient(circle at 35% 30%, #ff8a80, #ff5f57); }
.mac-traffic__dot--min   { background: radial-gradient(circle at 35% 30%, #ffd24e, #ffbd2e); }
.mac-traffic__dot--max   { background: radial-gradient(circle at 35% 30%, #5fe066, #28c940); }

.mac-window:not(.is-active) .mac-traffic__dot {
  background: #d4d4d4;
}

.mac-titlebar__text {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--mac-text);
  pointer-events: none;
}

.mac-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #f8f8f8, #e2e2e2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  flex-shrink: 0;
}

.mac-toolbar__nav { display: inline-flex; gap: 4px; color: var(--mac-text-muted); font-size: 14px; }

.mac-toolbar__url {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12.5px;
  color: var(--mac-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mac-toolbar__share {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8f8f8, #e2e2e2);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  color: var(--mac-text-muted);
}

.mac-content {
  background: #fff;
  padding: 24px 28px;
  flex: 1;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--mac-text);
}

.mac-content--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mac-content p { margin-bottom: 13px; }
.mac-content p:last-child { margin-bottom: 0; }
.mac-content strong { color: #007aff; font-weight: 600; }

.mac-breath {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 217, 185, 0.5), rgba(108, 152, 255, 0.25));
  margin: 28px auto 18px;
  animation: macBreath 6s ease-in-out infinite;
}

@keyframes macBreath {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.5); opacity: 1; }
}

.mac-dock {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.mac-dock__inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.mac-dock__icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(0,0,0,0.05));
  border-radius: 9px;
  transition: transform var(--t-fast) var(--ease-out);
  cursor: pointer;
}

.mac-dock__icon:hover {
  transform: translateY(-12px) scale(1.4);
}

.mac-dock__divider {
  width: 1px;
  height: 28px;
  background: rgba(0, 0, 0, 0.2);
  margin: 0 4px;
}

/* ============================================================
   2035 FUTURE
   ============================================================ */
.era--future {
  background: var(--future-bg);
  color: var(--future-text);
}

.era--future .era__desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
}

.future-ambient { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.future-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}

.future-orb--1 {
  width: 600px; height: 600px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(178, 155, 255, 0.6), transparent 70%);
  animation: futureDrift1 22s ease-in-out infinite alternate;
}

.future-orb--2 {
  width: 580px; height: 580px;
  bottom: -150px; right: -120px;
  background: radial-gradient(circle, rgba(92, 217, 185, 0.45), transparent 70%);
  animation: futureDrift2 26s ease-in-out infinite alternate;
}

.future-orb--3 {
  width: 720px; height: 720px;
  top: 30%; left: 30%;
  background: radial-gradient(circle, rgba(108, 152, 255, 0.3), transparent 70%);
  animation: futureDrift3 30s ease-in-out infinite alternate;
}

@keyframes futureDrift1 { to { transform: translate(60px, 80px); } }
@keyframes futureDrift2 { to { transform: translate(-80px, -60px); } }
@keyframes futureDrift3 { to { transform: translate(40px, -50px) scale(1.1); } }

.future-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
}

.future-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
  font-family: 'Inter', -apple-system, sans-serif;
}

.future-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--future-text-muted);
  margin-bottom: 28px;
}

.future-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--future-teal);
  box-shadow: 0 0 14px rgba(92, 217, 185, 0.8);
  animation: futurePulse 2.4s ease-in-out infinite;
}

@keyframes futurePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.future-headline {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.future-grad {
  background: linear-gradient(120deg, var(--future-violet) 0%, var(--future-blue) 60%, var(--future-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'Instrument Serif', 'Iowan Old Style', serif;
  font-style: italic;
  font-weight: 400;
}

.future-body {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--future-text-soft);
  margin-bottom: 18px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.future-body--quiet {
  color: var(--future-text-muted);
  font-size: clamp(13.5px, 1vw, 14.5px);
  font-style: italic;
  font-family: 'Instrument Serif', serif;
}

.future-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 30px 0;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--future-line);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.future-pair__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.future-pair__label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--future-text-muted);
  font-weight: 500;
}

.future-pair__list {
  font-size: 13px;
  color: var(--future-text);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.future-pair__divider {
  color: var(--future-blue);
  font-size: 22px;
}

.future-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
  margin-bottom: 36px;
}

.future-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--future-text);
  color: var(--future-bg);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 8px 24px rgba(0, 0, 0, 0.25);
}

.future-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 14px 32px rgba(108, 152, 255, 0.22);
}

.future-cta--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--future-text);
  border: 1px solid var(--future-line);
  box-shadow: none;
}

.future-cta--ghost:hover { background: rgba(255, 255, 255, 0.09); }

.future-signoff {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--future-text-muted);
}

.future-signoff__line {
  width: 36px;
  height: 1px;
  background: var(--future-line);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .future-orb,
  .future-eyebrow__dot,
  .boot-overlay__logo,
  .win95-cursor-blink,
  .mac-breath,
  .win98-waveform span,
  .win2k-progress__fill {
    animation: none !important;
  }

  body {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
}

/* ============================================================
   MOBILE — simplified, stacked
   ============================================================ */
@media (max-width: 820px) {
  body {
    scroll-snap-type: none;
    height: auto;
    overflow-y: visible;
  }

  .era {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: 64px 16px 32px;
    scroll-snap-align: none;
  }

  .era__desktop {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: auto;
  }

  /* Hide desktop chrome that doesn't translate */
  .desktop-icons,
  .win95-taskbar,
  .xp-taskbar,
  .mac-dock,
  .mac-menubar,
  .xp-bliss__cloud {
    display: none;
  }

  /* All windows become inline stacked cards */
  .win95-window,
  .win2k-window,
  .xp-window,
  .mac-window {
    position: static;
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin: 0;
    display: flex !important; /* show all on mobile so user sees everything */
  }

  /* But still let them be 'hidden' if the user explicitly closed them on mobile */
  .win95-window.is-mobile-hidden,
  .win2k-window.is-mobile-hidden,
  .xp-window.is-mobile-hidden,
  .mac-window.is-mobile-hidden {
    display: none !important;
  }

  /* Disable drag visual cue on mobile */
  [data-drag-handle] { cursor: default; }

  .era--winxp {
    background: linear-gradient(180deg, #6db4ff 0%, #95cdff 30%, #a4d76d 30.5%, #5fa539 100%);
  }

  .era--mac {
    background: linear-gradient(180deg, #1f3a5f 0%, #3a6da8 50%, #6ba5e0 100%);
  }

  .future-pair {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .future-pair__divider {
    transform: rotate(90deg);
  }

  .future-actions {
    flex-direction: column;
    width: 100%;
  }

  .future-cta { justify-content: center; }

  .era-pager {
    top: 14px;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    padding: 6px 12px;
    font-size: 10px;
  }

  .sound-toggle {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .era { padding: 56px 12px 24px; }

  .win95-content,
  .xp-content,
  .mac-content {
    padding: 16px 16px;
    font-size: 13.5px;
  }

  .future-headline { font-size: 28px; }
}
