/* Hex Chain Audio. Type and colour follow the Anagram blocks: Jost for names, IBM Plex Mono
   for labels and data, Permanent Marker only on tape. */
@font-face { font-family: "Jost"; src: url(fonts/Jost-Variable.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/IBMPlexMono-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Marker"; src: url(fonts/PermanentMarker-Regular.ttf) format("truetype"); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-up: #111113;
  --hair: #1f1f23;
  --hair-2: #2b2b30;
  --ink: #ece6d8;
  --ink-2: #b4ad9f;
  --mute: #938c7f;
  --tape: #ebe2c9;
  --tape-ink: #151413;
  --or: #ff8a2a;
  --cy: #4fd8e8;
  --rd: #f0606a;
  --mg: #e04ad8;
  --max: 1240px;
  --gut: clamp(16px, 4vw, 48px);
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font: 400 17px/1.65 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* film grain over the whole page */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
::selection { background: var(--or); color: var(--tape-ink); }
:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; }

/* the device's block-name type: lowercase, heavy italic, a cyan/red split */
.display {
  font: italic 800 clamp(2.9rem, 7.2vw, 6.2rem)/.92 var(--sans);
  letter-spacing: -.035em; text-transform: lowercase;
  text-shadow: -.035em 0 rgba(79,216,232,.85), .035em 0 rgba(240,96,106,.85);
}
.display.sm { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }

/* buttons */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --tape-shape: polygon(0 10%, 3% 0, 8% 8%, 95% 2%, 100% 14%, 98% 86%, 100% 100%, 6% 95%, 0 100%, 2% 52%); }
.tape-label {
  display: inline-block; font: 400 .95rem/1 "Marker", cursive; color: var(--tape-ink);
  background: var(--tape); padding: .5em 1.1em .45em; transform: rotate(-2deg); clip-path: var(--tape-shape);
}
.tape-btn, .nav-cta {
  position: relative; isolation: isolate; display: inline-block; cursor: pointer;
  font: 400 1.08rem/1 "Marker", cursive; color: var(--tape-ink); text-decoration: none; padding: .8em 1.55em .74em;
  border: 0; background: none; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .22s var(--ease), filter .22s var(--ease);
}
.tape-btn::before, .nav-cta::before { /* the tape */
  content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--tape-shape);
  background: var(--tape);
  transition: background .22s var(--ease);
}
.tape-btn::after, .nav-cta::after { /* a glint that runs across on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--tape-shape);
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 48%, transparent 60%) -160% 0 / 250% 100% no-repeat;
  transition: background-position 0s;
}
.tape-btn:hover, .nav-cta:hover {
  transform: translateY(-2px) rotate(-1.2deg);
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(255,138,42,.28));
}
.tape-btn:hover::before, .nav-cta:hover::before { background: #fff6dc; }
.tape-btn:hover::after, .nav-cta:hover::after { background-position: 160% 0; transition: background-position .75s var(--ease); }
.tape-btn:active, .nav-cta:active {
  transform: translateY(1px) rotate(-.4deg) scale(.98);
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.5)); transition-duration: .06s;
}
.tape-btn:active::before, .nav-cta:active::before { background: #dfd4b8; }
.tape-btn:focus-visible, .nav-cta:focus-visible { outline: 2px solid var(--cy); outline-offset: 4px; }

.text-btn {
  position: relative; display: inline-block; cursor: pointer;
  font: 500 .78rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); padding: .95em 0 .8em; background: none; border: 0;
  transition: color .2s var(--ease);
}
.text-btn::before { /* the rule: solid orange; on hover a bright sweep runs along it and it thickens */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent 40%, #ffd2a6 50%, transparent 60%) -100% 0 / 200% 100% no-repeat, var(--or);
  transition: height .2s var(--ease);
}
.text-btn::after { content: "\2192" / ""; display: inline-block; margin-left: .7em; color: var(--or); letter-spacing: 0; transition: transform .3s var(--ease); }
.text-btn:hover { color: #fff; }
.text-btn:hover::before { height: 2px; background-position: 200% 0, 0 0; transition: height .2s var(--ease), background-position .6s var(--ease); }
.text-btn:hover::after { transform: translateX(5px); }
.text-btn:active { color: var(--or); }
.text-btn:active::after { transform: translateX(9px); transition-duration: .08s; }
.text-btn:focus-visible { outline: 2px solid var(--cy); outline-offset: 4px; color: #fff; }
.text-btn:focus-visible::before { height: 2px; background: var(--cy); }
.watch-btn::after { content: "\25B6" / ""; font-size: .8em; }

.pending { cursor: not-allowed; }
.pending:hover { transform: none; }
.tape-btn.pending:hover::after, .nav-cta.pending:hover::after { background-position: -160% 0; transition: none; }
.text-btn.pending:hover::before { height: 1px; background-position: -100% 0, 0 0; }
.text-btn.pending:hover::after { transform: none; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: 64px;
  display: flex; align-items: center; gap: 36px; padding: 0 var(--gut);
  background: rgba(10,10,11,.82); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--hair);
}
.nav nav { display: flex; gap: 30px; margin-right: auto; }
.nav nav a { position: relative; padding: 8px 0; font: 500 .72rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); transition: color .2s var(--ease); }
.nav nav a::after { content: ""; position: absolute; left: 0; right: .2em; bottom: 0; height: 1px; background: var(--or); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav nav a:hover, .nav nav a[aria-current="true"] { color: var(--ink); }
.nav nav a:hover::after, .nav nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav nav a:focus-visible { outline: 2px solid var(--cy); outline-offset: 4px; color: #fff; }
.nav nav a:focus-visible::after { transform: scaleX(1); background: var(--cy); }
.nav-cta { font-size: .92rem; padding: .6em 1.2em .55em; }

/* hero */
.hero {
  position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) var(--gut) 0;
  background:
    radial-gradient(120% 70% at 75% 100%, rgba(255,138,42,.10), transparent 60%),
    radial-gradient(60% 50% at 10% 0%, rgba(79,216,232,.06), transparent 60%);
}
.hero::before { /* the device's hex grid, faded in from the floor, drifting */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url(img/texture-hex.webp) left 0 bottom -40px / 1424px 280px repeat-x;
  opacity: .7; mask-image: linear-gradient(transparent 55%, #000 90%);
  animation: grid-drift 240s linear infinite;
}
@keyframes grid-drift { to { background-position: left -1424px bottom -40px; } }
.hero::after { /* the amp's glow, breathing */
  content: ""; position: absolute; z-index: -1; right: -10%; bottom: -30%; width: 75%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,138,42,.16), transparent);
  animation: breathe 14s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.rig::before { /* a faint scan band sweeping across the board */
  content: ""; position: absolute; top: -30%; bottom: 0; width: 18%; left: -20%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(79,216,232,.035), transparent);
  animation: sweep 22s ease-in-out infinite;
}
@keyframes sweep { 0% { left: -20%; } 60%, 100% { left: 110%; } }
.hero-text { max-width: var(--max); margin: 0 auto; }
.hero-text > * { animation: up .9s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .2s; }
.hero-text > :nth-child(4) { animation-delay: .3s; }
/* the headline tracks in like a tape locking on: flicker and jitter, two torn slices slipping
   sideways, a band of tape noise rolling down, the colour split pulling together */
