@font-face {
  font-family: "Press Start 2P";
  src: url("press-start-2p.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "VT323";
  src: url("vt323.woff2") format("woff2");
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────── */

:root {
  color-scheme: dark;
  --bg: #07050d;
  --panel: #100b1c;
  --line: #3a2358;
  --ink: #f4ecff;
  --dim: #ad9dc8;
  --a: #ff3ecf;
  --a-deep: #86207f;
  --b: #3df5f0;
  --c: #ffd447;
  --case: #17131f;
  --case-lip: #322a3e;

  --pixel: "Press Start 2P", ui-monospace, monospace;
  --term: "VT323", ui-monospace, "SF Mono", Menlo, monospace;
  --bz: 14px;
  --r: 26px;
  --bar: 3rem;
}

:root[data-theme="amber"] {
  --bg: #0a0603;
  --panel: #140c04;
  --line: #5c3d0c;
  --ink: #ffe8c0;
  --dim: #c99a52;
  --a: #ff9500;
  --a-deep: #7a4300;
  --b: #ffe6ad;
  --c: #fff2b0;
  --case: #1a150f;
  --case-lip: #3b3022;
}

:root[data-theme="green"] {
  --bg: #030905;
  --panel: #06130a;
  --line: #17552c;
  --ink: #d2ffdc;
  --dim: #74c08a;
  --a: #3dff7c;
  --a-deep: #0e6b31;
  --b: #c3ff5a;
  --c: #eaffb0;
  --case: #121812;
  --case-lip: #29352a;
}

/* ── Base ───────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html:not(.js) .js-only { display: none !important; }

html {
  background: var(--case);
  scrollbar-color: var(--line) var(--case);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  padding: var(--bz);
  background: var(--bg);
  color: var(--ink);
  font: 1.375rem/1.32 var(--term);
  overflow-x: clip;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--b); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--b); outline-offset: 3px; }
::selection { background: var(--a); color: #000; }
[id] { scroll-margin-top: calc(var(--bz) + var(--bar) + 1rem); }

kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 .3em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  line-height: 1.15;
  text-align: center;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.skip {
  position: fixed;
  z-index: 60;
  top: calc(var(--bz) + .5rem);
  left: calc(var(--bz) + .5rem);
  padding: .4rem .8rem;
  background: var(--b);
  color: #000;
  transform: translateY(-300%);
}

.skip:focus { transform: none; color: #000; }

/* ── CRT glass ──────────────────────────────────────────── */

.crt {
  position: fixed;
  inset: var(--bz);
  z-index: 50;
  overflow: hidden;
  border-radius: var(--r);
  pointer-events: none;
  background: radial-gradient(120% 70% at 50% -20%, rgb(255 255 255 / .06), transparent 60%);
  box-shadow:
    0 0 0 2px #000,
    0 0 0 3px var(--case-lip),
    0 0 0 calc((var(--bz) + var(--r)) * 2) var(--case),
    inset 0 0 1.25rem rgb(0 0 0 / .7),
    inset 0 0 7rem rgb(0 0 0 / .5);
}

.crt::before,
.crt::after {
  content: "";
  position: absolute;
  inset: 0;
}

.crt::before {
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgb(0 0 0 / .2) 2px 3px);
}

.crt::after {
  top: -24%;
  bottom: auto;
  height: 22%;
  background: linear-gradient(to bottom, transparent, rgb(255 255 255 / .035), transparent);
}

:root[data-fx="off"] .crt::before,
:root[data-fx="off"] .crt::after { display: none; }

.power { display: none; }

/* ── Top bar ────────────────────────────────────────────── */

.bar {
  position: sticky;
  top: var(--bz);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
  height: var(--bar);
  padding-inline: clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 0 .6em color-mix(in srgb, var(--a) 70%, transparent);
}

.caret {
  width: .5em;
  height: 1em;
  background: var(--a);
  box-shadow: 0 0 .6em var(--a);
}

.bar-nav {
  display: flex;
  gap: clamp(.7rem, 2.5vw, 1.75rem);
  margin-left: auto;
}

.bar-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--bar);
  color: var(--dim);
  text-decoration: none;
}

