@font-face {
  font-family: Geist Mono;
  src: url(GeistMono.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url(Geist.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --background: #0b0d12;
  --anthracite: #22242d;
  --sidebar: #11151d;
  --panel: #191e28;
  --glass: #222833;
  --primary: #ff9345;
  --hover: #ffad70;
  --pressed: #c96b2d;
  --text: #cdd3dd;
  --secondary: #858e9d;
  --border: #303640;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --sans: Geist, system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --tint: color-mix(in srgb, var(--primary) 13%, var(--panel));
  --glow: color-mix(in srgb, var(--primary) 25%, transparent);
  --terminal-gutter: 8px;
  --footer-clearance: 53px;
  --terminal-width: calc(100vw - 2 * var(--terminal-gutter));
  --terminal-scale: 1.15;
  --scaled-terminal-width: min(var(--terminal-width), calc((100vw - 2 * var(--terminal-gutter)) / var(--terminal-scale)));
  --utility-terminal-width: 383.25px;
  --utility-terminal-height: 478px;
  --terminal-halo: 0 0 50px 12px transparent;
  color-scheme: dark;
  color: var(--text);
  background: var(--anthracite);
  font: 14px/1.55 var(--mono);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
#site-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--hover); }
a:active { color: var(--pressed); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
::selection { color: var(--background); background: var(--hover); }
html { overflow-x: clip; overscroll-behavior-y: none; scroll-padding-top: 60px; scrollbar-color: var(--border) var(--background); }

.skip-link {
  position: fixed;
  z-index: 20;
  left: 12px;
  top: 12px;
  padding: 8px 12px;
  background: var(--sidebar);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.glass {
  display: flex;
  align-items: center;
  position: fixed;
  z-index: 10;
  left: 9px;
  right: 9px;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--sidebar) 70%, transparent);
  box-shadow: 0 8px 30px -16px #000;
  backdrop-filter: blur(12px);
}
.bar { top: 9px; min-height: 41px; padding: 3px 5px; justify-content: space-between; }
.bar nav, .system-tray { display: flex; align-items: center; gap: 5px; }
.bar nav a, .chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: .035em;
  min-height: 31px;
  padding: 0 8px;
}
.bar nav a {
  gap: 7px;
  color: var(--secondary);
  text-transform: uppercase;
  transition: color .16s var(--ease), background-color .16s var(--ease), box-shadow .16s var(--ease);
}
.bar nav b {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 6px;
  color: var(--primary);
  background: var(--tint);
}
.bar nav a:hover { color: var(--hover); background: var(--glass); }
.bar nav a[aria-current] { color: var(--background); background: var(--primary); box-shadow: 0 0 16px var(--glow); }
.bar nav a[aria-current] b { color: var(--background); background: color-mix(in srgb, var(--background) 16%, transparent); }
.system-tray { min-width: 0; }
.chip { gap: 7px; color: var(--secondary); border-color: var(--border); background: var(--sidebar); }
.chip span:first-child { color: var(--primary); }
#event-log { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 9px var(--primary); }
.clock { min-width: 67px; font-variant-numeric: tabular-nums; }
.status {
  bottom: 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "controls credit privacy";
  min-height: 36px;
  padding: 3px 9px;
  font-size: 11px;
  color: var(--secondary);
}
.footer-controls { grid-area: controls; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.footer-credit { grid-area: credit; margin: 0; text-align: center; }
.footer-credit a { font-weight: 700; }
#open-privacy { grid-area: privacy; justify-self: end; }
.status button, .contact-action, #external a, #external button, #skip-boot, #close-launcher {
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--primary);
  background: var(--tint);
  padding: .35em .8em;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.status button { white-space: nowrap; }
@media (max-width: 767px) {
  :root { --footer-clearance: 76px; }
  .status {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "controls privacy" "credit credit";
    row-gap: 4px;
    padding-block: 5px;
  }
}
@media (max-width: 360px) {
  .status { padding-inline: 6px; font-size: 10px; }
  .status button { padding-inline: 5px; }
}
.status button:hover, .contact-action:hover, #external a:hover, #external button:hover, #skip-boot:hover, #close-launcher:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--background);
}

#desktop { padding: 55px 0 var(--footer-clearance); }
.workspace { padding: clamp(15px, 3vw, 32px) var(--terminal-gutter); }
.window {
  width: min(var(--terminal-width), 100%);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel) 83%, var(--background));
  box-shadow: 0 18px 50px -28px #000, inset 0 0 0 1px #ffffff04, var(--terminal-halo);
}
#desktop .window {
  width: min(var(--scaled-terminal-width), 100%);
  zoom: var(--terminal-scale);
}
:is(.window, #qmedia-detail):focus-visible { outline: none; }
@media (hover: hover) {
  :is(.window, #qmedia-detail) { transition: box-shadow .24s var(--ease); }
  :is(.window, #qmedia-detail):hover { --terminal-halo: 0 0 50px 12px var(--glow); }
}
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  background: var(--glass);
  color: var(--secondary);
  min-height: 35px;
  padding: 5px 13px;
  font-size: 11px;
  letter-spacing: .06em;
}
.titlebar > span:last-child { color: var(--primary); white-space: nowrap; }
.terminal-host { color: var(--primary); }
.window-body { padding: clamp(17px, 3vw, 34px); }

.neofetch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 21px; }
@media (min-width: 720px) {
  .neofetch { grid-template-columns: minmax(0, 1fr) minmax(0, 36%); align-items: center; gap: 36px; }
}
.mark { margin: 0; justify-self: center; text-align: center; color: var(--primary); }
#home-logo { display: block; width: clamp(220px, 27vw, 360px); max-width: 100%; height: auto; }
.home-untyped, .home-info.writing .caret { opacity: 0; }
#home .mark.is-entering { animation: home-logo-in .85s .22s var(--ease) both; }
@keyframes home-logo-in { from { opacity: 0; transform: translateX(12px); } }
.mark pre {
  margin: 0;
  width: 26ch;
  min-height: 153px;
  font: 10px/9px var(--mono);
  text-align: left;
  text-shadow: 0 0 14px var(--glow);
}
.mark figcaption { margin-top: 7px; font-size: 12px; letter-spacing: .11em; }
.host { color: var(--primary); margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); font-size: 16px; }
.facts { display: grid; gap: 4px; margin: 0 0 24px; font-size: 14px; }
.facts div { display: grid; grid-template-columns: minmax(72px, 105px) minmax(0, 1fr); gap: 13px; }
.facts dt { color: var(--primary); }
.facts dd { color: var(--secondary); margin: 0; }
h1 { font-size: clamp(26px, 4.4vw, 43px); letter-spacing: -.025em; font-weight: 650; line-height: 1.15; max-width: 18ch; margin: 0 0 12px; }
h1 em { color: var(--primary); font-style: normal; text-shadow: 0 0 20px var(--glow); }
h1 .accent-dot { color: var(--primary); }
h1 .ink-dot { color: var(--text); text-shadow: none; }
.intro { color: var(--secondary); font: 15px/1.65 var(--sans); max-width: 60ch; margin: 0; }
kbd { color: var(--primary); font: .8em var(--mono); background: var(--sidebar); border: 1px solid var(--border); border-radius: 3px; padding: 0 .35em; }
.caret {
  display: inline-block;
  vertical-align: -.15em;
  margin-left: .35ch;
  width: .58ch;
  height: 1em;
  background: var(--primary);
  animation: blink 1.05s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.command { color: var(--text); margin: 0 0 17px; }
.command b { color: var(--primary); margin-right: 6px; }
.command .comment { margin-left: 1ch; color: var(--secondary); }
.notes { max-width: 80ch; }
.note {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
}
.note > span, .listing h2 { color: var(--primary); }
.note h2, .listing h2 { font-size: 14px; margin: 0 0 4px; }
.note p { margin: 0; color: var(--secondary); font: 15px/1.62 var(--sans); }
.end { margin: 15px 0 0; color: var(--secondary); font-size: 12px; }
.dev-notes article { padding-block: 12px; border-bottom: 1px solid var(--border); }
.dev-notes h2 { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0 0 5px; font-size: 14px; }
.dev-notes time { color: var(--primary); }
.dev-notes p { margin: 0; color: var(--secondary); white-space: pre-line; overflow-wrap: anywhere; }
.dev-notes h2 span { min-width: 0; overflow-wrap: anywhere; }
.units { list-style: none; margin: 0 0 16px; padding: 0; }
.units:last-child { margin-bottom: 0; }
.units li {
  display: grid;
  grid-template-columns: minmax(140px, 25%) 1fr;
  gap: 4px 14px;
  border-bottom: 1px solid var(--border);
  padding: 7px 4px;
  transition: background .16s var(--ease);
}
.units li:hover { background: var(--sidebar); }
.units li span { color: var(--secondary); }
.units.projects li { grid-template-columns: minmax(128px, 22%) 1fr auto; }
.contact-lead { font: 550 clamp(19px, 3vw, 25px)/1.3 var(--sans); margin: 0 0 18px; }
.channels {
  display: grid;
  grid-template-columns: minmax(0, 80px) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
}
.channels + .channels { margin-top: 8px; }
.contact-label { color: var(--secondary); }
.contact-action { justify-self: end; max-width: 13em; text-align: center; }
@media (max-width: 480px) {
  .channels { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
  .contact-label { grid-column: 1 / -1; }
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 12px var(--terminal-gutter);
  background: var(--anthracite);
  transition: opacity .3s ease;
}
.boot.exiting { opacity: 0; pointer-events: none; }
.boot .window, #launcher {
  width: min(var(--utility-terminal-width), calc(100vw - 2 * var(--terminal-gutter)));
  height: min(var(--utility-terminal-height), calc(100dvh - 24px));
  overflow: auto;
}
#launcher {
  width: min(var(--utility-terminal-width), var(--scaled-terminal-width));
  height: min(var(--utility-terminal-height), calc((100dvh - 24px) / var(--terminal-scale)));
}
.boot .window-body { padding: clamp(12px, 2.5vw, 18px); }
.boot .titlebar { position: sticky; top: 0; z-index: 1; }
.boot-content { display: grid; gap: 14px; }
#boot-log { min-height: 20.2em; margin: 0; font: clamp(11px, 1.5vw, 13px)/1.55 var(--mono); color: var(--secondary); white-space: pre-wrap; overflow-wrap: anywhere; }
.boot.quick-boot #boot-log { min-height: 0; }
@media (min-width: 620px) {
  :root { --utility-terminal-width: 598.5px; --utility-terminal-height: 378px; }
  .boot-content { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
}
#boot-log strong { color: var(--primary); font-weight: 500; }
#skip-boot { background: var(--sidebar); font-size: 12px; }
html.booting #home .mark, html.booting .home-info {
  visibility: hidden;
}
@keyframes output-in { from { opacity: 0; translate: 0 3px; } }

