/* ========================================================================
   rarehoney.os — single stylesheet
   Boot CRT → Desktop → Windows
   ======================================================================== */

/* ─── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --green:    #007A3F;
  --pink:     #FFACEC;
  --offwhite: #F5F3F5;
  --black:    #1F1D1D;
  --live:     #00D97E;
  --hot:      #FFD66E;

  --bg:        var(--offwhite);
  --ink:       var(--black);
  --ink-mute:  rgba(31, 29, 29, 0.65);
  --ink-soft:  rgba(31, 29, 29, 0.4);
  --line-1:    rgba(31, 29, 29, 0.10);
  --line-2:    rgba(31, 29, 29, 0.22);
  --shadow:    var(--black);

  --f-display: 'Pixelify Sans', monospace;
  --f-body:    'Geist', system-ui, sans-serif;
  --f-mono:    'Space Mono', 'SF Mono', monospace;

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.2, 0.8, 0.4, 1);

  --menubar-h: 36px;
  --dock-h:    52px;
  --strip-h:   20px;

  --cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><rect x='2' y='2' width='2' height='2' fill='%231F1D1D'/><rect x='2' y='4' width='2' height='2' fill='%231F1D1D'/><rect x='4' y='4' width='2' height='2' fill='%231F1D1D'/><rect x='2' y='6' width='2' height='2' fill='%231F1D1D'/><rect x='4' y='6' width='2' height='2' fill='%231F1D1D'/><rect x='6' y='6' width='2' height='2' fill='%231F1D1D'/><rect x='2' y='8' width='2' height='2' fill='%231F1D1D'/><rect x='4' y='8' width='2' height='2' fill='%231F1D1D'/><rect x='6' y='8' width='2' height='2' fill='%231F1D1D'/><rect x='8' y='8' width='2' height='2' fill='%231F1D1D'/><rect x='2' y='10' width='2' height='2' fill='%231F1D1D'/><rect x='4' y='10' width='2' height='2' fill='%231F1D1D'/><rect x='6' y='10' width='2' height='2' fill='%231F1D1D'/><rect x='2' y='12' width='2' height='2' fill='%231F1D1D'/><rect x='4' y='12' width='2' height='2' fill='%231F1D1D'/><rect x='6' y='12' width='2' height='2' fill='%231F1D1D'/><rect x='2' y='14' width='2' height='2' fill='%231F1D1D'/><rect x='8' y='14' width='2' height='2' fill='%231F1D1D'/></svg>") 2 2;
  --cursor-grab: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><rect x='4' y='4' width='12' height='12' fill='%23FFACEC' stroke='%231F1D1D' stroke-width='2'/></svg>") 10 10;
}

[data-theme="night"] {
  --bg:        var(--black);
  --ink:       var(--offwhite);
  --ink-mute:  rgba(245, 243, 245, 0.65);
  --ink-soft:  rgba(245, 243, 245, 0.4);
  --line-1:    rgba(245, 243, 245, 0.08);
  --line-2:    rgba(245, 243, 245, 0.20);
  --shadow:    var(--green); /* glow-style offset on dark bg */

  /* White pixel cursor for dark mode */
  --cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><rect x='2' y='2' width='2' height='2' fill='%23F5F3F5'/><rect x='2' y='4' width='2' height='2' fill='%23F5F3F5'/><rect x='4' y='4' width='2' height='2' fill='%23F5F3F5'/><rect x='2' y='6' width='2' height='2' fill='%23F5F3F5'/><rect x='4' y='6' width='2' height='2' fill='%23F5F3F5'/><rect x='6' y='6' width='2' height='2' fill='%23F5F3F5'/><rect x='2' y='8' width='2' height='2' fill='%23F5F3F5'/><rect x='4' y='8' width='2' height='2' fill='%23F5F3F5'/><rect x='6' y='8' width='2' height='2' fill='%23F5F3F5'/><rect x='8' y='8' width='2' height='2' fill='%23F5F3F5'/><rect x='2' y='10' width='2' height='2' fill='%23F5F3F5'/><rect x='4' y='10' width='2' height='2' fill='%23F5F3F5'/><rect x='6' y='10' width='2' height='2' fill='%23F5F3F5'/><rect x='2' y='12' width='2' height='2' fill='%23F5F3F5'/><rect x='4' y='12' width='2' height='2' fill='%23F5F3F5'/><rect x='6' y='12' width='2' height='2' fill='%23F5F3F5'/><rect x='2' y='14' width='2' height='2' fill='%23F5F3F5'/><rect x='8' y='14' width='2' height='2' fill='%23F5F3F5'/></svg>") 2 2;
}

