/* Noiseless design system.
   One idea runs through everything: noise that settles into a clean line, and one clean line per sound.
   Colour always means a sound (voice blue, music amber, other sounds green, noise grey); everything else is ink on
   paper. Controls are capsules, surfaces are soft rectangles, and things settle into place instead of jumping. */

/* ---------- 0. the two typefaces, served from this site (fonts/, SIL Open Font License): nothing loads from other
   companies (the privacy page says so) ---------- */
@font-face { font-family: "Instrument Serif"; src: url("/fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans.ttf") format("truetype"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* ---------- 1. tokens ---------- */
/* colour: dark only, as the app (Sep, 28 Oct 2026: "I only want to have dark mode"): one warm family (OKLCH hue 85,
   almost no chroma), warm off-white ink on a near-black paper. The sound colours are the families' own dark ones from
   pieces/sound-colors.js: vivid, the way Apple's system colours are, and apart from each other also to colour-blind
   eyes; noise is grey on purpose, and every sound also has its own icon. */
:root {
  --paper: #0F0E0C; --sheet: #171613; --ink: #EFECE8; --ink-2: #B6B4AF; --ink-3: #87847F; --line: #262522; --line-2: #373532;
  --hover: rgba(239, 236, 232, .05); --ghost: rgba(239, 236, 232, .09); --press: rgba(239, 236, 232, .09); --shade: rgba(0, 0, 0, .55);
  --voice: #379bfe; --music: #c17a07; --surroundings: #069885; --noise: #c2bdb5; --error: #EE6F61;   /* = pieces/sound-colors.js (dark) */
  --band: #181715; --glass: color-mix(in srgb, var(--paper) 86%, transparent);
  /* type: two typefaces, as in the app (apple/UnmixedAudio/App/Design.swift): Instrument Serif for titles, Instrument
     Sans for everything else. --f-small is the small type (labels, times, percentages), the same Sans; where its numbers
     change as you play or drag, the rule adds font-variant-numeric: tabular-nums, so the digits keep one width */
  --f-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-small: var(--f-sans);
  /* space and shape */
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --content: 1120px;
  --r-s: 10px; --r-m: 16px; --r-l: 24px; --r-xl: 40px; --r-pill: 999px;
  --shadow-1: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent), 0 10px 30px -16px var(--shade);
  --shadow-2: 0 2px 6px color-mix(in srgb, var(--ink) 6%, transparent), 0 30px 70px -30px var(--shade);
  /* motion: things settle. --settle lands without a bounce (arrivals, moves); --spring overshoots a little (things you
     press or pick up); --ease for quick colour and opacity changes */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --settle: linear(0, 0.0565, 0.1816, 0.3296, 0.4743, 0.6026, 0.7093, 0.7941, 0.8588, 0.9067, 0.9409, 0.9646, 0.9804, 0.9906, 0.9968, 1.0004, 1.0022, 1.0029, 1.0029, 1.0027, 1.0023, 1.0018, 1.0014, 1.0011, 1);
  --spring: linear(0, 0.0575, 0.1946, 0.3677, 0.5451, 0.7063, 0.84, 0.9419, 1.0128, 1.0564, 1.0781, 1.0835, 1.078, 1.0662, 1.0516, 1.0369, 1.0235, 1.0126, 1.0043, 0.9986, 0.9951, 0.9934, 0.993, 0.9935, 0.9946, 0.9958, 0.997, 0.9981, 0.999, 0.9997, 1);
  --t-quick: .16s; --t-base: .26s; --t-slow: .5s; --t-story: .9s;
  --head: 288px;
  color-scheme: dark;
}
/* a band a step lighter than the page (the examples band) */
.on-dark {
  --paper: #161512; --sheet: #1E1D1A; --ink: #EFECE8; --ink-2: #B6B4AF; --ink-3: #8C8984; --line: #2C2B27; --line-2: #3B3935;
  --hover: rgba(239, 236, 232, .06); --ghost: rgba(239, 236, 232, .09); --press: rgba(239, 236, 232, .1); --shade: rgba(0, 0, 0, .6);
  --voice: #379bfe; --music: #c17a07; --surroundings: #069885; --noise: #c2bdb5;
  color: var(--ink); color-scheme: dark;
}

/* ---------- 2. base ---------- */
* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--f-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1; -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in srgb, var(--voice) 30%, transparent); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
svg { flex: none; }
a { color: inherit; }
main { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 88px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type: a serif voice for what we say, a sans for what you do, mono for small facts */
.display { font: 400 clamp(46px, 7.6vw, 94px)/0.98 var(--f-serif); letter-spacing: -0.022em; text-wrap: balance; }
.display em { display: block; font-style: italic; }
.display-2 { font: 400 clamp(38px, 5.2vw, 66px)/1.02 var(--f-serif); letter-spacing: -0.018em; text-wrap: balance; }
.display-2 em { font-style: italic; }
.lede { color: var(--ink-2); font-size: clamp(16px, 1.55vw, 18.5px); line-height: 1.5; max-width: 42ch; text-wrap: balance; }
.section-lede { color: var(--ink-2); font-size: 17px; line-height: 1.5; max-width: 46ch; text-wrap: balance; }
.eyebrow, .label-sm { font: 500 11.5px/1 var(--f-small); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.error { color: var(--error); font-size: 14px; margin-top: 14px; }

/* entrance: everything settles into place, one after the other */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }
.screen:not([hidden]) .rise { animation: rise .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 80ms); }

