/* =========================================================
   niranjan@arch — Hyprland-style desktop portfolio
   Catppuccin Mocha
   ========================================================= */

:root {
  /* Catppuccin Mocha */
  --base:      #1e1e2e;
  --mantle:    #181825;
  --crust:     #11111b;
  --surface0:  #313244;
  --surface1:  #45475a;
  --surface2:  #585b70;
  --overlay0:  #6c7086;
  --overlay1:  #7f849c;
  --text:      #cdd6f4;
  --subtext1:  #bac2de;
  --subtext0:  #a6adc8;
  --rosewater: #f5e0dc;
  --flamingo:  #f2cdcd;
  --pink:      #f5c2e7;
  --mauve:     #89b4fa; /* remapped to Catppuccin blue for blue theme */
  --red:       #f38ba8;
  --maroon:    #eba0ac;
  --peach:     #fab387;
  --yellow:    #f9e2af;
  --green:     #a6e3a1;
  --teal:      #94e2d5;
  --sky:       #89dceb;
  --sapphire:  #74c7ec;
  --blue:      #89b4fa;
  --lavender:  #b4befe;

  --wm-radius: 14px;
  --wm-border: 1.5px;
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.35);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.4);
  --blur: 18px;

  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
}

:root[data-theme="light"] {
  /* Catppuccin Latte */
  --base:      #eff1f5;
  --mantle:    #e6e9ef;
  --crust:     #dce0e8;
  --surface0:  #ccd0da;
  --surface1:  #bcc0cc;
  --surface2:  #acb0be;
  --overlay0:  #9ca0b0;
  --overlay1:  #8c8fa1;
  --text:      #4c4f69;
  --subtext1:  #5c5f77;
  --subtext0:  #6c6f85;
  --rosewater: #dc8a78;
  --flamingo:  #dd7878;
  --pink:      #ea76cb;
  --mauve:     #1e66f5;
  --red:       #d20f39;
  --maroon:    #e64553;
  --peach:     #fe640b;
  --yellow:    #df8e1d;
  --green:     #40a02b;
  --teal:      #179299;
  --sky:       #04a5e5;
  --sapphire:  #209fb5;
  --blue:      #1e66f5;
  --lavender:  #7287fd;

  --shadow-lg: 0 24px 60px rgba(76,79,105,0.24), 0 2px 8px rgba(76,79,105,0.14);
  --shadow-md: 0 10px 30px rgba(76,79,105,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--base) url('assets/wallpaper.jpg') center/cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
:root[data-theme="light"] body {
  background: url('assets/wallpaper.jpg') center/cover no-repeat fixed;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
kbd {
  font-family: var(--mono); font-size: 0.75em;
  background: var(--surface0); border: 1px solid var(--surface2);
  border-radius: 4px; padding: 1px 5px;
}

/* =====================  BOOT  ===================== */
/* Instant view switching to prevent flash of wrong content */
html.view-simple .boot,
html.view-simple .desktop,
html.view-simple .landing,
html.view-simple .mobile { display: none !important; }
html.view-simple { height: auto !important; overflow: auto !important; }
html.view-simple .simple { display: block !important; }

html.view-landing .boot,
html.view-landing .desktop,
html.view-landing .mobile { display: none !important; }

.boot {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--crust);
  color: var(--text); font-family: var(--mono); font-size: 13px;
  padding: 30px 40px; overflow: hidden;
  transition: opacity 0.6s ease;
}
.boot.gone { opacity: 0; pointer-events: none; }
.bootlog { white-space: pre-wrap; line-height: 1.55; }
.bootlog .ok  { color: var(--green); }
.bootlog .no  { color: var(--red); }
.bootlog .info{ color: var(--blue); }
.bootlog .dim { color: var(--overlay1); }
.boot-caret {
  color: var(--mauve); font-family: var(--mono);
  animation: blink 900ms steps(2) infinite;
  margin-top: 6px;
}
@keyframes blink { 50% { opacity: 0; } }

/* =====================  DESKTOP  ===================== */
.desktop {
  position: fixed; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.7s ease;
}
.desktop.up { opacity: 1; pointer-events: auto; }

/* Waybar */
.waybar {
  position: absolute; top: 8px; left: 8px; right: 8px; height: 34px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px;
  background: color-mix(in oklab, var(--base) 72%, transparent);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid color-mix(in oklab, var(--mauve) 22%, transparent);
  border-radius: 12px;
  font-family: var(--mono); font-size: 12.5px;
  color: var(--subtext1);
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.wb-left, .wb-right { display: flex; align-items: center; gap: 10px; }
.wb-center { position: absolute; left: 50%; transform: translateX(-50%); }
.wb-logo { color: var(--blue); font-size: 15px; }
.wb-workspaces { display: flex; gap: 4px; }
.ws {
  width: 22px; height: 22px; border-radius: 6px;
  color: var(--overlay1); font-family: var(--mono); font-size: 11px;
  background: color-mix(in oklab, var(--surface0) 60%, transparent);
  transition: all 0.15s ease;
}
.ws:hover { color: var(--text); }
.ws.active { color: var(--base); background: var(--mauve); box-shadow: 0 0 12px color-mix(in oklab, var(--mauve) 55%, transparent); }
.ws.has-window { color: var(--lavender); background: color-mix(in oklab, var(--mauve) 22%, transparent); }
.wb-title { color: var(--subtext0); font-style: italic; margin-left: 8px; }
.wb-clock { font-family: var(--mono); color: var(--mauve); font-weight: 600; letter-spacing: 0.5px; }
.wb-mod { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: color-mix(in oklab, var(--surface0) 45%, transparent); }
.wb-mod .ico { color: var(--peach); }
.wb-mod:nth-child(2) .ico { color: var(--sky); }
.wb-user .ico { color: var(--green); }

/* Desktop icons */
.desk-icons {
  position: absolute; top: 60px; left: 20px;
  display: grid; grid-template-columns: repeat(1, 96px);
  gap: 10px; z-index: 10;
}
.dicon {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 96px; padding: 12px 6px; border-radius: 12px;
  color: var(--text); font-size: 12px; text-align: center;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  background: transparent;
}
.dicon:hover, .dicon:focus-visible {
  background: color-mix(in oklab, #1793d1 18%, transparent);
  border-color: color-mix(in oklab, #1793d1 45%, transparent);
  outline: none;
}
.di-emoji, .di-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  line-height: 1;
}
.di-icon svg { display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45)); }

/* Ghostty terminal icon uses uploaded artwork */
.dicon .di-img { padding: 0; width: 56px; height: 56px; display: grid; place-items: center; }
.dicon .di-img img { width: 44px; height: 44px; object-fit: contain; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }


/* Right-side widget */
.hyprwidget {
  position: absolute; right: 20px; top: 60px;
  padding: 14px 16px; min-width: 240px;
  font-family: var(--mono); font-size: 12px;
  color: var(--subtext1);
  background: color-mix(in oklab, var(--base) 55%, transparent);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid color-mix(in oklab, var(--mauve) 20%, transparent);
  border-radius: 12px;
  z-index: 5;
  box-shadow: var(--shadow-md);
}
.hw-line { display: flex; justify-content: space-between; gap: 20px; padding: 3px 0; }
.hw-k { color: var(--mauve); }
.hw-v { color: var(--text); }
.hw-hint { margin-top: 10px; padding-top: 10px; border-top: 1px dashed color-mix(in oklab, var(--overlay0) 40%, transparent); color: var(--overlay1); font-size: 11px; line-height: 1.6; }

/* Dock */
.dock {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 12px; z-index: 100;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  background: color-mix(in oklab, var(--base) 65%, transparent);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid color-mix(in oklab, var(--mauve) 22%, transparent);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.dock-btn {
  width: 44px; height: 44px; border-radius: 11px;
  font-size: 22px; display: grid; place-items: center;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text);
  background: color-mix(in oklab, var(--surface0) 50%, transparent);
  text-decoration: none;
}
.dock-btn:hover { transform: translateY(-6px) scale(1.08); background: color-mix(in oklab, var(--mauve) 30%, transparent); color: var(--mauve); }
.dock-btn.active { color: var(--mauve); box-shadow: 0 6px 0 -3px var(--mauve); }
.dock-sep { width: 1px; height: 28px; background: color-mix(in oklab, var(--overlay0) 40%, transparent); margin: 0 4px; }

/* =====================  WINDOW  ===================== */
.win {
  position: absolute;
  background: color-mix(in oklab, var(--base) 82%, transparent);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border: var(--wm-border) solid var(--mauve);
  border-radius: var(--wm-radius);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.6), 0 0 40px color-mix(in oklab, var(--mauve) 20%, transparent);
  display: flex; flex-direction: column;
  min-width: 320px; min-height: 200px;
  overflow: hidden;
  animation: winSpawn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 20;
}
.win.blurred { border-color: var(--surface2); box-shadow: var(--shadow-md); }
.win.minimized { display: none; }
.win.maximized { border-radius: 0; }
@keyframes winSpawn {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes winClose {
  to { opacity: 0; transform: scale(0.94) translateY(8px); }
}
.win.closing { animation: winClose 0.16s ease forwards; }

.win-header {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; height: 36px;
  background: color-mix(in oklab, var(--mantle) 70%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--surface1) 60%, transparent);
  cursor: move;
  user-select: none;
}
.win-traffic { display: flex; gap: 7px; }
.tl { width: 12px; height: 12px; border-radius: 50%; border: none; cursor: pointer; transition: filter 0.12s; }
.tl.close { background: var(--red); }
.tl.min   { background: var(--yellow); }
.tl.max   { background: var(--green); }
.tl:hover { filter: brightness(1.2); }
.win-title { font-family: var(--mono); font-size: 12px; color: var(--subtext0); flex: 1; text-align: center; letter-spacing: 0.3px; }
.win-title b { color: var(--text); font-weight: 500; }