/* Show a single panel even when the browser cannot run JavaScript. */
#desktop .workspace { display: none; }
.workspace-scroll { display: contents; }
.terminal-ready #desktop .workspace.active,
html:not(.terminal-ready) #desktop .workspace:target,
html:not(.terminal-ready) #desktop:not(:has(.workspace:target)) #home {
  display: grid;
  min-height: calc(100svh - 55px - var(--footer-clearance));
  grid-auto-rows: max-content;
  align-content: safe center;
  justify-items: center;
}

@media (min-width: 768px) {
  :root { --terminal-gutter: 24px; --terminal-width: min(1130px, calc(100vw - 2 * var(--terminal-gutter))); }
  #desktop { padding-top: 53px; padding-bottom: 49px; }
  #desktop .workspace { padding-block: 24px; }
  .terminal-ready #desktop .workspace.active,
  html:not(.terminal-ready) #desktop .workspace:target,
  html:not(.terminal-ready) #desktop:not(:has(.workspace:target)) #home {
    min-height: calc(100svh - 102px);
  }
}
@media (min-width: 768px) and (hover: none) and (pointer: coarse) and (max-height: 550px) {
  :root { --terminal-width: calc(100vw - 2 * var(--terminal-gutter)); }
}

.workspace.replay .window { animation: workspace-in .48s var(--ease) both; }
.workspace.replay .output { animation: output-in .28s .14s var(--ease) both; }