/* Night mode: contained patches that don't cleanly come from token swap */
[data-theme="night"] .menubar { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
[data-theme="night"] .dock { border-top: 1px solid rgba(255, 255, 255, 0.1); }
[data-theme="night"] .icon-label { background: rgba(31, 29, 29, 0.85); color: var(--offwhite); }
[data-theme="night"] .desk-icon:hover { background: rgba(255, 172, 236, 0.18); }
[data-theme="night"] .scope-option:hover { background: rgba(255, 172, 236, 0.18); }
[data-theme="night"] .scope-option:has(input:checked) { background: rgba(255, 172, 236, 0.55); }
[data-theme="night"] .crt-sticker, [data-theme="night"] .crt-postit { border-color: var(--black); }
[data-theme="night"] .mod-card:not(.mod-card-pink):not(.mod-card-yellow) {
  background: rgba(255, 255, 255, 0.04);
}
[data-theme="night"] .case { background: rgba(255, 255, 255, 0.03); }
[data-theme="night"] .expertise-list li { background: rgba(255, 255, 255, 0.03); }
/* Force readable text on the always-pink and always-yellow cards */
.mod-card-pink .mod-name,
.mod-card-yellow .mod-name { color: var(--black) !important; }
.mod-card-pink, .mod-card-yellow { color: var(--black); }

/* ─── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--f-body);
  background: var(--black);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  cursor: var(--cursor), default;
}
img { max-width: 100%; height: auto; display: block; }
a, button { cursor: inherit; font: inherit; color: inherit; background: none; border: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: -200px; left: 1rem;
  background: var(--black);
  color: var(--offwhite);
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-family: var(--f-mono);
  font-size: 0.8rem;
}
.skip-link:focus { top: 1rem; }

.is-hidden { display: none !important; }

/* ────────────────────────────────────────────────────────────────────────
   BOOT STAGE — black screen, CRT in center, typewriter
   ──────────────────────────────────────────────────────────────────────── */
.boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0a0808;
  display: grid;
  place-items: center;
  padding: 1.5rem 1.5rem 5rem;
  background-image: radial-gradient(ellipse at center, rgba(31, 29, 29, 0.6) 0%, #050404 80%);
  transition: opacity 0.7s var(--ease), transform 1s var(--ease);
}
.boot.is-leaving {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.crt {
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
  transition: transform 0.9s var(--ease);
}
.boot.is-leaving .crt { transform: scale(1.4); }

.crt-bezel {
  width: min(900px, 90vw);
  aspect-ratio: 4 / 3;
  max-height: calc(100vh - 9rem);
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 4px solid #0d0d0d;
  border-radius: 18px;
  padding: clamp(40px, 5vw, 60px);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    inset 0 -2px 3px rgba(0, 0, 0, 0.4);
}

/* Sticker — pink decal stuck on the bezel, sits ON TOP of screen */
.crt-sticker {
  position: absolute;
  top: 14px;
  right: 22px;
  z-index: 10;
  padding: 0.5rem 0.85rem;
  background: var(--pink);
  color: var(--black);
  border: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-align: center;
  transform: rotate(-7deg);
  box-shadow:
    2px 3px 4px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.crt-sticker span { display: block; }

/* Pink post-it — bottom-left, overlapping the screen edge */
.crt-postit {
  position: absolute;
  bottom: -22px;
  left: 28px;
  z-index: 10;
  width: 170px;
  padding: 0.95rem 1rem 1rem;
  background: var(--pink);
  color: var(--black);
  border: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.74rem;
  line-height: 1.45;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  transform: rotate(-4deg);
  box-shadow:
    4px 6px 12px rgba(0, 0, 0, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}
.crt-postit::before {
  /* Subtle "tape strip" at the top of the post-it */
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 50%;
  height: 14px;
  background: rgba(245, 243, 245, 0.55);
  border: 1px solid rgba(31, 29, 29, 0.15);
}

.crt-screen {
  width: 100%; height: 100%;
  background: var(--offwhite);
  border-radius: 8px;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 30px rgba(31, 29, 29, 0.18),
    inset 0 0 0 1px rgba(31, 29, 29, 0.4);
}
.crt-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(31, 29, 29, 0.05) 2px,
    rgba(31, 29, 29, 0.05) 3px
  );
}
.crt-glare {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 8px 8px 0 0;
}

.crt-text {
  font-family: var(--f-mono);
  font-size: clamp(0.95rem, 1.5vw, 1.18rem);
  line-height: 1.5;
  color: var(--black);
  white-space: pre;
  position: relative;
  z-index: 2;
}
.crt-text .big {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin: 0.2em 0;
  text-align: center;
}
.crt-text .big.honey { color: var(--green); }
.crt-text .blink::after {
  content: '_';
  display: inline-block;
  margin-left: 0.05em;
  color: var(--green);
  animation: blink 1s step-end infinite;
}
.crt-text .subtle {
  display: block;
  margin-top: 1em;
  color: var(--ink-soft);
  font-size: 0.85em;
  text-align: center;
  animation: blink-soft 1.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes blink-soft { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.crt-led {
  position: absolute;
  bottom: 14px; right: 22px;
  width: 8px; height: 8px;
  background: var(--live);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--live);
  animation: led-flicker 3s ease-in-out infinite;
}
@keyframes led-flicker {
  0%, 95%, 100% { opacity: 1; }
  97%           { opacity: 0.4; }
}

.crt-brand {
  position: absolute;
  top: 18px; left: 28px;
  font-family: var(--f-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}
.crt-brand::first-letter { color: var(--pink); margin-right: 0.2em; }

.boot-skip {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1rem;
  border: 1px dashed rgba(245, 243, 245, 0.25);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 243, 245, 0.55);
  background: transparent;
  cursor: var(--cursor), pointer;
  transition: color 0.2s, border-color 0.2s;
  animation: blink-soft 1.8s ease-in-out infinite;
  z-index: 5;
}
.boot-skip:hover {
  color: var(--pink);
  border-color: var(--pink);
}
.boot-skip .key {
  background: rgba(245, 243, 245, 0.08);
  padding: 0.15rem 0.45rem;
  border: 1px solid currentColor;
}

/* ────────────────────────────────────────────────────────────────────────
   DESKTOP — menu bar + desk + dock
   ──────────────────────────────────────────────────────────────────────── */
.desktop {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: grid;
  grid-template-rows: var(--menubar-h) 1fr var(--strip-h);
  opacity: 0;
  transition: opacity 0.7s var(--ease) 0.3s, background 0.3s ease;
}
.desktop.is-revealed { opacity: 1; }

/* ── Menu bar ── */
.menubar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.85rem;
  background: var(--black);
  color: var(--offwhite);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  user-select: none;
}
.menu-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-right: 0.85rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  height: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.menu-star { color: var(--pink); }
.menu-items {
  display: flex;
  gap: 0.15rem;
}
.menu-item {
  padding: 0.3rem 0.65rem;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: rgba(255, 255, 255, 0.7);
  cursor: var(--cursor), pointer;
  transition: background 0.15s, color 0.15s;
}
.menu-item:hover {
  background: var(--pink);
  color: var(--black);
}
.menu-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.menubar .theme-toggle {
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--offwhite);
  cursor: var(--cursor), pointer;
  transition: transform 0.3s var(--ease);
}
.menubar .theme-toggle:hover { transform: rotate(20deg); color: var(--pink); }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.74rem;
}
.lang-btn {
  padding: 0.2rem 0.35rem;
  opacity: 0.55;
  cursor: var(--cursor), pointer;
}
.lang-btn:hover { opacity: 0.85; }
.lang-btn.active { opacity: 1; color: var(--pink); font-weight: 700; }
.lang-divider { opacity: 0.4; }
.clock {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--live);
  padding-left: 0.7rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