.win-body { flex: 1; overflow: auto; position: relative; }
.win-body::-webkit-scrollbar { width: 8px; height: 8px; }
.win-body::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 4px; }
.win-body::-webkit-scrollbar-track { background: transparent; }

.win-resize {
  position: absolute; right: 0; bottom: 0; width: 16px; height: 16px;
  cursor: nwse-resize; z-index: 2;
  background:
    linear-gradient(135deg, transparent 50%, var(--overlay0) 52%, var(--overlay0) 55%, transparent 57%,
                            transparent 62%, var(--overlay0) 64%, var(--overlay0) 67%, transparent 69%);
  opacity: 0.5;
}

/* =====================  TERMINAL  ===================== */
.term {
  height: 100%;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.55;
  color: var(--text);
  background: linear-gradient(180deg, color-mix(in oklab, var(--crust) 88%, transparent), color-mix(in oklab, var(--mantle) 92%, transparent));
  padding: 14px 18px 60px;
  overflow-y: auto;
  cursor: text;
  user-select: text;
}
.term::selection, .term *::selection { background: color-mix(in oklab, var(--mauve) 45%, transparent); }
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-line.cmd { color: var(--text); }
.term-line.out { color: var(--subtext1); }
.term-line.err { color: var(--red); }
.term-line.ok  { color: var(--green); }
.term-line.info{ color: var(--blue); }
.term-line.dim { color: var(--overlay1); }
.term-line.mauve { color: var(--mauve); }
.term-line.peach { color: var(--peach); }
.term-line.yellow{ color: var(--yellow); }
.term-line.teal  { color: var(--teal); }
.term a { color: var(--sky); text-decoration: underline dotted; text-underline-offset: 3px; }
.term a:hover { color: var(--sapphire); }

.term-prompt {
  display: flex; align-items: baseline; gap: 6px; margin-top: 2px;
}
.term-prompt .p1 { color: var(--mauve); font-weight: 600; }
.term-prompt .p2 { color: var(--green); }
.term-prompt .p3 { color: var(--peach); }
.term-prompt .p4 { color: var(--sky); }
.term-prompt .arrow { color: var(--mauve); }
.term-input {
  flex: 1; background: transparent; border: none; outline: none;
  font: inherit; color: var(--text); caret-color: var(--mauve);
}
.term-suggest { color: var(--overlay0); margin-left: 6px; font-style: italic; }

/* Command output helpers */
.k-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 2px 20px; margin: 4px 0; }
.k-list .f-dir { color: var(--blue); font-weight: 600; }
.k-list .f-exe { color: var(--green); }
.k-list .f-md  { color: var(--yellow); }
.k-list .f-img { color: var(--pink); }

.ascii-arch { color: #1793d1; white-space: pre; line-height: 1.05; font-size: 10px; text-shadow: 0 0 8px color-mix(in oklab, #1793d1 40%, transparent); }
.di-svg { color: #f5f5f5; display: inline-flex; align-items: center; justify-content: center; }
.nf-wrap { display: flex; gap: 24px; padding: 4px 0; }
.nf-info { font-size: 13px; }
.nf-info b { color: var(--mauve); }
.nf-colors { display: flex; gap: 4px; margin-top: 8px; }
.nf-colors span { width: 18px; height: 12px; border-radius: 2px; }

/* =====================  APP: PROJECTS  ===================== */
.app-scroll { padding: 22px 26px 30px; height: 100%; overflow-y: auto; }
.app-scroll h1 { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 4px; letter-spacing: -0.02em; }
.app-scroll h1 .accent { color: var(--mauve); }
.app-sub { color: var(--subtext0); font-size: 13.5px; margin-bottom: 22px; }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.proj-card {
  padding: 16px; border-radius: 12px;
  background: color-mix(in oklab, var(--surface0) 55%, transparent);
  border: 1px solid color-mix(in oklab, var(--surface2) 50%, transparent);
  transition: all 0.2s ease;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.proj-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, transparent 60%, color-mix(in oklab, var(--accent, var(--mauve)) 18%, transparent));
  opacity: 0.6; pointer-events: none;
}
.proj-card:hover { transform: translateY(-3px); border-color: var(--accent, var(--mauve)); box-shadow: 0 10px 30px color-mix(in oklab, var(--accent, var(--mauve)) 25%, transparent); }
.pc-head { display: flex; align-items: center; gap: 10px; }
.pc-icon { font-size: 22px; }
.pc-title { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--text); }
.pc-eyebrow { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent, var(--mauve)); }
.pc-desc { font-size: 13.5px; line-height: 1.55; color: var(--subtext1); }
.pc-desc b, .pc-desc strong { color: var(--text); font-weight: 600; }
.pc-tech { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.chip {
  font-family: var(--mono); font-size: 10.5px;
  padding: 2px 8px; border-radius: 999px;
  background: color-mix(in oklab, var(--surface2) 60%, transparent);
  color: var(--subtext1);
  border: 1px solid color-mix(in oklab, var(--overlay0) 25%, transparent);
}
.pc-links { display: flex; gap: 8px; margin-top: 4px; }
.pc-link {
  font-family: var(--mono); font-size: 11.5px;
  padding: 5px 10px; border-radius: 8px;
  background: color-mix(in oklab, var(--surface2) 50%, transparent);
  color: var(--text); border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex; align-items: center; gap: 5px;
}
.pc-link:hover { background: var(--accent, var(--mauve)); color: var(--base); }

/* =====================  APP: ABOUT / MD  ===================== */
.md-body {
  padding: 30px 40px; height: 100%; overflow-y: auto;
  font-size: 14.5px; line-height: 1.75; color: var(--subtext1);
  max-width: 720px;
}
.md-body h1 { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--text); margin-bottom: 4px; letter-spacing: -0.02em; }
.md-body h2 { font-family: var(--display); font-size: 18px; color: var(--mauve); margin-top: 24px; margin-bottom: 8px; font-weight: 600; }
.md-body p { margin-bottom: 12px; }
.md-body .lead { color: var(--text); font-size: 16px; margin-bottom: 20px; }
.md-body strong { color: var(--text); }
.md-body a { color: var(--sky); text-decoration: underline dotted; text-underline-offset: 3px; }
.md-body ul { padding-left: 22px; margin-bottom: 12px; }
.md-body li { margin-bottom: 6px; }
.md-body code { font-family: var(--mono); font-size: 0.88em; padding: 2px 6px; background: var(--surface0); border-radius: 4px; color: var(--peach); }
.md-body .stamp { font-family: var(--mono); font-size: 11px; color: var(--overlay1); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px; }

