/* ============================================================
   System 1 — Macintosh Portfolio
   Strict 1-bit aesthetic. Black & white only; "gray" = dither.
   ============================================================ */

@font-face {
  font-family: 'Chicago';
  src: url('assets/fonts/ChicagoFLF.woff2') format('woff2'),
       url('assets/fonts/ChicagoFLF.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monaco';
  src: url('assets/fonts/monaco.woff2') format('woff2'),
       url('assets/fonts/monaco.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --beige: #d9d0c1;
  --beige-hi: #ece4d7;
  --beige-lo: #b9ad99;
  --beige-shadow: #8c8270;
  --screen-glow: rgba(150, 185, 255, 0.16);
  --menubar-h: 22px;
  /* classic 1-bit Macintosh arrow pointer (crisp, hotspot at the tip) */
  --cursor-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24' shape-rendering='crispEdges'%3E%3Cpath d='M2 1 L2 18 L6 14 L9 21 L12 20 L9 13 L15 13 Z' fill='black' stroke='white' stroke-width='1' stroke-linejoin='miter'/%3E%3C/svg%3E") 2 1, default;
}

/* Green phosphor monitor mode */
.screen.mono-green {
  --paper: #d6f0cf;
  --ink: #06210a;
  --screen-glow: rgba(120, 255, 150, 0.18);
}
.screen.mono-green .crt-vignette {
  mix-blend-mode: multiply;
}

/* Amber phosphor monitor mode */
.screen.mono-amber {
  --paper: #f6e8c8;
  --ink: #3a2600;
  --screen-glow: rgba(255, 196, 87, 0.20);
}
.screen.mono-amber .crt-vignette {
  mix-blend-mode: multiply;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #1b1b1f;
  font-family: 'Chicago', 'Geneva', 'Lucida Grande', system-ui, sans-serif;
  overflow: hidden;
  cursor: var(--cursor-arrow);
}

/* Keep the Macintosh arrow everywhere — clickable chrome must not flip to the
   OS hand pointer (which breaks the 1984 illusion). Intentional cursors below
   (I-beam text, zoom-in pictures, resize grow-box, watch/busy) still win by
   higher specificity. */
a, button, summary, [role="button"], [onclick],
.mac-btn, .menu-item, .dropdown .row, .user-card,
.filelist .file, .icon, .icon *, .close-box,
.scroll-v .arrow, .car-nav, .lb-nav, .titlebar {
  cursor: var(--cursor-arrow);
}

img { image-rendering: pixelated; }

/* ============================================================
   CHASSIS — beige Macintosh body
   ============================================================ */

.stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 0%, #34343c 0%, #161619 70%);
  padding: 4px;
}

.chassis {
  position: relative;
  width: min(99vw, 1600px);
  height: min(99vh, 1120px);
  border-radius: 22px 22px 26px 26px / 18px 18px 34px 34px;
  background:
    linear-gradient(160deg, var(--beige-hi) 0%, var(--beige) 38%, var(--beige-lo) 100%);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,0.55),
    inset 0 -10px 24px rgba(120,110,92,0.5),
    inset 0 0 0 2px rgba(255,255,255,0.18),
    0 28px 60px rgba(0,0,0,0.6),
    0 4px 0 rgba(0,0,0,0.3);
  padding: 16px 18px 70px 18px;
}

.chassis::before {
  /* subtle seam below the screen */
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 54px;
  height: 1px;
  background: rgba(140,130,112,0.5);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.led {
  position: absolute;
  left: 30px;
  bottom: 30px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b9ffce, #1f9c3f 60%, #0c5a22);
  box-shadow: 0 0 7px 2px rgba(58,220,110,0.7), inset 0 0 2px rgba(0,0,0,0.4);
}

.vents {
  position: absolute;
  right: 34px;
  bottom: 26px;
  display: flex;
  gap: 4px;
}
.vents span {
  width: 3px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(var(--beige-lo), var(--beige-shadow));
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.3);
}

