/* ════════════════════════════════════════
   PNT.OS — developer world desktop
════════════════════════════════════════ */
body.world {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* ── Menu bar ─────────────────────────── */
.menubar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 36px;
  padding: 0 16px;
  background: rgba(8,11,20,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 5000;
}
.menubar-logo { font-weight: 500; color: #fff; letter-spacing: 0.06em; }
.menubar-logo span { color: var(--red); }
.menubar-user { color: var(--text-muted); }
.menubar-right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.menubar-right button { color: var(--text-muted); transition: color 0.2s; }
.menubar-right button:hover { color: #fff; }
.menubar-clock { color: var(--text); min-width: 5ch; text-align: right; }

/* ── Desktop ──────────────────────────── */
.desktop {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.wallpaper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}
/* Icon labels stay readable over a bright daytime sky */
.desk-icon > span:last-child { text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.6); }

.desktop-icons {
  position: absolute;
  top: 20px; left: 16px; bottom: 20px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 2px 8px;
}
.desk-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 88px;
  padding: 8px 4px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.desk-icon:hover { background: rgba(255,255,255,0.04); }
.desk-icon.selected,
.desk-icon:focus-visible {
  outline: none;
  background: var(--red-dim);
  border-color: rgba(255,51,77,0.4);
}
.desk-glyph {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  background: linear-gradient(160deg, var(--panel-hi), var(--panel));
  font-size: 1.15rem;
  color: var(--orange);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.desk-icon[data-app="terminal"] .desk-glyph { color: var(--green); }
.desk-icon[data-app="contact"] .desk-glyph,
.desk-icon[data-app="cv"] .desk-glyph,
.desk-icon[data-app="cvfr"] .desk-glyph { color: var(--red); }

/* ── Windows ──────────────────────────── */
.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  min-height: 180px;
  max-width: calc(100% - 16px);
  max-height: calc(100% - 16px);
  background: var(--bg-alt);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  overflow: hidden;
  animation: win-open 0.28s var(--ease-out);
  user-select: text;
}
.win.focused { border-color: rgba(255,51,77,0.45); box-shadow: 0 30px 90px rgba(0,0,0,0.6), 0 0 30px rgba(255,51,77,0.1); }
.win.minimized { display: none; }
.win.maximized {
  left: 8px !important;
  top: 8px !important;
  width: calc(100% - 16px) !important;
  height: calc(100% - 16px) !important;
}
.win.no-pop { animation: none; }
@keyframes win-open {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 8px 0 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: grab;
  touch-action: none;
  user-select: none;
  flex-shrink: 0;
}
.win.dragging .win-bar { cursor: grabbing; }
.win.focused .win-bar { color: var(--text); }
.win-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-title b { color: var(--orange); font-weight: 400; margin-right: 6px; }
.win-ctrls { display: flex; gap: 2px; }
.win-ctrls button {
  width: 28px; height: 24px;
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}
.win-ctrls button:hover { background: rgba(255,255,255,0.07); color: #fff; }
.win-ctrls button[data-act="close"]:hover { background: var(--red); color: var(--bg); }

.win-body {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--text-dim) transparent;
}

/* ── Document content ─────────────────── */
.doc { padding: 22px 24px 26px; font-size: 0.95rem; color: var(--text-muted); }
.doc > * + * { margin-top: 14px; }
.doc h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
.doc h3 { font-family: var(--font-display); font-size: 1.1rem; color: #fff; }
.doc a, .doc .link { color: var(--red); }
.doc a:hover, .doc .link:hover { text-decoration: underline; }
.doc code {
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--orange);
}
.accent { color: var(--red); }
.doc-kicker { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.06em; }
.doc-muted { font-size: 0.85rem; }
.doc-list li { position: relative; padding-left: 18px; margin-top: 6px; }
.doc-list li::before { content: '›'; position: absolute; left: 2px; color: var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span {
  padding: 3px 10px;
  border: 1px solid var(--border-hi);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
}
.chips-accent span { border-color: rgba(255,51,77,0.45); color: var(--red); background: var(--red-dim); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-row div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}
.stat-row b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: #fff; line-height: 1.1; }
.stat-row span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }

.mission, .project {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--red);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}
.mission > * + *, .project > * + * { margin-top: 10px; }
.mission-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mission-head span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--orange); white-space: nowrap; }
.mission-role { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }
.mission .mission-role { margin-top: 2px; }
.project-head { display: flex; align-items: baseline; gap: 12px; }
.project-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--red); }