/* =====================  APP: FILES  ===================== */
.files-app { display: grid; grid-template-columns: 200px 1fr; height: 100%; }
.files-side {
  background: color-mix(in oklab, var(--mantle) 70%, transparent);
  border-right: 1px solid color-mix(in oklab, var(--surface1) 60%, transparent);
  padding: 14px 6px;
  font-family: var(--mono); font-size: 12.5px;
}
.files-side .fs-h { color: var(--overlay1); text-transform: uppercase; font-size: 10px; letter-spacing: 0.15em; padding: 10px 12px 4px; }
.fs-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px; cursor: pointer; color: var(--subtext1); transition: all 0.12s; }
.fs-item:hover { background: color-mix(in oklab, var(--mauve) 15%, transparent); color: var(--text); }
.fs-item.active { background: color-mix(in oklab, var(--mauve) 25%, transparent); color: var(--text); }
.files-main { padding: 12px 16px 8px; overflow-y: auto; display: flex; flex-direction: column; }
.files-toolbar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.fs-nav {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid color-mix(in oklab, var(--surface1) 70%, transparent);
  background: color-mix(in oklab, var(--surface0) 60%, transparent); color: var(--subtext1);
  cursor: pointer; font-size: 12px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .12s;
}
.fs-nav:hover { background: color-mix(in oklab, var(--mauve) 20%, transparent); color: var(--text); }
.files-crumb { font-family: var(--mono); font-size: 12px; color: var(--overlay1); flex: 1; margin-left: 6px; }
.files-crumb .crumb-part { color: var(--subtext1); cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.files-crumb .crumb-part:hover { background: color-mix(in oklab, var(--mauve) 20%, transparent); color: var(--mauve); }
.files-crumb .crumb-sep { color: var(--overlay0); margin: 0 2px; }
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; flex: 1; align-content: start; }
.file-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px; border-radius: 8px; cursor: pointer;
  color: var(--subtext1); text-align: center; font-size: 11.5px;
  transition: all 0.15s; border: 1px solid transparent;
  outline: none;
}
.file-tile:hover { background: color-mix(in oklab, var(--mauve) 15%, transparent); color: var(--text); }
.file-tile.sel  { background: color-mix(in oklab, var(--mauve) 28%, transparent); color: var(--text); border-color: color-mix(in oklab, var(--mauve) 45%, transparent); }
.file-tile:focus-visible { border-color: var(--mauve); }
.file-tile .ico { font-size: 32px; }
.file-tile .fname { word-break: break-all; line-height: 1.25; }
.files-status { margin-top: 8px; padding-top: 8px; border-top: 1px solid color-mix(in oklab, var(--surface1) 50%, transparent); font-family: var(--mono); font-size: 11px; color: var(--overlay1); }

/* =====================  APP: CONTACT  ===================== */
.contact-body { padding: 28px 34px; }
.contact-body h1 { font-family: var(--display); font-size: 26px; color: var(--text); margin-bottom: 4px; }
.contact-body .lead { color: var(--subtext0); margin-bottom: 20px; font-size: 14px; }
.contact-list { display: grid; gap: 10px; max-width: 480px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 10px;
  background: color-mix(in oklab, var(--surface0) 55%, transparent);
  border: 1px solid color-mix(in oklab, var(--surface2) 50%, transparent);
  color: var(--text); text-decoration: none; font-family: var(--mono); font-size: 13px;
  transition: all 0.15s;
}
.contact-list a:hover { border-color: var(--mauve); transform: translateX(4px); }
.contact-list .cico { font-size: 20px; color: var(--mauve); width: 24px; text-align: center; }
.contact-list .clabel { color: var(--overlay1); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }

/* =====================  PLAYGROUND  ===================== */
.pg-root { display: grid; grid-template-columns: 260px 1fr; height: 100%; background: var(--mantle); }
.pg-side {
  background: color-mix(in oklab, var(--crust) 85%, transparent);
  border-right: 1px solid var(--surface1);
  padding: 14px; overflow-y: auto;
  font-family: var(--mono); font-size: 12.5px;
  display: flex; flex-direction: column; gap: 14px;
}
.pg-h { color: var(--mauve); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 6px; }
.pg-group { display: flex; flex-direction: column; gap: 6px; }
.pg-btn {
  text-align: left; padding: 8px 10px; border-radius: 8px;
  background: color-mix(in oklab, var(--surface0) 70%, transparent);
  color: var(--subtext1); font-family: var(--mono); font-size: 12px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.pg-btn:hover { border-color: var(--mauve); color: var(--text); }
.pg-btn.primary { background: var(--mauve); color: var(--base); font-weight: 600; }
.pg-btn.primary:hover { filter: brightness(1.1); }
.pg-btn.warn { background: color-mix(in oklab, var(--red) 20%, var(--surface0)); color: var(--red); }
.pg-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.pg-row { display: flex; gap: 8px; align-items: center; color: var(--subtext1); }
.pg-row input[type=range] { flex: 1; accent-color: var(--mauve); }
.pg-metric {
  padding: 10px 12px; border-radius: 8px;
  background: color-mix(in oklab, var(--surface0) 60%, transparent);
  display: flex; justify-content: space-between;
  color: var(--subtext1); font-size: 12px;
}
.pg-metric b { color: var(--mauve); font-family: var(--mono); }

.pg-canvas-wrap { position: relative; overflow: hidden; }
#pg-canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.pg-hint {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--overlay1);
  background: color-mix(in oklab, var(--crust) 70%, transparent);
  padding: 6px 10px; border-radius: 6px;
  border: 1px solid var(--surface1);
  pointer-events: none;
}
.pg-hint b { color: var(--mauve); }
.pg-toast {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  padding: 10px 16px; border-radius: 8px;
  background: color-mix(in oklab, var(--crust) 90%, transparent);
  border: 1px solid var(--mauve);
  font-family: var(--mono); font-size: 12.5px; color: var(--text);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.pg-toast.show { opacity: 1; }

/* ===== Playground game UI ===== */
.pg-game { grid-template-columns: 300px 1fr; }
.pg-scn-grid { display: flex; flex-direction: column; gap: 4px; }
.pg-scn {
  display: flex; align-items: center; gap: 10px;
  text-align: left; padding: 8px 10px; border-radius: 8px;
  background: color-mix(in oklab, var(--surface0) 70%, transparent);
  border: 1px solid transparent; color: var(--subtext1);
  font-family: var(--mono); font-size: 12px;
  transition: all .15s; cursor: pointer; width: 100%;
}
.pg-scn span { font-size: 15px; line-height: 1; }
.pg-scn b { font-weight: 500; }
.pg-scn:hover { color: var(--text); border-color: var(--mauve); }
.pg-scn.active { border-color: var(--mauve); background: color-mix(in oklab, var(--mauve) 18%, var(--surface0)); color: var(--text); }

.pg-subtabs { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 2px solid color-mix(in oklab, var(--mauve) 40%, transparent); }
.pg-sub {
  display: flex; align-items: center; gap: 8px;
  text-align: left; padding: 6px 10px; border-radius: 6px;
  border: 1px solid transparent; background: transparent;
  color: var(--subtext0); font-family: var(--mono); font-size: 11.5px;
  cursor: pointer; transition: all .15s;
}
.pg-sub:hover { color: var(--text); border-color: var(--surface2); }
.pg-sub.active { border-color: var(--sapphire); background: color-mix(in oklab, var(--sapphire) 18%, var(--surface0)); color: var(--text); }
.pg-story {
  padding: 12px; border-radius: 10px;
  background: color-mix(in oklab, var(--mauve) 12%, var(--surface0));
  border-left: 3px solid var(--mauve);
  color: var(--text); font-size: 13px; line-height: 1.5;
}
.pg-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--mauve); color: var(--base);
  font-size: 10px; font-weight: 700; font-family: var(--mono);
  margin-right: 6px; vertical-align: middle;
}
.pg-cls {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; cursor: pointer; text-align: left;
  background: color-mix(in oklab, var(--surface0) 60%, transparent);
  border: 1.5px solid transparent; color: var(--subtext1);
  transition: all .15s;
}
.pg-cls-em { font-size: 22px; }
.pg-cls-name { font-size: 13px; }
.pg-cls:hover { color: var(--text); }
.pg-cls.active { border-color: var(--cc); background: color-mix(in oklab, var(--cc) 18%, var(--surface0)); color: var(--text); }
.pg-tiny { font-size: 11.5px; color: var(--overlay1); margin-top: 6px; line-height: 1.5; }
.pg-btn.big { padding: 12px 14px; font-size: 14px; text-align: center; margin-bottom: 6px; }
.pg-result {
  padding: 12px; border-radius: 10px;
  background: color-mix(in oklab, var(--green) 12%, var(--surface0));
  border-left: 3px solid var(--green);
}
.pg-score { font-size: 20px; color: var(--text); margin: 4px 0 6px; }
.pg-score b { font-family: var(--mono); color: var(--green); }

.pg-axis {
  position: absolute; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: 11px; color: var(--overlay1); pointer-events: none;
  text-transform: uppercase; letter-spacing: .08em;
}
.pg-axis-x { left: 60px; right: 16px; bottom: 8px; }
.pg-axis-x span:nth-child(2) { color: var(--subtext0); font-weight: 600; }
.pg-axis-y {
  top: 16px; bottom: 40px; left: 8px; width: 40px;
  flex-direction: column; writing-mode: vertical-rl; transform: rotate(180deg);
}
.pg-axis-y span:nth-child(2) { color: var(--subtext0); font-weight: 600; }