/* ── Desk area ── */
.desk {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  background-image:
    linear-gradient(rgba(31, 29, 29, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 29, 29, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  cursor: var(--cursor), default;
}
[data-theme="night"] .desk {
  background-image:
    linear-gradient(rgba(245, 243, 245, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 245, 0.07) 1px, transparent 1px);
}

.desk-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* corner glows — more present */
    radial-gradient(circle at 12% 20%, rgba(255, 172, 236, 0.32) 0%, transparent 35%),
    radial-gradient(circle at 88% 80%, rgba(0, 122, 63, 0.20) 0%, transparent 35%),
    radial-gradient(circle at 50% 110%, rgba(255, 214, 110, 0.18) 0%, transparent 30%);
}

/* Sticky note (top-right) */
.sticky-note {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--hot);
  color: var(--black);
  padding: 0.85rem 1rem 0.95rem;
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transform: rotate(2.5deg);
  z-index: 5;
  max-width: 200px;
}
.sticky-note p { padding: 0.1rem 0; }
.sticky-note strong { font-weight: 700; }
.sticky-time {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(31, 29, 29, 0.6);
}

/* ── WIDGETS — desktop floating cards ── */
.widget {
  position: absolute;
  border: 1px solid var(--ink);
  background: var(--bg);
  box-shadow: 5px 5px 0 var(--shadow);
  font-family: var(--f-mono);
  z-index: 4;
  overflow: hidden;
}
.widget-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  background: var(--black);
  color: var(--offwhite);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.widget-led {
  width: 7px; height: 7px;
  background: var(--live);
  box-shadow: 0 0 6px var(--live);
  border-radius: 50%;
  animation: led-pulse 1.5s ease-in-out infinite;
}
.widget-title { letter-spacing: 0.1em; }