.doc-code { font-family: var(--font-mono); font-size: 0.82rem; }
.cmd { color: var(--text); }
.cmd .prompt, .term .prompt { color: var(--red); margin-right: 8px; }
.skill-group { padding-left: 14px; border-left: 1px dashed var(--border-hi); }
.skill-key { color: var(--orange); margin-bottom: 8px; }
.skill-key::after { content: ':'; color: var(--text-dim); }
.cert-log li { margin-top: 4px; }
.ok { color: var(--green); }
.warn { color: var(--orange); }

.contact-rows { display: grid; gap: 6px; }
.contact-rows a {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text) !important;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.contact-rows a:hover { border-color: var(--red); background: var(--red-dim); text-decoration: none !important; }
.contact-rows span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); align-self: center; }

/* ── Terminal ─────────────────────────── */
.term {
  min-height: 100%;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text);
  background: #05070d;
  cursor: text;
}
.term-out { white-space: pre-wrap; word-break: break-word; }
.term-out .muted { color: var(--text-muted); }
.term-out .err { color: var(--red); }
.term-out a { color: var(--orange); text-decoration: underline; }
.term-line { display: flex; align-items: center; }
.term-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  font: inherit;
  color: #fff;
  caret-color: var(--red);
}

/* ── Taskbar ──────────────────────────── */
.taskbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 10px;
  background: rgba(8,11,20,0.9);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 5000;
}
.taskbar-start {
  padding: 7px 12px;
  border: 1px solid rgba(74,222,128,0.35);
  border-radius: 4px;
  color: var(--green);
}
.taskbar-start:hover { background: rgba(74,222,128,0.08); }
.taskbar-windows { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.task-btn {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  white-space: nowrap;
}
.task-btn:hover { color: #fff; border-color: var(--border-hi); }
.task-btn.active { color: #fff; border-color: rgba(255,51,77,0.5); background: var(--red-dim); }
.task-btn.min { opacity: 0.55; }
.taskbar-hint { color: var(--text-dim); white-space: nowrap; }
.taskbar-hint code { color: var(--orange); }

/* ── Small screens: windows become sheets ── */
@media (max-width: 720px) {
  .menubar-user, .taskbar-hint { display: none; }
  .desktop-icons {
    right: 16px;
    bottom: auto;
    flex-direction: row;
    justify-content: center;
  }
  .desk-icon { width: 78px; }
  .desktop-icons { gap: 2px 6px; }
  .win {
    left: 6px !important;
    top: 6px !important;
    width: calc(100% - 12px) !important;
    height: calc(100% - 12px) !important;
    min-width: 0;
  }
  .win-bar { cursor: default; height: 46px; }
  .win-ctrls button { width: 40px; height: 36px; font-size: 1.1rem; }
  .win-ctrls button[data-act="max"] { display: none; }
  .stat-row { grid-template-columns: 1fr; }

  /* Menu bar on one line */
  .menubar { gap: 12px; padding: 0 12px; }
  .menubar-logo, .menubar-right button { white-space: nowrap; }
  .menubar-right { gap: 12px; font-size: 0.7rem; }

  /* Terminal text a bit smaller so the command list doesn't wrap as much */
  .term { font-size: 0.74rem; }

  /* Icons and widgets flow down the screen instead of overlapping */
  .desktop { display: flex; flex-direction: column; }
  .desktop-icons {
    position: relative;
    inset: auto;
    padding: 16px 12px 0;
    gap: 4px 4px;
    flex-shrink: 0;
  }
  .desk-icon { width: 74px; font-size: 0.66rem; }
}
@media (max-width: 720px) and (max-height: 700px) {
  .sticky { display: none; }
}

/* ── Terminal command shortcuts ───────── */
.term-cmds {
  position: sticky;
  top: -14px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -14px -16px 12px;
  padding: 10px 16px;
  background: #05070d;
  border-bottom: 1px solid var(--border);
}
.term-cmds .term-run {
  padding: 2px 9px;
  border: 1px solid var(--border-hi);
  border-radius: 3px;
  color: var(--text-muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.term-cmds .term-run:hover { color: #fff; border-color: var(--red); background: var(--red-dim); }
.term-out .term-run {
  color: var(--orange);
  font: inherit;
  text-decoration: underline dotted rgba(255,140,66,0.4);
  text-underline-offset: 3px;
}
.term-out .term-run:hover { color: #fff; text-decoration-color: var(--red); }

/* ── CRT feel ─────────────────────────── */
.crt-vignette {
  position: fixed;
  inset: 0;
  z-index: 6000;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 100% at 50% 50%, transparent 60%, rgba(0,0,0,0.45) 100%);
}

/* ── Power on + login ─────────────────── */
.power {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: #000;
  transition: opacity 0.55s ease;
  will-change: opacity;
}
/* A plain fade is composited by the GPU; scaling a full-screen layer is not cheap */
.power.off { opacity: 0; pointer-events: none; }
.power-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(255,51,77,0.08), transparent 70%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.25) 0 1px, transparent 1px 3px),
    #070a12;
  opacity: 0;
}
.power.on .power-screen {
  opacity: 1;
  animation: crt-on 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes crt-on {
  0%   { transform: scale(0, 0.004); background-color: #fff; }
  35%  { transform: scale(1, 0.004); background-color: #e8ecff; }
  60%  { transform: scale(1, 1);     background-color: #2a3150; }
  100% { transform: scale(1, 1);     background-color: #070a12; }
}
.boot-stage {
  width: min(640px, 88vw);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  color: var(--text-muted);
}
.boot-stage .boot-log { min-height: 11em; }
.boot-stage[hidden], .login[hidden] { display: none; }
.login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(340px, 86vw);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  opacity: 0;
  animation: login-in 0.5s ease forwards;
}
@keyframes login-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.login-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px; height: 76px;
  border: 1px solid rgba(255,51,77,0.5);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,51,77,0.15), transparent 70%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: #fff;
  box-shadow: 0 0 40px rgba(255,51,77,0.2);
}
.login-avatar span { color: var(--red); }
.login-host { margin-bottom: 10px; color: var(--text-muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.login-field {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
}
.login-field span { color: var(--text-dim); font-size: 0.72rem; }
.login-field b { min-height: 1.4em; font-weight: 400; color: #fff; }
.login-status { min-height: 1.4em; color: var(--text-muted); font-size: 0.75rem; text-align: center; }
.login-status.ok { color: var(--green); }

/* Desktop fades in behind the login */
.world .menubar, .world .desktop-icons, .world .taskbar { transition: opacity 0.6s ease 0.2s; }
.world:has(.power:not(.off)) .menubar,
.world:has(.power:not(.off)) .desktop-icons,
.world:has(.power:not(.off)) .taskbar { opacity: 0; }

/* ── Power button gate ────────────────── */
.power-gate {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: radial-gradient(ellipse 40% 40% at 50% 50%, rgba(255,51,77,0.07), transparent 70%), #000;
  font-family: var(--font-mono);
  transition: opacity 0.35s ease;
}
.power-gate.gone { opacity: 0; pointer-events: none; }
.power-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px; height: 104px;
  border: 1px solid rgba(255,51,77,0.6);
  border-radius: 50%;
  color: var(--red);
  background: radial-gradient(circle, rgba(255,51,77,0.14), rgba(255,51,77,0.02) 70%);
  box-shadow: 0 0 40px rgba(255,51,77,0.25), inset 0 0 20px rgba(255,51,77,0.15);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, color 0.3s;
}
.power-btn::before, .power-btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(255,51,77,0.5);
  border-radius: 50%;
  animation: ring 2.4s ease-out infinite;
}
.power-btn::after { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2.1); opacity: 0; } }
.power-btn:hover { transform: scale(1.06); color: #fff; box-shadow: 0 0 70px rgba(255,51,77,0.5), inset 0 0 24px rgba(255,51,77,0.3); }
.power-btn:focus-visible { outline-offset: 8px; }
.power-hint { color: var(--text); font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase; }
.power-sub { margin-top: -12px; color: var(--text-dim); font-size: 0.72rem; }

/* ── Glitch on "access granted" ───────── */
/* Only the screen content glitches; the black overlay itself never moves, so the desktop can't peek through */
.power.glitch .power-screen { animation: glitch 0.38s steps(2) both; }
.power.glitch .login { text-shadow: 3px 0 rgba(255,51,77,0.9), -3px 0 rgba(80,200,255,0.8); }
@keyframes glitch {
  0%   { transform: none; filter: none; }
  20%  { transform: translate(-8px, 3px) skewX(10deg); filter: hue-rotate(80deg) saturate(3); }
  40%  { transform: translate(6px, -2px); clip-path: inset(30% 0 40% 0); }
  60%  { transform: translate(-4px, 1px) skewX(-8deg); clip-path: inset(10% 0 60% 0); }
  80%  { transform: translate(3px, 0); clip-path: none; filter: brightness(1.8); }
  100% { transform: none; filter: none; }
}

/* ── Name reveal ──────────────────────── */
.finale {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  text-align: center;
}
.finale[hidden] { display: none; }
.finale-kicker { font-family: var(--font-mono); font-size: 0.8rem; color: var(--red); letter-spacing: 0.2em; }
.finale-name {
  position: relative;
  min-height: 2.85em;
  white-space: pre-line;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 9vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  /* Light glow while the letters scramble: cheap to repaint every update */
  text-shadow: 0 0 18px rgba(255,51,77,0.35);
  transition: transform 1.1s var(--ease-out);
  will-change: transform;
}
/* The big glow is a copy painted once, then only faded in (no repainting) */
.finale-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  text-shadow: 0 0 16px rgba(255,255,255,0.45), 0 0 42px rgba(255,51,77,0.85), 0 0 90px rgba(255,140,66,0.5);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: opacity;
  pointer-events: none;
}
.finale.lit .finale-name { transform: scale(1.04); }
.finale.lit .finale-name::after { opacity: 1; }
.finale-role { font-family: var(--font-mono); font-size: clamp(0.8rem, 1.6vw, 1.05rem); color: var(--orange); opacity: 0; transition: opacity 0.6s ease; }
.finale.lit .finale-role { opacity: 1; }

/* ── Matrix rain ──────────────────────── */
.matrix {
  position: absolute;
  inset: 0;
  z-index: 4000;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: opacity 0.6s ease;
}
.matrix.fade { opacity: 0; }

/* ── Byte Runner ──────────────────────── */
.game { padding: 0; background: #05070d; }
.game-canvas { display: block; width: 100%; cursor: pointer; touch-action: manipulation; }
.game-help {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
}
.desk-icon[data-app="game"] .desk-glyph { color: var(--green); }

/* ── Project architecture strips + links ── */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px dashed var(--border-hi);
  border-radius: 6px;
  background: rgba(5,7,13,0.6);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.flow span { padding: 2px 8px; border-radius: 3px; background: rgba(56,189,248,0.1); color: #7dd3fc; }
.flow i { font-style: normal; color: var(--red); }
.project-links { display: flex; gap: 10px; }
.project-links a {
  padding: 5px 12px;
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text) !important;
  transition: border-color 0.2s, background 0.2s;
}
.project-links a:hover { border-color: var(--red); background: var(--red-dim); text-decoration: none !important; }

/* ── Contact buttons ──────────────────── */
.btn-ghost { border: 1px solid var(--border-hi); color: var(--text); }
.btn-ghost:hover { border-color: var(--red); color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }


/* ── Optional photo ───────────────────── */
.polaroid { display: none; }
.has-photo .polaroid {
  display: block;
  float: right;
  width: 150px;
  margin: 0 0 12px 18px;
  padding: 8px 8px 10px;
  background: #f4f1ea;
  transform: rotate(3deg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption { margin-top: 6px; font-family: 'Caveat', cursive; font-size: 1.05rem; color: #333; text-align: center; }
.login-avatar { position: relative; overflow: hidden; }
.login-avatar img { display: none; }
.has-photo .login-avatar img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Current job stands out in career/ */
.mission-current { border-left-color: var(--green); }
.mission-current .mission-head span { color: var(--green); }
.doc h3 .company-link { color: #fff; }
.doc h3 .company-link:hover { color: var(--red); text-decoration: none; }

/* Laptop hint on the power screen, phones only */
.power-mobile { display: none; }
@media (max-width: 720px) {
  .power-mobile {
    display: block;
    max-width: 290px;
    margin-top: 6px;
    padding: 10px 14px;
    border: 1px solid var(--border-hi);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
  }
}
@media (max-width: 720px) {
  .has-photo .polaroid { width: 104px; margin: 0 0 8px 12px; padding: 6px 6px 8px; }
  .polaroid figcaption { font-size: 0.85rem; }
  .doc h2 { font-size: 1.3rem; }
}

/* Projects nested inside a career entry */
.sub-project {
  padding: 12px 14px;
  border: 1px dashed var(--border-hi);
  border-radius: 6px;
  background: rgba(5,7,13,0.35);
}
.sub-project > * + * { margin-top: 8px; }
.sub-project h4 { font-family: var(--font-display); font-size: 0.98rem; color: #fff; }
.tag-private, .tag-date { margin-left: 6px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; color: var(--orange); white-space: nowrap; }

/* Laptops: keep all desktop icons in a single column when there's room */
@media (min-width: 721px) {
  .desktop-icons { top: 12px; gap: 0 8px; }
  .desk-icon { width: 104px; padding: 6px 2px 5px; gap: 4px; white-space: nowrap; }
}

/* Text profile: readable by crawlers and screen readers, hidden behind PNT.OS */
.sr-profile {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sr-profile h1 { font-family: var(--font-display); font-size: 2rem; color: #fff; }
.sr-profile h2 { margin-top: 28px; font-family: var(--font-display); color: var(--red); }
.sr-profile h3, .sr-profile h4 { margin-top: 14px; color: #fff; }
.sr-profile p, .sr-profile li { margin-top: 8px; color: var(--text-muted); }
.sr-profile ul { padding-left: 20px; list-style: disc; }
.sr-profile a { color: var(--red); }

/* Keep the city hidden behind the login screen; it's revealed by the fade-out */
.world:has(.power:not(.off)) .wallpaper { visibility: hidden; }