html.desktop-cube body { overflow: hidden; height: 100dvh; perspective: 1900px; }
.desktop-cube #desktop {
  position: fixed;
  inset: 53px 0 49px;
  padding: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(-1 * var(--cube-depth))) rotateY(calc(-1 * var(--cube-index) * var(--cube-step)));
  transition: transform .72s var(--ease);
}
.desktop-cube #desktop .workspace {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transform: rotateY(calc(var(--cube-face) * var(--cube-step))) translateZ(var(--cube-depth));
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease);
}
.desktop-cube #desktop .workspace-scroll {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-rows: max-content;
  align-content: safe center;
  justify-items: center;
  padding: 24px var(--terminal-gutter);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.desktop-cube #desktop .workspace.active { opacity: 1; pointer-events: auto; }

@keyframes workspace-in {
  from {
    opacity: 0;
    transform: perspective(1900px) translateX(calc(var(--direction) * 16px)) rotateY(calc(var(--direction) * 9deg));
  }
}

dialog {
  color: var(--text);
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: min(560px, calc(100vw - 26px));
  box-shadow: 0 20px 60px #000a;
  padding: 0;
}
dialog[open] { animation: output-in .19s var(--ease) both; }
dialog::backdrop { background: #0b0d12ba; backdrop-filter: blur(5px); }
dialog:not(#media-zoom) {
  zoom: var(--terminal-scale);
  max-height: calc((100dvh - 32px) / var(--terminal-scale));
}
#external { width: min(560px, calc((100vw - 26px) / var(--terminal-scale))); }
:is(#tech-detail, #qmedia-detail, #privacy-detail) {
  width: var(--scaled-terminal-width);
  max-width: none;
}
#launcher {
  max-width: none;
  overscroll-behavior: contain;
  background: var(--sidebar);
  border-radius: 7px;
}
#launcher[open] { display: flex; flex-direction: column; }
#launcher .titlebar { position: sticky; top: 0; z-index: 1; }
#launcher .window-body { padding: clamp(10px, 2vw, 12px); }
.launcher-content { flex: 1; display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: 8px; }
.launcher-session { display: flex; flex-direction: column; width: min(100%, 420px); }
#launcher .mark pre { margin-inline: auto; font-size: 9px; line-height: 7px; min-height: 119px; }
#launcher .mark { min-height: 160px; }
#launcher .mark figcaption { line-height: 1.35; }
@media (max-width: 619px) {
  #launcher .mark pre { font-size: 10px; line-height: 9px; min-height: 153px; }
  #launcher .mark { min-height: 197px; }
}
#launcher-since { display: block; margin-top: 3px; text-align: center; color: var(--secondary); letter-spacing: normal; }
#launcher-countdown {
  min-height: 6lh;
  margin: 0 0 6px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}