.pg-legend {
  position: absolute; top: 12px; right: 12px;
  display: flex; gap: 12px; padding: 8px 12px; border-radius: 8px;
  background: color-mix(in oklab, var(--crust) 78%, transparent);
  border: 1px solid var(--surface1);
  font-family: var(--sans); font-size: 12px; color: var(--text);
}
.pg-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.pg-legend-item i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.pg-guess {
  position: absolute; pointer-events: none;
  padding: 8px 12px; border-radius: 8px;
  background: color-mix(in oklab, var(--crust) 92%, transparent);
  border: 1px solid var(--mauve);
  font-family: var(--sans); font-size: 12.5px; color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.pg-guess b { color: var(--mauve); }
.pg-conf { color: var(--overlay1); margin-left: 6px; font-family: var(--mono); font-size: 11px; }

/* =====================  CONTEXT MENU  ===================== */
.ctxmenu {
  position: fixed; z-index: 500;
  min-width: 220px; padding: 6px;
  background: color-mix(in oklab, var(--mantle) 92%, transparent);
  backdrop-filter: blur(var(--blur));
  border: 1px solid color-mix(in oklab, var(--mauve) 30%, transparent);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  font-family: var(--mono); font-size: 12.5px;
  display: none;
  animation: winSpawn 0.15s ease;
}
.ctxmenu.show { display: block; }
.ctxmenu li {
  padding: 7px 12px; border-radius: 6px; cursor: pointer;
  color: var(--subtext1); display: flex; justify-content: space-between; gap: 20px;
}
.ctxmenu li:hover { background: color-mix(in oklab, var(--mauve) 25%, transparent); color: var(--text); }
.ctxmenu li kbd { color: var(--overlay1); }
.ctxmenu .sep { height: 1px; background: color-mix(in oklab, var(--surface1) 60%, transparent); margin: 4px 2px; padding: 0; }
.ctxmenu .sep:hover { background: color-mix(in oklab, var(--surface1) 60%, transparent); }

/* =====================  RESPONSIVE  ===================== */

/* =====================  LANDING SCREEN  ===================== */
.landing {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: var(--base);
  font-family: var(--sans);
  opacity: 1;
  transition: opacity 0.4s ease;
}
.landing.gone { opacity: 0; pointer-events: none; }
.landing.hidden { display: none; }

.landing-box {
  max-width: 480px; width: 90%;
  text-align: center;
  padding: 48px 32px;
  background: color-mix(in oklab, var(--mantle) 80%, transparent);
  border: 1px solid var(--surface0);
  border-radius: 20px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  animation: lBoxIn 0.6s ease-out;
}
@keyframes lBoxIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.landing-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: color-mix(in oklab, var(--surface0) 55%, transparent);
  border: 1px solid color-mix(in oklab, var(--blue) 30%, transparent);
  font-family: var(--mono); font-size: 12px; color: var(--subtext1);
  margin-bottom: 20px;
}

.landing-title {
  font-family: 'Space Grotesk', var(--sans);
  font-size: clamp(48px, 10vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 8px 0 6px;
  background: linear-gradient(135deg, var(--text), var(--blue), var(--mauve));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-subtitle {
  font-family: var(--mono); color: var(--blue);
  font-size: 15px; margin: 0 0 12px;
}
.landing-subtitle::before { content: '> '; color: var(--overlay1); }

.landing-tagline {
  color: var(--subtext0); font-size: 16px;
  line-height: 1.55; margin: 0 0 32px;
}

.landing-choices {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 24px;
}

.landing-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: color-mix(in oklab, var(--surface0) 60%, transparent);
  border: 1px solid var(--surface1);
  border-radius: 14px;
  color: var(--text); text-align: left;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.25s, background 0.2s;
}
.landing-btn:hover {
  border-color: var(--blue);
  background: color-mix(in oklab, var(--surface0) 80%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--blue) 40%, transparent);
}
.landing-btn:active { transform: scale(0.98); }

.landing-btn-icon { font-size: 28px; }

.landing-btn-text strong {
  display: block; font-size: 16px; font-weight: 600;
  margin-bottom: 2px;
}
.landing-btn-text small {
  font-size: 12.5px; color: var(--subtext0); font-weight: 400;
}

.landing-btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--mauve));
  border-color: transparent;
  color: var(--base);
  box-shadow: 0 12px 32px -10px color-mix(in oklab, var(--blue) 70%, transparent);
}
.landing-btn-primary:hover {
  background: linear-gradient(135deg, var(--sapphire), var(--mauve));
  color: var(--base);
}
.landing-btn-primary .landing-btn-text small { color: color-mix(in oklab, var(--base) 80%, transparent); }

.landing-hint {
  font-size: 12px; color: var(--overlay1);
  padding-top: 16px; border-top: 1px solid var(--surface0);
}
.landing-hint em { color: var(--blue); font-style: normal; }

/* =====================  SIMPLE PORTFOLIO VIEW  ===================== */
.simple {
  position: relative;
  min-height: 100vh;
  display: none;
  color: var(--text);
  font-family: var(--sans);
  padding: 40px 24px 60px;
  background: var(--base);
  overflow-x: hidden;
  isolation: isolate;
}
.simple.active { display: block; }

/* When simple view is active, allow scrolling */
html:has(.simple.active),
body.view-simple,
body:has(.simple.active) {
  height: auto !important;
  min-height: 100%;
  overflow: auto !important;
  overflow-x: hidden !important;
}
html:has(.simple.active),
html:has(body.view-simple) {
  height: auto !important;
  overflow: auto !important;
}
body.view-simple #boot,
body.view-simple #desktop,
body.view-simple #landing,
body.view-simple .mobile,
body:has(.simple.active) #boot,
body:has(.simple.active) #desktop,
body:has(.simple.active) #landing,
body:has(.simple.active) .mobile {
  display: none !important;
}

/* Aurora + Grid layers (reuse mobile styles) */
.simple::before {
  content: '';
  position: fixed; inset: -20% -10% -10% -10%;
  z-index: -2; pointer-events: none;
  background:
    radial-gradient(45% 35% at 15% 10%, color-mix(in oklab, var(--blue) 55%, transparent), transparent 70%),
    radial-gradient(40% 30% at 90% 20%, color-mix(in oklab, var(--mauve) 45%, transparent), transparent 70%),
    radial-gradient(50% 35% at 80% 95%, color-mix(in oklab, var(--pink) 40%, transparent), transparent 70%),
    radial-gradient(45% 40% at 10% 85%, color-mix(in oklab, var(--teal) 42%, transparent), transparent 70%);
  filter: blur(60px) saturate(120%);
  animation: sAurora 18s ease-in-out infinite alternate;
}
.simple::after {
  content: '';
  position: fixed; inset: 0;
  z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in oklab, var(--text) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--text) 5%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  opacity: .5;
}
@keyframes sAurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.05); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.08); }
}

.s-hero {
  max-width: 720px; margin: 0 auto 40px;
  text-align: center; padding-bottom: 32px;
  border-bottom: 1px solid color-mix(in oklab, var(--surface1) 40%, transparent);
}

.s-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: color-mix(in oklab, var(--surface0) 55%, transparent);
  border: 1px solid color-mix(in oklab, var(--blue) 30%, transparent);
  backdrop-filter: blur(14px);
  font-family: var(--mono); font-size: 12px; color: var(--subtext1);
  margin-bottom: 20px;
}
.s-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: mPulse 1.8s ease-in-out infinite; }
.s-status { color: var(--green); font-weight: 600; }

.s-name {
  font-family: 'Space Grotesk', var(--sans);
  font-size: clamp(48px, 9vw, 72px);
  font-weight: 700; letter-spacing: -0.03em;
  margin: 6px 0 10px;
  background: linear-gradient(135deg, var(--text), var(--blue), var(--mauve));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.s-role {
  font-family: var(--mono); color: var(--blue);
  font-size: 15px; margin: 0 0 16px;
}
.s-role::before { content: '> '; color: var(--overlay1); }

.s-tag {
  color: var(--subtext0); font-size: 17px;
  line-height: 1.6; margin: 0 0 28px; max-width: 52ch;
  margin-left: auto; margin-right: auto;
}

.s-cta {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 24px;
}

.s-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 22px; border-radius: 12px;
  background: color-mix(in oklab, var(--surface0) 65%, transparent);
  border: 1px solid color-mix(in oklab, var(--surface1) 70%, transparent);
  backdrop-filter: blur(10px);
  color: var(--text); font-weight: 600; font-size: 14px;
  text-decoration: none; transition: transform 0.15s, box-shadow 0.25s, border-color 0.2s;
}
.s-btn:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--blue) 40%, transparent);
}
.s-btn:active { transform: scale(0.97); }

.s-btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--mauve));
  color: var(--base); border-color: transparent;
  box-shadow: 0 12px 32px -10px color-mix(in oklab, var(--blue) 70%, transparent);
}