.bar-nav a:hover,
.bar-nav a[aria-current] { color: var(--ink); }

.bar-nav a[aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--b);
  box-shadow: 0 0 .6rem var(--b);
}

.bar-tools { display: flex; gap: .5rem; }

.tool {
  min-width: 2.4rem;
  height: 2rem;
  padding: 0 .5rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--dim);
  line-height: 1;
}

.tool:hover { border-color: var(--b); color: var(--ink); }

.tool[aria-pressed="true"],
.tool[aria-expanded="true"] {
  border-color: var(--b);
  color: var(--b);
  text-shadow: 0 0 .6em var(--b);
}

/* Radio button: four little level bars that dance while it plays. */
.tool-music { display: inline-flex; align-items: center; justify-content: center; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: .85rem; }
.eq i { width: 3px; height: 100%; background: currentColor; transform: scaleY(.35); transform-origin: bottom; }
.eq i:nth-child(2) { transform: scaleY(.7); }
.eq i:nth-child(3) { transform: scaleY(.5); }
.eq i:nth-child(4) { transform: scaleY(.85); }
.tool-music[aria-pressed="true"] .eq i { box-shadow: 0 0 .4em var(--b); }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(calc(100svh - var(--bz) * 2 - var(--bar)), 50rem);
  padding-bottom: clamp(12rem, 32svh, 18rem);
  overflow: clip;
  background:
    radial-gradient(90% 70% at 74% 66%, color-mix(in srgb, var(--a) 16%, transparent), transparent 70%),
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 82%, #201048), var(--bg) 60%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5rem;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-block: 3rem 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--b);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 0 0 .7em color-mix(in srgb, var(--b) 60%, transparent);
}

.blip {
  width: .5rem;
  height: .5rem;
  background: var(--b);
  box-shadow: 0 0 .7rem var(--b);
}

h1 {
  margin-block: 1.1rem 1.3rem;
  font: 400 clamp(2rem, 11vw, 5.25rem)/1.14 var(--pixel);
  letter-spacing: -.04em;
  text-transform: uppercase;
}

h1 span {
  display: block;
  width: fit-content;
  background: linear-gradient(
    to bottom,
    #fff 12%,
    var(--ink) 30%,
    var(--b) 49%,
    var(--a-deep) 50%,
    var(--a) 74%,
    color-mix(in srgb, var(--a) 35%, #fff) 96%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(.055em .055em 0 var(--a-deep))
    drop-shadow(0 0 .3em color-mix(in srgb, var(--a) 50%, transparent));
}

.lede {
  max-width: 29ch;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  text-shadow: 0 2px 0 var(--bg), 0 0 1rem var(--bg);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.9rem;
  padding: .3rem 1.1rem;
  border: 2px solid var(--b);
  background: var(--b);
  box-shadow: 4px 4px 0 var(--a-deep);
  color: #05060a;
  font: 400 .75rem/1.3 var(--pixel);
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #05060a;
}

.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--a-deep); }

.btn-ghost {
  border-color: var(--a);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--a-deep) 70%, transparent);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--a); background: var(--a); }
.btn-small { min-height: 2.5rem; font-size: .625rem; }
.btn span { font: 1.5rem/1 var(--term); }

.hint {
  margin-top: 1.5rem;
  color: var(--dim);
  font-size: 1.125rem;
}

/* ── Sections ───────────────────────────────────────────── */

.section { padding-block: clamp(2.5rem, 7vw, 4.5rem) 0; }

.section-title {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.5rem;
  font: 400 clamp(.9rem, 2.4vw, 1.2rem)/1.3 var(--pixel);
  text-transform: uppercase;
  text-shadow: 0 0 .8em color-mix(in srgb, var(--a) 65%, transparent);
}

.section-title span { color: var(--a); }