/* ---------- 3. components ---------- */
/* buttons: capsules. Ink for the one thing to do, outlined for the rest, quiet for small extras. Every button with words
   is one height, as the app's (Design.swift: 40, 44 where it is touched; its sides half that, its words 15) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; font-weight: 500; font-size: 15px; white-space: nowrap;
  text-decoration: none; user-select: none; -webkit-user-select: none;
  transition: background .15s, opacity .15s, border-color .15s, color .15s, transform .2s var(--ease), box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { background: var(--hover); border-color: var(--ink-3); }
.btn:active { transform: scale(.97); }
.btn.quiet { border-color: transparent; color: var(--ink-2); padding: 0 12px; }
.btn.quiet:hover { color: var(--ink); background: var(--hover); }
.btn.large { height: 54px; font-size: 16px; padding: 0 28px; }
.btn.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.btn:disabled { opacity: .55; cursor: progress; }
@media (pointer: coarse) { .btn { height: 44px; } }
:is(.btn, .ab button, .play, .chip, .solo, .marks button, .layers-toggle, .menu button, .ex, .file a, .nav-link, .brand, summary):focus-visible,
input[type=range]:focus-visible, [role="slider"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* a sound's glyph: its colour and its own shape, so colour is never the only cue */
/* a sound family's icon (the same 3D-built icons as the result's sounds), in its colour */
.glyph { display: inline-block; width: 17px; height: 17px; flex: none; background: var(--c, var(--ink)); -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }
.glyph.voice { --c: var(--voice); --g: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M8.5%2C3.5c.5%2C0%20.9%2C.1%201.4%2C.1c.7%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c.1%2C-.2%20.2%2C-.4%20.3%2C-.5c.1%2C-.1%20.2%2C-.3%20.2%2C-.4c.1%2C-.2%20-.4%2C-.4%20-.4%2C-.6c0%2C-.1%20.1%2C-.2%20.1%2C-.2c.1%2C-.1%20.4%2C-.1%20.5%2C-.2c.1%2C-.1%20.1%2C-.2%20.1%2C-.2c0%2C0%20.3%2C0%20.4%2C.1zM12.1%2C16.9c0%2C.1%200%2C.1%200%2C.2c0%2C.3%200%2C.6%200%2C1c0%2C.5%20.1%2C1%20.2%2C1.4c0%2C.2%20.1%2C.4%200%2C.6c0%2C0%20-.1%2C.1%20-.1%2C.1c-.1%2C.1%20-.3%2C.1%20-.4%2C.2c-.1%2C0%20-.4%2C.2%20-.5%2C.2c-.2%2C0%20-.2%2C-.2%20-.2%2C-.3c-.1%2C-.3%20-.1%2C-.6%20-.1%2C-.9c-.1%2C-.5%20-.1%2C-.9%20-.1%2C-1.4c0%2C-.2%200%2C-.4%20.1%2C-.6c.1%2C-.1%20.3%2C-.2%20.4%2C-.2c.2%2C-.1%20.8%2C-.2%20.8%2C-.1z%27%2F%3E%3C%2Fsvg%3E"); }
.glyph.music { --c: var(--music); --g: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M18.5%2C2.1c.1%2C.3%200%2C.7%200%2C1c0%2C1.4%200%2C2.7%200%2C4.1c0%2C2.2%200%2C4.3%200%2C6.4c0%2C.5%200%2C1%200%2C1.5c0%2C.1%20.1%2C.4%20-.1%2C.5c-.1%2C0%20-.2%2C.1%20-.2%2C0c0%2C0%200%2C-.1%20-.1%2C-.2c0%2C0%20-.1%2C0%20-.2%2C-.1c-.1%2C-.1%200%2C-.3%200%2C-.5c0%2C-.3%200%2C-.7%200%2C-1.1c0%2C-2.2%200%2C-4.3%200%2C-6.5c0%2C-.6%200%2C-1.2%200%2C-1.8c0%2C-.1%200%2C-.3%200%2C-.4c0%2C0%200%2C-.1%200%2C-.1c-.2%2C0%20-.6%2C.1%20-.8%2C.2c-.5%2C.1%20-1%2C.2%20-1.5%2C.3c-1.4%2C.4%20-2.8%2C.6%20-4.2%2C1c-.2%2C0%20-.5%2C.1%20-.6%2C.1c-.1%2C0%20-.1%2C-.1%20-.2%2C-.1c0%2C0%20-.1%2C-.1%20-.2%2C-.1c-.1%2C0%20-.2%2C0%20-.3%2C.1c-.3%2C.1%20-.6%2C.1%20-.7%2C.4c0%2C.2%200%2C.6%200%2C.8c0%2C.6%200%2C1.2%200%2C1.8c0%2C2%200%2C4%200%2C6c0%2C.7%200%2C1.4%200%2C2c0%2C.2%200%2C.7%20-.3%2C.5c-.1%2C0%200%2C-.1%20-.1%2C-.2c0%2C0%20-.1%2C0%20-.2%2C-.1c-.1%2C-.1%20-.1%2C-.4%20-.1%2C-.6c0%2C-.6%200%2C-1.2%200%2C-1.8c0%2C-2.7%200%2C-5.4%200%2C-8c0%2C-.7%200%2C-1.5%200%2C-2.2c0%2C-.2%200%2C-.4%200%2C-.5c0%2C0%200%2C-.2%20.1%2C-.2c.1%2C-.1%20.2%2C-.1%20.4%2C-.1c.2%2C0%20.3%2C-.1%20.5%2C-.1c.2%2C0%20.5%2C-.1%20.7%2C-.2c.4%2C-.1%20.7%2C-.1%201.1%2C-.2c1.4%2C-.4%202.9%2C-.6%204.4%2C-1c.7%2C-.2%201.4%2C-.3%202.1%2C-.5c.2%2C-.1%20.7%2C-.2%20.7%2C-.1zM15.2%2C16c.1%2C0%20.2%2C-.1%20.3%2C-.1c.2%2C0%20.5%2C-.1%20.7%2C0c.3%2C.1%20.6%2C.1%20.9%2C.2c.2%2C.1%20.4%2C.3%20.7%2C.3c0%2C0%20.1%2C0%20.1%2C0c.1%2C0%20.1%2C0%20.2%2C-.1c0%2C0%200%2C-.1%20.1%2C-.2c.1%2C-.1%20.2%2C-.1%20.3%2C0c.1%2C0%20.1%2C.2%20.1%2C.3c0%2C.2%200%2C.4%200%2C.6c0%2C.2%20.2%2C.4%20.3%2C.5c.2%2C.4%20.2%2C1%20-.1%2C1.3c-.1%2C.1%20-.2%2C.2%20-.4%2C.3c-.1%2C0%20-.2%2C.1%20-.2%2C.1c-.1%2C.1%20-.1%2C.3%20-.3%2C.4c-.3%2C.1%20-.6%2C0%20-.9%2C0c-.8%2C-.1%20-1.5%2C-.5%20-2%2C-1.1c-.2%2C-.2%20-.3%2C-.4%20-.4%2C-.6c-.3%2C-.6%20-.4%2C-1.2%200%2C-1.8c.1%2C-.1%20.6%2C-.2%20.7%2C-.2zM6.1%2C18.3c.1%2C0%20.3%2C-.1%20.4%2C-.1c.3%2C0%20.6%2C0%20.9%2C0c.3%2C0%20.5%2C.1%20.8%2C.2c.2%2C.1%20.4%2C.3%20.6%2C.3c0%2C0%20.1%2C0%20.1%2C0c0%2C0%20.1%2C0%20.1%2C-.1c0%2C0%200%2C-.1%20.1%2C-.2c.1%2C-.1%20.2%2C-.1%20.3%2C0c.1%2C.1%20.1%2C.2%20.1%2C.3c0%2C.2%200%2C.5%200%2C.7c.1%2C.2%20.2%2C.4%20.3%2C.5c.2%2C.4%20.2%2C.9%20-.1%2C1.3c-.1%2C.1%20-.2%2C.2%20-.3%2C.3c-.1%2C0%20-.1%2C.1%20-.2%2C.1c-.1%2C.1%20-.1%2C.3%20-.1%2C.3c-.1%2C.1%20-.2%2C.1%20-.4%2C.1c-.3%2C0%20-.5%2C0%20-.8%2C0c-1%2C-.1%20-2.2%2C-.9%20-2.5%2C-1.9c-.2%2C-.5%20-.2%2C-1.1%20.2%2C-1.6c.1%2C-.1%20.6%2C-.1%20.7%2C-.1z%27%2F%3E%3C%2Fsvg%3E"); }
.glyph.surroundings { --c: var(--surroundings); --g: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd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%3E%3C%2Fsvg%3E"); }
.glyph.noise { --c: var(--noise); --g: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M13.6%2C6.9c.2%2C.1%20.5%2C.1%20.6%2C.2c0%2C0%20.1%2C.1%20.1%2C.1c.1%2C.2%20.1%2C.5%20.1%2C.7c.1%2C.3%20.2%2C.7%20.2%2C1c.2%2C.9%20.4%2C1.8%20.5%2C2.8c.1%2C.4%20.1%2C.7%20.2%2C1.1c0%2C.1%200%2C.2%200%2C.2c0%2C0%200%2C.1%200%2C.1c0%2C0%20.1%2C-.2%20.1%2C-.2c.1%2C-.2%20.2%2C-.5%20.2%2C-.7c.1%2C-.5%20.3%2C-.9%20.4%2C-1.4c.1%2C-.2%20.1%2C-.5%20.2%2C-.6c0%2C0%20.1%2C0%20.1%2C0c.1%2C0%20.2%2C-.1%20.4%2C-.1c.1%2C0%20.3%2C-.1%20.4%2C-.1c.2%2C0%20.2%2C.1%20.2%2C.3c.1%2C.2%20.1%2C.5%20.2%2C.7c.3%2C1%20.4%2C2%20.7%2C3c.1%2C.3%20.2%2C.7%20.2%2C.9c0%2C.1%200%2C.2%20.1%2C.3c0%2C0%200%2C0%200%2C0c0%2C0%200%2C0%200%2C0c0%2C-.1%20.1%2C-.2%20.1%2C-.2c.1%2C-.3%20.2%2C-.6%20.2%2C-.9c.2%2C-.7%20.4%2C-1.3%20.5%2C-2c.1%2C-.2%20.1%2C-.4%20.2%2C-.6c0%2C-.1%200%2C-.2%20.1%2C-.2c0%2C0%20.2%2C-.1%20.2%2C-.1c.1%2C0%20.5%2C-.2%20.6%2C-.2c.1%2C0%20.3%2C.2%20.4%2C.3c.3%2C.3%20.6%2C.6%201%2C.8c.1%2C.1%20.3%2C.2%20.2%2C.4c-.1%2C.2%20-.2%2C.3%20-.4%2C.4c0%2C.1%20-.1%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3%2C.7c.1%2C.2%20.2%2C.5%20.3%2C.7c0%2C0%20.1%2C.2%20.1%2C.2c.1%2C-.1%20.1%2C-.2%20.1%2C-.3c.1%2C-.2%20.1%2C-.5%20.2%2C-.7c.2%2C-.9%20.4%2C-1.8%20.7%2C-2.7c.1%2C-.3%20.1%2C-.6%20.2%2C-.8c.1%2C-.2%20.4%2C-.4%20.5%2C-.4z%27%2F%3E%3C%2Fsvg%3E"); }
.glyphs { display: inline-flex; gap: 6px; align-items: center; }

/* the older swatches (the result screen still uses them) */
.sw { width: 14px; height: 14px; border-radius: 3px; flex: none; display: inline-block; }
.sw.voice { background: var(--voice); }
.sw.music { background: repeating-linear-gradient(90deg, var(--music) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--music); }
.sw.surroundings { background: repeating-linear-gradient(135deg, var(--surroundings) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px var(--surroundings); }
.sw.noise { background-image: radial-gradient(var(--noise) 0.9px, transparent 1.1px); background-size: 4px 4px; box-shadow: inset 0 0 0 1px var(--noise); }

/* a small capsule for facts: a length, a kind of file, what is in it */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line); font: 500 12px/1 var(--f-sans); color: var(--ink-2); white-space: nowrap; }
.tag.mono { font: 500 11.5px/1 var(--f-small); }
.tag svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* ---------- 4. shell ---------- */
/* the bar: just its words, clear at the top of the page; once you scroll, on a see-through fade (Sep picked it on
   lab/nav.html, 27 Oct 2026): behind the words the page blurs, most at the top and less and less below them until it is
   the page again (four blurs, each fading out a little lower), under a faint tint of the page that fades the same way,
   so the words always read. It stays as you scroll */
.nav { position: sticky; top: 0; z-index: 40; padding: 12px var(--gutter) 0; pointer-events: none; }
.nav-fade { position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 48px); z-index: -1; pointer-events: none; }
.nav-fade i, .nav-fade::after { opacity: 0; transition: opacity .45s var(--ease); }   /* each layer by itself: a parent fading would cut the blur off from the page */
.nav.scrolled .nav-fade i, .nav.scrolled .nav-fade::after { opacity: 1; }
.nav-fade i { position: absolute; inset: 0; }
.nav-fade i:nth-child(1) { -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); -webkit-mask: linear-gradient(#000 52%, transparent 100%); mask: linear-gradient(#000 52%, transparent 100%); }
.nav-fade i:nth-child(2) { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); -webkit-mask: linear-gradient(#000 38%, transparent 82%); mask: linear-gradient(#000 38%, transparent 82%); }
.nav-fade i:nth-child(3) { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); -webkit-mask: linear-gradient(#000 24%, transparent 64%); mask: linear-gradient(#000 24%, transparent 64%); }
.nav-fade i:nth-child(4) { -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3); -webkit-mask: linear-gradient(#000 8%, transparent 46%); mask: linear-gradient(#000 8%, transparent 46%); }
.nav-fade::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(color-mix(in srgb, var(--paper) 70%, transparent), color-mix(in srgb, var(--paper) 44%, transparent) 38%, color-mix(in srgb, var(--paper) 14%, transparent) 70%, transparent); }
.nav-inner {
  pointer-events: auto; max-width: calc(var(--content) + 20px); margin: 0 auto; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 8px 0 10px; border-radius: var(--r-pill); border: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s;
}
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; border-radius: var(--r-pill); padding: 6px 10px; margin-left: -2px; }
.brand span { font: 600 18px/1 var(--f-sans); letter-spacing: -0.02em; white-space: nowrap; }
.mark-svg { overflow: visible; }
.mark-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mark-bar { width: 34px; height: auto; }
.nav-end { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--r-pill); color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--ink); background: var(--hover); }
.nav-cta { margin-left: 6px; }
/* over a dark band of the homepage: the dark theme's colours, whatever the page's (home/index.js sets it) */
/* over a dark band of the homepage (home/index.js sets .over-dark): the bar takes the dark theme's look, as a fade. Its
   colours ease over; its backing crossfades from the page's to a dark one as wide as the band (home.css .band) */
.nav.over-dark { --ink: #EFECE8; --ink-2: #B6B4AF; --ink-3: #87847F; --hover: rgba(239, 236, 232, .05); }
.nav-fade::before { content: ""; position: absolute; inset: 0 12px; opacity: 0; transition: opacity .5s var(--ease);
  background: linear-gradient(rgba(15, 14, 12, .7), rgba(15, 14, 12, .44) 38%, rgba(15, 14, 12, .14) 70%, transparent); }
.nav.scrolled.over-dark .nav-fade::before { opacity: 1; }
.nav.scrolled.over-dark .nav-fade::after { opacity: 0; }
.nav-fade::after { transition: opacity .5s var(--ease); }
.brand { transition: color .5s var(--ease); }
.mark-bar stop { transition: stop-color .5s var(--ease); }
.nav .nav-link { transition: color .5s var(--ease), background .15s; }
.nav .nav-cta { transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .2s var(--ease), box-shadow .2s; }
.nav.over-dark .nav-cta { color: #0F0E0C; }
@media (max-width: 719px) { .nav-fade::before { inset: 0 8px; } }
body:not(.on-start) :is(.nav-link, .nav-cta) { display: none; }
.result-mode .nav-inner { max-width: calc(var(--content) + 20px); }

/* a thin line along the top while a finished file opens */
.topline { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.topline i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, .08)); transition: transform .35s var(--ease); }

/* a file dragged over the page: the whole window takes it */
.veil { position: fixed; inset: 10px; z-index: 50; pointer-events: none; border: 1.5px dashed var(--ink-3); border-radius: 26px; animation: fade .2s both; }

/* ---------- 5. start ---------- */
/* the homepage has its own sheet: home/home.css */

/* ---------- 6. working ---------- */
/* the screen while a file is split sits in the middle of the window, its picture (and a video's) the centre of it */
.working { max-width: 760px; margin: 0 auto; min-height: calc(100svh - 170px); display: flex; flex-direction: column; justify-content: center; padding-top: clamp(16px, 4vh, 40px); }
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.work-stage { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .25; } }
.working.done .pulse { animation: none; }
.working.failed .pulse { animation: none; background: var(--error); }
.working:is(.done, .failed) #work-cancel { visibility: hidden; }
.work-name { view-transition-name: title; font: 400 clamp(34px, 5.2vw, 60px)/1.02 var(--f-serif); letter-spacing: -.022em; margin-top: 16px; overflow-wrap: anywhere; text-wrap: balance; min-height: 1.02em; text-align: center; }
/* fewer words while a file is split (the rules on /lab/rules.html): the title, the picture, one word for the step */
.work-meta, .work-detail { display: none; }
/* a video's picture while it is split: the result's video box, ready to glide into it */
.work-media { --max-h: min(40vh, 380px); position: relative; width: min(100%, calc(var(--max-h) * var(--vw, 16) / var(--vh, 9))); aspect-ratio: var(--vw, 16) / var(--vh, 9);
  margin: 30px auto 0; border-radius: var(--r-m); overflow: hidden; background: color-mix(in srgb, var(--ink) 7%, var(--paper)); view-transition-name: video; }
.work-media video { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.work-media video.ready { opacity: 1; }
.work-visual { position: relative; height: 220px; margin: 32px 0; view-transition-name: wave; }
.working.has-media .work-visual { height: 140px; margin: 22px 0 26px; }
.work-visual canvas, .work-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.settle path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* the four steps, each with its own bar */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.step { position: relative; padding-top: 14px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); transition: color .4s; }
.step::before, .step::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; border-radius: 2px; }
.step::before { right: 0; background: var(--line); }
.step::after { width: calc(var(--fill, 0) * 100%); background: var(--ink); transition: width .5s var(--ease); }
.step.active, .step.done { color: var(--ink); }
.step.done::after { width: 100%; }
.step.done b::after { content: ""; display: inline-block; width: 8px; height: 4px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); opacity: .7; }
.step b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* the bars carry it; the words stay for screen readers */
.step { padding-top: 0; height: 2px; }
.work-detail { margin-top: 18px; font-size: 15px; color: var(--ink); min-height: 22px; }
.work-detail.swap { animation: rise .45s var(--ease) both; }
.hint { color: var(--ink-3); font-size: 13px; margin-top: 6px; min-height: 19px; }
.work-error { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; padding: 14px 14px 14px 22px; border-radius: var(--r-l); background: var(--sheet); border: 1px solid color-mix(in srgb, var(--error) 40%, var(--line)); animation: rise .4s var(--ease) both; }
.work-error-text { font-size: 14.5px; color: var(--ink); max-width: 56ch; }
.working.failed .work-visual { opacity: .35; transition: opacity .4s; }
.working.failed :is(.stepper, .work-detail, .hint) { display: none; }

