/* ============================================================
   BradOS — an operating-system-style portfolio
   ============================================================ */

:root {
  --bg: #060912;
  --accent: #f5a623;      /* warm orange from portrait */
  --accent-2: #3b82f6;    /* network blue from portrait */
  --text: #eef2f8;
  --muted: #9aa7bd;
  --glass: rgba(18, 24, 40, 0.62);
  --glass-strong: rgba(14, 19, 33, 0.86);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --menubar-h: 30px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
}

/* Light theme override */
body.light {
  --bg: #dfe6f2;
  --text: #10151f;
  --muted: #4a5568;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(248, 250, 253, 0.9);
  --border: rgba(10, 20, 40, 0.14);
  --shadow: 0 24px 70px rgba(20, 30, 60, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
}

/* ===================== DESKTOP ===================== */
.desktop {
  position: fixed;
  inset: 0;
  background: url("brad.png") center center / cover no-repeat fixed;
  background-color: var(--bg);
}
/* readability overlay */
.desktop::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 45%, rgba(0,0,0,0) 0%, rgba(4,6,14,0.35) 100%),
    linear-gradient(180deg, rgba(4,6,14,0.28) 0%, rgba(4,6,14,0) 22%, rgba(4,6,14,0) 78%, rgba(4,6,14,0.42) 100%);
  pointer-events: none;
}
body.light .desktop::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(255,255,255,0.25) 100%);
}

/* ===================== MENU BAR ===================== */
.menubar {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--menubar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--border);
  z-index: 5000;
  font-size: 13px;
}
.menubar__left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.menubar__logo {
  display: flex; align-items: center; gap: 7px;
  background: none; border: 0; color: var(--text); cursor: pointer;
  font-weight: 700; padding: 3px 8px; border-radius: 6px; font-size: 13px;
}
.menubar__apple { color: var(--accent); font-size: 13px; }
.menubar__logo:hover { background: rgba(255,255,255,0.1); }
.menubar__nav { display: flex; gap: 1px; }
.menu { position: relative; }
.menubar__item {
  background: none; border: 0; color: var(--text); cursor: pointer;
  padding: 3px 10px; border-radius: 6px; font-size: 13px;
  font-family: var(--font); white-space: nowrap;
}
.menubar__item:hover { background: rgba(255,255,255,0.13); }
.menu.open .menubar__item { background: var(--accent); color: #06090f; }

.menu__drop {
  position: absolute; top: calc(100% + 5px); left: 0;
  min-width: 210px; list-style: none; padding: 6px;
  background: var(--glass-strong);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.14s, transform 0.14s, visibility 0.14s;
  z-index: 5200;
}
.menu.open .menu__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.menu__drop li {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 11px; border-radius: 7px; cursor: pointer;
  font-size: 13px; color: var(--text); white-space: nowrap;
}
.menu__drop li:hover { background: var(--accent); color: #06090f; }
.menu__ico { font-size: 15px; width: 18px; text-align: center; }
.menubar__right { display: flex; align-items: center; gap: 14px; }
.menubar__social { display: flex; align-items: center; gap: 12px; margin-right: 2px; }
.menubar__social a {
  color: var(--muted); display: inline-flex; line-height: 0;
  transition: color 0.15s, transform 0.15s;
}
.menubar__social a:hover { color: var(--accent); transform: translateY(-1px); }
.menubar__social svg { width: 15px; height: 15px; display: block; }
.menubar__tray { color: var(--muted); font-size: 12px; background: none; border: 0; cursor: default; }
button.menubar__tray { cursor: pointer; }
button.menubar__tray:hover { color: var(--text); }
.menubar__clock { font-variant-numeric: tabular-nums; font-size: 13px; min-width: 148px; text-align: right; }

.mobile-menu-btn { display: none; }

/* ===================== DESKTOP ICONS (desktop mode launcher) ===================== */
.icons {
  position: absolute; top: calc(var(--menubar-h) + 16px); left: 16px;
  display: flex; flex-direction: column; flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px; max-height: calc(100vh - 90px);
  z-index: 10;
}
.icon {
  width: 96px; padding: 10px 6px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: 1px solid transparent; border-radius: 10px;
  cursor: pointer; color: #fff; font-family: var(--font);
}
.icon:hover { background: rgba(120,150,255,0.14); border-color: rgba(255,255,255,0.12); }
.icon.selected { background: rgba(245,166,35,0.22); border-color: rgba(245,166,35,0.5); }
.icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.icon__glyph {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(160deg, rgba(60,80,130,0.92), rgba(20,28,48,0.92));
  box-shadow: 0 6px 16px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.12);
}
.icon__label {
  font-size: 12px; text-align: center; line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.95);
  max-width: 92px;
}

