/* MOSAIC.DJ, THE HOME PAGE. One page in the brand's own dark: Obsidian ground, Graphite surfaces, Silver
   for what is said quietly, white for what matters, the three stem colours where they mean their stem, and the
   strip where they mean all three: the page's own lines, marks and edges (THE STRIP, below). Poppins, served from the
   site itself (/fonts, its licence beside it): 600 for what is shouted, 400 for the rest. One centred column of 1200
   px; sections stacked with room; the features in a grid of three; the working pieces (assets/home/) in panels, the
   ones that show the app's own controls drawn with the app's own rules (assets/home/app.css).
   Around the precise, glassy app, things made by hand (the operator, 3 November 2026: "way more intersting, cool, and
   tactile/homemade feeling than the average app ... a piece of software made with love and care"): notes in a white
   gel pen beside what can be played (assets/hand.js), engravings of sound printed faintly in the spectrum (PRINTS),
   a grain in every large gradient (GRAIN). The site's other pages keep assets/site.css. */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/poppins-600.woff") format("woff"); }
/* (while Poppins is on its way, a stand-in the same size: Arial scaled to Poppins's width on the page's own words, 109.5 %
   at 400 and 104.5 % at 600 against Arial Bold, measured, and given Poppins's own ascent, descent and gap, so the words
   keep their place when Poppins arrives (it moved the bar's links 21 px, 3 November); only for the letters Poppins has) */
@font-face { font-family: "Poppins Fallback"; font-weight: 400; font-style: normal; src: local("Arial"), local("ArialMT"); size-adjust: 109.5%; ascent-override: 95.9%; descent-override: 32%; line-gap-override: 9.1%; unicode-range: U+0020-007E, U+00A0-00FF, U+2018-2019, U+201C-201D, U+2022, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Poppins Fallback"; font-weight: 600 700; font-style: normal; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 104.5%; ascent-override: 100.5%; descent-override: 33.5%; line-gap-override: 9.6%; unicode-range: U+0020-007E, U+00A0-00FF, U+2018-2019, U+201C-201D, U+2022, U+20AC, U+2122, U+2212; }

:root {
  --obsidian: #050507;
  --ground-2: #09090c;
  --surface: #0f0f14;
  --graphite: #16161c;
  --line: rgba(201, 206, 216, .12);
  --line-2: rgba(201, 206, 216, .24);
  --silver: #c9ced8;
  --mute: #8f949e;
  --white: #ffffff;
  --vocals: #2ecc71; --vocals-light: #7ddfa7;
  --inst: #4da6ff; --inst-light: #91c8ff;
  --drums: #ff4d4d; --drums-light: #ff9191;
  --font: "Poppins", "Poppins Fallback", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --band: clamp(60px, min(12vw, 15svh), 168px);
  /* (one room between a section's heading and what it shows) */
  --lead: clamp(40px, 5vw, 64px);
  --radius: 14px;
  /* THE STRIP (the rainbow board, 30 October 2026: ~/mosaic-research/2026-10-rainbow-board): the stems' colours run
     together, blue, green, red and back to blue, the jog ring unrolled. It means all three parts at once, so it
     draws the page's own frame and never stands for one part: the lines between sections, the mark over each
     section's name, the ring round the main buttons, the edge of what can be played, the bar's reading line. Two
     strengths: the strip, the stems at half strength, for lines, edges and light; the spectrum, with the blends
     between them (cyan, gold, violet) at full strength, for the small marks. */
  --strip: linear-gradient(90deg, rgba(77, 166, 255, .5), rgba(46, 204, 113, .45), rgba(255, 77, 77, .5), rgba(77, 166, 255, .5));
  --spectrum: linear-gradient(90deg, #4da6ff, #2ad5e5, #2ecc71, #efb229, #ff4d4d, #9e60e8, #4da6ff);
  /* GRAIN (the operator, 3 November: "in large gradients like this, banding can start to occur ... add a little bit of
     grain"): one static tile of fine noise, 0 to 3 steps of light (scripts/grain.mjs), laid at one device pixel a pixel
     in the same layer as a large gradient, so the gradient's steps scatter instead of banding; never over words */
  --grain: image-set(url("/assets/img/grain.png") 1x, url("/assets/img/grain.png") 2x, url("/assets/img/grain.png") 3x);
  color-scheme: dark;
}
/* (blended as the spectrum is, through gold and violet, not through plain sRGB's olive, where the browser can) */
@supports (background: linear-gradient(in oklch, red, blue)) {
  :root { --strip: linear-gradient(in oklch 90deg, rgba(77, 166, 255, .5), rgba(46, 204, 113, .45), rgba(255, 77, 77, .5), rgba(77, 166, 255, .5)); }
}
/* (the strip round a box rather than across it: a tall box's sides would otherwise be its blue ends alone) */
:root { --strip-round: conic-gradient(from -90deg, rgba(77, 166, 255, .5), rgba(46, 204, 113, .45) 120deg, rgba(255, 77, 77, .5) 240deg, rgba(77, 166, 255, .5)); }
::selection { background: rgba(77, 166, 255, .34); color: var(--white); }
[hidden] { display: none !important; }
:root { interpolate-size: allow-keywords; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--obsidian); -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
/* (the page glides to a place on it when a link there is pressed: home.js adds .smooth for it. Every other scroll is
   instant: the browser's own as the page opens, back to where a reload left off or to a shared link's section, which
   glided the whole page from the top on a phone, past blocks still fading in; and the keyboard's as focus moves. The
   review of 9 November) */
@media (prefers-reduced-motion: no-preference) { html.smooth { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--obsidian); color: var(--silver);
  font: 400 18px/1.62 var(--font); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--white); text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2, h3 { color: var(--white); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
/* (no word left alone on a last line; a phrase or a number with its unit kept whole: the orphans check,
   audit/tests/site.mjs, holds every block to it at every width) */
p, li, figcaption, summary { text-wrap: pretty; }
.nb { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--white); color: var(--obsidian); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); position: relative; z-index: 1; }
.narrow-wrap { max-width: 860px; }
.center { text-align: center; }
.eyebrow { font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 18px; }
/* (over each section's name, a short mark of the spectrum: the board's E6; it draws across as the section comes in) */
.eyebrow::before { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--spectrum); margin-bottom: 16px; transform-origin: 0 50%; }
#play .eyebrow::before, #pricing .eyebrow::before { margin-inline: auto; transform-origin: 50% 50%; }
h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1.0; letter-spacing: -.045em; }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.038em; max-width: 18ch; }
.center h2, .hero h2 { margin-inline: auto; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.012em; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--silver); max-width: 38em; margin-top: 22px; }
.narrow { max-width: 34em; }
.small { font-size: 14px; line-height: 1.5; color: var(--mute); }
.note { font-size: 15px; line-height: 1.6; color: var(--mute); max-width: 44em; margin-top: 40px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  --btn-r: 12px; border-radius: var(--btn-r); border: 1px solid transparent; font: 600 16px/1 var(--font); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, opacity .2s;
}
/* The main buttons have the spectrum all the way round them (the operator, 3 November: "the rainbow surrounding them
   the way that we've done occasionally"). It starts at the left and runs clockwise, like the price card's edge, but
   at full strength and through gold and violet. The ring is drawn inside the button, so the button keeps its size.
   It's 2 px on a standard screen and 1.5 px on a sharper one, so it's crisp on both. A disabled button has no ring. */