/* Status terminal widget */
.widget-status {
  bottom: 1.5rem;
  right: 1.5rem;
  width: 320px;
  background: var(--black);
  color: var(--offwhite);
  padding: 1rem 1.1rem;
  border: none;
  box-shadow: 6px 6px 0 var(--green);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  text-align: left;
  cursor: var(--cursor), pointer;
  transition: transform 0.15s var(--ease-snap), box-shadow 0.15s var(--ease-snap);
}
.widget-status:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--green);
}
.widget-status:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--green);
}
.status-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-prompt { color: var(--pink); margin-right: 0.45em; font-weight: 700; }
.status-arrow  { color: var(--green); margin-right: 0.45em; }
.status-online {
  color: var(--live);
  font-weight: 700;
  margin-left: 0.4em;
}
.status-mute  {
  color: rgba(245, 243, 245, 0.5);
  margin-left: 0.4em;
}
.status-mute-line {
  color: rgba(245, 243, 245, 0.4);
  margin-top: 0.4em;
}
.status-badge {
  display: inline-block;
  background: var(--pink);
  color: var(--black);
  padding: 0.05rem 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--offwhite);
  margin-left: 0.4em;
  transition: background 0.2s, transform 0.15s var(--ease-snap);
}
.widget-status.is-flipping .status-badge {
  transform: scale(0.94);
}

/* Hide widgets on small screens */
@media (max-width: 880px) {
  .widget { display: none; }
}

/* Wallpaper signature — hidden, brand lives in menu bar now */
.wallpaper-tag { display: none; }

/* ── Icons grid (top-left) ── */
.icons-grid {
  position: absolute;
  top: 1.5rem;
  bottom: 1rem;
  left: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: max-content;
  gap: 1rem;
  z-index: 4;
  align-content: start;
  overflow: hidden;
}
.icons-grid-right {
  left: auto;
  right: 1.5rem;
}
.desk-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.65rem;
  width: 80px;
  cursor: var(--cursor), pointer;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: center;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background 0.12s, border-color 0.12s;
}
.desk-icon:hover {
  background: rgba(255, 172, 236, 0.25);
  border-color: var(--ink);
}
.desk-icon:focus-visible {
  background: var(--pink);
  outline: 2px dashed var(--ink);
  outline-offset: -3px;
}
.icon-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
}
.icon-label {
  background: rgba(245, 243, 245, 0.85);
  padding: 0.1rem 0.35rem;
  border: 1px solid transparent;
  white-space: nowrap;
}
.desk-icon:hover .icon-label,
.desk-icon:focus-visible .icon-label {
  background: var(--black);
  color: var(--offwhite);
  border-color: var(--ink);
}
.icon-cta .icon-label {
  background: var(--green);
  color: var(--offwhite);
  border-color: var(--ink);
}

/* ────────────────────────────────────────────────────────────────────────
   WINDOWS
   ──────────────────────────────────────────────────────────────────────── */
.window {
  position: absolute;
  left: var(--x, 100px);
  top:  var(--y, 100px);
  width: var(--w, 480px);
  max-width: calc(100vw - 4rem);
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--shadow);
  z-index: 10;
  transform-origin: top left;
  animation: win-open 0.32s var(--ease-snap);
}
.window[hidden] { display: none; }
.window.is-closing { animation: win-close 0.22s var(--ease) forwards; }
@keyframes win-open {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes win-close {
  to { opacity: 0; transform: scale(0.94); }
}

.window-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: var(--black);
  color: var(--offwhite);
  border-bottom: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  user-select: none;
  cursor: var(--cursor-grab), grab;
}
.window-titlebar:active { cursor: var(--cursor-grab), grabbing; }
.window-title {
  margin-left: auto;
  margin-right: auto;
  padding-right: 2.5rem;
  opacity: 0.85;
  font-weight: 700;
}
.window:not(.is-focused) .window-titlebar {
  background: rgba(31, 29, 29, 0.55);
}
.win-act {
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--offwhite);
  color: var(--black);
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--black);
  cursor: var(--cursor), pointer;
  flex-shrink: 0;
  line-height: 1;
}
.win-act.close { background: var(--pink); }
.win-act.min   { background: var(--hot); }
.win-act:hover { background: var(--black); color: var(--offwhite); }