.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--line) 0 6px, transparent 6px 10px);
}

.panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--a) 7%, transparent), transparent 9rem),
    var(--panel);
  box-shadow: 0 0 0 1px #000, 0 0 2.5rem -1.5rem var(--a);
}

/* ── About ──────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 4vw, 3rem);
}

.about { display: block; padding: clamp(1rem, 3vw, 1.75rem); }
.bio { max-width: 62ch; font-size: 1.5rem; }

.sheet { padding: .35rem 1rem; }

.sheet div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: .75rem;
  padding-block: .45rem;
}

.sheet div + div { border-top: 1px dashed var(--line); }
.sheet dt { color: var(--a); letter-spacing: .08em; text-transform: uppercase; }

/* ── Projects ───────────────────────────────────────────── */

.proj-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.proj { min-width: 0; transition: border-color .15s, box-shadow .15s; }
.proj-wide { grid-column: 1 / -1; }

.proj:hover,
.proj:target {
  border-color: var(--a);
  box-shadow: 0 0 0 1px #000, 0 0 2.75rem -1rem var(--a);
}

.proj-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem 1rem;
  padding: .85rem clamp(.9rem, 2vw, 1.25rem) .7rem;
  border-bottom: 1px dashed var(--line);
}

.proj-num { color: var(--a); font: 400 .7rem/1 var(--pixel); }

.proj h3 {
  font: 400 clamp(.95rem, 2.2vw, 1.2rem)/1.3 var(--pixel);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.proj-type { color: var(--b); letter-spacing: .06em; text-transform: uppercase; }

.proj-state {
  margin-left: auto;
  padding: 0 .5rem;
  border: 1px solid var(--c);
  color: var(--c);
  font-size: 1.125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.proj-body {
  display: grid;
  gap: 1.1rem;
  padding: clamp(.9rem, 2vw, 1.25rem);
}

.proj-wide .proj-body {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.proj-flip .proj-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.proj-flip .media { order: 2; }

.proj-copy > * + * { margin-top: .85rem; }

.feats li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--dim);
}

.feats li + li { margin-top: .15rem; }

.feats li::before {
  content: "";
  position: absolute;
  top: .5em;
  left: .1rem;
  width: .4rem;
  height: .4rem;
  background: var(--a);
}

.note { color: var(--dim); }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.tags li {
  padding: 0 .5rem;
  border: 1px solid var(--line);
  color: var(--b);
  font-size: 1.125rem;
  letter-spacing: .04em;
}

.media {
  min-width: 0;
  border: 1px solid var(--line);
  background: #000;
}

.media video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ratio);
  background: #000;
}

.media figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .1rem .6rem;
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--dim);
  font-size: 1.125rem;
  letter-spacing: .06em;
}

.media figcaption span::before {
  content: "";
  display: inline-block;
  width: .45rem;
  height: .45rem;
  margin-right: .5rem;
  border-radius: 50%;
  background: var(--a);
  box-shadow: 0 0 .5rem var(--a);
}

.media-toggle {
  padding: 0 .4rem;
  border: 0;
  background: none;
  color: var(--b);
  letter-spacing: inherit;
  text-transform: uppercase;
}

.media-toggle:hover { color: var(--ink); }

.art {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, #000);
}