:root { --ring: conic-gradient(from -90deg, #4da6ff, #2ad5e5, #2ecc71, #efb229, #ff4d4d, #9e60e8, #4da6ff); }
.btn-light { position: relative; background: var(--white) padding-box; color: var(--obsidian); }
.btn-light:not(:disabled)::before { content: ""; position: absolute; left: -1px; top: -1px; width: calc(100% + 2px); height: calc(100% + 2px); border-radius: var(--btn-r); padding: 2px; background: var(--ring); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
/* (Chrome lays a box out in whole pixels, so a 1.5 px ring drawn as it is comes out 1 px on some sides and 2 px on
   others. Drawn at twice the size and scaled down by half, it's an even 1.5 px all the way round) */
@media (min-resolution: 2dppx) {
  .btn-light:not(:disabled)::before { width: calc(200% + 4px); height: calc(200% + 4px); border-radius: calc(var(--btn-r) * 2); padding: 3px; transform: scale(.5); transform-origin: 0 0; }
}
/* And a faint glow of the same colours just outside the ring (the operator's pick of the four looks, 3 November: C).
   The colours are laid over the button's area, blurred, then cut away inside the button, so the glow only ever shows
   outside it and never over its white. Its box reaches 24 px out, where the blur has faded to nothing, and takes no
   room. It doesn't move, and there's none in forced colours, where the button keeps its plain border instead. */
.btn-light:not(:disabled)::after { content: ""; position: absolute; box-sizing: border-box; left: -25px; top: -25px; width: calc(100% + 50px); height: calc(100% + 50px);
  border: 24px solid transparent; border-radius: calc(var(--btn-r) + 24px); padding: 3px; background: var(--ring) content-box; filter: blur(10px); opacity: .42; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); mask-composite: exclude; }
@media (forced-colors: active) { .btn-light::before, .btn-light::after { display: none; } }
/* (under the pointer the button lifts and its ring's glow comes up, the white staying white: a white gone grey read as
   off (the operator, 10 November 2026: "Don't like that this goes grey on hover"); pressed, it goes down a pixel and
   in a hair) */
.btn-light:not(:disabled)::after { transition: opacity .25s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) {
  .btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(77, 166, 255, .12), 0 2px 8px rgba(0, 0, 0, .4); }
  .btn-light:not(:disabled):hover::after { opacity: .8; }
}
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-2); }
@media (hover: hover) { .btn-ghost:hover { border-color: var(--silver); background-color: rgba(255, 255, 255, .03); } }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; --btn-r: 10px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn:active { transform: translateY(1px) scale(.985); transition-duration: .08s; }

/* ---------------------------------------------------------------- the bar */
.nav { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(5, 5, 7, .94); border-bottom-color: var(--line); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
/* the reading line: the spectrum along the bar's foot, as far down the page as the reader is (where the browser can
   tie it to the scroll; elsewhere the bar keeps its plain line) */
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--spectrum); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
@supports (animation-timeline: scroll()) { .nav::after { animation: reading linear both; animation-timeline: scroll(root block); } }
@keyframes reading { to { transform: scaleX(1); } }
.nav-in { max-width: var(--wrap); margin-inline: auto; padding: 0 max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: 0 0 auto; border-radius: 6px; }
.brand img { height: 28px; width: auto; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { color: var(--silver); text-decoration: none; font-size: 15px; font-weight: 400; padding-block: 4px;
  background: var(--spectrum) 0 100% / 0 2px no-repeat; transition: background-size .35s cubic-bezier(.4, 0, .2, 1), color .2s; }
@media (hover: hover) { .links a:hover { color: var(--white); background-size: 100% 2px; } }
.menu { display: none; }
@media (max-width: 760px) {
  .nav-in { gap: 12px; }
  .menu { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 10px; color: var(--white); cursor: pointer; }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, opacity .25s; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
  .menu[aria-expanded="true"] .menu-bars { background: transparent; }
  .menu[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .links { position: absolute; top: calc(68px + env(safe-area-inset-top, 0px)); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: rgba(5, 5, 7, .97); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; display: flex;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .links.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
  .links a:last-child { border-bottom: 0; }
  .links a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); background: none; }
  /* (on a phone the bar is the mark and the menu, as it was: the opening's own buttons are a thumb away) */
  .nav-cta { display: none; }
}

/* ---------------------------------------------------------------- the opening (as it was on 30 October, the mark at
   its full size: the operator, 3 November, "Before is better but the rainbow on the buttons is good") */
.hero { text-align: center; padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(72px, 9vw, 128px); position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -68px 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background-image: var(--grain), radial-gradient(60% 50% at 50% 34%, rgba(77, 166, 255, .07), transparent 70%), radial-gradient(40% 32% at 34% 30%, rgba(255, 77, 77, .05), transparent 70%), radial-gradient(40% 32% at 66% 30%, rgba(46, 204, 113, .05), transparent 70%); }
.mark-wrap { width: min(440px, 76vw); aspect-ratio: 1; margin: 0 auto clamp(4px, 1vw, 12px); }
.mark { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1); }
.mark.on { opacity: 1; }
.hero h1 { max-width: 12ch; margin-inline: auto; }
.hero .lede, #play .lede, #yours .lede, .band-end .lede { text-wrap: balance; }
.hero .lede { margin-inline: auto; max-width: 31em; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-cta .small { flex-basis: 100%; margin-top: 6px; }
/* (two buttons in a row, one width: the longer's) */
.hero-cta .btn { min-width: 9.5em; }

/* ---------------------------------------------------------------- sections */
.band { padding-block: var(--band); position: relative; }
/* each section opens on the strip, glowing a little where it meets the page (the operator: "The glowing rainbow
   dividers ... can go sitewide"); the first, under the opening, is the horizon, lit the most. The line draws across
   as the section comes into view (motion.js: .rv-line) */
.band::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--strip); pointer-events: none; transform-origin: 50% 50%; z-index: 2; }
.band::after { content: ""; position: absolute; left: 18%; right: 18%; top: -14px; height: 28px; background: var(--strip); filter: blur(24px); opacity: .22; pointer-events: none; transform-origin: 50% 50%; }
.hero + .band::before { height: 2px; }
.hero + .band::after { left: 12%; right: 12%; top: -18px; height: 36px; filter: blur(26px); opacity: .5; }
.band-quiet { background: var(--ground-2); }
/* the end: the light rising from the page's foot, in the grain */
.band-end { background-color: var(--obsidian); background-image: var(--grain), radial-gradient(60% 80% at 50% 100%, rgba(77, 166, 255, .09), transparent 70%), radial-gradient(34% 60% at 30% 100%, rgba(255, 77, 77, .06), transparent 70%), radial-gradient(34% 60% at 70% 100%, rgba(46, 204, 113, .06), transparent 70%); }
.br-wide { display: none; }
@media (min-width: 700px) { .br-wide { display: inline; } }
@media (min-width: 1800px) { :root { --wrap: 1360px; } .shot { width: min(1600px, calc(100% - 2 * var(--gutter))); } }
.band-short { padding-block: calc(var(--band) * .8); }

