:root {
  /* the dark purple of the pixel art (hero, dividers); --bg is what the dividers dither into
     (tools/build-dividers.mjs BG) */
  --bg: #14111b;
  --bg-raised: #1c1824;
  --panel: #241e30;
  --panel-2: #2a2238;
  --ink: #f4f1e8;
  --ink-2: #bdb4cc;
  --ink-3: #968daa;   /* >= 4.5:1 on --bg … --panel-2 */
  --ink-4: #5f5774;
  --line: rgba(214, 200, 255, .16);
  --line-soft: rgba(214, 200, 255, .08);
  --hover-row: rgba(214, 200, 255, .04);
  --acc: #ffc85c;
  --acc-2: #f08a3c;
  --shadow: #08060c;
  --soul: #ff4b5c;
  --teal: #5fd4c4;
  --menu: #f08a3c;
  --space-dot: #8f86a3;
  --space-dim: #4a4260;

  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Sora", -apple-system, "Helvetica Neue", sans-serif;
  --display: "Pixelify Sans", "VT323", ui-monospace, monospace;
  --pixel: "VT323", "Space Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --gutter: 2rem;
  --nav-h: 64px;
  --max: 1320px;
  --heart: url("../img/logo-64.png");
}
@media (max-width: 640px) { :root { --gutter: 1.25rem; --nav-h: 56px; } }

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); scrollbar-color: var(--ink-4) var(--bg); overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--acc); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media not all { html { scroll-behavior: auto; } }

/* ── nav ── */
/* above the flying character (1000) and link previews (1002); below the project modal (1005) */
.nav { position: sticky; top: 0; z-index: 1003; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .875rem; }
.heart { width: 24px; height: 24px; background: var(--heart) center / contain no-repeat; image-rendering: auto; flex: none; }
.brand:hover .heart { animation: beat .5s steps(2) infinite; }
@keyframes beat { 50% { transform: scale(1.18); } }
.nav-links { display: flex; gap: 30px; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; margin-left: 12px; }
.nav-links a { color: var(--ink-3); transition: color .15s; }
.nav-links .k, .sec-h .k, .s-toggle .k { color: var(--ink-4); margin-right: 6px; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-links .k, .s-toggle .k { display: none; }
.s-toggle::before { content: "⌕ "; color: var(--acc); }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--acc); }
.nav-links a:hover .k, .nav-links a.on .k { color: var(--ink-2); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.lang { display: flex; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; }
.lang button { color: var(--ink-3); padding: 6px 7px; transition: color .15s; }
.lang button:hover { color: var(--ink-2); }
.lang button[aria-pressed="true"] { color: var(--ink); }
/* a pixel button: copper, a hard shadow that it presses into */
.btn { font-family: var(--display); font-weight: 500; font-size: .9375rem; line-height: 1; padding: 10px 14px; background: var(--acc); color: var(--shadow); box-shadow: 3px 3px 0 var(--shadow), 3px 3px 0 1px var(--ink-4); transition: transform .1s, box-shadow .1s; white-space: nowrap; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow), 4px 4px 0 1px var(--acc-2); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
@media (max-width: 760px) {
  /* two rows: brand and language on top, the section links below, scrolling sideways if they do not fit */
  :root { --nav-h: 88px; }
  .nav-in { flex-wrap: wrap; align-content: center; gap: 4px 12px; }
  .nav-links { order: 3; flex: 0 0 100%; margin: 0; gap: 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 4px 0; }
  .nav-links .k { display: none; }
}

/* ── scene: the sky with the flying character ── */
/* the whole first screen; scene.js plays the intro (index.html sets .intro) and the parallax */
.scene { position: relative; height: calc(100svh - var(--nav-h)); min-height: 520px; overflow: hidden; cursor: crosshair; }
.scene .sky, .scene .fx { position: absolute; inset: 0; pointer-events: none; }
.scene canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
/* the pixel-art landscape between the stars and the text. scene.js sizes every layer to the
   same box (480x268 art px of --px css px each), anchored to the bottom, and moves them */
.land { position: absolute; inset: 0; pointer-events: none; --px: 3px; }
.land .layer, .camp .layer, .hangar-bg .layer { position: absolute; left: 0; top: 0; width: calc(480 * var(--px)); height: calc(268 * var(--px)); transform-origin: 50% 100%; }
.land img, .camp img, .hangar-bg img { width: 100%; height: 100%; max-width: none; image-rendering: pixelated; }
.land::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 65% 60% at 0 0, rgb(20 17 27 / .72), transparent); }
@media all { .land .layer { will-change: transform, opacity; } }
/* the ground sinks into the page: the bottom 22 art px of the scene dither into --bg (16 rows of
   4x4 Bayer steps over 6 solid ones), pinned to the scene's bottom edge and not to a layer, so the
   parallax (layers lag or grow from the bottom) never shows an edge under it */