.display { position: relative; }
.display.tape-run { animation: tape-in 1.35s linear var(--td, .05s) both, tape-split 1.5s cubic-bezier(.2, .7, .2, 1) var(--td, .05s) both; }
.hero h1.display { --td: .2s; font-size: clamp(2.5rem, 5.8vw, 5rem); letter-spacing: -.01em; line-height: .98; }
@keyframes tape-in {
  0% { opacity: 0; transform: none; }
  4% { opacity: 1; transform: translateX(-3px); }
  9% { opacity: .75; transform: translateX(2px); }
  14% { opacity: 1; transform: translateX(-1px); }
  22%, 34% { transform: none; }
  36% { transform: translateX(2px); }
  39%, 100% { opacity: 1; transform: none; }
}
@keyframes tape-split {
  from { text-shadow: -.1em 0 rgba(79,216,232,.9), .1em 0 rgba(240,96,106,.9); }
  to { text-shadow: -.035em 0 rgba(79,216,232,.85), .035em 0 rgba(240,96,106,.85); }
}
/* the tape itself: an SVG filter (added by site.js) shoves rows of the letters sideways and
   lays static over them, both dying away as the tape settles */
.display .tear { position: absolute; inset: 0; pointer-events: none; color: var(--ink); clip-path: inset(0 0 100% 0); }
.display.tape-run .tear.a { animation: tear-a 1.35s steps(1) var(--td, .05s) both; }
.display.tape-run .tear.b { animation: tear-b 1.35s steps(1) var(--td, .05s) both; color: #fff; }
@keyframes tear-a {
  0% { clip-path: inset(0 0 100% 0); }
  4% { clip-path: inset(12% 0 80% 0); transform: translateX(-9px); }
  10% { clip-path: inset(48% 0 46% 0); transform: translateX(6px); }
  17% { clip-path: inset(30% 0 64% 0); transform: translateX(-4px); }
  24% { clip-path: inset(70% 0 25% 0); transform: translateX(3px); }
  33% { clip-path: inset(0 0 100% 0); }
  37% { clip-path: inset(56% 0 40% 0); transform: translateX(-5px); }
  41%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
}
@keyframes tear-b {
  0% { clip-path: inset(0 0 100% 0); }
  6% { clip-path: inset(62% 0 34% 0); transform: translateX(10px); opacity: .5; }
  13% { clip-path: inset(20% 0 77% 0); transform: translateX(-7px); }
  20% { clip-path: inset(84% 0 12% 0); transform: translateX(4px); }
  28%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
}
.display::after { /* the noise band */
  content: ""; position: absolute; left: -2%; right: -2%; height: 14%; top: -20%; pointer-events: none; mix-blend-mode: screen;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.22) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 2px, transparent 2px 9px, rgba(255,255,255,.05) 9px 11px, transparent 11px 23px);
  filter: blur(.4px); opacity: 0;
}
.display.tape-run::after { animation: tape-band 1.1s cubic-bezier(.4, 0, .6, 1) var(--td, .05s) both;
}
@keyframes tape-band {
  0% { top: -30%; opacity: 0; } 6% { opacity: 1; }
  60% { opacity: .9; } 100% { top: 110%; opacity: 0; }
}
.rig { animation: up 1.1s var(--ease) .35s both; }
@keyframes up { from { opacity: 0; transform: translateY(22px); } }
@keyframes split {
  from { text-shadow: -.22em 0 rgba(79,216,232,0), .22em 0 rgba(240,96,106,0); }
  to { text-shadow: -.035em 0 rgba(79,216,232,.85), .035em 0 rgba(240,96,106,.85); }
}