#launcher-countdown span { color: var(--primary); }
#command-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
}
#command-form:not([hidden]) { animation: launcher-prompt-in .32s var(--ease) both; }
@keyframes launcher-prompt-in { from { opacity: 0; } }
#command-form label { white-space: nowrap; font-size: clamp(11px, 3.3vw, 14px); }
#command-input {
  flex: 1;
  width: 0;
  min-width: 0;
  min-height: 38px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  caret-color: var(--primary);
  font-size: 16px;
}
#command-input:focus { outline: 0; }
#command-form:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
#command-output { margin: 0 0 8px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
#privacy-detail { overscroll-behavior: contain; border-radius: 7px; }
#privacy-title { margin: 0 0 16px; font-size: clamp(22px, 4vw, 34px); }
.privacy-notes { margin: 0; padding-inline-start: 2em; }
.privacy-notes li + li { margin-top: 16px; }
.privacy-notes li::marker { color: var(--primary); }
.privacy-notes h3 { margin: 0 0 4px; font-size: 14px; }
.privacy-notes p { margin: 0; color: var(--secondary); overflow-wrap: anywhere; }
#external form { padding: 20px; }
#external h2 { margin: 0; font-size: 16px; }
#external-url { overflow-wrap: anywhere; color: var(--secondary); }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }

