:root {
  --ink: #05070b;
  --ink-soft: #0a0e15;
  --surface: rgba(16, 24, 37, .72);
  --surface-solid: #101722;
  --surface-raised: #182437;
  --line: rgba(176, 201, 228, .18);
  --line-strong: rgba(117, 216, 255, .5);
  --text: #f1f7ff;
  --muted: #a2b0c3;
  --dim: #69788b;
  --blue: #79ddff;
  --violet: #ad9bff;
  --pink: #ff79a8;
  --green: #76edbf;
  --shadow: 0 30px 100px rgba(0, 0, 0, .46);
  --radius: 18px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  color: var(--text) !important;
  background:
    radial-gradient(ellipse 900px 560px at 78% -12%, rgba(115, 91, 255, .22), transparent 68%),
    radial-gradient(ellipse 720px 520px at -8% 74%, rgba(44, 178, 255, .14), transparent 68%),
    linear-gradient(145deg, #0b1019 0%, #070b12 54%, #04060b 100%) !important;
  background-attachment: fixed;
}
body.site-secondary { overflow-x: hidden; }
body::before { display: none !important; content: none !important; }
body::after { display: none !important; content: none !important; }
a, button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Portfolio / home */
.portfolio-page {
  padding: 88px clamp(18px, 5vw, 72px) 110px !important;
  background:
    radial-gradient(ellipse 760px 520px at 84% 8%, rgba(126, 100, 255, .16), transparent 70%),
    radial-gradient(ellipse 620px 480px at 4% 72%, rgba(48, 186, 240, .1), transparent 70%),
    transparent !important;
}
.portfolio-wrap { width: min(1360px, 100%) !important; }
.portfolio-nav {
  margin: 0 calc(clamp(18px, 5vw, 72px) * -1) clamp(48px, 8vh, 96px) !important;
  padding: 0 clamp(18px, 5vw, 72px) !important;
  min-height: 68px !important;
  background: rgba(7, 11, 17, .76) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .2) !important;
}
.portfolio-brand { color: var(--text) !important; font-weight: 700; letter-spacing: .18em !important; }
.portfolio-brand::before { content: "●"; color: var(--green); margin-right: 10px; text-shadow: 0 0 16px rgba(110, 231, 183, .8); }
.portfolio-navlinks { gap: 4px !important; }
.portfolio-navlinks a, .portfolio-navlinks button {
  color: var(--muted) !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  transition: color .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease) !important;
}
.portfolio-navlinks a:hover, .portfolio-navlinks button:hover { color: var(--text) !important; background: rgba(117, 216, 255, .08) !important; border-color: var(--line-strong) !important; transform: translateY(-1px); }
.portfolio-nav-status { color: var(--muted) !important; }
.portfolio-nav-status::before { background: var(--green) !important; box-shadow: 0 0 14px rgba(110, 231, 183, .75) !important; }
.portfolio-kicker, .portfolio-title span, .section-index, .portfolio-item .tag, .portfolio-clock { color: var(--pink) !important; text-shadow: 0 0 18px rgba(255, 111, 159, .35) !important; }
.portfolio-title { color: var(--text) !important; font-size: clamp(4.2rem, 13vw, 10rem) !important; letter-spacing: -.105em !important; text-shadow: 0 20px 70px rgba(0, 0, 0, .58) !important; }
.portfolio-lead { color: #b6c2d1 !important; }
.portfolio-stat { border-left-color: var(--pink) !important; background: linear-gradient(100deg, rgba(255, 111, 159, .1), rgba(117, 216, 255, .035)) !important; border-radius: 0 10px 10px 0; }
.portfolio-stat small { color: var(--dim) !important; }
.portfolio-stat b { color: var(--text) !important; }
.portfolio-card, .portfolio-item, .portfolio-wide, .portfolio-route, .portfolio-profile, .portfolio-note, .portfolio-story, .portfolio-bottom-tools {
  border-color: rgba(176, 201, 228, .2) !important;
  background:
    linear-gradient(145deg, rgba(24, 35, 53, .78), rgba(9, 14, 23, .9)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .055), 0 24px 70px rgba(0, 0, 0, .24) !important;
}
 .portfolio-card { border-radius: var(--radius) !important; }
 .portfolio-item, .portfolio-route { transition: transform .24s var(--ease), border-color .24s var(--ease), background .24s var(--ease), box-shadow .24s var(--ease) !important; }
 .portfolio-item:hover, .portfolio-route:hover { transform: translateY(-5px); border-color: var(--line-strong) !important; background: linear-gradient(145deg, rgba(30, 48, 70, .86), rgba(10, 17, 28, .94)) !important; box-shadow: 0 22px 55px rgba(0, 0, 0, .32), 0 0 28px rgba(117, 216, 255, .1) !important; }
.portfolio-cta { border: 1px solid rgba(255, 111, 159, .7) !important; background: linear-gradient(110deg, var(--pink), #b99aff) !important; color: #180812 !important; box-shadow: 0 12px 30px rgba(255, 111, 159, .18) !important; transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s var(--ease) !important; }
.portfolio-cta:hover { filter: brightness(1.1); transform: translateY(-3px) !important; box-shadow: 0 18px 38px rgba(255, 111, 159, .28) !important; }
.portfolio-terminal-link { border-color: var(--line-strong) !important; background: rgba(117, 216, 255, .08) !important; color: var(--text) !important; transition: background .22s var(--ease), transform .22s var(--ease) !important; }
.portfolio-terminal-link:hover { background: rgba(117, 216, 255, .16) !important; transform: translateY(-3px); }
.portfolio-route-grid { gap: 14px !important; }
.portfolio-route { border-radius: 14px !important; }
.portfolio-route small { color: var(--blue) !important; }
.portfolio-route h3, .portfolio-profile h2, .portfolio-explore h2 { color: var(--text) !important; }
.portfolio-route p, .portfolio-profile p, .portfolio-note, .portfolio-story p, .portfolio-explore p { color: var(--muted) !important; }
.portfolio-progress span { background: linear-gradient(90deg, var(--pink), var(--violet), var(--blue)) !important; }
.portfolio-fab { border-color: var(--line-strong) !important; background: var(--surface-solid) !important; color: var(--text) !important; }
.portfolio-footer { border-top-color: var(--line) !important; color: var(--dim) !important; }

/* Secondary pages */
.page { width: min(1280px, 100%) !important; padding: 96px clamp(18px, 5vw, 72px) 120px !important; }
.site-home .portfolio-page { width: 100% !important; padding: 96px clamp(18px, 5vw, 72px) 120px !important; }
.site-home .portfolio-wrap { width: min(1360px, calc(100% - clamp(32px, 8vw, 128px))) !important; margin-inline: auto; }
.nav, .portfolio-nav { display: none !important; }
.hero h1 { color: var(--text) !important; text-shadow: 0 20px 60px rgba(0, 0, 0, .6) !important; }
.hero h1 span { color: var(--pink) !important; }
.hero p, .lead, .card p, .split p, .game i, .callout p, .intel p { color: var(--muted) !important; }
.stats .stat { background: linear-gradient(100deg, rgba(255, 111, 159, .1), rgba(117, 216, 255, .035)) !important; border-left-color: var(--pink) !important; border-radius: 0 10px 10px 0; }
.card, .spec, .game, .split, .intel { border-color: var(--line) !important; border-radius: 14px !important; background: linear-gradient(145deg, rgba(20, 29, 42, .86), rgba(9, 13, 20, .9)) !important; box-shadow: inset 0 1px rgba(255, 255, 255, .035), var(--shadow) !important; }
.card:hover, .spec:hover, .game:hover, .intel:hover { border-color: var(--line-strong) !important; box-shadow: 0 22px 55px rgba(0,0,0,.3), 0 0 24px rgba(117,216,255,.08) !important; transform: translateY(-3px); }
.cyber-section h2, .tag, .kicker, .eyebrow, .spec b, .game b, .intel small { color: var(--pink) !important; }
.cta { background: linear-gradient(110deg, var(--pink), var(--violet)) !important; color: #180812 !important; border: 0 !important; box-shadow: 0 12px 30px rgba(255,111,159,.18) !important; }
.footer { border-top-color: var(--line) !important; color: var(--dim) !important; }

body.site-secondary { min-height: 100vh; }
body.site-secondary .page { min-height: 100vh; }
body.site-secondary .hero {
  display: grid;
  align-content: center;
  min-height: min(58vh, 620px);
  max-width: 980px;
}
body.site-secondary .hero h1 {
  margin: 20px 0 26px;
  font-size: clamp(4.5rem, 12vw, 9rem);
  line-height: .8;
  letter-spacing: -.09em;
}
body.site-secondary .hero p,
body.site-secondary .lead {
  max-width: 760px;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.85;
}
body.site-secondary .eyebrow,
body.site-secondary .kicker {
  font-size: .72rem;
  letter-spacing: .16em;
}
body.site-secondary .stats,
body.site-secondary .grid,
body.site-secondary .specs,
body.site-secondary .games,
body.site-secondary .intel-grid {
  display: grid;
  gap: 18px;
}
body.site-secondary .stats,
body.site-secondary .grid,
body.site-secondary .games,
body.site-secondary .intel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.site-secondary .stats { margin: 28px 0 72px; }
body.site-secondary .stat { padding: 16px; border-left: 2px solid var(--pink); }
body.site-secondary .stat small {
  display: block;
  margin-bottom: 7px;
  color: var(--dim);
  font-size: .67rem;
  letter-spacing: .13em;
}
body.site-secondary .stat b { color: var(--text); }
body.site-secondary .grid { margin-bottom: 72px; }
body.site-secondary .card,
body.site-secondary .spec,
body.site-secondary .game,
body.site-secondary .intel {
  min-height: 160px;
  padding: 24px;
}
body.site-secondary .card h2 { margin: 14px 0 9px; font-size: 1.12rem; }
body.site-secondary .card p,
body.site-secondary .game i,
body.site-secondary .intel p { font-size: .87rem; line-height: 1.7; }
body.site-secondary .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.site-secondary .spec b,
body.site-secondary .game b,
body.site-secondary .intel small {
  display: block;
  font-size: .7rem;
  letter-spacing: .14em;
}
body.site-secondary .spec span {
  display: block;
  margin-top: 15px;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.22rem);
}
body.site-secondary .game b { margin-bottom: 14px; }
body.site-secondary .game span { color: var(--text); font-size: 1.02rem; }
body.site-secondary .game i { display: block; margin-top: 10px; font-style: normal; }
body.site-secondary .cyber-section { margin-top: 72px; }
body.site-secondary .cyber-section > h2 { margin-bottom: 22px; }
body.site-secondary .split,
body.site-secondary .callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
}
body.site-secondary .split { display: grid; grid-template-columns: 1.1fr .9fr; }
body.site-secondary .signal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}
body.site-secondary .signal b { color: var(--text); text-align: right; }
body.site-secondary .terminal { margin-top: 62px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
body.site-secondary .terminal .bar { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .75rem; }
body.site-secondary .terminal .out { padding: 25px; color: var(--muted); line-height: 1.95; }
body.site-secondary .footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 82px; padding-top: 18px; font-size: .75rem; }

/* Compact shared navigation and terminal launcher */
.site-dock {
  position: fixed;
  z-index: 160;
  top: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 6px;
  border: 1px solid rgba(176, 201, 228, .22);
  border-radius: 16px;
  background: rgba(10, 16, 25, .78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(16px) saturate(1.15);
  transform: translateX(-50%);
}
.site-dock-links { display: flex; align-items: center; gap: 2px; min-width: 0; }
.site-dock button, .site-dock a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font: 600 10px/1 ui-monospace, monospace;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.site-dock button:hover, .site-dock a:hover, .site-dock a.active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(117, 216, 255, .08);
}
.site-dock a.active::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: -7px;
  left: 10px;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(117, 216, 255, .55);
}
.site-dock .dock-terminal { color: var(--pink); }
.site-dock .dock-terminal.is-open { color: var(--green); }
.site-dock .dock-terminal.is-open::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(110, 231, 183, .8);
}
.site-dock-clock {
  position: fixed;
  z-index: 150;
  top: 18px;
  right: clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: transparent;
  font: 10px/1 ui-monospace, monospace;
  letter-spacing: .08em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.site-status { display: none !important; }

/* Terminal overlay */
.site-terminal-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: transparent; backdrop-filter: none; opacity: 0; visibility: hidden; transition: opacity .24s var(--ease), visibility .24s; }
.site-terminal-overlay.open { opacity: 1; visibility: visible; }
.site-terminal-panel { position: fixed; inset: auto; left: 50%; top: 50%; display: flex; flex-direction: column; width: min(1040px, calc(100vw - 48px)); height: min(720px, calc(100vh - 120px)); min-width: 520px; min-height: 360px; margin: 0; overflow: hidden; resize: both; border: 1px solid rgba(121, 221, 255, .46); border-radius: 17px; background: #080e17; box-shadow: 0 36px 120px rgba(0, 0, 0, .72), 0 0 80px rgba(121, 221, 255, .12), inset 0 1px rgba(255, 255, 255, .06); transform: translate(-50%, calc(-50% + 14px)) scale(.985); transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.site-terminal-overlay.open .site-terminal-panel { transform: translate(-50%, -50%) scale(1); }
body.site-home .site-terminal-panel { position: fixed; inset: auto; display: flex; grid-area: auto; margin: 0; }
body.site-home #mainTerminal[aria-hidden="true"] { display: none !important; visibility: hidden; pointer-events: none; }
.site-terminal-panel.is-maximized { width: calc(100vw - 28px) !important; height: calc(100vh - 28px) !important; max-width: none; max-height: none; resize: none; }
.site-terminal-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; min-height: 52px; padding: 0 15px; border-bottom: 1px solid rgba(176, 201, 228, .16); background: linear-gradient(180deg, rgba(24, 37, 55, .98), rgba(12, 20, 31, .96)); cursor: grab; user-select: none; touch-action: none; box-shadow: inset 0 1px rgba(255, 255, 255, .06); }
.site-terminal-bar:active { cursor: grabbing; }
.site-terminal-controls { display: flex; align-items: center; gap: 9px; }
.site-terminal-control { width: 13px; height: 13px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; transition: transform .18s, filter .18s; }
.site-terminal-control:hover { transform: scale(1.18); filter: brightness(1.18); }
.site-terminal-control.close { background: #ff625b; box-shadow: 0 0 12px rgba(255, 98, 91, .32); }
.site-terminal-control.minimize { background: #ffc043; }
.site-terminal-control.maximize { background: #43d17d; }
.site-terminal-title { min-width: 0; overflow: hidden; color: var(--muted); font: 11px/1 ui-monospace, monospace; letter-spacing: .08em; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.site-terminal-title strong { color: var(--blue); font-weight: 600; }
.site-terminal-actions { display: flex; align-items: center; gap: 8px; }
.site-terminal-actions kbd { padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--dim); font: 9px ui-monospace, monospace; }
.site-terminal-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #080e17; }
.site-terminal-panel.is-minimized { height: 52px !important; min-height: 52px; resize: none; }
.site-terminal-panel.is-minimized .site-terminal-frame { display: none; }
.site-terminal-panel.is-dragging { transition: none; }

/* Non-modal desktop windows share one top-level stacking context. */
.site-terminal-overlay { pointer-events: none; }
.site-terminal-panel,
.site-tool-window { pointer-events: auto; }
.site-window { position: fixed; display: flex; flex-direction: column; overflow: hidden; min-width: 360px; min-height: 240px; border: 1px solid rgba(121, 221, 255, .4); border-radius: 14px; background: rgba(8, 14, 23, .96); box-shadow: 0 30px 100px rgba(0, 0, 0, .7), 0 0 60px rgba(121, 221, 255, .12); resize: both; }
.site-tool-window { animation: siteWindowIn .2s ease both; }
@keyframes siteWindowIn { from { opacity: 0; transform: scale(.98) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.site-window-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 46px; padding: 0 13px; border-bottom: 1px solid rgba(176, 201, 228, .16); background: linear-gradient(180deg, rgba(24, 37, 55, .98), rgba(12, 20, 31, .96)); cursor: grab; user-select: none; touch-action: none; }
.site-window-bar:active { cursor: grabbing; }
.site-window-controls { display: flex; align-items: center; gap: 8px; }
.site-window-control { width: 13px; height: 13px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.site-window-control:hover { filter: brightness(1.2); transform: scale(1.12); }
.site-window-control.close { background: #ff625b; box-shadow: 0 0 12px rgba(255, 98, 91, .32); }
.site-window-control.minimize { background: #ffc043; }
.site-window-control.maximize { background: #43d17d; }
.site-window-title { min-width: 0; overflow: hidden; color: var(--muted); font: 11px/1 ui-monospace, monospace; letter-spacing: .08em; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.site-window-actions { display: flex; align-items: center; }
.site-window-actions kbd { padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--dim); font: 9px ui-monospace, monospace; }
.site-window-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #080e17; }
.site-window.is-minimized { height: 46px !important; min-height: 46px; resize: none; }
.site-window.is-minimized .site-window-frame { display: none; }
.site-window.is-maximized { resize: none; }
.site-window.is-dragging { transition: none; }


body.terminal-embedded .float-window { position: relative !important; inset: auto !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; min-width: 0 !important; min-height: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; resize: none !important; }
body.terminal-embedded .float-window > .terminal-header { display: none !important; }
body.terminal-embedded .float-window > .terminal-body { flex: 1; min-height: 0; }

/* Command palette */
.site-command-palette { position: fixed; inset: 0; z-index: 240; display: grid; place-items: start center; padding: min(16vh, 140px) 18px 30px; background: rgba(2,5,10,.5); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.site-command-palette.open { opacity: 1; visibility: visible; }
.command-dialog { width: min(620px, 100%); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: #0e1621; box-shadow: 0 30px 100px rgba(0,0,0,.62); transform: translateY(-8px); transition: transform .2s var(--ease); }
.site-command-palette.open .command-dialog { transform: translateY(0); }
.command-search { display: flex; align-items: center; gap: 12px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.command-search span { color: var(--pink); font-size: 17px; }
.command-search input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font: 15px ui-monospace, monospace; }
.command-list { max-height: min(52vh, 430px); overflow: auto; padding: 8px; }
.command-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 10px; color: var(--text); background: transparent; text-align: left; font: 12px ui-monospace, monospace; cursor: pointer; }
.command-item:hover, .command-item[aria-selected="true"] { border-color: var(--line); background: rgba(117,216,255,.08); }
.command-item strong { display: block; font-weight: 600; }
.command-item small { display: block; margin-top: 3px; color: var(--muted); }
.command-item kbd { color: var(--dim); }
.command-empty { padding: 22px 14px; color: var(--muted); font: 12px ui-monospace, monospace; text-align: center; }

body.terminal-embedded { overflow: hidden !important; }
body.terminal-embedded .portfolio-page,
body.terminal-embedded .dossier-page { display: none !important; }
body.terminal-embedded .terminal-window {
  position: relative !important; inset: auto !important; transform: none !important;
  width: 100% !important; height: 100% !important; max-width: none !important;
  max-height: none !important; min-width: 0 !important; min-height: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
body.terminal-embedded .terminal-window > .terminal-header { display: none !important; }
body.terminal-embedded .terminal-body { padding: 28px 32px !important; }
@media (max-width: 760px) {
  .site-dock { top: 42px; left: 8px; right: 8px; bottom: auto; width: auto; max-width: none; padding: 4px; transform: none; }
  .site-dock-links { width: 100%; }
  .site-dock button, .site-dock a { flex: 1; padding: 0 5px; font-size: 9px; }
  .site-dock a.active::after { right: 7px; bottom: -11px; left: 7px; }
  .site-dock-clock { top: 10px; right: 10px; font-size: 9px; letter-spacing: .04em; }
  .site-home .portfolio-card { order: initial; }
  .page { padding-top: 104px !important; padding-bottom: 120px !important; }
  .site-home .portfolio-page { padding-top: 104px !important; padding-bottom: 120px !important; }
  body.site-secondary .hero { min-height: 45vh; }
  body.site-secondary .stats,
  body.site-secondary .grid,
  body.site-secondary .specs,
  body.site-secondary .games,
  body.site-secondary .intel-grid { grid-template-columns: 1fr; }
  body.site-secondary .split,
  body.site-secondary .callout { display: flex; align-items: flex-start; flex-direction: column; padding: 22px; }
  body.site-secondary .footer { flex-direction: column; }
  .site-terminal-overlay { padding: 9px; }
  .site-terminal-panel { left: 9px; top: 9px; width: calc(100vw - 18px); height: calc(100vh - 18px); min-width: 0; min-height: 0; resize: none; transform: none !important; border-radius: 14px; }
  .site-tool-window { left: 9px !important; top: 9px !important; width: calc(100vw - 18px) !important; height: calc(100vh - 18px) !important; min-width: 0; min-height: 0; resize: none; border-radius: 14px; }
  .site-terminal-bar { min-height: 46px; grid-template-columns: auto 1fr auto; gap: 8px; padding: 0 11px; }
  .site-terminal-actions kbd { display: none; }
  .site-terminal-title { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* The shared topbar replaces the legacy page chrome and decoration. */
/* Blue Aurora shared layout and surfaces */
:root {
  --bg-0: #030712;
  --bg-1: #07111f;
  --bg-2: #0a1830;
  --ink: var(--bg-0);
  --ink-soft: var(--bg-1);
  --surface: rgba(10, 23, 43, .72);
  --surface-solid: #0d1f3a;
  --surface-raised: rgba(13, 31, 58, .88);
  --surface-strong: rgba(13, 31, 58, .88);
  --surface-hover: rgba(18, 43, 78, .88);
  --line: rgba(115, 190, 255, .16);
  --line-strong: rgba(94, 200, 255, .42);
  --text: #eef8ff;
  --muted: #9eb2c9;
  --dim: #627890;
  --blue: #49bfff;
  --cyan: #5ee7ff;
  --violet: #8b7cff;
  --green: #63f0c2;
  --pink: var(--cyan);
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --radius: 18px;
}

html,
body {
  background:
    radial-gradient(900px 650px at 78% 0%, rgba(42, 126, 255, .20), transparent 70%),
    radial-gradient(850px 650px at 5% 85%, rgba(38, 212, 255, .10), transparent 70%),
    linear-gradient(145deg, #07111f 0%, #040914 55%, #02050b 100%) !important;
}

body {
  color: var(--text) !important;
  background-attachment: fixed;
}
body.site-secondary { margin: 0 !important; }

/* Secondary routes use a full-width shell with one centered content region. */
body.site-secondary .page {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 112px 0 120px !important;
  background: transparent !important;
}
body.site-secondary .page-inner {
  width: min(1360px, calc(100% - clamp(32px, 7vw, 120px)));
  margin-inline: auto;
}
body.site-secondary .page-inner > .hero {
  width: 100%;
  max-width: none !important;
  min-height: min(58vh, 620px);
  margin: 0;
  display: grid;
  align-content: center;
}
body.site-secondary .page-inner > .stats,
body.site-secondary .page-inner > section,
body.site-secondary .page-inner > .footer {
  width: 100%;
}
body.site-secondary .hero .eyebrow,
body.site-secondary .hero .kicker {
  color: var(--cyan) !important;
  text-shadow: 0 0 18px rgba(94, 231, 255, .28) !important;
}
body.site-secondary .hero .eyebrow::before,
body.site-secondary .hero .kicker::before {
  content: '// ';
  color: var(--blue);
}
body.site-secondary .hero h1 {
  color: var(--text) !important;
  text-shadow: 0 20px 60px rgba(0, 0, 0, .6) !important;
}
body.site-secondary .hero h1 span {
  color: var(--blue) !important;
  text-shadow: 0 0 26px rgba(73, 191, 255, .22);
}
body.site-secondary .hero p,
body.site-secondary .lead {
  color: var(--muted) !important;
}

/* One cobalt-glass card language across every route. */
body.site-secondary .card,
body.site-secondary .spec,
body.site-secondary .game,
body.site-secondary .split,
body.site-secondary .intel,
body.site-secondary .terminal,
body.site-home .portfolio-card,
body.site-home .portfolio-story,
body.site-home .portfolio-profile,
body.site-home .portfolio-note,
body.site-home .portfolio-route,
body.site-home .portfolio-bottom-tools {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: linear-gradient(145deg, rgba(17, 39, 70, .76), rgba(7, 17, 33, .90)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .045), var(--shadow) !important;
}
body.site-secondary .card,
body.site-secondary .spec,
body.site-secondary .game,
body.site-secondary .intel {
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}
body.site-secondary .card:hover,
body.site-secondary .spec:hover,
body.site-secondary .game:hover,
body.site-secondary .intel:hover {
  border-color: var(--line-strong) !important;
  background: linear-gradient(145deg, var(--surface-hover), rgba(7, 17, 33, .94)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 22px 55px rgba(0, 0, 0, .32), 0 0 28px rgba(73, 191, 255, .10) !important;
  transform: translateY(-2px);
}
body.site-secondary .stats .stat {
  border-left-color: var(--cyan) !important;
  background: linear-gradient(100deg, rgba(94, 231, 255, .11), rgba(73, 191, 255, .04)) !important;
}
body.site-secondary .cyber-section h2,
body.site-secondary .tag,
body.site-secondary .kicker,
body.site-secondary .eyebrow,
body.site-secondary .spec b,
body.site-secondary .game b,
body.site-secondary .intel small {
  color: var(--cyan) !important;
  text-shadow: 0 0 16px rgba(94, 231, 255, .22);
}
body.site-secondary .card b,
body.site-secondary .spec span,
body.site-secondary .game span,
body.site-secondary .intel b,
body.site-secondary .signal b {
  color: var(--text) !important;
}
body.site-secondary .split,
body.site-secondary .callout {
  border-color: var(--line) !important;
}
body.site-secondary .signal {
  border-bottom-color: var(--line) !important;
}
body.site-secondary .terminal .bar {
  border-bottom-color: var(--line) !important;
  color: var(--cyan);
}
body.site-secondary .terminal .out {
  color: var(--muted) !important;
}
body.site-secondary .footer {
  border-top-color: var(--line) !important;
  color: var(--dim) !important;
}

/* Home keeps its centered structure while sharing the new palette. */
body.site-home .portfolio-page {
  width: 100% !important;
  padding: 96px 0 110px !important;
  background: transparent !important;
}
body.site-home .portfolio-wrap {
  width: min(1360px, calc(100% - clamp(32px, 7vw, 120px))) !important;
  margin-inline: auto;
}
body.site-home .portfolio-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .8fr) !important;
  gap: clamp(34px, 6vw, 90px) !important;
}
body.site-home .portfolio-title span,
body.site-home .portfolio-kicker,
body.site-home .portfolio-clock,
body.site-home .portfolio-story small,
body.site-home .portfolio-profile small,
body.site-home .portfolio-route small,
body.site-home .portfolio-bottom-tools small {
  color: var(--cyan) !important;
  text-shadow: 0 0 18px rgba(94, 231, 255, .25) !important;
}
body.site-home .operations-caption small,
body.site-home .profile-signal b,
body.site-home .portfolio-explore small,
body.site-home .portfolio-feedback-link::before {
  color: var(--cyan) !important;
}
body.site-home .portfolio-stat {
  border-left-color: var(--cyan) !important;
  background: linear-gradient(100deg, rgba(94, 231, 255, .11), rgba(73, 191, 255, .04)) !important;
}
body.site-home .portfolio-cta {
  border-color: rgba(94, 231, 255, .55) !important;
  background: linear-gradient(110deg, var(--blue), var(--violet)) !important;
  color: #03101d !important;
  box-shadow: 0 12px 30px rgba(73, 191, 255, .20) !important;
}
body.site-home .portfolio-cta:hover {
  box-shadow: 0 18px 38px rgba(73, 191, 255, .30) !important;
}
body.site-home .portfolio-terminal-link {
  border-color: var(--line-strong) !important;
  background: rgba(94, 231, 255, .08) !important;
  color: var(--text) !important;
}
body.site-home .portfolio-route:hover {
  border-color: var(--line-strong) !important;
  background: linear-gradient(145deg, var(--surface-hover), rgba(7, 17, 33, .94)) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .32), 0 0 28px rgba(73, 191, 255, .10) !important;
}
body.site-home .portfolio-story {
  background: linear-gradient(110deg, rgba(73, 191, 255, .11), rgba(139, 124, 255, .10)) !important;
  box-shadow: inset 3px 0 var(--cyan), var(--shadow) !important;
}
body.site-home .portfolio-story > div {
  border-left-color: rgba(94, 231, 255, .34);
}

/* Shared top dock and terminal chrome follow Blue Aurora without changing behavior. */
.site-dock {
  border-color: rgba(94, 200, 255, .30);
  background: rgba(7, 18, 35, .84);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .07), 0 0 28px rgba(73, 191, 255, .06);
}
.site-dock button:hover,
.site-dock a:hover,
.site-dock a.active {
  border-color: var(--line-strong);
  background: rgba(94, 231, 255, .09);
}
.site-dock a.active::after {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(94, 231, 255, .65);
}
.site-dock .dock-terminal {
  color: var(--cyan);
}
.site-dock .dock-terminal.is-open {
  color: var(--green);
}
.site-dock-clock {
  color: var(--cyan);
}
.site-terminal-panel {
  border-color: rgba(94, 200, 255, .48);
  box-shadow: 0 36px 120px rgba(0, 0, 0, .72), 0 0 80px rgba(73, 191, 255, .13), inset 0 1px rgba(255, 255, 255, .06);
}
.site-terminal-bar {
  border-bottom-color: rgba(94, 200, 255, .20);
  background: linear-gradient(180deg, rgba(13, 31, 58, .98), rgba(5, 16, 32, .96));
}
.site-terminal-title strong {
  color: var(--cyan);
}

@media (max-width: 760px) {
  body.site-secondary .page {
    padding-top: 104px !important;
    padding-bottom: 120px !important;
  }
  body.site-secondary .page-inner {
    width: calc(100% - 32px);
  }
  body.site-secondary .page-inner > .hero {
    min-height: 45vh;
  }
  body.site-home .portfolio-hero {
    grid-template-columns: 1fr !important;
  }
  body.site-home .portfolio-card {
    order: initial !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site-secondary .card,
  body.site-secondary .spec,
  body.site-secondary .game,
  body.site-secondary .intel {
    transition: none;
  }
}
.portfolio-page::before { display: none !important; }
/* Pearl Aurora: light portfolio surfaces, dark terminal interiors. */
:root {
  --bg-0: #f4f9fd;
  --bg-1: #e7f2fb;
  --bg-2: #dcecf7;
  --ink: #10253c;
  --ink-soft: #27435d;
  --surface: rgba(252, 254, 255, .76);
  --surface-solid: #f8fcff;
  --surface-raised: rgba(255, 255, 255, .88);
  --surface-strong: rgba(255, 255, 255, .94);
  --surface-hover: rgba(239, 248, 255, .96);
  --line: rgba(46, 107, 150, .20);
  --line-strong: rgba(25, 123, 185, .52);
  --text: #132b43;
  --muted: #526b81;
  --dim: #73899c;
  --blue: #176da8;
  --cyan: #087f9f;
  --violet: #6f65bd;
  --green: #147c5b;
  --pink: #b44b79;
  --shadow: 0 18px 46px rgba(53, 93, 122, .14);
}

html,
body {
  background:
    radial-gradient(900px 560px at 88% -8%, rgba(143, 210, 235, .38), transparent 72%),
    radial-gradient(760px 600px at 2% 86%, rgba(204, 190, 242, .24), transparent 70%),
    linear-gradient(145deg, #f8fcff 0%, #edf6fb 52%, #e6f1f8 100%) !important;
}

body {
  color: var(--text) !important;
  background-attachment: scroll !important;
}

body.site-secondary .hero h1,
body.site-secondary .hero h1 span,
body.site-secondary .hero p,
body.site-secondary .lead,
body.site-secondary .card b,
body.site-secondary .spec span,
body.site-secondary .game span,
body.site-secondary .intel b,
body.site-secondary .signal b,
body.site-home .portfolio-title {
  color: var(--text) !important;
  text-shadow: none !important;
}

body.site-secondary .hero .eyebrow,
body.site-secondary .hero .kicker,
body.site-secondary .cyber-section h2,
body.site-secondary .tag,
body.site-secondary .kicker,
body.site-secondary .eyebrow,
body.site-secondary .spec b,
body.site-secondary .game b,
body.site-secondary .intel small,
body.site-home .portfolio-title span,
body.site-home .portfolio-kicker,
body.site-home .portfolio-clock,
body.site-home .portfolio-story small,
body.site-home .portfolio-profile small,
body.site-home .portfolio-route small,
body.site-home .portfolio-bottom-tools small {
  color: var(--blue) !important;
  text-shadow: none !important;
}

body.site-secondary .card,
body.site-secondary .spec,
body.site-secondary .game,
body.site-secondary .split,
body.site-secondary .intel,
body.site-secondary .terminal,
body.site-home .portfolio-card,
body.site-home .portfolio-story,
body.site-home .portfolio-profile,
body.site-home .portfolio-note,
body.site-home .portfolio-route,
body.site-home .portfolio-bottom-tools {
  border-color: var(--line) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(239, 248, 253, .68)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .9), var(--shadow) !important;
}

body.site-secondary .card:hover,
body.site-secondary .spec:hover,
body.site-secondary .game:hover,
body.site-secondary .intel:hover,
body.site-home .portfolio-route:hover {
  border-color: var(--line-strong) !important;
  background: linear-gradient(145deg, #ffffff, var(--surface-hover)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .95), 0 20px 42px rgba(53, 93, 122, .18) !important;
}

body.site-secondary .stats .stat,
body.site-home .portfolio-stat {
  border-left-color: var(--cyan) !important;
  background: linear-gradient(100deg, rgba(8, 127, 159, .12), rgba(111, 101, 189, .06)) !important;
}

body.site-secondary .split,
body.site-secondary .callout,
body.site-secondary .signal {
  border-color: var(--line) !important;
}

body.site-secondary .terminal .bar {
  border-bottom-color: var(--line) !important;
  color: var(--blue) !important;
}

body.site-secondary .terminal .out,
body.site-secondary .footer {
  color: var(--muted) !important;
}

body.site-home .portfolio-page {
  background: transparent !important;
}

body.site-home .portfolio-cta {
  border-color: rgba(25, 123, 185, .42) !important;
  background: linear-gradient(110deg, #2185bc, #7169c4) !important;
  color: #f8fcff !important;
  box-shadow: 0 12px 28px rgba(53, 119, 168, .20) !important;
}

body.site-home .portfolio-terminal-link {
  border-color: var(--line-strong) !important;
  background: rgba(25, 123, 185, .08) !important;
  color: var(--text) !important;
}

body.site-home .portfolio-story {
  background: linear-gradient(110deg, rgba(25, 123, 185, .10), rgba(111, 101, 189, .10)) !important;
  box-shadow: inset 3px 0 var(--cyan), var(--shadow) !important;
}

.site-dock {
  border-color: rgba(46, 107, 150, .24);
  background: rgba(250, 253, 255, .90);
  box-shadow: 0 14px 34px rgba(53, 93, 122, .16), inset 0 1px rgba(255, 255, 255, .95);
  backdrop-filter: none;
}

.site-dock button,
.site-dock a {
  color: var(--text);
}

.site-dock button:hover,
.site-dock a:hover,
.site-dock a.active {
  border-color: var(--line-strong);
  background: rgba(25, 123, 185, .08);
}

.site-dock a.active::after {
  background: var(--blue);
  box-shadow: none;
}

.site-dock .dock-terminal,
.site-dock-clock {
  color: var(--blue);
}

.site-dock .dock-terminal.is-open {
  color: var(--green);
}

/* The terminal stays graphite while the portfolio and dock use Pearl Aurora. */
.site-terminal-panel,
.site-tool-window {
  border-color: rgba(105, 190, 225, .40) !important;
  background: #081522 !important;
  color: #d9edf7 !important;
  box-shadow: 0 26px 70px rgba(21, 47, 68, .28), inset 0 1px rgba(255, 255, 255, .08) !important;
}

.site-terminal-bar,
.site-window-bar {
  border-bottom-color: rgba(105, 190, 225, .18) !important;
  background: linear-gradient(180deg, #10283d, #0a1b2b) !important;
}

.site-terminal-title strong,
.site-window-title {
  color: #8de8f7 !important;
}

.site-window-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  background: #081522;
  color: #d9edf7;
}

.site-tool-content {
  display: grid;
  align-content: start;
  gap: 14px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.tool-prompt {
  color: var(--tool-text);
  font-size: .78rem;
  letter-spacing: .02em;
}

.tool-kicker {
  color: var(--tool-accent);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.tool-state {
  padding: 16px 18px;
  border: 1px solid rgba(126, 199, 221, .17);
  border-radius: 12px;
  background: rgba(17, 46, 66, .66);
  color: var(--tool-muted);
  font-size: .82rem;
}

.tool-profile {
  display: grid;
  grid-template-columns: minmax(110px, .34fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-top: 6px;
}

.tool-profile-mark {
  color: var(--tool-logo);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.1;
}

.tool-profile-mark span {
  color: var(--tool-accent);
  font-size: .55em;
  letter-spacing: .18em;
}

.tool-list,
.tool-card-grid {
  display: grid;
  gap: 10px;
}

.tool-row {
  display: grid;
  grid-template-columns: minmax(88px, .28fr) minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(126, 199, 221, .14);
}

.tool-row b,
.tool-card small {
  color: var(--tool-accent);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tool-row span,
.tool-card strong,
.tool-card span {
  color: var(--tool-text);
  overflow-wrap: anywhere;
}

.tool-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card {
  display: grid;
  gap: 8px;
  min-height: 76px;
  padding: 15px;
  border: 1px solid rgba(126, 199, 221, .17);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(21, 52, 73, .88), rgba(10, 29, 45, .92));
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.tool-card strong {
  font-size: .9rem;
  line-height: 1.35;
}

.tool-card span {
  color: var(--tool-muted);
  font-size: .7rem;
}

.tool-contact-list {
  display: grid;
  gap: 10px;
  max-width: 700px;
}

.tool-contact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border: 1px solid rgba(126, 199, 221, .18);
  border-radius: 12px;
  background: rgba(17, 46, 66, .82);
  color: var(--tool-text);
  text-decoration: none;
}

.tool-contact:hover {
  border-color: rgba(141, 232, 247, .55);
  background: rgba(23, 62, 86, .92);
}

.tool-contact b {
  color: var(--tool-accent);
}

@media (max-width: 760px) {
  .site-window-content {
    padding: 16px;
  }

  .tool-profile {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tool-card-grid {
    grid-template-columns: 1fr;
  }
}

body.terminal-embedded {
  background:
    radial-gradient(760px 520px at 90% -12%, rgba(24, 97, 136, .20), transparent 70%),
    linear-gradient(145deg, #071421 0%, #040b13 58%, #02060b 100%) !important;
  color: #d9edf7 !important;
}

body.terminal-embedded .terminal-window,
body.terminal-embedded .float-window {
  background: #081522 !important;
  border-color: rgba(105, 190, 225, .34) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .38) !important;
}

body.terminal-embedded .terminal-header {
  background: linear-gradient(180deg, #10283d, #0a1b2b) !important;
  border-bottom-color: rgba(105, 190, 225, .18) !important;
}

body.terminal-embedded .terminal-body,
body.terminal-embedded .terminal-output-line {
  color: #d9edf7;
}

/* Site theme system: colorful Pearl Aurora and Aurora Midnight. */
:root,
html[data-site-theme="light"] {
  --site-bg: #d8e8f3;
  --site-bg-soft: #cbdfee;
  --site-text: #142d47;
  --site-muted: #4e6880;
  --site-dim: #6f879c;
  --site-blue: #176fa8;
  --site-cyan: #087f9f;
  --site-violet: #655bc0;
  --site-green: #13795a;
  --site-line: rgba(39, 98, 142, .24);
  --site-line-strong: rgba(21, 116, 177, .58);
  --site-card: linear-gradient(145deg, rgba(225, 238, 248, .76), rgba(190, 216, 234, .68));
  --site-card-hover: linear-gradient(145deg, rgba(232, 243, 250, .84), rgba(199, 222, 239, .76));
  --site-shadow: 0 22px 56px rgba(51, 91, 122, .18);
}

html[data-site-theme="dark"] {
  --site-bg: #07111d;
  --site-bg-soft: #0b1728;
  --site-text: #edf7ff;
  --site-muted: #9bb0c8;
  --site-dim: #6e849b;
  --site-blue: #65c7ff;
  --site-cyan: #63e7ff;
  --site-violet: #a99bff;
  --site-green: #72e1b5;
  --site-line: rgba(112, 196, 246, .20);
  --site-line-strong: rgba(101, 199, 255, .58);
  --site-card: linear-gradient(145deg, rgba(18, 37, 57, .88), rgba(12, 22, 39, .94));
  --site-card-hover: linear-gradient(145deg, rgba(24, 49, 73, .92), rgba(14, 28, 49, .96));
  --site-shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

html[data-site-theme="light"],
html[data-site-theme="light"] body:not(.terminal-embedded) {
  background:
    radial-gradient(900px 650px at 12% 10%, rgba(48, 176, 255, .30), transparent 66%),
    radial-gradient(850px 620px at 88% 12%, rgba(116, 95, 255, .22), transparent 68%),
    radial-gradient(900px 700px at 55% 95%, rgba(45, 210, 180, .16), transparent 70%),
    linear-gradient(145deg, #dbeaf5 0%, #d3e4f5 34%, #dedcf4 68%, #d5ebe8 100%) !important;
}

html[data-site-theme="dark"],
html[data-site-theme="dark"] body:not(.terminal-embedded) {
  background:
    radial-gradient(1000px 720px at 10% -10%, rgba(27, 139, 255, .23), transparent 68%),
    radial-gradient(900px 700px at 90% 5%, rgba(114, 79, 255, .20), transparent 70%),
    radial-gradient(800px 620px at 55% 105%, rgba(25, 210, 180, .10), transparent 70%),
    linear-gradient(145deg, #07111d 0%, #081426 35%, #0c1025 68%, #071719 100%) !important;
}

html[data-site-theme] body:not(.terminal-embedded) {
  color: var(--site-text) !important;
  transition: color 180ms ease, background-color 180ms ease;
}

body:not(.terminal-embedded)::before {
  display: block !important;
  content: "" !important;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(37, 112, 163, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 112, 163, .18) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .52), transparent 72%);
}

html[data-site-theme="dark"] body:not(.terminal-embedded)::before {
  opacity: .12;
  background-image:
    linear-gradient(rgba(103, 201, 255, .20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 201, 255, .20) 1px, transparent 1px);
}


html[data-site-theme] body:not(.terminal-embedded) .portfolio-page,
html[data-site-theme] body:not(.terminal-embedded) .dossier-page {
  background: transparent !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-nav {
  background: color-mix(in srgb, var(--site-bg-soft) 78%, transparent) !important;
  border-bottom-color: var(--site-line) !important;
  box-shadow: 0 16px 50px color-mix(in srgb, var(--site-text) 12%, transparent) !important;
  backdrop-filter: blur(12px) saturate(1.1);
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-title,
html[data-site-theme] body:not(.terminal-embedded) .hero h1,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-card h2,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-profile h2,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-explore h2,
html[data-site-theme] body:not(.terminal-embedded) .card b,
html[data-site-theme] body:not(.terminal-embedded) .spec span,
html[data-site-theme] body:not(.terminal-embedded) .game span,
html[data-site-theme] body:not(.terminal-embedded) .intel b,
html[data-site-theme] body:not(.terminal-embedded) .signal b {
  color: var(--site-text) !important;
  text-shadow: none !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-lead,
html[data-site-theme] body:not(.terminal-embedded) .hero p,
html[data-site-theme] body:not(.terminal-embedded) .lead,
html[data-site-theme] body:not(.terminal-embedded) .card p,
html[data-site-theme] body:not(.terminal-embedded) .split p,
html[data-site-theme] body:not(.terminal-embedded) .game i,
html[data-site-theme] body:not(.terminal-embedded) .callout p,
html[data-site-theme] body:not(.terminal-embedded) .intel p,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-route p,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-profile p,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-note,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-story p {
  color: var(--site-muted) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-kicker,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-title span,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-route small,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-story small,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-profile small,
html[data-site-theme] body:not(.terminal-embedded) .eyebrow,
html[data-site-theme] body:not(.terminal-embedded) .kicker,
html[data-site-theme] body:not(.terminal-embedded) .cyber-section h2,
html[data-site-theme] body:not(.terminal-embedded) .tag,
html[data-site-theme] body:not(.terminal-embedded) .spec b,
html[data-site-theme] body:not(.terminal-embedded) .game b,
html[data-site-theme] body:not(.terminal-embedded) .intel small {
  color: var(--site-blue) !important;
  text-shadow: none !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-card,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-item,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-wide,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-route,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-profile,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-note,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-story,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-bottom-tools,
html[data-site-theme] body:not(.terminal-embedded) .card,
html[data-site-theme] body:not(.terminal-embedded) .spec,
html[data-site-theme] body:not(.terminal-embedded) .game,
html[data-site-theme] body:not(.terminal-embedded) .split,
html[data-site-theme] body:not(.terminal-embedded) .intel,
html[data-site-theme] body:not(.terminal-embedded) .terminal {
  border-color: var(--site-line) !important;
  background: var(--site-card) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .20), var(--site-shadow) !important;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 220ms var(--ease) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-route:hover,
html[data-site-theme] body:not(.terminal-embedded) .card:hover,
html[data-site-theme] body:not(.terminal-embedded) .spec:hover,
html[data-site-theme] body:not(.terminal-embedded) .game:hover,
html[data-site-theme] body:not(.terminal-embedded) .intel:hover,
html[data-site-theme] body:not(.terminal-embedded) .terminal:hover {
  border-color: var(--site-line-strong) !important;
  background: var(--site-card-hover) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-stat,
html[data-site-theme] body:not(.terminal-embedded) .stats .stat {
  border-left-color: var(--site-cyan) !important;
  background: linear-gradient(100deg, color-mix(in srgb, var(--site-cyan) 16%, transparent), color-mix(in srgb, var(--site-violet) 10%, transparent)) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-cta,
html[data-site-theme] body:not(.terminal-embedded) .cta {
  border-color: transparent !important;
  background: linear-gradient(110deg, #2187bd, #7669c8) !important;
  color: #f5fbff !important;
}

html[data-site-theme="dark"] body:not(.terminal-embedded) .portfolio-cta,
html[data-site-theme="dark"] body:not(.terminal-embedded) .cta {
  background: linear-gradient(110deg, #2a9ddd, #7567db) !important;
  color: #f7fbff !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-terminal-link,
html[data-site-theme] body:not(.terminal-embedded) .dossier-back {
  border-color: var(--site-line-strong) !important;
  background: color-mix(in srgb, var(--site-cyan) 10%, transparent) !important;
  color: var(--site-text) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .site-dock {
  border-color: var(--site-line) !important;
  background: color-mix(in srgb, var(--site-bg-soft) 82%, transparent) !important;
  box-shadow: 0 18px 50px color-mix(in srgb, var(--site-text) 16%, transparent), inset 0 1px rgba(255,255,255,.22) !important;
  backdrop-filter: blur(12px) saturate(1.1);
}

html[data-site-theme] body:not(.terminal-embedded) .site-dock button,
html[data-site-theme] body:not(.terminal-embedded) .site-dock a,
html[data-site-theme] body:not(.terminal-embedded) .site-dock-clock {
  color: var(--site-muted) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .site-dock button:hover,
html[data-site-theme] body:not(.terminal-embedded) .site-dock a:hover,
html[data-site-theme] body:not(.terminal-embedded) .site-dock a.active,
html[data-site-theme] body:not(.terminal-embedded) .site-theme-toggle:hover {
  color: var(--site-text) !important;
  border-color: var(--site-line-strong) !important;
  background: color-mix(in srgb, var(--site-cyan) 11%, transparent) !important;
}

.site-theme-toggle {
  gap: 5px;
  min-width: 62px;
}

.site-theme-icon {
  color: var(--site-cyan);
  font-size: 14px;
  line-height: 1;
}

.site-theme-label {
  font-size: 9px;
}

html[data-site-theme="light"] .site-theme-icon::before { content: "☾"; }
html[data-site-theme="dark"] .site-theme-icon::before { content: "☀"; }
.site-theme-icon { font-size: 0; }
.site-theme-icon::before { font-size: 14px; }

html[data-site-theme] body:not(.terminal-embedded) .site-terminal-panel,
html[data-site-theme] body:not(.terminal-embedded) .site-tool-window {
  border-color: rgba(105, 190, 225, .40) !important;
  background: #081522 !important;
  color: #d9edf7 !important;
}

html[data-site-theme] body:not(.terminal-embedded) .site-terminal-bar,
html[data-site-theme] body:not(.terminal-embedded) .site-window-bar {
  background: linear-gradient(180deg, #10283d, #0a1b2b) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .site-window-content {
  background: #081522 !important;
  color: var(--tool-text) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .operations-frame {
  aspect-ratio: 16 / 9;
}

html[data-site-theme] body:not(.terminal-embedded) .operations-image {
  transform: none !important;
  opacity: 0 !important;
  transition: none !important;
  will-change: auto;
}

html[data-site-theme] body:not(.terminal-embedded) .operations-image.is-active {
  transform: none !important;
  opacity: 1 !important;
}

html[data-site-theme] body:not(.terminal-embedded) .operations-image.is-leaving,
html[data-site-theme] body:not(.terminal-embedded) .operations-image.is-reset {
  transform: none !important;
  opacity: 0 !important;
  transition: none !important;
}

html[data-site-theme] body:not(.terminal-embedded) .operations-caption small {
  color: var(--site-blue) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .operations-caption strong {
  color: var(--site-text) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .operations-caption p {
  color: var(--site-muted) !important;
}
@media (max-width: 760px) {
  .site-theme-toggle { min-width: 0; padding-inline: 7px !important; }
  .site-theme-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-site-theme] body:not(.terminal-embedded) .portfolio-card,
  html[data-site-theme] body:not(.terminal-embedded) .portfolio-item,
  html[data-site-theme] body:not(.terminal-embedded) .portfolio-route,
  html[data-site-theme] body:not(.terminal-embedded) .card,
  html[data-site-theme] body:not(.terminal-embedded) .spec,
  html[data-site-theme] body:not(.terminal-embedded) .game,
  html[data-site-theme] body:not(.terminal-embedded) .intel,
  html[data-site-theme] body:not(.terminal-embedded) .site-theme-toggle {
    transition: none !important;
  }
}
/* Terminal theme accents also cover static child windows in the parent shell. */
.site-terminal-overlay[data-terminal-theme="matrix"] .site-terminal-panel,
.site-tool-window[data-terminal-theme="matrix"] {
  border-color: rgba(33, 227, 93, .52) !important;
}
.site-terminal-overlay[data-terminal-theme="ocean"] .site-terminal-panel,
.site-tool-window[data-terminal-theme="ocean"] {
  border-color: rgba(85, 201, 255, .55) !important;
}
.site-terminal-overlay[data-terminal-theme="amber"] .site-terminal-panel,
.site-tool-window[data-terminal-theme="amber"] {
  border-color: rgba(255, 193, 90, .56) !important;
}
.site-terminal-overlay[data-terminal-theme="synth"] .site-terminal-panel,
.site-tool-window[data-terminal-theme="synth"] {
  border-color: rgba(255, 113, 206, .56) !important;
}
.site-tool-window[data-terminal-theme="matrix"] .tool-kicker,
.site-tool-window[data-terminal-theme="matrix"] .tool-row b,
.site-tool-window[data-terminal-theme="matrix"] .tool-card small {
  color: #52ff7a !important;
}
.site-tool-window[data-terminal-theme="ocean"] .tool-kicker,
.site-tool-window[data-terminal-theme="ocean"] .tool-row b,
.site-tool-window[data-terminal-theme="ocean"] .tool-card small {
  color: #8af4ff !important;
}
.site-tool-window[data-terminal-theme="amber"] .tool-kicker,
.site-tool-window[data-terminal-theme="amber"] .tool-row b,
.site-tool-window[data-terminal-theme="amber"] .tool-card small {
  color: #ffe1a1 !important;
}
.site-tool-window[data-terminal-theme="synth"] .tool-kicker,
.site-tool-window[data-terminal-theme="synth"] .tool-row b,
.site-tool-window[data-terminal-theme="synth"] .tool-card small {
  color: #ff71ce !important;
}
html[data-site-theme] body:not(.terminal-embedded) .portfolio-stat b,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-route h3,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-item h3,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-wide h3,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-feedback b,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-meta b {
  color: var(--site-text) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-stat small,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-meta,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-pulse,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-feedback p,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-item p,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-wide p,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-footer {
  color: var(--site-muted) !important;
}
/* Graphite Pearl / Aurora Graphite theme polish. */
html[data-site-theme="light"] {
  --site-bg: #cbd1d8;
  --site-bg-soft: #b8c2cc;
  --site-text: #111827;
  --site-muted: #334155;
  --site-dim: #475569;
  --site-blue: #155e87;
  --site-cyan: #155e87;
  --site-violet: #155e87;
  --site-green: #155e87;
  --site-line: rgba(48, 75, 101, .25);
  --site-line-strong: rgba(39, 108, 151, .52);
  --site-card: linear-gradient(145deg, rgba(218, 225, 232, .82), rgba(186, 198, 209, .78));
  --site-card-hover: linear-gradient(145deg, rgba(226, 231, 236, .88), rgba(194, 205, 215, .84));
  --site-shadow: 0 18px 46px rgba(44, 58, 73, .22);
}

html[data-site-theme="dark"] {
  --site-bg: #06090f;
  --site-bg-soft: #0b1220;
  --site-text: #f8fafc;
  --site-muted: #d5dee8;
  --site-dim: #aebdcc;
  --site-blue: #8bd8ff;
  --site-cyan: #8bd8ff;
  --site-violet: #8bd8ff;
  --site-green: #8bd8ff;
  --site-line: rgba(122, 180, 220, .19);
  --site-line-strong: rgba(99, 199, 255, .52);
  --site-card: linear-gradient(145deg, rgba(17, 28, 43, .9), rgba(10, 17, 29, .96));
  --site-card-hover: linear-gradient(145deg, rgba(23, 40, 61, .94), rgba(12, 22, 38, .98));
  --site-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

html[data-site-theme="light"],
html[data-site-theme="light"] body:not(.terminal-embedded) {
  background:
    radial-gradient(900px 600px at 12% 4%, rgba(65, 156, 220, .24), transparent 68%),
    radial-gradient(850px 650px at 88% 10%, rgba(112, 93, 190, .18), transparent 70%),
    radial-gradient(800px 600px at 50% 100%, rgba(41, 170, 160, .12), transparent 72%),
    linear-gradient(145deg, #cbd1d8 0%, #c4ccd5 35%, #cbc9d6 68%, #c3d0d0 100%) !important;
}

html[data-site-theme="dark"],
html[data-site-theme="dark"] body:not(.terminal-embedded) {
  background:
    radial-gradient(960px 640px at 10% -8%, rgba(35, 125, 222, .18), transparent 68%),
    radial-gradient(900px 680px at 92% 8%, rgba(112, 82, 218, .16), transparent 70%),
    radial-gradient(760px 560px at 52% 108%, rgba(30, 157, 151, .09), transparent 72%),
    linear-gradient(145deg, #06090f 0%, #090e17 36%, #101526 70%, #08131a 100%) !important;
}

html[data-site-theme] body:not(.terminal-embedded)::before {
  opacity: .09;
  background-image:
    linear-gradient(rgba(49, 95, 126, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 95, 126, .22) 1px, transparent 1px);
  background-size: 44px 44px;
}

html[data-site-theme="dark"] body:not(.terminal-embedded)::before { opacity: .11; }

html[data-site-theme] body:not(.terminal-embedded) .portfolio-nav,
html[data-site-theme] body:not(.terminal-embedded) .site-dock {
  background: color-mix(in srgb, var(--site-bg-soft) 84%, transparent) !important;
  border-color: var(--site-line) !important;
  box-shadow: 0 16px 42px color-mix(in srgb, var(--site-text) 14%, transparent), inset 0 1px rgba(255,255,255,.16) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-card,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-item,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-wide,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-route,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-profile,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-note,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-story,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-bottom-tools,
html[data-site-theme] body:not(.terminal-embedded) .card,
html[data-site-theme] body:not(.terminal-embedded) .spec,
html[data-site-theme] body:not(.terminal-embedded) .game,
html[data-site-theme] body:not(.terminal-embedded) .split,
html[data-site-theme] body:not(.terminal-embedded) .intel,
html[data-site-theme] body:not(.terminal-embedded) .terminal {
  border-color: var(--site-line) !important;
  background: var(--site-card) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.19), var(--site-shadow) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-route:hover,
html[data-site-theme] body:not(.terminal-embedded) .card:hover,
html[data-site-theme] body:not(.terminal-embedded) .spec:hover,
html[data-site-theme] body:not(.terminal-embedded) .game:hover,
html[data-site-theme] body:not(.terminal-embedded) .intel:hover,
html[data-site-theme] body:not(.terminal-embedded) .terminal:hover {
  border-color: var(--site-line-strong) !important;
  background: var(--site-card-hover) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-title,
html[data-site-theme] body:not(.terminal-embedded) .hero h1,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-card h2,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-profile h2,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-explore h2,
html[data-site-theme] body:not(.terminal-embedded) .card b,
html[data-site-theme] body:not(.terminal-embedded) .spec span,
html[data-site-theme] body:not(.terminal-embedded) .game span,
html[data-site-theme] body:not(.terminal-embedded) .intel b,
html[data-site-theme] body:not(.terminal-embedded) .signal b {
  color: var(--site-text) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-lead,
html[data-site-theme] body:not(.terminal-embedded) .hero p,
html[data-site-theme] body:not(.terminal-embedded) .lead,
html[data-site-theme] body:not(.terminal-embedded) .card p,
html[data-site-theme] body:not(.terminal-embedded) .split p,
html[data-site-theme] body:not(.terminal-embedded) .game i,
html[data-site-theme] body:not(.terminal-embedded) .callout p,
html[data-site-theme] body:not(.terminal-embedded) .intel p,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-route p,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-profile p,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-note,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-story p {
  color: var(--site-muted) !important;
}

/* Linux terminal chrome: restrained desktop-window geometry. */
:root {
  --terminal-font: "JetBrains Mono", "SFMono-Regular", "Fira Code", "Fira Mono", "DejaVu Sans Mono", "Liberation Mono", "Consolas", monospace;
}

.site-terminal-overlay {
  background: transparent;
  backdrop-filter: none;
}
.site-terminal-panel,
.site-tool-window {
  border: 1px solid rgba(139, 169, 194, .28) !important;
  border-radius: 9px !important;
  background: #0b1017 !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .48), 0 1px 0 rgba(255,255,255,.04) inset !important;
}
.site-terminal-bar,
.site-window-bar {
  min-height: 38px !important;
  padding: 0 12px !important;
  gap: 14px !important;
  border-bottom: 1px solid rgba(145, 171, 193, .16) !important;
  background: #151c25 !important;
  box-shadow: none !important;
}
.site-terminal-title,
.site-window-title {
  color: #b5c2cf !important;
  font: 12px/1 var(--terminal-font) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.site-terminal-title strong { color: #d7e2ec !important; font-weight: 500 !important; }
.site-terminal-controls,
.site-window-controls { gap: 7px !important; }
.site-terminal-control,
.site-window-control {
  width: 11px !important;
  height: 11px !important;
  box-shadow: none !important;
  transition: filter .16s ease, transform .16s ease !important;
}
.site-terminal-control.close,
.site-window-control.close { background: #ee6a61 !important; }
.site-terminal-control.minimize,
.site-window-control.minimize { background: #d9ad4f !important; }
.site-terminal-control.maximize,
.site-window-control.maximize { background: #57bd70 !important; }
.site-terminal-control:hover,
.site-window-control:hover { filter: brightness(1.14); transform: scale(1.08) !important; }
.site-window-actions { display: flex; align-items: center; }
.site-window-esc {
  min-width: 27px;
  padding: 4px 5px;
  border: 1px solid rgba(159, 181, 201, .22);
  border-radius: 4px;
  color: #8d9cab;
  background: transparent;
  font: 10px/1 var(--terminal-font);
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.site-window-esc:hover { color: #d8e3ec; border-color: rgba(159, 181, 201, .46); background: rgba(159,181,201,.08); }
.site-window-esc:active { background: rgba(159,181,201,.14); }
.site-window-esc:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.site-terminal-frame,
.site-window-frame { background: #070a0f !important; }
.site-window-content {
  padding: 18px 20px !important;
  background: #0b1017 !important;
  color: var(--tool-text) !important;
  font: 13px/1.55 var(--terminal-font) !important;
}
.tool-prompt { color: var(--tool-text) !important; font: 13px/1.4 var(--terminal-font) !important; }
.tool-kicker { margin-top: 5px; color: var(--tool-accent) !important; font: 10px/1.4 var(--terminal-font) !important; letter-spacing: .06em; }
.tool-profile { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); column-gap: 22px; align-items: start; margin-top: 20px; }
.tool-profile-details { grid-column: 2; min-width: 0; display: grid; gap: 3px; }
.tool-profile-mark { margin: 0; color: var(--tool-logo); font-family: "JetBrains Mono", "SFMono-Regular", "Fira Code", "Fira Mono", "DejaVu Sans Mono", "Liberation Mono", Consolas, monospace !important; font-size: 12px !important; font-weight: 400; line-height: 1.15; font-variant-ligatures: none; letter-spacing: normal; white-space: pre; max-width: 100%; overflow-x: auto; }
.tool-profile-name { color: var(--tool-text); font-weight: 600; }
.tool-profile-host { color: var(--tool-muted); }
.tool-profile-rule { color: var(--tool-rule); letter-spacing: .04em; }
.tool-list { grid-column: auto; }
.tool-row { display: grid; grid-template-columns: minmax(88px, 150px) minmax(0, 1fr); gap: 12px; padding: 3px 0; border: 0 !important; background: transparent !important; }
.tool-row b { color: var(--tool-accent) !important; font-weight: 500; }
.tool-row span { color: var(--tool-text); }
.tool-card-grid { display: block !important; margin-top: 18px; }
.tool-card {
  display: grid !important;
  grid-template-columns: minmax(100px, 170px) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 7px 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(145,171,193,.14) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.tool-card small { color: var(--tool-accent) !important; font: 10px/1.4 var(--terminal-font); }
.tool-card strong { color: var(--tool-text) !important; font: 13px/1.4 var(--terminal-font); }
.tool-card span { grid-column: 2; color: var(--tool-muted) !important; font: 11px/1.4 var(--terminal-font); }
.tool-contact-list { display: grid; gap: 0; margin-top: 18px; }
.tool-contact { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(145,171,193,.14); color: var(--tool-text) !important; text-decoration: none; }

body.terminal-embedded {
  background: #070a0f !important;
  color: #d6e0e9 !important;
  font-family: var(--terminal-font) !important;
}
body.terminal-embedded .terminal-window,
body.terminal-embedded .float-window {
  background: #070a0f !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.terminal-embedded .terminal-body {
  padding: 22px 26px 16px !important;
  gap: 4px !important;
  background: #070a0f !important;
  color: #d6e0e9 !important;
  font: 14px/1.55 var(--terminal-font) !important;
  scroll-behavior: auto !important;
}
body.terminal-embedded .terminal-output-line {
  padding: 1px 0 !important;
  color: #c9d4de !important;
  font: 14px/1.55 var(--terminal-font) !important;
  animation: none !important;
}
body.terminal-embedded .prompt-line {
  min-height: 42px;
  padding: 8px 26px !important;
  border-top: 1px solid rgba(145,171,193,.16) !important;
  background: #0b1017 !important;
  font: 14px/1.55 var(--terminal-font) !important;
}
body.terminal-embedded .prompt {
  color: #76d6a7 !important;
  font: 14px/1.55 var(--terminal-font) !important;
  text-shadow: none !important;
}
body.terminal-embedded .prompt::before { content: "" !important; }
body.terminal-embedded .cmd-input {
  color: #d6e0e9 !important;
  font: 14px/1.55 var(--terminal-font) !important;
}
body.terminal-embedded .terminal-command-output,
body.terminal-embedded .terminal-help {
  margin: 0;
  color: #c9d4de;
  font: 13px/1.6 var(--terminal-font);
  white-space: pre-wrap;
}
body.terminal-embedded .terminal-help strong { color: #71d4e5; font-weight: 600; }
body.terminal-embedded .terminal-help-tip { color: #738493; }
body.terminal-embedded .terminal-error { color: #f08b83; }
body.terminal-embedded .terminal-interrupt { color: #d6e0e9; }
body.terminal-embedded .fastfetch-layout { gap: 24px !important; }
body.terminal-embedded .fastfetch-layout .cachy-logo { color: #71d4e5 !important; text-shadow: none !important; }
body.terminal-embedded .fastfetch-row { grid-template-columns: 120px minmax(0, 1fr) !important; gap: 12px !important; }
body.terminal-embedded .fastfetch-row .info-key { color: #71d4e5 !important; }

html[data-theme="matrix"] body.terminal-embedded .terminal-body,
html[data-theme="matrix"] body.terminal-embedded .prompt-line { background: #07110a !important; }
html[data-theme="ocean"] body.terminal-embedded .terminal-body,
html[data-theme="ocean"] body.terminal-embedded .prompt-line { background: #07101b !important; }
html[data-theme="amber"] body.terminal-embedded .terminal-body,
html[data-theme="amber"] body.terminal-embedded .prompt-line { background: #110d07 !important; }
html[data-theme="synth"] body.terminal-embedded .terminal-body,
html[data-theme="synth"] body.terminal-embedded .prompt-line { background: #100a16 !important; }
html[data-theme="matrix"] body.terminal-embedded .terminal-output-line,
html[data-theme="matrix"] body.terminal-embedded .terminal-command-output { color: #b9e8bf !important; }
html[data-theme="ocean"] body.terminal-embedded .terminal-output-line,
html[data-theme="ocean"] body.terminal-embedded .terminal-command-output { color: #c2e6f4 !important; }
html[data-theme="amber"] body.terminal-embedded .terminal-output-line,
html[data-theme="amber"] body.terminal-embedded .terminal-command-output { color: #ead8b0 !important; }
html[data-theme="synth"] body.terminal-embedded .terminal-output-line,
html[data-theme="synth"] body.terminal-embedded .terminal-command-output { color: #ead2ee !important; }

@media (max-width: 760px) {
  .tool-profile { grid-template-columns: 1fr; row-gap: 12px; }
  .tool-profile-mark { font-size: 10px !important; }
  .tool-profile-details { grid-column: 1; }
  .tool-card { grid-template-columns: minmax(88px, 1fr) minmax(0, 1.5fr); }
  body.terminal-embedded .terminal-body { padding: 16px 14px 12px !important; font-size: 13px !important; }
  body.terminal-embedded .prompt-line { padding-inline: 14px !important; }
  body.terminal-embedded .terminal-output-line,
  body.terminal-embedded .terminal-command-output,
  body.terminal-embedded .terminal-help { font-size: 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-site-theme] body:not(.terminal-embedded) *,
  .site-window-esc,
  .site-terminal-control,
  .site-window-control {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.terminal-status {
  color: #8998a6 !important;
  font: 10px/1 var(--terminal-font) !important;
  letter-spacing: .03em !important;
  text-shadow: none !important;
}
.terminal-status::before { content: none !important; }
.prompt-user { color: #76d6a7; }
.prompt-host { color: #71d4e5; }
.prompt-path { color: #b0a1ed; }
.prompt-symbol { color: #d6e0e9; margin-left: 5px; }
.terminal-title span { color: #71d4e5 !important; text-shadow: none !important; }
@media (prefers-reduced-motion: reduce) {
  .site-terminal-overlay,
  .site-terminal-overlay *,
  .site-tool-window,
  .site-tool-window * {
    transition: none !important;
    animation: none !important;
  }
}
/* Minimal Fancy theme refresh: one restrained design language across the site. */
:root {
  --site-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --site-radius: 14px;
  --tool-text: #e5edf3;
  --tool-muted: #aebdcc;
  --tool-accent: #8bd8ff;
  --tool-logo: #71d4e5;
  --tool-rule: #627483;
  --text-primary-light: #111827;
  --text-secondary-light: #334155;
  --text-muted-light: #475569;
  --text-primary-dark: #f8fafc;
  --text-secondary-dark: #d5dee8;
  --text-muted-dark: #aebdcc;
  --text-accent-light: #155e87;
  --text-accent-dark: #8bd8ff;
  --text-on-accent-light: #f8fafc;
  --text-on-accent-dark: #071019;
  --text-accent: var(--text-accent-dark);
  --site-blue: var(--text-accent);
  --site-cyan: var(--text-accent);
  --site-violet: var(--text-accent);
}

html[data-site-theme="light"] {
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --text-muted: var(--text-muted-light);
  --text-accent: var(--text-accent-light);
  --text-on-accent: var(--text-on-accent-light);
  --site-bg: #e1e6ea;
  --site-bg-soft: #d5dde3;
  --site-text: var(--text-primary);
  --site-muted: var(--text-secondary);
  --site-dim: var(--text-muted);
  --site-blue: var(--text-accent);
  --site-cyan: var(--text-accent);
  --site-violet: var(--text-accent);
  --site-line: rgba(54, 82, 103, .23);
  --site-line-strong: rgba(44, 126, 172, .52);
  --site-card: linear-gradient(145deg, rgba(244, 247, 248, .76), rgba(207, 216, 223, .84));
  --site-card-hover: linear-gradient(145deg, rgba(248, 250, 250, .82), rgba(218, 226, 232, .9));
  --site-shadow: 0 18px 44px rgba(52, 70, 84, .16);
}

html[data-site-theme="dark"] {
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
  --text-muted: var(--text-muted-dark);
  --text-accent: var(--text-accent-dark);
  --text-on-accent: var(--text-on-accent-dark);
  --site-bg: #090c11;
  --site-bg-soft: #111820;
  --site-text: var(--text-primary);
  --site-muted: var(--text-secondary);
  --site-dim: var(--text-muted);
  --site-blue: var(--text-accent);
  --site-cyan: var(--text-accent);
  --site-violet: var(--text-accent);
  --site-line: rgba(174, 207, 225, .18);
  --site-line-strong: rgba(141, 210, 247, .52);
  --site-card: linear-gradient(145deg, rgba(22, 29, 37, .92), rgba(12, 17, 23, .97));
  --site-card-hover: linear-gradient(145deg, rgba(28, 38, 48, .95), rgba(15, 22, 30, .98));
  --site-shadow: 0 24px 60px rgba(0, 0, 0, .34);
}


html[data-site-theme="light"],
html[data-site-theme="light"] body:not(.terminal-embedded) {
  background:
    radial-gradient(760px 480px at 12% 0%, rgba(129, 190, 221, .2), transparent 70%),
    radial-gradient(680px 520px at 90% 12%, rgba(158, 145, 207, .14), transparent 72%),
    linear-gradient(145deg, #e9edf0 0%, #dce3e8 42%, #e6e4eb 72%, #dce7e5 100%) !important;
}

html[data-site-theme="dark"],
html[data-site-theme="dark"] body:not(.terminal-embedded) {
  background:
    radial-gradient(820px 540px at 8% -12%, rgba(74, 131, 174, .13), transparent 70%),
    radial-gradient(760px 580px at 92% 5%, rgba(102, 91, 159, .11), transparent 72%),
    linear-gradient(145deg, #090c11 0%, #0d1218 46%, #11161d 74%, #0b1215 100%) !important;
}

body:not(.terminal-embedded),
body:not(.terminal-embedded) *,
body:not(.terminal-embedded) button,
body:not(.terminal-embedded) input,
body:not(.terminal-embedded) textarea,
body:not(.terminal-embedded) select {
  font-family: var(--site-font) !important;
}
html[data-site-theme] body:not(.terminal-embedded) {
  color: var(--text-primary) !important;
}

html[data-site-theme] body:not(.terminal-embedded) :where(h1, h2, h3, h4, h5, h6, strong, b, dt, dd, button, input, textarea, select) {
  color: var(--text-primary) !important;
  text-shadow: none !important;
}

html[data-site-theme] body:not(.terminal-embedded) :where(p, li) {
  color: var(--text-secondary) !important;
  text-shadow: none !important;
}

html[data-site-theme] body:not(.terminal-embedded) :where(small, label, time, figcaption, blockquote, i, .signal span) {
  color: var(--text-muted) !important;
  text-shadow: none !important;
}

html[data-site-theme] body:not(.terminal-embedded) a {
  color: var(--text-accent) !important;
  text-shadow: none !important;
}

body:not(.terminal-embedded)::before {
  opacity: .1 !important;
  background-image:
    linear-gradient(var(--site-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--site-line) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .5), transparent 78%) !important;
}

html[data-site-theme="dark"] body:not(.terminal-embedded)::before { opacity: .08 !important; }
body:not(.terminal-embedded) .portfolio-page,
body:not(.terminal-embedded) .page,
body:not(.terminal-embedded) .dossier-page {
  background: transparent !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-nav,
html[data-site-theme] body:not(.terminal-embedded) .site-dock {
  border-color: var(--site-line) !important;
  background: rgba(224, 231, 236, .78) !important;
  box-shadow: 0 14px 34px rgba(42, 56, 68, .14), inset 0 1px rgba(255, 255, 255, .48) !important;
  backdrop-filter: none !important;
}

html[data-site-theme="dark"] body:not(.terminal-embedded) .portfolio-nav,
html[data-site-theme="dark"] body:not(.terminal-embedded) .site-dock {
  background: rgba(17, 24, 32, .88) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .05) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-title,
html[data-site-theme] body:not(.terminal-embedded) .hero h1,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-card h2,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-profile h2,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-explore h2,
html[data-site-theme] body:not(.terminal-embedded) .card b,
html[data-site-theme] body:not(.terminal-embedded) .spec span,
html[data-site-theme] body:not(.terminal-embedded) .game span,
html[data-site-theme] body:not(.terminal-embedded) .intel b,
html[data-site-theme] body:not(.terminal-embedded) .signal b,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-stat b,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-route h3 {
  color: var(--site-text) !important;
  text-shadow: none !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-lead,
html[data-site-theme] body:not(.terminal-embedded) .hero p,
html[data-site-theme] body:not(.terminal-embedded) .lead,
html[data-site-theme] body:not(.terminal-embedded) .card p,
html[data-site-theme] body:not(.terminal-embedded) .split p,
html[data-site-theme] body:not(.terminal-embedded) .game i,
html[data-site-theme] body:not(.terminal-embedded) .callout p,
html[data-site-theme] body:not(.terminal-embedded) .intel p,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-route p,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-profile p,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-note,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-story p {
  color: var(--text-secondary) !important;
  text-shadow: none !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-footer,
html[data-site-theme] body:not(.terminal-embedded) .footer {
  color: var(--text-muted) !important;
  text-shadow: none !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-title span,
html[data-site-theme] body:not(.terminal-embedded) .hero h1 span,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-kicker,
html[data-site-theme] body:not(.terminal-embedded) .section-index,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-item .tag,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-clock,
html[data-site-theme] body:not(.terminal-embedded) .cyber-section h2,
html[data-site-theme] body:not(.terminal-embedded) .tag,
html[data-site-theme] body:not(.terminal-embedded) .kicker,
html[data-site-theme] body:not(.terminal-embedded) .eyebrow,
html[data-site-theme] body:not(.terminal-embedded) .spec b,
html[data-site-theme] body:not(.terminal-embedded) .game b,
html[data-site-theme] body:not(.terminal-embedded) .intel small {
  color: var(--site-blue) !important;
  text-shadow: none !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-card,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-item,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-wide,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-route,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-profile,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-note,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-story,
html[data-site-theme] body:not(.terminal-embedded) .portfolio-bottom-tools,
html[data-site-theme] body:not(.terminal-embedded) .card,
html[data-site-theme] body:not(.terminal-embedded) .spec,
html[data-site-theme] body:not(.terminal-embedded) .game,
html[data-site-theme] body:not(.terminal-embedded) .split,
html[data-site-theme] body:not(.terminal-embedded) .intel,
html[data-site-theme] body:not(.terminal-embedded) .signal,
html[data-site-theme] body:not(.terminal-embedded) .terminal {
  border-color: var(--site-line) !important;
  border-radius: var(--site-radius) !important;
  background: var(--site-card) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .16), var(--site-shadow) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-route:hover,
html[data-site-theme] body:not(.terminal-embedded) .card:hover,
html[data-site-theme] body:not(.terminal-embedded) .spec:hover,
html[data-site-theme] body:not(.terminal-embedded) .game:hover,
html[data-site-theme] body:not(.terminal-embedded) .intel:hover,
html[data-site-theme] body:not(.terminal-embedded) .terminal:hover {
  border-color: var(--site-line-strong) !important;
  background: var(--site-card-hover) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 18px 42px color-mix(in srgb, var(--site-text) 12%, transparent) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-cta,
html[data-site-theme] body:not(.terminal-embedded) .cta {
  border: 1px solid var(--site-line-strong) !important;
  border-radius: 9px !important;
  background: var(--site-blue) !important;
  color: var(--text-on-accent) !important;
  box-shadow: none !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-terminal-link {
  border-color: var(--site-line-strong) !important;
  border-radius: 9px !important;
  background: color-mix(in srgb, var(--site-blue) 10%, transparent) !important;
  color: var(--site-text) !important;
  box-shadow: none !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-stat,
html[data-site-theme] body:not(.terminal-embedded) .stats .stat {
  border-left-color: var(--site-blue) !important;
  background: color-mix(in srgb, var(--site-blue) 9%, transparent) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .portfolio-progress span {
  background: var(--site-blue) !important;
  box-shadow: none !important;
}

html[data-site-theme] body:not(.terminal-embedded) .site-dock button,
html[data-site-theme] body:not(.terminal-embedded) .site-dock a {
  color: var(--site-muted) !important;
  font-family: var(--site-font) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .site-dock button:hover,
html[data-site-theme] body:not(.terminal-embedded) .site-dock a:hover,
html[data-site-theme] body:not(.terminal-embedded) .site-dock a.active {
  border-color: var(--site-line-strong) !important;
  background: color-mix(in srgb, var(--site-blue) 10%, transparent) !important;
  color: var(--site-text) !important;
}

html[data-site-theme] body:not(.terminal-embedded) .site-dock .dock-terminal,
html[data-site-theme] body:not(.terminal-embedded) .site-dock-clock {
  color: var(--site-blue) !important;
}

/* The terminal keeps its Linux identity; only the surrounding treatment is quieter. */
.site-terminal-overlay {
  background: transparent !important;
  backdrop-filter: none !important;
  pointer-events: none !important;
}

.site-terminal-panel,
.site-tool-window {
  border: 1px solid rgba(145, 181, 204, .3) !important;
  border-radius: 10px !important;
  background: #0b1017 !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .04) !important;
}

.site-terminal-bar,
.site-window-bar {
  min-height: 40px !important;
  background: #151c25 !important;
  border-bottom-color: rgba(145, 181, 204, .18) !important;
  box-shadow: none !important;
}

.site-terminal-title,
.site-window-title,
.site-terminal-title strong {
  color: #d9e5ed !important;
  font-family: var(--terminal-font) !important;
  text-shadow: none !important;
}

.site-terminal-control,
.site-window-control {
  box-shadow: none !important;
}

.site-window-esc {
  color: #a9bac6 !important;
  border-color: rgba(145, 181, 204, .28) !important;
  background: transparent !important;
  font-family: var(--terminal-font) !important;
}

.site-terminal-frame,
.site-window-frame,
.site-window-content {
  background: #080d14 !important;
}

.site-window-content {
  color: var(--tool-text) !important;
  font-family: var(--terminal-font) !important;
}

body.terminal-embedded,
body.terminal-embedded * {
  font-family: var(--terminal-font) !important;
}

body.terminal-embedded {
  background: #080d14 !important;
  color: #d4e0e8 !important;
}

body.terminal-embedded .terminal-window,
body.terminal-embedded .float-window,
body.terminal-embedded .terminal-body {
  background: #080d14 !important;
  box-shadow: none !important;
}

body.terminal-embedded .terminal-body {
  padding: 22px 26px 16px !important;
  color: #d4e0e8 !important;
  font-size: 14px !important;
}

body.terminal-embedded .terminal-output-line,
body.terminal-embedded .terminal-command-output,
body.terminal-embedded .terminal-help {
  color: #c8d5de !important;
  text-shadow: none !important;
}

body.terminal-embedded .prompt-line {
  background: #0d141c !important;
  border-top-color: rgba(145, 181, 204, .18) !important;
}

body.terminal-embedded .prompt-user,
body.terminal-embedded .prompt-host,
body.terminal-embedded .prompt-path,
body.terminal-embedded .prompt-symbol {
  text-shadow: none !important;
}

body.terminal-embedded .prompt-user { color: #9ed2f0 !important; }
body.terminal-embedded .prompt-host { color: #a9e3ed !important; }
body.terminal-embedded .prompt-path { color: #c0b9f0 !important; }
body.terminal-embedded .prompt-symbol,
body.terminal-embedded .cmd-input { color: #d4e0e8 !important; }

body.terminal-embedded .tool-kicker,
body.terminal-embedded .tool-row b,
body.terminal-embedded .tool-card small,
body.terminal-embedded .terminal-help strong {
  color: #9ed2f0 !important;
}

html[data-site-theme] body:not(.terminal-embedded) .site-tool-window .tool-profile-mark {
  font-family: "JetBrains Mono", "SFMono-Regular", "Fira Code", "Fira Mono", "DejaVu Sans Mono", "Liberation Mono", Consolas, monospace !important;
}

@media (max-width: 760px) {
  .portfolio-wrap,
  .page-inner {
    width: min(100%, calc(100% - 28px)) !important;
  }

  body.site-secondary .hero h1 {
    font-size: clamp(3.8rem, 18vw, 6.5rem) !important;
  }

  .site-terminal-panel,
  .site-tool-window {
    border-radius: 10px !important;
  }
}
