/* ============================================================
   colecofer.dev — a Windows XP-flavored desktop portfolio
   ============================================================ */

:root {
  --xp-blue: #0a246a;
  --xp-title-a: #0058ee;
  --xp-title-b: #3a93ff;
  --xp-title-c: #0050ee;
  --xp-title-inactive-a: #7697e7;
  --xp-title-inactive-b: #a3bff8;
  --xp-face: #ece9d8;
  --xp-face-dark: #d4d0c8;
  --xp-border: #0831d9;
  --xp-border-inactive: #6582f5;
  --xp-taskbar-a: #245edb;
  --xp-taskbar-b: #3168d5;
  --xp-taskbar-c: #1941a5;
  --xp-start-a: #3c9a3c;
  --xp-start-b: #2e8b2e;
  --xp-tray: #0f8ee8;
  --xp-select: #316ac5;
  --xp-link: #0000ff;
  --font-ui: Tahoma, "Segoe UI", Verdana, Geneva, sans-serif;
  --font-title: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  --font-doc: Georgia, "Times New Roman", serif;
  --taskbar-h: 30px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 12px;
  color: #000;
  background: #3a6ea5;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }
a { color: var(--xp-link); }
img { max-width: 100%; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.sr-only { position: absolute; left: -9999px; }

/* ------------------------------------------------------------
   Boot screen
   ------------------------------------------------------------ */
#boot {
  position: fixed; inset: 0; z-index: 10000;
  background: #000; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-title);
  cursor: pointer;
  transition: opacity .5s ease;
}
#boot.hide { opacity: 0; pointer-events: none; }
#boot .logo { text-align: center; }
#boot .logo .flag { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 46px; transform: skewY(-8deg) rotate(-4deg); margin-bottom: 14px; }
#boot .logo .flag span { height: 20px; border-radius: 3px 3px 3px 3px; }
#boot .logo .flag span:nth-child(1) { background: #f35325; }
#boot .logo .flag span:nth-child(2) { background: #81bc06; }
#boot .logo .flag span:nth-child(3) { background: #05a6f0; }
#boot .logo .flag span:nth-child(4) { background: #ffba08; }
#boot .logo h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.5px; }
#boot .logo h1 small { display: block; font-size: 13px; font-weight: 400; color: #bbb; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }
#boot .bar { width: 160px; height: 14px; border: 1px solid #777; border-radius: 3px; margin-top: 46px; overflow: hidden; position: relative; }
#boot .bar i { position: absolute; top: 2px; bottom: 2px; width: 9px; background: linear-gradient(#5bb0ff, #1a5fd0); border-radius: 1px; animation: bootslide 1.1s linear infinite; }
#boot .bar i:nth-child(2) { animation-delay: .1s; }
#boot .bar i:nth-child(3) { animation-delay: .2s; }
@keyframes bootslide { from { left: -30px; } to { left: 170px; } }
#boot .hint { position: absolute; bottom: 26px; color: #666; font-size: 11px; }

/* ------------------------------------------------------------
   Desktop
   ------------------------------------------------------------ */
#desktop {
  position: fixed; inset: 0 0 var(--taskbar-h) 0;
  overflow: hidden;
  user-select: none;
}
#bliss { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 65%; pointer-events: none; user-select: none; }

#icons {
  position: absolute; top: 12px; left: 12px; bottom: 12px;
  display: flex; flex-direction: column; flex-wrap: wrap; gap: 6px 10px;
  align-content: flex-start;
  width: calc(100% - 24px);
  pointer-events: none;
}
.icon {
  pointer-events: auto;
  width: 84px; padding: 6px 2px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 1px solid transparent; border-radius: 2px;
  background: none; color: #fff; cursor: default;
  text-align: center; font: inherit; font-size: 11px; line-height: 1.25;
  text-shadow: 1px 1px 2px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.6);
}
.icon:hover { background: rgba(255,255,255,.08); }
.icon:focus-visible, .icon.selected { outline: none; background: rgba(49,106,197,.55); border-color: rgba(255,255,255,.35); }
.icon .img { width: 44px; height: 44px; display: grid; place-items: center; filter: drop-shadow(1px 2px 2px rgba(0,0,0,.5)); }
.icon .img img, .icon .img svg { width: 40px; height: 40px; }
.icon .img img.app { border-radius: 9px; }
.icon span { word-break: break-word; }