/* moving between the screens */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: var(--ease); }
::view-transition-group(wave), ::view-transition-group(title), ::view-transition-group(video) { animation-duration: .65s; animation-timing-function: var(--ease); }
/* the title keeps its shape while it glides (the old and new words cross-fade in place) */
::view-transition-old(title), ::view-transition-new(title) { height: 100%; width: auto; animation-duration: .5s; }
::view-transition-old(wave), ::view-transition-new(wave) { height: 100%; animation-duration: .65s; }

/* ---------- 7. small screens ---------- */
@media (max-width: 760px) {
  .nav-link { display: none !important; }
}

/* the design switch in the bar (prototype): three ways to see and touch the same sounds */
.views { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--sheet); border: 1px solid var(--line); }
.views button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; height: 32px; padding: 0 14px 0 12px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 500; color: var(--ink-3); cursor: pointer; transition: background .15s, color .15s; }
.views button:hover { color: var(--ink); }
.views button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.views button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vi { width: 14px; height: 14px; display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.vi-mixer { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='0' y='1' width='14' height='2.4' rx='1'/%3E%3Crect x='0' y='5.8' width='9' height='2.4' rx='1'/%3E%3Crect x='0' y='10.6' width='11.5' height='2.4' rx='1'/%3E%3C/svg%3E"); }
.vi-board { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='0' y='5' width='3.6' height='9' rx='1'/%3E%3Crect x='5.2' y='1' width='3.6' height='13' rx='1'/%3E%3Crect x='10.4' y='8' width='3.6' height='6' rx='1'/%3E%3C/svg%3E"); }
.vi-stage { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6' fill='none' stroke='black' stroke-width='1.4'/%3E%3Ccircle cx='7' cy='7' r='1.8'/%3E%3Ccircle cx='11' cy='3.6' r='1.6'/%3E%3Ccircle cx='3' cy='9.5' r='1.3'/%3E%3C/svg%3E"); }

/* 3. result: shared by every view. The file and what we found, the download, the transport, the scrubber */
.result { padding-top: 6px; }
.res-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: end; margin-bottom: 22px; }
.res-head.has-video { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
.video-box { background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.video-box video { display: block; width: 100%; height: 100%; object-fit: contain; }
.res-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.res-name { font: 400 clamp(28px, 3.6vw, 40px)/1.1 var(--f-serif); overflow-wrap: anywhere; }
.res-meta { font: 400 12.5px/1 var(--f-small); color: var(--ink-3); }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 15px; margin-top: 4px; }
.verdict .v-main { font: 400 20px/1.2 var(--f-serif); margin-right: 2px; }
.verdict .v-item { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); cursor: default; }
.verdict .v-item.warn { color: var(--ink); }
.verdict .v-item.warn::before { content: ""; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid currentColor; }
.chip { border: 1px solid var(--line-2); background: transparent; border-radius: 6px; padding: 1px 6px; font: 500 12px/1.4 var(--f-small); cursor: pointer; color: var(--ink); transition: background .15s, border-color .15s; }
.chip:hover { background: var(--hover); border-color: var(--ink-3); }
.res-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.export-note { font-size: 12.5px; color: var(--ink-3); }
.grow { flex: 1 1 auto; }
.sheet { background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; }
.keys { font: 400 11.5px/1.4 var(--f-small); color: var(--ink-3); margin-top: 12px; }
@media (hover: none) { .keys { display: none; } }

/* the download button, with the other formats and the loudness one click away */
.split { position: relative; display: inline-flex; }
.split > .btn:first-child { border-radius: var(--r-pill) 0 0 var(--r-pill); padding-right: 14px; }
.split .more { border-radius: 0 var(--r-pill) var(--r-pill) 0; padding: 0 12px 0 10px; border-left: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); }
.split .more svg { transition: transform .2s var(--ease); }
.split .more[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: 280px; padding: 6px; border-radius: 12px;
  background: var(--sheet); border: 1px solid var(--line-2); box-shadow: 0 12px 32px var(--shade); transform-origin: top left; animation: pop .18s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu-label { font: 500 11.5px/1 var(--f-small); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 10px 10px 6px; }
.menu button { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.menu button b { font-weight: 500; font-size: 14px; }
.menu button span { font-size: 12px; color: var(--ink-3); }
.menu button:hover { background: var(--hover); }
.menu button[aria-checked="true"] b::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin: 0 8px 1px 0; }
.menu button[role="menuitemradio"]:not([aria-checked="true"]) b { padding-left: 14px; }

/* transport pieces */
.play { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .15s var(--ease), background .15s, color .15s; }
.play:hover { background: var(--hover); }
.play.on { background: var(--press); }
.play:active { transform: scale(.94); }
.play svg { width: 20px; height: 20px; fill: currentColor; }
.play.big { width: 54px; height: 54px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.play.big:hover { opacity: .9; background: var(--ink); }
.play.big svg { width: 22px; height: 22px; }
.time { font: 500 14px/1 var(--f-small); font-variant-numeric: tabular-nums; min-width: 98px; white-space: nowrap; }
.time i { font-style: normal; color: var(--ink-3); }
/* hold to compare: the one way to hear the original, always at the same loudness as your mix */
.cmp { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: background .15s, color .15s, border-color .15s, transform .15s var(--ease); flex: none; }
.cmp svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cmp svg .fill { fill: currentColor; stroke: none; transition: transform .35s var(--ease); transform-origin: 12px 12px; }
.cmp b { font-weight: 500; font-size: 14px; }
.cmp span { font-size: 12px; color: var(--ink-3); }
.cmp:hover { background: var(--hover); }
.cmp:active { transform: scale(.97); }
.cmp[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cmp[aria-pressed="true"] span { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.cmp[aria-pressed="true"] svg .fill { transform: rotate(180deg); }
.state-note { font-size: 12.5px; color: var(--ink-3); transition: color .2s; }
/* the player that floats at the bottom of a result: play, the time, hold for the original */
.dock { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 8px; border-radius: var(--r-pill); background: var(--sheet); border: 1px solid var(--line); box-shadow: var(--shadow-2); animation: dock-in .6s var(--ease) both; animation-delay: .3s; }
@keyframes dock-in { from { opacity: 0; transform: translate(-50%, 14px); } }
.dock .play { width: 44px; height: 44px; }
.dock .time { min-width: 90px; }
@media (max-width: 520px) { .dock { gap: 8px; } .dock .cmp span { display: none; } }
.state-note.alert { color: var(--ink); font-weight: 500; }
.reset svg { width: 15px; height: 15px; }
:is(.btn, .play, .chip, .cmp, .menu button):focus-visible, input[type=range]:focus-visible, [role="slider"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* the scrubber: the whole file as the stacked mix, click or drag to move through it */
.scrub { position: relative; height: var(--h, 44px); min-width: 0; flex: 1 1 auto; cursor: pointer; touch-action: none; border-radius: 8px; }
.scrub canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ph { position: absolute; top: 0; bottom: 0; left: 0; width: 1.5px; background: var(--ink); pointer-events: none; will-change: transform; }
.hover { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--ink-3); opacity: 0; pointer-events: none; transition: opacity .15s; }
.hl { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: color-mix(in srgb, var(--ink) 6%, transparent); border-left: 1px solid var(--ink-3); border-right: 1px solid var(--ink-3); opacity: 0; pointer-events: none; transition: opacity .2s; }
.hl.on { opacity: 1; }
.tip { position: absolute; top: 2px; transform: translateX(-50%); font: 500 11px/1 var(--f-small); font-variant-numeric: tabular-nums; background: var(--ink); color: var(--paper); padding: 4px 6px; border-radius: 4px; pointer-events: none; z-index: 4; white-space: nowrap; }
.scrub .tip { top: -22px; }

/* level sliders: 0 to 200 %, the fill shows how much of the sound you hear */
input[type=range] { -webkit-appearance: none; appearance: none; height: 20px; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--ink) 0 var(--fill, 50%), var(--line-2) var(--fill, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--sheet); margin-top: -5px; border: 1.5px solid var(--ink); transition: transform .15s var(--ease); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }
input[type=range]::-moz-range-track { height: 3px; border-radius: 3px; background: var(--line-2); }
input[type=range]::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--ink); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--sheet); border: 1.5px solid var(--ink); }
input[type=range]:disabled { opacity: .3; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 30; animation: toastIn .35s var(--ease); box-shadow: 0 10px 30px var(--shade); }
/* a page opened with ?silent (for testing) says so, with one click to hear it again */
.silent-note { position: fixed; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 8px 10px; border-radius: var(--r-pill); background: var(--sheet); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); color: var(--ink-3); font: 500 11.5px/1 var(--f-small); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.silent-note svg { width: 15px; height: 15px; fill: currentColor; }
.silent-note .x { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.silent-note b { color: var(--ink); font-weight: 500; }
.silent-note:hover { border-color: var(--ink-3); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

@media (max-width: 760px) {
  .res-head, .res-head.has-video { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body:not(.on-start) .nav-inner { flex-wrap: wrap; height: auto; min-height: 56px; row-gap: 6px; padding: 8px 8px 8px 10px; border-radius: var(--r-l); }
  .views { order: 3; width: 100%; justify-content: stretch; }
  .views button { flex: 1 1 0; justify-content: center; }
  .cmp span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* the Apple logo at the start of Get the app */
.btn .apple { width: auto; height: 1.05em; margin: -0.18em -0.12em 0 -0.12em; fill: currentColor; stroke: none; flex: none; }

/* Apple's symbols (icons/sf.js; Sep, 29 Oct 2026: Apple's icons everywhere): filled shapes in the colour of the text
   around them, whatever an older rule says about lines. Drawn 28/24 of a point size, they are the app's at that size */
svg.sf { fill: currentColor !important; stroke: none !important; }
svg.sf path { fill: inherit !important; stroke: none !important; }