.s-socials {
  display: flex; gap: 14px; justify-content: center;
  font-family: var(--mono); font-size: 13px;
}
.s-socials a {
  color: var(--subtext1); text-decoration: none;
  padding: 6px 12px; border-radius: 8px;
  background: color-mix(in oklab, var(--surface0) 40%, transparent);
  border: 1px solid color-mix(in oklab, var(--surface1) 40%, transparent);
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}
.s-socials a:hover {
  color: var(--blue);
  border-color: color-mix(in oklab, var(--blue) 50%, transparent);
  transform: translateY(-1px);
}

.s-switch-btn {
  margin-top: 24px; font-family: var(--mono); font-size: 12px;
  color: var(--overlay1); padding: 8px 16px;
  border-radius: 8px; border: 1px dashed var(--surface1);
  background: transparent;
  transition: color 0.2s, border-color 0.2s;
}
.s-switch-btn:hover {
  color: var(--blue); border-color: var(--blue);
}

.s-section {
  max-width: 720px; margin: 0 auto 36px;
  padding: 28px 0;
  border-top: 1px solid color-mix(in oklab, var(--surface1) 35%, transparent);
}
.s-section h2 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--overlay1); margin: 0 0 18px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.s-section h2::before {
  content: ''; width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.s-section p { color: var(--subtext0); line-height: 1.65; margin: 0 0 14px; font-size: 15.5px; }

.s-stack {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start;
}
.s-stack li {
  font-family: var(--mono); font-size: 12px; color: var(--subtext0);
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in oklab, var(--surface0) 55%, transparent);
  border: 1px solid color-mix(in oklab, var(--surface1) 55%, transparent);
  backdrop-filter: blur(8px);
  transition: transform 0.15s, color 0.2s, border-color 0.2s;
}
.s-stack li:hover {
  color: var(--blue); border-color: color-mix(in oklab, var(--blue) 45%, transparent);
  transform: translateY(-2px);
}

.s-card {
  display: block; padding: 22px; margin-bottom: 16px;
  background: color-mix(in oklab, var(--surface0) 55%, transparent);
  border: 1px solid color-mix(in oklab, var(--surface1) 55%, transparent);
  backdrop-filter: blur(14px);
  border-radius: 16px; text-decoration: none; color: inherit;
  transition: transform 0.18s, border-color 0.2s, box-shadow 0.25s;
}
.s-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -10px color-mix(in oklab, var(--blue) 40%, transparent);
}
.s-card-tag {
  font-family: var(--mono); font-size: 11px; color: var(--mauve);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.s-card h3 {
  font-size: 18px; font-weight: 700; margin: 0 0 8px;
  color: var(--text);
}
.s-card p {
  color: var(--subtext0); font-size: 14px;
  line-height: 1.6; margin: 0 0 12px;
}
.s-card-tech {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.s-card-tech span {
  font-family: var(--mono); font-size: 11px;
  padding: 3px 8px; border-radius: 6px;
  background: color-mix(in oklab, var(--surface1) 50%, transparent);
  color: var(--subtext1);
}

.s-btn-block { display: flex; width: 100%; padding: 16px; margin-top: 12px; font-family: var(--mono); }

.s-socials-row {
  display: flex; gap: 14px; justify-content: flex-start;
  margin-top: 20px; font-family: var(--mono); font-size: 13px;
}
.s-socials-row a {
  color: var(--subtext1); text-decoration: none;
  padding: 6px 12px; border-radius: 8px;
  background: color-mix(in oklab, var(--surface0) 40%, transparent);
  border: 1px solid color-mix(in oklab, var(--surface1) 40%, transparent);
  transition: color 0.2s, border-color 0.2s;
}
.s-socials-row a:hover { color: var(--blue); border-color: color-mix(in oklab, var(--blue) 50%, transparent); }

.s-foot {
  max-width: 720px; margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklab, var(--surface1) 30%, transparent);
  text-align: center; font-size: 13px; color: var(--overlay1);
}

/* Mobile view — hidden on desktop by default */
.mobile { display: none; }

@media (max-width: 900px) {
  .hyprwidget { display: none; }
  .desk-icons { grid-template-columns: repeat(3, 80px); }
  .files-app { grid-template-columns: 1fr; }
  .files-side { display: none; }
  .pg-root { grid-template-columns: 1fr; }
  .pg-side { display: none; }
}
@media (max-width: 640px) {
  .waybar { font-size: 11px; }
  .wb-right .wb-mod:not(.wb-user) { display: none; }
  .dock-btn { width: 38px; height: 38px; font-size: 19px; }
}

/* Below 768px: swap the OS for the mobile portfolio view */
@media (max-width: 768px) {
  html:has(body:not(.force-desktop)),
  body:not(.force-desktop) {
    height: auto !important;
    min-height: 100%;
    overflow: auto !important;
    overflow-x: hidden !important;
  }

  body:not(.force-desktop) #boot,
  body:not(.force-desktop) #desktop,
  body:not(.force-desktop) #skipPill,
  body:not(.force-desktop) #cheatsheet,
  body:not(.force-desktop) #confetti,
  body:not(.force-desktop) #spotlight { display: none !important; }

  body:not(.force-desktop) .mobile { display: block; }
}

/* ---- Mobile view styles ---- */
.mobile {
  position: relative;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  padding: 32px 22px 44px;
  -webkit-tap-highlight-color: transparent;
  background: var(--base);
  overflow: hidden;
  isolation: isolate;
}
/* Aurora layer */
.mobile::before {
  content: '';
  position: fixed; inset: -20% -10% -10% -10%;
  z-index: -2; pointer-events: none;
  background:
    radial-gradient(45% 35% at 15% 10%, color-mix(in oklab, var(--blue) 55%, transparent), transparent 70%),
    radial-gradient(40% 30% at 90% 20%, color-mix(in oklab, var(--mauve) 45%, transparent), transparent 70%),
    radial-gradient(50% 35% at 80% 95%, color-mix(in oklab, var(--pink) 40%, transparent), transparent 70%),
    radial-gradient(45% 40% at 10% 85%, color-mix(in oklab, var(--teal) 42%, transparent), transparent 70%);
  filter: blur(60px) saturate(120%);
  animation: mAurora 18s ease-in-out infinite alternate;
}
/* Grid layer */
.mobile::after {
  content: '';
  position: fixed; inset: 0;
  z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in oklab, var(--text) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--text) 5%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  opacity: .5;
}
@keyframes mAurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.05); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.08); }
}

.m-hero { padding: 6px 0 30px; margin-bottom: 22px; position: relative; }
.m-hero::after {
  content: ''; display: block; margin-top: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--blue) 60%, transparent), transparent);
}
.m-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: color-mix(in oklab, var(--surface0) 55%, transparent);
  border: 1px solid color-mix(in oklab, var(--blue) 30%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px -8px color-mix(in oklab, var(--blue) 40%, transparent);
  font-family: var(--mono); font-size: 12px; color: var(--subtext1);
  margin-bottom: 26px;
  animation: mFadeUp .7s .05s both;
}
.m-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: mPulse 1.8s ease-in-out infinite; }
@keyframes mPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: .6; } }
.m-status { color: var(--green); font-weight: 600; }

.m-name {
  font-family: 'Space Grotesk', var(--sans);
  font-size: clamp(44px, 13vw, 64px);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.035em;
  margin: 6px 0 10px;
  background: linear-gradient(135deg,
    var(--text) 0%,
    color-mix(in oklab, var(--blue) 90%, var(--text)) 45%,
    var(--mauve) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: mFadeUp .8s .1s both;
}
.m-role {
  font-family: var(--mono); color: var(--blue); font-size: 14px; margin: 0 0 18px;
  animation: mFadeUp .8s .2s both;
}
.m-role::before { content: '> '; color: var(--overlay1); }
.m-tag {
  color: var(--subtext0); font-size: 16.5px; line-height: 1.6; margin: 0 0 26px; max-width: 42ch;
  animation: mFadeUp .8s .3s both;
}

.m-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; animation: mFadeUp .8s .4s both; }
.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 20px; border-radius: 12px;
  background: color-mix(in oklab, var(--surface0) 65%, transparent);
  border: 1px solid color-mix(in oklab, var(--surface1) 70%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text); font-weight: 600; font-size: 14px;
  text-decoration: none; transition: transform .15s ease, box-shadow .25s ease, border-color .2s;
  position: relative; overflow: hidden;
}
.m-btn:active { transform: scale(.96); }
.m-btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--mauve));
  color: var(--base); border-color: transparent;
  box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--blue) 80%, transparent),
              inset 0 1px 0 color-mix(in oklab, #fff 30%, transparent);
}
.m-btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: mShine 3.5s ease-in-out 1.2s infinite;
}
@keyframes mShine { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(200%); } }
.m-btn-ghost { background: transparent; border-style: dashed; }
.m-btn-block { display: flex; width: 100%; padding: 15px; margin-top: 14px; font-family: var(--mono); }