.window-body {
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--bg);
  color: var(--ink);
  max-height: 60vh;
  overflow-y: auto;
}
.window-body p { padding: 0.3rem 0; }
.window-body strong { color: var(--green); font-weight: 700; }
.window-body kbd {
  display: inline-block;
  padding: 0 0.35rem;
  background: var(--black);
  color: var(--offwhite);
  font-family: var(--f-mono);
  font-size: 0.78em;
  border: 1px solid var(--ink);
}
.window-body hr {
  margin: 1rem 0;
  border: none;
  border-top: 1px dashed var(--line-2);
}

/* Welcome window */
.window[data-window-id="welcome"] .window-body {
  font-family: var(--f-mono);
  font-size: 0.92rem;
}
.ascii-banner {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--green);
  margin-bottom: 1rem;
  white-space: pre;
}
.welcome-greet {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--green);
  margin-bottom: 0.65rem !important;
  letter-spacing: -0.01em;
}
.welcome-tagline {
  font-family: var(--f-mono);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 0.15rem 0 !important;
}
.welcome-tagline strong { color: var(--green) !important; }
.welcome-cta {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--green);
  font-weight: 600;
}
.welcome-tip {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.65rem;
  letter-spacing: 0.04em;
  font-family: var(--f-mono);
}

/* About (replaces manifesto) */
.about-body {
  font-family: var(--f-mono);
  font-size: 0.92rem;
  line-height: 1.65;
}
.about-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--green);
  margin-bottom: 1rem;
}
.about-body p { padding: 0.4rem 0; }
.about-body strong { color: var(--green); }
.about-sig {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-2);
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
  text-align: right;
}

/* Philosophy — three statements */
.philo-statement {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line-1);
}
.philo-statement:last-child { border-bottom: none; }
.philo-statement .philo-num {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  background: var(--pink);
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--ink);
  text-align: center;
  display: inline-block;
}
.philo-statement p {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: 0;
}
.philo-statement strong { color: var(--green); }

/* Team — expertise list */
.team-intro {
  font-family: var(--f-mono);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-bottom: 0.5rem !important;
}
.team-intro strong { color: var(--green); }
.team-sub {
  font-size: 0.92rem;
  color: var(--ink-mute);
  padding-bottom: 1rem !important;
  border-bottom: 1px solid var(--line-1);
  margin-bottom: 0.75rem;
}
.expertise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}
.expertise-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ink);
  background: var(--bg);
  font-family: var(--f-mono);
  font-size: 0.85rem;
  line-height: 1.55;
}
.expertise-list .ex-dot {
  width: 14px; height: 14px;
  border: 1px solid var(--ink);
  display: inline-block;
}
.expertise-list .ex-sub {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.team-recruit {
  margin-top: 1rem !important;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line-2);
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.team-recruit a {
  color: var(--green) !important;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

/* Events — coming soon */
.events-soon {
  text-align: center;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px dashed var(--line-2);
  margin-bottom: 1rem;
}
.events-tag {
  display: inline-block;
  background: var(--hot);
  color: var(--black);
  border: 1px solid var(--ink);
  padding: 0.3rem 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.events-soon h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.events-soon p {
  font-family: var(--f-mono);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-mute);
}
.events-list {
  list-style: none;
  font-family: var(--f-mono);
  font-size: 0.88rem;
  line-height: 1.85;
  padding: 0;
}
.events-form {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px dashed var(--line-2);
}
.events-form-label {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem !important;
}
.events-input-row {
  display: flex;
  border: 1px solid var(--ink);
  background: var(--bg);
  box-shadow: 3px 3px 0 var(--ink);
}
.events-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-family: var(--f-mono);
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
}
.events-input-row input::placeholder { color: var(--ink-soft); }
.events-input-row button {
  border: none;
  border-left: 1px solid var(--ink);
  background: var(--green);
  color: var(--offwhite);
  padding: 0 1.1rem;
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: var(--cursor), pointer;
  transition: background 0.2s;
}
.events-input-row button:hover { background: var(--pink); color: var(--black); }

/* Referrals — open-source sales program */
.referrals-body { font-family: var(--f-mono); font-size: 0.9rem; line-height: 1.55; }
.referrals-tag {
  display: inline-block;
  background: var(--hot);
  color: var(--black);
  border: 1px solid var(--ink);
  padding: 0.3rem 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.referrals-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--green);
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}
.referrals-lead {
  font-size: 0.92rem;
  color: var(--ink-mute);
  margin-bottom: 1.1rem !important;
}
.referrals-lead strong { color: var(--green); }
.referrals-flow {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px dashed var(--line-2);
  background: rgba(255, 172, 236, 0.08);
}
[data-theme="night"] .referrals-flow { background: rgba(255, 172, 236, 0.06); }
.ref-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.85rem;
  align-items: center;
}
.ref-num {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 0.25rem 0.4rem;
  text-align: center;
  letter-spacing: 0.06em;
}
.ref-text {
  font-family: var(--f-mono);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink);
}
.ref-text strong { color: var(--green); font-weight: 700; }
.referrals-cta {
  font-family: var(--f-mono);
  font-size: 0.86rem;
  color: var(--green);
  font-weight: 700;
  padding-top: 0.5rem !important;
  margin-bottom: 0.85rem !important;
}
.referrals-link {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.86rem;
  color: var(--offwhite) !important;
  background: var(--green);
  border: 1px solid var(--ink);
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s var(--ease-snap), box-shadow 0.12s var(--ease-snap);
  cursor: var(--cursor), pointer;
}
.referrals-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