/* ===================== WINDOWS ===================== */
.window-layer { position: absolute; inset: 0; z-index: 100; pointer-events: none; }

.window {
  position: absolute;
  min-width: 300px; min-height: 200px;
  display: flex; flex-direction: column;
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  pointer-events: auto;
  animation: winIn 0.24s cubic-bezier(.2,.8,.3,1);
}
@keyframes winIn { from { opacity: 0; transform: scale(0.96) translateY(8px); } }
.window.minimizing { animation: winMin 0.28s ease forwards; }
@keyframes winMin { to { opacity: 0; transform: scale(0.5) translateY(60vh); } }
.window.closing { animation: winOut 0.18s ease forwards; }
@keyframes winOut { to { opacity: 0; transform: scale(0.94); } }

.window.maximized {
  top: var(--menubar-h) !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - var(--menubar-h) - 84px) !important;
  border-radius: 0;
}

.window__bar {
  height: 40px; flex: 0 0 40px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
  border-bottom: 1px solid var(--border);
  cursor: grab;
}
.window__bar:active { cursor: grabbing; }
.window.dragging .window__bar { cursor: grabbing; }

.traffic { display: flex; gap: 8px; }
.traffic button {
  width: 13px; height: 13px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; font-size: 9px; color: rgba(0,0,0,0.5);
  line-height: 1; padding: 0;
}
.traffic .t-close { background: #ff5f57; }
.traffic .t-min   { background: #febc2e; }
.traffic .t-max   { background: #28c840; }
.traffic button span { opacity: 0; }
.window__bar:hover .traffic button span { opacity: 1; }

.window__title {
  font-size: 13px; font-weight: 600; color: var(--text);
  flex: 1; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
.window__spacer { width: 52px; flex: 0 0 52px; }

.window__body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 26px 30px 34px;
  user-select: text;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.window__body::-webkit-scrollbar { width: 10px; }
.window__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 8px; border: 3px solid transparent; background-clip: padding-box; }

.resize-handle {
  position: absolute; width: 16px; height: 16px; right: 0; bottom: 0;
  cursor: nwse-resize; z-index: 2;
}

/* ===================== CONTENT STYLES ===================== */
.window__body h1 { font-size: 30px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.5px; }
.mk-divider { margin-top: 30px !important; padding-top: 22px; border-top: 1px solid var(--border); }
.banner-img {
  width: 100%; height: auto; display: block;
  border-radius: 12px; border: 1px solid var(--border);
  margin: 4px 0 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.reflection { margin: 6px 0 14px; padding-left: 20px; }
.reflection li { margin-bottom: 13px; line-height: 1.6; font-size: 15px; }
.window__body h2 { font-size: 17px; font-weight: 700; margin: 26px 0 12px; color: var(--text); }
.window__body h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.window__body p { font-size: 15px; line-height: 1.65; color: var(--text); margin-bottom: 14px; }
.window__body strong { color: #fff; font-weight: 700; }
body.light .window__body strong { color: #000; }
.lede { font-size: 17px !important; color: var(--muted) !important; margin-bottom: 20px !important; }
.muted { color: var(--muted) !important; font-size: 14px !important; }
.window__body a { color: var(--accent); text-decoration: none; }
.window__body a:hover { text-decoration: underline; }
blockquote {
  border-left: 3px solid var(--accent);
  padding: 10px 18px; margin: 8px 0 16px;
  background: rgba(245,166,35,0.08); border-radius: 0 8px 8px 0;
  font-style: italic; font-size: 15px; line-height: 1.6;
}

.inline-open {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font: inherit; text-decoration: underline; padding: 0;
}

/* HERO (about) */
.hero { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.hero__img {
  width: 150px; height: 150px; object-fit: cover; border-radius: 18px;
  border: 2px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  flex: 0 0 auto;
}
.hero__intro { min-width: 200px; flex: 1; }
.hero__intro h1 { margin-bottom: 2px; }
.hero__creds { color: var(--accent) !important; font-weight: 700; letter-spacing: 2px; font-size: 14px !important; margin-bottom: 6px !important; }
.hero__tagline { font-size: 16px !important; color: var(--muted) !important; margin-bottom: 12px !important; }

.chips, .pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.chip {
  font-size: 12px; padding: 4px 11px; border-radius: 20px;
  background: rgba(59,130,246,0.16); border: 1px solid rgba(59,130,246,0.32);
  color: #bcd3ff;
}
body.light .chip { color: #1a4b9e; }
.pill {
  font-size: 13px; padding: 6px 13px; border-radius: 8px;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border);
}

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px; margin: 20px 0;
}
.stat {
  padding: 16px; border-radius: 12px; text-align: center;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
}
.stat__num { display: block; font-size: 24px; font-weight: 800; color: var(--accent); }
.stat__label { font-size: 12px; color: var(--muted); line-height: 1.3; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 8px 0; }
.rcard {
  padding: 16px 18px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
}
.rcard p { font-size: 13.5px !important; color: var(--muted) !important; margin: 0 !important; line-height: 1.5; }

.timeline { list-style: none; margin: 6px 0; }
.timeline li {
  position: relative; padding: 8px 0 8px 24px;
  font-size: 15px; line-height: 1.55; border-left: 2px solid var(--border); margin-left: 5px;
}
.timeline__dot {
  position: absolute; left: -7px; top: 14px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(245,166,35,0.22);
}

.award {
  display: flex; gap: 16px; align-items: center;
  padding: 18px; border-radius: 14px; margin: 16px 0;
  background: linear-gradient(135deg, rgba(245,166,35,0.14), rgba(245,166,35,0.03));
  border: 1px solid rgba(245,166,35,0.3);
}
.award__badge { font-size: 38px; }
.award p { font-size: 13.5px !important; color: var(--muted) !important; margin: 4px 0 0 !important; }
.award strong { color: var(--text); }
a.award--link { text-decoration: none !important; color: var(--text) !important; transition: transform 0.15s, border-color 0.15s; }
a.award--link:hover { transform: translateY(-2px); border-color: rgba(245,166,35,0.6); }

.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 10px 0; }
.linkcard {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: 12px; text-decoration: none !important;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  transition: transform 0.15s, background 0.15s;
}
.linkcard:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); }
.linkcard__ico {
  font-size: 20px; flex: 0 0 34px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 9px; font-weight: 800;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  line-height: 1;
}
.linkcard span { display: flex; flex-direction: column; color: var(--text); }
.linkcard strong { font-size: 14px; }
.linkcard em { font-size: 12px; color: var(--muted); font-style: normal; }

.cta {
  display: inline-block; margin: 6px 0 18px;
  padding: 13px 26px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ff7a45);
  color: #06090f !important; font-weight: 700; font-size: 16px;
  text-decoration: none !important; box-shadow: 0 8px 24px rgba(245,166,35,0.32);
  transition: transform 0.15s;
}
.cta:hover { transform: translateY(-2px); }

/* ===================== BOOK GRID (reading list) ===================== */
.book-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 16px 12px; margin: 10px 0 8px;
}
.book-card { display: flex; flex-direction: column; gap: 7px; text-decoration: none !important; }
.book-cvr {
  position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 6px;
  background: linear-gradient(160deg, rgba(70,90,140,0.5), rgba(20,28,48,0.6));
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.45); transition: transform 0.15s, box-shadow 0.15s;
}
.book-card:hover .book-cvr { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.55); }
.book-cvr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-cvr.nocover::after {
  content: "📖"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px;
}
.book-cap {
  font-size: 11.5px; line-height: 1.3; color: var(--muted); text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.book-card:hover .book-cap { color: var(--text); }

.shelf { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.book {
  width: 42px; height: 96px; border-radius: 3px 6px 6px 3px;
  background: var(--c, #2b6cb0); color: #fff;
  writing-mode: vertical-rl; text-orientation: mixed;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  padding: 6px 0; box-shadow: 2px 2px 8px rgba(0,0,0,0.4), inset -3px 0 6px rgba(0,0,0,0.25);
  letter-spacing: 1px;
}

/* ===================== ARTICLE LIST ===================== */
.article-list { list-style: none; margin: 8px 0 16px; }
.article-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 8px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
}
.article-list__ico { font-size: 20px; flex: 0 0 auto; }
.article-list strong { display: block; font-size: 14.5px; }
.article-list em { font-size: 12.5px; color: var(--muted); font-style: normal; }

.btn-small {
  display: inline-block; margin-top: 8px;
  padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  color: var(--text) !important; text-decoration: none !important;
}
.btn-small:hover { background: rgba(255,255,255,0.16); }

/* ===================== CERTIFICATIONS ===================== */
.cert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px; margin: 8px 0 6px;
}
.cert {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 11px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
}
.cert__ico {
  flex: 0 0 38px; width: 38px; height: 38px; font-size: 20px;
  display: grid; place-items: center; border-radius: 10px;
  background: linear-gradient(160deg, rgba(60,80,130,0.55), rgba(20,28,48,0.55));
  border: 1px solid rgba(255,255,255,0.1);
}
.cert__body { display: flex; flex-direction: column; min-width: 0; }
.cert__body strong { font-size: 13.5px; line-height: 1.3; }
.cert__body em { font-size: 12px; color: var(--muted); font-style: normal; margin-top: 2px; }

/* ===================== COURSE LIST ===================== */
.course-group { margin: 8px 0 20px; }
.course-group h2 {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  margin: 22px 0 10px; padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}
.course-group__inst {
  font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.3px; text-transform: uppercase;
}
.course-list { list-style: none; margin: 0; }
.course-list li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 7px 4px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.course-list li:last-child { border-bottom: none; }
.course-code {
  flex: 0 0 96px; font-family: var(--mono, monospace); font-size: 12.5px;
  font-weight: 700; color: var(--accent-2); letter-spacing: 0.2px;
}
body.light .course-code { color: #1a4b9e; }
.course-name { font-size: 14px; color: var(--text); line-height: 1.4; }

/* ===================== FOLDER WINDOWS ===================== */
.folder__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px; margin: 10px 0 18px;
}
.folder__item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 10px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font); text-align: center;
  transition: transform 0.14s, background 0.14s;
}
.folder__item:hover { transform: translateY(-3px); background: rgba(255,255,255,0.11); border-color: rgba(245,166,35,0.4); }
.folder__ico { font-size: 34px; }
.biz-logo { object-fit: contain; border-radius: 7px; display: block; background: #fff; }
.folder__ico .biz-logo { width: 46px; height: 46px; padding: 3px; }
.menu__ico .biz-logo { width: 17px; height: 17px; border-radius: 4px; padding: 1px; }
.folder__label { font-size: 13px; line-height: 1.25; }
.folder h2 { font-size: 15px; margin: 20px 0 8px; color: var(--muted); }

/* ===================== DOCK (mobile only) ===================== */
.dock {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: none; align-items: flex-end; gap: 8px;
  padding: 8px 12px; border-radius: 20px;
  background: var(--glass-strong);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 4000;
}
.dock__app {
  position: relative; width: 48px; height: 48px; border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.12); cursor: pointer;
  display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(160deg, rgba(70,90,140,0.85), rgba(24,32,54,0.9));
  transition: transform 0.16s cubic-bezier(.2,.9,.3,1.4), margin 0.16s;
}
.dock__app span { pointer-events: none; }
.dock__app:hover { transform: translateY(-12px) scale(1.18); margin: 0 6px; }
.dock__app::after {
  content: attr(data-tip);
  position: absolute; bottom: 118%; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.85); color: #fff; font-size: 12px;
  padding: 4px 9px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.dock__app:hover::after { opacity: 1; }