.art svg { display: block; width: 100%; height: auto; aspect-ratio: 320 / 150; }
.art-streets path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.art-streets .art-river { stroke: var(--b); stroke-width: 3; opacity: .45; }
.art-blocks rect { fill: color-mix(in srgb, var(--a) 10%, transparent); stroke: var(--a-deep); }
.art-pins circle { fill: var(--c); }
.art-pins .ping { fill: none; stroke: var(--c); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.art-links path { fill: none; stroke: var(--b); stroke-width: 1.5; stroke-dasharray: 3 7; opacity: .7; }
.art-nodes rect { fill: var(--bg); stroke: var(--a); stroke-width: 2; }

/* ── Arcade ─────────────────────────────────────────────── */

.cabinet { max-width: 60rem; margin-inline: auto; padding: clamp(.6rem, 2vw, 1rem); }

/* The hidden cabinet: full screen over the page, under the CRT glass. */
.arcade {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(.5rem, 3vw, 2rem);
  background: color-mix(in srgb, #000 88%, transparent);
}

.arcade .cabinet { width: min(60rem, 100%, (100dvh - 10rem) * 1.6); max-width: none; }
.arcade-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.arcade-head .section-title { flex: 1; margin: 0; }
html.arcade-open { overflow: hidden; }

/* While the game runs, nothing behind it animates, so every frame goes to the game. */
html.arcade-open .scene { display: none; }
html.arcade-open .crt::after { animation-play-state: paused; }

.hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .75rem;
  padding: 0 .25rem .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hud-side { display: flex; align-items: center; gap: .6rem; }
.hud-you { color: var(--b); }
.hud-cpu { justify-content: flex-end; color: var(--a); }
.hud-status { color: var(--dim); text-align: center; }

.pips { display: inline-flex; gap: .25rem; }

.pips i {
  width: .7rem;
  height: .7rem;
  border: 1px solid currentColor;
}

.pips i.on { background: currentColor; box-shadow: 0 0 .6rem currentColor; }

/* Turbo meter, beside your score */
.turbo {
  position: relative;
  width: 4.5rem;
  height: .55rem;
  border: 1px solid currentColor;
}

.turbo::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 1px;
  width: calc((100% - 2px) * var(--turbo, 1));
  background: currentColor;
}

.turbo.is-on::after { background: var(--ink); box-shadow: 0 0 .6rem currentColor; }
.turbo.is-dry { opacity: .45; }

.turbo-btn { display: none; }

.stage {
  position: relative;
  aspect-ratio: 48 / 30;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}

.stage.is-live { touch-action: none; border-color: var(--b); }
.stage canvas { display: block; width: 100%; height: 100%; }

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 1rem;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  text-align: center;
}

.overlay-title {
  font: 400 clamp(1.3rem, 5.4vw, 3rem)/1.2 var(--pixel);
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: .06em .06em 0 var(--a-deep), 0 0 .5em var(--a);
}

.overlay-sub { max-width: 34ch; text-shadow: 0 0 .6rem var(--bg); }

.count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 400 clamp(2.5rem, 12vw, 6rem)/1 var(--pixel);
  color: var(--c);
  text-shadow: 0 0 .4em var(--c);
  pointer-events: none;
}

.game-help {
  padding: .6rem .25rem 0;
  color: var(--dim);
  font-size: 1.125rem;
  text-align: center;
}

.help-touch { display: none; }

@media (pointer: coarse) {
  .help-keys { display: none; }
  .help-touch { display: inline; }
  .turbo-btn { display: flex; margin: .6rem auto 0; touch-action: none; user-select: none; -webkit-user-select: none; }
  .hint { display: none; }
}

/* ── Footer ─────────────────────────────────────────────── */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-block: 1.25rem 2rem;
  border-top: 1px dashed var(--line);
  color: var(--dim);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.foot nav { display: flex; gap: 1.5rem; }

/* ── Console ────────────────────────────────────────────── */

.console {
  position: fixed;
  z-index: 30;
  right: calc(var(--bz) + 1rem);
  bottom: calc(var(--bz) + 1rem);
  left: calc(var(--bz) + 1rem);
  max-width: 44rem;
  margin-inline: auto;
  border: 1px solid var(--b);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  box-shadow: 0 0 0 1px #000, 0 0 2.5rem -.75rem var(--b), 0 1rem 3rem #000;
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: .75rem;
  border-bottom: 1px solid var(--line);
  color: var(--b);
}

.console-head button {
  width: 2.25rem;
  height: 2rem;
  border: 0;
  background: none;
  color: var(--dim);
}

.console-head button:hover { color: var(--ink); }