/* Apply form (referrals signup) */
.apply-body { font-family: var(--f-mono); font-size: 0.88rem; line-height: 1.55; }
.apply-lead {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-top: 0.85rem;
  margin-bottom: 1rem !important;
  padding: 0.4rem 0 !important;
}
.apply-fields {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.apply-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.apply-fields label em { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.apply-fields input,
.apply-fields textarea {
  font: inherit;
  font-family: var(--f-body);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}
.apply-fields input:focus,
.apply-fields textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.apply-actions {
  margin-top: 0.85rem;
  display: flex;
  justify-content: flex-end;
}
.apply-success {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 0.5rem;
  background: var(--green);
  color: var(--offwhite);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  animation: step-in 0.35s var(--ease);
}
.apply-success span {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.apply-success p {
  font-family: var(--f-mono);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}
.apply-success strong { color: var(--hot); }

/* Info window (renamed from help) */
.info-body { font-family: var(--f-body); font-size: 0.9rem; line-height: 1.5; }
.info-block {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0 !important;
}
.info-block strong {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green);
  letter-spacing: -0.01em;
}
.info-foot {
  margin-top: 0.75rem !important;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--line-2);
  color: var(--green);
  font-family: var(--f-mono);
  font-size: 0.82rem;
}

/* Services / folder */
.folder-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-1);
}
.services-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mod-card {
  border: 1px solid var(--ink);
  background: var(--bg);
  padding: 1.1rem 1.2rem;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s var(--ease-snap), box-shadow 0.15s var(--ease-snap);
}
.mod-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.mod-card-pink { background: var(--pink); }
.mod-card-yellow { background: var(--hot); }
.mod-num {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.35rem;
}
.mod-card-pink .mod-num,
.mod-card-yellow .mod-num { color: var(--black); }
.mod-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.mod-desc {
  font-family: var(--f-mono);
  font-size: 0.88rem;
  color: var(--ink-mute);
  margin-bottom: 0.65rem;
  line-height: 1.65;
}
.mod-card-pink .mod-desc,
.mod-card-yellow .mod-desc { color: rgba(31, 29, 29, 0.75); }
.mod-caps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* Philosophy */
.philo-body { font-family: var(--f-body); }
.philo-intro {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-1);
}
.philo-item {
  border-bottom: 1px solid var(--line-1);
  padding: 0.6rem 0;
}
.philo-item summary {
  display: flex;
  gap: 0.6rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.005em;
  cursor: var(--cursor), pointer;
  list-style: none;
}
.philo-item summary::-webkit-details-marker { display: none; }
.philo-item summary::before {
  content: '+';
  display: inline-block;
  margin-left: auto;
  color: var(--green);
  font-family: var(--f-mono);
  transition: transform 0.2s;
}
.philo-item[open] summary::before { content: '−'; }
.philo-num {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.1em;
}
.philo-item p {
  padding-top: 0.6rem;
  color: var(--ink-mute);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Team */
.team-intro {
  font-size: 0.95rem;
  color: var(--ink-mute);
  margin-bottom: 1rem !important;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}
.member {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--ink);
  background: var(--bg);
}
.member-avatar {
  width: 50px; height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}
