@font-face { font-family: 'Nunito'; font-weight: 200 1000; font-style: normal; font-display: swap; src: url('nunito.woff2') format('woff2'); }
:root { --ring: #FF6A13; }
/* apc40x.com (tools/build_site.py). A dark room where the pads are the only colour: one idea per screen, one thing
   moving at a time. Pink only on the buy buttons and the Sound toggle's on state. */

:root {
  --stage: #0E0F12;
  --stage-2: #16181D;
  --line: #262931;
  --text: #F3F4F7;
  --soft: #A9AFBC;
  --faint: #6F7583;
  --hue: #FF4F9A;
  color-scheme: dark;
}

/* the lights: registered, so they can fade (the bloom) and a green hit can decay */
@property --c { syntax: "<color>"; inherits: true; initial-value: #2B2F37; }
@property --a1 { syntax: "<color>"; inherits: true; initial-value: #0E0F12; }
@property --a2 { syntax: "<color>"; inherits: true; initial-value: #0E0F12; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }  /* clip, not hidden: a scroll container would unstick the bar */
body {
  margin: 0;
  background: var(--stage);
  color: var(--text);
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.defs { position: absolute; width: 0; height: 0; }

/* -- the bar: transparent over the hero, a slim solid bar with a buy button after it --------------------------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 28px; transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent; }
.bar.solid { background: rgba(14, 15, 18, .92); border-color: var(--line); }
.mark { display: block; width: 104px; }
.mark svg { display: block; width: 100%; height: auto; }
.bar-end { display: flex; align-items: center; gap: 12px; }
/* Get it takes no room until the bar turns solid: the Sound button sits at the right edge over the hero */
.bar .bar-buy { max-width: 0; padding-left: 0; padding-right: 0; margin-left: -12px; opacity: 0; overflow: hidden;
  white-space: nowrap; pointer-events: none; transition: max-width .3s ease, padding .3s ease, margin .3s ease, opacity .3s ease; }
.bar.solid .bar-buy { max-width: 160px; padding-left: 16px; padding-right: 16px; margin-left: 0; opacity: 1; pointer-events: auto; }
.sound { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 800; font-size: 14px;
  color: var(--soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  cursor: pointer; }
.sound .speaker { width: 18px; height: 18px; }
.sound .waves { opacity: .35; }
.sound[aria-pressed="true"] { color: #121318; background: var(--hue); border-color: var(--hue); }
.sound[aria-pressed="true"] .waves { opacity: 1; }

.banner { position: relative; z-index: 21; background: var(--hue); color: #121318; text-align: center;
  font-weight: 800; padding: 10px 16px; }
.banner[hidden] { display: none; }

/* -- buttons -------------------------------------------------------------------------------------------------- */
.buttons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 800; font-size: 18px;
  text-decoration: none; padding: 15px 28px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .15s ease; }
.btn.primary { background: var(--hue); color: #121318;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--hue) 40%, transparent); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px color-mix(in srgb, var(--hue) 55%, transparent); }
.btn.ghost { color: var(--text); background: transparent; border: 2px solid var(--line); }
.btn.ghost:hover { border-color: var(--soft); }
.btn.small { font-size: 14px; padding: 8px 16px; box-shadow: none; }
.btn .price { opacity: .75; }

/* -- the hero ------------------------------------------------------------------------------------------------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; padding: 96px 24px 40px;
  overflow-x: clip; } /* the dust and the glow reach past the edges: never a sideways scroll on a phone */
.hero-text { max-width: 1120px; text-align: center; display: flex; flex-direction: column; align-items: center; }
h1, h2 { font-weight: 800; line-height: 1.04; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 4.7vw, 68px); }
h1 .before, h1 .after { display: block; }
h1 .before { color: var(--faint); transition: color 1.2s ease; }
h1 .after { opacity: 0; transition: opacity .9s ease .1s; }
.awake h1 .before { color: var(--text); }
.awake h1 .after { opacity: 1; }
.lead { font-size: 21px; color: var(--soft); max-width: 640px; margin: 20px 0 26px; text-wrap: pretty; }
.note { color: var(--faint); font-size: 14px; font-weight: 700; margin: 18px 0 0; }
.hero .buttons { justify-content: center; }

.stage { position: relative; margin: 0; }
.ambient { position: absolute; inset: -12% -8%; z-index: -1; pointer-events: none; opacity: .24;
  background:
    radial-gradient(closest-side at 35% 45%, var(--a1), transparent),
    radial-gradient(closest-side at 68% 58%, var(--a2), transparent);
  transition: --a1 1.2s ease, --a2 1.2s ease, transform .12s ease-out; }
.ambient.swell { transform: scale(1.08); transition: --a1 1.2s ease, --a2 1.2s ease, transform 0s; }

.hero-stage { width: min(1120px, 94vw); margin-top: 34px; }
.hero-stage .tilt { perspective: 1600px; }
.hero-unit { transform: rotateX(14deg); transform-origin: 50% 100%; }
.veil { position: absolute; inset: 0; pointer-events: none; border-radius: 26px;
  background: linear-gradient(180deg, rgba(160, 180, 210, .07), transparent 45%), rgba(8, 9, 12, .55);
  transition: opacity .9s ease; }
.awake .veil { opacity: 0; }
.dust { position: absolute; inset: -6% 0 10% 0; pointer-events: none; z-index: 2; transition: opacity 1.5s ease, transform 1.5s ease; }
.dust i { position: absolute; border-radius: 50%; background: rgba(214, 222, 236, .6); animation: drift 9s linear infinite; }
.awake .dust { opacity: 0; transform: scale(1.25) translateY(-30px); visibility: hidden;
  transition: opacity 1.5s ease, transform 1.5s ease, visibility 0s linear 1.5s; }
.awake .dust i { animation-play-state: paused; } /* gone: its 40 drifting specks stop costing frames */
@keyframes drift { from { transform: translate(0, 0); } 50% { transform: translate(8px, -14px); } to { transform: translate(0, 0); } }
.caption { text-align: center; color: var(--faint); font-weight: 700; font-size: 15px; margin: 18px 0 0; min-height: 1.5em;
  transition: opacity .3s ease; }

/* -- the unit's lights (app.js sets --c, the classes, the glows) ------------------------------------------------ */
/* They snap, like the unit's LEDs, except during a bloom: a 90 ms fade on every light change kept Chrome's main thread
   70% busy on a desktop (hundreds of SVG pieces re-layered at 60 fps; 11% without, measured 2026-09-29). Glows and
   highlights are shown with visibility + fill-opacity, never opacity: an opacity makes each of the 350 glows its own
   paint piece, and Chrome re-layers them all on every change (a phone's main thread 88% -> 32%, same day). */
svg.unit { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; overflow: visible;
  touch-action: pan-y; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; } /* a swipe scrolls the page */
.unit.blooming .ctl { transition: --c 220ms cubic-bezier(.2, .8, .2, 1); }
.unit .ctl .hit { fill: transparent; }
.unit .pad .face { fill: var(--c); stroke: #373B45; stroke-width: 1.2; }
.unit .pad.lit .face { stroke: none; }
.unit .hl { fill: #FFFFFF; fill-opacity: .16; visibility: hidden; }
.unit .pad.lit .hl { visibility: visible; }
.unit .button .face, .unit .arrow .face { fill: var(--c, #3D424C); }
.unit .button:not(.lit) .face { --c: #3D424C; }
.unit .glow, .unit .dg { visibility: hidden; fill-opacity: 0; }
.unit.blooming .glow, .unit.blooming .dg { transition: fill-opacity 220ms ease; }
.unit .dot { fill: #3D424C; }
.unit .dot.on { fill: var(--ring); }
.unit .knob .pointer { transition: transform .12s ease; }
.unit .tlabel { fill: #C9CED8; }
.unit .fader.live, .unit .knob.live { cursor: ns-resize; }
.unit .crossfader.live { cursor: ew-resize; }
.unit .fader.live, .unit .knob.live, .unit .crossfader.live, .unit .encoder.live { touch-action: none; } /* a finger drags them */
.unit .ctl.live { cursor: pointer; outline: none; }
.unit .ctl.live:focus-visible .hit { stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; }
@media (hover: hover) { .unit .ctl.live:hover .hit { stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; } }
.unit .ctl.pressed .hit { fill: rgba(255, 255, 255, .12); }
.unit .ctl.ripple .hit { animation: ripple .5s ease-out; }
@keyframes ripple { from { fill: rgba(255, 255, 255, .45); } to { fill: rgba(255, 255, 255, 0); } }

/* -- the chapters: a close-up of the pads beside a headline and one line ------------------------------------------ */
.chapter { min-height: 100svh; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px;
  align-items: center; max-width: 1240px; margin: 0 auto; padding: 10vh 40px; }
.chapter:nth-of-type(odd) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.chapter:nth-of-type(odd) .chapter-text { order: 2; }
.chapter.band { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }

/* -- section to section: the page settles on each section, a chapter at a time (phones too; not on a screen too short
   for a chapter, a phone held sideways) ----------------------------------------------------------------------- */
@media (min-height: 560px) {
  html { scroll-snap-type: y mandatory; }
  .hero, .chapter, .tryit, .get, .faq, .final { scroll-snap-align: start; }
  .chapter { scroll-snap-stop: always; }
  footer { scroll-snap-align: end; }
}
.label { display: block; color: var(--faint); font-weight: 800; font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 18px; }
h2 { font-size: clamp(34px, 3.8vw, 56px); }
.chapter-text p, .tryit-text p { color: var(--soft); font-size: 20px; margin: 20px 0 0; max-width: 460px; text-wrap: pretty; }
.chapter .stage .drawing { position: relative; }
figcaption { text-align: center; color: var(--faint); font-weight: 700; font-size: 15px; margin-top: 18px; }
.replay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #121318; font-size: 22px; cursor: pointer; }
.replay[hidden] { display: none; }
/* the sections' own "Hear it": small, beside the caption; gone once the sound is on */
.listen { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 3px 11px 3px 8px; font: inherit;
  font-size: 13px; font-weight: 700; color: var(--soft); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; vertical-align: middle; }
.listen .speaker { width: 15px; height: 15px; }
.listen .waves { opacity: .35; }
@media (hover: hover) { .listen:hover { color: var(--text); border-color: var(--soft); } }
.sound-on .listen { display: none; }

/* -- the Shift chip: slides out beside a button that has a Shift combo while it is pressed ----------------------- */
.combo { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px;
  border-radius: 999px; background: rgba(14, 15, 18, .95); color: var(--text); font: inherit; font-size: 13px;
  font-weight: 700; white-space: nowrap; cursor: pointer; border: 1px solid color-mix(in srgb, var(--hue) 60%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(6px) scale(.96);
  transition: opacity .16s ease, transform .16s ease, background .12s ease, color .12s ease; }
.combo[data-side="below"] { transform: translateY(-6px) scale(.96); }
.combo.in { opacity: 1; transform: none; }
.combo[hidden] { display: none; }
.combo kbd { font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px;
  background: #2A2D35; color: var(--text); }
.combo .plus { color: var(--faint); }
.combo .what { color: var(--soft); font-weight: 600; }
.combo.armed { background: var(--hue); color: #121318; }
.combo.armed kbd { background: #121318; }
.combo.armed .what, .combo.armed .plus { color: #121318; }
@media (hover: hover) { .combo:hover { background: var(--hue); color: #121318; } .combo:hover .what, .combo:hover .plus { color: #121318; } }

/* -- a finger's slider: a fader or a knob tapped on a touch screen ------------------------------------------------- */
.sheet { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30;
  max-width: 560px; margin: 0 auto; background: #16181D; border: 1px solid var(--line); border-radius: 18px;
  padding: 12px 16px 14px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .6); transform: translateY(130%); transition: transform .2s ease; }
.sheet.in { transform: none; }
.sheet[hidden] { display: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; }
.sheet-head b { font-size: 16px; }
.sheet-value { margin-left: auto; color: var(--soft); font-weight: 800; font-variant-numeric: tabular-nums; }
.sheet-close { border: 0; background: #2A2D35; color: var(--text); width: 40px; height: 40px; border-radius: 50%; font-size: 15px; }
.sheet input[type="range"] { width: 100%; height: 48px; margin: 8px 0 0; accent-color: var(--hue); touch-action: none; }
.sheet-ends { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; font-weight: 700; }

/* -- try it -------------------------------------------------------------------------------------------------- */
.tryit { max-width: 1320px; margin: 0 auto; padding: 12vh 40px; display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr);
  gap: 56px; align-items: center; }
.tryit-stage { margin: 0; }
.tryit figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; }
.tryit figcaption .listen { margin-left: 0; }
/* how to play: a pill under the caption, a compact key -> action table when open */
.howto { flex-basis: 100%; }
.howto summary { display: inline-flex; align-items: center; gap: 7px; padding: 4px 13px; font-size: 13px; font-weight: 700;
  color: var(--soft); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; list-style: none; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.6px 1.6px 0;
  transform: translateY(-2px) rotate(45deg); }
.howto[open] summary::after { transform: translateY(2px) rotate(-135deg); }
@media (hover: hover) { .howto summary:hover { color: var(--text); border-color: var(--soft); } }
.howto dl { margin: 18px auto 0; max-width: 820px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px; text-align: left; }
.howto dl > div { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.howto dt { flex: 0 0 46%; color: var(--text); font-size: 14px; font-weight: 800; }
.howto dd { margin: 0; color: var(--soft); font-size: 14px; font-weight: 600; }
.howto .touch { display: none; }
@media (pointer: coarse) { .howto .touch { display: flex; } .howto .mouse { display: none; } }
.tryit .unit .ctl:not(.live) { fill-opacity: .7; stroke-opacity: .7; } /* not opacity: one paint piece each (see the lights) */

/* -- what you get, questions, the end ------------------------------------------------------------------------ */
.wide { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.get { padding: 12vh 40px 6vh; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 28px 0 0; }
.card { background: var(--stage-2); border-radius: 18px; padding: 26px; }
.card h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; }
.card p { margin: 0; color: var(--soft); font-size: 17px; }
.manual-fan { --fan-step: 40px; position: relative; height: 330px; margin: 48px auto 24px; max-width: 760px; }
.manual-fan img { position: absolute; left: 50%; top: 50%; height: 300px; width: auto; border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.needs { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 36px; }
.needs span { background: var(--stage-2); border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: 16px; }
.faq { padding: 6vh 40px; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 19px; }
.faq details p { color: var(--soft); margin: 10px 0 0; max-width: 760px; }
.final { text-align: center; padding: 14vh 24px; display: flex; flex-direction: column; align-items: center; }
.final-stage { width: min(560px, 88vw); margin-bottom: 44px; }
.final p { color: var(--soft); font-size: 19px; max-width: 560px; margin: 18px 0 30px; }
footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--faint); font-size: 14px; }
footer .row { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
footer .egg { width: 96px; flex: none; }
footer .egg svg { display: block; width: 100%; height: auto; }
footer .eggs .cell { fill: #2B2F37; }
footer p { margin: 4px 0; max-width: 820px; }
footer a { color: var(--soft); }

/* -- phones and narrow windows ----------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .bar { height: 52px; padding: 0 16px; }
  .mark { width: 84px; }
  .sound span { display: none; }
  .hero { padding: 76px 16px 28px; min-height: auto; }
  h1 { font-size: 38px; }
  .lead { font-size: 17px; margin: 16px 0 20px; }
  .hero-stage { width: 100%; margin-top: 28px; }
  .hero-unit { transform: none; }
  .dust i:nth-child(n + 11) { display: none; }
  .chapter, .chapter.band, .chapter:nth-of-type(odd), .tryit { grid-template-columns: 1fr; gap: 26px;
    padding: 6vh 16px; min-height: calc(100svh - 52px); align-content: center; }
  html { scroll-padding-top: 52px; } /* a section settles under the bar, not behind it */
  .chapter .chapter-text, .chapter:nth-of-type(odd) .chapter-text, .tryit .tryit-text { order: 2; }
  .howto dl { grid-template-columns: 1fr; }
  .chapter-text p, .tryit-text p { font-size: 17px; }
  .ambient { inset: -6% -4%; background: radial-gradient(closest-side, var(--a1), transparent); }
  .wide, .get, .faq { padding-left: 16px; padding-right: 16px; }
  .cards { grid-template-columns: 1fr; }
  .manual-fan { --fan-step: 24px; height: 230px; }
  .manual-fan img { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-unit { transform: none; }
  .dust, .veil { display: none; }
}
