/* Artboard system: each .board is a 1536x1024 design frame scaled to viewport width.
   Inline custom props position children in design pixels: --x --y --r(right) --w --h --fs */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #111; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.board { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 1536 / 1024; overflow: hidden; }
.art { --u: calc(100cqw / 1536); position: absolute; inset: 0; }
.a { position: absolute; left: calc(var(--x, 0) * var(--u)); top: calc(var(--y, 0) * var(--u)); }
.a[style*="--r:"] { left: auto; right: calc(var(--r) * var(--u)); }
[style*="--w:"] { width: calc(var(--w) * var(--u)); }
[style*="--h:"] { height: calc(var(--h) * var(--u)); }
[style*="--fs:"] { font-size: calc(var(--fs) * var(--u)); }
.cover { object-fit: cover; }
.u-line { position: relative; }
.u-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-10 * var(--u)); height: calc(3 * var(--u)); background: currentColor; }

/* Floating switcher shown on every showcase page */
.switch { position: fixed; z-index: 99; right: 16px; bottom: 16px; display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(20,20,20,.82); backdrop-filter: blur(10px); font: 500 12px/1 system-ui, sans-serif; letter-spacing: .01em; }
.switch a { color: #ddd; padding: 9px 13px; border-radius: 999px; }
.switch a[aria-current="page"] { background: #fff; color: #111; }
.switch a:hover:not([aria-current]) { color: #fff; background: rgba(255,255,255,.12); }
.switch a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