.member-avatar-empty {
  background: var(--bg);
  color: var(--green);
}
.member-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.member-meta strong {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--ink) !important;
}
.member-meta > span {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.member-live {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.led {
  width: 7px; height: 7px;
  background: var(--live);
  box-shadow: 0 0 0 1px var(--ink);
  display: inline-block;
  animation: led-pulse 1.5s ease-in-out infinite;
}
@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.member-cta {
  font-family: var(--f-mono);
  font-size: 0.78rem !important;
  color: var(--green) !important;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  align-self: flex-start;
  margin-top: 0.3rem;
  cursor: var(--cursor), pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Work */
.work-empty {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--ink-mute);
  padding-bottom: 0.8rem !important;
  border-bottom: 1px solid var(--line-1);
  margin-bottom: 1rem;
}
.case {
  padding: 1.25rem;
  border: 1px solid var(--ink);
  background: var(--bg);
  box-shadow: 4px 4px 0 var(--ink);
}
.case-tag {
  display: inline-block;
  background: var(--hot);
  color: var(--black);
  padding: 0.2rem 0.55rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.65rem;
  border: 1px solid var(--ink);
}
.case h3 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.case p {
  color: var(--ink-mute);
  font-size: 0.92rem;
}
.case-soon {
  font-family: var(--f-mono);
  font-size: 0.78rem !important;
  color: var(--green) !important;
  margin-top: 0.85rem !important;
}

/* Help */
.help-body { font-family: var(--f-mono); font-size: 0.86rem; }
.help-list {
  font-family: var(--f-mono);
  font-size: 0.86rem;
  line-height: 1.9;
  white-space: pre-wrap;
}
.help-key {
  display: inline-block;
  background: var(--black);
  color: var(--offwhite);
  padding: 0 0.45rem;
  font-weight: 700;
  margin-right: 0.5rem;
  font-size: 0.78rem;
}
.help-foot {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line-2);
  color: var(--green);
  font-size: 0.82rem;
}

/* ─── Contact / scope wizard ──────────────────────────────────────── */
.scope-progress {
  height: 5px;
  background: var(--line-1);
  border-bottom: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.scope-progress-bar {
  height: 100%;
  background: var(--green);
  width: 25%;
  transition: width 0.4s var(--ease-snap);
  background-image: repeating-linear-gradient(45deg,
    var(--green) 0, var(--green) 8px,
    rgba(255,255,255,0.18) 8px, rgba(255,255,255,0.18) 16px);
}
.scope-body { padding: 1.25rem 1.5rem; }
.scope-step {
  border: none;
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  animation: step-in 0.35s var(--ease);
}
.scope-step.active { display: flex; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.scope-step legend {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.step-pill {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  background: var(--black);
  color: var(--offwhite);
  padding: 0.15rem 0.45rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.step-pill.ok { background: var(--live); color: var(--black); }
.scope-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.scope-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ink);
  background: var(--bg);
  cursor: var(--cursor), pointer;
  transition: background 0.15s, transform 0.12s var(--ease-snap);
  font-size: 0.95rem;
}
.scope-option:hover {
  background: rgba(255, 172, 236, 0.25);
}
.scope-option input { accent-color: var(--green); }
.scope-option:has(input:checked) {
  background: var(--pink);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 600;
}
.scope-fields {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.scope-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.scope-fields input,
.scope-fields textarea {
  font: inherit;
  font-family: var(--f-body);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}
.scope-fields input:focus,
.scope-fields textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.scope-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: var(--cursor), pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s var(--ease-snap), box-shadow 0.12s var(--ease-snap);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn-pink { background: var(--pink); }
.btn-green { background: var(--green); color: var(--offwhite); }

.scope-success { text-align: center; align-items: center; }
.scope-success p { color: var(--ink-mute); }
.scope-summary {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  background: var(--black);
  color: var(--offwhite);
  padding: 0.85rem 1rem;
  margin-top: 0.85rem;
  text-align: left;
  white-space: pre-wrap;
  border: 1px solid var(--ink);
  width: 100%;
}

/* ────────────────────────────────────────────────────────────────────────
   FOOTER STRIP — copyright + brand line above dock
   ──────────────────────────────────────────────────────────────────────── */
.footer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.85rem;
  background: var(--black);
  color: var(--offwhite);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
}
.footer-l { color: var(--pink); font-weight: 700; flex-shrink: 0; }
.footer-c { color: rgba(245, 243, 245, 0.55); }
.footer-r { color: rgba(245, 243, 245, 0.5); flex-shrink: 0; }

@media (max-width: 760px) {
  .footer-c { display: none; }
  .footer-strip { font-size: 0.6rem; padding: 0 0.7rem; }
}

/* ────────────────────────────────────────────────────────────────────────
   DOCK
   ──────────────────────────────────────────────────────────────────────── */
.dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  background: var(--black);
  color: var(--offwhite);
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}
.dock-item {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: rgba(245, 243, 245, 0.08);
  color: var(--offwhite);
  font-size: 0.95rem;
  cursor: var(--cursor), pointer;
  transition: background 0.15s, transform 0.12s var(--ease-snap), border-color 0.15s;
}
.dock-item:hover {
  background: var(--pink);
  color: var(--black);
  transform: translateY(-2px);
  border-color: var(--offwhite);
}
.dock-divider {
  width: 1px; height: 22px;
  background: rgba(255, 255, 255, 0.18);
}
.dock-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--green);
  color: var(--offwhite);
  border: 1px solid var(--offwhite);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: var(--cursor), pointer;
  transition: transform 0.12s var(--ease-snap), background 0.15s;
}
.dock-cta:hover { transform: translateY(-2px); background: var(--pink); color: var(--black); }
.dock-cta-icon { font-size: 0.95rem; }
.dock-cta-arrow { background: var(--pink); color: var(--black); padding: 0.05rem 0.45rem; border: 1px solid var(--offwhite); }
.dock-cta:hover .dock-cta-arrow { background: var(--black); color: var(--offwhite); border-color: var(--black); }