.dock__app.running::before {
  content: ""; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.dock__divider { width: 1px; height: 40px; background: var(--border); margin: 0 2px; align-self: center; }

/* ===================== CONTEXT MENU ===================== */
.context-menu {
  position: absolute; z-index: 6000; min-width: 180px;
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px; list-style: none;
  font-size: 13px;
}
.context-menu li {
  padding: 7px 12px; border-radius: 6px; cursor: pointer; color: var(--text);
}
.context-menu li:hover { background: var(--accent); color: #06090f; }
.context-menu__sep { height: 1px; background: var(--border); margin: 5px 4px; padding: 0 !important; cursor: default; }
.context-menu__sep:hover { background: var(--border); }

/* Secondary (right-click) menu on desktop icons — mirrors the menu-bar dropdown */
.icon-menu {
  position: fixed; z-index: 6000; min-width: 190px; list-style: none; padding: 6px;
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
  animation: winIn 0.14s ease;
}
.icon-menu li {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 11px; border-radius: 7px; cursor: pointer;
  font-size: 13px; color: var(--text); white-space: nowrap;
}
.icon-menu li:hover { background: var(--accent); color: #06090f; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 760px) {
  .menubar__nav { display: none; }
  .menubar__brand { display: none; }
  .menubar__social { display: none; }  /* compact bar on mobile; socials live in Contact + dock */
  .menubar__clock { min-width: auto; }
  .icons { display: none; }  /* mobile uses the dock instead */
  .mobile-menu-btn {
    display: grid; place-items: center;
    position: absolute; top: calc(var(--menubar-h) + 10px); right: 12px;
    z-index: 3000; width: 46px; height: 46px; border-radius: 12px;
    font-size: 20px; color: #fff; cursor: pointer;
    background: var(--glass-strong); border: 1px solid var(--border);
    backdrop-filter: blur(20px); box-shadow: var(--shadow);
  }
  .window {
    top: calc(var(--menubar-h) + 6px) !important;
    left: 6px !important;
    width: calc(100vw - 12px) !important;
    height: calc(100vh - var(--menubar-h) - 92px) !important;
    min-width: 0;
  }
  .window.maximized { left: 0 !important; width: 100vw !important; }
  .resize-handle { display: none; }
  .window__body { padding: 20px 18px 28px; }
  .window__body h1 { font-size: 25px; }
  .hero__img { width: 110px; height: 110px; }
  /* Dock becomes the primary launcher on mobile */
  .dock { display: flex; gap: 4px; padding: 6px 8px; bottom: 6px; max-width: calc(100vw - 12px); overflow-x: auto; }
  .dock__app { width: 42px; height: 42px; font-size: 22px; }
  .dock__app:hover { transform: none; margin: 0; }
  .dock__divider { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.05ms !important; }
}

/* ===================== NO-SCRIPT FALLBACK ===================== */
.noscript {
  position: relative; z-index: 99999;
  max-width: 760px; margin: 0 auto; padding: 40px 24px 60px;
  color: var(--text); font-family: var(--font); line-height: 1.65;
}
.noscript h1 { font-size: 30px; margin-bottom: 6px; }
.noscript h2 { font-size: 19px; margin: 28px 0 8px; color: var(--accent); }
.noscript p { margin-bottom: 10px; }
.noscript a { color: var(--accent); }
.noscript ul { margin: 8px 0 0 20px; }
