@font-face { font-family: "PS640 Manrope"; src: url("../fonts/Manrope-W300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "PS640 Manrope"; src: url("../fonts/Manrope-W500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "PS640 Manrope"; src: url("../fonts/Manrope-W700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PS640 Plex"; src: url("../fonts/IBMPlexSans-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "PS640 Plex"; src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PS640 Plex"; src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "PS640 PlexMono"; src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PS640 PlexMono"; src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

.ps640 {
  --ps-ink: #0C0D0F; --ps-g900: #111316; --ps-g800: #1B1E22; --ps-g700: #2A2E34;
  --ps-g500: #6B7078; --ps-g400: #8A8F96; --ps-g300: #B4B7BC; --ps-g100: #E9E9E6; --ps-red: #CE181E; --ps-copper: #C9875A;
  --ps-disp: "PS640 Manrope", sans-serif; --ps-sans: "PS640 Plex", sans-serif; --ps-mono: "PS640 PlexMono", monospace;
  container-type: inline-size; display: block; width: 100%;
  background: var(--ps-ink); color: var(--ps-g100); font: 400 15px/1.55 var(--ps-sans);
  font-feature-settings: "tnum" 1, "lnum" 1; text-align: left; letter-spacing: normal; text-transform: none;
}
.ps640, .ps640 *, .ps640 *::before, .ps640 *::after { box-sizing: border-box; }
.ps640 :where(h2, p, dl, dt, dd, button, output, small, b, div, span, input) { margin: 0; padding: 0; }
.ps640 :where(h2, p, dt, dd) { font-family: inherit; color: inherit; text-transform: none; letter-spacing: normal; }

.ps640 .ps-grid { display: grid; grid-template-columns: 380px 1fr; min-height: 720px; }
.ps640 .ps-side { padding: 48px 32px 36px 40px; display: flex; flex-direction: column; gap: 24px; border-right: 1px solid var(--ps-g800); }
.ps640 .ps-kicker { font: 500 11px/1 var(--ps-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ps-g400); }
.ps640 .ps-kicker::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--ps-red); margin-right: 10px; vertical-align: 1px; }
.ps640 .ps-title { font: 300 34px/1.12 var(--ps-disp); letter-spacing: -.01em; color: #fff; margin-top: 14px; }
.ps640 .ps-title b { font-weight: 700; }
.ps640 .ps-lead { color: var(--ps-g300); font: 300 15px/1.55 var(--ps-sans); }

.ps640 .ps-label { font: 500 10.5px/1 var(--ps-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ps-g500); margin-bottom: 10px; }
.ps640 .ps-seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ps640 .ps-seg.ps-modes { grid-template-columns: 1fr; }
.ps640 .ps-seg button { appearance: none; -webkit-appearance: none; border-radius: 0; box-shadow: none; min-height: 0; width: auto; height: auto;
  background: var(--ps-g900); border: 1px solid var(--ps-g700); color: var(--ps-g300); padding: 9px 4px; cursor: pointer;
  font: 500 13px/1.2 var(--ps-disp); letter-spacing: normal; text-transform: none; text-align: center;
  transition: border-color .2s, color .2s, background .2s; }
.ps640 .ps-seg.ps-modes button { display: flex; flex-wrap: wrap; gap: 2px 10px; justify-content: space-between; align-items: baseline; padding: 9px 12px; text-align: left; }
.ps640 .ps-seg.ps-modes button small { font: 400 11px/1 var(--ps-mono); color: var(--ps-g500); }
.ps640 .ps-seg button:hover { border-color: var(--ps-g500); color: #fff; background: var(--ps-g900); }
.ps640 .ps-seg button[aria-pressed="true"] { border-color: var(--ps-copper); color: #fff; background: #1d1611; }
.ps640 .ps-seg button[aria-pressed="true"] small { color: var(--ps-copper); }
.ps640 .ps-seg button:focus-visible { outline: 2px solid var(--ps-copper); outline-offset: 2px; }

.ps640 input[type=range] { width: 100%; margin: 0; accent-color: var(--ps-copper); background: transparent; border: 0; box-shadow: none; }
.ps640 .ps-range-head { display: flex; justify-content: space-between; align-items: baseline; }
.ps640 .ps-range-head output { font: 500 22px/1 var(--ps-disp); color: #fff; }
.ps640 .ps-range-ticks { display: flex; justify-content: space-between; font: 400 10.5px/1 var(--ps-mono); color: var(--ps-g500); margin-top: 4px; }

.ps640 dl.ps-read { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--ps-g800); }
.ps640 dl.ps-read dt, .ps640 dl.ps-read dd { padding: 10px 0; border-bottom: 1px solid var(--ps-g800); }
.ps640 dl.ps-read dt { color: var(--ps-g400); font: 400 13px/1.4 var(--ps-sans); }
.ps640 dl.ps-read dd { font: 500 15px/1.3 var(--ps-disp); color: #fff; text-align: right; }
.ps640 dl.ps-read dd.ps-hl { color: var(--ps-copper); }
.ps640 dl.ps-read dd.ps-red { color: #ff5a5f; }
.ps640 .ps-warn { color: #ff8a8d; font-size: 13px; min-height: 1.2em; }
.ps640 .ps-note { font: 400 12px/1.5 var(--ps-sans); color: var(--ps-g500); margin-top: auto; }

.ps640 .ps-stage { position: relative; overflow: hidden; background: var(--ps-g900); min-height: 560px; }
.ps640 .ps-stage canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.ps640 .ps-css2d { position: absolute; inset: 0; pointer-events: none; }
.ps640 .ps-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 40px; }
.ps640 .ps-fallback img { max-width: 100%; max-height: 100%; background: #F3F3F1; padding: 20px; }
.ps640.ps-nowebgl .ps-fallback { display: flex; }

.ps640 .ps-tag { font: 500 11px/1.25 var(--ps-mono); color: var(--ps-g300); white-space: nowrap; letter-spacing: .02em; }
.ps640 .ps-tag.ps-on { color: #fff; background: rgba(12,13,15,.75); padding: 4px 7px; border-left: 2px solid var(--ps-copper); }
.ps640 .ps-tag.ps-red { color: #ff6b70; }
.ps640 .ps-tag.ps-cam { color: var(--ps-g400); }

.ps640 .ps-inset-cap { position: absolute; z-index: 2; font: 500 10.5px/1.35 var(--ps-mono); letter-spacing: .06em; color: var(--ps-g300);
  pointer-events: none; background: rgba(17,19,22,.85); padding: 2px 6px 2px 0; }
.ps640 .ps-inset-cap b { color: #fff; font-weight: 500; }
.ps640 .ps-inset { position: absolute; z-index: 2; border: 1px solid rgba(255,255,255,.35); background: #05030c; }
.ps640 .ps-inset.ps-main { cursor: crosshair; }
.ps640 .ps-inset canvas { position: static; width: 100%; height: 100%; image-rendering: pixelated; }
.ps640 .ps-lbox { position: absolute; border: 1px solid #fff; pointer-events: none; }
.ps640 .ps-hint { position: absolute; left: 24px; top: 20px; font: 400 11px/1 var(--ps-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ps-g500); pointer-events: none; }

@container (max-width: 980px) {
  .ps640 .ps-grid { grid-template-columns: 1fr; min-height: 0; }
  .ps640 .ps-side { border-right: 0; padding: 36px 22px 24px; }
  .ps640 .ps-stage { min-height: 72vh; }
}