.m-socials { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; animation: mFadeUp .8s .5s both; }
.m-socials a {
  color: var(--subtext1); text-decoration: none;
  padding: 6px 10px; border-radius: 8px;
  background: color-mix(in oklab, var(--surface0) 40%, transparent);
  border: 1px solid color-mix(in oklab, var(--surface1) 40%, transparent);
  transition: color .2s, border-color .2s, transform .15s;
}
.m-socials a:active { transform: translateY(1px); }
.m-socials a:hover { color: var(--blue); border-color: color-mix(in oklab, var(--blue) 50%, transparent); }

.m-section { padding: 26px 0; border-top: 1px solid color-mix(in oklab, var(--surface1) 35%, transparent); }
.m-section:first-of-type { border-top: 0; }
.m-section h2 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--overlay1); margin: 0 0 16px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.m-section h2::before {
  content: ''; width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.m-section p { color: var(--subtext0); line-height: 1.65; margin: 0 0 14px; font-size: 15.5px; }

.m-stack { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.m-stack li {
  font-family: var(--mono); font-size: 12px; color: var(--subtext0);
  padding: 5px 11px; border-radius: 999px;
  background: color-mix(in oklab, var(--surface0) 55%, transparent);
  border: 1px solid color-mix(in oklab, var(--surface1) 55%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .15s, color .2s, border-color .2s;
}
.m-stack li:hover { color: var(--blue); border-color: color-mix(in oklab, var(--blue) 45%, transparent); transform: translateY(-2px); }

.m-card {
  position: relative; display: block; padding: 20px; margin-bottom: 14px;
  background: color-mix(in oklab, var(--surface0) 55%, transparent);
  border: 1px solid color-mix(in oklab, var(--surface1) 55%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 16px; text-decoration: none; color: inherit;
  transition: transform .18s ease, border-color .2s, box-shadow .25s;
  overflow: hidden;
}
.m-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 0% 0%, color-mix(in oklab, var(--blue) 18%, transparent), transparent 60%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.m-card:active { transform: scale(.98); }
.m-card:hover {
  border-color: color-mix(in oklab, var(--blue) 55%, transparent);
  box-shadow: 0 20px 50px -20px color-mix(in oklab, var(--blue) 55%, transparent);
}
.m-card:hover::before { opacity: 1; }
.m-card-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 10px;
  padding: 3px 9px; border-radius: 999px;
  background: color-mix(in oklab, var(--blue) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--blue) 25%, transparent);
}
.m-card h3 {
  margin: 0 0 6px; font-size: 18px; font-weight: 600; color: var(--text);
  font-family: 'Space Grotesk', var(--sans); letter-spacing: -0.01em;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.m-card h3::after {
  content: '↗'; color: var(--overlay1); font-weight: 400; font-size: 16px;
  transition: transform .2s, color .2s;
}
.m-card:hover h3::after { color: var(--blue); transform: translate(2px, -2px); }
.m-card p { margin: 0; font-size: 14px; color: var(--subtext1); line-height: 1.55; }

.m-desktop-cta {
  margin-top: 34px; padding: 24px; text-align: center;
  border: 1px dashed color-mix(in oklab, var(--blue) 40%, transparent);
  border-radius: 16px;
  background:
    radial-gradient(300px 120px at 50% 0%, color-mix(in oklab, var(--blue) 15%, transparent), transparent 70%),
    color-mix(in oklab, var(--surface0) 40%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.m-desktop-cta p { margin: 0 0 12px; font-family: var(--mono); font-size: 13px; color: var(--subtext0); }
.m-desktop-cta small { display: block; margin-top: 10px; color: var(--overlay1); font-size: 11px; }

.m-foot { margin-top: 32px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--overlay0); }

@keyframes mFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.m-section { animation: mFadeUp .7s both; }
.m-section:nth-of-type(1) { animation-delay: .55s; }
.m-section:nth-of-type(2) { animation-delay: .65s; }
.m-section:nth-of-type(3) { animation-delay: .75s; }

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

/* ============ Teach your camera (vision) ============ */
.pg-vision .pg-vc-stage { background: #050508; position: relative; overflow: hidden; }
.pg-vision video[data-video] { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); background: #000; }
.pg-vc-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; padding: 14px; }
.pg-vc-top { align-self: flex-start; background: rgba(17,17,27,0.72); backdrop-filter: blur(8px); color: #f5e0dc; padding: 8px 14px; border-radius: 999px; font: 600 13px/1 'Inter', sans-serif; border: 1px solid rgba(205,214,244,0.15); }
.pg-vc-bars { display: flex; flex-direction: column; gap: 6px; background: rgba(17,17,27,0.72); backdrop-filter: blur(8px); padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(205,214,244,0.12); }
.pg-vc-bar { display: grid; grid-template-columns: 90px 1fr 44px; align-items: center; gap: 10px; }
.pg-vc-blabel { color: #cdd6f4; font: 500 12px/1 'Inter'; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-vc-btrack { height: 8px; background: rgba(205,214,244,0.08); border-radius: 4px; overflow: hidden; }
.pg-vc-bfill { height: 100%; background: var(--cc, #89b4fa); border-radius: 4px; transition: width 120ms ease-out; }
.pg-vc-bpct { color: #a6adc8; font: 600 12px 'JetBrains Mono', monospace; text-align: right; }
.pg-vc-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.pg-vc-row { display: grid; grid-template-columns: 12px 1fr auto auto auto; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: rgba(205,214,244,0.03); border: 1px solid rgba(205,214,244,0.06); }
.pg-vc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cc, #89b4fa); box-shadow: 0 0 8px var(--cc, #89b4fa); }
.pg-vc-name { background: transparent; border: none; color: #cdd6f4; font: 600 13px 'Inter'; outline: none; padding: 2px 4px; border-radius: 4px; min-width: 0; }
.pg-vc-name:focus { background: rgba(205,214,244,0.06); }
.pg-vc-count { color: #a6adc8; font: 600 12px 'JetBrains Mono'; min-width: 22px; text-align: right; }
.pg-btn.tiny { padding: 5px 10px; font-size: 11px; }
.pg-btn.tiny.active { background: var(--cc, #f38ba8); color: #11111b; transform: scale(0.96); }

/* ============ WORKSPACES ============ */
.wb-launcher, #wb-launcher { background: none; border: none; padding: 0 6px; cursor: pointer; border-radius: 6px; color: var(--blue); }
#wb-launcher:hover { background: color-mix(in oklab, var(--mauve) 22%, transparent); }
.wb-workspaces { margin-left: 4px; }
.ws {
  min-width: 22px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
  font: 600 11px var(--mono); color: var(--overlay1);
  background: transparent; border: 1px solid transparent; border-radius: 6px;
  cursor: pointer; transition: all .15s ease;
}
.ws:hover { color: var(--mauve); background: color-mix(in oklab, var(--mauve) 15%, transparent); }
.ws.active { color: var(--base); background: var(--mauve); box-shadow: 0 0 10px color-mix(in oklab, var(--mauve) 55%, transparent); }
.ws.has-window::after { content: '·'; margin-left: 3px; color: var(--peach); }
.wb-clock { background: none; border: none; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.wb-clock:hover { background: color-mix(in oklab, var(--mauve) 15%, transparent); }

/* ============ WORKSPACE VISIBILITY ============ */
.win[data-ws]:not(.on-ws) { display: none !important; }

/* ============ SNAP PREVIEW ============ */
.snap-preview {
  position: fixed; pointer-events: none; z-index: 9998;
  background: color-mix(in oklab, var(--mauve) 25%, transparent);
  border: 2px solid var(--mauve);
  border-radius: 12px; opacity: 0; transition: all .15s ease;
  box-shadow: 0 0 40px color-mix(in oklab, var(--mauve) 40%, transparent);
}
.snap-preview.show { opacity: 1; }

/* ============ NOTIFICATIONS ============ */
.notifications {
  position: fixed; top: 46px; right: 14px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
  width: 320px;
}
.notif {
  pointer-events: auto;
  background: color-mix(in oklab, var(--base) 85%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid color-mix(in oklab, var(--mauve) 35%, transparent);
  border-left: 3px solid var(--mauve);
  border-radius: 10px; padding: 10px 12px; font: 500 12px 'Inter';
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  animation: notifIn .25s ease;
}
.notif .n-title { font-weight: 700; color: var(--mauve); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.notif .n-body { color: var(--subtext0); line-height: 1.4; }
.notif.closing { animation: notifOut .2s ease forwards; }
@keyframes notifIn { from { transform: translateX(30px); opacity: 0; } }
@keyframes notifOut { to { transform: translateX(30px); opacity: 0; } }

/* ============ CALENDAR POPUP ============ */
.calpop {
  position: fixed; top: 44px; left: 50%; transform: translateX(-50%) translateY(-8px);
  z-index: 9997; width: 260px; opacity: 0; pointer-events: none;
  background: color-mix(in oklab, var(--base) 88%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid color-mix(in oklab, var(--mauve) 30%, transparent);
  border-radius: 12px; padding: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,.5);
  transition: opacity .18s ease, transform .18s ease;
  font-family: 'Inter';
}
.calpop.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-month { font: 600 13px 'Inter'; color: var(--mauve); }
.cal-nav { background: none; border: none; color: var(--overlay1); cursor: pointer; padding: 2px 6px; border-radius: 4px; font: 700 14px 'JetBrains Mono'; }
.cal-nav:hover { background: color-mix(in oklab, var(--mauve) 20%, transparent); color: var(--mauve); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font: 500 11px 'JetBrains Mono'; }
.cal-dow { color: var(--overlay1); text-align: center; padding: 4px 0; font-size: 10px; }
.cal-day { text-align: center; padding: 5px 0; border-radius: 5px; color: var(--subtext0); cursor: default; }
.cal-day.today { background: var(--mauve); color: var(--base); font-weight: 700; }
.cal-day.dim { opacity: 0.3; }
.cal-time { text-align: center; font: 600 22px 'JetBrains Mono'; color: var(--text); margin-bottom: 6px; }
.cal-date { text-align: center; font-size: 11px; color: var(--overlay1); margin-bottom: 10px; }

/* ============ LAUNCHER ============ */
.launcher {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 110px;
  background: color-mix(in oklab, #000 55%, transparent);
  backdrop-filter: blur(6px);
}
.launcher.show { display: flex; animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.launcher-box {
  width: 520px; max-width: 90vw;
  background: color-mix(in oklab, var(--base) 92%, transparent);
  border: 1px solid color-mix(in oklab, var(--mauve) 40%, transparent);
  border-radius: 14px; padding: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.launcher-input {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--text); font: 500 18px 'Inter';
  padding: 8px 10px; border-bottom: 1px solid color-mix(in oklab, var(--mauve) 25%, transparent);
  caret-color: var(--mauve);
}
.launcher-list { list-style: none; padding: 0; margin: 10px 0 6px; max-height: 320px; overflow-y: auto; }
.launcher-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  color: var(--subtext0);
}
.launcher-item .li-ico { font-size: 20px; width: 26px; text-align: center; }
.launcher-item .li-t { font: 600 13px 'Inter'; color: var(--text); }
.launcher-item .li-s { font: 400 11px 'JetBrains Mono'; color: var(--overlay1); }
.launcher-item.sel { background: color-mix(in oklab, var(--mauve) 26%, transparent); }
.launcher-item.sel .li-t { color: var(--mauve); }
.launcher-hint { text-align: right; font: 500 10px 'JetBrains Mono'; color: var(--overlay1); padding: 4px 6px 0; }
.launcher-hint kbd { background: color-mix(in oklab, var(--mauve) 18%, transparent); border-radius: 4px; padding: 1px 5px; }

/* ============ TEXT EDITOR ============ */
.editor-app { display: flex; flex-direction: column; height: 100%; }
.editor-toolbar {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: color-mix(in oklab, var(--surface0) 40%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--mauve) 15%, transparent);
  font: 500 12px 'JetBrains Mono';
}
.editor-toolbar .ed-path { color: var(--overlay1); flex: 1; }
.editor-toolbar .ed-path b { color: var(--mauve); }
.editor-toolbar .ed-dirty { color: var(--peach); }
.editor-btn {
  background: color-mix(in oklab, var(--mauve) 18%, transparent);
  border: 1px solid color-mix(in oklab, var(--mauve) 30%, transparent);
  color: var(--mauve); font: 600 11px 'JetBrains Mono';
  padding: 4px 10px; border-radius: 5px; cursor: pointer;
}
.editor-btn:hover { background: var(--mauve); color: var(--base); }
.editor-area {
  flex: 1; width: 100%; box-sizing: border-box;
  background: color-mix(in oklab, var(--base) 60%, transparent);
  color: var(--text); border: none; outline: none;
  font: 400 13px 'JetBrains Mono'; padding: 14px 16px;
  resize: none; line-height: 1.6;
  caret-color: var(--mauve);
}

/* ============ HTOP ============ */
.htop-app { padding: 14px; height: 100%; overflow-y: auto; font-family: 'JetBrains Mono'; }
.htop-bars { display: grid; gap: 8px; margin-bottom: 14px; }
.htop-row { display: grid; grid-template-columns: 46px 1fr 60px; gap: 8px; align-items: center; font-size: 11px; }
.htop-row .lbl { color: var(--mauve); font-weight: 700; }
.htop-bar { height: 10px; background: color-mix(in oklab, var(--surface0) 60%, transparent); border-radius: 3px; overflow: hidden; position: relative; }
.htop-bar .fill { height: 100%; transition: width .5s ease; background: linear-gradient(90deg, var(--green), var(--yellow), var(--peach), var(--red)); }
.htop-row.mem .fill { background: linear-gradient(90deg, var(--blue), var(--mauve)); }
.htop-row .val { text-align: right; color: var(--subtext0); font-size: 11px; }
.htop-table { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: 8px; }
.htop-table th { text-align: left; padding: 6px 8px; background: color-mix(in oklab, var(--mauve) 20%, transparent); color: var(--mauve); font-weight: 700; }
.htop-table td { padding: 5px 8px; border-bottom: 1px solid color-mix(in oklab, var(--surface0) 30%, transparent); color: var(--subtext0); }
.htop-table tr:hover td { background: color-mix(in oklab, var(--mauve) 8%, transparent); }
.htop-table .p { color: var(--peach); font-weight: 700; }

/* ===================== POLISH & WOW ===================== */

/* Cursor spotlight — disabled */
.spotlight { display: none !important; }

/* Wallpaper parallax — desktop bg shifts subtly */
.desktop { background-position: var(--px, 50%) var(--py, 50%) !important; transition: background-position .12s linear; }

/* Desktop icon lift */
.dicon { transform: translateY(0); }
.dicon:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 30px -12px color-mix(in oklab, var(--mauve) 60%, transparent); }
.dicon:active { transform: scale(0.96); }

/* Waybar tap feedback */
.wb-logo, .ws, .wb-clock, .wb-mod { transition: transform .12s ease, background .15s ease, color .15s ease; }
.wb-logo:active, .ws:active, .wb-clock:active { transform: scale(0.9); }
.wb-mod:hover { background: color-mix(in oklab, var(--mauve) 20%, transparent); color: var(--text); }

/* Window focus glow / unfocused dim */
.win { transition: box-shadow .25s ease, opacity .2s ease, filter .2s ease; }
.win:not(.focus) { opacity: .82; filter: saturate(.85); }
.win.focus { box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 1px color-mix(in oklab, var(--mauve) 40%, transparent), 0 0 40px -10px color-mix(in oklab, var(--mauve) 45%, transparent); }

/* Window shake */
@keyframes winShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); } 40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); } 80% { transform: translateX(4px); }
}
.win.shake { animation: winShake .4s ease; }

/* Skip-to-résumé pill (recruiter-friendly) */
.skip-pill {
  position: fixed; top: 52px; right: 14px; z-index: 150;
  display: none; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 999px;
  background: color-mix(in oklab, var(--base) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid color-mix(in oklab, var(--mauve) 40%, transparent);
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.55), 0 0 30px -10px color-mix(in oklab, var(--mauve) 55%, transparent);
  animation: skipIn .5s cubic-bezier(.2,.9,.3,1.2);
  font-family: var(--sans);
}
.skip-pill.show { display: inline-flex; }
@keyframes skipIn { from { transform: translateY(-14px) scale(.9); opacity: 0; } }
.skip-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  color: var(--text); font-size: 12.5px; font-weight: 500;
  background: transparent; border: 0; cursor: pointer;
  transition: all .15s ease;
}
.skip-btn:hover { background: color-mix(in oklab, var(--mauve) 25%, transparent); color: var(--text); transform: translateY(-1px); }
.skip-tour { background: color-mix(in oklab, var(--mauve) 22%, transparent); color: var(--mauve); }
.skip-tour:hover { background: color-mix(in oklab, var(--mauve) 40%, transparent); color: var(--base); }
.skip-emoji { font-size: 14px; }
.skip-close { width: 22px; height: 22px; border-radius: 50%; background: transparent; border: 0; color: var(--overlay1); cursor: pointer; font-size: 16px; margin-left: 2px; }
.skip-close:hover { background: color-mix(in oklab, var(--red) 25%, transparent); color: var(--red); }

/* Cheatsheet overlay */
.cheatsheet {
  position: fixed; inset: 0; z-index: 500;
  display: none; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--base) 70%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: fadeIn .2s ease;
}
.cheatsheet.show { display: flex; }
.cs-box {
  width: min(880px, 92vw); max-height: 82vh; overflow: auto;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--surface0) 92%, transparent),
    color-mix(in oklab, var(--base) 92%, transparent));
  border: 1px solid color-mix(in oklab, var(--mauve) 40%, transparent);
  border-radius: 16px; padding: 24px 28px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.7), 0 0 60px -20px color-mix(in oklab, var(--mauve) 50%, transparent);
  animation: csIn .3s cubic-bezier(.2,.9,.3,1.2);
  font-family: var(--sans);
}
@keyframes csIn { from { transform: scale(.92) translateY(20px); opacity: 0; } }
.cs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cs-head h2 { color: var(--mauve); font-size: 20px; margin: 0; font-family: var(--mono); }
.cs-close { width: 32px; height: 32px; border-radius: 50%; background: transparent; border: 0; color: var(--overlay1); cursor: pointer; font-size: 22px; transition: all .15s; }
.cs-close:hover { background: color-mix(in oklab, var(--red) 25%, transparent); color: var(--red); }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.cs-col h3 { color: var(--peach); font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; margin: 0 0 10px; font-family: var(--mono); }
.cs-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; color: var(--subtext0); }
.cs-row kbd, .cs-row code { font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 5px; background: color-mix(in oklab, var(--surface0) 80%, transparent); border: 1px solid color-mix(in oklab, var(--mauve) 25%, transparent); color: var(--mauve); }
.cs-row code { color: var(--green); }
.cs-row span { color: var(--subtext1); }
.cs-foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid color-mix(in oklab, var(--surface0) 60%, transparent); text-align: center; color: var(--overlay1); font-size: 11px; font-family: var(--mono); }

/* Confetti canvas */
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 999; }

/* Welcome window content */
.welcome-body { padding: 26px 28px; font-family: var(--sans); color: var(--text); line-height: 1.6; }
.welcome-body h1 { font-family: var(--mono); color: var(--mauve); font-size: 22px; margin: 0 0 4px; }
.welcome-body .wel-sub { color: var(--subtext0); font-size: 13px; margin-bottom: 18px; }
.welcome-body p { color: var(--subtext1); font-size: 13.5px; margin: 8px 0; }
.welcome-body kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 4px; background: color-mix(in oklab, var(--surface0) 80%, transparent); color: var(--mauve); border: 1px solid color-mix(in oklab, var(--mauve) 25%, transparent); }
.welcome-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.welcome-cta button {
  padding: 8px 14px; border-radius: 8px; border: 1px solid color-mix(in oklab, var(--mauve) 35%, transparent);
  background: color-mix(in oklab, var(--mauve) 18%, transparent); color: var(--text);
  font-family: var(--sans); font-size: 12.5px; cursor: pointer; transition: all .15s;
}
.welcome-cta button:hover { background: var(--mauve); color: var(--base); transform: translateY(-1px); box-shadow: 0 8px 20px -8px color-mix(in oklab, var(--mauve) 60%, transparent); }
.welcome-cta button.wc-ghost { background: transparent; }