:is(#open-qmedia, [data-project-modal]), :is(#qmedia-detail, #privacy-detail) .titlebar button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
}
:is(#open-qmedia, [data-project-modal]) { justify-self: end; }
:is(#open-qmedia, [data-project-modal]):hover, :is(#qmedia-detail, #privacy-detail) .titlebar button:hover { color: var(--hover); }
#qmedia-detail {
  overflow: auto;
  overscroll-behavior: contain;
  background: color-mix(in srgb, var(--panel) 83%, var(--background));
  box-shadow: 0 20px 60px #000a, var(--terminal-halo);
  border-radius: 7px;
}
#qmedia-detail::backdrop {
  background: #0b0d12b8;
  backdrop-filter: blur(9px);
}
:is(#qmedia-detail, #privacy-detail) .titlebar { position: sticky; top: 0; z-index: 1; }
:is(#qmedia-detail, #privacy-detail) .titlebar button { min-height: 30px; padding-inline: 5px; }
:is(#qmedia-detail, #privacy-detail) .titlebar button:focus-visible { outline: none; text-decoration: underline; }
#qmedia-detail .window-body { text-align: center; }
#qmedia-title { margin: 0 0 24px; font-size: clamp(22px, 4vw, 36px); }
#qmedia-detail .window-body > section {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--sidebar);
  box-shadow: 0 3px 10px rgb(0 0 0 / .24);
  overflow-wrap: anywhere;
}
#qmedia-detail .window-body > section:only-of-type { max-width: 640px; margin-inline: auto; }
#qmedia-detail .window-body > section + section { margin-top: 10px; }
@media (min-width: 768px) and (hover: hover), (min-width: 768px) and (min-height: 551px) {
  #qmedia-detail .window-body:has(> section:nth-of-type(2)) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    align-items: start;
  }
  #qmedia-detail .window-body:has(> section:nth-of-type(2)) > h2 { grid-area: 1 / 1 / 2 / -1; }
  #qmedia-detail .window-body:has(> section:nth-of-type(2)) > section {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    align-self: stretch;
    align-items: start;
    margin: 0;
  }
  #qmedia-detail .window-body:has(> section:nth-of-type(2)) > section:nth-of-type(n + 3) { margin-top: 10px; }
  #qmedia-detail .window-body:has(> section:nth-of-type(2)) .media-shot :is(img, video) {
    max-height: min(30dvh, 315px);
    object-fit: contain;
  }
}
#qmedia-detail h3 { margin: 0; color: var(--primary); font-size: 16px; }
#qmedia-detail p { margin: 8px 0 14px; color: var(--secondary); white-space: pre-line; overflow-wrap: anywhere; }
.editor-copy :is(strong, code) { color: var(--primary); }
.editor-copy code { font-family: var(--mono); }
.media-shot { width: 80%; margin: 0 auto; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.media-shot img { display: block; width: 100%; height: auto; aspect-ratio: auto 1366 / 850; }
.media-shot video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--background); }
.media-shot button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.media-shot button:focus-visible { outline-offset: -3px; }
.media-shot figcaption { padding: 7px 11px; border-top: 1px solid var(--border); color: var(--secondary); font-size: 11px; }
#media-zoom { width: fit-content; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
#media-zoom[open] { animation: media-zoom-in .3s var(--ease) both; }
#media-zoom img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 64px); object-fit: contain; }
#media-zoom form { display: flex; justify-content: flex-end; padding: 4px 8px; }
#media-zoom button { border: 0; background: transparent; color: var(--primary); padding: 5px 8px; }
@keyframes media-zoom-in { from { opacity: 0; transform: scale(.84); } }
.media-pending { visibility: hidden; }
:is(#qmedia-title, .media-shot):not(.media-pending) { animation: media-fade-in .44s var(--ease) both; }
@keyframes media-fade-in { from { opacity: 0; } }
#qmedia-detail.media-loading .window-body { visibility: hidden; }
#qmedia-detail .media-link { display: inline-block; margin: 0 0 14px; }
#qmedia-detail .media-shot + .media-shot { margin-top: 14px; }
[data-media-type] { position: relative; }
.media-typing { display: none; }
.media-writing .media-typing { display: block; position: absolute; inset: 0; }
.media-writing .media-source { opacity: 0; }
.media-typing::after { content: "▌"; color: var(--primary); }

@media (max-width: 1040px) { .chip.identity { display: none; } }
@media (max-width: 767px) {
  .bar nav a { min-height: 35px; }
  .bar nav a span { display: none; }
  .units.projects li { grid-template-columns: 1fr auto; }
  .units.projects li span { grid-row: 2; grid-column: 1 / -1; }
  .units.projects li :is(a, #open-qmedia, [data-project-modal]) { grid-row: 1; grid-column: 2; }
}
@media (max-width: 390px) {
  .bar nav { gap: 3px; }
  .bar nav a { padding: 0 4px; }
  .facts div { gap: 8px; }
  .units li { grid-template-columns: minmax(100px, 43%) 1fr; gap: 8px; }
  .command .comment { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.workspace.replay .echo {
  display: inline-block;
  animation: echo-in .24s .12s steps(var(--letters, 12), end) both;
}
@keyframes echo-in { from { clip-path: inset(0 100% 0 0); } }

@media (max-width: 767px), (hover: none) and (pointer: coarse) and (max-height: 550px) {
  .workspace.replay .window { animation: mobile-workspace-in .18s ease-out both; }
  .workspace.replay .output, .workspace.replay .echo { animation: none; }
  #desktop.tilt-active .window {
    transform: perspective(1800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  }
  #toggle-tilt[aria-pressed="true"] { color: var(--background); background: var(--primary); }
}
@keyframes mobile-workspace-in {
  from { opacity: .8; }
  to { opacity: 1; }
}

.stack-list h2 {
  color: var(--primary);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 14px 0 8px;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 221px), 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 768px) and (hover: hover), (min-width: 768px) and (min-height: 551px) {
  .tech-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tech {
  position: relative;
  display: grid;
  grid-template: "icon name" auto "icon role" auto / auto minmax(0, 1fr);
  align-content: center;
  gap: 2px 6px;
  width: 100%;
  height: 3.85rem;
  padding: 6px 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--glass);
  text-align: left;
  transition: border-color .16s var(--ease), background-color .16s var(--ease), transform .16s var(--ease);
}
.tech::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}
.tech:hover, .tech:focus-visible {
  border-color: var(--primary);
  background: var(--tint);
  transform: translateY(-2px);
}
.tech i {
  grid-area: icon;
  align-self: center;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  background: var(--anthracite);
  color: var(--primary);
  border-radius: 7px;
  font-style: normal;
  font-size: 11px;
  overflow: hidden;
}
.tech i img { width: 21px; height: 21px; object-fit: contain; }
.stack-icon-preview { padding: 5px; background: var(--anthracite); border-radius: 7px; }
.tech > strong { grid-area: name; padding-inline-end: 8px; font-size: 13px; }
.tech:hover > strong { color: var(--hover); }
.tech small { grid-area: role; color: var(--secondary); font-size: 10.5px; }
.tech > :is(strong, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tech-detail :is(h2, p) { overflow-wrap: anywhere; }
#tech-detail form { padding: 20px; }
#tech-detail h2 { margin: 0; font-size: 16px; }
#tech-detail p { color: var(--secondary); }
#tech-detail button {
  padding: .35em .8em;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--primary);
  background: var(--tint);
}
#tech-detail button:hover { color: var(--background); background: var(--primary); }

#tech-description, .notes .note p, #home .intro, .projects .editor-copy { white-space: pre-line; overflow-wrap: anywhere; }