/* PRINTS: engravings of sound, from the primer's public-domain scans (scripts/prints.py), printed in the spectrum as a
   riso prints on black card, faint, at the edge of a section beside its heading, never under its words */
.print { position: absolute; z-index: 0; pointer-events: none; opacity: .17; user-select: none; }
/* (a print runs off the edge of its section, and the section cuts it off there) */
.band-print { overflow-x: clip; }
.print-chladni { width: min(330px, 27vw); top: clamp(36px, 5vw, 80px); right: max(-50px, calc((100vw - var(--wrap)) / 2 - 120px)); transform: rotate(4deg); }
.print-lissajous { width: min(300px, 24vw); top: clamp(48px, 7vw, 110px); right: max(-40px, calc((100vw - var(--wrap)) / 2 - 60px)); transform: rotate(-3deg); }
.print-young { width: min(560px, 44vw); top: clamp(30px, 5vw, 80px); right: max(-120px, calc((100vw - var(--wrap)) / 2 - 220px));
  /* (the interference fills its plate to the edges: it fades out, as ink does at the edge of a roller) */
  -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); mask: radial-gradient(closest-side, #000 55%, transparent); }
/* (on a phone, small and up in the corner, over the section's name only: the words beside it stay clear of it) */
@media (max-width: 760px) {
  .print { opacity: .14; }
  .print-chladni { width: 170px; top: 8px; right: -46px; }
  .print-lissajous { width: 120px; top: 10px; right: -24px; }
  .print-young { width: 260px; top: 4px; right: -110px; }
}

/* the app, framed */
#play .wrap { text-align: center; }
#play h2 { max-width: none; }
#play .lede { margin-inline: auto; }
.shot { margin: var(--lead) auto 0; width: min(1240px, calc(100% - 2 * var(--gutter))); position: relative; isolation: isolate; }
/* (the app's own light, spilling from under its window; the grain above the blur, in its own layer under the window) */
.shot::before { content: ""; position: absolute; z-index: -2; left: 8%; right: 8%; bottom: -4%; height: 26%; background: var(--strip); filter: blur(70px); opacity: .7; pointer-events: none; }
.shot::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: -18%; height: 46%; background-image: var(--grain); pointer-events: none;
  -webkit-mask: radial-gradient(60% 60% at 50% 70%, #000, transparent); mask: radial-gradient(60% 60% at 50% 70%, #000, transparent); }
.window { height: 30px; display: flex; align-items: center; gap: 7px; padding-inline: 14px; background: #121217; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; }
.window span { width: 10px; height: 10px; border-radius: 50%; background: #2a2a32; }
/* (the picture element takes no part in the layout, so the shot lays out as it did when it was a plain image) */
.shot picture { display: contents; }
.shot img { width: 100%; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 40px 120px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .4); }
@media (max-width: 640px) { .shot::before { filter: blur(28px); height: 16%; opacity: .6; } }
.shot figcaption { font-size: 13.5px; color: var(--mute); margin-top: 16px; text-align: center; }

/* the parts */
#stems h2 { max-width: 20ch; }
/* (the heading its own width; the parts' chips under its words, where the eye goes next) */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.stem-toggles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 480px; }
@media (max-width: 860px) { .stem-toggles { display: flex; flex-wrap: nowrap; gap: 8px; } }
.stem-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--white); font: 600 14.5px/1 var(--font); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, opacity .2s, transform .15s; }
.stem-chip:active { transform: scale(.97); }
.stem-toggles .stem-chip { justify-content: center; }
@media (max-width: 420px) { .stem-chip { padding: 0 12px 0 10px; gap: 7px; font-size: 13.5px; } }
@media (hover: hover) { .stem-chip[aria-pressed="true"]:hover { border-color: var(--silver); } }
.stem-chip[aria-pressed="false"] { color: var(--mute); background: transparent; opacity: .55; }
.stem-chip[aria-pressed="false"] .dot { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; transition: background-color .2s, box-shadow .2s; }
.dot.v { background: var(--vocals); } .dot.i { background: var(--inst); } .dot.d { background: var(--drums); }
.tiles-wrap { margin-top: var(--lead); border: 1px solid var(--line); border-radius: var(--radius); background: #07070a; padding: clamp(14px, 2vw, 22px); position: relative; }
.tiles { width: 100%; height: clamp(150px, 20vw, 240px); display: block; }
.parts { list-style: none; padding: 0; margin: clamp(36px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .parts { grid-template-columns: 1fr; gap: 24px; } }
.part { padding-top: 18px; border-top: 2px solid; }
.part.v { border-color: var(--vocals); } .part.i { border-color: var(--inst); } .part.d { border-color: var(--drums); }
.part.v h3 { color: var(--vocals-light); } .part.i h3 { color: var(--inst-light); } .part.d h3 { color: var(--drums-light); }
.part p { margin-top: 8px; font-size: 16.5px; }

/* the features */
.grid { margin-top: var(--lead); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 30px; transition: border-color .3s; }
@media (hover: hover) { .card:hover { border-color: var(--line-2); } }
.card h3 { font-size: 19px; }
.card p { margin-top: 10px; font-size: 16px; line-height: 1.6; }

/* THE TWO MACS ON A STUDIO COVE (the operator, 10 November 2026: "a nice studio cove style white backdrop strip that's
   fullscreen width"): Apple's own pictures of an iMac and a MacBook Pro, the real app on each screen, set as one studio
   shot with the shadows each stands on (mosaic-site/scripts/devices.py: one picture, so the shadows stay under the feet
   at every size), on a white sweep the width of the window, the wall curving into the floor where they stand */
.devices { margin: calc(var(--lead) + 8px) calc(50% - 50vw) 0; width: 100vw; position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 8vh, 120px) max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) clamp(48px, 7vh, 104px);
  background: #fff; }
/* (on a phone the picture is a phone's width, so a full screen would leave it small in white: the band fits it, with
   room above and below) */
@media (max-width: 700px) { .devices { min-height: 0; padding-top: 72px; padding-bottom: 56px; } }
/* (the picture as large as the window allows: up to 1,320 px wide, never taller than the screen leaves room for, the
   picture 0.636 of its width tall) */
.devices-in { position: relative; width: min(100%, 1320px, calc((100svh - 230px) / 0.636)); min-width: min(100%, 560px); margin-inline: auto; }
.macs { display: block; width: 100%; height: auto; }
/* (the sweep, set by the picture, so it bends where the Macs stand at every size: the Macs' floor line is 81% down the
   picture. The wall, white, greying in its last stretch as it bends; the floor from just behind them, lightening
   towards the front. Each four times the picture's height, so it reaches the band's top and foot at any height; the
   band clips them. In the grain, as every large gradient on the page) */
.devices-in::before, .devices-in::after { content: ""; position: absolute; z-index: -1; left: 50%; width: 100vw; margin-left: -50vw; height: 400%; pointer-events: none; }
.devices-in::before { bottom: 22%;
  background: var(--grain), linear-gradient(180deg, #ffffff 0%, #fdfdfd 76%, #f4f4f7 88%, #e9e9ed 95%, #dedee4 100%); }
.devices-in::after { top: 78%;
  background: var(--grain), linear-gradient(180deg, #dedee4 0%, #e1e1e6 1.2%, #e9e9ed 4%, #f0f0f3 9%, #f5f5f7 16%, #f8f8f9 30%); }
.devices figcaption { font-size: 13.5px; color: #5b6070; margin-top: clamp(-40px, -3.2vw, -8px); position: relative; text-align: center; }

/* how it works */
.steps { list-style: none; padding: 0; margin: var(--lead) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  /* (the number beside its step, not a line of its own) */
  .steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; }
  .steps li > :not(.step-n) { grid-column: 2; }
  .steps .step-n { grid-row: span 2; margin: 0; }
}
.step-n { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid transparent; background: linear-gradient(var(--obsidian), var(--obsidian)) padding-box, var(--strip-round) border-box; color: var(--white); font-weight: 600; font-size: 15px; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.steps p { margin-top: 8px; font-size: 16.5px; }

/* yours */
#yours .wrap { text-align: center; }
#yours h2 { margin-inline: auto; max-width: 16ch; }
#yours .lede { margin-inline: auto; }
.facts { list-style: none; padding: 0; margin: var(--lead) auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts li { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; background: var(--surface); display: grid; align-content: center; }
.facts b { display: block; color: var(--white); font-weight: 600; font-size: clamp(17px, 4.4vw, 20px); letter-spacing: -.01em; white-space: nowrap; }
.facts span { display: block; font-size: 14.5px; color: var(--mute); margin-top: 4px; }

/* pricing */
#pricing .wrap { text-align: center; }
#pricing h2 { margin-inline: auto; }
.price-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.period { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; margin: 0; gap: 4px; background: var(--surface); }
.period label { position: relative; }
.period input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.period span { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--silver); transition: background-color .25s, color .25s; }
.period input:checked + span { background: var(--white); color: var(--obsidian); }
.period input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.save { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: rgba(46, 204, 113, .16); color: var(--vocals-light); transition: background-color .25s, color .25s; }
/* (the saving is the visitor's own (home.js), 16% to 18% across the price table: its badge holds any two figures, the
   widest, Save 44%, measured, so the switch never moves as the visitor's price arrives) */
.save { min-width: calc(4.9em + 14px); text-align: center; }
.period input:checked + span .save { background: rgba(25, 112, 62, .14); color: #19703e; }
/* (no currency menu: each visitor sees their own price, home.js. On a phone the period's two halves a little closer, as
   they were, and as tall as a thumb needs) */
@media (max-width: 520px) {
  .period span { padding: 0 10px; gap: 6px; }
  .save { font-size: 11px; padding: 2px 5px; min-width: calc(4.9em + 10px); }
}
@media (pointer: coarse) { .period span { min-height: 44px; } }
.price-card { text-align: left; max-width: 720px; margin: 28px auto 0; background: linear-gradient(180deg, #121218, #0c0c10) padding-box, var(--strip-round) border-box; border: 1px solid transparent; border-radius: 20px; padding: clamp(28px, 4vw, 44px); box-shadow: 0 30px 90px rgba(0, 0, 0, .5); }
.price-head h3 { font-size: 24px; }
.plan-line { margin-top: 6px; color: var(--silver); font-size: 16px; }
.price { margin-top: 26px; color: var(--white); }
.price-now { display: flex; align-items: baseline; gap: 10px; }
.amount { font-size: clamp(48px, 7vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.per { font-size: 18px; color: var(--silver); }
.price-sub { margin-top: 8px; color: var(--mute); font-size: 15px; line-height: 24.3px; }
/* THE CARD KEEPS ITS SIZE AS THE VISITOR'S OWN PRICE ARRIVES (home.js, from api/billing/price). The big price is one line
   of a fixed height, the amount's own, its words at that line's foot, so one made smaller to fit the card (a long price
   on a phone: home.js) keeps its place. The line under it is one line, made smaller the same way, and a later price a
   change brings says itself there, in the place of its words (prices.js laterNote). And the line under the buttons is
   as tall as the longest it can ever be: its words lie over an unseen copy of that longest, one for each plan
   (data-room-annual and data-room-monthly, prices.js cardRoom, which a test holds index.html's to), so the card has its
   height from the first layout, before any script runs, whatever price comes, a change told or not. As a price
   arrives, nothing moves, "a year" included: the price and its words are one row in a slot of their own, and the new
   row fades in over the old where it stands, as the old fades out (home.js: review-ph #10, "a year" moved right as a
   wider price came). audit/tests/site.mjs measures it for every row of the price table, a place it has no row for and
   the answer failing, at a desk's size and a phone's, yearly and monthly, and with a change told. THE SLOT IS THE
   CARD'S WIDTH, never the row's (the third review's #3: an auto column grew to the row's unbroken width, so the row was
   measured against itself, never made smaller, and "COP$179,900 a ye" ran off a 390 px phone): its one column the
   card's, and the amount made smaller to fit it (home.js); site.mjs checks every row's right edge inside the card at
   320, 360 and 390 px and on a desk */
.price { --amount: clamp(48px, 7vw, 64px); height: var(--amount); display: grid; grid-template-columns: minmax(0, 1fr); align-content: unsafe end; align-items: end; }
.price-now { grid-area: 1 / 1; }
@keyframes fig-out { to { opacity: 0; filter: blur(2px); } }
.price-now.going { animation: fig-out .38s cubic-bezier(.2, .7, .2, 1) forwards; pointer-events: none; }
.price-now.coming { animation: fig .38s cubic-bezier(.2, .7, .2, 1); }
.amount { font-size: var(--amount); }
/* (one line each, never wrapped: the price, "a year" and the line under it; the line under it one height whatever the
   size its words are made to fit it (home.js), so a long later price moves nothing (prices.js laterNote)) */
.amount, .per, .price-sub { white-space: nowrap; }
/* (WRAPPED RATHER THAN PAST THE CARD (the operator's decision 5, round four): one line only while it fits at its
   smallest; with a large minimum font size, or the page zoomed, one too long even then wraps inside its own box, the
   slot growing to hold it (home.js marks it: wraps)) */
.price.wraps { height: auto; min-height: var(--amount); }
.price.wraps .price-now { flex-wrap: wrap; row-gap: 4px; }
.price.wraps .amount, .price.wraps .per, .price-sub.wraps { white-space: normal; overflow-wrap: anywhere; }
/* (and their size changes at once: with less motion asked for, every property here moves in a hundredth of a millisecond
   (below), so the fit measured each smaller size before it had taken, and made the price as small as it goes) */
.amount, .price-sub { transition: none; }
.terms { display: grid; grid-template-columns: minmax(0, 1fr); }
.terms > span, .terms::before, .terms::after { grid-area: 1 / 1; }
.terms::before { content: attr(data-room-annual); visibility: hidden; }
.terms::after { content: attr(data-room-monthly); visibility: hidden; }
.trial { margin-top: 22px; font-size: 16px; line-height: 1.6; }
.trial b { color: var(--white); font-weight: 600; }
.price-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.price-actions .btn { min-width: 10.5em; }
/* (on a phone the two buttons one above the other, each as wide as the card: never one left on a line of its own) */
@media (max-width: 520px) { .price-actions { flex-direction: column; align-items: stretch; } .price-actions .btn { width: 100%; } }
.terms { margin-top: 18px; font-size: 13.5px; line-height: 1.6; color: var(--mute); }
.included { list-style: none; padding: 22px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; font-size: 15px; }
@media (max-width: 520px) { .included { grid-template-columns: 1fr; } }
.included li { position: relative; padding-left: 22px; color: var(--silver); }
/* (each a short mark of the spectrum: the stems' own colours mean their stem, and none of these is one) */
.included li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 3px; border-radius: 2px; background: var(--spectrum); }
.req { margin-top: 20px; }
.prep-mode { max-width: 720px; margin: 22px auto 0; text-align: left; padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.prep-mode h3 { font-size: 17px; }
.prep-mode p { margin-top: 8px; font-size: 15.5px; }
/* (a figure that changes, comes in as one: motion.js setFigure) */
@keyframes fig { from { opacity: 0; transform: translateY(.18em); filter: blur(2px); } }
.fig-in { display: inline-block; animation: fig .38s cubic-bezier(.2, .7, .2, 1); }
/* (but the line under the card's price stays a block as it changes: made an inline-block, it was as wide as its own
   words, so home.js measured them against themselves and made them smaller, and the card's height moved by up to a
   pixel as a visitor's own price came. site.mjs card size) */
.price-sub.fig-in { display: block; }

/* questions */
.qa { margin-top: var(--lead); max-width: 860px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 2px; color: var(--white); font-weight: 600; font-size: 18px; line-height: 1.4; border-radius: 6px; transition: color .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: 0 0 auto; width: 12px; height: 12px; border-right: 1.5px solid var(--silver); border-bottom: 1.5px solid var(--silver); transform: translateY(-3px) rotate(45deg); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .qa summary:hover { color: #e6e8ee; } }
.qa details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.qa details > div { padding: 0 2px 24px; max-width: 42em; }
.qa details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .32s cubic-bezier(.4, 0, .2, 1), opacity .32s, content-visibility .32s allow-discrete; }
.qa details[open]::details-content { block-size: auto; opacity: 1; }
/* (the answer's words come in a moment after the door opens, rising a few pixels) */
@keyframes answer { from { opacity: 0; transform: translateY(-4px); } }
.qa details[open] > div { animation: answer .4s .06s cubic-bezier(.2, .7, .2, 1) both; }
.qa details p { font-size: 16.5px; }

/* the end */
.band-end h2 { margin-inline: auto; max-width: 14ch; }
.band-end .lede { margin-inline: auto; margin-bottom: 30px; }
.download .btn { margin-top: 8px; }
.download .small { margin-top: 18px; }

/* the foot: its links alone, the legal pages and the company's, as every page of the site has them
   (test/trademarks.test.js) */
footer.site { position: relative; padding-block: 56px calc(48px + env(safe-area-inset-bottom, 0px)); background: var(--obsidian); }
/* THE LIST, in the foot: an address, the tick and Join, quieter than every call to act above it (the operator, 3
   November: the site keeps a voluntary list for news and updates); the form as the opening's and the end's were until
   then, smaller (home.js sends it) */
.foot-news { max-width: 460px; margin-bottom: 44px; }
/* (it shows only once home.js has run, as the form needs the script to send; where scripts run, it keeps its room from
   the start, unseen, so nothing under it moves when it shows: a reload at the foot moved the foot's links and the
   credits, 0.028 of layout shift. The review of 9 November. With scripts off, it takes no room at all) */
@media (scripting: enabled) { .foot-news[hidden] { display: block !important; visibility: hidden; } }
.foot-label { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.join-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; text-align: left; }
.join-form input[type="email"] { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--white); font: 400 16px var(--font); min-width: 0; transition: border-color .2s; }
.join-form input[type="email"]::placeholder { color: #6b707a; }
.join-form input[type="email"]:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.join-form input[aria-invalid="true"] { border-color: var(--drums); }
.join-form .btn { min-height: 44px; padding: 0 22px; font-size: 15px; }
.consent { grid-column: 1 / -1; order: 2; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--mute); cursor: pointer; }
.consent a { color: var(--silver); }
.consent input { -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface); display: grid; place-content: center; cursor: pointer; transition: background-color .15s, border-color .15s; }
.consent input:checked { background: var(--white); border-color: var(--white); }
.consent input:checked::before { content: ""; width: 10px; height: 10px; background: var(--obsidian); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); }
.consent input:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.consent input[aria-invalid="true"] { border-color: var(--drums); }
/* (the message goes under the tick. While it's empty it takes no room, but it stays in the page, so a screen reader
   hears the first thing it says) */
.form-msg { grid-column: 1 / -1; order: 3; margin: 0; font-size: 14px; line-height: 1.5; color: var(--silver); }
.form-msg.bad { color: var(--drums-light); }
.form-msg.good { color: var(--vocals-light); }
.form-msg.good::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--spectrum); vertical-align: middle; margin: -3px 10px 0 0; }
@media (max-width: 359px) { .join-form { grid-template-columns: 1fr; } .join-form .btn { width: 100%; } }
footer.site::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--strip); }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-top img { height: 26px; width: auto; }
footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site nav a { color: var(--silver); text-decoration: none; font-size: 15px; padding-block: 4px;
  background: var(--spectrum) 0 100% / 0 2px no-repeat; transition: background-size .35s cubic-bezier(.4, 0, .2, 1), color .2s; }
@media (hover: hover) { footer.site nav a:hover { color: var(--white); background-size: 100% 2px; } }
@media (max-width: 520px) { footer.site nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; } footer.site nav a { padding-block: 10px; } }
.foot-credits { margin: 28px 0 0; max-width: 46em; font-size: 13px; line-height: 1.55; color: var(--mute); text-wrap: pretty; }

/* ---------------------------------------------------------------- the working pieces (assets/home/), as the app draws its own */
.pieces { margin-top: var(--lead); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 980px) { .pieces { grid-template-columns: 1fr; } }
.piece { min-width: 0; display: flex; flex-direction: column; background: #08080b; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2vw, 22px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); position: relative; }
/* (what can be played lights its edge with the strip while a hand is on it: under the pointer, in the keyboard's
   focus, or held) */
.piece::after, .tiles-wrap::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--strip-round); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity .35s ease; }
.piece:has(:focus-visible)::after, .piece:has(.held)::after, .tiles-wrap:has(:focus-visible)::after, .tiles-wrap:has(.held)::after { opacity: 1; transition-duration: .12s; }
@media (hover: hover) { .piece:hover::after, .tiles-wrap:hover::after { opacity: 1; transition-duration: .12s; } }
/* (a piece still on its way: its canvases wake in the strip's light until it draws; less motion, a still glow) */
@keyframes waking { from { background-position: 100% 0; } to { background-position: 0 0; } }
[data-piece]:not(.ready):not(.still) canvas { background-image: linear-gradient(100deg, transparent 30%, rgba(77, 166, 255, .18) 40%, rgba(46, 204, 113, .18) 50%, rgba(255, 77, 77, .14) 60%, transparent 70%); background-size: 250% 100%; background-repeat: no-repeat; animation: waking 1.6s linear infinite; }
.piece-wide { margin-top: var(--lead); }
.piece-wide + .piece-wide { margin-top: 16px; }
.piece h3 { font-size: 15px; letter-spacing: .01em; color: var(--white); }
.piece-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.bar-name { font-size: 13.5px; color: var(--mute); }
.pieces .piece > .piece-bar:last-child { margin-top: auto; padding-top: 14px; }
/* (in a pair of panels, the drawings take the height the taller one gives; a fixed basis, so a canvas's own size
   never feeds back into its box) */
.piece[data-piece="lanes"] .deck-lane { flex: 1 0 auto; display: flex; flex-direction: column; }
.piece[data-piece="lanes"] .lane { flex: 1 0 104px; height: auto; min-height: 104px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { min-height: 36px; min-width: 44px; padding: 0 13px; border-radius: 7px; border: 0; background: rgba(255, 255, 255, .055); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .06);
  color: var(--silver); font: 600 12px/1 var(--font); letter-spacing: .06em; cursor: pointer; transition: background-color .15s, color .15s, transform .12s; }
@media (hover: hover) { .chip:not(:disabled):not([aria-disabled="true"]):not([aria-pressed="true"]):hover { color: var(--white); background: rgba(255, 255, 255, .09); } }
.chip:active:not([aria-disabled="true"]) { transform: translateY(1px); }
@media (pointer: coarse) { .chip { min-height: 44px; } }
.piece-bar .chip, [data-piece="drift"] .chip { min-width: 64px; }
/* (a chip that can't be pressed yet looks as it did at 40 % opacity, but its parts are dimmed rather than the whole chip,
   so its focus ring still shows at full strength when the keyboard reaches it) */
.chip[aria-disabled="true"] { color: rgba(201, 206, 216, .4); background: rgba(255, 255, 255, .022); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), inset 0 0 0 1px rgba(255, 255, 255, .024); cursor: default; }
.chip[aria-pressed="true"] { background: #F5F5F5; color: var(--obsidian); }
.chip:disabled { opacity: .4; cursor: default; }
.chip:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.lane-label { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--white); font-weight: 600; min-width: 0; }
.lane-label b { color: var(--mute); font-weight: 600; }
.lane-label .num { margin-left: auto; color: var(--silver); font-weight: 400; font-variant-numeric: tabular-nums; }
.tag { font-size: 11px; letter-spacing: .1em; color: var(--mute); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 6px; }
/* (the one lane a hand can take, edged with the strip as everything playable is when a hand is on it) */
.tag-drag { color: var(--silver); border-color: transparent; background: linear-gradient(#08080b, #08080b) padding-box, var(--strip-round) border-box; }
.lane { display: block; width: 100%; height: 104px; margin-top: 8px; border-radius: 8px; background: #030304; }
.lane.grab, .tiles, .drift-lane { cursor: grab; touch-action: pan-y; }
.lane.grab.held, .tiles.held, .drift-lane.held { cursor: grabbing; }
.lane:focus-visible, .tiles:focus-visible, .drift-lane:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.readout { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--drums-light); transition: color .2s; }
.readout[data-band="near"] { color: #E0A23C; }
.readout[data-band="on"] { color: var(--vocals-light); }
.verdict, .why, .status { margin-top: 12px; min-height: 3em; font-size: 14px; line-height: 1.5; color: var(--silver); }
@media (hover: none) { .why:empty { display: none; } }
.drift-lane { display: block; width: 100%; height: 160px; margin-top: 14px; border-radius: 8px; background: #030304; }
.drift-whole { display: block; width: 100%; height: 34px; margin-top: 8px; cursor: pointer; touch-action: none; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0; font-size: 12.5px; color: var(--mute); }
/* (on a phone the three on one line, closer, as the prep view sets its own: never two and one left over) */
@media (max-width: 520px) { .legend { flex-wrap: nowrap; gap: 10px; font-size: 11.5px; white-space: nowrap; } .legend li { gap: 5px; } .legend li::before { width: 8px; height: 8px; } }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend li::before { content: ""; width: 9px; height: 9px; border-radius: 2px; }
.legend .g::before { background: var(--vocals); } .legend .a::before { background: #E0A23C; } .legend .r::before { background: var(--drums); }
.shot-inline { width: 100%; margin-top: var(--lead); }
.shot-inline img { border-top: 1px solid var(--line); border-radius: 12px; }

/* SPIN IT: deck 1 stopped, its platter large (the operator: "before better for the right ... though still feel this
   can be even better"): the platter is the app's own (app.css, appui.js drawJog), scaled as a whole so its rings and
   readout keep the app's proportions; the clock and the whole track under it, as on 30 October */
.piece-jog { display: flex; flex-direction: column; }
.spin-jog { flex: 1 1 auto; display: grid; place-items: center; margin-top: 14px; min-height: 0; }
.spin-ax, .spin-ov { height: auto; overflow: visible; background: transparent; }
.spin-ax .ax-jogwrap { width: 110px; height: 110px; contain: none; }
/* (a jog's readout sized by the jog's own height in the stylesheet, as the app's code sizes it (deck/ui.js
   jogSizeWatch: --jh), so it is right before a piece's code has measured it and nothing moves when it does) */
@supports (width: 1cqh) { .ax .ax-jogwrap { container-type: size; } .ax .ax-jogc { --jh: 100cqh; } }
.spin-ax .ax-jogcv { pointer-events: auto; cursor: grab; touch-action: none; border-radius: 50%; }
.spin-ax .ax-jogcv.held { cursor: grabbing; }
.spin-ax .ax-jogcv:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.clock { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.clock .remain { color: var(--mute); }
/* (Poppins has no figures of one width: each time keeps a box of its own, so the pair stands still as it counts) */
.clock span { display: inline-block; min-width: 4.6em; }
.clock span:first-child { text-align: right; } .clock .remain { text-align: left; }
.spin-ov { margin-top: 10px; }
.spin-ov .ax-dkov { height: 30px; border-radius: 4px; }
.spin-ov canvas { cursor: pointer; }

/* IN KEY: deck 2 and the library, as the app draws them (the operator: "These need to match the in app UI spot on"):
   its own rules (app.css), at the size the panel gives, scaled as a whole (key.js sets the frame's zoom from its width,
   a whole number of device pixels to an app pixel where it can be); under 760 px the deck sets its pads aside, as the
   app's narrow decks do, so the jog and the fader stay a thumb's size */
.piece-app { padding-bottom: clamp(14px, 1.6vw, 18px); }
/* (the app's own font, its 400 and 700, loads only once a frame gets near the screen (home.js start). Until then, and
   with no script, the frames use the site's font, which is already loaded, so the page opens with two fonts, not three) */
.appframe:not(.ax-near) > .ax, .spin-jog:not(.ax-near) > .ax { --ui: var(--font); }
.appframe { margin-top: 14px; border-radius: 11px; overflow: hidden; background: var(--obsidian); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.appframe > .ax { height: auto; overflow: visible; padding: 5px; background-color: var(--obsidian); }
.key-ax .ax-deck { height: 240px; }
.key-ax .ax-dkmain { min-height: 0; }
.key-ax .ax-pitchwrap .ax-vfd { touch-action: none; }
.match-ax .ax-libbar { margin-bottom: 4px; }
.match-ax .ax-libbar .ax-btn { height: 26px; }
.match-ax .ax-mref { flex: 0 0 auto; text-align: left; padding-left: 4px; }
.match-ax .ax-id-libTable { table-layout: fixed; }
.match-ax thead { position: static; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.match-ax th { position: static; cursor: default; }
.match-ax .c-idx { width: 30px; } .match-ax .c-bpm { width: 62px; } .match-ax .c-key { width: 48px; } .match-ax .c-time { width: 48px; } .match-ax .c-artist { width: 32%; }
.match-ax td { text-overflow: clip; }
.match-ax tr.ax-trk { cursor: default; }
.match-ax .t { all: unset; color: var(--txt); font-weight: 400; cursor: pointer; white-space: nowrap; overflow: hidden; min-width: 0; flex: 0 1 auto; }
@media (hover: hover) { .match-ax .t:hover { text-decoration: underline; text-underline-offset: .2em; } }
.match-ax .t:focus-visible { outline: 2px solid var(--white); outline-offset: 1px; border-radius: 2px; }
.match-ax tr.ax-trk.master td { background: rgba(255, 255, 255, .075); }
.match-ax tr.ax-trk.master td:first-child { box-shadow: inset 3px 0 0 var(--acc); }
.match-ax tr.ax-trk.master .t { font-weight: 700; color: #fff; }
/* (the rows change colour smoothly when you change them, but not when the piece first lights them up as it loads) */
.match-ax.lit td, .match-ax.lit .ax-kc, .match-ax.lit .ax-bpmv { transition: background-color .2s, color .2s, border-color .2s; }
.match-ax:not(.lit) td, .match-ax:not(.lit) .ax-kc, .match-ax:not(.lit) .ax-bpmv { transition: none; }
.key-ax, .match-ax { --ax-w: 640; }
/* (each frame's zoom is worked out here as frames.js works it out, so the page has its full length from the first
   layout, before any script has run: the room over the app's own width, rounded down to the step that keeps an app
   pixel a whole number of device pixels, between 0.5 and 2; the platter's from its panel's width. A reload or a link to
   a section then lands at once: when only home.js sized them, the frames grew 316 px after the browser had placed the
   page, so a reload came back off its place, and a page opened at its end shifted as they grew. frames.js still sets
   each zoom, to the same value, and keeps it as the window changes; a browser that can't divide one length by another
   here waits for it, as before) */
.appframe, .piece-jog { container-type: inline-size; }
.appframe > .ax { --ax-r: calc(100cqw / (var(--ax-w) * 1px)); zoom: clamp(0.5, max(round(down, var(--ax-r), 0.25), min(var(--ax-r), 1)), 2); }
.spin-ax { --ax-j: min(300px, 100cqw + 2 * clamp(16px, 2vw, 22px) - 38px); zoom: max(1, round(down, var(--ax-j) / 110px, 0.25)); }
@media (pointer: coarse) { .spin-ax { --ax-j: min(240px, 100cqw + 2 * clamp(16px, 2vw, 22px) - 38px); } }
@media (min-resolution: 2dppx) {
  .appframe > .ax { zoom: clamp(0.5, max(round(down, var(--ax-r), 0.5), min(var(--ax-r), 1)), 2); }
  .spin-ax { zoom: max(1, round(down, var(--ax-j) / 110px, 0.5)); }
}
@media (max-width: 759px) {
  .key-ax { --ax-w: 300; }
  .match-ax { --ax-w: 320; }
  .key-ax .ax-padwrap { display: none; }
  .key-ax .ax-deck { height: 210px; }
  .key-ax .ax-fpane[data-pane="play"] .ax-chip:not([data-lock]) { display: none; }
  .match-ax .c-artist, .match-ax td.ax-cel, .match-ax .c-time, .match-ax td.ax-tm { display: none; }
}

/* NOTES: a white gel pen's words and arrows beside what can be played (assets/hand.js): each on a canvas of its own
   the size of its ink, over the page's empty places, never taking a press */
canvas.pen-note { position: absolute; z-index: 3; pointer-events: none; }
.notes-measuring .rv { transform: none !important; transition: none !important; }

/* (no block here skips its drawing while it's off the screen, content-visibility: its stand-in size is never its real
   one, so a link to a section, a shared link and a reload all landed in the wrong place, and its paint containment cut
   the questions' focus rings off. It saved nothing measurable: the review of 9 November) */

/* MOTION (assets/motion.js): blocks that start below the window fade in and rise into place as you scroll to them,
   each once and as a whole; the strip over a section draws across; and one line on the page is written out. Only the
   script hides anything, and a block that's in keeps nothing of its fade-in. Printed, or with less motion asked for,
   everything just shows */
.rv { opacity: 0; transform: translateY(14px); }
/* (kept short: while a fade-in overlaps a canvas that's drawing, the browser updates it on the page's main thread every
   frame, not just on the compositor, so the shorter it is, the better) */
.rv.rv-in { opacity: 1; transform: none; transition: opacity .42s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0ms), transform .42s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0ms); }
/* (only the line draws across; its glow is there from the start) */
.band.rv-line::before { transform: scaleX(0); }
.band.rv-line.rv-in::before { transform: none; transition: transform .55s cubic-bezier(.65, 0, .35, 1); }
/* (no fade: a block that was already in view as the page opened, or one the keyboard or a link takes you to) */
.rv-now, .rv-now::before, .rv-now::after { transition: none !important; }
/* (the line that writes itself out: its words in the page all along, shown by a mask that sweeps across them) */
@property --wr { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
.write.rv { opacity: 1; transform: none; --wr: 0%; -webkit-mask: linear-gradient(90deg, #000 calc(var(--wr) - 12%), transparent var(--wr)); mask: linear-gradient(90deg, #000 calc(var(--wr) - 12%), transparent var(--wr)); }
.write.rv.rv-in { --wr: 112%; transition: --wr .75s cubic-bezier(.45, .05, .25, 1) .05s; }
@media print { .rv, .rv.rv-in { opacity: 1 !important; transform: none !important; -webkit-mask: none !important; mask: none !important; } .band.rv-line::before { transform: none !important; } canvas.pen-note { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .mark { transition: none; }
  [data-piece]:not(.ready) canvas { animation: none !important; background-position: 50% 0; }
  .nav::after { animation-duration: auto !important; }
  .rv { opacity: 1 !important; transform: none !important; -webkit-mask: none !important; mask: none !important; }
}