/* Matrix rain full-screen overlay (terminal command triggers optional) */
.matrix-overlay { position: fixed; inset: 0; z-index: 400; background: #000; }

/* ---------- Real sklearn playground ---------- */
.pg-sk-main { padding: 14px; overflow: auto; }
.pg-sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; height: 100%; min-height: 520px; }
.pg-sk-card { background: #181825; border: 1px solid #313244; border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; }
.pg-sk-card > header { padding: 8px 12px; background: #1e1e2e; border-bottom: 1px solid #313244; font: 600 12px/1 'JetBrains Mono', monospace; color: #cba6f7; letter-spacing: .04em; }
.pg-sk-code pre { margin: 0; padding: 14px; overflow: auto; flex: 1; font: 12.5px/1.55 'JetBrains Mono', monospace; color: #cdd6f4; }
.pg-sk-code code { color: #cdd6f4; }
.pg-sk-out { padding: 14px; gap: 12px; }
.pg-sk-empty { color: #6c7086; font-size: 13px; padding: 20px; text-align: center; }
.pg-sk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pg-sk-stat { background: #1e1e2e; border: 1px solid #313244; border-radius: 8px; padding: 10px; text-align: center; }
.pg-sk-stat b { display: block; font: 700 18px/1.2 'Space Grotesk', sans-serif; color: #89b4fa; }
.pg-sk-stat span { font-size: 10.5px; color: #a6adc8; text-transform: uppercase; letter-spacing: .06em; }
.pg-sk-coefs { margin-top: 4px; }
.pg-sk-bar { display: grid; grid-template-columns: 100px 1fr 56px; gap: 8px; align-items: center; margin: 4px 0; font: 11.5px 'JetBrains Mono', monospace; }
.pg-sk-feat { color: #a6adc8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-sk-track { background: #313244; height: 8px; border-radius: 4px; overflow: hidden; }
.pg-sk-fill { display: block; height: 100%; border-radius: 4px; }
.pg-sk-fill.pos { background: linear-gradient(90deg, #89b4fa, #a6e3a1); }
.pg-sk-fill.neg { background: linear-gradient(90deg, #f38ba8, #eba0ac); }
.pg-sk-w { text-align: right; color: #cdd6f4; font-weight: 600; }
.pg-sk-out canvas { width: 100%; height: auto; background: #181825; border: 1px solid #313244; border-radius: 8px; margin-top: 6px; }
@media (max-width: 1000px) { .pg-sk-grid { grid-template-columns: 1fr; } }

/* ================== SETTINGS APP ================== */
.set-wrap { display:grid; grid-template-columns: 180px 1fr; height:100%; font-family:'Inter'; color:var(--text); }
.set-nav { border-right:1px solid rgba(255,255,255,.06); padding:14px 8px; display:flex; flex-direction:column; gap:4px; background:rgba(0,0,0,.15); }
.set-tab { background:transparent; border:0; color:var(--subtext0); text-align:left; padding:9px 12px; border-radius:8px; font: 500 13px 'Inter'; cursor:pointer; }
.set-tab:hover { background:rgba(255,255,255,.04); color:var(--text); }
.set-tab.active { background:rgba(203,166,247,.14); color:var(--mauve); }
.set-body { padding:18px 22px; overflow:auto; }
.set-pane h2 { color:var(--mauve); font: 700 18px 'Space Grotesk'; margin: 2px 0 14px; }
.set-row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.05); }
.set-lbl { font: 500 13px 'Inter'; color:var(--text); }
.set-hint { font: 400 11px 'Inter'; color:var(--overlay1); margin-top:2px; }
.set-swatches { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; max-width:260px; }
.set-swatches .sw { width:28px; height:28px; border-radius:50%; border:2px solid rgba(255,255,255,.15); cursor:pointer; padding:0; }
.set-toggle { width:38px; height:22px; border-radius:12px; background:rgba(255,255,255,.1); border:0; position:relative; cursor:pointer; transition: background .18s; }
.set-toggle .knob { position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#e6e6f0; transition: transform .18s; }
.set-toggle.on { background: var(--mauve); }
.set-toggle.on .knob { transform: translateX(16px); }
.set-btn { background: var(--mauve); color:#1e1e2e; border:0; padding:7px 14px; border-radius:8px; font: 600 12px 'Inter'; cursor:pointer; }
.set-btn:hover { filter: brightness(1.08); }
.set-kbd { width:100%; border-collapse:collapse; font: 400 12px 'JetBrains Mono'; }
.set-kbd td { padding:7px 0; border-bottom:1px dashed rgba(255,255,255,.05); }
.set-kbd td:first-child { color:var(--peach); width:220px; }
.set-kbd td:last-child { color:var(--subtext0); }
.set-about { font: 400 13px 'Inter'; color:var(--subtext0); }
.set-about .dim { color:var(--overlay1); font-size:12px; margin-top:4px; }
.set-link { color:var(--blue); text-decoration:none; }
.set-link:hover { text-decoration:underline; }
html.no-anim *, html.no-anim *::before, html.no-anim *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
@media (max-width: 700px) { .set-wrap { grid-template-columns: 1fr; } .set-nav { flex-direction:row; overflow-x:auto; } }

/* Simple view responsive adjustments */
@media (max-width: 600px) {
  .landing-box { padding: 32px 20px; }
  .landing-title { font-size: 42px; }
  .landing-btn { padding: 14px 16px; }
  .landing-btn-icon { font-size: 24px; }
  .s-hero { padding-bottom: 24px; }
  .s-cta { flex-direction: column; }
  .s-btn { width: 100%; }
  .s-socials { flex-direction: column; gap: 10px; }
  .s-card { padding: 18px; }
  .s-card h3 { font-size: 16px; }
}
