/* ================================
   ALEJANDRO SERULLE — DESKTOP OS PORTFOLIO
   brutalist edition: all mono, no serif
   ================================ */

:root {
  --bg: #ece8df;
  --bg-alt: #e3ddd0;
  --paper: #f4f1ea;
  --ink: #1a1a1a;
  --ink-soft: #4a4a44;
  --ink-muted: #8a857a;
  --accent: #d94f1a;
  --accent-2: #2b5f3a;
  --accent-3: #c9a227;
  --line: #1a1a1a;
  --line-soft: #c4beb2;
  --shadow: rgba(26, 26, 26, 0.18);

  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  background:
    linear-gradient(to bottom, #7ec4e0 0%, #a8d8e8 60%, #c8e0d4 100%),
    var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100vh;
}

/* paper grain — subtle on top of wallpaper */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.2'/></svg>");
  mix-blend-mode: multiply;
}

/* fallback handled in body; wallpaper image goes here */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(236, 232, 223, 0.35) 0%, rgba(236, 232, 223, 0.55) 100%),
    url('./assets/desktop_wallpaper.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ================================ MENU BAR ================================ */
.menubar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 32px;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.01em;
}
.menubar-left, .menubar-right { display: flex; align-items: center; gap: 1rem; }
.logo-mark {
  color: var(--accent);
  font-size: 14px;
  background: none;
  border: none;
  padding: 0 0.2rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.logo-mark:hover { transform: scale(1.2) rotate(45deg); }
.logo-mark:active { transform: scale(0.9); }
.menu-item { color: var(--ink-soft); cursor: default; text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; }
.menu-name { font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 11px; }
.menu-status {
  color: #1db954;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.otw-toggle .otw-caret { color: #1db954; }
button.menu-status, button.otw-toggle {
  color: #1db954;
}
body.dark button.menu-status:hover,
body.dark button.menu-status.active,
body.dark button.otw-toggle:hover,
body.dark button.otw-toggle.active {
  background: transparent;
  color: #3bff6e;
  opacity: 0.8;
}
/* subtle glow only in dark mode, where neon reads without smearing */
body.dark .menu-status,
body.dark button.menu-status,
body.dark button.otw-toggle {
  color: #3bff6e;
  text-shadow: 0 0 6px rgba(59, 255, 110, 0.55), 0 0 14px rgba(59, 255, 110, 0.3);
}
.menu-status-link {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.menu-status-link:hover {
  opacity: 0.6;
}

/* ---- Open-to-work click-to-reveal LinkedIn banner ---- */
.otw-wrap { position: relative; display: inline-flex; }
.otw-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.otw-caret {
  font-size: 8px;
  transition: transform 0.2s ease;
  opacity: 0.7;
}
.otw-toggle[aria-expanded="true"] .otw-caret { transform: rotate(180deg); }
.otw-toggle:hover { opacity: 0.7; }
.otw-panel {
  position: absolute;
  top: 150%;
  right: 0;
  background: var(--ink, #1a1a1a);
  border-radius: 7px;
  padding: 7px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  animation: otw-drop 0.18s ease;
}
.otw-panel[hidden] { display: none; }
@keyframes otw-drop {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.otw-linkedin {
  display: block;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--paper, #f4f1ea);
  background: var(--accent, #d94f1a);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 5px;
  transition: filter 0.15s ease;
}
.otw-linkedin:hover { filter: brightness(1.1); }
.menu-item-battery {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  position: relative;
}
.menu-item-battery:hover {
  opacity: 0.7;
  transform: scale(1.1);
}
.menu-item-battery-wrap { position: relative; display: inline-flex; }
.menu-item-battery[aria-expanded="true"] { opacity: 0.7; }
.battery-panel {
  position: absolute;
  top: 150%;
  right: 0;
  background: var(--ink, #1a1a1a);
  border-radius: 7px;
  padding: 9px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  animation: otw-drop 0.18s ease;
  width: max-content;
  max-width: 220px;
}
.battery-panel[hidden] { display: none; }
.battery-panel-label {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #b8b2a6;
  margin: 0 0 7px;
  text-transform: lowercase;
}
.menu-item-clock {
  background: transparent;
  border: none;
  font-family: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  font-size: 11px;
  letter-spacing: 0.01em;
  transition: background 0.1s;
}
.menu-item-clock:hover {
  background: var(--ink);
  color: var(--paper);
}
.menu-item-dark {
  background: transparent;
  border: none;
  font-family: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  font-size: 12px;
  line-height: 1;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.menu-item-dark:hover { color: var(--accent); }

/* ---- Fast custom tooltips (native title= has a ~1.5s delay we can't control) ---- */
.has-tip { position: relative; }
.has-tip::after {
  content: attr(data-tip);
  position: absolute;
  top: 130%;
  right: 0;
  white-space: nowrap;
  background: var(--ink, #1a1a1a);
  color: var(--paper, #f4f1ea);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  transition-delay: 0.1s;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.has-tip:hover::after,
.has-tip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
/* when the battery panel is open, don't also show the hover tooltip (avoids a
   redundant double-banner that looked glitchy on mouse-out) */
.menu-item-battery[aria-expanded="true"]::after { opacity: 0 !important; }
body.dark .has-tip::after { background: #f4f1ea; color: #1a1a1a; }

/* menu items are now interactive buttons */
button.menu-item {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  font-family: inherit;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  transition: background 0.1s;
}
button.menu-item:hover,
button.menu-item.active {
  background: var(--ink);
  color: var(--paper);
}
/* status toggle keeps its green text and stays transparent on hover/active */
button.menu-status:hover,
button.menu-status.active,
button.otw-toggle:hover,
button.otw-toggle.active {
  background: transparent;
  color: #1db954;
  opacity: 0.7;
}
button.menu-name {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}
button.menu-name:hover,
button.menu-name.active {
  color: var(--paper);
}

/* DROPDOWNS */
.menu-dropdown {
  display: none;
  position: absolute;
  top: 32px;
  background: rgba(244, 241, 234, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-top: none;
  box-shadow: 0 6px 16px rgba(26,26,26,0.18);
  min-width: 240px;
  z-index: 1001;
  padding: 0.3rem 0;
  font-family: var(--mono);
}
.menu-dropdown.open { display: block; }

.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 0.08s;
  letter-spacing: -0.005em;
}
.menu-row:hover {
  background: var(--accent);
  color: var(--paper);
}
.menu-row-disabled {
  color: var(--ink-muted);
  cursor: default;
}
.menu-row-disabled:hover {
  background: transparent;
  color: var(--ink-muted);
}
.menu-shortcut {
  font-size: 11px;
  opacity: 0.6;
  letter-spacing: 0.04em;
  margin-left: 1.5rem;
}
.menu-divider {
  height: 1px;
  background: var(--line-soft);
  margin: 0.3rem 0.5rem;
}
.menu-row-section {
  padding: 0.4rem 1rem 0.2rem;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}
.window-list { max-height: 200px; overflow-y: auto; }
.menu-row-empty {
  padding: 0.5rem 1rem;
  font-size: 11px;
  color: var(--ink-muted);
  font-style: italic;
}

/* ABOUT THIS PORTFOLIO */
.about-os-card {
  text-align: center;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px dashed var(--line-soft);
  margin-bottom: 1.25rem;
}
.about-os-mark {
  font-size: 42px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.about-os-title {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.about-os-version {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.about-os-rows { font-family: var(--mono); font-size: 12.5px; }
.about-os-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 0.65rem 0;
  border-bottom: 1px dotted var(--line-soft);
}
.about-os-row:last-child { border-bottom: none; }
.about-os-row span:first-child {
  color: var(--ink-muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding-top: 2px;
}

/* SHORTCUTS LIST */
.shortcuts-list { margin-top: 1.25rem; }
.shortcut-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 0.65rem 0;
  border-bottom: 1px dotted var(--line-soft);
  align-items: center;
}
.shortcut-row kbd {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
  display: inline-block;
  width: fit-content;
  letter-spacing: 0.03em;
}
.shortcut-row span {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ================================ DESKTOP ================================ */
.desktop {
  position: fixed;
  inset: 32px 0 36px 0;
  z-index: 2;
  padding: 0.75rem 2rem 2rem;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.wallpaper-tag {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
  background: rgba(244,241,234,0.6);
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line-soft);
}

/* ================================ ICONS ================================ */
.icon-column {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 110px;
  position: relative;
  z-index: 3;
}

/* Portfolio "column" - actually a 2-column grid for compactness with 7 items */
.icon-column-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 200px;
  gap: 0.3rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.icon-column-right::-webkit-scrollbar {
  width: 4px;
}
.icon-column-right::-webkit-scrollbar-track {
  background: transparent;
}
.icon-column-right::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 2px;
}
.icon-column-right .column-label {
  grid-column: 1 / -1;
}
.icon-column-right .desktop-icon {
  padding: 0.4rem 0.4rem;
}
.icon-column-right .icon-art {
  width: 52px;
  height: 52px;
}
.icon-column-right .icon-label {
  font-size: 10.5px;
  font-weight: 500;
  margin-top: 0.1rem;
  text-align: center;
  line-height: 1.2;
}

.column-label-system {
  cursor: pointer;
  user-select: none;
  transition: opacity 0.12s ease;
}
.column-label-system:hover { opacity: 0.65; }
.icon-set { display: flex; flex-direction: column; gap: 0.25rem; }
.icon-set[hidden] { display: none; }

.column-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.5rem 0.65rem;
  margin-bottom: 0.2rem;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(244, 241, 234, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}
/* Portfolio column label gets the accent color treatment - it's the headline */
.icon-column-right .column-label {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: var(--accent);
  border-bottom-width: 3px;
  padding: 0.65rem 0.6rem 0.75rem;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.icon-column-right .column-label-bar {
  background: var(--accent);
  width: 8px;
  height: 8px;
}
.icon-column-right .column-label-count {
  color: var(--accent);
  font-weight: 700;
}
.column-label-bar {
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex-shrink: 0;
}
.column-label-text {
  flex: 1;
  white-space: nowrap;
}
.column-label-count {
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.desktop-icon {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.4rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  font-family: var(--mono);
  color: var(--ink);
  transition: all 0.12s ease;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}
.desktop-icon:hover {
  background: rgba(244, 241, 234, 0.7);
  border-color: var(--line-soft);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.desktop-icon:focus-visible,
.desktop-icon.selected {
  background: rgba(217, 79, 26, 0.18);
  border-color: var(--accent);
}
.desktop-icon:active { transform: scale(0.96); }

.icon-art {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(2px 3px 0 rgba(26,26,26,0.15));
  transition: transform 0.2s ease;
}
.desktop-icon:hover .icon-art { transform: translateY(-2px); }
.icon-art svg { width: 100%; height: 100%; }
.icon-art-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.icon-label {
  font-size: 10.5px;
  text-align: center;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 2px;
  letter-spacing: -0.01em;
}
.desktop-icon.selected .icon-label {
  background: var(--accent);
  color: var(--paper);
}

/* ================================ CENTER / HERO ================================ */
.desktop-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.desktop-center .hero-stamp {
  pointer-events: auto;
}

/* ---- Flip card ---- */
.hero-flip {
  pointer-events: auto;
  perspective: 1800px;
  cursor: pointer;
  max-width: 540px;
  width: 540px;
}
.hero-flip-inner {
  position: relative;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.hero-flip.flipped .hero-flip-inner {
  transform: rotateY(180deg);
}
.hero-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero-flip .hero-front {
  position: relative;
}
.hero-flip .hero-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flip-hint {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

.hero-stamp {
  text-align: left;
  max-width: 540px;
  padding: 2rem 2.25rem;
  background: rgba(244, 241, 234, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow:
    2px 2px 0 var(--ink),
    8px 12px 24px rgba(26, 26, 26, 0.18);
}

.stamp-mono {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stamp-mono::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--ink-muted);
}

.stamp-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.6vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  word-spacing: -0.12em;
  margin-bottom: 1.75rem;
  color: var(--ink);
  text-transform: uppercase;
}

.stamp-sub {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 480px;
}

.stamp-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  background: rgba(26, 26, 26, 0.04);
  border: 1px dashed var(--line-soft);
  padding: 0.5rem 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cursor-icon {
  display: inline-block;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2px, -2px); }
}

/* ================================ STICKY NOTE ================================ */
.sticky-note {
  position: absolute;
  width: 180px;
  background: #fff5a8;
  padding: 1rem 1rem 1.25rem;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  color: #4a4226;
  box-shadow:
    2px 4px 0 rgba(26,26,26,0.08),
    4px 8px 16px rgba(26,26,26,0.12);
  z-index: 4;
  transition: transform 0.2s ease;
}
.sticky-note-1 {
  bottom: 90px;
  right: 320px;
  left: auto;
  transform: rotate(3deg);
}
.sticky-note-1:hover {
  transform: rotate(1deg) translateY(-2px);
}
.sticky-note-2 {
  bottom: 40px;
  left: 64px;
  right: auto;
  transform: rotate(-3deg);
  background: #d4f0c8;
}
.sticky-note-2:hover {
  transform: rotate(-1deg) translateY(-2px);
}
.sticky-note-2::before {
  background: rgba(43, 95, 58, 0.4) !important;
}
.sticky-note-2 strong {
  font-weight: 700;
  color: #1a4222;
}
.sticky-note::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 14px;
  background: rgba(217, 79, 26, 0.35);
}
.sticky-text { margin-bottom: 0.5rem; }
.sticky-sig {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  text-align: right;
  color: #8a6420;
  letter-spacing: 0.05em;
}

/* sticky note stays readable in dark mode - keep its warm color but adjust if needed */
body.dark .sticky-note-1 {
  background: #e8dc8a;
  color: #2a2010;
}
body.dark .sticky-note-2 {
  background: #b8d6a8;
  color: #142010;
}
body.dark .sticky-sig {
  color: #5a4410;
}

/* ================================ WINDOWS ================================ */
.window {
  position: fixed;
  /* No left/top here - JS owns positioning exclusively */
  width: min(720px, calc(100vw - 4rem));
  max-height: calc(100vh - 44px - 36px - 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 12px 32px rgba(26,26,26,0.22),
    0 4px 12px rgba(26,26,26,0.12);
  display: none;
  flex-direction: column;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.18s ease;
  font-family: var(--mono);
  will-change: transform;
}
.window.open {
  display: flex;
  opacity: 1;
}
.window.maximized {
  top: 44px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-height: calc(100vh - 44px - 36px) !important;
  height: calc(100vh - 44px - 36px) !important;
  border-left: none;
  border-right: none;
}
.window.minimized { display: none; }
.window-project { width: min(820px, calc(100vw - 3rem)); }

/* ================================ WINDOW CHROME ================================ */
.window-chrome {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(to bottom, #e8e2d4, #ddd6c5);
  border-bottom: 1px solid var(--line);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
  position: relative;
}
.window-chrome:active { cursor: grabbing; }

.window-controls { display: flex; gap: 0.4rem; align-items: center; }
.wctl {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.25);
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s;
  position: relative;
}
.wctl:hover { transform: scale(1.15); }
.wctl-close { background: #ed6a5e; }
.wctl-min { background: #f4be4f; }
.wctl-max { background: #61c554; }

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  pointer-events: none;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ================================ WINDOW BODY ================================ */
.window-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 2.25rem;
  background: var(--paper);
  scrollbar-width: thin;
  scrollbar-color: var(--line-soft) transparent;
}
.window-body::-webkit-scrollbar { width: 8px; }
.window-body::-webkit-scrollbar-thumb { background: var(--line-soft); }
.window-body::-webkit-scrollbar-track { background: transparent; }

.doc-meta {
  display: flex; gap: 0.5rem; align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--line-soft);
}

.doc-h {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.doc-lede {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.window-body-doc p {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.window-body-doc p strong { font-weight: 700; color: var(--accent); }
.window-body-doc p em {
  font-style: italic;
  color: var(--accent-2);
  font-weight: 500;
}

.doc-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-soft);
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  background: var(--bg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* PROCESS LIST */
.process-list {
  list-style: none;
  margin-top: 1.5rem;
}
.process-list li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px dashed var(--line-soft);
  align-items: flex-start;
}
.process-list li:last-child { border-bottom: none; }
.pnum {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  background: rgba(217,79,26,0.1);
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--accent);
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.process-list h4 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.process-list p {
  font-family: var(--mono);
  font-size: 12.5px !important;
  color: var(--ink-soft) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  margin-bottom: 0 !important;
  line-height: 1.6 !important;
}

/* TRASH */
.trash-list {
  list-style: none;
  font-family: var(--mono);
  font-size: 13px;
  margin-top: 1rem;
}
.trash-list li {
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--line-soft);
  color: var(--ink-soft);
}
.trash-list s { color: var(--ink-muted); }

/* REEL */
.window-body-media {
  padding: 0;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
}
.reel-frame {
  flex: 1;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 4px, rgba(255,255,255,0.03) 4px, rgba(255,255,255,0.03) 5px);
}
.reel-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.reel-frame small { font-size: 10px; opacity: 0.6; letter-spacing: 0.05em; }
.reel-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.reel-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}
.reel-progress { width: 23%; height: 100%; background: var(--accent); }

/* CONTACT */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0;
  border-bottom: 1px dashed var(--line-soft);
  margin-bottom: 1.5rem;
}
.contact-avatar {
  width: 72px; height: 72px;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}
.contact-name {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}
.contact-role {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.contact-rows { margin-bottom: 1.5rem; }
.contact-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 0.75rem 0;
  border-bottom: 1px dotted var(--line-soft);
  font-family: var(--mono);
  font-size: 12.5px;
}
.contact-row:last-child { border-bottom: none; }
.contact-key {
  color: var(--ink-muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding-top: 2px;
}
.contact-val { color: var(--ink); }
.contact-val.link { color: var(--accent); text-decoration: none; }
.contact-val.link:hover { text-decoration: underline; }
.pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent-2);
  border-radius: 50%;
  margin-right: 0.4rem;
  animation: pulse 2s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.big-cta {
  display: block;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  padding: 1.5rem;
  border: 1px solid var(--line);
  text-align: center;
  transition: all 0.2s ease;
}
.big-cta:hover {
  background: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.big-cta span:first-child {
  display: block;
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.big-cta-sub {
  display: block !important;
  font-family: var(--mono);
  font-size: 10px;
  margin-top: 0.5rem;
  opacity: 0.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ================================ PROJECT WINDOWS ================================ */
.window-body-project { padding: 0; }

.proj-hero {
  aspect-ratio: 16 / 7;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
  overflow: hidden;
}
.proj-hero-img {
  aspect-ratio: 16 / 9;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #ece8df;
}
.proj-hero-zoom {
  background-size: 145%;
}
.proj-hero-clickable { cursor: zoom-in; }
.proj-hero-expand {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(26,26,26,0.78);
  color: #f4f1ea;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.proj-hero-clickable:hover .proj-hero-expand,
.proj-hero-clickable:focus-visible .proj-hero-expand { opacity: 1; }
/* When the project window is maximized, the board is a CASE STUDY to be read,
   not a full-bleed banner. Cap its height so the whole board is visible at a
   comfortable size without endless scrolling; `contain` keeps it whole and
   centered. The board stays clickable to open full-size in the lightbox. */
.window.maximized .proj-hero-img {
  aspect-ratio: auto;
  height: min(72vh, 780px);
  max-height: 72vh;
  background-size: contain;
}
.window.maximized .proj-hero-zoom { background-size: contain; }
body.dark .proj-hero-img {
  background-color: #2a2a2a;
}
.proj-hero:not(.proj-hero-img)::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 12px, rgba(0,0,0,0.04) 12px, rgba(0,0,0,0.04) 13px);
  pointer-events: none;
}
/* Placeholder gradients — overridden when real image is set */
.proj-hero-1 { background: linear-gradient(135deg, #d94f1a 0%, #8a2c0a 100%); }
.proj-hero-2 { background: linear-gradient(135deg, #2b5f3a 0%, #4a8a5a 50%, #c9a227 100%); }
.proj-hero-3 { background: linear-gradient(135deg, #1a1a1a 0%, #4a4a44 100%); }
.proj-hero-4 { background: linear-gradient(135deg, #c9a227 0%, #f4be4f 100%); }
.proj-hero-5 { background: linear-gradient(135deg, #7a9eb1 0%, #c4d4dc 100%); }
.proj-hero-6 { background: linear-gradient(135deg, #a0552d 0%, #d4a070 100%); }

.proj-tag {
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(0,0,0,0.2);
}
.proj-tag-noai {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: #d42a2a;
  border-color: #d42a2a;
  letter-spacing: 0.14em;
}
.proj-content { padding: 2rem 2.25rem; }
.proj-title {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.proj-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.proj-lede {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}
.proj-content p {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.proj-content p em {
  font-style: italic;
  color: var(--accent-2);
  font-weight: 500;
}

/* CASE STUDY CALLOUT - for "The idea" pull-quote */
.proj-callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  position: relative;
}
.proj-callout-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.proj-callout p {
  font-family: var(--mono);
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* CASE STUDY STATS - outcome numbers row */
.proj-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin-top: 1.75rem;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.proj-stat {
  padding: 1.1rem 1rem;
  border-right: 1px dashed var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.proj-stat:last-child { border-right: none; }
.proj-stat-num {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.proj-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.proj-link-row {
  font-family: var(--mono) !important;
  font-size: 12px !important;
  margin-top: 1.25rem !important;
  margin-bottom: 0.25rem !important;
  letter-spacing: 0.01em !important;
}
.proj-link-row a {
  color: var(--accent) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.proj-link-row a:hover { opacity: 0.7; }
.proj-disclaimer {
  font-family: var(--mono) !important;
  font-size: 10.5px !important;
  color: var(--ink-muted) !important;
  font-style: italic;
  line-height: 1.5 !important;
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em !important;
}
.proj-credits {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.proj-credits .credits-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.proj-credits .credits-row { margin-bottom: 0.25rem; }
.proj-credits .credits-role {
  color: var(--ink-muted);
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.08em;
}
.proj-credits strong { color: var(--ink); font-weight: 700; }
.proj-credits a { color: var(--accent); text-decoration: none; }
.proj-credits a:hover { text-decoration: underline; }
.proj-ideation {
  margin: 1.5rem 0;
  max-width: 320px;
}
.proj-ideation a {
  display: block;
  border: 1px solid var(--line-soft);
  padding: 4px;
  background: var(--paper, #fff);
  line-height: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.proj-ideation a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.proj-ideation img {
  width: 100%;
  height: auto;
  display: block;
}
.proj-ideation figcaption {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted, #8a857c);
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin-top: 0.5rem;
}
.proj-spreads {
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.proj-spreads a {
  display: block;
  border: 1px solid var(--line-soft);
  line-height: 0;
  transition: border-color 0.15s ease;
}
.proj-spreads a:hover { border-color: var(--accent); }
.proj-spreads img {
  width: 100%;
  height: auto;
  display: block;
}
.proj-spreads figcaption {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted, #8a857c);
  letter-spacing: 0.01em;
  margin-top: 0.25rem;
}
body.dark .proj-spreads a { border-color: #3a3a36; }
body.dark .proj-spreads a:hover { border-color: var(--accent); }

/* Small process grid — used for vinyl process + HSBC OOH mockups */
.proj-process {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  max-width: 560px;
}
.proj-process a,
.proj-process .proj-process-lb {
  display: block;
  width: 100%;
  border: 1px solid var(--line-soft);
  padding: 3px;
  background: var(--paper, #fff);
  line-height: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.proj-process a:hover,
.proj-process .proj-process-lb:hover { border-color: var(--accent); transform: translateY(-1px); }
.proj-process .proj-process-lb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.proj-process img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}
.proj-process figcaption {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted, #8a857c);
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin-top: 0.25rem;
}
body.dark .proj-process a,
body.dark .proj-process .proj-process-lb { border-color: #3a3a36; }
body.dark .proj-process a:hover,
body.dark .proj-process .proj-process-lb:hover { border-color: var(--accent); }

/* single wide process image (e.g. the Illustrator screenshot) */
.proj-process-single { grid-template-columns: 1fr; max-width: 560px; }
.proj-process-single img { aspect-ratio: 16 / 10; }

/* two tall bilingual guide strips — show as tidy thumbnails, full on click */
.proj-process-guides { grid-template-columns: repeat(2, 1fr); max-width: 420px; }
.proj-process-guides img { aspect-ratio: 3 / 4; object-position: top; }

/* FIFA pink story templates — true 9:16 portrait, not cropped to square */
.proj-process-stories { grid-template-columns: repeat(3, 1fr); max-width: 560px; }
.proj-process-stories img { aspect-ratio: 9 / 16; object-fit: contain; background: var(--paper, #fff); }

/* FIFA cyan lineup-teaser — single 4:5 portrait, centered, shown modestly */
.proj-process-teaser { grid-template-columns: 1fr; max-width: 300px; }
.proj-process-teaser img { aspect-ratio: 4 / 5; object-fit: contain; background: var(--paper, #fff); }

/* "in the wild" — real artist story screenshots, phone aspect, 4-up */
.proj-process-wild { grid-template-columns: repeat(4, 1fr); max-width: 520px; gap: 0.5rem; }
.proj-process-wild img { aspect-ratio: 9 / 16; object-position: center; }
@media (max-width: 560px) {
  .proj-process-wild { grid-template-columns: repeat(2, 1fr); }
}

/* in-the-wild IG story screenshots — portrait thumbnails */
.proj-process-wild { grid-template-columns: repeat(2, 1fr); max-width: 460px; }
.proj-process-wild img { aspect-ratio: 2 / 3; object-position: top; }

/* Audio player on the vinyl project */
.proj-audio {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.proj-audio audio { width: 100%; max-width: 420px; }
.proj-audio-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-muted, #8a857c);
}

/* ================================ DOCK ================================ */
.dock {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 36px;
  z-index: 9000;
  background: rgba(244, 241, 234, 0.97);
  border-top: 1px solid var(--line);
}
.dock-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1rem;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dock-tasks {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.dock-task {
  padding: 0.25rem 0.6rem;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-soft);
  background: rgba(26, 26, 26, 0.06);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: none;
  letter-spacing: -0.01em;
}
.dock-task:hover {
  background: rgba(217, 79, 26, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}
.dock-task.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.dock-task::before {
  content: "▣";
  font-size: 9px;
  opacity: 0.6;
}

/* ================================ SCHEDULE.APP ================================ */
.window-schedule {
  width: 760px;
}
.window-body-schedule {
  padding: 0;
  max-height: 80vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.schedule-intro {
  padding: 1.75rem 2rem 1.5rem;
  border-bottom: 1px dashed var(--line-soft);
  background: var(--paper);
}
.schedule-intro .proj-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
}
.schedule-h {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.schedule-lede {
  font-family: var(--mono) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: var(--ink-soft) !important;
  margin-bottom: 1rem !important;
  font-weight: 400 !important;
  max-width: 56ch;
}
.schedule-fallback {
  font-family: var(--mono) !important;
  font-size: 11px !important;
  color: var(--ink-muted) !important;
  letter-spacing: 0.02em;
  margin-bottom: 0 !important;
  font-weight: 400 !important;
}
.schedule-fallback a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.schedule-fallback a:hover {
  border-bottom-color: var(--accent);
}
.schedule-embed {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 620px;
  background: #fff;
}
.schedule-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 620px;
  border: 0;
  display: block;
}

/* ================================ COMP.MD ================================ */
.window-comp {
  width: 720px;
}
.window-chrome-dark {
  background: linear-gradient(to bottom, #2a2a26, #1a1a18) !important;
  color: #c4beb2;
}
.window-chrome-dark .window-title {
  color: #c4beb2;
}
.window-body-comp {
  background: #0d0d0c;
  color: #f4f1ea;
  padding: 3rem 2.5rem 2.5rem;
  max-height: 75vh;
  overflow-y: auto;
}
.comp-meta {
  display: flex;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a6760;
  margin-bottom: 2.5rem;
}
.comp-lede {
  font-family: var(--mono) !important;
  font-size: 13px !important;
  color: #8a857a !important;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem !important;
  font-weight: 400 !important;
}
.comp-headline {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 2.5rem;
  color: #f4f1ea;
}
.comp-body {
  font-family: 'Times New Roman', Times, serif !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #d4d0c4 !important;
  margin-bottom: 1.5rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.005em;
}
.comp-body strong {
  font-weight: 700;
  color: #f4f1ea;
}
.comp-coda {
  font-family: 'Times New Roman', Times, serif !important;
  font-size: 22px !important;
  line-height: 1.4 !important;
  color: #f4f1ea !important;
  margin-top: 2.5rem !important;
  margin-bottom: 0 !important;
  font-weight: 400 !important;
  font-style: italic;
}
.comp-coda strong {
  font-weight: 700;
  font-style: normal;
  color: #d94f1a;
}
.comp-coda-sub {
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  color: #6a6760;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-top: 0.5rem;
}
.comp-sig {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a5750 !important;
  margin-top: 3.5rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a26;
  font-weight: 400 !important;
}

.comp-divider {
  height: 1px;
  background: #2a2a26;
  margin: 3rem 0 2rem;
}
.comp-video-label {
  font-family: var(--mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a857a !important;
  margin-bottom: 1rem !important;
  font-weight: 400 !important;
}
.comp-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid #2a2a26;
  overflow: hidden;
}
.comp-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.comp-link-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  background: rgba(217, 79, 26, 0.08);
  border: 1px solid rgba(217, 79, 26, 0.3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.comp-link-label {
  color: #8a857a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}
.comp-link {
  color: #d94f1a;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease;
}
.comp-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* about.txt section break + h3 */
.doc-section-break {
  height: 1px;
  background: var(--line-soft);
  margin: 1.75rem 0 1.5rem;
}
.doc-h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  margin-top: 1.5rem;
}
.doc-h3:first-of-type {
  margin-top: 0;
}

/* ================================ PROJECT VIDEOS ================================ */
.proj-video {
  position: relative;
  margin: 1.5rem 0;
  background: #000;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.proj-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Bilingual variant with toggle */
.proj-video-bilingual {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
}
.video-toggle {
  display: inline-flex;
  align-self: flex-end;
  margin-bottom: 0.5rem;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--mono);
}
.video-lang {
  background: transparent;
  border: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.video-lang:hover {
  color: var(--accent);
}
.video-lang.active {
  background: var(--ink);
  color: var(--paper);
}
.video-frame {
  position: relative;
  display: none;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}
.video-frame.active {
  display: block;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Portrait short (YouTube Shorts / vertical reels) */
.proj-video-short {
  aspect-ratio: auto;
  background: transparent;
  border: none;
  margin: 1rem 0 0.5rem;
  display: flex;
  justify-content: center;
}
.proj-video-short .video-frame-short {
  display: block;
  position: relative;
  aspect-ratio: 9 / 16;
  width: min(300px, 70%);
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}
.proj-video-short .video-frame-short iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* link-out button for platforms that don't embed cleanly (IG reels) */
.proj-linkout-row { margin: 0.25rem 0 0.5rem; text-align: center; }
.proj-linkout {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.55rem 1rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.proj-linkout:hover { background: var(--accent); border-color: var(--accent); }
.proj-fineprint {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted, #8a857c);
  letter-spacing: 0.01em;
  margin: 0.25rem 0 0;
}
.reel-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.reel-entry {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--line-soft);
}
.reel-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.reel-entry-meta {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.reel-entry-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  background: rgba(217,79,26,0.1);
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--accent);
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.reel-entry h4 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.reel-entry p {
  font-family: var(--mono);
  font-size: 11px !important;
  color: var(--ink-muted) !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0 !important;
  font-weight: 400 !important;
}
.more-work-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--line-soft);
}
.more-work-header .proj-tag {
  display: inline-block;
  margin-bottom: 1rem;
}
.more-work-header .doc-lede {
  border-left: none;
  padding-left: 0;
  margin-bottom: 0;
}

/* Pinterest-style masonry using CSS columns */
.masonry {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.masonry-item {
  display: block;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(26, 26, 26, 0.22);
}
body.dark .masonry-item:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55);
}

.masonry-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.masonry-thumb:hover { filter: brightness(1.04); }
/* "+N" badge on tiles that expand into a gallery */
.masonry-thumb.has-more::after {
  content: "⊕ gallery";
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(26,26,26,0.7);
  padding: 3px 6px;
  border-radius: 2px;
  pointer-events: none;
}
.masonry-tall .masonry-thumb { aspect-ratio: 3 / 4; }
.masonry-wide .masonry-thumb { aspect-ratio: 4 / 3; }
/* The currency bill is very tall/narrow — show it whole (contained), centered, instead of cropping it to fill */
.masonry-thumb.masonry-bill {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f4f1ea;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20,20,18,0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  user-select: none;
}
/* tall multi-page strips: read at a comfortable width, scroll vertically */
.lightbox.tall.open { display: block; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; text-align: center; }
.lightbox.tall .lightbox-img {
  max-width: min(560px, 92vw);
  max-height: none;
  width: min(560px, 92vw);
  height: auto;
  margin: 4vh auto;
  display: inline-block;
}
.lightbox-video {
  display: none;
  width: 90vw;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  max-height: 86vh;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-video.portrait {
  aspect-ratio: 9 / 16;
  width: auto;
  height: 86vh;
  max-width: 90vw;
  max-height: 86vh;
}
.lightbox-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-close {
  position: absolute;
  top: 18px;
  left: 22px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--mono);
  opacity: 0.9;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
  z-index: 2;
}
.lightbox-close:hover {
  opacity: 1;
  background: var(--accent, #d94f1a);
  border-color: var(--accent, #d94f1a);
  transform: scale(1.05);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  width: 56px;
  height: 72px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.4);
  padding: 4px 12px;
  border-radius: 20px;
}
.lightbox.single .lightbox-nav,
.lightbox.single .lightbox-counter { display: none; }
.lightbox-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0,0,0,0.68);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 9px 16px;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  white-space: nowrap;
}
.lightbox-hint .hint-item { display: inline-flex; align-items: center; gap: 6px; }
.lightbox-hint .hint-sep { color: rgba(255,255,255,0.4); }
.lightbox-hint .hint-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 5px;
  font-size: 12px;
  font-family: var(--mono);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
}
/* Hint stays fully visible the whole time the lightbox is open */
.lightbox.open .lightbox-hint { opacity: 1; }
.lightbox.single .lightbox-hint { display: none; }

/* ===================== COLOR WHEEL (colors.app) ===================== */
.cw-body { padding: 1.5rem 1.75rem; }
.cw-wheel-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
#cw-canvas {
  border-radius: 50%;
  cursor: crosshair;
  box-shadow: 0 4px 16px rgba(26,26,26,0.18);
  touch-action: none;
}
.cw-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}
.cw-field { display: flex; flex-direction: column; gap: 0.35rem; }
.cw-field-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cw-field select,
.cw-field input[type="range"] {
  font-family: var(--mono);
  font-size: 12px;
  accent-color: var(--accent);
}
.cw-field select {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
}
.cw-swatches {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.cw-swatch {
  flex: 1 1 0;
  min-width: 54px;
  height: 76px;
  border: 1px solid rgba(26,26,26,0.18);
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.12s ease;
  position: relative;
}
.cw-swatch:hover { transform: translateY(-3px); }
.cw-swatch span {
  background: rgba(244,241,234,0.9);
  color: #1a1a1a;
  padding: 1px 4px;
  border-radius: 2px;
}
.cw-actions { display: flex; gap: 0.6rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.cw-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.12s ease, color 0.12s ease;
}
.cw-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.cw-btn-sm { padding: 0.4rem 0.7rem; font-size: 10px; }
.cw-extract {
  margin-bottom: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-soft);
}
.cw-extract.cw-dragover { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 4px; }
.cw-extract-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.cw-extract-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cw-extract-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cw-extract-sw {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s ease;
  padding: 0;
}
.cw-extract-sw:hover { transform: translateY(-2px); }
.cw-extract-sw::after {
  content: attr(data-hex);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}
.cw-extract-sw:hover::after { opacity: 1; }
.cw-note {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
body.dark #cw-canvas { box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
body.dark .cw-field select { background: #2a2a28; color: #e8e4da; border-color: #3a3a36; }

/* ===================== PHOTOBOOTH (booth.app) ===================== */
.pb-body { padding: 1.5rem 1.75rem; position: relative; }
.pb-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 0;
  opacity: 0.5;
  pointer-events: none;
}
.pb-backdrop svg { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.pb-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.pb-body > .pb-stage,
.pb-body > .pb-controls,
.pb-body > .pb-note { position: relative; z-index: 1; }
.pb-stage {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.pb-live {
  position: relative;
  flex: 1 1 auto;
  aspect-ratio: 4 / 3;
  background: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  min-width: 0;
}
#pb-video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror like a real booth */
  display: block;
  /* retro tone */
  filter: sepia(0.32) contrast(1.08) saturate(1.05) brightness(1.02);
}
.pb-countdown {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 96px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
  z-index: 3;
}
.pb-flash {
  position: absolute; inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}
.pb-flash.fire { animation: pbFlash 0.4s ease; }
@keyframes pbFlash { 0% { opacity: 0; } 15% { opacity: 0.9; } 100% { opacity: 0; } }
.pb-permission {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.85rem;
  background: rgba(26,26,26,0.92);
  color: #f4f1ea;
  text-align: center;
  padding: 1.25rem;
  font-family: var(--mono);
  font-size: 13px;
  z-index: 5;
}
.pb-permission[hidden] { display: none; }
.pb-fineprint {
  font-size: 10px;
  color: #b8b2a6;
  line-height: 1.5;
  max-width: 260px;
}
.pb-strip-wrap {
  flex: 0 0 auto;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(26,26,26,0.18);
  transform: rotate(1.5deg);
}
#pb-strip {
  display: block;
  width: 120px;
  height: auto;
  background: #fff;
}
.pb-bg-picker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.pb-bg-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pb-bg-swatches { display: flex; gap: 0.4rem; }
.pb-bg-swatch {
  width: 34px;
  height: 24px;
  border: 2px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  image-rendering: pixelated;
  transition: transform 0.12s ease, border-color 0.12s ease;
  padding: 0;
}
.pb-bg-swatch:hover { transform: translateY(-2px); }
.pb-bg-swatch.active { border-color: var(--accent); transform: translateY(-2px); }
.pb-controls { display: flex; gap: 0.6rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.pb-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.12s ease, color 0.12s ease, opacity 0.12s ease;
}
.pb-btn:hover:not(:disabled) { background: var(--accent); color: #fff; border-color: var(--accent); }
.pb-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pb-btn-go { background: var(--ink); color: var(--paper); }
.pb-btn-go:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.pb-note {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
@media (max-width: 820px) {
  .pb-stage { flex-direction: column; align-items: center; }
  .pb-strip-wrap { transform: none; }
}

/* ===================== AD DICTIONARY (AD.dict) ===================== */
.dict-body { padding: 0; display: flex; flex-direction: column; }

/* ===== pixelate.app ===== */
.px-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.px-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.px-label { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); letter-spacing: 0.02em; }
.px-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.55rem 0.9rem; border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  cursor: pointer; border-radius: 3px; transition: background 0.12s ease, color 0.12s ease;
}
.px-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.px-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.px-btn:disabled:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.px-btn-sm { padding: 0.4rem 0.7rem; font-size: 10px; }
.px-btn-ghost { border-color: var(--line); color: var(--ink-soft); }
.px-btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.px-stage {
  position: relative; min-height: 220px; display: flex; align-items: center; justify-content: center;
  background:
    repeating-conic-gradient(var(--line-soft) 0% 25%, transparent 0% 50%) 50% / 18px 18px;
  border: 1px solid var(--line); border-radius: 4px; overflow: auto; padding: 0.75rem;
}
.px-stage.px-dragover { outline: 2px dashed var(--accent); outline-offset: -6px; }
.px-drop {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  color: var(--ink-soft); font-family: var(--mono); pointer-events: none; padding: 2rem;
}
.px-drop-icon { font-size: 2.2rem; color: var(--ink-muted, #b3ada1); line-height: 1; }
.px-drop-text { font-size: 12px; letter-spacing: 0.03em; }
.px-drop-sub { font-size: 10px; color: var(--ink-muted, #b3ada1); letter-spacing: 0.05em; text-transform: uppercase; }
#px-canvas {
  max-width: 100%; max-height: 52vh; height: auto; display: block;
  image-rendering: pixelated; box-shadow: 0 2px 14px rgba(0,0,0,0.18);
}

.px-controls { display: flex; flex-direction: column; gap: 0.75rem; }
.px-row { display: flex; flex-direction: column; gap: 0.4rem; }
.px-field-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; color: var(--ink-soft); text-transform: uppercase; }
.px-field-label span { color: var(--accent); font-weight: 700; }
#px-size { width: 100%; accent-color: var(--accent); }
.px-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.px-note { font-family: var(--mono); font-size: 10px; color: var(--ink-muted, #8a857c); margin: 0; min-height: 1em; }
.px-hint { font-family: var(--mono); font-size: 10px; color: var(--ink-muted, #8a857c); line-height: 1.5; margin: 0; }
body.dark .px-stage { border-color: #3a3a36; }
body.dark #px-canvas { box-shadow: 0 2px 14px rgba(0,0,0,0.5); }
.dict-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.dict-search-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.dict-search-toggle:hover { border-color: var(--accent); color: var(--accent); }
.dict-search {
  flex: 1;
  font-family: var(--mono);
  font-size: 13px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.12s ease;
}
.dict-search[hidden] { display: none; }
.dict-search:focus { border-color: var(--accent); }
.dict-count {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.dict-list {
  padding: 0.5rem 1.5rem 1.5rem;
  overflow-y: auto;
}
.dict-entry {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.dict-entry:last-child { border-bottom: none; }
.dict-term {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.2rem;
}
.dict-def {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.dict-letter {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  padding: 0.6rem 0 0.3rem;
  border-bottom: 2px solid var(--ink);
  margin-top: 0.5rem;
}
.dict-empty {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  padding: 1.5rem 0;
  text-align: center;
}
.dict-hit { background: rgba(217,79,26,0.18); border-radius: 2px; }
body.dark .dict-search { background: #2a2a28; color: #e8e4da; border-color: #3a3a36; }

/* ===================== LARGE SCREENS (>=1600px) =====================
   On big monitors the fixed-pixel icons, name card, and sticky notes look
   tiny and the notes drift into the far corners. Scale elements up and pull
   the notes inward so the desktop feels intentional, not sparse.
   Nothing here affects laptops/tablets (<1600px). */
@media (min-width: 1600px) {
  .desktop { padding: 1rem 3.5rem 2.5rem; }

  /* left system column */
  .icon-column { width: 150px; gap: 0.4rem; }
  .icon-art { width: 64px; height: 64px; }
  .icon-label { font-size: 13px; }
  .column-label { font-size: 12px; }

  /* right portfolio grid */
  .icon-column-right { width: 280px; gap: 0.6rem; }
  .icon-column-right .icon-art { width: 70px; height: 70px; }
  .icon-column-right .icon-label { font-size: 13px; }

  /* name card */
  .hero-flip, .hero-stamp { max-width: 640px; }
  .hero-flip { width: 640px; }
  .hero-stamp { padding: 2.75rem 3rem; }

  /* sticky notes: bigger + pulled in from the edges */
  .sticky-note { width: 220px; font-size: 13px; }
  .sticky-note-1 { bottom: 130px; right: 220px; }
  .sticky-note-2 { bottom: 80px; left: 120px; }
  .sticky-sig { font-size: 14px; }
}

/* ===================== EXTRA-LARGE (>=2100px) ===================== */
@media (min-width: 2100px) {
  .icon-art { width: 76px; height: 76px; }
  .icon-column { width: 175px; }
  .icon-column-right { width: 330px; }
  .icon-column-right .icon-art { width: 84px; height: 84px; }
  .icon-label, .icon-column-right .icon-label { font-size: 14px; }
  .hero-flip, .hero-stamp { max-width: 720px; }
  .hero-flip { width: 720px; }
  .sticky-note { width: 250px; font-size: 14px; }
  .sticky-note-1 { right: 300px; bottom: 160px; }
  .sticky-note-2 { left: 180px; bottom: 100px; }
}

@media (max-width: 820px) {
  .lightbox-nav { width: 44px; height: 60px; font-size: 30px; }
  .lightbox-img { max-width: 94vw; }
}

/* placeholder gradients for empty slots, each subtly different */
.masonry-thumb-1 { background: linear-gradient(135deg, #d94f1a 0%, #c9a227 100%); }
.masonry-thumb-2 { background: linear-gradient(135deg, #2b5f3a 0%, #4a8a5a 100%); }
.masonry-thumb-3 { background: linear-gradient(135deg, #1a1a1a 0%, #4a4a44 100%); }
.masonry-thumb-4 { background: linear-gradient(135deg, #c9a227 0%, #f4be4f 100%); }
.masonry-thumb-5 { background: linear-gradient(135deg, #7a9eb1 0%, #c4d4dc 100%); }
.masonry-thumb-6 { background: linear-gradient(135deg, #a0552d 0%, #d4a070 100%); }
.masonry-thumb-7 { background: linear-gradient(135deg, #d94f1a 0%, #8a2c0a 100%); }
.masonry-thumb-8 { background: linear-gradient(135deg, #2b5f3a 0%, #c9a227 100%); }
.masonry-thumb-9 { background: linear-gradient(135deg, #4a4a44 0%, #8a857a 100%); }

/* (placeholder hatch overlay removed — slots now hold real photography) */

.masonry-item figcaption {
  padding: 0.6rem 0.75rem 0.7rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cap-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cap-meta {
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.more-work-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.more-work-footer code {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  padding: 0.1rem 0.4rem;
  font-size: 10.5px;
  color: var(--accent);
}
.toast {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.25rem;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  box-shadow: 0 8px 24px rgba(26,26,26,0.3);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2000;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================================ DARK MODE ================================ */
body.dark {
  --bg: #1a1a1a;
  --bg-alt: #2a2a2a;
  --paper: #242422;
  --ink: #ece8df;
  --ink-soft: #c4beb2;
  --ink-muted: #8a857a;
  --line: #4a4a44;
  --line-soft: #3a3a36;
  background:
    linear-gradient(to bottom, #1a1a1a 0%, #242422 60%, #1a1a1a 100%),
    var(--bg);
}
body.dark::after {
  background-image:
    linear-gradient(to bottom, rgba(20, 20, 20, 0.65) 0%, rgba(20, 20, 20, 0.85) 100%),
    url('./assets/desktop_wallpaper.jpg');
}
body.dark .menubar {
  background: rgba(36, 36, 34, 0.92);
}
body.dark .dock {
  background: rgba(36, 36, 34, 0.92);
}
body.dark .proj-ideation a {
  background: #242422;
  border-color: #3a3a36;
}
body.dark .proj-ideation a:hover { border-color: var(--accent); }
body.dark .desktop-icon {
  background: transparent;
}
body.dark .desktop-icon:hover {
  background: rgba(36, 36, 34, 0.7);
}
body.dark .hero-stamp {
  background: rgba(36, 36, 34, 0.82);
}
body.dark .column-label {
  background: rgba(36, 36, 34, 0.85);
}
/* Portfolio (right column) label: keep it readable in dark mode — light text on dark bg */
body.dark .icon-column-right .column-label {
  background: #0e0e0d;
  color: var(--ink);
  border-bottom-color: var(--accent);
}
body.dark .wallpaper-tag {
  background: rgba(36, 36, 34, 0.6);
}
body.dark .menu-dropdown {
  background: rgba(36, 36, 34, 0.96);
}
body.dark .window-chrome {
  background: linear-gradient(to bottom, #2e2e2a, #242420);
}
body.dark .icon-art svg path[fill="#f4f1ea"],
body.dark .icon-art svg rect[fill="#f4f1ea"] {
  fill: #c4beb2;
}

/* ================================ MOBILE ================================ */
@media (max-width: 820px) {
  body { overflow-y: auto; overflow-x: hidden; }
  /* Google Drive's /preview carries its own player chrome. Keep it 16:9 like
     the YouTube embeds so it at least reads as a consistent video block on
     mobile. (For a fully clean player, re-host this film on Vimeo/YouTube.) */
  .proj-video-drive {
    aspect-ratio: 16 / 9;
  }
  .desktop {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 60px 1rem 60px;
    height: auto;
    min-height: calc(100vh - 68px);
  }
  .icon-column { width: 100%; }
  /* Make BOTH columns 2-up icon grids on mobile so SYSTEM isn't sparse and
     PORTFOLIO isn't cramped — they now share the same comfortable spacing. */
  .icon-column-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    align-content: start;
  }
  .icon-column-right {
    width: 100%;
    max-height: none;
    gap: 0.4rem;
  }
  .icon-column-left .desktop-icon,
  .icon-column-right .desktop-icon {
    padding: 0.6rem 0.3rem;
  }
  .icon-column-left .icon-art,
  .icon-column-right .icon-art {
    width: 46px;
    height: 46px;
  }
  /* The column header should span both icon columns */
  .icon-column-left .column-label,
  .icon-column-right .column-label {
    grid-column: 1 / -1;
  }
  .desktop-center {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    pointer-events: auto;
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 1rem;
  }
  .icon-column-left { grid-column: 1; grid-row: 2; }
  .icon-column-right { grid-column: 2; grid-row: 2; }
  .sticky-note { display: none; }
  .wallpaper-tag { display: none; }
  .stamp-title { font-size: 2.25rem; }
  .stamp-sub { font-size: 0.85rem; }
  .window {
    width: calc(100vw - 1rem) !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    transform: scale(1) !important;
    max-height: calc(100vh - 100px) !important;
    top: 50px !important;
  }
  .window-title {
    font-size: 10px;
    max-width: 60%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .window-body { padding: 1.25rem; }
  .proj-content { padding: 1.5rem 1.25rem; }
  .dock-label { display: none; }
  .menu-item:not(.menu-name):not(.menu-status):not(#clock):not(.menu-item-sound) { display: none; }
  .menu-item-sound { display: inline-flex; font-size: 15px; padding: 0.2rem 0.5rem; }
  .menu-status { font-size: 10px; }
}