/* scroll reveals (only when script runs: html.js) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.for { font: 500 .74rem/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--or); margin-bottom: 26px; }
.lede { max-width: 34em; margin: 30px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin-top: 38px; }

.rig {
  position: relative; max-width: var(--max); margin: clamp(40px, 5vw, 64px) auto 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2%;
  padding-bottom: clamp(26px, 4vw, 48px);
}
.rig::after { /* the floor */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair-2) 15%, var(--hair-2) 85%, transparent);
}
.ped { width: 10.4%; filter: drop-shadow(0 14px 12px rgba(0,0,0,.75)); }
/* the rig's blocks are links to their entries: they lift and brighten under the pointer */
.rig a.ablock { cursor: pointer; transition: transform .25s var(--ease), filter .25s var(--ease); }
.rig a.ped:hover { transform: translateY(-6px); filter: drop-shadow(0 20px 14px rgba(0,0,0,.8)) brightness(1.15); }
.rig .stack a.ablock:hover { transform: translateY(-4px); filter: brightness(1.15); }
.rig a.ablock:active { transform: translateY(-2px); transition-duration: .08s; }
.rig a.ablock:focus-visible { outline: 2px solid var(--cy); outline-offset: 4px; }
.stack { width: 23%; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 22px 22px rgba(0,0,0,.8)); }
.stack > :first-child { width: 100%; margin-bottom: -13%; position: relative; z-index: 1; }
.stack > :last-child { width: 100%; }
.floor-line { /* the signal line, in the device's slanted dashes, flowing toward the amp */
  position: absolute; left: 0; right: 18%; bottom: calc(clamp(26px, 4vw, 48px) + 3.2%); height: 10px; z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,138,42,.85) 0 18px, transparent 18px 26px, rgba(150,120,95,.5) 26px 62px, transparent 62px) 0 0 / 96px 5px repeat-x,
    linear-gradient(90deg, transparent 0 40px, rgba(79,216,232,.75) 40px 86px, transparent 86px) 0 8px / 96px 2px repeat-x;
  transform: skewX(-35deg);
  animation: flow 6s linear infinite;
}
@keyframes flow { to { background-position: 96px 0, 96px 8px; } }
.floor-line::after { /* the pulse that runs ahead of the lit pedals */
  content: ""; position: absolute; top: -8px; left: 0; width: 160px; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,215,170,.55), rgba(255,138,42,.25) 45%, transparent);
  filter: blur(4px); mix-blend-mode: screen; opacity: 0;
  animation: pulse-run 16s cubic-bezier(.45, .05, .55, .95) infinite;
}
@keyframes pulse-run {
  0% { left: -6%; opacity: 0; } 8% { opacity: 1; }
  52% { opacity: 1; } 60%, 100% { left: 100%; opacity: 0; }
}

