/* il4pt.dev — dashboard UI. (Admin pages keep using base.css + components.css.) */

@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg: #010106;
  --panel: rgba(6, 6, 12, 0.6);
  --mid: rgba(14, 14, 23, 0.75);
  --dark: rgba(1, 1, 6, 0.75);
  --light: #1d1d27;
  --edge: 16px;
  --frame: var(--panel);
  --surface: var(--mid);
  --surface-2: rgba(29, 29, 39, 0.7);
  --surface-3: var(--dark);
  --text: #ededef;
  --muted: #9a9aa3;
  --faint: #63636c;
  --line: var(--dark);
  --line-2: rgba(255, 255, 255, 0.1);
  --blue: #7c9cff;
  --green: #5fd49e;
  --red: #ec7f97;
  --amber: #e8a25c;
  --violet: #a78bfa;
  --ok: #4ade80;
  --radius: 4px;
  --sans: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fade: cubic-bezier(0.39, 0.21, 0.12, 0.96);
  --side-w: 212px;
  --aside-w: 300px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font: 14.5px/1.55 var(--sans);
  scrollbar-color: var(--light) transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: #e4e4e7; color: #09090b; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 4px; background: #fff; color: #000; text-decoration: none; }
.skip:focus { top: 12px; }
.bg { position: fixed; inset: var(--edge); z-index: 0; pointer-events: none; overflow: hidden; border-radius: 4px; }
.grainient-canvas { display: block; width: 100%; height: 100%; }
.bg-fallback { background: linear-gradient(125deg, #09090b 20%, #181a22 60%, #2a2f40); }

/* the frame: everything outside the rounded window stays dark, content scrolls under its edges */
body::after {
  content: ''; position: fixed; inset: var(--edge); z-index: 60; pointer-events: none;
  border-radius: 4px; box-shadow: 0 0 0 60px var(--bg);
}

/* ── Frame: sidebar on the left, its active tab melts into the panel ─ */
.app {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100dvh;
  padding: var(--edge);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
body.ready .app { opacity: 1; }

.side {
  position: sticky; top: var(--edge); z-index: 20; align-self: start;
  display: flex; flex-direction: column; height: calc(100dvh - 2 * var(--edge)); padding: 22px 0 20px 14px;
}
.logo { display: flex; align-items: center; gap: 10px; margin: 0 14px 28px 4px; text-decoration: none; }
.logo-mark {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 4px;
  background: rgba(20, 20, 24, 0.7); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background 0.15s;
}
.logo:hover .logo-mark { background: rgba(36, 36, 42, 0.8); }
.logo-mark img { width: 18px; height: 18px; }
.logo-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.snav { position: relative; display: flex; flex-direction: column; gap: 2px; }
.tnav {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 10px;
  height: 38px; margin-right: 14px; padding: 0 12px; border-radius: 4px;
  font-size: 13px; font-weight: 500; color: #9a9aa4; text-decoration: none; white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}
.tnav svg { flex: none; opacity: 0.8; }
.tnav:hover { color: #ececf0; background: rgba(255, 255, 255, 0.07); }
.tnav.active { color: #fff; }
.tnav.active:hover { background: transparent; }
.tnav.active svg { opacity: 1; }
/* the active tab is one piece that slides between items and melts into the panel */
.nav-marker {
  position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: 38px;
  border-radius: 4px 0 0 11px; background: var(--panel);
  opacity: 0; pointer-events: none;
  transition: transform 0.52s cubic-bezier(0.32, 0.72, 0, 1), height 0.52s cubic-bezier(0.32, 0.72, 0, 1);
}
.nav-marker.ready { opacity: 1; }
.nav-marker::before, .nav-marker::after { content: ''; position: absolute; right: 0; width: 6px; height: 6px; }
.nav-marker::before { top: -6px; background: radial-gradient(circle at 0 0, transparent 5.5px, var(--panel) 6px); }
.nav-marker::after { bottom: -6px; background: radial-gradient(circle at 0 100%, transparent 5.5px, var(--panel) 6px); }
.tnav-sep { height: 1px; margin: 12px 26px 12px 12px; background: var(--line-2); }
.side-foot { margin-top: auto; padding: 0 12px; font-size: 11.5px; color: rgba(255, 255, 255, 0.4); }

.panel {
  display: flex; flex-direction: column; min-width: 0; min-height: calc(100dvh - 2 * var(--edge) - 16px);
  margin: 8px 8px 8px 0; padding: 22px 32px 28px; border-radius: 4px;
  backdrop-filter: blur(2px);
  background: var(--panel);
}
.ptop { display: flex; align-items: center; gap: 16px; min-height: 40px; margin-bottom: 22px; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 16px; letter-spacing: -0.01em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--faint); }
.crumbs b { font-weight: 600; white-space: nowrap; }
.crumb-now { display: inline-grid; overflow: hidden; }
.crumb-now > b { grid-area: 1 / 1; }
.crumb-in { animation: crumb-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.crumb-out { animation: crumb-out 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes crumb-in { from { opacity: 0; transform: translateY(70%); } }
@keyframes crumb-out { to { opacity: 0; transform: translateY(-70%); } }
.top-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.stage { position: relative; flex: 1; display: flex; flex-direction: column; overflow-x: visible; overflow-y: clip; }
.route { flex: 1; display: flex; flex-direction: column; outline: 0; }
.route.ghost { position: absolute; left: 0; right: 0; min-height: 100%; pointer-events: none; }

/* "keep scrolling" hints at the bottom of every page */
.edge-hints { display: flex; justify-content: flex-end; flex-direction: row-reverse; gap: 28px; align-items: flex-end; gap: 16px; margin-top: auto; padding-top: 56px; }
.edge-hint { position: relative; display: inline-flex; align-items: center; gap: 6px; padding-bottom: 6px; font-size: 12.5px; color: var(--faint); text-decoration: none; transition: color 0.2s; }
.edge-hint:hover, .edge-hint.charging { color: var(--text); }
.edge-hint b { font-weight: 500; color: var(--muted); }
.edge-hint.up svg { transform: rotate(-90deg); }
.edge-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-2); overflow: hidden; }
.edge-bar b { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 0.12s linear; }

.search {
  position: relative; display: flex; align-items: center; gap: 8px;
  width: 220px; height: 34px; padding: 0 10px; border-radius: 4px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--faint); transition: box-shadow 0.2s, width 0.3s var(--ease);
}
.search:focus-within { width: 270px; box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 3px rgba(124, 156, 255, 0.12); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 13px var(--sans); }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { font: 11px var(--mono); padding: 1px 6px; border-radius: 4px; background: var(--surface-3); color: var(--muted); }
.search:focus-within kbd { display: none; }
.search-pop, .bell-pop {
  position: absolute; z-index: 40; top: calc(100% + 8px); right: 0;
  padding: 6px; border-radius: 4px;
  background: rgba(22, 22, 26, 0.96); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 48px -12px rgba(0, 0, 0, 0.7);
  animation: pop 0.18s var(--ease);
}
.search-pop { left: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.hit {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 4px;
  background: none; cursor: pointer; text-align: left; font-size: 13px; color: var(--muted);
}
.hit span { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit small { font-size: 11px; color: var(--faint); }
.hit.sel, .hit:hover { background: rgba(255, 255, 255, 0.06); }
.hit-empty { padding: 10px; font-size: 12.5px; color: var(--faint); }

.bell-wrap { position: relative; }
.bell {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: color 0.15s;
}
.bell:hover, .bell[aria-expanded='true'] { color: #fff; }
.bell-dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--surface); }
.bell-pop { width: 330px; }
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 8px; font-size: 13px; }
.link-btn { border: 0; background: none; cursor: pointer; font-size: 12px; color: var(--faint); }
.link-btn:hover { color: var(--text); }
.bell-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; }
.bell-list li { display: flex; gap: 10px; padding: 9px 8px; border-radius: 4px; font-size: 12.5px; }
.bell-list li + li { border-top: 1px solid var(--line); }
.bell-list li > svg { flex: none; margin-top: 2px; color: var(--blue); }
.bell-list li[data-type='success'] > svg { color: var(--green); }
.bell-list li[data-type='error'] > svg { color: var(--red); }
.bell-list b { display: block; font-weight: 600; }
.bell-list span { display: block; color: var(--muted); }
.bell-list small { color: var(--faint); font-size: 11px; }
.bell-list .empty { color: var(--faint); justify-content: center; padding: 18px; }

.me { display: flex; align-items: center; gap: 8px; padding-left: 4px; text-decoration: none; font-size: 12.5px; color: var(--muted); }
.me:hover { color: var(--text); }
.me-avatar { position: relative; flex: none; }
.me-avatar img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.presence { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--frame); background: var(--faint); }
.presence[data-state='online'] { background: #23a55a; }
.presence[data-state='idle'] { background: #f0b232; }
.presence[data-state='dnd'] { background: #f23f43; }

/* ── Columns: page + right column (the docked projects card lives under it) ─ */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside-w); gap: 32px; align-items: start; width: 100%; max-width: 1400px; margin: 0 auto; }
.col-main { min-width: 0; }
.col-side { position: sticky; top: 24px; display: grid; gap: 18px; }
.page { outline: 0; }

/* Projects card docked in the bottom-right corner */
.pcard-dock {
  position: fixed; z-index: 15; right: calc(var(--edge) + 22px); bottom: calc(var(--edge) + 14px); width: var(--aside-w);
  animation: dock-in 0.6s var(--ease) 0.2s both;
}
@keyframes dock-in { from { opacity: 0; transform: translateY(16px); } }
.pcard-dock .pc-stage { height: 120px; }
.pcard-dock .pc-text { min-height: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-dock .pc-pause { top: 122px; }
.pcard-dock.mini .pcard { padding: 14px 16px 16px; }
.pcard-dock.mini .pc-stage, .pcard-dock.mini .pc-pause, .pcard-dock.mini .pc-text { display: none; }
.pcard-dock.mini h2 { margin-top: 8px; font-size: 16px; }
.pcard-dock.mini .pc-cta { margin-top: 10px; padding: 9px 14px; }
@media (max-height: 820px) {
  .pcard-dock .pc-stage { height: 84px; }
  .pcard-dock .pc-logo { scale: 0.8; }
  .pcard-dock .pc-pause { top: 86px; }
  .pcard-dock h2 { margin-top: 8px; font-size: 17px; }
}
@media (max-height: 700px) {
  .pcard-dock .pc-stage, .pcard-dock .pc-pause, .pcard-dock .pc-text { display: none; }
  .pcard-dock h2 { margin-top: 10px; }
}

/* ── Shared bits ───────────────────────────────────────────────────── */
.card {
  --pad: 18px;
  position: relative; padding: var(--pad); border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.2s, box-shadow 0.2s;
}
a.card:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 500 12px/1.4 var(--sans); color: var(--faint); text-transform: lowercase; }
.eyebrow > span { width: 14px; height: 1px; background: currentColor; }
.page-header { margin-bottom: 20px; }
.page-header h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.page-header p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.page-note { margin-top: 22px; color: var(--faint); font-size: 12.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  --c: 161, 161, 170;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font: 700 12px/1.3 var(--sans); white-space: nowrap;
  color: color-mix(in srgb, rgb(var(--c)) 22%, #fff);
  background: rgba(var(--c), 0.16); box-shadow: inset 0 0 0 1px rgba(var(--c), 0.55);
}
.chip .bi { color: rgb(var(--c)); flex: none; }
.chip-img { width: 12px; height: 12px; flex: none; background: rgb(var(--c)); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn, .small-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 14px; border: 0; border-radius: 4px; cursor: pointer;
  font: 500 13.5px/1.2 var(--sans); color: var(--text); text-decoration: none;
  background: var(--mid); box-shadow: inset 0 0 0 1px var(--dark);
  transition: background 0.3s, transform 0.15s;
}
.btn:hover, .small-button:hover { background: var(--dark); }
.btn:active, .small-button:active { transform: scale(0.97); }
.small-button { padding: 6px 11px; }
.icon-btn {
  display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 4px; cursor: pointer;
  color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.icon-btn:hover { color: #fff; background: var(--surface-3); }
.copied { color: var(--ok) !important; }
.reveal { opacity: 0; filter: blur(10px); transition: opacity 0.5s var(--fade) var(--d, 0s), filter 0.5s var(--fade) var(--d, 0s); }
.reveal.in { opacity: 1; filter: none; }

/* ── Home: hero ────────────────────────────────────────────────────── */
.hero { display: grid; gap: 14px; padding: 6px 0 8px; }
.hero-kicker { font-size: 13px; font-weight: 500; color: var(--faint); }
.hero h1 { margin-top: -6px; font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.hero p { max-width: 62ch; font-size: 18px; line-height: 1.55; color: #e4e4ea; opacity: 0.9; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* square buttons, glassy dark with a darker edge */
.sq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  min-width: 46px; height: 46px; padding: 0 11px; border: 0; border-radius: 4px; cursor: pointer;
  font: 500 15px/1 var(--sans); color: #fff; text-decoration: none;
  background: var(--mid); box-shadow: inset 0 0 0 1px var(--dark);
  transition: background 0.3s;
}
.sq-btn:hover { background: var(--dark); }
.sq-btn.wide { padding: 0 16px; }

/* ── Home: tabs + feed ─────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; }
.tab {
  padding: 6px 13px; border: 0; border-radius: 4px; cursor: pointer; background: none;
  font-size: 12.5px; font-weight: 500; color: var(--muted); transition: color 0.15s, box-shadow 0.15s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { color: #fff; background: var(--mid); box-shadow: inset 0 0 0 1px var(--dark); }
.tab-panel { animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.feed-item > a, .feed-item > div {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 9px 10px; margin: 0 -10px; border-radius: 4px; text-decoration: none; font-size: 13px;
  transition: background 0.15s;
}
.feed-item > a:hover { background: rgba(255, 255, 255, 0.035); }
.feed-item[data-slot] { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.feed-ico {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.08); color: #fff; overflow: hidden;
}
.feed-ico img { width: 100%; height: 100%; object-fit: cover; }
.feed-ico.blue { background: rgba(124, 156, 255, 0.2); color: var(--blue); }
.feed-ico.green { background: rgba(95, 212, 158, 0.18); color: var(--green); }
.feed-ico.amber { background: rgba(232, 162, 92, 0.2); color: var(--amber); }
.feed-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.feed-text b { font-weight: 600; }
.feed-text .dim { color: var(--muted); }
.feed-meta { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.skel { background: rgba(255, 255, 255, 0.06); }
.skel-line { height: 10px; width: 46%; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1), rgba(255,255,255,0.05)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pop-in { animation: fade 0.4s var(--ease); }

.about { display: grid; gap: 12px; max-width: 62ch; color: #cfcfd4; }
.about .lead { font-size: 15px; color: var(--text); font-weight: 500; }
.about strong { color: #fff; font-weight: 600; }
.about a { color: #fff; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.35); }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.link-tile {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 4px; text-decoration: none;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.15s;
}
.link-tile:hover { background: var(--surface-2); }
.link-tile span { flex: 1; min-width: 0; }
.link-tile b { display: block; font-size: 13px; }
.link-tile small { display: block; color: var(--faint); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.link-tile > svg:last-child { color: var(--faint); }

/* ── Home: info panel ──────────────────────────────────────────────── */
.info { display: grid; gap: 12px; }
.info h2 { font-size: 15px; font-weight: 600; }
.info > p { color: var(--muted); font-size: 12.5px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 4px;
  font-size: 11.5px; font-weight: 500; color: #d4d4d8; background: rgba(255, 255, 255, 0.06);
}
.badge-ok { color: var(--green); background: rgba(95, 212, 158, 0.12); }
.badge-ok[data-state='idle'] { color: #f0b232; background: rgba(240, 178, 50, 0.12); }
.badge-ok[data-state='dnd'] { color: #f87171; background: rgba(242, 63, 67, 0.12); }
.badge-ok[data-state='offline'] { color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.info-box {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 4px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-size: 13px;
}
.info-box b { flex: 1; font-weight: 600; }
.info-box small { color: var(--faint); font-size: 11.5px; }
a.info-box:hover { background: var(--surface-2); }
.info-list { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 12.5px; }
.info-list div { display: flex; justify-content: space-between; }
.info-list dt { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.info-list dd { margin: 0; }
.info-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ── Projects side card ────────────────────────────────────────────── */
.pcard {
  position: relative; overflow: hidden; padding: 20px 18px 18px; border-radius: 4px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, 0.03), transparent 60%),
    rgba(10, 10, 18, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--dark), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}
.pcard::after { /* film grain */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.pc-bars { display: flex; gap: 6px; }
.pc-bar { flex: 1; height: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.pc-bar::before { content: ''; display: block; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
.pc-bar i { display: block; height: 2px; margin-top: -2px; border-radius: 2px; background: #fff; transform: scaleX(0); transform-origin: left; }
.pc-stage { position: relative; height: 150px; margin: 6px -18px 0; cursor: pointer; }
.pc-stars b { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0.5; animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--t); }
.pc-lines { position: absolute; inset: 30% 12% 22%; display: flex; justify-content: space-around; }
.pc-lines i { width: 1px; background: linear-gradient(transparent, rgba(255, 255, 255, 0.1), transparent); }
.pc-horizon {
  position: absolute; left: 10%; right: 10%; bottom: 14px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}
.pc-logo {
  position: absolute; display: grid; place-items: center; width: var(--s); height: var(--s);
  border-radius: 4px; overflow: hidden;
  background: linear-gradient(160deg, #3a3a40, #1b1b1f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 20px -6px rgba(0, 0, 0, 0.8);
  transform: rotate(var(--r));
  opacity: 0.4;
  transition: opacity 0.5s, transform 0.5s var(--ease), box-shadow 0.5s;
  animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--d) * -1);
}
.pc-logo img { width: 100%; height: 100%; object-fit: cover; }
.pc-logo span { font-weight: 700; font-size: 15px; }
.pc-logo.on { opacity: 1; transform: rotate(0deg) scale(1.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.18), 0 14px 26px -8px rgba(0, 0, 0, 0.9); z-index: 1; }
@keyframes bob { 50% { translate: 0 -6px; } }
.pcard h2 { margin-top: 14px; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.pc-text { margin-top: 6px; min-height: 62px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pc-name { color: var(--text); font-weight: 500; }
.pcard.swap .pc-text { animation: fade 0.45s var(--ease); }
.pc-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px;
  padding: 11px 16px; border: 0; border-radius: 4px; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: #f4f4f5;
  background: var(--mid);
  box-shadow: inset 0 0 0 1px var(--dark);
  transition: background 0.2s, transform 0.15s;
}
.pc-cta svg { transition: transform 0.2s var(--ease); }
.pc-cta:hover { background: var(--dark); }
.pc-cta:hover svg { transform: translateX(3px); }
.pc-cta:active { transform: scale(0.98); }
.pc-pause {
  position: absolute; top: 150px; right: 14px; z-index: 2;
  display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 4px; cursor: pointer;
  color: #e4e4e7; background: #222226;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 14px -4px rgba(0, 0, 0, 0.8);
}

/* ── Project tiles: the picture, bars slide in on hover ─────────────── */
.ptiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ptile {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 4px;
  background: var(--mid); box-shadow: inset 0 0 0 1px var(--dark);
}
.ptile-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-plate {
  display: grid; place-items: center;
  background:
    radial-gradient(60% 70% at 50% 40%, rgba(124, 156, 255, 0.16), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1.2px) 0 0 / 16px 16px,
    #0b0b14;
}
.art-plate img { width: 30%; max-width: 120px; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6)); }
.art-plate b { font-size: 56px; font-weight: 800; color: rgba(255, 255, 255, 0.7); }
.ptile-top, .ptile-bottom {
  position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 8px;
  background: var(--mid); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
}
.ptile-top { top: 0; transform: translateY(-120%); box-shadow: inset 0 -1px 0 var(--dark); }
.ptile-bottom { bottom: 0; transform: translateY(120%); box-shadow: inset 0 1px 0 var(--dark); }
.ptile:hover .ptile-top, .ptile:hover .ptile-bottom,
.ptile:focus-within .ptile-top, .ptile:focus-within .ptile-bottom { opacity: 1; transform: none; }
.ptile-top img { width: 28px; height: 28px; object-fit: contain; }
.ptile-top h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptile-tag { margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #dfe6ff; background: rgba(124, 156, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(124, 156, 255, 0.5); }
.ptile-bottom .sq-btn.wide { flex: 1; }
.ptile-bottom .sq-btn { height: 42px; min-width: 42px; }
@media (hover: none) { .ptile-top, .ptile-bottom { opacity: 1; transform: none; } }

/* ── Window that grows out of what opened it ───────────────────────── */
.mdl {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow-y: auto; overflow-x: hidden;
  background: transparent; color: var(--text);
}
.mdl::backdrop { background: transparent; }
.mdl-wrap { display: flex; align-items: center; justify-content: center; min-height: 100%; padding: 48px 16px; }
.mdl-panel {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 832px; padding: 16px;
  border-radius: 4px; background: #0e0e17; box-shadow: inset 0 0 0 1px #010106, 0 40px 100px -30px #000;
}
.mdl-panel.pw-all { max-width: 1040px; }
.mdl-close { position: absolute; z-index: 3; top: 24px; right: 24px; background: var(--mid); backdrop-filter: blur(6px); }
.pw-art { overflow: hidden; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--dark); }
.pw-img { display: block; width: 100%; height: auto; }
.pw-art .art-plate { aspect-ratio: 2000 / 703; }
.pw-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; padding: 16px 0 0; }
.pw-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pw-title > img { width: 30px; height: 30px; object-fit: contain; }
.pw-title h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.pw-links { display: flex; gap: 6px; }
.pw-links .sq-btn { height: 40px; min-width: 40px; padding: 0 9px; }
.pw-text { margin-top: 10px; font-size: 17px; line-height: 1.6; color: #e4e4ea; }
.pw-details { display: grid; gap: 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.pw-details dt { font-weight: 700; }
.pw-details dd { margin: 2px 0 0; color: var(--muted); }
.pw-side .chips { margin-top: 4px; gap: 8px; }
.pw-buttons { display: grid; gap: 8px; margin-top: 16px; }
.pw-buttons .sq-btn { justify-content: space-between; height: 42px; font-size: 14px; }
.pw-head { display: flex; align-items: baseline; gap: 12px; padding: 4px 56px 14px 2px; }
.pw-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.pw-head span { color: var(--faint); }

/* ── Notifications ─────────────────────────────────────────────────── */
.notify-stack {
  position: fixed; z-index: 80; top: calc(var(--edge) + 12px); right: calc(var(--edge) + 12px);
  display: flex; flex-direction: column; gap: 12px; width: min(440px, calc(100% - 24px));
  pointer-events: none;
}
.notify {
  --c: 124, 156, 255;
  position: relative; overflow: hidden; pointer-events: auto;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px;
  padding: 20px 40px 18px 18px; border-radius: 4px;
  background:
    radial-gradient(85% 120% at 108% -10%, rgba(var(--c), 0.42), rgba(var(--c), 0.12) 45%, transparent 70%),
    rgba(14, 14, 23, 0.92);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 0 1px var(--dark),
    inset -1px 1px 0 rgba(var(--c), 0.55),
    0 22px 40px -14px rgba(0, 0, 0, 0.85);
  animation: n-in 0.45s var(--ease);
}
.notify[data-type='success'] { --c: 95, 212, 158; }
.notify[data-type='error'] { --c: 236, 127, 151; }
.notify.out { animation: n-out 0.3s ease forwards; }
@keyframes n-in { from { opacity: 0; transform: translateX(24px) scale(0.97); } }
@keyframes n-out { to { opacity: 0; transform: translateX(24px) scale(0.97); margin-bottom: -60px; } }
.notify-icon { display: grid; place-items: center; width: 40px; height: 40px; color: rgb(var(--c)); align-self: center; }
.notify-body h3 { font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }
.notify-body p { margin-top: 6px; font-size: 13px; line-height: 1.55; color: #c9c9d0; }
.notify-foot { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.notify-progress { flex: 1; min-width: 140px; display: grid; justify-items: end; gap: 6px; margin-right: 12px; }
.notify-pct { font-size: 11.5px; font-weight: 600; color: #d4d4d8; }
.notify-progress i { display: block; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.notify-progress b { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #3442c8, rgb(var(--c))); transition: width 0.5s var(--ease); }
.notify-btn {
  min-width: 84px; padding: 9px 16px; border: 0; border-radius: 4px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: #fff; background: var(--light);
  transition: background 0.15s, transform 0.15s;
}
.notify-btn:hover { background: var(--dark); }
.notify-btn:active { transform: scale(0.97); }
.notify-close {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 26px; height: 26px;
  border: 0; border-radius: 4px; cursor: pointer; background: none; color: rgba(255, 255, 255, 0.7);
}
.notify-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ── Skills / Setup ────────────────────────────────────────────────── */
.skills-grid, .setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.skill-group h2, .setup-heading h2 { font-size: 14px; font-weight: 600; }
.skill-group.core { grid-column: 1 / -1; }
.skill-description { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.setup-grid { align-items: stretch; }
.setup-card { display: flex; flex-direction: column; }
.setup-card > p { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.setup-card .chips { margin-top: auto; padding-top: 12px; }
.setup-heading { display: flex; align-items: center; gap: 10px; }
.setup-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }

/* ── Contact ───────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-card { --pad: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.contact-main a { font-weight: 600; text-decoration: none; word-break: break-all; }
.contact-main a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-main p { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.contact-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.contact-actions { display: flex; gap: 6px; flex: none; }
.primary-contact { grid-column: 1 / -1; --pad: 18px; flex-wrap: wrap; }
.primary-contact .contact-main a { font-size: 17px; }
.avatar-wrap { position: relative; flex: none; }
.contact-avatar { width: 52px; height: 52px; border-radius: 4px; object-fit: cover; background: rgba(255, 255, 255, 0.05); }
.avatar-wrap .presence { width: 14px; height: 14px; border-width: 3px; border-color: var(--surface); }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1240px) { :root { --aside-w: 270px; } .cols { gap: 24px; } }
@media (max-width: 1000px) {
  :root { --side-w: 176px; }
  .panel { padding-inline: 22px; }
  .pcard-dock { right: 30px; }
}
@media (max-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; }
  .pcard-dock { position: static; width: auto; margin: 0 0 28px; animation: none; }
}
@media (max-width: 860px) {
  :root { --edge: 8px; }
  .app { display: block; }
  .side {
    position: fixed; top: auto; bottom: calc(var(--edge) + 10px); left: 50%; transform: translateX(-50%);
    height: auto; padding: 6px; border-radius: 4px; flex-direction: row;
    background: rgba(16, 16, 20, 0.88); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 30px -10px #000;
  }
  .logo, .side-foot, .tnav-sep, .tnav.ext, .tnav span { display: none; }
  .snav { flex-direction: row; }
  .tnav, .tnav.active { width: 44px; height: 40px; margin: 0; padding: 0; justify-content: center; border-radius: 4px; }
  .tnav.active, .tnav.active:hover { background: rgba(255, 255, 255, 0.1); transition: background 0.3s; }
  .nav-marker { display: none; }
  .panel { margin: 0; min-height: calc(100dvh - 2 * var(--edge)); padding: 14px 16px 24px; }
  .pcard-dock { margin: 0 16px 96px; }
  .search { width: 34px; padding: 0; justify-content: center; position: static; }
  .search input, .search kbd { display: none; }
  .search:focus-within { position: absolute; left: 12px; right: 12px; top: 14px; width: auto; z-index: 30; padding: 0 10px; justify-content: flex-start; }
  .search:focus-within input { display: block; }
  .search > svg { pointer-events: none; }
  .ptop { position: relative; }
  .me-name { display: none; }
  .bell-pop { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; }
  .notify-stack { top: auto; bottom: 76px; right: 12px; left: 12px; width: auto; flex-direction: column-reverse; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 16px; }
  .ptiles, .pw-grid { grid-template-columns: 1fr; }
  .mdl-wrap { padding: 24px 8px; }
  .pw-title h2, .pw-head h2 { font-size: 24px; }
  .link-grid, .skills-grid, .setup-grid, .contact-grid { grid-template-columns: 1fr; }
  .feed-item > a, .feed-item > div { grid-template-columns: auto minmax(0, 1fr); }
  .feed-meta { grid-column: 2; margin-top: -8px; }
  .notify { grid-template-columns: 30px minmax(0, 1fr); padding: 16px 36px 14px 14px; }
  .notify-icon { width: 30px; height: 30px; align-self: start; }
  .notify-btn { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.mdl-veil { position: fixed; inset: 0; }
.mdl-wrap { position: relative; }