.floppy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 44px;
  width: 132px;
  height: 7px;
  border-radius: 3px;
  background: linear-gradient(var(--beige-shadow), #5f574a);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.7), 0 1px 0 rgba(255,255,255,0.3);
}

.badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--beige-shadow);
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

/* ============================================================
   BEZEL + SCREEN
   ============================================================ */

.bezel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(160deg, #4a4640, #2c2925);
  padding: 10px;
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.8),
    inset 0 -1px 2px rgba(255,255,255,0.12);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--paper);
  overflow: hidden;
  border-radius: 8px / 10px;
  box-shadow:
    inset 0 0 70px var(--screen-glow),
    inset 0 0 14px rgba(0,0,0,0.35);
  transition: filter 0.25s ease;
}

/* CRT curvature — subtle barrel */
.screen.crt::after,
.crt-on .screen::after { }

.crt-on .screen {
  filter: contrast(1.04) brightness(1.02);
}

/* scanlines + glow + vignette layers */
.crt-scanlines,
.crt-vignette,
.crt-flicker {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.crt-scanlines {
  z-index: 8000;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.14) 0px,
    rgba(0,0,0,0.14) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}
.crt-vignette {
  z-index: 8001;
  background:
    radial-gradient(ellipse 120% 120% at 50% 50%,
      transparent 55%,
      rgba(0,0,0,0.28) 88%,
      rgba(0,0,0,0.5) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.crt-flicker {
  z-index: 8002;
  background: rgba(180,210,255,0.04);
  opacity: 0;
}
.crt-on .crt-scanlines { opacity: 1; }
.crt-on .crt-vignette { opacity: 1; }
.crt-on .crt-flicker { animation: flicker 5s steps(60) infinite; }
.crt-on .screen { transform: perspective(1400px) rotateX(0.4deg); }

@keyframes flicker {
  0%, 96%, 100% { opacity: 0; }
  97% { opacity: 0.5; }
  98% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .crt-on .crt-flicker { animation: none; }
}

/* ============================================================
   DITHER PATTERNS — the only "gray"
   ============================================================ */

.dither-50 {
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, var(--ink), var(--ink) 1px, transparent 1px, transparent 2px),
    repeating-linear-gradient(90deg, var(--ink), var(--ink) 1px, transparent 1px, transparent 2px);
  background-size: 2px 2px;
}
.dither-25 {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(45deg, var(--ink), var(--ink) 1px, transparent 1px, transparent 4px);
}
.pinstripe {
  background: repeating-linear-gradient(0deg, var(--ink) 0, var(--ink) 1px, var(--paper) 1px, var(--paper) 2px);
}

/* ============================================================
   MENU BAR
   ============================================================ */

.menubar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--menubar-h);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: stretch;
  padding: 0 6px;
  z-index: 6000;
  font-size: 14px;
  user-select: none;
}
.menubar .menu-item {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--ink);
  cursor: var(--cursor-arrow);
  position: relative;
  line-height: 1;
}
.menubar .menu-item.apple { padding: 0 10px; }
.menubar .menu-item.open,
.menubar .menu-item:active {
  background: var(--ink);
  color: var(--paper);
}
.apple-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
}
.apple-glyph::before {
  content: "\2766"; /* heart/flower mark — neutral brand glyph, not a trademark */
  font-size: 17px;
  line-height: 1;
}
.menubar .clock {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 13px;
}
.menubar .menu-item .ml { line-height: 1; pointer-events: none; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
  padding: 3px 0;
  z-index: 6500;
}
.dropdown .row {
  padding: 3px 14px 3px 22px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--ink);
  cursor: var(--cursor-arrow);
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
}
.dropdown .row .rl { flex: 1 1 auto; }
.dropdown .row .kbd {        /* right-aligned ⌘-shortcut hint */
  flex: 0 0 auto;
  font-family: 'Chicago', sans-serif;
  opacity: 0.85;
}
.dropdown .row.has:hover {
  background: var(--ink);
  color: var(--paper);
}
.dropdown .row.disabled { color: #9a9a9a; }
.mono-green .dropdown .row.disabled { color: #5f8a63; }
.mono-amber .dropdown .row.disabled { color: #9a7330; }
.dropdown .divider {
  height: 2px;
  margin: 3px 0;
  background: var(--paper);
  border-top: 1px dotted var(--ink);
}
.dropdown .row .check {
  position: absolute;
  left: 7px;
}

/* ============================================================
   DESKTOP + ICONS
   ============================================================ */

.desktop {
  position: absolute;
  top: var(--menubar-h);
  left: 0; right: 0; bottom: 0;
  overflow: hidden;
}
.desktop-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.icon {
  position: absolute;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px;
  cursor: var(--cursor-arrow);
  user-select: none;
  z-index: 5;
}
.icon .glyph {
  width: 48px;
  height: 44px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.icon .label {
  font-size: 12px;
  line-height: 1.05;
  text-align: center;
  color: var(--ink);
  background: var(--paper);
  padding: 0 3px;
  max-width: 82px;
  word-break: break-word;
}
.icon.selected .glyph { filter: none; }
.icon.selected .glyph::after {
  content: '';
  position: absolute;
  inset: -2px 0 -1px 0;
  background: var(--ink);
  mix-blend-mode: difference;
  pointer-events: none;
}
.icon.selected .label {
  background: var(--ink);
  color: var(--paper);
}

/* ---- pixel icon glyphs (built from simple blocks) ---- */
.g-doc, .g-resume {
  width: 32px; height: 40px;
  background: var(--paper);
  border: 2px solid var(--ink);
  position: relative;
  box-shadow: 0 0 0 0 var(--ink);
}
.g-doc::before, .g-resume::before {
  /* folded corner */
  content: '';
  position: absolute;
  top: -2px; right: -2px;
  width: 11px; height: 11px;
  background: var(--paper);
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.g-doc::after, .g-resume::after {
  /* text lines */
  content: '';
  position: absolute;
  left: 5px; right: 5px; top: 16px;
  height: 14px;
  background: repeating-linear-gradient(0deg, var(--ink) 0, var(--ink) 2px, transparent 2px, transparent 5px);
}
.g-resume { box-shadow: 3px 3px 0 -1px var(--ink); }

.g-folder {
  width: 42px; height: 32px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0 2px 2px 2px;
  position: relative;
}
.g-folder::before {
  content: '';
  position: absolute;
  top: -7px; left: -2px;
  width: 20px; height: 8px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-bottom: none;
  border-radius: 3px 5px 0 0;
}

.g-hd {
  width: 46px; height: 30px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 3px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
}
.g-hd::before {
  content: '';
  width: 12px; height: 4px;
  background: var(--ink);
  border-radius: 1px;
}
.g-hd::after {
  content: '';
  position: absolute;
  left: 6px; top: 6px;
  width: 4px; height: 4px;
  background: var(--ink);
  border-radius: 50%;
}

.g-mail {
  width: 44px; height: 30px;
  background: var(--paper);
  border: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.g-mail::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  width: 30px; height: 30px;
  transform: translateX(-50%) rotate(45deg);
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  transform-origin: center;
  top: -16px;
}

.g-trash {
  width: 30px; height: 38px;
  position: relative;
}
.g-trash::before {
  /* lid */
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 6px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 3px 3px 1px 1px;
}
.g-trash::after {
  /* can body */
  content: '';
  position: absolute;
  top: 7px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 31px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0 0 4px 4px;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 4px, var(--ink) 4px, var(--ink) 5px);
}
.g-trash.full::after {
  background-image:
    repeating-linear-gradient(90deg, transparent 0, transparent 4px, var(--ink) 4px, var(--ink) 5px);
}

/* ============================================================
   WINDOWS
   ============================================================ */

.win {
  position: absolute;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 0 var(--ink);
  display: flex;
  flex-direction: column;
  min-width: 240px;
  min-height: 150px;
  z-index: 10;
  overflow: hidden;            /* nothing (incl. a stray scroll thumb) may paint outside the window */
}
.win .titlebar {
  height: 20px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  position: relative;
  cursor: var(--cursor-arrow);
  user-select: none;
  background: var(--paper);
  flex: 0 0 auto;
}
.win.active .titlebar {
  background:
    repeating-linear-gradient(0deg, var(--ink) 0, var(--ink) 1px, var(--paper) 1px, var(--paper) 2px);
}
.win .titlebar:active { cursor: var(--cursor-arrow); }
.win .title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 0 8px;
  font-size: 13px;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win .close-box {
  width: 12px; height: 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  margin-left: 6px;
  flex: 0 0 auto;
  cursor: var(--cursor-arrow);
}
.win.active .close-box { background: var(--paper); }
.win .close-box:hover {
  background:
    repeating-linear-gradient(45deg, var(--ink) 0, var(--ink) 1px, var(--paper) 1px, var(--paper) 2px);
}
.win:not(.active) .titlebar .close-box { visibility: hidden; }
.win:not(.active) .title { color: var(--ink); }

.win .infoline {
  flex: 0 0 auto;
  border-bottom: 2px solid var(--ink);
  padding: 3px 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
}
.win .infoline .sep {
  width: 1px; height: 11px; background: var(--ink);
}

.win .win-body {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  min-height: 0;
}
.win .content {
  flex: 1 1 auto;
  overflow: auto;
  padding: 14px 16px;
  background: var(--paper);
  position: relative;
}
.win .content::-webkit-scrollbar { width: 0; height: 0; }
.win .content { scrollbar-width: none; }

/* right scrollbar */
.win .scroll-v {
  flex: 0 0 16px;
  border-left: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  min-height: 0;              /* let the column shrink to the window, never grow past it */
  overflow: hidden;
}
.win .scroll-v .arrow {
  height: 16px;
  border-bottom: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.win .scroll-v .arrow.down { border-bottom: none; border-top: 2px solid var(--ink); }
.win .scroll-v .track {
  flex: 1 1 auto;
  min-height: 0;             /* track height = true available space, independent of the thumb */
  overflow: hidden;          /* clip the thumb so its margin can't inflate the track (feedback loop) */
}
.win .scroll-v .track.dither-50 { }
.win .scroll-v .thumb {
  margin: 2px;
  background: var(--paper);
  border: 2px solid var(--ink);
  min-height: 22px;
}
.tri { width: 0; height: 0; }
.tri.up { border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid var(--ink); }
.tri.down { border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--ink); }

/* bottom-right grow box */
.win .growbox {
  position: absolute;
  right: 0; bottom: 0;
  width: 16px; height: 16px;
  background: var(--paper);
  border-left: 2px solid var(--ink);
  border-top: 2px solid var(--ink);
  cursor: nwse-resize;
  z-index: 3;
}
.win .growbox .mark {
  position: absolute;
  inset: 3px;
  border: 1px solid var(--ink);
}

/* marching ants drag outline */
.drag-ghost {
  position: absolute;
  z-index: 9000;
  pointer-events: none;
  border: 1px dashed var(--ink);
  background:
    linear-gradient(90deg, var(--ink) 50%, transparent 0) repeat-x,
    linear-gradient(90deg, var(--ink) 50%, transparent 0) repeat-x,
    linear-gradient(0deg, var(--ink) 50%, transparent 0) repeat-y,
    linear-gradient(0deg, var(--ink) 50%, transparent 0) repeat-y;
  background-size: 6px 1px, 6px 1px, 1px 6px, 1px 6px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  animation: ants 0.5s linear infinite;
}
@keyframes ants {
  to { background-position: 6px 0, -6px 100%, 0 -6px, 100% 6px; }
}

/* intro: animated fake mouse that opens About Me on entering the desktop */
.fake-cursor {
  position: absolute;
  z-index: 8600;
  width: 20px; height: 24px;
  pointer-events: none;
  transform-origin: 2px 2px;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.25));
}
.fake-cursor svg { display: block; }
.fake-cursor.click { animation: fc-click 0.16s steps(2) 2; }
@keyframes fc-click { 50% { transform: scale(0.78); } }
.fake-cursor.fade { opacity: 0; transition: opacity 0.3s ease; }
.intro-active, .intro-active * { cursor: none !important; }

/* zoom rectangles open animation */
.zoom-rect {
  position: absolute;
  z-index: 8500;
  pointer-events: none;
  border: 1px dotted var(--ink);
  animation: zoomgrow 0.26s steps(5) forwards;
}
@keyframes zoomgrow { to { opacity: 0; } }

/* ============================================================
   WINDOW CONTENT TYPOGRAPHY
   ============================================================ */
.content {
  font-family: 'Geneva', 'Lucida Grande', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.content h2 {
  font-family: 'Chicago', sans-serif;
  font-size: 20px;
  margin: 0 0 8px;
}
.content h3 {
  font-family: 'Chicago', sans-serif;
  font-size: 16px;
  margin: 14px 0 4px;
}
.content p { margin: 0 0 9px; }
/* secondary "information" line (dates, role, location) — one consistent style,
   same family as body so content pages don't mix typefaces */
.content .meta {
  font-family: 'Geneva', 'Lucida Grande', system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
  margin: -2px 0 8px;
}
.content a {
  color: var(--ink);
  text-decoration: underline;
}
.content a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.content .rule { border: none; border-top: 2px solid var(--ink); margin: 10px 0; }
.content .dotrule { border: none; border-top: 1px dotted var(--ink); margin: 10px 0; }
.content .mac-btn {
  font-family: 'Chicago', sans-serif;
  font-size: 13px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 3px 16px;
  cursor: var(--cursor-arrow);
  box-shadow: 1px 1px 0 0 var(--ink);
}
.content .mac-btn:hover { background: var(--ink); color: var(--paper); }
.content .mac-btn.default { box-shadow: 0 0 0 2px var(--ink), 2px 2px 0 1px var(--ink); }

/* file list inside folder/HD windows */
.filelist {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.filelist .file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  cursor: var(--cursor-arrow);
  user-select: none;
}
.filelist .file .mini {
  width: 26px; height: 26px;
  display: flex; align-items: flex-end; justify-content: center;
  flex: 0 0 26px;
}
.filelist .file .fname { font-size: 15px; font-family: 'Geneva', 'Lucida Grande', sans-serif; }
.filelist .file.selected { }
.filelist .file.selected .fname { background: var(--ink); color: var(--paper); }
.filelist .file.selected .mini { filter: invert(1); }
.mono-green .filelist .file.selected .mini { filter: none; }

/* dithered photo placeholder */
.photo-dither {
  width: 120px; height: 140px;
  border: 2px solid var(--ink);
  background:
    repeating-conic-gradient(var(--ink) 0% 25%, var(--paper) 0% 50%) 0 0 / 4px 4px;
  position: relative;
  flex: 0 0 auto;
}
.photo-dither .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--paper);
  border-top: 2px solid var(--ink);
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  font-size: 12px;
  text-align: center;
  padding: 2px;
  color: var(--ink);
}

.tag {
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 9px;
  padding: 2px 10px;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  font-size: 13px;
  margin: 0 4px 4px 0;
}

/* ---- framed picture carousel — one image at a time, ‹ › to navigate ---- */
.content .shots { margin-top: 6px; }
.content .shots-h {
  font-family: 'Chicago', sans-serif;
  font-size: 15px;
  margin: 14px 0 7px;
}
.content .gallery {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
/* the ‹ › navigation buttons flanking the stage */
.content .car-nav {
  flex: 0 0 30px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Chicago', sans-serif;
  font-size: 20px;
  line-height: 1;
  cursor: var(--cursor-arrow);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.content .car-nav:hover { background: var(--ink); color: var(--paper); }
.content .car-nav:active { background: var(--ink); color: var(--paper); }
/* white matte + black keyline = classic framed picture */
.content .car-stage {
  flex: 1 1 auto;
  min-width: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 1px 1px 0 0 var(--ink);
  padding: 4px;
}
.content .shot { margin: 0; cursor: var(--cursor-arrow); display: none; }
.content .shot.active { display: block; }
.content .shot .shot-frame { display: block; }
.content .shot .shot-frame img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;                 /* show the whole screenshot, no cropping */
  image-rendering: auto;               /* override global pixelated for photos */
  background: var(--paper);
}
/* caption + counter line under the carousel — consistent body font */
.content .car-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 5px;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  font-size: 13px;
  color: var(--ink);
}
.content .car-meta .car-count { flex: 0 0 auto; white-space: nowrap; }
/* phosphor modes: tint the photo to match the monitor */
.mono-green .content .shot .shot-frame img {
  filter: sepia(1) hue-rotate(58deg) saturate(1.8) brightness(0.96);
}
.mono-amber .content .shot .shot-frame img {
  filter: sepia(1) hue-rotate(-12deg) saturate(2) brightness(1);
}

/* Get Info window — classic two-column fact table */
.content table.ginfo { border-collapse: collapse; font-size: 14px; margin: 2px 0; }
.content table.ginfo td { padding: 2px 0; vertical-align: top; }
.content table.ginfo td:first-child { width: 78px; color: var(--ink); opacity: 0.75; padding-right: 10px; }

/* Control Panel — one row of buttons per setting */
.content .cp-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }

/* ---- picture viewer (click a thumbnail → opens enlarged in its own window) ---- */
.lightbox {
  position: absolute;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: var(--cursor-arrow);
}
.lightbox .lb-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;             /* dim the desktop behind the picture */
}
.picwin {
  position: relative;
  z-index: 1;
  max-width: 92%;
  max-height: 92%;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink), 0 0 0 4px var(--paper), 4px 4px 0 4px var(--ink);
  display: flex;
  flex-direction: column;
  cursor: var(--cursor-arrow);
  animation: picpop 0.14s steps(3) both;
}
@keyframes picpop { from { transform: scale(0.82); } to { transform: scale(1); } }
.picwin .titlebar {
  height: 22px;
  flex: 0 0 auto;
  border-bottom: 2px solid var(--ink);
  background: repeating-linear-gradient(0deg, var(--ink) 0, var(--ink) 1px, var(--paper) 1px, var(--paper) 2px);
  display: flex;
  align-items: center;
  position: relative;
}
.picwin .titlebar .close-box {
  width: 12px; height: 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  margin-left: 6px;
  cursor: var(--cursor-arrow);
}
.picwin .titlebar .close-box:hover {
  background: repeating-linear-gradient(45deg, var(--ink) 0, var(--ink) 1px, var(--paper) 1px, var(--paper) 2px);
}
.picwin .titlebar .t {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 0 10px;
  font-size: 14px;
  max-width: 76%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picwin .pic-body {
  padding: 10px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 0;
}
.picwin .pic-body img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  image-rendering: auto;     /* show the photo, not pixelated */
  border: 2px solid var(--ink);
  background: var(--paper);
}
/* ‹ › navigation inside the enlarged viewer */
.picwin .lb-nav {
  flex: 0 0 34px;
  align-self: stretch;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Chicago', sans-serif;
  font-size: 24px;
  line-height: 1;
  cursor: var(--cursor-arrow);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.picwin .lb-nav:hover { background: var(--ink); color: var(--paper); }
.picwin .lb-cap {
  flex: 0 0 auto;
  border-top: 2px solid var(--ink);
  background: var(--paper);
  text-align: center;
  padding: 4px 8px;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  font-size: 13px;
  color: var(--ink);
}

/* ============================================================
   BOOT SEQUENCE
   ============================================================ */
.boot {
  position: absolute;
  inset: 0;
  background: var(--paper);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 26px;
}
.happy-mac {
  display: flex;
  align-items: center;
  justify-content: center;
}
.boot .welcome-txt {
  font-family: 'Chicago', sans-serif;
  font-size: 22px;
  color: var(--ink);
}
.boot .barwrap {
  width: 200px; height: 14px;
  border: 2px solid var(--ink);
  padding: 1px;
}
.boot .bar {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(90deg, var(--ink) 0, var(--ink) 3px, var(--paper) 3px, var(--paper) 5px);
}
.hidden { display: none !important; }

/* ============================================================
   LOGIN / WELCOME CHOOSER
   ============================================================ */
.login {
  position: absolute;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-bg { position: absolute; inset: 0; z-index: 0; }
.login-dialog {
  position: relative;
  z-index: 1;
  width: 420px;
  max-width: 86%;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink), 0 0 0 4px var(--paper), 4px 4px 0 4px var(--ink);
  padding: 0;
}
.login-dialog .titlebar {
  height: 20px;
  border-bottom: 2px solid var(--ink);
  background: repeating-linear-gradient(0deg, var(--ink) 0, var(--ink) 1px, var(--paper) 1px, var(--paper) 2px);
  display: flex; align-items: center;
  position: relative;
}
.login-dialog .titlebar .t {
  position: absolute; left: 50%; transform: translateX(-50%);
  background: var(--paper); padding: 0 10px; font-size: 13px;
}
.login-body {
  padding: 22px 26px 24px;
  text-align: center;
}
.login-body .machead {
  display: flex;
  justify-content: center;
  margin: 0 auto 8px;
}
.login-body h2 {
  font-family: 'Chicago', sans-serif;
  font-size: 18px; margin: 0 0 4px;
}
.login-body .sub {
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  font-size: 14px; margin: 0 0 18px;
}
.users {
  display: flex;
  gap: 18px;
  justify-content: center;
}
.user-card {
  width: 130px;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 14px 8px 10px;
  cursor: var(--cursor-arrow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 2px 2px 0 0 var(--ink);
}
.user-card:hover { background: var(--ink); }
.user-card:hover * { color: var(--paper); }
.user-card:hover .avatar svg circle[fill="#fff"] { fill: var(--paper); }
.user-card .avatar {
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-card .uname {
  font-family: 'Chicago', sans-serif;
  font-size: 15px;
}
.user-card .udom {
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  font-size: 12px;
}
.user-card .ext {
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  font-size: 11px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 1px 6px;
}
.login-note {
  margin-top: 16px;
  font-family: 'Geneva', 'Lucida Grande', sans-serif;
  font-size: 12px;
  color: var(--ink);
  opacity: 0.85;
}

/* small modal dialog (alerts / leon handoff) */
.alert-layer {
  position: absolute; inset: 0; z-index: 9700;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 90px;
  background: transparent;
}
.alert {
  width: 360px; max-width: 84%;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
  padding: 18px 20px 16px;
  display: flex;
  gap: 14px;
}
.alert .ico {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Chicago', sans-serif;
  font-size: 22px;
}
.alert .body { flex: 1 1 auto; }
.alert .body p { font-family: 'Geneva', 'Lucida Grande', sans-serif; font-size: 14px; margin: 0 0 14px; }
.alert .body .btns { display: flex; gap: 10px; justify-content: flex-end; }

/* utility: watch cursor while "loading" */
.busy, .busy * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='11' cy='11' r='8' fill='white' stroke='black' stroke-width='2'/%3E%3Cline x1='11' y1='11' x2='11' y2='6' stroke='black' stroke-width='2'/%3E%3Cline x1='11' y1='11' x2='15' y2='11' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 11 11, wait !important;
}
.txt, .txt * {
  cursor: var(--cursor-arrow);
}

/* ============================================================
   NOW PLAYING widget (one curated track per load) + disc tab
   ============================================================ */
.nowplaying {
  position: absolute;
  left: 18px; bottom: 18px;
  width: 214px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 0 var(--ink);
  z-index: 9;
  cursor: var(--cursor-arrow);
  user-select: none;
}
.nowplaying .np-bar {
  height: 18px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  position: relative;
  background:
    repeating-linear-gradient(0deg, var(--ink) 0, var(--ink) 1px, var(--paper) 1px, var(--paper) 2px);
}
.nowplaying .np-min {
  width: 11px; height: 11px;
  border: 2px solid var(--ink);
  background: var(--paper);
  margin-left: 5px;
  flex: 0 0 auto;
}
.nowplaying .np-min:hover {
  background:
    repeating-linear-gradient(45deg, var(--ink) 0, var(--ink) 1px, var(--paper) 1px, var(--paper) 2px);
}
.nowplaying .np-title-txt {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 0 8px;
  font-size: 12px;
}
.nowplaying .np-body {
  display: flex;
  gap: 9px;
  padding: 9px;
  align-items: center;
}
.nowplaying .np-art {
  width: 50px; height: 50px;
  border: 2px solid var(--ink);
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--paper);
}
.nowplaying .np-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.3);
  image-rendering: auto;
}
.nowplaying .np-meta { min-width: 0; flex: 1 1 auto; }
.nowplaying .np-song {
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nowplaying .np-artist {
  font-family: 'Monaco', monospace;
  font-size: 10px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nowplaying .np-eq {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 9px;
  margin-top: 6px;
}
.nowplaying .np-eq span {
  width: 3px;
  background: var(--ink);
  transform-origin: bottom;
  animation: npbars 0.9s ease-in-out infinite;
}
.nowplaying .np-eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.nowplaying .np-eq span:nth-child(2) { height: 80%; animation-delay: .25s; }
.nowplaying .np-eq span:nth-child(3) { height: 60%; animation-delay: .1s; }
.nowplaying .np-eq span:nth-child(4) { height: 100%; animation-delay: .4s; }
@keyframes npbars {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* right-aligned group holding the disc tab + clock */
.menubar .menubar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.menubar .menubar-right .clock {
  margin-left: 0;
}
/* minimized tab — spinning disc to the LEFT of the clock */
.menubar .np-disc {
  display: flex;
  align-items: center;
  padding: 0 6px;
  cursor: var(--cursor-arrow);
}
.menubar .np-disc svg {
  animation: npspin 2.6s linear infinite;
}
@keyframes npspin { to { transform: rotate(360deg); } }

/* long single-word desktop label that must stay on one line */
.icon[data-id="garderobe-site"] .label {
  white-space: nowrap;
  max-width: none;
  word-break: normal;
}

@media (prefers-reduced-motion: reduce) {
  .nowplaying .np-eq span,
  .menubar .np-disc svg { animation: none; }
}

/* ============================================================
   "Think Different" wallpaper — centered Happy Mac + serif caption
   ============================================================ */
.wallpaper {
  position: absolute;
  inset: 0;
  z-index: 1;            /* above .desktop-bg (0), below icons (5) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
  user-select: none;
}
.wallpaper svg,
.wallpaper .wp-apple {
  width: clamp(120px, 15vw, 190px);
  height: auto;
  display: block;
}
.wallpaper .wp-apple {
  image-rendering: auto;   /* smooth silhouette, not pixelated */
}
.wp-words {
  display: flex;
  align-items: center;   /* "Different" vertically centered against the Think/Be stack */
  gap: 0.4em;
}
.wp-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.04;
}
.wp-be {
  padding-left: 1.4em;   /* indent so "Be" sits under the "nk" of "Think" */
}
.wp-text {
  font-family: Georgia, 'Times New Roman', 'Apple Garamond', serif;
  font-size: clamp(26px, 3.4vw, 44px);
  color: var(--ink);
  letter-spacing: 0.5px;
  /* the campaign caption is a smooth serif — opt out of the global 1-bit no-smoothing */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: auto;
  font-smooth: auto;
}