/* a block with its Anagram tape noise: now and then the tracking glitch (a 6-frame strip) */
.ablock { position: relative; display: block; }
.ablock > img { width: 100%; height: auto; display: block; }
.ablock .glitch { position: absolute; inset: 0; background-size: 600% 100%; background-repeat: no-repeat; opacity: 0; pointer-events: none; }
.ablock.glitching > img { visibility: hidden; }
.ablock.glitching .glitch { opacity: 1; animation: glitch-strip .72s steps(6, jump-none) both; }
@keyframes glitch-strip { from { background-position: 0 0; } to { background-position: 100% 0; } }

/* section scaffolding */
section { padding: clamp(80px, 11vw, 150px) var(--gut); }
.sec-head { max-width: var(--max); margin: 0 auto clamp(40px, 6vw, 70px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 60px; align-items: end; }
.sec-head p { margin: 0; color: var(--ink-2); max-width: 36em; }

/* block explorer */
.blocks { border-top: 1px solid var(--hair); }
.explorer { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); align-self: start; position: sticky; top: 90px; }
.index button {
  width: 100%; display: flex; align-items: baseline; gap: 16px; padding: 14px 4px 13px;
  background: none; border: 0; border-bottom: 1px solid var(--hair); color: var(--ink-2);
  font: 500 1.06rem/1.2 var(--sans); text-align: left; cursor: pointer; position: relative;
}
.index .num { font: 500 .7rem/1 var(--mono); color: var(--mute); letter-spacing: .1em; }
.index .free { margin-left: auto; font: 500 .62rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--cy); }
.index button { transition: color .2s var(--ease), background .2s var(--ease), padding .3s var(--ease); }
.index button:hover { color: var(--ink); background: linear-gradient(90deg, rgba(255,255,255,.035), transparent); padding-left: 10px; }
.index button:active { background: rgba(255,255,255,.06); }
.index button:focus-visible { outline: 2px solid var(--cy); outline-offset: -2px; color: #fff; }
.index button[aria-selected="true"] { color: var(--ink); }
.index button[aria-selected="true"]::before { content: ""; position: absolute; left: -14px; top: 12px; bottom: 12px; width: 3px; background: var(--acc);
  box-shadow: 0 0 12px var(--acc); animation: bar .4s var(--ease) both; }
@keyframes bar { from { transform: scaleY(0); } }
.index button[aria-selected="true"] .num { color: var(--acc); }

.detail { --acc: var(--or); min-height: 640px; }
.d-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.d-art { width: min(100%, calc(380px * var(--ar, 1))); margin: 0 auto; filter: drop-shadow(0 26px 26px rgba(0,0,0,.8)); animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.d-copy { animation: rise .6s var(--ease) .06s both; }
.d-lists { animation: rise .6s var(--ease) .14s both; }
.device { animation: rise .6s var(--ease) .2s both; }
.blockname { animation: split 1s var(--ease) both; }
.device img:not([hidden]) { animation: screen-on .35s var(--ease); }
@keyframes screen-on { from { opacity: 0; filter: brightness(2.4) contrast(1.4); transform: scaleY(.96); } }
.blockname { font: italic 800 clamp(2.6rem, 5vw, 4rem)/1 var(--sans); letter-spacing: -.03em;
  text-shadow: -.04em 0 rgba(79,216,232,.85), .04em 0 var(--acc); }
.blockname span { font: 500 .78rem/1 var(--mono); letter-spacing: .5em; text-transform: uppercase; text-shadow: none; margin-left: 18px; vertical-align: middle; color: var(--ink-2); }
.rules { display: flex; gap: 10px; margin: 18px 0 24px; }
.rules i { height: 2px; flex: 0 0 34%; background: var(--acc); box-shadow: 0 3px 0 color-mix(in srgb, var(--acc) 40%, transparent); }
.rules i + i { flex: 1; background: linear-gradient(90deg, var(--cy), var(--mg)); box-shadow: none; }
.d-copy p { color: var(--ink-2); }
.d-price { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 26px; }

.d-lists { display: flex; flex-wrap: wrap; gap: 28px 56px; margin: 48px 0 40px; padding-top: 28px; border-top: 1px solid var(--hair); }
.models { flex: 1 1 220px; }
.models:first-child:last-child ul { columns: 3 190px; }
.models h4 { font: 500 .7rem/1 var(--mono); letter-spacing: .25em; text-transform: uppercase; color: var(--acc); margin-bottom: 14px; }
.models ul { list-style: none; margin: 0; padding: 0; columns: 2 160px; column-gap: 32px; }
.models li { font: 500 .84rem/1.9 var(--mono); color: var(--ink); break-inside: avoid; }

/* a device screen: the 1424x280 page in a bezel */
.device, .screen-shot { margin: 0; }
.device img, .screen-shot img {
  width: 100%; border-radius: 6px; background: #000;
  box-shadow: 0 0 0 1px var(--hair-2), 0 0 0 9px #050506, 0 0 0 10px var(--hair), 0 30px 60px rgba(0,0,0,.6);
}
.device img[hidden] { display: none; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.dots { gap: 4px; }
.dots button { width: 24px; height: 24px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 12px; height: 12px; border: 1.5px solid var(--ink-2); box-sizing: border-box; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.dots button:hover::before { transform: scale(1.25); border-color: var(--ink); }
.dots button:active::before { transform: scale(.9); }
.dots button:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; }
.dots button[aria-pressed="true"]::before { background: var(--acc); border-color: var(--acc); }

/* videos: a CRT on a VCR, and a shelf of tapes */
.watch { border-top: 1px solid var(--hair); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vcr { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 48px; align-items: start; }
.crt { padding: 18px; border-radius: 26px; background: linear-gradient(160deg, #1c1c20, #0d0d0f 60%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -2px 0 rgba(0,0,0,.6), 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px var(--hair-2); }
.crt-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: 18px / 22px; isolation: isolate;
  box-shadow: inset 0 0 0 2px #000, 0 0 0 6px #070708, 0 0 0 7px var(--hair); }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.crt-screen::after { /* scanlines + tube vignette, over everything */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px),
              radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(0,0,0,.65) 100%);
}
.crt-screen.playing::after { background: radial-gradient(130% 130% at 50% 50%, transparent 70%, rgba(0,0,0,.45) 100%); }
.tracking { position: absolute; left: 0; right: 0; height: 12%; z-index: 2; pointer-events: none; opacity: .5; mix-blend-mode: screen;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 2px, transparent 2px 7px, rgba(255,255,255,.08) 7px 9px, transparent 9px 15px);
  filter: blur(.6px); animation: track 7s linear infinite; }
@keyframes track { from { top: -14%; } to { top: 110%; } }
.osd { position: absolute; top: 6%; right: 5%; z-index: 2; font: 500 clamp(.8rem, 1.6vw, 1.15rem)/1 var(--mono); letter-spacing: .12em;
  color: #e9f6ff; text-shadow: 0 0 6px rgba(160,220,255,.7), -1px 0 rgba(79,216,232,.8), 1px 0 rgba(240,96,106,.8); }
.press-play { position: absolute; left: 50%; bottom: 9%; z-index: 4; transform: translateX(-50%); background: none; border: 0; padding: 0; cursor: pointer; }
.press-play .tape-label { font-size: 1.15rem; padding: .7em 1.5em .62em .9em; transform: rotate(-2deg); transition: transform .15s ease; }
.press-play .tape-label::before { content: "\25B6" / ""; font-family: var(--sans); font-size: .8em; margin-right: .6em; }
.press-play .tape-label { transition: transform .25s var(--ease), filter .25s var(--ease); animation: nudge 3.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(-2deg) translateY(-3px); } }
.press-play:hover .tape-label { animation: none; transform: rotate(-3deg) scale(1.07); filter: drop-shadow(0 8px 16px rgba(0,0,0,.6)); }
.press-play:active .tape-label { transform: rotate(-1deg) scale(.97); transition-duration: .06s; }
.press-play:focus-visible { outline: 2px solid var(--cy); outline-offset: 4px; }
.crt-screen iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.crt-screen.playing .poster, .crt-screen.playing .osd, .crt-screen.playing .tracking, .crt-screen.playing .press-play { display: none; }
.crt-screen.glitch { animation: glitch .5s steps(2) both; }
@keyframes glitch {
  0% { filter: brightness(2.2) contrast(1.6); transform: translateX(-6px) skewX(4deg); clip-path: inset(10% 0 55% 0); }
  20% { filter: hue-rotate(40deg) brightness(1.4); transform: translateX(5px); clip-path: inset(50% 0 8% 0); }
  40% { filter: brightness(.4); transform: translateX(-3px) skewX(-3deg); clip-path: inset(0 0 0 0); }
  60% { filter: brightness(1.3) saturate(1.8); transform: translateY(2px); }
  100% { filter: none; transform: none; clip-path: inset(0 0 0 0); }
}
.crt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 22px 8px 4px; }
.now { display: flex; align-items: center; gap: 16px; font: 600 1.25rem/1.2 var(--sans); }
.tape-label.sm { font-size: .78rem; padding: .45em .9em .4em; }

.shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.tape {
  position: relative; display: block; width: 100%; aspect-ratio: 1.8; padding: 0; cursor: pointer; text-decoration: none; color: inherit;
  border: 0; border-radius: 7px; background: linear-gradient(180deg, #202024, #111113 55%, #0b0b0c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 1px #000, 0 14px 22px rgba(0,0,0,.55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tape:hover { transform: translateX(-6px) rotate(-.6deg); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px #000, 0 20px 30px rgba(0,0,0,.6); }
.tape:active { transform: translateX(-10px) scale(.985); transition-duration: .08s; }
.tape:focus-visible { outline: 2px solid var(--cy); outline-offset: 4px; }
.tape:hover .reels i { animation: spin 3.5s linear infinite; }
.tape[aria-pressed="true"] { transform: translateX(-14px); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 1px #000, 3px 0 0 var(--or), 0 14px 22px rgba(0,0,0,.55); }
.tape-face { position: absolute; left: 8%; right: 8%; top: 11%; height: 36%; display: grid; place-items: center;
  background: var(--tape); color: var(--tape-ink); font: 400 clamp(1rem, 1.7vw, 1.35rem)/1 "Marker", cursive; text-transform: lowercase;
  clip-path: polygon(0 4%, 99% 0, 100% 94%, 1% 100%); transform: rotate(-1deg);
  background-image: linear-gradient(transparent 76%, rgba(240,96,106,.55) 76% 80%, transparent 80%); }
.tape.blank .tape-face { background: #2a2a2e; color: var(--ink-2); font-size: clamp(.85rem, 1.3vw, 1rem); }
.reels { position: absolute; left: 22%; right: 22%; bottom: 13%; height: 30%; border-radius: 4px; display: flex; justify-content: space-around; align-items: center;
  background: linear-gradient(180deg, rgba(60,50,40,.5), rgba(20,18,16,.8)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 2px 6px rgba(0,0,0,.8); }
.reels i { height: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #0a0a0a 0 22%, transparent 23%), conic-gradient(#d9d2c2 0 10%, #8b8578 10% 33%, #d9d2c2 33% 43%, #8b8578 43% 66%, #d9d2c2 66% 76%, #8b8578 76%); }
.tape[aria-pressed="true"] .reels i { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tape-meta { position: absolute; right: 7%; bottom: 3.5%; font: 500 .6rem/1 var(--mono); letter-spacing: .16em; color: var(--mute); }


/* built as circuits */
.build { background: var(--bg-up); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.screen-shot { max-width: var(--max); margin: 0 auto; padding: 10px; }
figcaption { font: 500 .72rem/1.5 var(--mono); letter-spacing: .08em; color: var(--mute); margin-top: 22px; }
.specs { max-width: var(--max); margin: 64px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.specs div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--hair-2); }
.specs dt { font: 500 .7rem/1.9 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--or); }
.specs dd { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* hex forge */
.forge {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center;
  max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto;
}
.forge .display { margin: 22px 0 26px; }
.forge-text p { color: var(--ink-2); }
.mini-specs { margin: 30px 0 36px; }
.mini-specs div { display: grid; grid-template-columns: 110px 1fr; padding: 11px 0; border-top: 1px solid var(--hair-2); }
.mini-specs dt { font: 500 .68rem/1.9 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.mini-specs dd { margin: 0; font-size: .95rem; }
.forge-shot { margin: 0; position: relative; }
.forge-shot::before { content: ""; position: absolute; inset: -20% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(255,138,42,.10), transparent); }
.forge-shot.in img { animation: float 8s ease-in-out 1s infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.forge-shot img { width: 100%; border-radius: 10px; box-shadow: 0 40px 90px rgba(0,0,0,.7), 0 0 0 1px var(--hair-2); }

/* support */
/* open source: the free LV2 builds for DIY pedals */
.diy { border-top: 1px solid var(--hair); }
.diy-grid { max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; }
.diy-grid li { display: flex; flex-direction: column; align-items: flex-start; padding-top: 22px; border-top: 1px solid var(--hair-2); }
.diy-tag { font: 500 .66rem/1.6 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--or); }
.diy-grid h3 { font: 600 1.2rem/1.3 var(--sans); margin: 10px 0 10px; }
.diy-grid p { color: var(--ink-2); font-size: .96rem; margin: 0 0 22px; flex: 1; }
.diy-site { display: inline-flex; align-items: center; min-height: 24px; margin: -10px 0 14px; color: var(--ink-2); font-size: .9rem;
  text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.diy-site:hover { color: var(--ink); text-decoration-color: var(--or); }
.diy-site:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; color: var(--ink); }
/* news: an empty board until the first post */
.news { border-top: 1px solid var(--hair); }
.news-board { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px); border: 1px dashed var(--hair-2); background: var(--bg-up); }
.news-board p { margin: 0; color: var(--ink-2); flex: 1 1 22em; }
.support { border-top: 1px solid var(--hair); }
.qa { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 56px; }
.qa h3 { font: 600 1.06rem/1.35 var(--sans); margin-bottom: 10px; }
.qa p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.qa a { color: var(--ink); text-decoration-color: var(--or); text-underline-offset: 3px; }

/* footer */
.foot { padding: 64px var(--gut) 40px; border-top: 1px solid var(--hair); background: #070708; }
.foot-top { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-top > img { width: 98px; height: auto; align-self: flex-start; flex: none; }
.foot-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.foot-cols div { display: grid; gap: 10px; align-content: start; }
.foot h2 { font: 500 .68rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.foot-cols a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.foot-cols a { transition: color .2s var(--ease), transform .25s var(--ease); width: fit-content; }
.foot-cols a:hover { color: var(--ink); transform: translateX(3px); }
.fine { max-width: var(--max); margin: 56px auto 0; font: 500 .7rem/1.7 var(--mono); color: var(--mute); }

/* legal pages */
.legal { max-width: 44em; margin: 0 auto; padding: 90px var(--gut) 110px; }
.legal .display { margin-bottom: 14px; }
.legal .updated { font: 500 .72rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 48px; }
.legal h2 { font: 600 1.15rem/1.3 var(--sans); margin: 2.4em 0 .6em; }
.legal p, .legal li { color: var(--ink-2); }

@media (min-width: 1001px) {
  .rig { margin-top: -210px; }
  .hero-text { position: relative; z-index: 1; }
  /* the text's box overlaps the amp and cab: let clicks through to them, except on its own links */
  .hero-text { pointer-events: none; }
  .hero-text a, .hero-text button { pointer-events: auto; }
}

/* skip link: first thing on the page for keyboard users, shown when focused */
.skip { position: absolute; left: 16px; top: -100px; z-index: 200; padding: 12px 18px; background: var(--tape); color: var(--tape-ink);
  font: 500 .85rem/1 var(--mono); text-decoration: none; }
.skip:focus { top: 12px; outline: 2px solid var(--cy); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 2.2.2: the motion switch, in the hero's bottom-left corner. Off stops every animation on the
   page, and the choice is remembered. */
.motion { position: absolute; left: var(--gut); bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 10px; cursor: pointer;
  background: rgba(10,10,11,.6); border: 1px solid var(--hair-2); color: var(--ink-2); font: 500 .68rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  transition: color .2s, border-color .2s; }
.motion:hover { color: var(--ink); border-color: var(--mute); }
.motion:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; }
.motion svg { width: 12px; height: 12px; fill: currentColor; }
.nav-cta { margin-left: auto; }
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation: none !important; }
html.motion-off .js .reveal, html.motion-off.js .reveal { opacity: 1; transform: none; transition: none; }

/* narrow screens */
@media (max-width: 1000px) {
  .nav nav { display: none; }
  .sec-head, .d-top, .forge { grid-template-columns: 1fr; }
  .explorer { grid-template-columns: 1fr; gap: 32px; }
  .index { position: static; display: flex; overflow-x: auto; border: 0; gap: 4px; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); }
  .index li { flex: none; }
  .index button { border: 1px solid var(--hair-2); padding: 10px 14px; gap: 10px; }
  .index button[aria-selected="true"] { border-color: var(--acc); }
  .index button[aria-selected="true"]::before { display: none; }
  .d-art { width: min(100%, calc(260px * var(--ar, 1))); }
  .forge-shot img { border-radius: 8px; }
  .specs, .qa { grid-template-columns: 1fr; }
  .diy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .vcr { grid-template-columns: 1fr; gap: 28px; }
  .crt { padding: 10px; border-radius: 18px; }
  .shelf { display: flex; overflow-x: auto; gap: 14px; padding: 4px 0 10px; scrollbar-width: none; }
  .shelf li { flex: 0 0 210px; }
  .tape[aria-pressed="true"] { transform: translateY(-6px); }
  .qa { gap: 34px; }
  .motion { position: relative; left: auto; bottom: auto; margin: 22px 0 18px; }
}
@media (max-width: 640px) {
  .rig { flex-wrap: wrap; justify-content: center; gap: 14px 3%; }
  .ped { width: 22%; }
  .stack { width: 100%; order: -1; margin-bottom: 18px; }
  .stack > :first-child { width: 62%; margin-bottom: -8%; }
  .stack > :last-child { width: 62%; }
  .models ul, .models:first-child:last-child ul { columns: 2; column-gap: 16px; }
  .models li { font-size: .78rem; }
  .floor-line { display: none; }
  .specs div { grid-template-columns: 1fr; gap: 4px; }
  .detail { min-height: 0; }
  .foot-cols { gap: 40px; }
  .diy-grid { grid-template-columns: 1fr; gap: 34px; }
}
/* Reduced motion without the script (the script handles it through the motion switch). */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) *, html:not(.motion-on) *::before, html:not(.motion-on) *::after { animation: none !important; }
  html:not(.motion-on) { scroll-behavior: auto; }
  html:not(.motion-on) .js .reveal, html:not(.motion-on).js .reveal { opacity: 1; transform: none; transition: none; }
}
