/* oTAPE.org */
:root {
  --night: #0f0c0a;
  --night-2: #17120f;
  --night-3: #211a15;
  --line-dark: #3a3029;
  --cream: #efe7d6;
  --cream-dim: #b9ae9c;
  --paper: #eee6d4;
  --paper-2: #e3d8c1;
  --paper-ink: #221c16;
  --paper-muted: #6a5f52;
  --paper-line: #cbbfa7;
  --accent: #e4572e;
  --accent-hot: #ff7447;
  --amber: #ffb547;
  --cyan: #86efe6;
  --cyan-dim: #2c5755;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: var(--grain);
  opacity: .09;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: overlay;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: .88em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }
.muted { color: var(--cream-dim); }
.small { font-size: 13px; line-height: 1.6; }
.mono-label { font: 600 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cream-dim); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.menu-open {
  background: rgba(15, 12, 10, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-color: rgba(255, 255, 255, .06);
}
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 19px; fill: none; stroke: var(--cream); stroke-width: 1.5; }
.brand-mark circle { stroke: var(--accent); }
.wordmark { font: 900 23px/1 var(--sans); letter-spacing: -.06em; }
.wordmark em { font-style: normal; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--cream-dim); transition: color .2s; }
.site-nav a:hover { color: var(--cream); }
.site-nav .nav-cta { color: var(--night); background: var(--cream); padding: 11px 15px; border-radius: 999px; }
.site-nav .nav-cta:hover { background: #fff; color: var(--night); }
.menu-toggle { display: none; width: 42px; height: 42px; background: none; border: 1px solid var(--line-dark); border-radius: 50%; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--cream); transition: transform .25s; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 24px; }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px; border-radius: 999px;
  font: 700 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  transition: transform .18s, background .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(228, 87, 46, .7); }