.console-log {
  max-height: min(38svh, 17rem);
  overflow-y: auto;
  padding: .5rem .75rem 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.console-log .cmd { color: var(--dim); }
.console-log .cmd::before { content: "$ "; color: var(--a); }
.console-log .err { color: var(--c); }
.console-log b { color: var(--b); font-weight: 400; }

.console-form {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .75rem .5rem;
}

.console-form label { color: var(--a); }

.console-form input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  caret-color: var(--b);
  outline: none;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 54rem) {
  .hero { align-items: start; min-height: 0; }
  .hero { padding-bottom: 19.5rem; }
  .hero-copy { padding-block: 2.5rem 0; }

  .about,
  .proj-list,
  .proj-wide .proj-body { grid-template-columns: minmax(0, 1fr); }

  .proj-wide { grid-column: auto; }
  .proj-flip .media { order: 0; }
}

@media (max-width: 40rem) {
  :root { --bz: 6px; --r: 16px; --bar: 2.75rem; }
  body { font-size: 1.25rem; }
  .bar { letter-spacing: .03em; }
  .tool-fx { display: none; }
  .tool { min-width: 2.2rem; }
  .bio { font-size: 1.375rem; }
  .stage { aspect-ratio: 28 / 34; }
  .arcade .cabinet { width: min(100%, (100dvh - 10rem) * 28 / 34); }
  .hud { font-size: 1.125rem; }
}

/* ── Motion ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .caret { animation: blink 1.1s steps(1) infinite; }
  .crt::after { animation: roll 9s linear infinite; }

  .power {
    position: fixed;
    inset: var(--bz);
    z-index: 49;
    display: block;
    overflow: hidden;
    border-radius: var(--r);
    pointer-events: none;
    animation: power-hide 0s linear .9s both;
  }

  html.warm .power { display: none; }

  .power::before,
  .power::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    height: 50%;
    background: #000;
    box-shadow: 0 0 1.5rem .2rem rgb(255 255 255 / .8);
    animation: .55s cubic-bezier(.6, 0, .3, 1) .2s both;
  }

  .power::before { top: 0; border-bottom: 1px solid #fff; animation-name: power-up; }
  .power::after { bottom: 0; border-top: 1px solid #fff; animation-name: power-down; }

  html.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease-out, transform .5s ease-out;
  }

  html.js .reveal.in { opacity: 1; transform: none; }

  .art-pins .ping { animation: ping 3s ease-out var(--d) infinite; }
  .art-links path { animation: flow 1.2s linear infinite; }
  .art-nodes rect { animation: node 2.4s steps(1) var(--d) infinite; }
  .stage.shake { animation: shake .28s linear; }
  #name { animation: float 3s ease-in-out infinite; }
  .tool-music[aria-pressed="true"] .eq i { animation: level .9s ease-in-out infinite; }
  .tool-music[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.45s; }
  .tool-music[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.2s; }
  .tool-music[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.65s; }

  :root[data-fx="off"] .crt::after,
  :root[data-fx="off"] .art *,
  :root[data-fx="off"] .caret,
  :root[data-fx="off"] #name { animation: none; }
}

@keyframes blink { 50% { opacity: 0; } }
@keyframes level { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes roll { to { transform: translateY(570%); } }

@keyframes power-up { to { transform: translateY(calc(-100% - 3rem)); } }
@keyframes power-down { to { transform: translateY(calc(100% + 3rem)); } }
@keyframes power-hide { to { visibility: hidden; } }

@keyframes ping {
  0% { transform: scale(1); opacity: .9; }
  45%, 100% { transform: scale(4); opacity: 0; }
}

@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes node { 0%, 100% { fill: var(--bg); } 12% { fill: var(--a); } }

@keyframes shake {
  20% { transform: translate(-4px, 2px); }
  40% { transform: translate(4px, -3px); }
  60% { transform: translate(-3px, -2px); }
  80% { transform: translate(2px, 3px); }
}

@media print {
  .crt, .power, .console, .bar-tools, .scene { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