/* ────────────────────────────────────────────────────────────────────────
   TOAST
   ──────────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--strip-h) + 1.25rem);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--ink);
  background: var(--green);
  color: var(--offwhite);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ────────────────────────────────────────────────────────────────────────
   MOBILE — collapse OS to a single-window-at-a-time view
   ──────────────────────────────────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────────────────────
   MOBILE — collapse OS to single-column flow + full-screen sheets
   ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 880px) {

  .desktop {
    grid-template-rows: var(--menubar-h) 1fr var(--strip-h);
  }

  /* Menubar — shrink */
  .menu-items { display: none; }
  .menubar { padding: 0 0.6rem; gap: 0.4rem; font-size: 0.7rem; }
  .menu-brand { padding-right: 0.55rem; font-size: 0.78rem; }
  .menu-right { gap: 0.45rem; }
  .clock { padding-left: 0.45rem; font-size: 0.7rem; }

  /* Desk — let it scroll if icons overflow */
  .desk { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .desk-bg { display: none; } /* skip glow gradients on small screens */

  /* Both icon grids flow normally on mobile, side by side becomes stacked */
  .icons-grid,
  .icons-grid-right {
    position: static;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    overflow: visible;
    align-content: start;
    width: 100%;
    bottom: auto;
    top: auto;
    left: auto;
    right: auto;
  }
  .icons-grid-right {
    padding-top: 0.5rem;
    border-top: 1px dashed var(--line-1);
    margin-top: 0.5rem;
  }
  .desk-icon { width: 100%; }

  /* Hide widgets on mobile — they don't fit cleanly */
  .widget { display: none; }

  /* Each open window becomes a full-screen sheet */
  .window {
    position: fixed !important;
    left: 0 !important;
    top: var(--menubar-h) !important;
    width: 100% !important;
    max-width: 100%;
    bottom: var(--strip-h);
    height: calc(100vh - var(--menubar-h) - var(--strip-h));
    box-shadow: none;
    border-left: none;
    border-right: none;
    z-index: 50 !important;
    animation: sheet-in 0.32s var(--ease);
  }
  @keyframes sheet-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .window.is-closing { animation: sheet-out 0.22s var(--ease) forwards; }
  @keyframes sheet-out {
    to { opacity: 0; transform: translateY(20px); }
  }

  .window-titlebar { cursor: var(--cursor), default; }
  .window-body { max-height: none; height: calc(100% - 32px); overflow-y: auto; }

  /* Footer strip — keep but tighter */
  .footer-strip {
    font-size: 0.55rem;
    padding: 0 0.6rem;
    letter-spacing: 0.08em;
  }

  /* Boot CRT — scale down */
  .crt-bezel { padding: 22px; }
  .crt-text { font-size: 0.78rem; }
  .crt-text .big { font-size: clamp(2rem, 9vw, 3.6rem); }
  .crt-sticker { font-size: 0.66rem; padding: 0.4rem 0.65rem; }
  .crt-postit { width: 130px; font-size: 0.6rem; padding: 0.7rem 0.75rem 0.8rem; }
}

@media (max-width: 600px) {
  .icons-grid,
  .icons-grid-right {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.85rem;
  }
  .footer-c { display: none; } /* hide center text, keep brand+copyright */
}

@media (max-width: 380px) {
  .menu-brand span:not(.menu-star) { display: none; } /* just star on tiny phones */
  .footer-strip { font-size: 0.5rem; }
}

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