.btn-primary:hover { background: var(--accent-hot); }
.btn-ghost { border: 1px solid rgba(239, 231, 214, .28); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.chip-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  font: 600 11.5px/1.2 var(--mono); letter-spacing: .03em;
  transition: background .2s, border-color .2s, opacity .2s;
}
.chip-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.chip-btn:disabled { opacity: .35; cursor: not-allowed; }
.chip-btn.ghost { background: none; border-style: dashed; }
.file-btn { cursor: pointer; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-btn:focus-within { outline: 2px solid var(--accent-hot); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px 0 64px;
  display: flex; align-items: center;
  background:
    radial-gradient(60% 55% at 72% 48%, rgba(255, 160, 80, .13), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(228, 87, 46, .10), transparent 70%),
    linear-gradient(180deg, #120e0b 0%, var(--night) 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .012) 3px 4px);
  pointer-events: none;
}
.hero-grid { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 11.5px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); margin: 0 0 28px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b2f; box-shadow: 0 0 12px #ff3b2f, 0 0 2px #fff inset; animation: blink 1.6s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: .25; } }
h1 {
  font: 400 clamp(60px, 8.6vw, 128px)/.92 var(--serif);
  letter-spacing: -.035em;
  margin: 0 0 28px;
}
h1 em, h2 em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.7; color: #d4cab8; max-width: 33em; margin: 0 0 34px; }
.lead code { color: var(--cream); background: rgba(255, 255, 255, .07); padding: 2px 6px; border-radius: 4px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 46px 0 0; border-top: 1px solid var(--line-dark); max-width: 520px; }
.hero-facts div { flex: 1 1 120px; padding: 14px 18px 0 0; }
.hero-facts dt { font: 600 10.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8b7f70; }
.hero-facts dd { margin: 4px 0 0; font: 400 22px/1.2 var(--serif); }

.hero-stage { position: relative; min-width: 0; }
.stage-glow { position: absolute; inset: 8% 2% 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 190, 120, .16), transparent); filter: blur(10px); }
.cassette-float {
  position: relative;
  transform: rotate(-7deg);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .22s, filter .22s;
  filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .65)) drop-shadow(0 6px 8px rgba(0, 0, 0, .5));
  animation: float 9s ease-in-out infinite;
}
.cassette-float:hover { transform: rotate(-3.5deg) translateY(-6px); }
.cassette-float.swap { opacity: 0; filter: blur(6px); }
@keyframes float { 50% { translate: 0 -10px; } }
.cassette-svg { width: 100%; height: auto; overflow: visible; }
.cassette-svg.winding .hub-teeth { opacity: .45; }
.stage-controls { position: relative; display: flex; align-items: center; gap: 16px; margin: 34px 0 0 6%; flex-wrap: wrap; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .05); font-size: 14px; display: grid; place-items: center; flex: none; }
.round-btn:hover { border-color: var(--accent); }
.preset-name { display: block; font: 400 22px/1.15 var(--serif); min-width: 9em; }
.preset-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.preset {
  width: 26px; height: 26px; border-radius: 50%; padding: 0;
  border: 2px solid rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, var(--accent) 0 22%, var(--paper) 22% 56%, var(--shell) 56%);
  transition: transform .2s, border-color .2s;
}
.preset:hover { transform: scale(1.12); }
.preset[aria-pressed="true"] { border-color: var(--cream); transform: scale(1.12); }
.stage-note { position: relative; margin: 14px 0 0 6%; font-size: 12.5px; color: #8b7f70; max-width: 36em; }
.stage-note code { color: var(--cream-dim); }

/* ---------- Marquee ---------- */
.marquee { background: var(--accent); color: #1a0f0a; overflow: hidden; border-block: 1px solid #b8401f; }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee span { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 17px 0; white-space: nowrap; display: inline-flex; align-items: center; }
.marquee span::after { content: '◉'; margin: 0 26px; font-size: 10px; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.paper {
  background: linear-gradient(180deg, #f1eadb, #e9dfca);
  color: var(--paper-ink);
  color-scheme: light;
}
.paper .muted { color: var(--paper-muted); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 8px 64px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head .kicker { grid-column: 1 / -1; }
.kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper-muted); }
.kicker span { display: inline-grid; place-items: center; min-width: 34px; height: 22px; border: 1.5px solid currentColor; border-radius: 4px; font-size: 11px; color: var(--accent); }
.on-dark .kicker { color: #9c9080; }
h2 { font: 400 clamp(46px, 6.4vw, 92px)/.95 var(--serif); letter-spacing: -.03em; margin: 0; }
.section-lead { font-size: clamp(16px, 1.25vw, 17.5px); line-height: 1.75; margin: 0; max-width: 34em; }
.paper .section-lead { color: #4a4137; }
.on-dark .section-lead, .studio-intro .section-lead { color: #cfc4b2; }
.section-lead code { font-size: .86em; background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 4px; }
.on-dark .section-lead code, .studio .section-lead code { background: rgba(255, 255, 255, .08); }
.card-title { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 22px; color: inherit; opacity: .8; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Principles ---------- */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--paper-ink); }
.principles li { padding: 30px 30px 44px 0; border-bottom: 1px solid var(--paper-line); position: relative; }
.principles li:not(:nth-child(3n + 1)) { padding-left: 30px; border-left: 1px solid var(--paper-line); }
.principles li:nth-child(2) { transition-delay: .08s; }
.principles li:nth-child(3) { transition-delay: .16s; }
.principles li:nth-child(5) { transition-delay: .08s; }
.principles li:nth-child(6) { transition-delay: .16s; }
.p-num { font: 700 12px var(--mono); color: var(--accent); letter-spacing: .1em; }
.principles h3 { font: 400 32px/1.02 var(--serif); letter-spacing: -.02em; margin: 40px 0 16px; }
.principles p { margin: 0; color: #5a5046; font-size: 15px; line-height: 1.7; max-width: 26em; }
.principles code { font-size: .85em; }

/* ---------- Deck ---------- */
.deck-section {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(120, 70, 35, .25), transparent 70%),
    repeating-linear-gradient(92deg, rgba(0, 0, 0, .14) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #24170f, #1a110b 60%, #140e0a);
}
.deck-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr); gap: 22px; align-items: start; }

.deck {
  position: relative;
  border-radius: 14px;
  padding: 18px 22px 22px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #2a2a2b, #1c1c1d 40%, #161617);
  border: 1px solid #3b3b3d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 -2px 0 rgba(0, 0, 0, .5) inset, 0 40px 80px -20px rgba(0, 0, 0, .8), 0 12px 24px rgba(0, 0, 0, .45);
}
.deck-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.deck-logo { font: italic 400 26px/1 var(--serif); letter-spacing: -.01em; color: #f3efe6; }
.deck-logo em { font-style: italic; color: var(--accent); }
.silk { font: 700 10.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: #c9c6bf; }
.leds { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 700 10px/1 var(--mono); letter-spacing: .16em; color: #c9c6bf; }
.led { width: 7px; height: 7px; border-radius: 50%; background: #3a2422; margin-left: 10px; transition: background .15s, box-shadow .15s; }
.led.green { background: #1f3326; }
.led.red.on { background: #ff3b2f; box-shadow: 0 0 10px #ff3b2f; }
.led.green.on { background: #5fe08e; box-shadow: 0 0 10px #5fe08e; }

.deck-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.well {
  position: relative; min-height: 280px;
  border-radius: 8px;
  background: radial-gradient(120% 90% at 50% 0%, #2a2a2c, #0e0e0f 70%);
  border: 1px solid #000;
  box-shadow: 0 2px 0 rgba(255, 255, 255, .05), inset 0 10px 30px rgba(0, 0, 0, .8);
  display: grid; place-items: center;
  padding: 26px 22px 20px;
  overflow: hidden;
  perspective: 900px;
}
.well::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .07), transparent 35%); pointer-events: none; }
.well-cassette { width: 100%; max-width: 440px; transition: transform .3s ease-in, opacity .3s; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .7)); }
.well-cassette:empty { display: none; }
.well-cassette.inserting { transform: translateY(-60%) scale(.96); opacity: 0; transition: none; }
.well-cassette:not(.inserting) { transition: transform .5s cubic-bezier(.2, .9, .25, 1.1), opacity .35s; }
.well-cassette.ejecting { transform: translateY(-70%) rotate(-3deg); opacity: 0; transition: transform .38s ease-in, opacity .38s; }
.well-cassette.flip-out { transform: rotateY(90deg) scale(.94); transition: transform .3s ease-in; }
.well-cassette.flip-in { transform: rotateY(-90deg) scale(.94); transition: none; }
.well-empty { display: none; text-align: center; color: #b9b5ad; }
.deck:not(.loaded) .well-empty { display: grid; gap: 12px; justify-items: center; }
.well-empty svg { width: 54px; fill: none; stroke: #77736c; stroke-width: 1.4; }
.well-empty b { font: 700 13px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #e2ded6; }
.well-empty small { font-size: 12px; color: #8c877e; }
.well-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 2px; }
.well-badge { position: absolute; top: 10px; left: 14px; z-index: 2; font: 700 10px/1 var(--mono); letter-spacing: .14em; color: #ff5a47; display: inline-flex; align-items: center; gap: 6px; }
.well-badge::before { content: ''; width: 7px; height: 8px; border-radius: 1.5px; background: currentColor; box-shadow: 0 -3px 0 -1px transparent; }
.well-badge.taped_over { color: var(--amber); }

.vfd {
  border-radius: 8px; padding: 14px 16px 12px;
  background: radial-gradient(120% 120% at 30% 0%, #0f1d1d, #050a0a 70%);
  border: 1px solid #000;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .05);
  color: var(--cyan);
  font-family: var(--mono);
  text-shadow: 0 0 6px rgba(134, 239, 230, .55);
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.vfd::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .25) 0 1px, transparent 1px 3px); pointer-events: none; }
.vfd small { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #4f8f8a; text-shadow: none; margin-bottom: 2px; }
.vfd-row { display: flex; align-items: flex-start; gap: 10px; }
.vfd-row.three { display: grid; grid-template-columns: 1fr 1fr auto; }
.vfd-cell.right { margin-left: auto; text-align: right; }
.vfd b { font-weight: 600; font-size: 19px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.vfd b.big { font-size: 38px; letter-spacing: .04em; }
.vfd .amber { color: var(--amber); text-shadow: 0 0 10px rgba(255, 181, 71, .6); }
.vfd-btn { margin-top: 2px; background: #1b2626; border: 1px solid #2f4141; color: #8fb5b1; font: 700 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 7px; border-radius: 3px; text-shadow: none; position: relative; z-index: 1; }
.vfd-btn:disabled { opacity: .4; }
.sides { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: .1em; }
.sides span { color: var(--cyan-dim); text-shadow: none; transition: color .2s; }
.sides span.lit { color: var(--cyan); text-shadow: 0 0 8px rgba(134, 239, 230, .7); }
.vfd-status { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.35; font-weight: 600; letter-spacing: .04em; min-height: 34px; }
.vfd-status i { margin-top: 4px; }
.vfd-status i { width: 8px; height: 8px; border-radius: 1px; background: var(--cyan); flex: none; }
.vfd-status i.dot-play { width: 0; height: 0; border-radius: 0; background: none; border-left: 8px solid var(--cyan); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.vfd-status i.dot-ff, .vfd-status i.dot-rew, .vfd-status i.dot-cue { animation: blink .5s steps(1) infinite; }
.vfd-status i.dot-msg { background: var(--amber); }
.vfd-status i.dot-idle { background: var(--cyan-dim); }
.vfd-status span { min-width: 0; }
.vfd-now { display: flex; gap: 10px; align-items: baseline; font-size: 12px; min-width: 0; }
.vfd-now small { margin: 0; }
.vfd-now span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vu { display: grid; grid-template-columns: 10px 1fr; gap: 4px 6px; align-items: center; font-size: 9px; color: #4f8f8a; text-shadow: none; margin-top: auto; }
.vu-bar { display: grid; grid-template-columns: repeat(18, 1fr); gap: 2px; height: 7px; }
.vu-bar i { background: #12312f; border-radius: 1px; }
.vu-bar i.on { background: var(--cyan); box-shadow: 0 0 5px rgba(134, 239, 230, .7); }
.vu-bar i.hot { background: #3b1615; }
.vu-bar i.hot.on { background: #ff5141; box-shadow: 0 0 5px #ff5141; }
.vu-scale { display: flex; justify-content: space-between; font-size: 8px; }
.vu-scale i { font-style: normal; }
.vu-scale i:nth-child(n + 5) { color: #b2413a; }

.tapemap-wrap { margin: 16px 0 4px; }
.tapemap-label { display: flex; justify-content: space-between; margin-bottom: 7px; }
.tapemap-label .silk { font-size: 9.5px; }
.tapemap-label .hint { font: 500 10px var(--mono); color: #77736c; }
.tapemap { position: relative; height: 14px; border-radius: 3px; background: #0c0c0d; border: 1px solid #000; box-shadow: 0 1px 0 rgba(255, 255, 255, .05); cursor: pointer; }
.deck:not(.loaded) .tapemap { cursor: default; }
.tm-rec { position: absolute; inset: 2px auto 2px 2px; max-width: calc(100% - 4px); background: linear-gradient(180deg, #a5622e, #6a3b1b); border-radius: 2px; }
.tm-marks i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--amber); border-radius: 1px; transform: translateX(-1px); box-shadow: 0 0 4px rgba(255, 181, 71, .6); }
.tm-head { position: absolute; top: -5px; bottom: -5px; width: 2px; background: #fff; box-shadow: 0 0 8px #fff; transform: translateX(-1px); }
.tm-hover { position: absolute; bottom: calc(100% + 8px); transform: translateX(-50%); background: #000; color: #eee; font: 600 10px/1 var(--mono); padding: 5px 7px; border-radius: 3px; white-space: nowrap; pointer-events: none; }
.tapemap-scale { display: flex; justify-content: space-between; font: 500 10px var(--mono); color: #77736c; margin-top: 6px; }

.transport { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 16px; }
.key {
  flex: 1 1 64px; min-width: 58px;
  display: grid; justify-items: center; gap: 5px;
  padding: 10px 6px 9px;
  border-radius: 6px;
  background: linear-gradient(180deg, #4a4a4d, #2f2f32 55%, #27272a);
  border: 1px solid #111;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 3px 0 #0b0b0c, 0 5px 10px rgba(0, 0, 0, .45);
  font: 700 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #ece9e2;
  transition: transform .06s, box-shadow .06s, background .2s;
}
.key .ic { font-size: 12px; letter-spacing: -.1em; line-height: 1; }
.key:active:not(:disabled), .key.down { transform: translateY(3px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 0 0 #0b0b0c, 0 2px 4px rgba(0, 0, 0, .5); background: linear-gradient(180deg, #3a3a3d, #29292c); }
.key.down { color: var(--cyan); }
.key-rec .ic { color: #ff3b2f; }
.key:disabled { opacity: .45; cursor: default; }
.knob { display: grid; justify-items: center; gap: 6px; margin-left: 8px; font: 700 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #c9c6bf; }
.knob input { width: 96px; accent-color: var(--accent); }

.deck-drop { position: absolute; inset: 0; border-radius: 14px; background: rgba(228, 87, 46, .16); border: 2px dashed var(--accent); display: grid; place-content: center; text-align: center; gap: 6px; backdrop-filter: blur(3px); z-index: 5; pointer-events: none; }
.deck-drop b { font: 400 34px var(--serif); }
.deck-drop span { font: 600 12px var(--mono); color: #f2d8cc; }
.deck-keys { margin: 22px 0 0; font: 500 12px/2 var(--mono); color: #8a7e70; text-align: center; }
.deck-keys kbd { display: inline-block; min-width: 24px; padding: 1px 6px; margin: 0 4px 0 14px; border-radius: 4px; border: 1px solid #4a3c31; border-bottom-width: 2px; color: var(--cream); font-size: 11px; text-align: center; }
.deck-keys kbd + kbd { margin-left: 0; }

/* Inspector */
.inspector {
  background: linear-gradient(180deg, #f2ebdc, #e7dcc5);
  color: var(--paper-ink);
  color-scheme: light;
  border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 2px 0 rgba(255, 255, 255, .5) inset;
  overflow: hidden;
  min-width: 0;
}
.inspector .muted { color: var(--paper-muted); }
.inspector .mono-label { color: var(--paper-muted); }
.ins-head { padding: 22px 22px 14px; border-bottom: 1px dashed var(--paper-line); }
.ins-head h3 { font: 400 32px/1.05 var(--serif); margin: 6px 0 8px; letter-spacing: -.01em; }
.ins-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ins-meta span { font: 600 10.5px/1 var(--mono); letter-spacing: .06em; padding: 5px 7px; border: 1px solid #bcae94; border-radius: 3px; }
.ins-meta:empty { display: none; }
.ins-desc { margin: 10px 0 0; font-size: 14px; color: #5a5046; }
.ins-desc:empty { display: none; }
.tabs { display: flex; padding: 0 12px; border-bottom: 1px solid var(--paper-line); overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 13px 10px 11px; font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paper-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--paper-ink); border-color: var(--accent); }
.panel { padding: 18px 22px 22px; max-height: 560px; overflow: auto; }
.ins-jcard { margin: 0 auto 18px; max-width: 250px; filter: drop-shadow(0 8px 14px rgba(60, 40, 20, .3)); }
.ins-jcard:empty { display: none; }
.jcard-svg { width: 100%; height: auto; }
.ins-side { padding: 14px 0; border-top: 1px solid var(--paper-line); }
.ins-side-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ins-side-head b { font: 400 22px var(--serif); }
.ins-side-head span { font-size: 14px; color: #5a5046; }
.tab { margin-left: auto; font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; font-style: normal; padding: 4px 6px; border-radius: 3px; background: #d9ead9; color: #22562f; }
.tab.broken { background: #f6d6cc; color: #9c2a12; }
.tab.taped_over { background: #f5e3b8; color: #7a5208; }
.ins-side-meta { font: 500 12px var(--mono); color: var(--paper-muted); margin-top: 4px; }
.markers { list-style: none; margin: 10px 0 0; padding: 0; }
.markers button { width: 100%; display: flex; gap: 12px; align-items: baseline; text-align: left; padding: 7px 8px; border: 0; background: none; border-radius: 4px; font-size: 14px; }
.markers button:hover { background: rgba(0, 0, 0, .05); }
.markers button span { font: 600 12px var(--mono); color: var(--accent); min-width: 40px; }
.markers button em { margin-left: auto; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--paper-muted); font-style: normal; }
.ins-docs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--paper-line); }
.ins-docs:empty { display: none; }
.inspector .chip-btn { background: #fffaf0; border-color: #c7b89c; color: var(--paper-ink); }
.inspector .chip-btn:hover { background: #fff; border-color: var(--paper-ink); }
.dedication { flex-basis: 100%; margin: 0 0 4px; font: italic 400 21px/1.3 var(--serif); color: #4a4137; }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 14px 16px; border-radius: 6px; background: #e1d6bf; margin-bottom: 14px; }
.verdict b { grid-row: span 2; font: 700 15px var(--mono); letter-spacing: .1em; padding: 8px 10px; border-radius: 4px; background: var(--paper-ink); color: var(--paper); }
.verdict.ok b { background: #2f6b3d; }
.verdict.bad b { background: #b0331a; }
.verdict span { font: 600 13px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verdict small { font: 500 11.5px var(--mono); color: var(--paper-muted); }
.checks { list-style: none; margin: 0 0 14px; padding: 0; }
.checks li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px dotted var(--paper-line); font-size: 13.5px; line-height: 1.45; }
.checks .mark { font: 700 12px var(--mono); text-align: center; }
.checks .ok .mark { color: #2f6b3d; }
.checks .warn .mark { color: #a26b05; }
.checks .error .mark { color: #b0331a; }
.checks code { font-size: 11px; color: var(--paper-muted); }
.code { margin: 0; font-size: 12px; line-height: 1.65; white-space: pre; overflow: auto; }
.inspector .code { white-space: pre-wrap; word-break: break-word; }
.code .k { color: #8e3b1d; }
.code .s { color: #2e5d3a; }
.code .n { color: #6b3fa0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--paper-line); }
.timeline li { position: relative; padding: 0 0 18px 6px; display: grid; gap: 2px; }
.timeline li::before { content: ''; position: absolute; left: -23px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #f0e8d8; }
.timeline time { font: 600 11px var(--mono); color: var(--paper-muted); }
.timeline b { font: 400 21px/1.1 var(--serif); text-transform: capitalize; }
.timeline span { font-size: 14px; }
.timeline small { font: 500 11px var(--mono); color: var(--paper-muted); }

/* ---------- Format ---------- */
.format-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.card-dark {
  background: #191512; color: #e9e1d1;
  border-radius: 10px;
  box-shadow: 0 24px 50px -24px rgba(40, 25, 10, .55);
  overflow: hidden;
  min-width: 0;
  color-scheme: dark;
}
.card-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid #2e2620; font: 600 11.5px/1 var(--mono); letter-spacing: .04em; color: #a2968a; }
.card-dark pre { margin: 0; padding: 20px 18px 22px; font-size: 13px; line-height: 1.85; overflow-x: auto; }
.card-dark .code .k { color: #ffb08a; }
.card-dark .code .s { color: #b9e3a5; }
.card-dark .code .n { color: #c9a8ff; }
.t-dir { color: var(--amber); }
.t-file { color: #f1eadc; }
.t-c { color: #7d7266; }
.copy { background: none; border: 1px solid #3b322b; color: #cbbfb0; font: 600 10.5px/1 var(--mono); padding: 6px 9px; border-radius: 4px; text-transform: uppercase; letter-spacing: .08em; }
.copy:hover { border-color: #8c7d6d; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 44px 0 0; border-top: 1.5px solid var(--paper-ink); }
.facts div { padding: 20px 24px 22px 0; border-bottom: 1px solid var(--paper-line); }
.facts div:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--paper-line); }
.facts dt { font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.55; color: #3d352d; }
.facts code { font-size: 13px; word-break: break-word; }

/* ---------- Medium ---------- */
.medium { background: radial-gradient(70% 70% at 80% 20%, rgba(228, 87, 46, .1), transparent 70%), var(--night-2); }
.medium-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.lengths, .tab-card { border: 1px solid var(--line-dark); border-radius: 12px; padding: 30px; background: rgba(255, 255, 255, .02); min-width: 0; }
.len-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.len-list li { display: grid; grid-template-columns: 56px 1fr; gap: 6px 14px; align-items: center; }
.len-list b { font: 400 26px/1 var(--serif); grid-row: span 2; }
.len-bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.len-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, #6a3b1b, #b46a33); border-radius: 5px; transition: width .3s; }
.len-list .custom .len-bar::after { background: linear-gradient(90deg, #a83b1b, var(--accent)); }
.len-list .custom b { color: var(--accent); }
.len-list li > span:last-child { font: 500 12px var(--mono); color: var(--cream-dim); }
.range-label { display: grid; gap: 10px; font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 14px; }
.range-label input { width: 100%; accent-color: var(--accent); }

.tab-edge { width: 100%; max-width: 420px; margin: 0 auto 22px; }
.tab-edge .edge { fill: #2b2b2e; stroke: #000; stroke-width: 1; }
.tab-edge .edge-face { fill: #3b3b3f; }
.tab-edge .tab-b rect, .tab-edge .tab { fill: #3b3b3f; stroke: #111; stroke-width: 1; }
.tab-edge .hole { fill: #050505; }
.tab-edge .tab { transition: transform .35s cubic-bezier(.5, -0.4, .6, 1.4), opacity .35s; transform-origin: 24px 24px; }
.tab-edge .tape { fill: rgba(255, 228, 160, .55); stroke: rgba(255, 228, 160, .8); stroke-width: .6; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
.tab-edge text { font: 700 10px var(--mono); fill: #8c877e; }
[data-state="broken"] .tab-edge .tab, [data-state="taped_over"] .tab-edge .tab { transform: translate(-8px, -30px) rotate(-60deg); opacity: 0; }
[data-state="taped_over"] .tab-edge .tape { opacity: 1; transform: none; }
.wp-graph { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; font: 600 12px var(--mono); }
.wp-graph i { font-style: normal; color: #6f665c; }
.wp-node { padding: 6px 10px; border-radius: 4px; border: 1px solid var(--line-dark); color: var(--cream-dim); transition: all .25s; }
.wp-node.on { border-color: var(--accent); color: #fff; background: rgba(228, 87, 46, .18); }
.wp-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wp-state { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 22px 0 6px; padding: 12px 14px; border-radius: 6px; background: #0d0b09; font: 500 12.5px var(--mono); }
.wp-state code { color: #b9e3a5; }
.wp-state .yes { color: #5fe08e; }
.wp-state .no { color: #ff5a47; }
.wp-note { margin: 10px 0; min-height: 3.2em; font-size: 15px; color: #e3d9c7; }

/* ---------- Paper ---------- */
.paper-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.jcard-figure { margin: 0; }
.jcard-demo { transform: rotate(-2.5deg); filter: drop-shadow(0 26px 30px rgba(60, 35, 15, .35)); max-width: 420px; margin: 0 auto; }
.jcard-figure figcaption { display: flex; justify-content: center; gap: 18px; margin-top: 26px; font: 600 11px var(--mono); letter-spacing: .06em; color: var(--paper-muted); flex-wrap: wrap; }
.slots table, .impl table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.slots th, .impl th { text-align: left; font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--paper-muted); padding: 0 12px 12px 0; border-bottom: 1.5px solid var(--paper-ink); }
.slots td, .impl td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--paper-line); }
.slots td:not(:first-child) { font: 500 13px var(--mono); white-space: nowrap; }
.templates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.template { display: grid; gap: 10px; text-decoration: none; padding: 10px; border-radius: 8px; background: #fbf7ee; border: 1px solid var(--paper-line); transition: transform .2s, box-shadow .2s; }
.template:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(60, 35, 15, .4); }
.template img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: 4px; }
.template span { font: 600 12px/1.3 var(--mono); }
.template small { display: block; font-weight: 500; color: var(--paper-muted); font-size: 10.5px; margin-top: 2px; }

/* ---------- Studio ---------- */
.studio { background: radial-gradient(70% 50% at 50% 100%, rgba(120, 70, 35, .28), transparent 70%), var(--night); overflow: hidden; }
.studio-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: 54px; }
.studio-head .section-head { display: block; margin: 0; }
.studio-intro .section-lead { margin-bottom: 26px; }
.status-pill { border: 1px solid var(--line-dark); border-radius: 999px; padding: 12px 16px; }
.studio-shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid #3a3029; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 0 8px rgba(255, 255, 255, .02); transform: perspective(1600px) rotateX(5deg); transform-origin: 50% 100%; transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .8s; }
.studio-shot.in { transform: perspective(1600px) rotateX(0); }
.studio-shot img { width: 100%; height: auto; }
.studio-features { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.studio-features li { padding: 24px 24px 0 0; }
.studio-features li + li { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.studio-features b { display: block; font: 400 24px/1.1 var(--serif); margin-bottom: 10px; }
.studio-features span { font-size: 14.5px; color: #b9ae9c; line-height: 1.65; }

/* ---------- Build ---------- */
.build-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 60px; font-size: 15.5px; line-height: 1.7; color: #3d352d; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--paper-ink); display: grid; place-items: center; font: 400 22px/1 var(--serif); color: var(--paper-ink); }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 20px; top: 40px; bottom: 2px; width: 1px; background: var(--paper-line); }
.steps b { color: var(--paper-ink); }
.steps code { font-size: 13px; background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 3px; }
.terminal pre.out { padding-top: 0; color: #5fe08e; }
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.downloads a { display: grid; gap: 4px; padding: 14px 16px; border-radius: 8px; background: #fbf7ee; border: 1px solid var(--paper-line); text-decoration: none; transition: border-color .2s, transform .2s; }
.downloads a:hover { border-color: var(--paper-ink); transform: translateY(-2px); }
.downloads b { font: 400 19px/1.15 var(--serif); }
.downloads span { font: 500 11.5px var(--mono); color: var(--paper-muted); }
.downloads em { font-style: normal; color: var(--accent); }
.impl { margin-top: 64px; }
.impl a { color: var(--accent); text-underline-offset: 3px; }
.impl p a { color: inherit; }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--accent); color: #1c0f09; padding: clamp(80px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.manifesto::before { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .35; mix-blend-mode: multiply; }
.manifesto-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px 64px; align-items: end; }
.manifesto h2 { font-size: clamp(52px, 7.5vw, 112px); }
.manifesto h2 em { color: #fff3e6; }
.manifesto p { font-size: 17px; line-height: 1.75; margin: 0 0 22px; }
.manifesto .mono-label { color: #3d1a0c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); padding: 64px 0 34px; border-top: 1px solid #241c17; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-grid p { color: #8e8273; font-size: 14px; max-width: 28em; margin: 14px 0 0; }
.footer-grid nav { display: grid; gap: 10px; align-content: start; }
.footer-grid nav .mono-label { margin: 0 0 4px; color: #6f645a; }
.footer-grid nav a,
.footer-grid nav span { font-size: 14.5px; text-decoration: none; color: #cfc4b2; }
.footer-grid nav a:hover { color: var(--accent-hot); }
.site-footer .brand .mono-label { color: #6f645a; letter-spacing: .08em; text-transform: none; }
.footnote { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid #241c17; font: 500 11.5px var(--mono); color: #6f645a; }
.footnote a { color: inherit; }

/* ---------- Dialog ---------- */
.booklet-dialog { border: 0; padding: 0; border-radius: 10px; width: min(92vw, 520px); background: #f3ecdd; color: var(--paper-ink); box-shadow: 0 40px 80px rgba(0, 0, 0, .6); color-scheme: light; }
.booklet-dialog::backdrop { background: rgba(10, 8, 6, .7); backdrop-filter: blur(4px); }
.dialog-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--paper-line); }
.dialog-bar b { font: 400 24px var(--serif); }
.dialog-bar form { margin: 0; }
.booklet-dialog .chip-btn { background: #fff; border-color: #c7b89c; }
.booklet-frame { display: block; width: 100%; height: min(70vh, 640px); border: 0; background: #fff; }
.notes { margin: 0; padding: 20px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .deck-layout { grid-template-columns: minmax(0, 1fr); }
  .inspector { max-width: 760px; }
  .panel { max-height: none; }
  .studio-features { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .studio-features li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  .site-nav { position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: rgba(15, 12, 10, .97); border-bottom: 1px solid rgba(255, 255, 255, .06); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .menu-open .site-nav { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid #241c17; font-size: 13px; }
  .site-nav .nav-cta { margin-top: 16px; text-align: center; border: 0; }
  .menu-toggle { display: block; }
  .hero { min-height: auto; padding-top: 110px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { max-width: 640px; width: 100%; margin: 10px auto 0; }
  .section-head, .studio-head, .manifesto-inner { grid-template-columns: minmax(0, 1fr); }
  .section-head .section-lead { margin-top: 18px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .principles li:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--paper-line); }
  .format-grid, .medium-grid, .paper-grid, .build-grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--paper-line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .deck { padding: 14px 14px 16px; }
  .deck-body { grid-template-columns: minmax(0, 1fr); }
  .well { min-height: 220px; padding: 26px 12px 14px; }
  .silk.hide-sm, .deck-top .silk { display: none; }
  .templates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deck-keys { display: none; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(54px, 15vw, 72px); }
  h2 { font-size: clamp(42px, 12vw, 56px); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principles li:nth-child(even) { padding-left: 0; border-left: 0; }
  .principles h3 { margin-top: 20px; font-size: 30px; }
  .principles li { padding-bottom: 32px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div:nth-child(even) { padding-left: 0; border-left: 0; }
  .studio-features { grid-template-columns: minmax(0, 1fr); }
  .studio-features li + li { padding-left: 0; border-left: 0; }
  .downloads { grid-template-columns: minmax(0, 1fr); }
  .lengths, .tab-card { padding: 22px 18px; }
  .card-dark pre { font-size: 11.5px; padding: 16px 14px 18px; }
  .transport { gap: 6px; }
  .key { min-width: 0; flex: 1 1 calc(25% - 6px); padding: 9px 2px 8px; font-size: 9.5px; }
  .knob { flex: 1 1 100%; margin: 6px 0 0; grid-template-columns: auto 1fr; align-items: center; justify-items: start; gap: 12px; }
  .knob input { width: 100%; }
  .knob span { order: -1; }
  .vfd b.big { font-size: 32px; }
  .stage-controls { margin-left: 0; }
  .stage-note { margin-left: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .slots td, .slots th { font-size: 12.5px; padding-right: 8px; }
  .slots td:not(:first-child) { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