.land::before, .camp::before, .hangar-bg::before, .hangar-bg::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; height: calc(22 * var(--px) + 1px); background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 22' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1h-1zM2 2h1v1h-1zM0 4h1v1h-1zM2 4h1v1h-1zM1 5h1v1h-1zM0 6h1v1h-1zM2 6h1v1h-1zM1 7h1v1h-1zM3 7h1v1h-1zM0 8h1v1h-1zM1 8h1v1h-1zM2 8h1v1h-1zM1 9h1v1h-1zM3 9h1v1h-1zM0 10h1v1h-1zM2 10h1v1h-1zM3 10h1v1h-1zM1 11h1v1h-1zM3 11h1v1h-1zM0 12h1v1h-1zM1 12h1v1h-1zM2 12h1v1h-1zM3 12h1v1h-1zM0 13h1v1h-1zM1 13h1v1h-1zM3 13h1v1h-1zM0 14h1v1h-1zM1 14h1v1h-1zM2 14h1v1h-1zM3 14h1v1h-1zM0 15h1v1h-1zM1 15h1v1h-1zM2 15h1v1h-1zM3 15h1v1h-1zM0 16h4v6h-4z'/%3E%3C/svg%3E") 50% 100% / calc(4 * var(--px)) calc(22 * var(--px)) repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 22' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1h-1zM2 2h1v1h-1zM0 4h1v1h-1zM2 4h1v1h-1zM1 5h1v1h-1zM0 6h1v1h-1zM2 6h1v1h-1zM1 7h1v1h-1zM3 7h1v1h-1zM0 8h1v1h-1zM1 8h1v1h-1zM2 8h1v1h-1zM1 9h1v1h-1zM3 9h1v1h-1zM0 10h1v1h-1zM2 10h1v1h-1zM3 10h1v1h-1zM1 11h1v1h-1zM3 11h1v1h-1zM0 12h1v1h-1zM1 12h1v1h-1zM2 12h1v1h-1zM3 12h1v1h-1zM0 13h1v1h-1zM1 13h1v1h-1zM3 13h1v1h-1zM0 14h1v1h-1zM1 14h1v1h-1zM2 14h1v1h-1zM3 14h1v1h-1zM0 15h1v1h-1zM1 15h1v1h-1zM2 15h1v1h-1zM3 15h1v1h-1zM0 16h4v6h-4z'/%3E%3C/svg%3E") 50% 100% / calc(4 * var(--px)) calc(22 * var(--px)) repeat-x; }
/* the outpost's lights, in art px over the mid layer: ::before is the light switched off, ::after its glow */
.lamps i { position: absolute; left: calc(var(--x) * var(--px)); top: calc(var(--y) * var(--px)); width: calc(var(--w, 1) * var(--px)); height: calc(var(--h, 1) * var(--px)); }
.lamps i::before, .lamps i::after { content: ""; position: absolute; inset: 0; }
.lamps i::before { background: var(--off); opacity: 0; }
.lamps .win { --off: #1d1620; }
.lamps .win::after { box-shadow: 0 0 calc(var(--px) * 4) var(--px) rgb(255 176 84 / .3); }
.lamps .bcn { --off: #40141d; }
.lamps .bcn::after { background: #ff6170; box-shadow: 0 0 calc(var(--px) * 3) var(--px) rgb(255 75 92 / .55); }
.lamps .led { --off: #2a2632; }
.scene.intro .lamps i:not(.on)::before { opacity: 1; }
.scene.intro .lamps i:not(.on)::after { opacity: 0; }
.scene.intro .lamps i.on::before { animation: lamp-cover .42s steps(1) both; }
.scene.intro .lamps i.on::after { animation: lamp-glow .42s steps(1) both; }
@media all { .scene.live .lamps i.bcn::after { animation: beacon 2.8s steps(1) var(--d, 0s) infinite; } }
@keyframes lamp-cover { 0% { opacity: 1; } 15% { opacity: 0; } 30% { opacity: 1; } 55% { opacity: 0; } 70% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes lamp-glow { 0% { opacity: 0; } 15% { opacity: 1; } 30% { opacity: 0; } 55% { opacity: 1; } 70% { opacity: 0; } 80%, 100% { opacity: 1; } }
/* the windows take their time: a stutter, a pause in the dark, then on for good */
.scene.intro .lamps .win.on::before { animation: win-cover .95s steps(1) both; }
.scene.intro .lamps .win.on::after { animation: win-glow .95s steps(1) both; }
@keyframes win-cover { 0% { opacity: 1; } 8% { opacity: 0; } 16% { opacity: 1; } 24% { opacity: 0; } 30% { opacity: 1; } 62% { opacity: 0; } 70% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes win-glow { 0% { opacity: 0; } 8% { opacity: 1; } 16% { opacity: 0; } 24% { opacity: 1; } 30% { opacity: 0; } 62% { opacity: 1; } 70% { opacity: 0; } 78%, 100% { opacity: 1; } }
@keyframes beacon { 0%, 46% { opacity: 1; } 50%, 100% { opacity: 0; } }
/* a slow band of mist on the ground between the outpost and the foreground */
.fog { position: absolute; left: -15%; width: 130%; top: calc(178 * var(--px)); height: calc(44 * var(--px)); background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(150 132 178 / .09), transparent 70%), radial-gradient(ellipse 30% 40% at 20% 60%, rgb(150 132 178 / .07), transparent 70%); }
@media all { .fog { animation: fog 38s ease-in-out infinite alternate; } }
@keyframes fog { to { transform: translateX(9%); } }
.scene-in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding-top: clamp(28px, 6svh, 64px); padding-bottom: 22px; pointer-events: none; }
.scene-in > * { pointer-events: auto; }
.hero { width: fit-content; max-width: 100%; cursor: default; }
.hero h1 { font-family: var(--mono); font-weight: 400; font-size: 1.75rem; line-height: 1.1; display: flex; align-items: baseline; }
.caret { display: inline-block; width: .52em; height: .86em; margin-left: 4px; background: var(--ink); transform: translateY(.08em); animation: blink 1.06s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero p { margin-top: 12px; color: var(--ink-2); max-width: 30ch; text-wrap: balance; }
/* what lipp does for a living, under the line about the site */
.hero p.role { margin-top: 6px; font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; color: var(--acc); max-width: none; }
/* "scroll" with a pixel chevron that bobs, at the bottom middle */
.cue { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 10px; font-family: var(--pixel); font-size: 1.125rem; line-height: 1; letter-spacing: .08em; color: var(--ink-3); transition: color .15s; }
.cue:hover { color: var(--ink); }
.cue i { width: 2px; height: 2px; background: currentColor; box-shadow: -6px -6px, -4px -4px, -2px -2px, 6px -6px, 4px -4px, 2px -2px; margin: 6px 0 2px; }
@media all { .cue i { animation: bob 1.2s steps(2) infinite; } }
@keyframes bob { 50% { transform: translateY(3px); } }
/* the intro: text, hint and cue wait for the landscape (scene.js adds .text, .cued, then drops .intro) */
.scene.intro:not(.text) .hero > * { opacity: 0; transform: translateY(10px); }
.scene.intro.text .hero > * { transition: opacity .5s, transform .7s var(--ease-out); }
.scene.intro.text .hero > :nth-child(2) { transition-delay: .18s; }
.scene.intro.text .hero > :nth-child(3) { transition-delay: .36s; }
.scene.intro:not(.cued) .cue span, .scene.intro:not(.cued) .cue i { opacity: 0; }
.scene.intro .cue span, .scene.intro .cue i { transition: opacity .6s; }
.scene.skip * { transition-duration: 0s !important; transition-delay: 0s !important; }

@media (max-width: 640px) {
  .scene { min-height: 480px; }
}

/* ── sections ── */
.sec { padding-top: 3rem; }
.sec-top { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 2px dashed var(--line); }
.sec-h { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1; letter-spacing: .01em; }
.sec-h .k { display: none; }
.sec-h::before { content: ""; width: 14px; height: 14px; background: var(--acc); box-shadow: 3px 3px 0 var(--acc-2); }
.sec-sub { color: var(--ink-3); font-size: .9375rem; }
.sec-top .tabs, .sec-top .search { margin-left: auto; }
.tabs { display: flex; gap: 1.25rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; }
.tabs button { color: var(--ink-3); padding: 2px 0; text-transform: uppercase; transition: color .15s; }
.tabs button:hover { color: var(--ink-2); }
.tabs button[aria-pressed="true"] { color: var(--ink); }
@media (max-width: 760px) {
  .sec { padding-top: 2.5rem; }
  .sec-top .tabs, .sec-top .search { margin-left: 0; }
  .sec-sub { flex-basis: 100%; }
}

/* ── projects: the hangar (site.js). A CRT monitor shows the selected project,
   shelves on the right hold every project as a cartridge ── */
.hangar { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; margin-top: 14px; align-items: start; }
.pc-meta { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.pc-meta .st { margin-left: auto; border: 1px solid currentColor; padding: 0 6px; color: var(--acc); }
.pc-meta .st.teal { color: var(--teal, #5fd4c4); }
.pc-meta .st.red { color: var(--soul); }
.pc-role { font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-bottom: 18px; }
.chips li { font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em; color: var(--ink-3); border: 1px solid var(--line-soft); padding: 1px 7px; }

/* the monitor: a hard-edged bezel with stepped corners, a power LED and a screen with scanlines */
.hg-mon { --notch: 8px; position: relative; padding: 8px 12px 14px; background: var(--panel, #241e30);
  clip-path: polygon(0 var(--notch), 4px var(--notch), 4px 4px, var(--notch) 4px, var(--notch) 0, calc(100% - var(--notch)) 0, calc(100% - var(--notch)) 4px, calc(100% - 4px) 4px, calc(100% - 4px) var(--notch), 100% var(--notch), 100% calc(100% - var(--notch)), calc(100% - 4px) calc(100% - var(--notch)), calc(100% - 4px) calc(100% - 4px), calc(100% - var(--notch)) calc(100% - 4px), calc(100% - var(--notch)) 100%, var(--notch) 100%, var(--notch) calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - var(--notch)), 0 calc(100% - var(--notch)));
  box-shadow: inset 0 0 0 3px var(--shadow), inset 5px 5px 0 2px rgba(214, 200, 255, .07), inset -5px -5px 0 2px rgba(0, 0, 0, .3); }
.mon-bar { display: flex; align-items: center; gap: 10px; height: 22px; padding: 0 4px; font-family: var(--pixel); font-size: 1rem; line-height: 1; letter-spacing: .08em; color: var(--ink-3); }
.mon-led { width: 8px; height: 8px; background: var(--teal, #5fd4c4); box-shadow: 0 0 0 2px var(--shadow), 0 0 8px rgba(95, 212, 196, .55); }
.mon-ins { color: var(--acc); visibility: hidden; }
.hg-mon.insert .mon-ins { visibility: visible; }
.hg-mon.insert .mon-led { background: var(--acc); box-shadow: 0 0 0 2px var(--shadow), 0 0 8px rgba(255, 200, 92, .6); }
.mon-no { margin-left: auto; color: var(--acc-2); }
.mon-screen { position: relative; aspect-ratio: 16 / 10; max-height: 352px; width: 100%; margin-top: 4px; overflow: hidden; background: #050409; border: 3px solid var(--shadow); box-shadow: 0 0 0 2px var(--ink-4, #5f5774); }
.mon-screen::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px); }
.mon-screen::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(95, 212, 196, .12), inset 0 0 36px rgba(95, 212, 196, .1); background: radial-gradient(ellipse at 50% 45%, transparent 62%, rgba(8, 6, 12, .5)); }
.mon-art, .mon-pic { position: absolute; inset: 0; }
.mon-pic canvas, .mon-pic video, .mon-pic img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.mon-pic video { background: #000; }
.mon-info { display: flex; flex-direction: column; min-height: 152px; padding: 12px 4px 0; }
.mon-name { margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.mon-role { margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-metric { margin-top: 2px; font-family: var(--mono); font-size: .75rem; color: var(--acc); }
.mon-desc { margin-top: 6px; color: var(--ink-2); font-size: .875rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mon-acts { display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 12px; }
.mon-details { font-size: .875rem; padding: 8px 12px; }
.mon-link { font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--ink-2); transition: color .15s; }
.mon-link:hover, .mon-link:focus-visible { color: var(--acc); }
/* inserting a cartridge: the picture steps in from the top through a burst of static */
@media all {
  .hg-mon.insert .mon-pic { animation: mon-wipe .22s steps(5) both; }
  .hg-mon.insert .mon-art::after { content: ""; position: absolute; inset: 0; z-index: 1; background: repeating-conic-gradient(rgba(244, 241, 232, .5) 0 25%, transparent 0 50%) 0 0 / 4px 4px, repeating-conic-gradient(rgba(95, 212, 196, .35) 0 25%, transparent 0 50%) 1px 3px / 6px 6px; animation: mon-static .22s steps(4) both; }
}
@keyframes mon-wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes mon-static { 0% { opacity: 1; background-position: 0 0, 1px 3px; } 50% { opacity: .8; background-position: 2px 1px, 4px 0; } 100% { opacity: 0; background-position: 1px 2px, 0 5px; } }

/* filters: little toggle switches above the shelves */
.hg-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hg-tabs .tabs { flex-wrap: wrap; gap: 6px; margin: 0; }
.hg-tabs .tabs button { position: relative; display: flex; align-items: center; gap: 6px; padding: 2px 8px 2px 6px; border: 2px solid var(--line); font-family: var(--pixel); font-size: 1rem; line-height: 1; letter-spacing: .06em; }
.hg-tabs .tabs button::before { content: ""; width: 14px; height: 8px; background: linear-gradient(90deg, var(--ink-3) 0 6px, var(--shadow) 6px); box-shadow: 0 0 0 1px var(--ink-4, #5f5774); }
.hg-tabs .tabs button[aria-pressed="true"] { border-color: var(--acc); color: var(--acc); }
.hg-tabs .tabs button[aria-pressed="true"]::before { background: linear-gradient(90deg, var(--shadow) 0 8px, var(--acc) 8px); }
.hg-tabs .tabs button:focus-visible { outline: 2px solid var(--teal, #5fd4c4); outline-offset: 1px; }

/* shelves */
.hg-shelves { display: flex; flex-direction: column; gap: 6px; }
.shelf { position: relative; padding-bottom: 12px; }
.shelf::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 0; height: 6px; background: var(--panel-2, #2a2238); border-top: 2px solid var(--ink-4, #5f5774); box-shadow: 0 3px 0 var(--shadow); }
.shelf-h { margin-bottom: 4px; font-family: var(--mono); font-weight: 400; font-size: .625rem; line-height: 14px; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf-h b { font-weight: 400; color: var(--acc-2); }
.shelf-h span { color: var(--ink-4, #5f5774); }
.shelf-row { display: grid; grid-template-columns: repeat(4, minmax(0, 104px)); gap: 8px; align-items: end; }
.slot { aspect-ratio: 104 / 110; border: 2px dashed var(--line-soft); opacity: .7; }

/* a cartridge: notched top, grip ridges on the sides, a label with the project's art */
.pcard { position: relative; transition: opacity .2s steps(3); }
.pcard.dim { opacity: .3; }
.cart { --c: var(--panel-2, #2a2238); position: relative; display: flex; flex-direction: column; width: 100%; aspect-ratio: 104 / 110; padding: 9px 7px 6px; text-align: left; color: var(--ink); background: var(--c);
  clip-path: polygon(0 4px, 4px 4px, 4px 0, 34% 0, 34% 4px, 66% 4px, 66% 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% 100%, 0 100%);
  box-shadow: inset 2px 2px 0 rgba(214, 200, 255, .1), inset -2px -3px 0 rgba(0, 0, 0, .4); transition: transform .12s, background-color .12s; }
.cart::before, .cart::after { content: ""; position: absolute; bottom: 8px; width: 3px; height: 30%; background: repeating-linear-gradient(0deg, var(--shadow) 0 2px, transparent 2px 4px); opacity: .7; }
.cart::before { left: 2px; }
.cart::after { right: 2px; }
.cart-no { font-family: var(--mono); font-size: .5625rem; line-height: 11px; letter-spacing: .04em; color: var(--ink-3); }
.cart-art { display: block; position: relative; flex: 0 0 auto; height: 50%; margin: 2px 0 5px; overflow: hidden; background: var(--bg); border: 2px solid var(--shadow); }
.cart-art canvas, .cart-art img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.cart .pc-name { font-family: var(--pixel); font-size: 1.0625rem; line-height: 1; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-family: var(--mono); font-size: .5625rem; line-height: 1; color: var(--ink-3); }
.led { width: 6px; height: 6px; background: var(--acc); box-shadow: 0 0 0 1px var(--shadow), 0 0 5px rgba(255, 200, 92, .7); }
.led.teal { background: var(--teal, #5fd4c4); box-shadow: 0 0 0 1px var(--shadow), 0 0 5px rgba(95, 212, 196, .7); }
.led.red { background: var(--soul); box-shadow: 0 0 0 1px var(--shadow), 0 0 5px rgba(255, 75, 92, .7); }
.cart:hover { transform: translateY(-3px); --c: #322a43; }
.cart[aria-pressed="true"] { transform: translateY(-5px); --c: #3a3050; box-shadow: inset 0 0 0 2px var(--acc), inset 3px 3px 0 1px rgba(214, 200, 255, .12); }
.cart[aria-pressed="true"] .pc-name { color: var(--acc); }
.cart:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--teal, #5fd4c4); }
@media not all { .cart, .pcard { transition: none; } }

@media (max-width: 900px) and (min-width: 641px) {
  .hangar { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }
  .mon-desc { -webkit-line-clamp: 3; }
}
/* phones: the monitor on top, then every cartridge on one strip you swipe sideways */
@media (max-width: 640px) {
  .hangar { grid-template-columns: 1fr; gap: 14px; }
  .hg-mon { padding: 6px 8px 10px; }
  .mon-info { min-height: 0; }
  .mon-name { font-size: 1.3rem; }
  .hg-shelves { flex-direction: row; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 10px; scrollbar-width: none; overscroll-behavior-x: contain; align-items: stretch; }
  .hg-shelves::-webkit-scrollbar { display: none; }
  .shelf, .shelf-row { display: contents; }
  .shelf::after, .slot { display: none; }
  .shelf-h { flex: 0 0 80px; display: block; margin: 0; padding: 10px 7px; overflow-wrap: anywhere; white-space: normal; line-height: 13px; border: 2px solid var(--line); background: var(--panel); scroll-snap-align: start; }
  .pcard { flex: 0 0 100px; scroll-snap-align: start; }
}

/* ── the game (/play) on the home: a stage with lipp and the bosses, the pitch, the top 3 ── */
.gm { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .62fr); margin-top: 24px; background: var(--bg-raised); border: 2px solid var(--line); }
.gm > * { border-right: 2px solid var(--line); }
.gm > :last-child { border-right: 0; }
.gm-art { position: relative; display: block; min-height: 270px; overflow: hidden; background:
    radial-gradient(1px 1px at 12% 22%, var(--space-dot) 99%, transparent), radial-gradient(1px 1px at 33% 71%, var(--space-dim) 99%, transparent),
    radial-gradient(2px 2px at 48% 14%, var(--ink) 99%, transparent), radial-gradient(1px 1px at 61% 88%, var(--space-dot) 99%, transparent),
    radial-gradient(1px 1px at 79% 41%, var(--space-dim) 99%, transparent), radial-gradient(2px 2px at 91% 76%, var(--space-dot) 99%, transparent),
    radial-gradient(1px 1px at 22% 52%, var(--space-dim) 99%, transparent), radial-gradient(1px 1px at 6% 86%, var(--space-dot) 99%, transparent),
    var(--shadow); }
.gm-art img { position: absolute; display: block; height: auto; pointer-events: none; }
.gm-boss { transition: transform .4s var(--ease-out); }
.gm-boss.b3 { width: 62%; right: -6%; top: 50%; transform: translateY(-50%) scaleX(-1); }   /* VD2: the Devourer's art faces right; turned toward lipp */
.gm-boss.b1 { width: 34%; right: 34%; top: 2%; opacity: .9; }
.gm-boss.b2 { width: 34%; right: 36%; bottom: 0; opacity: .9; }
.gm-lipp { width: 27%; left: 1%; top: 50%; transform: translateY(-58%); image-rendering: pixelated; animation: gm-bob 2.6s ease-in-out infinite; }
@keyframes gm-bob { 50% { transform: translateY(-52%); } }
.gm-shots { position: absolute; left: 26%; top: 44%; width: 38%; height: 3px; }
.gm-shots i { position: absolute; top: 0; width: 14px; height: 3px; background: var(--acc); box-shadow: 0 0 6px rgba(255, 200, 92, .6); animation: gm-shot 1.1s linear infinite; }
.gm-shots i:nth-child(2) { animation-delay: .37s; }
.gm-shots i:nth-child(3) { animation-delay: .74s; }
@keyframes gm-shot { from { left: 0; opacity: 1; } to { left: 100%; opacity: 0; } }
.gm-art:hover .gm-boss.b3 { transform: translateY(-50%) scale(-1.04, 1.04); }
.gm-info { padding: 26px 28px 28px; display: flex; flex-direction: column; }
.gm-kicker { font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; color: var(--acc); }
.gm-name { margin-top: 10px; font-family: var(--pixel); font-weight: 400; font-size: 2.6rem; line-height: .95; letter-spacing: .02em; }
.gm-name a:hover { color: var(--acc); }
.gm-text { margin-top: 12px; color: var(--ink-2); font-size: .9375rem; }
.gm-acts { margin-top: auto; padding-top: 22px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.gm-play { font-family: var(--pixel); font-size: 1.5rem; line-height: 1; letter-spacing: .04em; padding: 10px 16px; background: var(--acc-2); color: var(--shadow); box-shadow: 4px 4px 0 var(--shadow); transition: transform .1s, box-shadow .1s; }
.gm-play:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow), 5px 5px 0 2px var(--acc); }
.gm-play:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.gm-practice { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); }
.gm-practice:hover { color: var(--ink); }
.gm-top { padding: 26px 24px; }
.gm-top h4 { font-family: var(--mono); font-weight: 400; font-size: .6875rem; letter-spacing: .06em; color: var(--ink-3); }
.gm-top ol { list-style: none; margin: 12px 0 0; padding: 0; font-family: var(--pixel); font-size: 1.5rem; line-height: 1.3; }
.gm-top li { display: grid; grid-template-columns: 1.6ch 3.6ch 1fr; gap: 10px; }
.gm-top .pos { color: var(--ink-3); }
.gm-top .pts { text-align: right; font-variant-numeric: tabular-nums; }
.gm-top li:first-child .who, .gm-top li:first-child .pts { color: var(--acc); }
.gm-top .gm-none { display: block; font-family: var(--sans); font-size: .875rem; line-height: 1.5; color: var(--ink-3); }
@media (max-width: 960px) {
  .gm { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gm-art { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 640px) {
  .gm { grid-template-columns: 1fr; }
  .gm > * { border-right: 0; }
  .gm-art { min-height: 210px; }
  .gm-info { padding: 22px 0 24px; border-bottom: 1px solid var(--line-soft); }
  .gm-top { padding: 20px 0 24px; }
}
@media not all { .gm-lipp, .gm-shots i { animation: none; } .gm-shots { display: none; } }

/* ── blog list ── */
.search { display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); font-size: .75rem; }
.s-toggle { color: var(--ink-2); letter-spacing: .02em; white-space: nowrap; transition: color .15s; }
.s-toggle:hover { color: var(--ink); }
.search input { width: 0; padding: 0; opacity: 0; border: 0; outline: 0; background: none; color: var(--ink); font-family: var(--sans); font-size: .875rem; transition: width .38s var(--ease-out), opacity .25s; }
.search.open input { width: min(220px, 46vw); opacity: 1; }
.search input::placeholder { color: var(--ink-3); }
.post { position: relative; display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: 0 1.5rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.post::before { content: "▸"; position: absolute; left: -22px; top: 1rem; font-family: var(--pixel); font-size: 1.5rem; line-height: 1; color: var(--acc); opacity: 0; transition: opacity .12s, transform .12s; transform: translateX(-4px); }
.post:hover::before, .post:focus-visible::before { transform: none; }
.post:hover::before, .post:focus-visible::before { opacity: 1; }
.post:hover .po-title, .post:focus-visible .po-title { color: var(--acc); }
.post:focus-visible { outline: none; border-bottom-color: var(--ink); }
#posts:has(.post:hover) .post:not(:hover) { opacity: .45; }
.post { transition: opacity .25s; }
.po-date, .po-time { font-family: var(--mono); font-size: .8125rem; color: var(--ink-3); }
.po-date { color: var(--acc-2); }
.po-title { font-size: 1.125rem; line-height: 1.5; text-wrap: balance; transition: color .12s; }
.po-meta { display: flex; gap: 1rem; margin-top: 4px; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--ink-3); text-transform: uppercase; }
.po-chip { display: block; width: fit-content; margin-bottom: 8px; padding: 1px 8px; border: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; color: var(--ink-3); }
.empty { padding: 2rem 0; color: var(--ink-3); font-family: var(--mono); font-size: .875rem; }
@media (max-width: 760px) {
  .post { grid-template-columns: minmax(0, 1fr) auto; }
  .po-date { grid-column: 1 / -1; font-size: .75rem; margin-bottom: 4px; }
  .post::before { display: none; }
}

/* ── arcade: the two games side by side from 1024px, the blog below them. Each keeps its own
   <section id> (#game, #blog) for the nav and the [G]/[B] keys ── */
.sheet, .arcade { --px-b: #3b3152; --px-in: #231d31; --panel: #15121c; --slot: #0c0a11; }
.arcade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.5rem; padding-top: 3rem; }
.arcade > .sec { padding: 0; }
.arcade .sec-top, #about .sec-top { gap: 8px 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.arcade .sec-h { font-size: 1.375rem; }
.arcade .sec-sub { font-size: .875rem; }
/* the game, open: the stage as a plain picture on top, the pitch beside the top 3 */
.arcade .gm { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "art art" "info top"; gap: 0 2rem; margin-top: 20px; background: none; border: 0; }
.arcade .gm > * { border: 0; }
.arcade .gm-art { grid-area: art; min-height: 0; aspect-ratio: 3 / 1; }
.arcade .gm-info { grid-area: info; padding: 20px 0 0; }
.arcade .gm-name { margin-top: 6px; font-size: 2rem; }
.arcade .gm-text { margin-top: 8px; font-size: .875rem; line-height: 1.5; }
.arcade .gm-acts { padding-top: 14px; gap: 14px; }
.arcade .gm-play { font-size: 1.25rem; padding: 8px 14px; }
.arcade .gm-top { grid-area: top; padding: 20px 0 0; min-width: 9rem; }
.arcade .gm-top ol { margin-top: 8px; font-size: 1.25rem; }
.gm-sv { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0 1.5rem; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.gm-sv-art { position: relative; display: grid; place-items: center; min-height: 150px; overflow: hidden; background: #101512 url(../survivor/v2/ui/ui-title-bg.png) center 40% / cover no-repeat; image-rendering: pixelated; box-shadow: inset 0 0 0 2px var(--px-b, #3b3152); }
.gm-sv-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, transparent 30%, rgba(8, 10, 9, .55)); pointer-events: none; }
.gm-sv-art img { position: relative; z-index: 1; width: min(84%, 256px); height: auto; image-rendering: pixelated; transition: transform .4s var(--ease-out); }
.gm-sv-art:hover img { transform: scale(1.05); }
.gm-sv-info { display: flex; flex-direction: column; }
.gm-sv-name { margin-top: 6px; font-family: var(--pixel); font-weight: 400; font-size: 1.75rem; line-height: .95; letter-spacing: .02em; }
.gm-sv-name a:hover { color: var(--acc); }
.gm-alpha { display: inline-block; padding: 1px 6px; margin-right: 4px; background: var(--acc); color: var(--shadow); letter-spacing: .1em; }
/* the latest boss (the Hive Queen): a tag that blinks, straight into her practice fight */
.gm-new { display: inline-block; padding: 1px 6px; margin-right: 4px; background: #b6ff4a; color: #0b0c12; letter-spacing: .1em; animation: gm-new 1.2s steps(2, jump-none) infinite; }
.gm-new:hover { background: #fff; }
@keyframes gm-new { 50% { box-shadow: 0 0 0 2px rgba(182, 255, 74, .35), 0 0 12px rgba(182, 255, 74, .55); } }
.gm-sv .gm-text { margin-top: 8px; font-size: .875rem; line-height: 1.5; }
.gm-sv .gm-acts { padding-top: 14px; }
.gm-sv .gm-play { font-size: 1.25rem; padding: 8px 14px; }
@media (max-width: 640px) { .gm-sv { grid-template-columns: minmax(0, 1fr); } .gm-sv-info { padding-top: 16px; } }
.arcade .gm-top h4::before, .px-tab::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: .1em; background: var(--acc); }
/* the blog as a log: the latest 3 posts, date · title (site.js shows the rest on demand) */
#posts:not(.all) > .post:nth-child(n+4) { display: none; }
.arcade #blog { display: flex; flex-direction: column; }
.arcade #posts { margin-top: 6px; }
.arcade .post { padding: .85rem 0; }
.arcade .post::before { left: -17px; top: .85rem; font-size: 1.125rem; }
.arcade .po-chip, .arcade .po-meta { display: none; }
.arcade .po-title { font-size: 1rem; line-height: 1.45; }
.arcade .po-date { font-size: .75rem; }
.po-foot { display: flex; align-items: baseline; gap: 20px; margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; }
.po-more { color: var(--acc); transition: color .12s; }
.po-rss { margin-left: auto; color: var(--ink-3); transition: color .12s; }
.po-more:hover, .po-rss:hover { color: var(--ink); }
@media (min-width: 761px) { .arcade .post { grid-template-columns: 6.75rem minmax(0, 1fr) auto; gap: 0 1rem; } }
.gm-pair { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .gm-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2.5rem; }
  .gm-pair .gm-sv { grid-template-columns: minmax(0, 1fr); margin-top: 20px; padding-top: 0; border-top: 0; }
  .gm-pair .gm-sv-art { aspect-ratio: 3 / 1; min-height: 0; }
  .gm-pair .gm-sv-info { padding-top: 20px; }
  .gm-pair .gm-sv-name { font-size: 2rem; }
}
@media (max-width: 640px) {
  .arcade { gap: 3rem; }
  .arcade .gm { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "info" "top"; }
  .arcade .gm-art { aspect-ratio: 2 / 1; }
  .arcade .gm-info { padding: 18px 0 0; }
}

/* ── about: an RPG character sheet (rpg.js) ── */
/* open on the page, no boxes: two columns (hero, bio, attributes | guilds, inventory), then the
   quest log and the world map under text tabs. Groups are told apart by spacing and small labels */
.sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem 4rem; padding-top: 2.5rem;
  grid-template-areas: "left right" "log log"; }
.sh-col { display: flex; flex-direction: column; gap: 2.75rem; min-width: 0; }
.sh-left { grid-area: left; }
.sh-right { grid-area: right; }
.sh-col > :last-child { flex: 1 1 auto; }
.px-panel { position: relative; min-width: 0; }   /* a group of the sheet: no frame, the inventory tooltip's anchor */
.px-tab, .kv h3.px-tab { display: block; margin: 0 0 12px; font-family: var(--mono); font-weight: 400; font-size: .6875rem; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* portrait */
.sh-port { grid-area: port; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sh-port > .px-tab { grid-column: 1 / -1; grid-row: 1; }
.sh-art { position: relative; width: 100%; max-width: 228px; aspect-ratio: 304 / 366; margin-bottom: 14px;
  image-rendering: pixelated; }
.sh-art img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.sh-idle { display: none; position: absolute; inset: 0; background: url("../img/sprites/lipp-idle.webp") 0 0 / 400% 100% no-repeat; image-rendering: pixelated; }
.sh-name { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--ink); }
.sh-class { margin-top: 6px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em; color: var(--ink-3); }
.sh-lv { margin-top: 14px; font-family: var(--display); font-size: 1rem; letter-spacing: .08em; color: var(--ink-2); }
.sh-lv b { font-size: 1.75rem; color: var(--acc); }
.sh-xp { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.sh-xp-k { font-family: var(--display); font-size: .8125rem; color: #5fd3c8; }
.sh-bar { display: flex; gap: 2px; }
.sh-bar i { width: 7px; height: 10px; background: #2a2338; }
.sh-bar i.f { background: var(--acc); box-shadow: inset 0 -3px 0 var(--acc-2); }
.sheet.pre .sh-bar i.f { background: #2a2338; box-shadow: none; }
.sheet.seen .sh-bar i.f { transition: background 0s, box-shadow 0s; transition-delay: calc(250ms + var(--d) * 55ms); }
.sh-next { margin-top: 8px; font-family: var(--mono); font-size: .6875rem; color: var(--ink-3); }

/* bio: plain text, typed in (rpg.js) */
.ab-bio { grid-area: bio; }
.ab-bio p { font-family: var(--pixel); font-size: 1.4375rem; line-height: 1.2; color: var(--ink); text-wrap: pretty; max-width: 40ch; }
.sheet.pre .ab-bio p { visibility: hidden; }
.tw { visibility: hidden; }
.tw.on { visibility: visible; }
.ab-more { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--acc); transition: color .12s; }
.ab-more:hover { color: var(--ink); }

/* attributes and guilds */
.sh-attr { grid-area: attr; }
.sh-work { grid-area: work; }
.kv { font-size: .9375rem; }
.kv li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.kv li:last-child { border-bottom: 0; }
.kv li > span:first-child { font-family: var(--display); font-size: .8125rem; letter-spacing: .06em; color: var(--acc-2); padding-top: 2px; }
.kv li > span:last-child { color: var(--ink-2); }
.kv li b { font-weight: 400; color: var(--ink); }
.kv li a[data-i18n] { color: var(--ink); transition: color .12s; }
.kv li a[data-i18n]:hover { color: var(--acc); }

/* inventory: frames of 50 art px, drawn at an integer scale, straight on the page; the one
   pointed at glows and gets an amber bar under it */
.sh-inv { grid-area: inv; --sc: 2; }
.sh-hint { margin-bottom: 14px; font-family: var(--mono); font-size: .6875rem; color: var(--ink-3); }
.inv { display: grid; grid-template-columns: repeat(4, minmax(0, calc(50px * var(--sc) + 16px))); gap: 10px; }
.slot { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; }
.inv .slot { border: 0; opacity: 1; }   /* not the hangar's empty .slot */
.inv .slot::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 2px; height: 3px; background: var(--acc); opacity: 0; transition: opacity .12s; }
.inv .slot .item { transition: filter .12s; }
.inv .slot:hover::after, .inv .slot.on::after { opacity: 1; }
.inv .slot:hover .item, .inv .slot.on .item { filter: drop-shadow(0 0 6px rgb(255 200 92 / .45)); }
.inv .slot:focus-visible { outline: 2px solid var(--teal); outline-offset: 0; }
.item { width: calc(50px * var(--sc)); height: calc(50px * var(--sc)); image-rendering: pixelated;
  background: url("../img/rpg/items.webp") calc(var(--c) * -50px * var(--sc)) calc(var(--r) * -50px * var(--sc)) / calc(200px * var(--sc)) calc(150px * var(--sc)) no-repeat; }
.inv-tip { position: absolute; z-index: 5; width: min(300px, calc(100% - 8px)); padding: 12px 14px; background: #1a1524; pointer-events: none;
  box-shadow: 0 -3px 0 var(--acc), 0 3px 0 var(--acc), -3px 0 0 var(--acc), 3px 0 0 var(--acc), 6px 6px 0 var(--shadow); }
.tip-name { display: block; font-family: var(--display); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; color: var(--acc); }
.tip-tech { display: block; margin-top: 2px; font-family: var(--mono); font-size: .6875rem; color: #5fd3c8; }
.tip-flavor { margin-top: 8px; font-family: var(--pixel); font-size: 1.1875rem; line-height: 1.15; color: var(--ink); }
.tip-used { margin-top: 8px; font-size: .8125rem; color: var(--ink-2); }
.tip-used span { font-family: var(--display); font-size: .75rem; letter-spacing: .06em; color: var(--acc-2); margin-right: 4px; }

/* the GitHub sky and the world map: text tabs over a hairline, the open one underlined in amber (rpg.js) */
.sh-log { grid-area: log; }
.sh-log > [hidden], .sh-log > .off, .sh-tabs [hidden] { display: none; }
.sh-tabs { display: flex; gap: 1.75rem; margin-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.sh-tabs button { padding: 0 0 10px; font-family: var(--mono); font-size: .75rem; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); transition: color .12s; }
.sh-tabs button:hover { color: var(--ink); }
.sh-tabs button[aria-selected="true"] { color: var(--acc); box-shadow: inset 0 -2px 0 var(--acc); }
.sh-tabs button:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.sh-log > [role="tabpanel"]:focus-visible { outline: 1px dashed var(--ink-3); outline-offset: 6px; }
.sheet .sky4 { gap: 20px 28px; }

@media all {
  .sh-art img { visibility: hidden; }
  .sh-idle { display: block; animation: sh-idle .9s steps(4) infinite; }
  .slot:hover .item, .slot.on .item { animation: inv-bob .6s steps(1) infinite; }
}
@keyframes sh-idle { to { background-position: 133.333% 0; } }
@keyframes inv-bob { 50% { transform: translateY(calc(-2px * var(--sc))); } }

@media (min-width: 1024px) {
  /* the hero card lies down next to its portrait */
  .sh-port { display: grid; grid-template-columns: 108px auto; column-gap: 24px; align-items: start; align-content: center; justify-content: start; text-align: left; }
  .ab-bio p { font-size: 1.3125rem; }
  .ab-more { margin-top: 10px; }
  .kv li { padding: 6px 0; }
  .sheet { gap: 3rem 4rem; padding-top: 2.25rem; }
  .sh-col { gap: 2.25rem; }
  .sh-port .sh-class { display: none; }                /* the attributes right below say it too */
  /* the right column is the shorter one: guilds and inventory share what is left */
  .sh-work { display: flex; flex-direction: column; flex: 1 1 auto; }
  .sh-work ul { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
  .sh-art { grid-row: 2 / span 6; margin: 0; }
  .sh-xp { justify-self: start; }
  /* 6 x 2, slots as wide as the column allows, the items at 1x in the middle */
  .sh-inv { --sc: 1; display: flex; flex-direction: column; }
  .inv { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: auto 0; }
}
@media (max-width: 1023px) {
  .sh-col { display: contents; }
  .sheet { grid-template-areas: "port bio" "attr work" "inv inv" "log log"; }
  .sh-inv { --sc: 1; }
  .inv { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sheet { grid-template-columns: minmax(0, 1fr); grid-template-areas: "port" "bio" "attr" "work" "inv" "log"; gap: 2.5rem; }
  .sh-port { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 16px; align-items: start; text-align: left; }
  .sh-art { grid-row: 2 / span 6; margin: 0; }
  .sh-xp { justify-self: start; }
  .sh-bar i { width: 5px; }
  .sh-inv { --sc: 1; }
  .inv { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .ab-bio p { font-size: 1.3125rem; }
  .kv li { grid-template-columns: 6.25rem minmax(0, 1fr); }
}

/* ── footer ── */
.footer { margin-top: 5rem; border-top: 1px solid var(--line-soft); padding: 40px 0 44px; }
/* desktop: two short columns of links (brand over site, elsewhere over contact) beside the terminal */
.footer-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem 2rem; align-items: start; }
.f-brand { grid-column: 1 / 4; grid-row: 1; display: flex; flex-direction: column; gap: 8px; }
.f-brand .wm { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 1.25rem; line-height: 1.1; }
.f-brand .made { max-width: 30ch; color: var(--ink-3); font-size: .875rem; }
.f-brand .cc { font-size: .75rem; color: var(--ink-3); }
.f-col { grid-column: 1 / 4; grid-row: 2; }
.f-col + .f-col { grid-column: 4 / 7; grid-row: 1; }
.f-col.contact { grid-column: 4 / 7; grid-row: 2; }
.fh { font-family: var(--mono); font-weight: 400; font-size: .75rem; letter-spacing: .02em; color: var(--ink-3); margin-bottom: 12px; }
.f-col ul { display: flex; flex-direction: column; gap: 6px; }
.f-col a { width: fit-content; transition: color .12s, opacity .25s; }
.f-col a:hover { color: var(--acc); }
.f-col p { color: var(--ink-2); margin-bottom: 12px; font-size: .9375rem; }
.f-col .mail { font-family: var(--mono); font-size: .875rem; border-bottom: 1px solid var(--line); padding-bottom: 4px; word-break: break-all; }
.footer:has(> .camp) { padding-bottom: 0; }
/* the camp (camp.js): the hero's landscape upside down in spirit, the page ends on it. Its top
   dithers out of --bg with the hero's mask flipped; layers as in .land, --px from camp.js */
.camp { position: relative; height: min(calc(100vw * 268 / 466), 88svh); min-height: 380px; margin-top: 2.5rem; overflow: hidden; --px: 3px; }
.camp::before { bottom: auto; top: -1px; transform: scaleY(-1); }
@media all { .camp .layer { will-change: transform; } }
/* the sky behind the far layer's planet (its sky is transparent, tools/build-camp.mjs): the
   art's flat sky colour, with the hero's stars and passers-by on a canvas (camp.js) */
.camp-sky { position: absolute; left: 0; top: 0; width: 100%; height: calc(112 * var(--px)); background: rgb(21 16 31); }
.camp-sky + img { position: relative; }
.camp-sky canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
/* in art px over their layer: the campfire's light and the mast's beacon */
.camp i { position: absolute; left: calc(var(--x) * var(--px)); top: calc(var(--y) * var(--px)); width: calc(var(--w) * var(--px)); height: calc(var(--h) * var(--px)); pointer-events: none; }
.camp-fire { --x: 257; --y: 194; --w: 42; --h: 28; background: radial-gradient(closest-side, rgb(255 170 70 / .32), rgb(255 120 40 / .12) 55%, transparent); mix-blend-mode: screen; }
.camp-beacon { --x: 373; --y: 70; --w: 7; --h: 7; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 97 112 / .9), rgb(255 75 92 / .35) 45%, transparent); mix-blend-mode: screen; }
@media all {
  .camp-fire { animation: campfire 1.6s steps(1) infinite; }
  .camp-beacon { animation: beacon 2.8s steps(1) infinite; }
}
@keyframes campfire { 0% { opacity: 1; } 18% { opacity: .7; } 31% { opacity: .95; } 47% { opacity: .6; } 62% { opacity: 1; } 80% { opacity: .78; } }
/* the hangar backdrop behind the projects (camp.js): full bleed, under the section's content and never
   in the way of the pointer; its top and bottom dither into --bg with the hero's mask. .hg-back spans
   the whole reel (.hg-pin and the section); the scene inside it is a screen tall and sticks under the
   nav, so it stays put while the projects scroll over it. At rest (no JS, reduced motion) it is faded
   toward --bg so the cards read; with motion camp.js steps its opacity from 1 down to that as the
   section arrives. The window's sky is transparent (tools/build-hangar.mjs): the hero's stars on
   .hangar-sky behind it, at the glass (art 116,70 to 364,160) */
.hg-reel { position: relative; isolation: isolate; }
.hg-back { position: absolute; z-index: -1; top: 0; bottom: -3rem; left: calc(50% - 50vw); width: 100vw; pointer-events: none; }
.hangar-bg { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); overflow: hidden; opacity: .42; --px: 3px; }
.hangar-bg::after { bottom: auto; top: -1px; transform: scaleY(-1); }
/* the camera flies in toward the window's middle (art 240,115) */
.hangar-bg .layer { transform-origin: 50% 42.9%; }
@media all { .hangar-bg .layer { will-change: transform; } }
.hangar-sky { position: absolute; left: calc(116 * var(--px)); top: calc(70 * var(--px)); width: calc(248 * var(--px)); height: calc(90 * var(--px)); background: rgb(23 19 40); }
.hangar-sky + img { position: relative; }
.hangar-sky canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
/* the hand-off from the hero: --bg over the scene, faded out by camp.js as the reel rises */
.hg-veil { position: absolute; inset: 0; z-index: 1; background: var(--bg); opacity: 0; pointer-events: none; }
/* the stretch of scroll the camera flies in over (camp.js reads --fly back from the spacer's height):
   --fly of film, then the section starts to rise while the last quarter plays */
.hg-reel { --fly: 60svh; }
.hg-reel.reel .hg-pin { height: calc(var(--fly) * .75 + 100svh - var(--nav-h)); }
@media (max-width: 640px) { .hg-reel { --fly: 35svh; } }

/* the projects arrive once (camp.js): .hold-* waits off screen, .play-* runs once and is removed.
   Everything eases (no steps), like the cards' rise. The title and the switches rise; the monitor powers on (a line, then the picture); each
   cartridge drops into its slot, one after another, and the empty slot shows until it lands */
#projects.hold-top .sec-top > *, #projects.hold-grid .hg-mon, #projects.hold-grid .hg-tabs, #projects.hold-grid .cart { opacity: 0; }
#projects.hold-grid .mon-led { background: var(--shadow); box-shadow: 0 0 0 2px var(--shadow); }
#projects:is(.hold-grid, .play-grid) .pcard::before { content: ""; position: absolute; inset: 0; border: 2px dashed var(--line-soft); opacity: .7; }
#projects.play-top .sec-top > * { animation: hg-rise .5s cubic-bezier(.22, 1, .36, 1) both; }
#projects.play-top .sec-top > :nth-child(2) { animation-delay: .1s; }
#projects.play-grid .hg-mon { animation: hg-rise .45s cubic-bezier(.22, 1, .36, 1) both; }
#projects.play-grid .mon-art { animation: crt-on .5s .25s ease-out both; }
#projects.play-grid .mon-led { animation: led-on .5s .25s ease-out both; }
#projects.play-grid .hg-tabs { animation: hg-rise .45s .15s cubic-bezier(.22, 1, .36, 1) both; }
#projects.play-grid .cart { animation: cart-load .5s calc(.35s + var(--i, 0) * 70ms) ease-out both; }
@keyframes hg-rise { from { opacity: 0; transform: translateY(18px); } 25% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes crt-on { 0% { clip-path: inset(50% 0); filter: brightness(1); }
  10% { clip-path: inset(49% 4% 49% 4%); filter: brightness(4); } 30% { clip-path: inset(49% 0 49% 0); filter: brightness(3); }
  50% { clip-path: inset(30% 0); filter: brightness(2.2); } 70% { clip-path: inset(6% 0); filter: brightness(1.5); } 100% { clip-path: inset(0); filter: none; } }
@keyframes led-on { 0% { background: var(--shadow); } 30% { background: var(--acc); } 60%, 100% { background: var(--teal, #5fd4c4); } }
@keyframes cart-load { 0% { opacity: 0; transform: translateY(-40px); } 15% { opacity: 1; } 65% { transform: translateY(3px); } 82% { transform: translateY(-2px); } 100% { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .f-brand, .f-col, .f-col + .f-col, .f-col.contact { grid-row: auto; }
  .f-brand { grid-column: 1 / -1; }
  .f-col, .f-col + .f-col, .f-col.contact { grid-column: span 4; }
}
@media (max-width: 560px) {
  .f-col, .f-col + .f-col { grid-column: span 6; }
  .f-col.contact { grid-column: 1 / -1; }
}

@media not all { .caret, .brand:hover .heart { animation: none; } }

/* ── article ── */
.art { max-width: 720px; margin: 0 auto; padding: 3.5rem var(--gutter) 0; }
.back { display: inline-flex; gap: 8px; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--ink-3); transition: color .15s; }
.back:hover { color: var(--ink); }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 3rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--ink-3); text-transform: uppercase; }
.art h1 { margin-top: 14px; font-weight: 500; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.art-note { margin-top: 1.5rem; padding: 10px 14px; border: 1px solid var(--line-soft); font-family: var(--mono); font-size: .75rem; color: var(--ink-3); }
.prose { margin-top: 2.5rem; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2.4em; font-family: var(--mono); font-weight: 400; font-size: 1.125rem; letter-spacing: .01em; color: var(--ink); }
.prose h3 { margin-top: 2em; font-weight: 500; font-size: 1.0625rem; color: var(--ink); }
.prose strong { font-weight: 500; color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; transition: color .12s, text-decoration-color .12s; }
.prose a:hover { color: var(--acc); text-decoration-color: var(--acc); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before { content: "*"; position: absolute; left: -1.2em; font-family: var(--pixel); font-size: 1.4em; line-height: 1.35; color: var(--ink-3); }
.prose li + li { margin-top: .4em; }
.prose code { font-family: var(--mono); font-size: .875em; background: var(--bg-raised); border: 1px solid var(--line-soft); padding: 1px 5px; }
.prose pre { overflow-x: auto; padding: 16px 18px; background: var(--bg-raised); border: 1px solid var(--line-soft); font-size: .875rem; line-height: 1.7; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; color: var(--ink); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 14px 18px; border: 3px solid var(--ink); font-family: var(--pixel); font-size: 1.375rem; line-height: 1.2; color: var(--ink); }
.prose hr { border: 0; height: 1px; background: var(--line-soft); margin: 2.5em 0; }
.prose img { border: 1px solid var(--line-soft); }
/* a post written in HTML (format "html") brings its own styles; it only gets the column */
.post-html { margin-top: 2.5rem; }
/* the ledge the character sits on while you read, when the moon sprites are missing (site.js) */
.ledge { position: fixed; right: 26px; bottom: 62px; z-index: 999; width: 76px; height: 3px; background: var(--ink); box-shadow: 0 3px 0 var(--ink-4); pointer-events: none; }
.pj-role { margin-top: 8px; font-family: var(--mono); font-size: .8125rem; letter-spacing: .02em; color: var(--ink-3); }
.pj-cover { width: 100%; margin-top: 2rem; border: 1px solid var(--line-soft); }
.pj-stack { margin-top: 1.75rem; padding-bottom: 0; }
.pj-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 1.5rem; font-family: var(--mono); font-size: .8125rem; letter-spacing: .02em; }
.pj-links a { color: var(--ink); transition: color .12s; }
.pj-links a:hover { color: var(--acc); }
.art-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); }
.art-foot a { display: block; }
.art-foot .next { text-align: right; grid-column: 2; }
.art-foot span { display: block; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--ink-3); margin-bottom: 4px; }
.art-foot a:hover b { color: var(--acc); }
.art-foot b { font-weight: 400; transition: color .12s; }

/* ── hero: latest build log ── */
.now { display: inline-flex; align-items: baseline; gap: 10px; max-width: 100%; margin-top: 18px; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--ink-2); }
.now-tag { flex: none; padding: 1px 7px; border: 1px solid var(--acc); color: var(--acc); }
.now-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .12s; }
.now:hover .now-title, .now:focus-visible .now-title { color: var(--acc); }

/* ── project metric ── */
.pc-metric { margin-top: 10px; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--acc); }

/* ── project preview card (preview.js) ── */
.pv { position: fixed; left: 0; top: 0; z-index: 1002; width: 280px; background: var(--bg); border: 3px solid var(--ink); pointer-events: none; opacity: 0; visibility: hidden; }
.pv.on { opacity: 1; visibility: visible; pointer-events: auto; cursor: pointer; animation: pv-in .24s steps(6) both; }
@keyframes pv-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.pv-art { aspect-ratio: 16 / 8; background: var(--bg-raised); border-bottom: 3px solid var(--ink); overflow: hidden; }
.pv-art canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.pv-art img { width: 100%; height: 100%; object-fit: cover; }
.pv-info { padding: 10px 14px 12px; }
.pv-meta { display: flex; gap: 12px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em; color: var(--ink-3); text-transform: uppercase; }
.pv-name { margin-top: 4px; font-family: var(--pixel); font-size: 1.625rem; line-height: 1.1; color: var(--ink); }
.pv-role { font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em; color: var(--ink-3); }
.pv-metric { margin-top: 6px; font-family: var(--mono); font-size: .75rem; color: var(--acc); }
[data-preview] { cursor: pointer; }
.po-meta [data-preview] { text-decoration: underline dotted var(--ink-4); text-underline-offset: 3px; }
.art-meta a { transition: color .12s; }
.art-meta a:hover, #work a:hover b { color: var(--acc); }
#work a b { transition: color .12s; }

/* ── secret toast (secrets.js) ── */
.toast { position: fixed; left: 16px; bottom: 16px; z-index: 1020; max-width: min(460px, calc(100vw - 32px)); padding: 10px 16px; background: var(--bg); border: 3px solid var(--ink); font-family: var(--pixel); font-size: 1.375rem; line-height: 1.15; color: var(--ink); pointer-events: none; opacity: 0; transform: translateY(calc(100% + 24px)); transition: transform .3s steps(5), opacity 0s .3s; }
.toast.show { opacity: 1; transform: none; transition: transform .3s steps(5), opacity 0s; }

/* ── last 4 months as stars ── */
.year { grid-column: 1 / -1; }
.sky4 { display: flex; align-items: center; gap: 28px 48px; flex-wrap: wrap; }
.starsky { position: relative; flex: 0 1 360px; min-width: 240px; max-width: 100%; cursor: crosshair; }
.starsky canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.ys-tip { position: absolute; left: 0; top: 0; z-index: 2; padding: 2px 8px; background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em; color: var(--ink); white-space: nowrap; pointer-events: none; opacity: 0; }
.ys-tip.on { opacity: 1; }
.sky4-text { flex: 1 1 260px; min-width: 0; }
.sky4-text h3 { font-family: var(--mono); font-weight: 400; font-size: .75rem; letter-spacing: .02em; color: var(--ink-3); margin-bottom: 8px; }
.sky4-text p { color: var(--ink-3); font-size: .875rem; max-width: 46ch; }
.sky4-text .sky4-stat { margin-top: 14px; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--ink-2); }
.sky4-link { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--ink-2); transition: color .12s; }
.sky4-link:hover { color: var(--acc); }

/* ── where lipp is: the world as dots ── */
.world { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px 48px; flex-wrap: wrap; }
.worldmap { position: relative; flex: 1 1 520px; min-width: 260px; max-width: 100%; cursor: crosshair; }
.worldmap canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.world-text { flex: 1 1 240px; min-width: 0; }
.world-text h3 { font-family: var(--mono); font-weight: 400; font-size: .75rem; letter-spacing: .02em; color: var(--ink-3); margin-bottom: 8px; }
.world-text p { color: var(--ink-3); font-size: .875rem; max-width: 46ch; }
.world-text .world-now { margin-bottom: 8px; color: var(--ink); font-size: 1rem; }
.world-text .world-stat { margin-top: 14px; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--ink-2); }
.world-top { list-style: none; margin: 10px 0 0; padding: 0; max-width: 260px; }
.world-top li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line-soft); font-size: .875rem; color: var(--ink-2); }
.world-top b { font-family: var(--mono); font-weight: 400; color: var(--acc); }
.world-credit { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: .6875rem; color: var(--ink-3); transition: color .12s; }
.world-credit:hover { color: var(--acc); }

/* ── footer terminal (terminal.js) ── */
.f-term { grid-column: 7 / -1; grid-row: 1 / 3; }
.term { font-family: var(--pixel); font-size: 1.25rem; line-height: 1.2; }   /* open on the page: no window frame */
.term-bar { display: flex; align-items: center; gap: 10px; padding: 0 0 10px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em; color: var(--ink-3); }
.term-dots { display: flex; gap: 5px; }
.term-dots i { width: 6px; height: 6px; background: var(--ink-4); }
.term-dots i:first-child { background: var(--soul); }
.term-dots i:nth-child(2) { background: var(--acc); }
.term-out { height: clamp(96px, 16vh, 120px); overflow-y: auto; padding: 10px 0 4px; border-top: 1px solid var(--line-soft); scrollbar-width: thin; }
.term-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.term-line b { font-weight: 400; color: var(--ink); }
.term-line a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.term-line a:hover { color: var(--acc); text-decoration-color: var(--acc); }
.term .dim { color: var(--ink-3); }
.term .err { color: var(--soul); }
.term .ok { color: var(--acc); }
.term-in { display: flex; align-items: baseline; gap: 10px; padding: 4px 0 12px; }
.term-ps { flex: none; color: var(--menu); }
.term-in input { flex: 1; min-width: 0; padding: 0; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; caret-color: var(--acc); }
.term-quick { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px 0 0; border-top: 1px solid var(--line-soft); }
.term-quick button { padding: 1px 0; color: var(--menu); font-family: var(--pixel); font-size: 1.125rem; line-height: 1.2; text-decoration: underline dotted; text-decoration-color: color-mix(in srgb, var(--menu) 45%, transparent); text-underline-offset: 4px; transition: color .12s, text-decoration-color .12s; }
.term-quick button::before { content: "> "; color: var(--ink-4); }
.term-quick button:hover, .term-quick button:focus-visible { color: var(--acc); text-decoration-color: var(--acc); }
@media (max-width: 900px) { .f-term { grid-column: 1 / -1; grid-row: auto; } }
@media not all {
  .pv.on { animation: none; }
  .toast, .toast.show { transition: none; }
}

/* ── project modal (project-modal.js) ── */
:root { --pm-top: 112px; }
@media (max-width: 640px) { :root { --pm-top: 92px; } }
html.pm-open { overflow: hidden; }
.pm { position: fixed; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding: var(--pm-top) var(--gutter) 24px; }
.pm[hidden] { display: none; }
.pm-backdrop { position: absolute; inset: 0; background: rgb(8 6 12 / .84); backdrop-filter: blur(3px); }
.pm-box { position: relative; display: flex; flex-direction: column; width: min(1100px, 100%); height: calc(100dvh - var(--pm-top) - 24px); background: var(--bg); border: 3px solid var(--ink); animation: pm-in .26s steps(6) both; }
@keyframes pm-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
/* the extra room at the top is where lipp's legs hang when he sits on the box */
.pm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 36px 18px 14px; border-bottom: 3px solid var(--ink); }
.pm-titles { min-width: 0; }
.pm-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em; color: var(--ink-3); text-transform: uppercase; }
.pm-meta .pm-metric { color: var(--acc); text-transform: none; }
.pm-name { margin-top: 4px; font-family: var(--pixel); font-weight: 400; font-size: 2.125rem; line-height: 1; color: var(--ink); }
.pm-role { margin-top: 2px; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--ink-3); }
.pm-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.pm-ext { padding: 3px 12px; border: 2px solid var(--menu); color: var(--menu); font-family: var(--pixel); font-size: 1.25rem; line-height: 1.15; white-space: nowrap; transition: color .12s, border-color .12s; }
.pm-x { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--ink); font-family: var(--pixel); font-size: 1.75rem; line-height: 1; transition: color .12s, border-color .12s; }
.pm-ext:hover, .pm-ext:focus-visible, .pm-x:hover, .pm-x:focus-visible { border-color: var(--acc); color: var(--acc); outline: none; }
.pm-stage { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; background: var(--bg-raised); overflow: hidden; }
.pm-frame { flex: 1; width: 100%; border: 0; background: #fff; opacity: 0; transition: opacity .2s; }
.pm-stage.ready .pm-frame { opacity: 1; }
.pm-loading { position: absolute; inset: 0 0 30px; display: grid; place-items: center; font-family: var(--pixel); font-size: 1.5rem; color: var(--ink-3); }
.pm-stage.ready .pm-loading { display: none; }
.pm-media { flex: 1; min-height: 0; width: 100%; object-fit: contain; background: #000; }
.pm-cover { flex: 1; min-height: 0; }
.pm-cover canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.pm-note { padding: 6px 18px; border-top: 1px solid var(--line-soft); background: var(--bg); font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em; color: var(--ink-3); }
.pm-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 14px 18px; border-top: 3px solid var(--ink); }
.pm-desc { flex-basis: 100%; color: var(--ink-2); font-size: .9375rem; line-height: 1.55; text-wrap: pretty; }
.pm-foot .chips { margin: 0; padding: 0; }
.pm-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; }
.pm-links a { color: var(--ink-2); transition: color .12s; }
.pm-links a:hover { color: var(--acc); }
@media (max-width: 640px) {
  .pm { padding: var(--pm-top) 10px 10px; }
  .pm-head { padding: 28px 14px 12px; }
  .pm-name { font-size: 1.75rem; }
  .pm-ext { font-size: 1.0625rem; padding: 2px 8px; }
  .pm-foot { padding: 12px 14px; }
  .pm-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .pm-links { margin-left: 0; }
}
@media not all { .pm-box { animation: none; } }

/* ── Console Mode inside the project modal: a preview in its own look ── */
.pm-cm-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 24px; background: radial-gradient(60% 70% at 50% 35%, rgba(54, 202, 144, .16), transparent 70%), #0a1414; color: #eef6f3; font-family: Inter, "Segoe UI", -apple-system, sans-serif; text-align: center; }
.pm-cm-content { max-width: 440px; display: flex; flex-direction: column; align-items: center; }
.pm-cm-icon { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 10px 30px -8px rgba(54, 202, 144, .55); }
.pm-cm-name { margin-top: 14px; font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.pm-cm-tagline { margin-top: 6px; font-weight: 600; font-size: 1.0625rem; background: linear-gradient(100deg, #fff 20%, #9ff0cf 60%, #2fb3d8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pm-cm-sub { margin-top: 10px; color: #a9bcb7; font-size: .9375rem; line-height: 1.55; }
.pm-cm-launch { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: linear-gradient(180deg, #3ed79c, #2aa877); color: #04110c; font-weight: 700; font-size: .9375rem; box-shadow: 0 10px 28px -10px rgba(54, 202, 144, .7); transition: transform .15s, box-shadow .15s; }
.pm-cm-launch span { transition: transform .15s; }
.pm-cm-launch:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(54, 202, 144, .85); }
.pm-cm-launch:hover span { transform: translateX(3px); }
.pm-ext.pm-cm-ext { border-color: #36ca90; color: #36ca90; }
.pm-ext.pm-cm-ext:hover { border-color: #3ed79c; color: #3ed79c; }

/* ── going to Console Mode (site.js): its screen grows over the page ──
   The final frame (icon centred on the app's background) is the same one
   the Console Mode page starts from, so the cut is invisible. */
.cm-go { position: fixed; inset: 0; z-index: 100050; display: grid; place-items: center; background: radial-gradient(50% 45% at 50% 50%, rgba(54, 202, 144, .14), transparent 70%), #0a1414; pointer-events: all; transition: clip-path .52s cubic-bezier(.7, 0, .2, 1); will-change: clip-path; }
.cm-go img { width: 72px; height: 72px; border-radius: 16px; opacity: 0; transform: scale(.88); transition: opacity .25s .26s, transform .4s .22s cubic-bezier(.2, .8, .2, 1); }
.cm-go.on img { opacity: 1; transform: none; }

/* ── the terminal: full size on the home, a shorter window everywhere else ── */
.term.compact .term-out { height: clamp(70px, 12vh, 110px); }

/* ── 404 ── */
.lost { max-width: 640px; margin: 0 auto; padding: 5rem var(--gutter) 2rem; text-align: center; }
.lost .code { font-family: var(--display); font-weight: 700; font-size: 4.5rem; line-height: 1; color: var(--acc); text-shadow: 5px 5px 0 var(--shadow); }
.lost h1 { margin-top: .75rem; font-weight: 500; font-size: 1.5rem; }
.lost p { margin-top: .75rem; color: var(--ink-2); }
.lost .acts { margin-top: 1.75rem; display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── dividers: the way down from the hero, between the homepage sections ── */
/* full-bleed strips of underground pixel art (tools/build-dividers.mjs, 480x150 art px whose top
   and bottom rows dither into --bg). --px is one art px: the viewport width, never under 1.6 css px
   (phones crop the sides, keeping the centre). dividers.js puts the lights in .dv-fx and, while a
   strip is in view (.live), shifts .dv-art by whole art px (--dy) as the page scrolls */
/* the strip is at most min(24vh, 240px) tall, a whole number of art px: the art is cropped around
   its middle (.dv-art and its lights move together) and ::before/::after dither the cut edges into
   --bg again, 9 art px each, with the same 4x4 Bayer steps as the build */
.divider { --px: max(100vw / 480, 1.6px); --h: round(down, min(150 * var(--px), 24vh, 240px), var(--px)); position: relative; width: 100vw; margin: 3rem 0 0 calc(50% - 50vw); height: min(150 * var(--px), 24vh, 240px); height: var(--h); overflow: hidden; background: var(--bg); pointer-events: none; }
.divider + .sec, .divider + .arcade { padding-top: 1.5rem; }
.divider::before, .divider::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: calc(9 * var(--px)); background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 9' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h4v1h-4zM1 1h1v1h-1zM2 1h1v1h-1zM3 1h1v1h-1zM0 2h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM1 3h1v1h-1zM3 3h1v1h-1zM0 4h1v1h-1zM2 4h1v1h-1zM3 5h1v1h-1zM0 6h1v1h-1zM2 6h1v1h-1zM0 8h1v1h-1z'/%3E%3C/svg%3E") 50% 0 / calc(4 * var(--px)) calc(9 * var(--px)) repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 9' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h4v1h-4zM1 1h1v1h-1zM2 1h1v1h-1zM3 1h1v1h-1zM0 2h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM1 3h1v1h-1zM3 3h1v1h-1zM0 4h1v1h-1zM2 4h1v1h-1zM3 5h1v1h-1zM0 6h1v1h-1zM2 6h1v1h-1zM0 8h1v1h-1z'/%3E%3C/svg%3E") 50% 0 / calc(4 * var(--px)) calc(9 * var(--px)) repeat-x; }
.divider::after { top: auto; bottom: 0; transform: scaleY(-1); }
.dv-art { position: absolute; left: 50%; top: calc((100% - 150 * var(--px)) / 2); top: round(calc((var(--h) - 150 * var(--px)) / 2), var(--px)); width: calc(480 * var(--px)); height: calc(150 * var(--px)); margin-left: calc(-240 * var(--px)); transform: translate3d(0, calc(var(--dy, 0) * var(--px)), 0); }
.dv-art img { width: 100%; height: 100%; max-width: none; image-rendering: pixelated; }
/* layered strips (divider 2): .dv-art carries the back picture and its drift, .dv-front the front one
   with 10 art px of bleed above and below, shifted a further --fy art px, and the lights */
.dv-front { position: absolute; left: 0; top: calc(-10 * var(--px)); width: 100%; height: calc(170 * var(--px)); transform: translate3d(0, calc(var(--fy, 0) * var(--px)), 0); }
.dv-front .dv-fx { position: absolute; left: 0; right: 0; top: calc(10 * var(--px)); }
.dv-fx i { position: absolute; left: calc(var(--x) * var(--px)); top: calc(var(--y) * var(--px)); width: calc(var(--w, 1) * var(--px)); height: calc(var(--h, 1) * var(--px)); }
.dv-fx i::before, .dv-fx i::after { content: ""; position: absolute; inset: 0; }
/* crystal glints: a crisp plus of light, mostly off */
.dv-fx .glint::after { background: #fffbe8; box-shadow: var(--px) 0 rgb(var(--c) / .7), calc(var(--px) * -1) 0 rgb(var(--c) / .7), 0 var(--px) rgb(var(--c) / .7), 0 calc(var(--px) * -1) rgb(var(--c) / .7), 0 0 calc(var(--px) * 5) calc(var(--px) * 1.5) rgb(var(--c) / .35); opacity: 0; }
.dv-fx .glint { --c: 255 214 140; }
.dv-fx .glint.teal { --c: 140 255 226; }
/* server rack LEDs: ::before is the LED switched off, ::after lit */
.dv-fx .led::before { background: #2c1a22; opacity: 0; }
.dv-fx .led::after { background: #ff4f5e; box-shadow: 0 0 calc(var(--px) * 3) var(--px) rgb(255 75 92 / .5); }
/* lava cracks: a soft glow over each */
.dv-fx .lava::after { background: radial-gradient(closest-side, rgb(255 110 60 / .5), rgb(255 80 50 / .18) 60%, transparent); mix-blend-mode: screen; opacity: .45; }
@media all {
  .divider.live .glint::after { animation: dv-glint var(--t, 4s) steps(1) var(--d, 0s) infinite; }
  .divider.live .led::after { animation: beacon var(--t, 2s) steps(1) var(--d, 0s) infinite; }
  .divider.live .led::before { animation: dv-off var(--t, 2s) steps(1) var(--d, 0s) infinite; }
  .divider.live .lava::after { animation: dv-lava var(--t, 5s) ease-in-out var(--d, 0s) infinite alternate; }
}
@keyframes dv-glint { 0%, 84%, 100% { opacity: 0; } 86%, 92% { opacity: 1; } 89% { opacity: .5; } }
@keyframes dv-off { 0%, 46% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes dv-lava { from { opacity: .15; } to { opacity: .8; } }
@media (max-width: 640px) { .divider { margin-top: 2.5rem; } .divider + .sec, .divider + .arcade { padding-top: 1.25rem; } }