/* ------------------------------------------------------------
   Windows
   ------------------------------------------------------------ */
.window {
  position: absolute;
  min-width: 320px; min-height: 160px;
  display: none; flex-direction: column;
  background: var(--xp-face);
  border: 1px solid var(--xp-border);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 2px 4px 14px rgba(0,0,0,.4);
  overflow: hidden;
}
.window.open { display: flex; }
.window.maximized { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; }
.window.minimized { display: none; }
.window:not(.active) { border-color: var(--xp-border-inactive); }

.titlebar {
  height: 30px; flex: none;
  display: flex; align-items: center; gap: 6px;
  padding: 0 4px 0 6px;
  background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #06f 88%, #0037c8 100%);
  color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 13px;
  text-shadow: 1px 1px 0 #0a1f6e;
  cursor: default;
}
.window:not(.active) .titlebar { background: linear-gradient(180deg, #9db9eb 0%, #7697e7 8%, #7093e5 40%, #7ea1ee 88%, #6d8fe3 100%); text-shadow: none; color: #d8e4f8; }
.titlebar .ticon { width: 16px; height: 16px; flex: none; display: grid; place-items: center; }
.titlebar .ticon img, .titlebar .ticon svg { width: 16px; height: 16px; }
.titlebar .ticon img.app { border-radius: 4px; }
.titlebar .ttitle { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titlebar .controls { display: flex; gap: 2px; }
.titlebar .controls button {
  width: 21px; height: 21px; padding: 0;
  border: 1px solid #fff; border-radius: 3px;
  background: linear-gradient(180deg, #3d7bf9, #1e52d8 50%, #1e4ed0);
  color: #fff; font-size: 12px; line-height: 1; cursor: pointer;
  box-shadow: 0 0 0 1px #0a2a9a inset;
  display: grid; place-items: center;
}
.titlebar .controls button:hover { filter: brightness(1.15); }
.titlebar .controls button.close { background: linear-gradient(180deg, #e8946e, #d2452b 45%, #c73d20); box-shadow: 0 0 0 1px #8f2a10 inset; }
.titlebar .controls svg { width: 11px; height: 11px; }

.menubar {
  flex: none; display: flex; gap: 2px; padding: 1px 2px;
  background: var(--xp-face); border-bottom: 1px solid #fff;
  font-size: 11px;
}
.menubar span { padding: 3px 7px; border-radius: 2px; cursor: default; }
.menubar span:hover, .menubar span.on { background: var(--xp-select); color: #fff; }

/* Dropdown menus */
.menu {
  position: fixed; z-index: 9700; min-width: 190px;
  background: #fff; border: 1px solid #aca899; padding: 2px;
  box-shadow: 2px 2px 3px rgba(0,0,0,.35);
  font-size: 11px; user-select: none;
}
.menu .mitem { display: flex; align-items: center; gap: 8px; padding: 4px 18px 4px 24px; white-space: nowrap; cursor: default; position: relative; }
.menu .mitem .k { margin-left: auto; padding-left: 24px; color: #555; }
.menu .mitem:hover:not(.disabled) { background: var(--xp-select); color: #fff; }
.menu .mitem:hover:not(.disabled) .k { color: #dbe6f8; }
.menu .mitem.disabled { color: #aca899; }
.menu .mitem.checked::before { content: "✓"; position: absolute; left: 8px; font-size: 11px; }
.menu .msep { height: 1px; background: #aca899; margin: 3px 2px; }
.window.no-status .statusbar { display: none; }
.doc { zoom: var(--doc-zoom, 1); }

.toolbar {
  flex: none; display: flex; gap: 4px; align-items: center; padding: 3px 4px;
  background: var(--xp-face); border-bottom: 1px solid #c9c5b8;
}
.toolbar .sep { width: 1px; height: 20px; background: #b9b5a8; margin: 0 3px; }

.wbody {
  flex: 1; overflow: auto;
  background: #fff;
  border: 1px solid #919b9c; border-top-color: #7f9db9;
  margin: 0 3px 3px;
  padding: 14px 18px;
  font-size: 12px; line-height: 1.5;
  user-select: text;
}
.wbody.plain { background: var(--xp-face); border: none; }
.wbody h1 { font-size: 20px; margin: 0 0 4px; }
.wbody h2 { font-size: 14px; margin: 18px 0 6px; }
.wbody h3 { font-size: 12.5px; margin: 12px 0 4px; }
.wbody p { margin: 0 0 8px; }
.wbody ul { margin: 0 0 8px; padding-left: 18px; }
.wbody li { margin-bottom: 3px; }

.statusbar {
  flex: none; display: flex; gap: 4px; padding: 2px 3px 3px;
  font-size: 11px; color: #333;
}
.statusbar span { flex: 1; padding: 2px 6px; border: 1px solid; border-color: #9a9689 #fff #fff #9a9689; }
.statusbar span.narrow { flex: 0 0 auto; }

/* XP-style push buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 12px; min-height: 23px;
  font: inherit; font-size: 11px; color: #000; text-decoration: none;
  background: linear-gradient(180deg, #fff, #ecebe5 86%, #d8d2bd);
  border: 1px solid #003c74; border-radius: 3px;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #d1cdbe;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { box-shadow: inset 0 0 0 1px #f8d8a0, inset 1px 1px 0 #fff, inset 0 -2px 0 #e5a744; }
.btn:active { background: #e6e3d8; }
.btn.primary { box-shadow: inset 0 0 0 1px #7ea3e7, inset 1px 1px 0 #fff; }
.btn img { width: 16px; height: 16px; border-radius: 3px; }

/* Resize handle */
.resizer { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; }
.window.maximized .resizer { display: none; }

/* ------------------------------------------------------------
   Taskbar
   ------------------------------------------------------------ */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--taskbar-h);
  display: flex; align-items: stretch;
  background: linear-gradient(180deg, #3168d5 0%, #4993e6 3%, #2456c8 8%, #245edb 40%, #1f50c4 88%, #1941a5 100%);
  border-top: 1px solid #0f2f8a;
  z-index: 9000;
  user-select: none;
}
#start {
  display: flex; align-items: center; gap: 6px;
  padding: 0 24px 0 10px; margin: 0;
  border: none; border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, #3c9a3c 0%, #55b955 6%, #3a9c3a 12%, #2f8f2f 60%, #257725 100%);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.35), 2px 0 4px rgba(0,0,0,.3);
  color: #fff; font: italic 700 15px var(--font-title); text-shadow: 1px 1px 1px rgba(0,0,0,.6);
  cursor: pointer;
}
#start:hover { filter: brightness(1.08); }
#start.on { filter: brightness(.9); }
#start .flag { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 1px; width: 15px; transform: skewY(-10deg); }
#start .flag span { height: 6px; border-radius: 1px; }
#start .flag span:nth-child(1) { background: #f35325; }
#start .flag span:nth-child(2) { background: #81bc06; }
#start .flag span:nth-child(3) { background: #05a6f0; }
#start .flag span:nth-child(4) { background: #ffba08; }

#quicklaunch { display: flex; align-items: center; gap: 2px; padding: 0 8px; border-right: 1px solid rgba(0,0,0,.25); box-shadow: 1px 0 0 rgba(255,255,255,.2); }
#quicklaunch button { width: 24px; height: 24px; padding: 2px; border: 1px solid transparent; border-radius: 3px; background: none; cursor: pointer; display: grid; place-items: center; }
#quicklaunch button:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.15); }
#quicklaunch img, #quicklaunch svg { width: 18px; height: 18px; }
#quicklaunch img.app { border-radius: 4px; }

#tasks { flex: 1; display: flex; align-items: center; gap: 3px; padding: 0 6px; overflow: hidden; }
.task {
  height: 24px; min-width: 60px; max-width: 170px; flex: 0 1 160px;
  display: flex; align-items: center; gap: 5px; padding: 0 8px 0 6px;
  border: 1px solid #1a3d9e; border-radius: 3px;
  background: linear-gradient(180deg, #3c81f3, #2a6de0 40%, #2160cf);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.3);
  color: #fff; font-size: 11px; cursor: pointer; overflow: hidden;
}
.task span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task img, .task svg { width: 16px; height: 16px; flex: none; }
.task img.app { border-radius: 4px; }
.task.active { background: linear-gradient(180deg, #1c4bb8, #1a45ad); box-shadow: inset 1px 1px 3px rgba(0,0,0,.5); }
.task:hover:not(.active) { filter: brightness(1.1); }

#tray {
  display: flex; align-items: center; gap: 8px; padding: 0 12px 0 10px;
  background: linear-gradient(180deg, #0c8dea 0%, #1aa3f5 3%, #0f8ee8 8%, #0e86df 40%, #0d7ad2 88%, #0a5fb5 100%);
  border-left: 1px solid #0b4fa0; box-shadow: inset 1px 0 0 rgba(255,255,255,.35);
  color: #fff; font-size: 11px;
}
#tray a { display: grid; place-items: center; width: 18px; height: 18px; color: #fff; opacity: .9; }
#tray a:hover { opacity: 1; filter: drop-shadow(0 0 3px #fff); }
#tray a svg { width: 15px; height: 15px; fill: currentColor; }
#clock { min-width: 58px; text-align: center; text-shadow: 0 0 2px rgba(0,0,0,.4); }

/* ------------------------------------------------------------
   Start menu
   ------------------------------------------------------------ */
#startmenu {
  position: fixed; left: 0; bottom: var(--taskbar-h);
  width: 400px; max-width: 100vw;
  display: none; flex-direction: column;
  background: #fff;
  border: 1px solid #0b3a9a; border-radius: 6px 6px 0 0;
  box-shadow: 3px 3px 10px rgba(0,0,0,.45);
  z-index: 9500;
  user-select: none;
  overflow: hidden;
}
#startmenu.open { display: flex; }
#startmenu .head {
  height: 62px; display: flex; align-items: center; gap: 10px; padding: 0 10px;
  background: linear-gradient(180deg, #1c50d3 0%, #1b53d7 10%, #2d66e2 50%, #1a4fce 100%);
  border-bottom: 2px solid #f7b23e;
  color: #fff; font: 700 15px var(--font-title); text-shadow: 1px 1px 1px rgba(0,0,0,.6);
}
#startmenu .head .avatar { width: 44px; height: 44px; border: 2px solid #fff; border-radius: 4px; background: linear-gradient(135deg, #8fc7ff, #245edb); display: grid; place-items: center; overflow: hidden; }
#startmenu .head .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
#startmenu .cols { display: flex; min-height: 300px; }
#startmenu .col { padding: 6px; display: flex; flex-direction: column; }
#startmenu .col.left { flex: 1; background: #fff; }
#startmenu .col.right { width: 175px; background: #d3e5fa; border-left: 1px solid #95bdee; }
#startmenu .col .sep { height: 1px; background: linear-gradient(90deg, transparent, #b9b5a8, transparent); margin: 5px 4px; }
#startmenu .col.right .sep { background: linear-gradient(90deg, transparent, #7ea3d9, transparent); }
#startmenu .col .label { font-size: 10px; color: #1c3e91; padding: 4px 8px 2px; font-weight: 700; }
.mi {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 4px 8px; margin: 1px 0;
  border: none; border-radius: 3px; background: none;
  color: #000; font: inherit; font-size: 11px; text-align: left; text-decoration: none; cursor: pointer;
}
.mi:hover { background: var(--xp-select); color: #fff; }
.mi:hover small { color: #dbe6f8; }
.mi .ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; }
.mi .ico img, .mi .ico svg { width: 28px; height: 28px; }
.mi .ico img.app { border-radius: 6px; }
.col.right .mi .ico { width: 22px; height: 22px; }
.col.right .mi .ico img, .col.right .mi .ico svg { width: 20px; height: 20px; }
.col.right .mi { font-weight: 700; color: #1c3e91; }
.col.right .mi:hover { color: #fff; }
.mi b { display: block; font-weight: 700; }
.mi small { display: block; color: #666; font-size: 10px; }
#startmenu .foot {
  display: flex; justify-content: flex-end; gap: 6px; padding: 6px 10px;
  background: linear-gradient(180deg, #4282e6, #2a63d8 40%, #1f55cc);
  border-top: 1px solid #1a4bb5;
}
#startmenu .foot button { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border: none; border-radius: 3px; background: none; color: #fff; font: inherit; font-size: 11px; cursor: pointer; }
#startmenu .foot button:hover { background: rgba(255,255,255,.2); }
#startmenu .foot button i { width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; }
#startmenu .foot button i.off { background: radial-gradient(circle at 40% 35%, #ff9d7a, #d7441c 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
#startmenu .foot button i.logoff { background: radial-gradient(circle at 40% 35%, #ffe28a, #d59a12 70%); }

/* ------------------------------------------------------------
   Dialogs
   ------------------------------------------------------------ */
.dialog {
  position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%);
  width: 360px; max-width: calc(100vw - 20px);
  display: none; flex-direction: column;
  background: var(--xp-face);
  border: 1px solid var(--xp-border); border-radius: 8px 8px 0 0;
  box-shadow: 2px 4px 14px rgba(0,0,0,.45);
  z-index: 9600;
}
.dialog.open { display: flex; }
.dialog .dbody { display: flex; gap: 14px; align-items: flex-start; padding: 16px 16px 8px; }
.dialog .dbody svg { width: 32px; height: 32px; flex: none; }
.dialog .dfoot { display: flex; justify-content: center; gap: 8px; padding: 8px 12px 14px; }
.dialog .dfoot .btn { min-width: 76px; justify-content: center; }
#overlay { position: fixed; inset: 0; background: rgba(0,0,0,.001); z-index: 9400; display: none; }
#overlay.open { display: block; }

/* Shutdown */
#shutdown {
  position: fixed; inset: 0; z-index: 10001;
  display: none; align-items: center; justify-content: center; flex-direction: column;
  background: radial-gradient(ellipse at center, #0b0d12 0%, #050608 60%, #000 100%);
  color: #fff; font-family: var(--font-title); text-align: center;
}
#shutdown.open { display: flex; }
#shutdown .shutdown-actions {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  opacity: .35; transition: opacity .25s ease;
}
#shutdown .shutdown-actions:hover, #shutdown .shutdown-actions:focus-within { opacity: 1; }
#shutdown .btn { font-size: 12px; }

/* ------------------------------------------------------------
   Window content styles
   ------------------------------------------------------------ */

/* Résumé document */
.doc { font-family: var(--font-doc); font-size: 13px; line-height: 1.45; max-width: 760px; margin: 0 auto; color: #111; }
.doc header { text-align: center; border-bottom: 1.5px solid #222; padding-bottom: 8px; margin-bottom: 12px; }
.doc header h1 { font-size: 24px; letter-spacing: .5px; margin: 0; }
.doc header .role { font-size: 13px; color: #333; margin: 2px 0 6px; font-style: italic; }
.doc header .contacts { font-family: var(--font-ui); font-size: 11px; color: #333; display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; }
.doc header .contacts a { color: #1a3e8a; text-decoration: none; }
.doc h2 { font-family: var(--font-ui); font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.5px; color: #1a3e8a; border-bottom: 1px solid #b7c4dd; padding-bottom: 2px; margin: 16px 0 8px; }
.doc .job { margin-bottom: 10px; }
.doc .job .head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; }
.doc .job .head b { font-size: 13.5px; }
.doc .job .head span { color: #444; font-size: 12px; }
.doc .job .titles { font-size: 12px; color: #333; margin-bottom: 4px; }
.doc ul { margin: 0; padding-left: 18px; }
.doc li { margin-bottom: 3px; }
.doc li b { color: #222; }
.doc .prod { display: grid; grid-template-columns: 140px 1fr; gap: 2px 12px; margin-bottom: 6px; }
.doc .prod b a { color: #1a3e8a; text-decoration: none; }
.doc .prod .meta { font-family: var(--font-ui); font-size: 10.5px; color: #555; display: block; }
.doc .skills { display: grid; grid-template-columns: 110px 1fr; gap: 3px 10px; }
.doc .skills b { font-family: var(--font-ui); font-size: 11px; color: #333; }
.doc .note { font-family: var(--font-ui); font-size: 10.5px; color: #666; margin-top: 16px; }

/* Project windows */
.project { display: grid; grid-template-columns: 1fr 240px; gap: 18px; }
.project.single { grid-template-columns: 1fr; }
.project .hero { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.project .hero img.app { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.project .hero h1 { margin: 0; font-size: 20px; }
.project .hero .tag { color: #555; font-size: 12px; }
.project .side img { width: 100%; border: 1px solid #ccc; border-radius: 4px; display: block; margin-bottom: 8px; }
.project .side .shots { display: flex; gap: 6px; }
.project .side .shots img { border-radius: 12px; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 10px; font-weight: 700; vertical-align: middle; margin-left: 6px; }
.badge.soon { background: #fff2c4; color: #7a5300; border: 1px solid #e6c65c; }
.badge.live { background: #d9f5d3; color: #1d5f14; border: 1px solid #8fcf84; }
.badge.dev { background: #e1e9fb; color: #1c3e91; border: 1px solid #9db6ea; }
.stack { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.stack span { padding: 1px 7px; background: #eef1f6; border: 1px solid #c8d0de; border-radius: 3px; font-size: 10.5px; color: #333; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* Sona tabs */
.tabs { display: flex; gap: 0; margin: 10px 0 0; border-bottom: 1px solid #919b9c; }
.tabs button { padding: 4px 12px; border: 1px solid #919b9c; border-bottom: none; border-radius: 3px 3px 0 0; background: linear-gradient(#fff, #ece9d8); font: inherit; font-size: 11px; cursor: pointer; margin-bottom: -1px; }
.tabs button.on { background: #fff; border-top: 2px solid #ffc73c; padding-bottom: 5px; }
.tabpanel { display: none; padding: 12px 0 0; }
.tabpanel.on { display: block; }
.sona-capsule { width: 100%; border-radius: 4px; display: block; border: 1px solid #333; }
.shots2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.shots2 img { width: 100%; border-radius: 3px; border: 1px solid #333; display: block; }
.playbox { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid #333; margin: 0 auto; display: grid; place-items: center; overflow: hidden; }
.playbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.playbox .cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: url("assets/sona/shot2.jpg") center / cover; }
.playbox .cover::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.playbox .cover > * { position: relative; }
.playbox .cover p { color: #fff; font-size: 11px; margin: 0; text-shadow: 0 1px 2px #000; }
.controls-table { border-collapse: collapse; font-size: 11px; margin-top: 8px; }
.controls-table td { padding: 2px 10px 2px 0; }
.controls-table kbd { font-family: inherit; padding: 0 5px; border: 1px solid #999; border-bottom-width: 2px; border-radius: 3px; background: #f4f4f4; }

/* About */
.about { display: grid; grid-template-columns: 1fr 200px; gap: 20px; }
.about .side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.about .portrait { margin: 0; background: #fff; border: 1px solid #c8d5ea; border-radius: 4px; padding: 5px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.about .portrait img { display: block; width: 100%; height: auto; border: 1px solid #d9e3f2; border-radius: 2px; }
.about .portrait figcaption { margin-top: 5px; text-align: center; font-size: 10.5px; font-style: italic; color: #5d6b85; }
.about .facts { background: #f3f6fb; border: 1px solid #c8d5ea; border-radius: 4px; padding: 10px 12px; font-size: 11.5px; }
.about .facts dt { font-weight: 700; color: #1c3e91; margin-top: 8px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; }
.about .facts dt:first-child { margin-top: 0; }
.about .facts dd { margin: 1px 0 0; }
.about h1 { font-size: 22px; }
.about .lead { font-size: 13.5px; color: #222; }

/* Folder / explorer view */
.explorer { display: grid; grid-template-columns: 180px 1fr; height: 100%; }
.explorer .taskpane { background: linear-gradient(180deg, #7aa7e4, #6f9de1 30px, #d6e4f7 30px); padding: 0 8px 8px; }
.explorer .taskpane h4 { margin: 0 -8px 8px; padding: 7px 10px; color: #fff; font-size: 11px; background: linear-gradient(90deg, #fff 0%, #c6d8f5 100%); color: #1c3e91; border-radius: 4px 4px 0 0; }
.explorer .taskpane a { display: block; font-size: 11px; color: #1c3e91; margin: 3px 0; text-decoration: none; }
.explorer .taskpane a:hover { text-decoration: underline; }
.explorer .files { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.file { display: flex; align-items: flex-start; gap: 10px; padding: 6px 8px; border: 1px solid transparent; border-radius: 3px; text-decoration: none; color: #000; }
.file:hover { background: #e8effc; border-color: #9db6ea; }
.file .fico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
.file .fico img, .file .fico svg { width: 32px; height: 32px; }
.file .fico img.app { border-radius: 7px; }
.file b { display: block; font-size: 12px; }
.file small { color: #555; font-size: 11px; }
.file .when { margin-left: auto; color: #777; font-size: 10.5px; white-space: nowrap; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list li svg { width: 24px; height: 24px; flex: none; }
.contact-list a { font-size: 13px; }

/* Paint */
.wbody.paint { display: flex; padding: 0; gap: 0; background: #808080; }
.paint-tools { flex: none; width: 62px; background: var(--xp-face); border-right: 1px solid #aaa; padding: 4px 3px; display: flex; flex-direction: column; gap: 6px; }
.paint-tools .tools { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.paint-tools .tool { width: 26px; height: 26px; padding: 3px; border: 1px solid transparent; border-radius: 2px; background: none; cursor: pointer; display: grid; place-items: center; }
.paint-tools .tool svg { width: 18px; height: 18px; }
.paint-tools .tool:hover { border-color: #7f9db9; background: #fff; }
.paint-tools .tool.on { border-color: #316ac5; background: #d6e2f5; box-shadow: inset 1px 1px 2px rgba(0,0,0,.2); }
.paint-tools .sizes { display: flex; flex-direction: column; gap: 2px; border: 1px solid #aaa; background: #fff; padding: 3px; }
.paint-tools .size { height: 14px; border: 1px solid transparent; background: none; cursor: pointer; display: flex; align-items: center; padding: 0 6px; }
.paint-tools .size i { display: block; width: 100%; background: #000; border-radius: 2px; }
.paint-tools .size.on { background: #316ac5; }
.paint-tools .size.on i { background: #fff; }
.paint-canvas-wrap { flex: 1; overflow: auto; padding: 8px; display: grid; place-items: start; }
.paint-canvas { position: relative; width: 640px; max-width: 100%; aspect-ratio: 16 / 10; background: #fff; box-shadow: 1px 1px 0 #fff, 2px 2px 4px rgba(0,0,0,.4); cursor: crosshair; touch-action: none; }
.paint-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
#paint-preview { pointer-events: none; }
.palette-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 6px; background: var(--xp-face); border-top: 1px solid #fff; }
.palette-bar .current { position: relative; width: 30px; height: 30px; flex: none; }
.palette-bar .current span { position: absolute; width: 18px; height: 18px; border: 1px solid #333; box-shadow: inset 1px 1px 0 #fff; }
.palette-bar .current #paint-fg { left: 0; top: 0; z-index: 2; }
.palette-bar .current #paint-bg { right: 0; bottom: 0; }
.palette { display: grid; grid-template-rows: repeat(2, 16px); grid-auto-flow: column; gap: 2px; }
.palette button { width: 16px; height: 16px; border: 1px solid #555; padding: 0; cursor: pointer; box-shadow: inset 1px 1px 0 rgba(255,255,255,.5); }
.palette button:hover { outline: 1px solid #000; }
.palette input[type=color] { width: 34px; height: 34px; grid-row: 1 / 3; padding: 0; border: 1px solid #555; background: none; cursor: pointer; }
.paint-hint { margin-left: 8px; color: #555; font-size: 11px; }
.send-preview { background: #808080; padding: 6px; margin-bottom: 10px; display: grid; place-items: center; }
.send-preview img { width: 100%; max-width: 320px; background: #fff; box-shadow: 1px 1px 3px rgba(0,0,0,.5); display: block; }
.field { display: block; margin-bottom: 8px; font-size: 11px; }
.field small { color: #666; }
.field input { display: block; width: 100%; margin-top: 3px; padding: 4px 6px; font: inherit; font-size: 12px; border: 1px solid #7f9db9; background: #fff; }
.field input:focus { outline: 2px solid #b5cdf3; outline-offset: -1px; }
.fine { font-size: 10.5px; color: #666; margin: 6px 0 0; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Live site preview: screenshot until you ask for the real thing */
.sitebox { position: relative; width: 100%; aspect-ratio: 62 / 39; margin: 10px 0; background: #1d2b4a; border: 1px solid #6b7a90; overflow: hidden; }
.sitebox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #f4eddc; }
.sitebox .cover { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding-bottom: 16px; background: url("assets/bakery/site.webp") top center / 100% auto no-repeat; }
.sitebox .cover.loading { justify-content: center; padding-bottom: 0; }
.sitebox .cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(29,43,74,0) 40%, rgba(29,43,74,.9) 92%); }
.sitebox .cover > * { position: relative; }
.sitebox .cover p { max-width: 360px; margin: 0; color: #f4eddc; font-size: 11px; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.7); }

/* ------------------------------------------------------------
   Responsive: phones get full-screen windows
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  #icons { flex-direction: row; align-content: flex-start; align-items: flex-start; gap: 4px; width: calc(100% - 24px); }
  .icon { width: 74px; }
  .window { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; min-width: 0; }
  .resizer { display: none; }
  .project, .about { grid-template-columns: 1fr; }
  .about .portrait { max-width: 220px; align-self: center; }
  .explorer { grid-template-columns: 1fr; }
  .explorer .taskpane { display: none; }
  #startmenu { width: 100vw; }
  #startmenu .cols { min-height: 0; }
  #quicklaunch { display: none; }
  .task { flex: 1 1 40px; min-width: 40px; }
  .task span { display: none; }
  .paint-tools { width: 54px; }
  .paint-hint { display: none; }
  .doc .prod { grid-template-columns: 1fr; }
  .doc .skills { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
}

/* ------------------------------------------------------------
   Print: only the résumé, as a clean document
   ------------------------------------------------------------ */
@media print {
  html, body { overflow: visible; background: #fff; }
  #boot, #desktop > *:not(#windows), #taskbar, #startmenu, .dialog, #shutdown { display: none !important; }
  #desktop { position: static; }
  .window { display: none !important; }
  #win-resume { display: block !important; position: static; border: none; box-shadow: none; width: auto !important; height: auto !important; }
  #win-resume .titlebar, #win-resume .menubar, #win-resume .toolbar, #win-resume .statusbar, #win-resume .resizer { display: none !important; }
  #win-resume .wbody { border: none; margin: 0; padding: 0; overflow: visible; }
  .doc { max-width: none; font-size: 11.5pt; }
  .doc .note { display: none; }
}
