/* afflatoaudio.com, the homepage. The plugin's own materials opened up for a browser window: a jersey knit
   underneath everything (woven by knit.js), modules sewn onto it with the plugin's running stitch, soft rubber keys
   lit from the upper left, and dark glass in a housing for anything that shows sound, in both finishes. Cream
   first; dark when a visitor picks it. Every material value is the Lab's own (ui/style.css, ui/lab.css on
   consort-v1), so the site and the plugin are one object. */

@font-face { font-family: "Activate"; src: url("../fonts/Activate-Regular.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Afflato Wind"; src: url("../fonts/AfflatoWind-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Afflato Wind"; src: url("../fonts/AfflatoWind-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Afflato Wind"; src: url("../fonts/AfflatoWind-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Afflato UI"; src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Afflato UI"; src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* Four roles, each one variable below: the name (--font-logo) is Activate, the founder's mark, and stays; headings
   (--font-display) are Afflato Wind, Afflato's own face (brand/afflato-wind); sentences (--font) and numbers
   and details (--mono) are being chosen. */
@font-face { font-family: "Albert Sans"; src: url("../fonts/AlbertSans-Roman.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/AlbertSans-Italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

/* ---------------------------------------------------------------------------------------------------------
   The two finishes. */
:root {
  color-scheme: light;
  --ground: #efe6da;
  --ground-glow: #f8f2e9;
  --text: #1e1915;
  --muted: #655949;
  --line: #d6c9b7;
  /* Headings are drawn a touch lighter on dark grounds, where light letters read heavier than dark ones do. */
  --display-weight: 600;
  --line-strong: #b4a590;
  --bar: #e8dfd1;
  --bar-edge: #d4c6b3;
  --well: #e1d6c6;
  --panel-a: #f6f0e7;
  --panel-b: #ece3d6;
  --face-1: #f9f4ed;
  --face-2: #f1e9de;
  --face-3: #e7ddd0;
  --hi: 255, 255, 255;
  --hi-k: 16;
  --sh: 104, 80, 56;
  --sh-k: 0.42;
  --thread: rgba(146, 100, 50, 0.5);
  --thread-glow: rgba(255, 255, 255, 0.5);
  --st-thread: #b48d5c;
  --st-gloss: rgba(255, 242, 220, 0.8);
  --st-hole: rgba(84, 58, 34, 0.5);
  --st-cast: rgba(70, 46, 24, 0.3);
  --st-pull: rgba(104, 80, 56, 0.07);
  --st-lip: rgba(255, 255, 255, 0.5);
  --module-a: rgba(248, 243, 236, 0.76);
  --module-b: rgba(239, 231, 221, 0.84);
  --housing: rgba(229, 220, 207, 0.97);
  --housing-top: rgba(246, 240, 232, 0.97);
  --groove: #dcd0bf;
  --signal: #457638;
  --clip: #a52a1d;
  --sheen: 0.32;
  /* The plugin's four hues, as they draw on cream. */
  --clean: #ad4e28;
  --shape: #8f6210;
  --space: #1f7491;
  --drone: #6c4fbf;
  /* The one key that is the page's own action: espresso rubber on cream. */
  --ink-a: #3b332c;
  --ink-b: #231d18;
  --ink-c: #17120f;
  --ink-text: #f3ebe0;

  --font: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Afflato Wind", "Albert Sans", sans-serif;
  --mono: "Afflato UI", ui-monospace, Menlo, monospace;
  --font-logo: "Activate", sans-serif;
  --edge: clamp(20px, 5.6vw, 104px);
  --seam: clamp(12px, 1.1vw, 18px);
  --mod-pad: clamp(28px, 3.4vw, 56px);
  /* How far content sits from any stitch, the module's own or a seam's: the module's inset less the stitch's 6px, and
     never under 30px. */
  --clear: max(30px, calc(var(--mod-pad) - 6px));
  /* The space between modules follows the window's height, but a tall narrow window (a tablet held upright) gets no
     more than a desktop does. */
  --section: clamp(120px, min(17vh, 16vw), 210px);
  --wide: clamp(1200px, 70vw, 1380px);
  /* One split for every section that sets words beside a picture, so the pictures share one left edge down the page.
     The words never go narrower than 360px, as wide as the longest point (the drone's), so no title or point breaks
     onto a line of a word or two. */
  --cols: minmax(360px, 0.8fr) minmax(0, 1.2fr);
  --cols-flip: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  --col-gap: clamp(36px, 4.4vw, 72px);
  /* A fine leather grain, laid over the rubber and leather surfaces. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.42  0 0 0 0 0.34  0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --display-weight: 560;
  --ground: #161210;
  --ground-glow: #1f1a15;
  --text: #efe6da;
  --muted: #a39683;
  --line: #2f2822;
  --line-strong: #4a4037;
  --bar: #120f0c;
  --bar-edge: #0a0807;
  --well: #0d0a08;
  --panel-a: #28211c;
  --panel-b: #1e1915;
  --face-1: #2e2722;
  --face-2: #27211c;
  --face-3: #221d19;
  --hi: 255, 236, 214;
  --hi-k: 1;
  --sh: 0, 0, 0;
  --sh-k: 1;
  --thread: rgba(222, 182, 126, 0.42);
  --thread-glow: rgba(222, 182, 126, 0.10);
  --st-thread: #9d7a4b;
  --st-gloss: rgba(242, 214, 166, 0.55);
  --st-hole: rgba(0, 0, 0, 0.62);
  --st-cast: rgba(0, 0, 0, 0.55);
  --st-pull: rgba(0, 0, 0, 0.18);
  --st-lip: rgba(255, 236, 214, 0.045);
  --module-a: rgba(37, 31, 26, 0.72);
  --module-b: rgba(27, 23, 19, 0.80);
  --housing: rgba(37, 31, 26, 0.94);
  --housing-top: rgba(50, 43, 36, 0.94);
  --groove: #0f0c0a;
  --signal: #a9c79a;
  --clip: #ff453a;
  --sheen: 0.05;
  --clean: #f08c62;
  --shape: #ecb661;
  --space: #72c3de;
  --drone: #b49df0;
  --ink-a: #fbf6ef;
  --ink-b: #efe6da;
  --ink-c: #e2d6c6;
  --ink-text: #1e1915;
}

/* The band sewn in from the other finish: dark cloth on the cream page, cream on the dark. Its colours are the other
   finish's, so everything on it (keys, glows, stitches) is drawn in that finish. */
:root:not([data-theme="dark"]) .flip {
  color-scheme: dark;
  --display-weight: 560;
  --ground: #161210;
  --ground-glow: #1f1a15;
  --text: #efe6da;
  --muted: #a39683;
  --line: #2f2822;
  --line-strong: #4a4037;
  --bar: #120f0c;
  --bar-edge: #0a0807;
  --well: #0d0a08;
  --panel-a: #28211c;
  --panel-b: #1e1915;
  --face-1: #2e2722;
  --face-2: #27211c;
  --face-3: #221d19;
  --hi: 255, 236, 214;
  --hi-k: 1;
  --sh: 0, 0, 0;
  --sh-k: 1;
  --thread: rgba(222, 182, 126, 0.42);
  --thread-glow: rgba(222, 182, 126, 0.10);
  --st-thread: #9d7a4b;
  --st-gloss: rgba(242, 214, 166, 0.55);
  --st-hole: rgba(0, 0, 0, 0.62);
  --st-cast: rgba(0, 0, 0, 0.55);
  --st-pull: rgba(0, 0, 0, 0.18);
  --st-lip: rgba(255, 236, 214, 0.045);
  --module-a: rgba(37, 31, 26, 0.72);
  --module-b: rgba(27, 23, 19, 0.80);
  --housing: rgba(37, 31, 26, 0.94);
  --housing-top: rgba(50, 43, 36, 0.94);
  --groove: #0f0c0a;
  --signal: #a9c79a;
  --clip: #ff453a;
  --sheen: 0.05;
  --clean: #f08c62;
  --shape: #ecb661;
  --space: #72c3de;
  --drone: #b49df0;
  --ink-a: #fbf6ef;
  --ink-b: #efe6da;
  --ink-c: #e2d6c6;
  --ink-text: #1e1915;
}
:root[data-theme="dark"] .flip {
  color-scheme: light;
  --display-weight: 600;
  --ground: #efe6da;
  --ground-glow: #f8f2e9;
  --text: #1e1915;
  --muted: #655949;
  --line: #d6c9b7;
  --line-strong: #b4a590;
  --bar: #e8dfd1;
  --bar-edge: #d4c6b3;
  --well: #e1d6c6;
  --panel-a: #f6f0e7;
  --panel-b: #ece3d6;
  --face-1: #f9f4ed;
  --face-2: #f1e9de;
  --face-3: #e7ddd0;
  --hi: 255, 255, 255;
  --hi-k: 16;
  --sh: 104, 80, 56;
  --sh-k: 0.42;
  --thread: rgba(146, 100, 50, 0.5);
  --thread-glow: rgba(255, 255, 255, 0.5);
  --st-thread: #b48d5c;
  --st-gloss: rgba(255, 242, 220, 0.8);
  --st-hole: rgba(84, 58, 34, 0.5);
  --st-cast: rgba(70, 46, 24, 0.3);
  --st-pull: rgba(104, 80, 56, 0.07);
  --st-lip: rgba(255, 255, 255, 0.5);
  --module-a: rgba(248, 243, 236, 0.76);
  --module-b: rgba(239, 231, 221, 0.84);
  --housing: rgba(229, 220, 207, 0.97);
  --housing-top: rgba(246, 240, 232, 0.97);
  --groove: #dcd0bf;
  --signal: #457638;
  --clip: #a52a1d;
  --sheen: 0.32;
  --clean: #ad4e28;
  --shape: #8f6210;
  --space: #1f7491;
  --drone: #6c4fbf;
  --ink-a: #3b332c;
  --ink-b: #231d18;
  --ink-c: #17120f;
  --ink-text: #f3ebe0;
}

/* ---------------------------------------------------------------------------------------------------------
   The page. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  background:
    var(--knit-tile, none) 0 0 / var(--knit-w, 120px) var(--knit-h, 120px),
    radial-gradient(120% 70% at 50% 0%, var(--ground-glow) 0%, transparent 60%),
    var(--ground);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--signal) 30%, transparent); }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--text) 70%, transparent); outline-offset: 3px; }
/* Text links: the ring hugs the words and rounds off, as the keys' rings follow theirs. The nav keeps the 3px offset,
   clear of the bar's stitch. The name's tab hangs from the top of the window, which would cut a ring outside it, so
   its ring goes inside, between its edge and its stitching, and follows its own rounded foot. */
.bar-nav a:focus-visible { border-radius: 6px; }
.foot-cols a:focus-visible, .footer .foot-up:focus-visible { border-radius: 6px; outline-offset: 4px; }
.bar-tab:focus-visible { outline-offset: -5px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--panel-a); text-decoration: none; }
.skip:focus { top: 12px; }

:root[data-theme="light"] .for-dark,
:root[data-theme="dark"] .for-light { display: none !important; }

/* Type: Activate for the name alone, the heading face for the big lines,
   Albert Sans for every sentence and name, and the plugin's monospace only where the plugin itself would use it:
   module titles, labels, keys, readouts and times. */
.label, .time, .step-n, .key, .seg button, .bar-nav a, .bar-soon, .player-words b, .player-words > span,
.transport, .lane-head, .chip, .mini-status, .mini-chip, .mini-legend, .mk-name, .mk-value, .mfx b, .cc, .drag-key,
.lab-note, .screen-note, .screen-breath, .talk-key, .talk-flute, .under-side, .glass-legend,
.module-title, .group-title, .fx-name, .spec-list dt, .status { font-family: var(--mono); }
.wordmark { font-family: var(--font-logo); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.label {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.display, .heading { font-family: var(--font-display); font-weight: var(--display-weight, 600); font-synthesis: none; font-kerning: normal; }
.display {
  margin: 0;
  font-size: clamp(42px, 5.5vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.heading {
  margin: 0;
  font-size: clamp(40px, 3.15vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.body {
  margin: 0;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
  letter-spacing: -0.012em;
  color: color-mix(in srgb, var(--text) 55%, var(--muted));
  text-wrap: pretty;
}
.lede {
  margin: 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.018em;
  color: color-mix(in srgb, var(--text) 72%, var(--muted));
  text-wrap: pretty;
}
.caption { margin: 0; font-size: 15px; line-height: 1.6; letter-spacing: -0.006em; color: color-mix(in srgb, var(--text) 35%, var(--muted)); text-wrap: pretty; }
.time { margin: 0; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
/* The running time a step brighter than the length after it; the length stays plain muted, so both read. */
.time > span:first-child { color: color-mix(in srgb, var(--text) 35%, var(--muted)); }


section { padding: var(--section) var(--edge) 0; }

/* ---------------------------------------------------------------------------------------------------------
   Materials, the plugin's. */

/* A module, as the plugin makes one: smoked rubber over the knit (the cloth shows through, blurred), a seat where
   its edge meets the cloth (a tight contact shadow, a wider one for its weight, the cloth pinched dark round it),
   a thin welt of piping, a lit top lip, and a running stitch in saddle tan 6px in, faintly lit on its upper edge
   as thread is. */
.module {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: var(--mod-pad);
  border-radius: 18px;
  background:
    linear-gradient(125deg, rgba(var(--hi), calc(0.035 * var(--hi-k))) 0%, rgba(var(--hi), 0) 38%),
    linear-gradient(180deg, var(--module-a), var(--module-b));
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  backdrop-filter: blur(14px) saturate(115%);
  box-shadow:
    0 0 0 1px rgba(var(--sh), calc(0.62 * var(--sh-k))),
    0 0 0 3px rgba(var(--hi), calc(0.035 * var(--hi-k))),
    0 0 0 4px rgba(var(--sh), calc(0.34 * var(--sh-k))),
    0 2px 3px 3px rgba(var(--sh), calc(0.38 * var(--sh-k))),
    0 10px 16px -2px rgba(var(--sh), calc(0.5 * var(--sh-k))),
    0 26px 34px -14px rgba(var(--sh), calc(0.75 * var(--sh-k))),
    inset 0 1.5px 0 rgba(var(--hi), calc(0.09 * var(--hi-k))),
    inset 0 0 0 1px rgba(var(--hi), calc(0.03 * var(--hi-k))),
    inset 0 -10px 18px -10px rgba(var(--sh), calc(0.4 * var(--sh-k)));
}
.module::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 13px;
  border: 1.2px dashed var(--thread);
  pointer-events: none;
  filter: drop-shadow(0 1px 0 var(--thread-glow));
}

/* As a module arrives its stitch sews itself round, from the top, clockwise; once, never again. And where the
   pointer is, a little light glances off the rubber, as it would off a real panel under a lamp. */
@property --sew { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
@property --glance { syntax: "<number>"; inherits: true; initial-value: 0; }
/* Where the page's script runs, every row of stitching is real thread (stitch.js) and the dashed borders below are
   only the fallback. */
.js .module::after,
.js .bar-tab::after, .js .stage-tab::after, .js .loupe::after { display: none; }
.stitches { position: absolute; left: 0; top: 0; z-index: 2; overflow: visible; pointer-events: none; }
.stitches path { fill: none; }
.st-pull { stroke: var(--st-pull); stroke-width: 2.2; }
.st-lip { stroke: var(--st-lip); stroke-width: 0.7; transform: translateY(1.2px); }
.st-hole { stroke: var(--st-hole); stroke-width: 1.24; stroke-linecap: round; }
.st-cast { stroke: var(--st-cast); stroke-width: 1.3; stroke-linecap: round; transform: translate(0.3px, 0.5px); }
.st-thread { stroke: var(--st-thread); stroke-width: 1.25; stroke-linecap: round; }
.st-gloss { stroke: var(--st-gloss); stroke-width: 0.45; stroke-linecap: round; transform: translate(-0.2px, -0.3px); }
.js .module > .stitches {
  -webkit-mask-image: conic-gradient(from -90deg at 50% 50%, #000 var(--sew), transparent var(--sew));
  mask-image: conic-gradient(from -90deg at 50% 50%, #000 var(--sew), transparent var(--sew));
}
.js .module:not(.sewn) > .stitches { --sew: 0deg; }
.js .module.sewn > .stitches { transition: --sew 1.8s cubic-bezier(0.65, 0, 0.3, 1) var(--sew-delay, 0s); }
.module.lit { --glance: 1; }
/* The rubber's tone falls from its lit top to its foot over its first 900px and then holds, so a tall module (the held
   ones run past 2,400px) is shaded as a short one is. Over it a dither of single-shade specks, too fine to see, so the
   blurred cloth under so wide a field doesn't settle into patches and bands where the screen rounds its shades. */
.module {
  --dither: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAMFBMVEWAdmyAdmyAdmyAdmyAdmwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALgrm4AAAABXRSTlMAAQIDBFUTImAAAAHnSURBVHjaBcHtb9JAHADg+90htDi4thB5C6WAAcFtAltM9MMC8/9elhnjF5NBMmXLUmhpdAWlvWsVKAs9n4egnqsVyUdriJorhJUygEZ5fSxOA1YFjX/Lk7ye9nTWRT9keBQ7wyaFyoYelb608+uOsE8lHQazc4EsBUyfZIy7Ywcu0Y3I4P4VRU1vYWT+Ekd4ylnperDYtnhdUikZQTn7FdV9j+gLT5Us4rx4agqnbXWKqb1bXFIycrjwk8vBzz3aB2l1QajyRLvSPE4wQIaUvYezWWOmch0r4FFkzc9hJGxiHaMJGR64zU9sGPl3ApQTEY5j2qS2QhIlyGQl7G6N34VU5HLsoT8NWzeF7ysGaBojLzdvrxpWL8ELYrKZovfQhzgf32qeGrALn+sLUmHur5KbKpTdyEPhFMgy6NqqstS+G91VxHCb1MCTq9LDKqlumdLLBlhbaywBoyNw7IBfkwMpdeZyKko+7v5VvGgoY7J7kL3lfnppovhN2iykyIdaNEAty8CDokTvAxlGNzX7kIvxuheqM1UEBNQZ/hQl2/jZXG7jZ4W8fhUWIM9zvki09nz3DsdBVZhh8xYz3akbCDAaj3HIfGaE86qJ+hyjOLG+8EGNEcKDhmICDBmd1Oc5QamAz0b8Hx9s6t28tUcMAAAAAElFTkSuQmCC");
  transition: --glance 0.8s var(--ease);
  background-image:
    var(--dither),
    radial-gradient(560px circle at var(--mx, 50%) var(--my, -40%), rgba(var(--hi), calc(var(--sheen) * var(--glance))) 0%, rgba(var(--hi), 0) 62%),
    linear-gradient(125deg, rgba(var(--hi), calc(0.035 * var(--hi-k))) 0%, rgba(var(--hi), 0) 38%),
    linear-gradient(180deg, var(--module-a), var(--module-b) min(100%, 900px));
}

/* The housing: a screen's frame, as the plugin's Levels and Loudness pods have one. A chamfer lit along its top and
   shaded along its foot, and the glass set inside under a hood that throws a soft shadow down onto it. */
.housing {
  position: relative;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--housing-top) 0 8px, var(--housing) 8px);
  box-shadow:
    0 0 0 1px rgba(var(--sh), calc(0.5 * var(--sh-k))),
    0 18px 30px -18px rgba(var(--sh), calc(0.9 * var(--sh-k)));
}
.housing::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  box-shadow:
    inset 0 1.5px 0 rgba(var(--hi), calc(0.2 * var(--hi-k))),
    inset 1px 0 0 rgba(var(--hi), calc(0.06 * var(--hi-k))),
    inset 0 -1.5px 0 rgba(var(--sh), calc(0.55 * var(--sh-k))),
    inset 0 0 0 1px rgba(var(--sh), calc(0.45 * var(--sh-k)));
}
.housing > .glass { border-radius: 10px; }

/* Dark glass, set in a housing: the screen's material, dark in both finishes, so sound always reads. */
.glass {
  position: relative;
  border-radius: 16px;
  background: radial-gradient(130% 90% at 50% 120%, #1b1612 0%, #0f0c0a 70%);
  box-shadow:
    inset 0 14px 16px -8px rgba(0, 0, 0, 0.85),
    inset 0 3px 10px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(0, 0, 0, 0.8),
    inset 0 -1px 0 rgba(255, 236, 214, 0.05),
    0 0 0 1px rgba(255, 236, 214, 0.13),
    0 0 0 2px rgba(0, 0, 0, 0.6),
    0 2px 0 2px rgba(var(--hi), calc(min(0.06 * var(--hi-k), 0.6)));
  overflow: hidden;
}
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 70% at 18% -8%, rgba(255, 244, 228, 0.075) 0%, rgba(255, 244, 228, 0) 62%);
}
.glass .label { color: rgba(240, 230, 214, 0.6); }

/* A key: soft rubber in the surface's own tone, lifted by a wide light to the upper left and a wide shadow to the
   lower right, with a thin lit lip. Hover lifts it; a press gives under the finger; on stays raised and glows. */
.key {
  --r: 14px;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  background: linear-gradient(145deg, color-mix(in srgb, var(--face-1) 80%, rgb(var(--hi)) 20%) 0%, var(--face-2) 48%, var(--face-3) 100%);
  box-shadow:
    -8px -8px 18px rgba(var(--hi), calc(min(0.07 * var(--hi-k), 0.9))),
    9px 11px 22px rgba(var(--sh), calc(0.62 * var(--sh-k))),
    0 0 0 1px rgba(var(--sh), calc(0.3 * var(--sh-k))),
    inset 1px 1px 1px rgba(var(--hi), calc(min(0.2 * var(--hi-k), 0.95))),
    inset -1px -2px 3px rgba(var(--sh), calc(0.4 * var(--sh-k)));
  transition: transform 0.25s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.key:hover {
  box-shadow:
    -10px -10px 22px rgba(var(--hi), calc(min(0.085 * var(--hi-k), 0.95))),
    11px 14px 26px rgba(var(--sh), calc(0.7 * var(--sh-k))),
    0 0 0 1px rgba(var(--sh), calc(0.3 * var(--sh-k))),
    inset 1px 1px 1px rgba(var(--hi), calc(min(0.24 * var(--hi-k), 1))),
    inset -1px -2px 3px rgba(var(--sh), calc(0.4 * var(--sh-k)));
}
.key:active, .key.pressing {
  transform: scale(0.975);
  box-shadow:
    -4px -4px 10px rgba(var(--hi), calc(min(0.05 * var(--hi-k), 0.8))),
    5px 6px 12px rgba(var(--sh), calc(0.55 * var(--sh-k))),
    0 0 0 1px rgba(var(--sh), calc(0.3 * var(--sh-k))),
    inset 1px 1px 1px rgba(var(--hi), calc(min(0.14 * var(--hi-k), 0.8))),
    inset -1px -2px 3px rgba(var(--sh), calc(0.4 * var(--sh-k)));
}
.key.round { width: 46px; padding: 0; border-radius: 50%; }
.key.big { width: 84px; height: 84px; }
.key svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* The page's own action, the one dark (in cream) or light (in dark) key. */
.key.ink {
  color: var(--ink-text);
  background: linear-gradient(145deg, var(--ink-a) 0%, var(--ink-b) 52%, var(--ink-c) 100%);
}

/* Play: a round key with the play drawing in ink; playing, it's pressed in. */
.key.play { color: var(--text); }
.key.play .glyph { width: 34px; height: 34px; }
.key.play .play { fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.key.play .pause { display: none; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; }
.key.play[aria-pressed="true"] .play { display: none; }
.key.play[aria-pressed="true"] .pause { display: block; }
/* On, as the plugin draws a key that's on: pressed into the face, its shadows gone inside, a thin rim. */
.key.play[aria-pressed="true"], .film-cc[aria-pressed="true"] {
  background: linear-gradient(145deg, var(--face-3) 0%, var(--face-2) 55%, color-mix(in srgb, var(--face-1) 80%, rgb(var(--hi)) 20%) 100%);
  box-shadow:
    inset 4px 5px 10px rgba(var(--sh), calc(0.55 * var(--sh-k))),
    inset -3px -3px 8px rgba(var(--hi), calc(min(0.06 * var(--hi-k), 0.8))),
    0 0 0 1px rgba(var(--sh), calc(0.32 * var(--sh-k))),
    0 1px 0 rgba(var(--hi), calc(min(0.1 * var(--hi-k), 0.8)));
}

/* A segmented choice: a pressed-in well, the chosen one a raised pill (the plugin's Sound · Effects · Chords). */
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  background: var(--well);
  box-shadow:
    inset 0 1px 3px rgba(var(--sh), calc(0.5 * var(--sh-k))),
    inset 0 0 0 1px rgba(var(--sh), calc(0.14 * var(--sh-k))),
    0 1px 0 rgba(var(--hi), calc(min(0.06 * var(--hi-k), 0.8)));
}
.seg button {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.seg button:hover { color: var(--text); }
.seg [aria-checked="true"], .seg [aria-selected="true"] {
  color: var(--text);
  background: linear-gradient(160deg, color-mix(in srgb, var(--face-1) 80%, rgb(var(--hi)) 20%), var(--face-2) 60%, var(--face-3));
  box-shadow:
    0 1px 2px rgba(var(--sh), calc(0.4 * var(--sh-k))),
    0 3px 8px -2px rgba(var(--sh), calc(0.35 * var(--sh-k))),
    inset 0 1px 0 rgba(var(--hi), calc(min(0.2 * var(--hi-k), 0.9))),
    0 0 0 1px rgba(var(--sh), calc(0.18 * var(--sh-k)));
}

/* A fingertip's reach: the keys drawn under 44px (the bar's two, the small feature key) and each half of a segmented
   choice take taps over an empty layer round them, out to 44px and to the well's edge, so nothing drawn changes. */
.bar-end .key::after, .key.text-key::after { content: ""; position: absolute; inset: -2px; }
.seg button { position: relative; }
.seg button::after { content: ""; position: absolute; inset: -4px -1px; }

/* Coming in: everything rises a little and settles, slowly, as you reach it. */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s var(--ease-out) calc(var(--d, 0) * 110ms), transform 1.4s var(--ease-out) calc(var(--d, 0) * 110ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------------------------------------------
   The bar: a strip of the same hide as the plugin's, a running stitch along its foot, and the name on a tab
   hanging from its middle. */
.bar {
  --bar-pad: max(var(--edge), calc((100% - var(--wide)) / 2));
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 70px;
  padding: 0 var(--bar-pad) 6px;
  background: var(--bar);
  box-shadow: 0 1px 0 var(--bar-edge), 0 2px 0 rgba(var(--hi), calc(min(0.07 * var(--hi-k), 0.6))), 0 10px 24px -14px rgba(var(--sh), calc(0.6 * var(--sh-k)));
}
.bar::before, .bar::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: calc(50% - 104px);
  height: 6px;
  background: var(--stitch-x, repeating-linear-gradient(90deg, var(--thread) 0 4px, transparent 4px 8px)) 0 0 / 7px 6px repeat-x;
  background-repeat: round no-repeat;
  pointer-events: none;
}
.bar::before { left: 18px; width: calc(50% - 122px); }
.bar::after { right: 18px; width: calc(50% - 122px); }
.bar-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
/* One status lamp for the bar, the hero and Availability: a green lens seated like the page's other lamps (.step-lamp,
   .track-lamp) with a glint on its dome. Unlit it was Coming soon; .lit (Out now) lights it like .track.playing .track-lamp. */
.bar-soon i, .status-dot {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 52%), color-mix(in srgb, var(--signal) 42%, var(--well));
  box-shadow:
    inset 0 1px 2px rgba(var(--sh), calc(0.7 * var(--sh-k))),
    inset 0 -1px 1px color-mix(in srgb, var(--signal) 30%, transparent),
    0 1px 0 rgba(var(--hi), calc(min(0.12 * var(--hi-k), 0.8)));
}
.lit > i, .lit > .status-dot {
  background-color: var(--signal);
  box-shadow:
    inset 0 1px 2px transparent,
    inset 0 -1px 1px transparent,
    0 0 0 3px color-mix(in srgb, var(--signal) 16%, transparent),
    0 0 8px color-mix(in srgb, var(--signal) 50%, transparent);
}
.bar-tab {
  grid-column: 2;
  position: relative;
  align-self: start;
  display: grid;
  place-items: center;
  width: 196px;
  height: 98px;
  margin-bottom: -34px;
  text-decoration: none;
  color: var(--text);
  border-radius: 0 0 20px 20px;
  background: linear-gradient(180deg, var(--bar) 0%, color-mix(in srgb, var(--bar) 92%, rgb(var(--sh))) 100%);
  box-shadow:
    0 2px 0 rgba(var(--hi), calc(min(0.07 * var(--hi-k), 0.6))),
    0 0 0 1px var(--bar-edge),
    0 14px 26px -10px rgba(var(--sh), calc(0.6 * var(--sh-k))),
    inset 0 -1px 0 rgba(var(--hi), calc(min(0.1 * var(--hi-k), 0.7)));
  clip-path: inset(0 -40px -60px -40px);
}
.bar-tab::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; top: -2px; bottom: 9px;
  border: 1.2px dashed var(--thread);
  border-top: 0;
  border-radius: 0 0 13px 13px;
  filter: drop-shadow(0 1px 0 var(--thread-glow));
}
/* Once the page moves, the tab draws itself up a little, so less of the page is under it. It still hangs: its stitch
   runs 12px under the bar's. */
.bar-tab { transform-origin: 50% 0; transition: transform 0.5s var(--ease); }
.bar.scrolled .bar-tab { transform: scale(0.86); }
.bar-tab .wordmark {
  margin-top: 8px;
  font-size: 34px;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(var(--hi), calc(min(0.5 * var(--hi-k), 0.9))), 0 -1px 0 rgba(var(--sh), calc(0.25 * var(--sh-k)));
}
.bar-end, .bar-nav { display: flex; align-items: center; }
.bar-nav { grid-column: 1; grid-row: 1; justify-self: start; gap: clamp(18px, 2.2vw, 34px); }
.bar-nav a { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color 0.3s; }
.bar-nav a:hover { color: var(--text); }
.bar-nav a { position: relative; padding: 6px 0; }
.bar-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0.2em; bottom: 1px;
  height: 6px;
  background: var(--stitch-x, repeating-linear-gradient(90deg, var(--thread) 0 4px, transparent 4px 8px)) 0 0 / 7px 6px repeat-x;
  background-repeat: round no-repeat;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
}
.bar-nav a[aria-current="true"] { color: var(--text); }
.bar-nav a[aria-current="true"]::after { transform: none; }
.bar-end { grid-column: 3; grid-row: 1; justify-self: end; gap: 14px; }
.bar-end .bar-soon { margin-right: clamp(4px, 1.4vw, 18px); }
.bar-end .key { height: 40px; }
.bar-end .key.round { width: 40px; }
.bar-join { padding: 0 18px; }
.theme-key .moon { display: none; }
:root[data-theme="dark"] .theme-key .sun { display: none; }
:root[data-theme="dark"] .theme-key .moon { display: block; }

@keyframes breathe { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---------------------------------------------------------------------------------------------------------
   Inside a module: its title centred at the top in small tracked capitals, as the plugin titles CLEAN and SPACE
   (only modules that are a working part of Afflato carry one); a head with the line on the left and its words on
   the right, a seam sewn between them; and the knit between modules a narrow seam of cloth. */
.module-title {
  margin: 0 0 clamp(30px, 3.2vw, 48px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text);
  opacity: 0.86;
}
.module:has(> .module-title) { padding-top: 24px; }

/* Words on the bare knit (the few short labels that sit there) get the plugin's halo of the ground's own colour. */
.on-knit { text-shadow: 0 0 3px var(--ground), 0 0 7px var(--ground), 0 0 12px var(--ground); }

/* A screen's readouts sit on the glass, as the note does on the plugin's: the two figures level along its top, each
   named by the legend at its foot, in the same column; their units smaller and dimmer, and never under 12px. */
.screen-note, .screen-breath { position: absolute; top: clamp(16px, 1.8vw, 26px); margin: 0; pointer-events: none; transition: opacity 0.4s var(--ease); }
.screen-note { left: clamp(18px, 2vw, 28px); display: flex; align-items: baseline; gap: 0.2em; font-size: clamp(24px, 2vw, 32px); font-weight: 500; letter-spacing: -0.02em; color: rgba(240, 230, 214, 0.92); }
.screen-note sub { font-size: max(12px, 0.42em); font-weight: 400; color: rgba(240, 230, 214, 0.7); vertical-align: baseline; }
.screen-note span { margin-left: 0.9em; font-size: 12px; font-weight: 400; letter-spacing: 0.02em; color: rgba(240, 230, 214, 0.6); }
.screen-breath { right: clamp(18px, 2vw, 28px); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.screen-breath b { font-size: clamp(24px, 2vw, 32px); font-weight: 500; letter-spacing: -0.02em; color: rgb(240, 140, 98); }
.screen-breath small { margin-left: 0.15em; font-size: max(12px, 0.42em); font-weight: 400; color: rgba(240, 140, 98, 0.7); }

/* ---------------------------------------------------------------------------------------------------------
   The page's parts, as a product's site has them: a small tracked line above a section's heading (the plugin's
   monospace), headings that sit on the knit with the cloth fading away behind them so they read, and everything
   longer than a line inside a module. */
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.feature-title { margin: 0; font-family: var(--font); font-size: clamp(24px, 2vw, 30px); font-weight: 500; line-height: 1.15; letter-spacing: -0.022em; text-wrap: balance; }

/* ---------------------------------------------------------------------------------------------------------
   Each section is one object: a module with its heading in a top band and its content under a sewn seam. Every
   heading is the same size in the same place, so the page reads in one order: what the section is, then what it
   shows. Where a section has a piece of hardware it's aluminium, set into the module, and it does something. */
.section-mod { max-width: var(--wide); margin: 0 auto; }
.band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: clamp(28px, 4vw, 72px); padding-bottom: var(--clear); }
.band-words { max-width: 46em; }
.band .heading { margin: 0; text-wrap: balance; }
.band .body { max-width: 52ch; margin: 16px 0 0; }
.band + * { margin-top: var(--clear); }
/* The seam: a row of stitching right across the module, from its own stitch on one side to the other. */
.band::after, .seam-top::before {
  content: "";
  position: absolute;
  left: calc(6px - var(--mod-pad)); right: calc(6px - var(--mod-pad));
  height: 6px;
  background: var(--stitch-x, linear-gradient(var(--thread), var(--thread)) 0 50% / 100% 1.2px no-repeat) 0 0 / 7px 6px repeat-x;
  pointer-events: none;
}
.band::after { bottom: -3px; }
.seam-top { position: relative; }
.seam-top::before { top: -3px; }
.seam-left { position: relative; }
/* A seam down between two cells: it starts a stitch's gap under the seam across and stops a gap short of the module's
   own stitching, spaced so only whole stitches fit and neither end runs into the other. */
.seam-left::before {
  content: "";
  position: absolute;
  top: 3px; bottom: calc(8px - var(--mod-pad)); left: -3px;
  width: 6px;
  background: var(--stitch-y, linear-gradient(var(--thread), var(--thread)) 50% 0 / 1.2px 100% no-repeat) 0 0 / 6px 7px no-repeat space;
  pointer-events: none;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Aluminium, as in the references: bead blasted and very lightly brushed (--metal-tile, woven by home/metal.js),
   its colour nearly flat with a soft fall of light across it, a diamond-cut chamfer round its edge catching the
   light, and a hair of shadow where it's set into the module. */
.metal {
  --al-a: #ece7e0; --al-b: #dcd5cb;
  position: relative;
  background:
    var(--metal-tile, none),
    radial-gradient(150% 130% at 28% -10%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, var(--al-a), var(--al-b));
  box-shadow:
    inset 0 1.25px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(96, 82, 68, 0.16),
    0 0 0 1px rgba(96, 80, 64, 0.3),
    0 1.5px 0 1px rgba(64, 54, 46, 0.55),
    0 2.5px 0 1px rgba(255, 255, 255, 0.35),
    0 2px 3px rgba(96, 80, 64, 0.22),
    0 10px 18px -10px rgba(96, 80, 64, 0.45);
}
:root[data-theme="dark"] .metal, :root:not([data-theme="dark"]) .flip .metal {
  --al-a: #4c4742; --al-b: #38342f;
  background:
    var(--metal-tile, none),
    radial-gradient(150% 130% at 28% -10%, rgba(255, 240, 222, 0.1) 0%, rgba(255, 240, 222, 0) 58%),
    linear-gradient(180deg, var(--al-a), var(--al-b));
  box-shadow:
    inset 0 1.25px 0 rgba(255, 240, 222, 0.32),
    inset 0 0 0 1px rgba(255, 240, 222, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 8px 16px -10px rgba(0, 0, 0, 0.7);
}

/* The hardware in a band, the speaker and the rating plate, is one height and sits on the band's top, level with
   the eyebrow. */
.band > .perf, .band > .rating-plate { align-self: start; }

/* Listen's speaker: a field of perforations punched through the module, full size through its middle and shrinking
   to pinpoints toward its edges (home/metal.js lays them out and draws each hole's walls), a cavity behind them (deep
   brown under the cream face so each hole's shadow shows, near black under the dark one) and a warm light in it that
   rises with whatever is playing, brighter than the face at its core and blooming just past the holes. */
.perf { position: relative; width: clamp(280px, 30vw, 400px); height: 140px; --cavity: #342a22; --bloom: 0.28; }
:root[data-theme="dark"] .perf { --cavity: #050403; --bloom: 0.36; }
.perf-light, .perf-rims { position: absolute; inset: 0; width: 100%; height: 100%; }
.perf-light {
  background:
    radial-gradient(55% 80% at 50% 56%,
      rgba(255, 244, 226, calc(0.05 + 0.95 * var(--level, 0))) 0%,
      rgba(255, 196, 132, calc(0.75 * var(--level, 0))) 42%,
      rgba(255, 186, 136, 0) 76%),
    var(--cavity);
  -webkit-mask: var(--perf-mask, none) 0 0 / 100% 100% no-repeat;
  mask: var(--perf-mask, none) 0 0 / 100% 100% no-repeat;
}
.perf::after {
  content: ""; position: absolute; inset: -10px; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 50%, rgba(255, 220, 180, calc(var(--bloom) * var(--level, 0))), rgba(255, 220, 180, 0) 72%);
  filter: blur(10px);
  mix-blend-mode: plus-lighter;
}

/* Specs' rating plate: aluminium screwed onto the module, the name and the formats engraved on it, and a field of
   fine lines cut on the diagonal (home/metal.js draws the lines and the screws). The engraving is inset as far as
   Availability's words are in the column under the plate, so the two share one left edge. */
.rating-plate { container: plate / inline-size; width: var(--plate-w); height: 140px; border-radius: 22px; padding: 26px var(--clear); display: flex; flex-direction: column; justify-content: center; }
.plate-lines { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
.plate-name, .plate-text { position: relative; width: fit-content; margin: 0; color: #5c544b; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 -0.5px 0 rgba(84, 72, 60, 0.35); }
.plate-name { font-family: var(--font-logo); font-size: 22px; line-height: 1; text-transform: uppercase; }
.plate-name + .plate-text { margin-top: 12px; }
.plate-text { font-family: var(--mono); font-size: 10.5px; line-height: 1.75; letter-spacing: 0.14em; text-transform: uppercase; }
:root[data-theme="dark"] :is(.plate-name, .plate-text) { color: #b3aaa0; text-shadow: 0 1px 0 rgba(255, 240, 222, 0.08), 0 -0.5px 0 rgba(0, 0, 0, 0.7); }
/* Since Windows the plate carries four lines (the name, the formats, the systems, where it's designed), so they sit a
   little closer on every plate to keep clear of the screws, and the engraved field keeps its room at the right. The
   width asked about is inside the plate's inset, about 300px on the widest plate. */
@container plate (max-width: 339px) {
  .plate-name + .plate-text { margin-top: 9px; }
  .plate-text { line-height: 1.6; }
}

/* ---------------------------------------------------------------------------------------------------------
   The hero: one module, what it is beside the plugin itself, alive, and the facts along its foot under a seam. */
.hero { padding-top: clamp(48px, 6vh, 72px); }
.hero-mod { max-width: var(--wide); margin: 0 auto; }
/* One column, as a product page leads: the line and what it does, centred over the plugin at its full width. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(44px, 4.6vw, 72px);
  text-align: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1160px; }
.hero-actions, .hero-meta { justify-content: center; }
.hero-product { width: 100%; max-width: 1040px; }
.hero .display { position: relative; align-self: stretch; margin: 0; font-size: clamp(44px, 6.2vw, 100px); letter-spacing: -0.03em; text-wrap: balance; }
/* Once the breathing line is drawn over it, the words stay for reading aloud and selecting, and are not painted twice. */
.hero .display.breathing { color: transparent; }
.breath-line { position: absolute; pointer-events: none; }
/* The full stop hangs past the line, so the words themselves sit centred, and keeps its full clearance from the
   letter before it however tight the line is set. */
.display .hang { margin-left: 0.03em; margin-right: -0.205em; }
.hero .lede { max-width: 62ch; margin: 30px auto 0; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.hero-actions .key { height: 50px; }
/* The ink key is the page's own action: its neighbour's upper-left light must not land on it. */
.hero-actions .key.ink { z-index: 1; }
.listen-key { padding: 0 22px 0 16px; }
.listen-key .glyph { width: 22px; height: 22px; }
.listen-key .play { fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.listen-key .pause { display: none; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; }
.listen-key[aria-pressed="true"] .play { display: none; }
.listen-key[aria-pressed="true"] .pause { display: block; }
/* Playing, it's on as the player's round keys are when the same take plays: pressed into the face, a thin rim. */
.listen-key[aria-pressed="true"] {
  background: linear-gradient(145deg, var(--face-3) 0%, var(--face-2) 55%, color-mix(in srgb, var(--face-1) 80%, rgb(var(--hi)) 20%) 100%);
  box-shadow:
    inset 4px 5px 10px rgba(var(--sh), calc(0.55 * var(--sh-k))),
    inset -3px -3px 8px rgba(var(--hi), calc(min(0.06 * var(--hi-k), 0.8))),
    0 0 0 1px rgba(var(--sh), calc(0.32 * var(--sh-k))),
    0 1px 0 rgba(var(--hi), calc(min(0.1 * var(--hi-k), 0.8)));
}
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 26px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.meta-status { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }
/* The column is a container, so the switch under the picture can know the picture's width (100cqw). */
.hero-product { --views-drop: 26px; min-width: 0; display: flex; flex-direction: column; align-items: center; container-type: inline-size; }
.hero-product .lab-stage { width: 100%; }
/* The switch and its caption are positioned so they come after the picture: its long shadow passes under them
   instead of over them, and the well stays the well. */
.hero-product .views { position: relative; margin-top: var(--views-drop); }
/* In cream the well lies in that long shadow as the hide round it does, so a share of the same shadow, cast from the
   picture's own place, is let into the well and clipped to it: half on the floor under the keys, and a lighter share
   over them, as a raised key sits clear of the well's walls. Its ink darkens with it, enough to keep 4.5:1. The dark
   well is already deeper than the shadow round it and goes without. */
.views-shade { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.views-shade::before, .views-shade::after {
  content: "";
  position: absolute;
  left: calc(50% - 50cqw);
  bottom: calc(100% + var(--views-drop));
  width: 100cqw;
  aspect-ratio: 1000 / 784;
  box-shadow: var(--lab-cast);
}
.views-shade::before { --cast: 0.5; }
.views-shade::after { --cast: 0.2; z-index: 1; }
:root:not([data-theme="dark"]) .hero-product .views [aria-selected="false"]:not(:hover) { color: color-mix(in srgb, var(--text) 20%, var(--muted)); }
:root[data-theme="dark"] .views-shade { display: none; }
.hero-product .views-caption { position: relative; max-width: 52ch; min-height: 3.2em; margin-top: 16px; text-align: center; }
/* The facts: four cells along the hero's foot, a seam across above them and between each. The row runs from the
   module's stitch on one side to the other, so the cells are equal and every fact sits one inset from its seam. */
.facts { --facts-gap: var(--clear); list-style: none; margin: var(--facts-gap) calc(6px - var(--mod-pad)) 0; padding: var(--facts-gap) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts.seam-top::before { left: 0; right: 0; }
.facts li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 12px 0 calc(var(--mod-pad) - 6px); }
/* Each seam between them starts a stitch's gap under the seam across and stops a gap short of the module's own
   stitching, as the Features pair's does, spaced so only whole stitches fit. */
.facts li + li::before { content: ""; position: absolute; left: -3px; top: calc(3px - var(--facts-gap)); bottom: calc(8px - var(--mod-pad)); width: 6px; background: var(--stitch-y, linear-gradient(var(--thread), var(--thread)) 50% 0 / 1.2px 100% no-repeat) 0 0 / 6px 7px no-repeat space; }
.facts b { font-size: clamp(19px, 1.5vw, 22px); font-weight: 500; letter-spacing: -0.02em; }
.facts span { font-size: 14.5px; line-height: 1.4; color: var(--muted); text-wrap: balance; }

/* ---------------------------------------------------------------------------------------------------------
   The film: Afflato at work in six chapters. The film is set in the plugin's dark glass, in a housing, with its keys
   under it as the player's are; beside it the plugin small, the part each chapter is about lit, over the chapters. */
.film-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 20vw, 300px); gap: var(--col-gap); align-items: start; }
.film-main { min-width: 0; }
.film-glass { aspect-ratio: 16 / 9; isolation: isolate; cursor: pointer; }
.film-scene { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #0f0c0a; }
/* Each page of the plugin is laid out the frame's width (its height runs past the frame's, so it always fills it) and
   moved over by the camera from home.js; the one being shown fades in over the last. */
.film-shot { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1000 / 784; transform-origin: 0 0; container-type: inline-size; opacity: 0; visibility: hidden; }
.film-shot img { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-field { position: absolute; pointer-events: none; }
/* The screen's field is drawn twice the size it's shown at, so the camera can come close without it softening. */
.film-source { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0f0c0a; }
/* Over the picture: the glass's own depth (its shadows sit under the picture otherwise) and a film's soft vignette. */
.film-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(130% 100% at 50% 42%, rgba(15, 12, 10, 0) 60%, rgba(15, 12, 10, 0.24) 100%);
  box-shadow:
    inset 0 14px 16px -8px rgba(0, 0, 0, 0.55),
    inset 0 3px 10px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(0, 0, 0, 0.8);
}
.film-glass::after { z-index: 1; }
/* The chapter's name on a small plate of the same dark glass, so it reads over whatever the film shows. */
.film-chapter {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 13px 8px 12px;
  border-radius: 9px;
  background: rgba(15, 12, 10, 0.62);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 0 0 1px rgba(255, 236, 214, 0.1), 0 6px 18px -8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
/* The cut film names its chapters itself, so over it the plate steps aside. */
.film-video:not([hidden]) ~ .film-chapter { display: none; }
.film-chapter span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: rgba(240, 230, 214, 0.6); }
.film-chapter b { font-size: 14px; font-weight: 500; letter-spacing: -0.005em; color: rgba(248, 240, 228, 0.96); }
.film-glass:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; }
/* Full screen keeps the whole film in view, whatever the screen's shape: its words sit near its edges. */
.film-glass:fullscreen .film-video { object-fit: contain; }
/* Captions, when they're asked for: on a plate of the plugin's dark glass, over the plugin's half of the picture so
   the film's own words, at the flute's foot, stay clear (home.js places each line). */
.film-video::cue {
  color: rgba(248, 240, 228, 0.96);
  background: rgba(15, 12, 10, 0.74);
  font: 500 clamp(12px, 1.02vw, 17px) / 1.4 var(--font, system-ui, sans-serif);
}
.film-glass:fullscreen .film-video::cue { font-size: clamp(16px, 1.6vw, 30px); }

.film-bar { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.film-bar .key.play { flex: none; width: 54px; height: 54px; }
.film-bar .key.play .glyph { width: 26px; height: 26px; }
.film-bar .key.round:not(.play) { flex: none; }
.film-bar .key[hidden] { display: none; }
.film-words { flex: none; margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.film-words b { font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; color: var(--text); }
.film-words .time { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Where you are: one groove per chapter, each as long as its chapter, filling as it plays. Before the film is
   pressed, the quiet loop's place shows in it faintly. */
.film-line { flex: 1 1 auto; min-width: 120px; height: 30px; display: flex; align-items: center; gap: 5px; border-radius: 6px; cursor: pointer; touch-action: none; outline: none; }
.film-seg { position: relative; flex: 1 1 0; height: 5px; border-radius: 3px; overflow: hidden; background: var(--well); box-shadow: inset 0 1px 2px rgba(var(--sh), calc(0.6 * var(--sh-k))), 0 1px 0 rgba(var(--hi), calc(min(0.12 * var(--hi-k), 0.8))); }
.film-seg i { position: absolute; inset: 0; border-radius: inherit; background: var(--text); transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); }
.film-line.idle .film-seg i { background: color-mix(in srgb, var(--text) 26%, transparent); }
.film-line:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--text) 70%, transparent); }
.film-sound .wave, .film-sound .cross { transition: opacity 0.2s var(--ease); }
.film-sound .cross { opacity: 0; }
.film-sound[aria-pressed="true"] .wave { opacity: 0; }
.film-sound[aria-pressed="true"] .cross { opacity: 1; }

/* The plugin small, dimmed but for the part the chapter is about: a ring of the page's lamp light glides to it. */
.film-side { min-width: 0; }
.film-map { position: relative; margin: 0 0 14px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(var(--sh), calc(0.3 * var(--sh-k))), 0 16px 28px -18px rgba(var(--sh), calc(0.75 * var(--sh-k))); }
.film-map img { display: block; width: 100%; height: auto; }
.film-spot {
  position: absolute;
  border-radius: 5px;
  pointer-events: none;
  box-shadow:
    0 0 0 1.5px var(--signal),
    0 0 12px 1px color-mix(in srgb, var(--signal) 55%, transparent),
    0 0 0 999px var(--film-dim, rgba(40, 28, 18, 0.2));
  transition: left 0.75s var(--ease), top 0.75s var(--ease), width 0.75s var(--ease), height 0.75s var(--ease), border-radius 0.75s var(--ease);
}
.film-spot.round { border-radius: 50%; }
:root[data-theme="dark"] .film-spot { --film-dim: rgba(8, 6, 4, 0.42); }
.craft-list.film-chapters button { grid-template-columns: 28px 40px minmax(0, 1fr) auto; padding: 10px 0; }
/* Beside the film, six rows end level with its keys. */
@media (min-width: 1241px) { .craft-list.film-chapters button { padding: 8px 0; } }
.film-chapters .craft-words b { display: block; }
/* A chapter's line shows while it's on, running under its time. */
.film-chapters .film-ch-line { grid-column: 3 / -1; display: block; max-height: 0; opacity: 0; overflow: hidden; font-size: 13.5px; line-height: 1.45; color: color-mix(in srgb, var(--text) 72%, var(--muted)); text-wrap: pretty; transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease), margin 0.5s var(--ease); }
.film-chapters li.on .film-ch-line { max-height: 4.5em; margin-top: 3px; opacity: 1; }
.film-ch-at { padding-left: 12px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Until the window is wide enough for six rows to end level with it, the film takes the full width. */
@media (max-width: 1240px) {
  .film-body { grid-template-columns: minmax(0, 1fr); }
  .film-side { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: var(--col-gap); align-items: center; }
  .film-map { margin: 0; }
}
/* Two rows wherever one won't hold the play key, the words, the line and three small keys: the play key with the
   words, then the line with the small keys after it (the page's order). */
@media (max-width: 760px) {
  .film-bar { flex-wrap: wrap; gap: 14px 12px; }
  .film-words { flex: 1 1 calc(100% - 66px); }
  .film-line { flex: 1 1 0; min-width: 90px; }
}
@media (max-width: 700px) {
  .film-side { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .film-chapter { top: 10px; left: 10px; padding: 6px 10px; gap: 8px; }
  .film-chapter span { font-size: 10px; }
  .film-chapter b { font-size: 13px; }
}
/* The smallest phones: the small keys come in a little so all three stay beside the line. */
@media (max-width: 360px) {
  .film-bar .key.round:not(.play) { width: 40px; height: 40px; }
  .film-line { min-width: 72px; }
}

/* ---------------------------------------------------------------------------------------------------------
   Film 1, on the band of the other finish: the film in the plugin's housing, as large as the window lets the whole
   frame and its keys show at once, the keys under it as the six-moments film has them, and its four moments as one
   strip of grooves, each as long as its moment. Upright on a phone, where the film's own 9:16 cut plays. */
.screen-main { --screen-room: 250px; --screen-w: min(100%, max(576px, calc((100svh - var(--screen-room)) * 16 / 9 + 16px))); }
.screen-housing { width: var(--screen-w); margin: 0 auto; }
.screen-glass {
  aspect-ratio: 16 / 9;
  isolation: isolate;
  cursor: pointer;
  background: #e9e1d4;
}
.screen-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #e9e1d4; }
/* The glass's own depth sits over the picture, as it does over the six-moments film. */
.screen-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 12px 16px -10px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.55);
}
.screen-glass::after { z-index: 1; }
.screen-glass:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; background: #000; }
.screen-glass:fullscreen .screen-video { object-fit: contain; background: #000; }
.screen-video::cue { color: rgba(248, 240, 228, 0.96); background: rgba(15, 12, 10, 0.74); font: 500 clamp(12px, 1.1vw, 18px) / 1.4 var(--font, system-ui, sans-serif); }
.screen-glass:fullscreen .screen-video::cue { font-size: clamp(16px, 1.6vw, 30px); }
.screen-bar { width: var(--screen-w); margin: 20px auto 0; }
.screen-gap { flex: 1 1 auto; }
.screen-how::before { content: " · "; }
.screen-how[hidden] { display: none; }
.screen-bar .film-sound, .screen-bar .film-cc, .screen-bar .film-full { flex: none; }

.screen-moments {
  list-style: none;
  width: var(--screen-w);
  margin: 18px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: 13fr 15fr 12fr 14fr;
  gap: 6px;
}
.screen-moments button {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 12px;
  row-gap: 7px;
  padding: 2px 0 6px;
  cursor: pointer;
  border-radius: 6px;
}
.screen-moments button:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--text) 70%, transparent); }
.screen-groove { grid-column: 1 / -1; position: relative; display: block; height: 5px; margin-bottom: 7px; border-radius: 3px; overflow: hidden; background: var(--well); box-shadow: inset 0 1px 2px rgba(var(--sh), calc(0.6 * var(--sh-k))), 0 1px 0 rgba(var(--hi), calc(min(0.12 * var(--hi-k), 0.8))); }
.screen-groove i { position: absolute; inset: 0; border-radius: inherit; background: var(--text); transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); }
.screen-moments .step-n { display: block; padding: 0; border: 0; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); transition: color 0.3s var(--ease); }
.screen-moments b { grid-column: 1 / -1; grid-row: 3; padding-right: 14px; font-size: 13.5px; font-weight: 500; line-height: 1.35; letter-spacing: -0.005em; color: color-mix(in srgb, var(--text) 66%, var(--muted)); text-wrap: balance; transition: color 0.3s var(--ease); }
.screen-moments .time { font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.screen-moments li.on b { color: var(--text); }
.screen-moments li.on .step-n { color: var(--text); }
@media (hover: hover) { .screen-moments button:hover b { color: var(--text); } }

/* A phone held upright: the film's upright cut, as tall as the window lets it be with its keys under it. */
@media (max-width: 640px) and (orientation: portrait) {
  .screen-main { --screen-room: 230px; }
  .screen-housing { width: min(100%, max(256px, calc((100svh - var(--screen-room)) * 9 / 16 + 16px))); }
  .screen-glass { aspect-ratio: 9 / 16; }
  .screen-bar, .screen-moments { width: 100%; }
  .screen-bar { flex-wrap: nowrap; gap: 10px; }
  .screen-bar .film-words { flex: 1 1 auto; }
  .screen-bar .key.round:not(.play) { width: 40px; height: 40px; }
  .screen-gap { display: none; }
  .screen-how { display: block; }
  .screen-how::before { content: none; }
  .screen-moments { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
}
@media (max-width: 360px) {
  .screen-bar .film-words b { font-size: 14px; }
  .screen-bar .film-words .time { font-size: 11px; }
}

/* ---------------------------------------------------------------------------------------------------------
   Listen: the demos in a list beside a deck, as a sample library's player has them. */
.player { display: grid; grid-template-columns: var(--cols); gap: clamp(24px, 3vw, 44px) var(--col-gap); }
.tracks { list-style: none; margin: 0; padding: 0; align-self: center; }
.tracks li + li { border-top: 1px solid color-mix(in srgb, var(--line-strong) 40%, transparent); transition: border-color 0.3s var(--ease); }
/* The raised pill stands in for the rules on either side of it, so none runs past its rounded corners or under its
   shadow. */
.tracks li:has(> .track[aria-current="true"]),
.tracks li:has(> .track[aria-current="true"]) + li { border-top-color: transparent; }
@media (hover: hover) {
  .tracks li:has(> .track:hover),
  .tracks li:has(> .track:hover) + li { border-top-color: transparent; }
}
/* A demo: its lamp, the title with the instrument under it, what's on, and its length. */
.track {
  width: 100%;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  grid-template-areas: "lamp words len" "lamp on on";
  align-items: center;
  column-gap: 10px;
  row-gap: 3px;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.track:hover { background: color-mix(in srgb, var(--face-1) 55%, transparent); }
.track[aria-current="true"] {
  background: linear-gradient(160deg, color-mix(in srgb, var(--face-1) 80%, rgb(var(--hi)) 20%), var(--face-2) 60%, var(--face-3));
  box-shadow: 0 1px 2px rgba(var(--sh), calc(0.4 * var(--sh-k))), 0 6px 14px -8px rgba(var(--sh), calc(0.5 * var(--sh-k))), inset 0 1px 0 rgba(var(--hi), calc(min(0.2 * var(--hi-k), 0.9))), 0 0 0 1px rgba(var(--sh), calc(0.16 * var(--sh-k)));
}
/* Unlit, the lamp is the page's status lens, as Coming soon's is: green glass that isn't lit yet, seated in the
   silicone with a glint on its dome, so it reads as an LED at real size in both themes and not as a bullet. Playing,
   the same glass lights and glows; its shadows are listed in the same order both ways, so it fades up. */
.track-lamp {
  grid-area: lamp;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 52%) color-mix(in srgb, var(--signal) 42%, var(--well));
  box-shadow:
    inset 0 1px 2px rgba(var(--sh), calc(0.7 * var(--sh-k))),
    inset 0 -1px 1px color-mix(in srgb, var(--signal) 30%, transparent),
    0 1px 0 rgba(var(--hi), calc(min(0.12 * var(--hi-k), 0.8))),
    0 0 0 transparent;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.track.playing .track-lamp {
  background-color: var(--signal);
  box-shadow:
    inset 0 1px 2px transparent,
    inset 0 -1px 1px transparent,
    0 0 0 3px color-mix(in srgb, var(--signal) 16%, transparent),
    0 0 8px color-mix(in srgb, var(--signal) 50%, transparent);
}
.track-words { grid-area: words; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.track-words b { flex: none; max-width: 100%; font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; color: var(--text); text-wrap: balance; }
.track-words span { max-width: 100%; font-size: 13px; line-height: 1.4; color: var(--muted); text-wrap: balance; }
/* On the raised pill's lit corner the instrument takes a little of the title's ink, so it still reads in dark. */
.track[aria-current="true"] .track-words > span { color: color-mix(in srgb, var(--text) 25%, var(--muted)); }
.track-on { grid-area: on; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.track-len { grid-area: len; font-family: var(--mono); font-size: 12px; color: var(--muted); }
/* the length stays on the title's first line, however the title wraps */
.track-words, .track-len { align-self: baseline; }
/* The deck fills its column, so it ends on the same line as the list beside it (from 1181 up; see below). */
.deck { min-width: 0; display: flex; flex-direction: column; }
.deck .housing { cursor: pointer; flex: 1 1 auto; display: flex; flex-direction: column; }
.deck-glass { flex: 1 1 auto; min-height: clamp(240px, 21vw, 300px); }
.deck-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.deck-now, .deck-on { position: absolute; top: 16px; margin: 0; display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
.deck-now { left: 22px; }
.deck-on { right: 22px; align-items: flex-end; }
.deck-now span, .deck-on span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(240, 230, 214, 0.6); }
.deck-now b, .deck-on b { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: rgba(240, 230, 214, 0.92); }
/* What's on sits on the title's baseline: the title's 16px in its 25.6px line sits 4px lower than these 12px do in
   theirs, so they're let down by that. */
.deck-on b { padding-top: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; font-weight: 400; color: rgba(240, 230, 214, 0.7); }
.deck-bar { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.deck-bar .key.play { width: 54px; height: 54px; }
.deck-bar .key.play .glyph { width: 26px; height: 26px; }
/* Two equal halves, each as wide as the longer label, so the switch keeps one width whichever take is loaded. */
.deck-bar .seg { margin-left: auto; display: inline-grid; grid-template-columns: 1fr 1fr; }
.deck-bar .seg button { padding: 0 16px; }
/* Side by side below 1040 the deck is narrower than the row at full spacing (443px), so its gaps and the switch's
   padding close up with the window, to 12 and 8 at 981, and the time and labels stay on one line. */
@media (min-width: 981px) and (max-width: 1040px) {
  .deck-bar { gap: clamp(12px, calc(12px + (100vw - 981px) * 0.1), 18px); }
  .deck-bar .time, .deck-bar .seg button { white-space: nowrap; }
  .deck-bar .seg button { padding: 0 clamp(8px, calc(8px + (100vw - 981px) * 0.135), 16px); }
}
/* Side by side up to 1180 the deck's column is too narrow for a screen as tall as the list (it would go square at
   1024 and portrait below), so the screen keeps a landscape 16:10, as the plugin's do, and the deck sits centred
   beside the list, as each feature's words sit beside its screen. Wider, it fills the column again. */
@media (min-width: 981px) and (max-width: 1180px) {
  .deck { align-self: center; }
  .deck .housing, .deck-glass { flex: none; }
  .deck-glass { aspect-ratio: 8 / 5; }
}

/* The small player, at the foot of the window while something plays out of sight of the big one. */
.mini-player { position: fixed; left: 50%; bottom: 18px; z-index: 40; translate: -50% calc(100% + 30px); transition: translate 0.6s var(--ease-out); pointer-events: none; }
.mini-player.show { translate: -50% 0; pointer-events: auto; }
/* 12px clear of the stitch all round: the ends are concentric with the round key (22 + 12 + 5 = 39), and the right
   padding is 2px short to allow for the trailing tracking of "Open player". */
.mini-bar { display: flex; align-items: center; gap: 16px; padding: 17px 15px 17px 17px; border-radius: 39px; }
.mini-bar::after { inset: 5px; border-radius: 34px; }
.mini-bar .key.play { width: 44px; height: 44px; }
.mini-bar .key.play .glyph { width: 22px; height: 22px; }
.mini-words { margin: 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini-words b { font-size: 14px; font-weight: 500; white-space: nowrap; }
.mini-words span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.mini-open { margin-left: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--muted); white-space: nowrap; }
.mini-open:hover { color: var(--text); }
/* its taps over the bar's height, through an empty layer, as the play key beside it takes them */
.mini-open { position: relative; }
.mini-open::after { content: ""; position: absolute; inset: -15px -10px; }
/* Its focus ring is a capsule, like the bar's end it sits in, 3px off the letters on every side (the right inset
   takes back the trailing tracking), so it stays as clear of the stitch as the round key's ring at the other end. */
.mini-open:focus-visible { outline: none; }
.mini-open:focus-visible::before { content: ""; position: absolute; inset: -3px calc(0.16em - 3px) -3px -3px; border-radius: 999px; outline: 2px solid color-mix(in srgb, var(--text) 70%, transparent); pointer-events: none; }

/* ---------------------------------------------------------------------------------------------------------
   Features: each in a module, its words beside the plugin's own screen for it; the last two side by side. */
/* The four features sit in the section's one module, a seam between each. */
.feature { position: relative; display: grid; grid-template-columns: var(--cols); gap: clamp(32px, 4vw, 64px) var(--col-gap); align-items: center; padding: var(--clear) 0; }
/* The module's own padding is its foot, so the last row gives up its own. stitch.js sews the module's outline in as
   its last child, so that is skipped when looking for the last row. */
.section-mod > .feature:nth-last-child(1 of :not(.stitches)),
.section-mod > .feature-pair:nth-last-child(1 of :not(.stitches)) > .feature:last-child { padding-bottom: 0; }
/* While the pair sits side by side, both its cells end on the module's foot. */
@media (min-width: 981px) {
  .section-mod > .feature-pair:nth-last-child(1 of :not(.stitches)) > .feature { padding-bottom: 0; }
}
.band + .feature { margin-top: 0; }
.section-mod > .feature + .feature, .section-mod > .feature + .feature-pair { position: relative; }
.feature.flipside { grid-template-columns: var(--cols-flip); }
.feature.flipside .feature-copy { order: 2; }
.feature .module-title { text-align: left; margin-bottom: 20px; }
.feature-copy .body { margin-top: 16px; max-width: 46ch; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; }
.ticks li { position: relative; padding: 11px 0 11px 28px; font-size: 15px; letter-spacing: -0.006em; text-wrap: pretty; border-top: 1px solid color-mix(in srgb, var(--line-strong) 40%, transparent); }
.ticks li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 40%, transparent); }
/* Each point marked with a single stitch of the thread, as a tailor marks a line. It sits on the point's first line
   (the padding, then half the 1.6 line), so a point that wraps keeps its stitch beside its first words. */
.ticks li::before { content: ""; position: absolute; left: 0; top: calc(11px + 0.8em); width: 14px; height: 6px; margin-top: -3px; background: var(--stitch-x, linear-gradient(var(--thread), var(--thread)) 0 50% / 100% 1.2px no-repeat) 0 0 / 7px 6px repeat-x; }
.feature-screen { margin: 0; min-width: 0; }
.feature-screen .caption { margin-top: 16px; text-align: center; text-wrap: balance; }
/* The caption is a legend of three sentences: each keeps together, and the lines balance between them. */
.feature-screen .caption span { display: inline-block; }
/* Flute echoes: the words centred on the screen, as in the Sound row, and the caption always 16px under the screen,
   so it doesn't pull the words down. Six rows: room above the screen, the screen, room below it, and three for the
   caption. The words span the first three, so where they are taller than the screen the room above and below it
   share the difference evenly. The caption spans the last four from the screen's foot; spanning more rows than the
   words, it is sized after them and only adds what the room below the screen can't hold. From 1240 up, where the
   screen is about as tall as the words; below that the words are much the taller, and centring them on the whole
   figure spaces the row more evenly. */
@media (min-width: 1240px) {
  .feature.flipside { grid-template-rows: repeat(6, auto); row-gap: 0; }
  .feature.flipside .feature-copy { grid-column: 2; grid-row: 1 / span 3; }
  .feature-screen.talk { grid-column: 1; grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; }
  .feature-screen.talk .housing { grid-row: 2; }
  .feature-screen.talk .caption { grid-row: 3 / span 4; align-self: start; }
}
.feature-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; --pair-screen: clamp(200px, 17vw, 250px); }
.feature-pair .feature:first-child { padding-right: var(--clear); }
.feature-pair .feature + .feature { padding-left: var(--clear); }
.feature.small { display: flex; flex-direction: column; gap: 0; }
.feature.small { text-align: left; align-items: stretch; }
.feature.small .module-title { text-align: left; }
.feature.small .feature-screen, .feature.small .feature-chords { width: 100%; }
.feature.small .feature-title { margin-top: 30px; }
.feature.small .body { margin-top: 12px; max-width: 46ch; }
.feature.small .text-key { margin-top: 22px; align-self: flex-start; height: 40px; padding: 0 18px; }
/* The chords on the plugin's screen, set in a housing as the Clean screen beside it is and as tall, so the two headings
   under them sit level. The glass is dark in both finishes, so what's on it is drawn in the dark finish whichever
   finish the page is in, as the other screens draw sound; the chords sit straight on the glass, their edges on the
   Drag MIDI key's. */
.feature-chords { display: flex; flex-direction: column; justify-content: center; gap: 16px; height: var(--pair-screen, clamp(200px, 17vw, 250px)); min-height: 0; padding: 0 22px; }
.feature-chords > * {
  --text: #efe6da; --muted: #a39683; --well: #0d0a08;
  --face-1: #2e2722; --face-2: #27211c; --face-3: #221d19;
  --hi: 255, 236, 214; --hi-k: 1; --sh: 0, 0, 0; --sh-k: 1; --shape: #ecb661;
  color: var(--text);
}
.feature-chords .mini-chords { padding: 0; background: none; box-shadow: none; }
.feature-chords .drag-key { pointer-events: none; }
.feature-chords .cc:nth-child(n + 3) { display: flex; }   /* on phones the screen keeps all four, two by two */
.feature-chords .cc { opacity: 1; transform: none; }
.feature-chords .cc { transition: transform 0.6s var(--ease-out), box-shadow 0.4s var(--ease); }
.feature.small:hover .cc { transform: translateY(-2px); }
.bf-glass { height: clamp(280px, 26vw, 380px); }
.glass.bf-glass .glass-legend { left: clamp(18px, 2vw, 28px); right: clamp(18px, 2vw, 28px); bottom: clamp(14px, 1.6vw, 22px); font-size: 11px; }
.talk-glass { height: clamp(280px, 26vw, 380px); }
.talk-key, .talk-flute { position: absolute; top: clamp(16px, 1.8vw, 26px); margin: 0; display: flex; pointer-events: none; }
.talk-key { left: clamp(18px, 2vw, 28px); flex-direction: column; gap: 6px; }
.talk-key b { font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; color: rgba(240, 230, 214, 0.92); }
.talk-key em { font-style: normal; font-size: 12px; color: rgba(240, 230, 214, 0.6); }
.talk-flute { right: clamp(18px, 2vw, 28px); align-items: center; gap: 10px; }
.talk-flute i { width: 7px; height: 7px; border-radius: 50%; background: rgb(114, 195, 222); box-shadow: 0 0 10px rgba(114, 195, 222, 0.8); }
.talk-flute b { font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; color: rgb(114, 195, 222); }
.talk[data-version="alone"] .talk-flute { opacity: 0 !important; transition: opacity 0.5s var(--ease); }
.under-glass { height: var(--pair-screen, clamp(200px, 17vw, 250px)); }
.bf-canvas, .talk-canvas, .under-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.glass-legend { position: absolute; left: 22px; right: 22px; bottom: 14px; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(240, 230, 214, 0.6); pointer-events: none; }
.glass-legend span:last-child { color: rgba(240, 140, 98, 0.85); }
/* Clean's glass, split down the middle (drawn in its canvas, hairline and all): the take as played on the left and
   through Afflato on the right, the same tone line running across both. Each side's breath, measured, in its top
   corner; while the take plays, the side you're hearing is lit. */
.under-side { position: absolute; top: 18px; margin: 0; display: flex; align-items: baseline; gap: 0.9em; font-size: 11px; line-height: 1; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(240, 230, 214, 0.72); pointer-events: none; transition: color 0.4s var(--ease); }
.under-side.before { left: 22px; }
.under-side.after { right: 22px; }
.under-side b { font-weight: 400; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: rgb(240, 140, 98); }
.under-glass[data-hearing="before"] .under-side.before, .under-glass[data-hearing="after"] .under-side.after { color: rgba(240, 230, 214, 0.95); }
.under-glass[data-hearing="before"] .under-side.after, .under-glass[data-hearing="after"] .under-side.before { color: rgba(240, 230, 214, 0.5); }

/* ---------------------------------------------------------------------------------------------------------
   The plugin's picture: in the hero, the screen in it drawn live. */
.views { display: flex; width: max-content; }
.lab-stage { position: relative; }
/* The picture's long shadow, one shadow for the picture and for the share of it let into the switch's well below.
   It's declared on each thing that casts it, so --cast, the share, is read where it's drawn. */
.lab, .views-shade::before, .views-shade::after {
  --lab-cast:
    0 30px 60px -20px rgba(var(--sh), calc(0.55 * var(--cast, 1) * var(--sh-k))),
    0 90px 140px -50px rgba(var(--sh), calc(0.8 * var(--cast, 1) * var(--sh-k)));
}
.lab {
  position: relative;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 1000 / 784;
  container-type: inline-size;
  border-radius: clamp(10px, 1.2vw, 18px);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(var(--sh), calc(0.3 * var(--sh-k))),
    0 2px 4px rgba(var(--sh), calc(0.25 * var(--sh-k))),
    var(--lab-cast);
  background: var(--ground);
}
.lab-shot { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s; }
.lab[data-view="sound"] .lab-shot[data-view="sound"],
.lab[data-view="effects"] .lab-shot[data-view="effects"],
.lab[data-view="chords"] .lab-shot[data-view="chords"] { opacity: 1; visibility: visible; transition: opacity 0.9s var(--ease), visibility 0s; }
.lab-shot img { width: 100%; height: 100%; }
/* The glass goes on past the field (the TONE and BREATH labels, then the knob), so the breath mist fades out before
   the canvas ends, at its foot and at its sides, instead of stopping in a line. */
.lab-field {
  position: absolute;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent), linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 72%, transparent), linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}
.lab-note {
  position: absolute;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  color: rgba(240, 230, 214, 0.92);
  font-size: 1.8cqw;
  font-weight: 500;
  pointer-events: none;
}
/* Clear keys over the picture's own Sound, Effects and Chords, placed from lab-shots.json. */
.lab-page { position: absolute; z-index: 1; padding: 0; border: 0; border-radius: 999px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lab-note sub { font-size: 0.62em; font-weight: 400; color: rgba(240, 230, 214, 0.5); vertical-align: baseline; }
.lab-note span { margin-left: 0.8em; font-size: 0.62em; font-weight: 400; color: rgba(240, 230, 214, 0.42); }
.lab-seat {
  position: absolute;
  left: 8%; right: 8%; bottom: -5%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--sh), calc(0.35 * var(--sh-k))), transparent);
  filter: blur(24px);
  z-index: -1;
}

/* ---------------------------------------------------------------------------------------------------------
   How it works: one module the length of its scroll. The heading leaves with the page; the four steps and the plugin
   beside them (the stage, let into the module as a well) hold still while the page passes through them. */
/* The distance the page scrolls while the steps are held: a quarter of it for each step. */
.use-run { height: 200vh; }
.held-mod { position: relative; }
.use-pin { position: sticky; top: var(--pin-top, 98px); display: grid; grid-template-columns: var(--cols); gap: var(--col-gap); align-items: center; }
.steps-col { display: flex; flex-direction: column; }
.use-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 28px 46px minmax(0, 1fr);
}
.use-step { display: contents; }
.use-step:nth-child(1) > :not(.step-body) { grid-row: 1; }
.use-step:nth-child(2) > :not(.step-body) { grid-row: 2; }
.use-step:nth-child(3) > :not(.step-body) { grid-row: 3; }
.use-step:nth-child(4) > :not(.step-body) { grid-row: 4; }
/* Each row's hairline is drawn once, by its title, reaching back across the lamp and the number (the 28px and 46px
   columns), so it can't land on two different pixel rows. The cells keep a clear 1px border so the rows stay as tall. */
.step-lamp, .step-n, .step-title { padding: 17px 0; border-top: 1px solid transparent; }
.step-lamp { display: flex; align-items: center; }
.step-lamp::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  /* the page's one lamp: the status lens unlit, lit as a playing track's is (.track-lamp) */
  background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 52%) color-mix(in srgb, var(--signal) 42%, var(--well));
  box-shadow:
    inset 0 1px 2px rgba(var(--sh), calc(0.7 * var(--sh-k))),
    inset 0 -1px 1px color-mix(in srgb, var(--signal) 30%, transparent),
    0 1px 0 rgba(var(--hi), calc(min(0.12 * var(--hi-k), 0.8))),
    0 0 0 transparent;
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.use-step.on .step-lamp::before, .craft-list li.on .step-lamp::before {
  background-color: var(--signal);
  box-shadow:
    inset 0 1px 2px transparent,
    inset 0 -1px 1px transparent,
    0 0 0 3px color-mix(in srgb, var(--signal) 16%, transparent),
    0 0 8px color-mix(in srgb, var(--signal) 50%, transparent);
}
.step-n { display: flex; align-items: center; font-size: 12px; letter-spacing: 0.16em; color: var(--muted); }
.step-title { position: relative; margin: 0; font-size: clamp(17px, 1.3vw, 20px); font-weight: 500; line-height: 1.3; letter-spacing: -0.012em; color: var(--muted); transition: color 0.5s var(--ease); }
.step-title::before { content: ""; position: absolute; top: -1px; left: -74px; right: 0; border-top: 1px solid color-mix(in srgb, var(--line-strong) 45%, transparent); pointer-events: none; }
.use-step.on .step-title, .use-step.on .step-n { color: var(--text); }
/* Each step's title is a button: pressing anywhere on its row brings that step to the stage. The row reaches 10px
   past the lamp and the words, and the keyboard's ring is drawn round all of it, from the row's hairline to its foot. */
.step-title > button { appearance: none; display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 4px; background: none; font: inherit; color: inherit; letter-spacing: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.step-title > button::after { content: ""; position: absolute; inset: -1px -10px -1px -84px; border-radius: 8px; }
.step-title > button:focus-visible { outline: none; }
.step-title > button:focus-visible::after { outline: 2px solid color-mix(in srgb, var(--text) 70%, transparent); outline-offset: -2px; }
.use-step:not(.on) .step-title:hover { color: color-mix(in srgb, var(--text) 78%, var(--muted)); }
/* The step's words share one place under the list. As the step changes the old words go first and the new ones
   follow, so the two never print over each other. The words not showing stay in the page for screen readers. */
.step-body {
  grid-row: 5;
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid transparent;
  font-size: 15.5px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--text) 62%, var(--muted));
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  transition: opacity 0.22s ease-in, transform 0.22s ease-in;
}
.use-step.on .step-body { opacity: 1; transform: none; pointer-events: auto; -webkit-user-select: text; user-select: text; transition: opacity 0.4s var(--ease) 0.24s, transform 0.6s var(--ease-out) 0.24s; }
/* The hairline over the words, under the last step, drawn by the list itself so it stays put while the words change. */
.use-steps::after { content: ""; grid-row: 5; grid-column: 1 / -1; align-self: start; border-top: 1px solid color-mix(in srgb, var(--line-strong) 45%, transparent); pointer-events: none; }

/* The stage: a well pressed into the module, the plugin in it: the name on a tab hanging from the well's top edge,
   the plugin's screen in the middle, and the session under it. */
.use-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 70px clamp(20px, 2vw, 30px) clamp(20px, 2vw, 30px);
  border-radius: 16px;
  background:
    var(--knit-tile, none) 0 0 / var(--knit-w, 120px) var(--knit-h, 120px),
    var(--ground);
  box-shadow:
    inset 0 3px 8px rgba(var(--sh), calc(0.55 * var(--sh-k))),
    inset 0 0 0 1px rgba(var(--sh), calc(0.3 * var(--sh-k))),
    0 1px 0 rgba(var(--hi), calc(min(0.1 * var(--hi-k), 0.9)));
}
.stage-tab {
  position: absolute;
  left: 50%; top: 0;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 150px;
  height: 46px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, var(--bar), color-mix(in srgb, var(--bar) 92%, rgb(var(--sh))));
  box-shadow: 0 0 0 1px var(--bar-edge), 0 8px 14px -8px rgba(var(--sh), calc(0.6 * var(--sh-k))), inset 0 -1px 0 rgba(var(--hi), calc(min(0.1 * var(--hi-k), 0.7)));
  z-index: 2;
}
.stage-tab::after { content: ""; position: absolute; left: 6px; right: 6px; top: 0; bottom: 6px; border: 1.2px dashed var(--thread); border-top: 0; border-radius: 0 0 9px 9px; filter: drop-shadow(0 1px 0 var(--thread-glow)); }
.stage-tab .wordmark { font-size: 20px; }
/* The plugin's screen: a panel of the plugin's own silicone sewn onto the knit, as its modules are. In a short
   window it gives up height so the whole held stage fits under the bar with 18px clear above and below: 405 is the
   rest of the stage (its 70 top padding, 24, the session's ~246 and its ~30 bottom padding) and the 36 clear, and
   --bar-foot is where the bar ends, measured by the page. It never goes under 214, the size tablets use. */
.stage-screen.module { --mod-pad: 0px; position: relative; padding-top: 0; height: clamp(214px, min(18vw, 100vh - var(--bar-foot, 65px) - 405px), 262px); border-radius: 16px; }
.stage-screen .mini { inset: 20px clamp(20px, 2vw, 28px) 22px; gap: 14px; }
/* The panel's name across its top, as on the plugin; what it shows sits in the middle of the room left under it.
   The name is printed once over all four panels, so it stays put when the panel changes and the name doesn't
   (Soundcheck, steps 1 and 2); each panel keeps its own copy, unseen, to hold the room. */
.stage-screen .module-title { margin: 0 0 auto; font-size: 11px; }
.stage-screen .mini > :last-child { margin-bottom: auto; }
.stage-screen .mini > .module-title { visibility: hidden; }
.stage-title { position: absolute; z-index: 1; top: 20px; left: clamp(20px, 2vw, 28px); right: clamp(20px, 2vw, 28px); display: grid; pointer-events: none; }
.stage-title span { grid-area: 1 / 1; opacity: 0; transition: opacity 0.22s ease-in; }
.use-stage[data-step="1"] .stage-title [data-for~="1"],
.use-stage[data-step="2"] .stage-title [data-for~="2"],
.use-stage[data-step="3"] .stage-title [data-for~="3"],
.use-stage[data-step="4"] .stage-title [data-for~="4"] { opacity: 1; transition: opacity 0.4s var(--ease) 0.24s; }
.use-stage .session { margin-top: 24px; flex: 1; align-content: center; }

.session {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--well);
  box-shadow:
    inset 0 2px 6px rgba(var(--sh), calc(0.45 * var(--sh-k))),
    inset 0 0 0 1px rgba(var(--sh), calc(0.14 * var(--sh-k))),
    0 1px 0 rgba(var(--hi), calc(min(0.07 * var(--hi-k), 0.8)));
}
.transport { display: flex; align-items: center; gap: 16px; padding: 2px 12px 6px; font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.t-play { width: 0; height: 0; border-left: 8px solid var(--muted); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.t-bpm { margin-left: auto; }
/* The lane's head is never narrower than its insert slot needs to hold the AFFLATO chip with room either side. */
.session { --head: clamp(104px, 9vw, 128px); }
/* The two lanes, with the playhead running down through both, as a DAW's does. */
.lanes { position: relative; display: grid; gap: 12px; }
.lane { display: grid; grid-template-columns: var(--head) 1fr; gap: 10px; height: clamp(62px, 6vw, 82px); }
.lane-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--face-1), var(--face-3));
  box-shadow: 0 1px 2px rgba(var(--sh), calc(0.35 * var(--sh-k))), inset 0 1px 0 rgba(var(--hi), calc(min(0.2 * var(--hi-k), 0.9)));
  font-size: 12px;
}
.lane-head b { font-weight: 500; letter-spacing: 0.02em; }
.lane-sub { font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }
.slot { border-radius: 8px; border: 1px dashed var(--line-strong); display: flex; align-items: center; padding: 3px; }
.chip {
  display: inline-flex; align-items: center; height: 16px; padding: 0 8px; border-radius: 5px;
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-text);
  background: linear-gradient(145deg, var(--ink-a), var(--ink-c));
  opacity: 0; transform: translateY(-14px) scale(0.9);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.use-stage:not([data-step="0"]) .chip { opacity: 1; transform: none; transition-delay: 0.35s; }
/* In dark the page's action key turns cream; the DAW's insert chip stays rubber, like the panel's Undo chip, so a DAW
   label never outshines the plugin. */
:root[data-theme="dark"] .chip {
  color: var(--text);
  background: linear-gradient(160deg, var(--face-1), var(--face-3));
  box-shadow: 0 1px 2px rgba(var(--sh), calc(0.4 * var(--sh-k))), inset 0 1px 0 rgba(var(--hi), calc(min(0.2 * var(--hi-k), 0.9)));
}
.clip { position: relative; border-radius: 10px; overflow: hidden; }
.audio-clip {
  background: linear-gradient(180deg, var(--face-2), var(--face-3));
  box-shadow: 0 1px 2px rgba(var(--sh), calc(0.35 * var(--sh-k))), inset 0 1px 0 rgba(var(--hi), calc(min(0.2 * var(--hi-k), 0.9))), inset 0 0 0 1px rgba(var(--sh), calc(0.12 * var(--sh-k)));
}
.wave { position: absolute; inset: 8px 0; width: 100%; height: calc(100% - 16px); }
.wave .you { fill: color-mix(in srgb, var(--text) 55%, transparent); }
.wave .ans { fill: var(--space); opacity: 0; transition: opacity 0.8s var(--ease); }
.use-stage[data-step="3"] .wave .ans, .use-stage[data-step="4"] .wave .ans { opacity: 0.55; }
.playhead { position: absolute; top: 0; bottom: 0; left: calc(var(--head) + 10px); width: 1.5px; background: var(--text); z-index: 1; pointer-events: none; }
/* Where the chords will land, drawn dashed until they have, then gone, so the clip lines up with the take above it. */
.midi-slot::before { content: ""; position: absolute; inset: 0; border: 1px dashed var(--line-strong); border-radius: inherit; transition: opacity 0.4s var(--ease); }
.use-stage[data-step="4"] .midi-slot::before { opacity: 0; transition-delay: 2.3s; }
.midi-clip {
  position: absolute; inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--shape) 14%, var(--face-2)), color-mix(in srgb, var(--shape) 8%, var(--face-3)));
  box-shadow: 0 1px 2px rgba(var(--sh), calc(0.35 * var(--sh-k))), inset 0 1px 0 rgba(var(--hi), calc(min(0.2 * var(--hi-k), 0.9))), inset 0 0 0 1px color-mix(in srgb, var(--shape) 22%, transparent);
  opacity: 0;
  transform: translate(8%, -150%) scale(0.92);
  transition: opacity 0.5s var(--ease), transform 1.1s var(--ease-out);
}
.use-stage[data-step="4"] .midi-clip { opacity: 1; transform: none; transition-delay: 1.5s, 1.5s; }
.midi-clip span { position: absolute; top: 10%; bottom: 10%; left: calc(var(--x) * 1%); width: calc(var(--w) * 1%); border-left: 1px solid color-mix(in srgb, var(--shape) 35%, transparent); }
.midi-clip span:first-child { border-left-color: transparent; }
.midi-clip i { position: absolute; left: 6%; right: 6%; height: 9%; top: calc(86% - var(--y) * 12%); border-radius: 3px; background: color-mix(in srgb, var(--shape) 78%, transparent); }

.mini {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.22s ease-in, transform 0.22s ease-in, visibility 0s linear 0.22s;
}
/* The panel that's going leaves first, then the new one comes in, as the step's words do. */
.use-stage[data-step="1"] .mini[data-for="1"],
.use-stage[data-step="2"] .mini[data-for="2"],
.use-stage[data-step="3"] .mini[data-for="3"],
.use-stage[data-step="4"] .mini[data-for="4"] { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s var(--ease) 0.24s, transform 0.6s var(--ease-out) 0.24s, visibility 0s; }
/* The lamp, the words and any key on the row share the words' first baseline, so the lamp stays by the first line
   where a narrow phone wraps the words. */
.mini-status { margin: 0; display: flex; align-items: baseline; gap: 10px; font-size: 12px; letter-spacing: 0.02em; color: var(--muted); }
.mini-status i { width: 7px; height: 7px; border-radius: 50%; }
.listen-dot { background: var(--signal); animation: breathe 1.6s ease-in-out infinite; }
.set-dot { background: color-mix(in srgb, var(--space) 80%, transparent); }
.answer-dot { background: var(--space); animation: breathe 2.4s ease-in-out infinite; }
.mini-chip { margin-left: auto; padding: 3px 10px; border-radius: 7px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); background: linear-gradient(160deg, var(--face-1), var(--face-3)); box-shadow: 0 1px 2px rgba(var(--sh), calc(0.4 * var(--sh-k))), inset 0 1px 0 rgba(var(--hi), calc(min(0.2 * var(--hi-k), 0.9))); }

.mini-glass { flex: 1; min-height: 0; border-radius: 10px; }
.mini-tone { position: absolute; inset: 14% 4% 30%; width: 92%; height: 56%; }
.mini-tone path { fill: none; stroke: rgba(240, 230, 214, 0.85); stroke-width: 1.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(240, 230, 214, 0.6)); stroke-dasharray: 600; stroke-dashoffset: 600; }
.use-stage[data-step="1"] .mini-tone path { animation: draw 2.4s var(--ease-out) 0.4s forwards, sway 5s ease-in-out 2.8s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sway { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.motes { position: absolute; inset: 0; }
.motes i { position: absolute; left: calc(var(--x) * 1%); bottom: -4px; width: 3px; height: 3px; border-radius: 50%; background: rgb(240, 140, 98); opacity: 0; animation: mote 4.2s ease-in calc(var(--t) * 1s) infinite; }
@keyframes mote { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 0.9; } 100% { opacity: 0; transform: translate(6px, -70px); } }
.mini-legend { position: absolute; left: 10px; right: 10px; bottom: 7px; display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(240, 230, 214, 0.6); }
.mini-legend span:last-child { color: rgba(240, 140, 98, 0.8); }

/* The keys share the panel in equal columns, so they keep an even step and Soundcheck's knobs and the effects
   sit in the same places; a two-word name breaks onto two lines under its key. */
.mini-keys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.mk { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mk-face { width: clamp(40px, 4vw, 58px); aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--face-1) 80%, rgb(var(--hi)) 20%), var(--face-2) 48%, var(--face-3));
  box-shadow: -4px -4px 10px rgba(var(--hi), calc(min(0.07 * var(--hi-k), 0.9))), 5px 6px 12px rgba(var(--sh), calc(0.55 * var(--sh-k))), 0 0 0 1px rgba(var(--sh), calc(0.25 * var(--sh-k))), inset 1px 1px 1px rgba(var(--hi), calc(min(0.2 * var(--hi-k), 0.95))); }
.mk svg { width: 72%; height: 72%; transform: rotate(135deg); fill: none; }
.mk-track { stroke: color-mix(in srgb, var(--text) 12%, transparent); stroke-width: 2.4; stroke-dasharray: 75 100; }
.mk-arc { stroke: var(--hue); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s var(--ease-out); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--hue) 50%, transparent)); }
.use-stage[data-step="2"] .mk-arc, .use-stage[data-step="3"] .mk-arc, .use-stage[data-step="4"] .mk-arc { stroke-dasharray: calc(var(--to) * 75) 100; transition-delay: 0.5s; }
.mk-name { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.mk-value { font-size: 12.5px; font-weight: 500; white-space: nowrap; }

.mini-fx { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.mfx { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.mfx svg {
  width: clamp(40px, 4vw, 58px); aspect-ratio: 1; padding: 10px; border-radius: 12px; overflow: visible;
  fill: none; stroke: var(--hue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  background: linear-gradient(145deg, color-mix(in srgb, var(--face-1) 80%, rgb(var(--hi)) 20%), var(--face-2) 48%, var(--face-3));
  box-shadow: -4px -4px 10px rgba(var(--hi), calc(min(0.07 * var(--hi-k), 0.9))), 5px 6px 12px rgba(var(--sh), calc(0.55 * var(--sh-k))), 0 0 0 1px rgba(var(--sh), calc(0.25 * var(--sh-k))), inset 1px 1px 1px rgba(var(--hi), calc(min(0.2 * var(--hi-k), 0.95)));
  opacity: 0.5;
  transition: opacity 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.mfx svg .dot { fill: var(--hue); stroke: none; }
.mfx svg .dim { stroke-opacity: 0.4; }
.mfx b { font-size: 9.5px; font-weight: 400; letter-spacing: 0.12em; line-height: 1.35; text-align: center; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.use-stage[data-step="3"] .mfx[data-on] svg, .use-stage[data-step="4"] .mfx[data-on] svg {
  opacity: 1;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--hue) 45%, transparent));
  box-shadow: -4px -4px 10px rgba(var(--hi), calc(min(0.07 * var(--hi-k), 0.9))), 5px 6px 12px rgba(var(--sh), calc(0.55 * var(--sh-k))), 0 0 0 1px rgba(var(--sh), calc(0.25 * var(--sh-k))), inset 0 0 0 1px color-mix(in srgb, var(--hue) 25%, transparent), inset 0 0 12px color-mix(in srgb, var(--hue) 20%, transparent);
}
.use-stage[data-step="3"] .mfx[data-on="1"] svg { transition-delay: 0.5s; }
.use-stage[data-step="3"] .mfx[data-on="2"] svg { transition-delay: 1.1s; }
.use-stage[data-step="3"] .mfx[data-on="3"] svg { transition-delay: 1.7s; }

.mini-chords { display: grid; grid-template-columns: 1.1fr 0.8fr 1.3fr 0.8fr; gap: 6px; padding: 6px; border-radius: 12px; background: var(--well); box-shadow: inset 0 1px 3px rgba(var(--sh), calc(0.45 * var(--sh-k))); }
.cc {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 12px 12px; border-radius: 9px;
  background: linear-gradient(160deg, var(--face-1), var(--face-3));
  box-shadow: 0 1px 2px rgba(var(--sh), calc(0.4 * var(--sh-k))), inset 0 1px 0 rgba(var(--hi), calc(min(0.2 * var(--hi-k), 0.9)));
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease-out);
}
.use-stage[data-step="4"] .cc { opacity: 1; transform: none; transition-delay: calc(0.4s + var(--i) * 0.22s); }
.cc b { font-size: clamp(14px, 1.3vw, 19px); font-weight: 500; letter-spacing: -0.02em; color: color-mix(in srgb, var(--shape) 78%, var(--text)); }
.cc b small { font-size: 0.62em; font-weight: 400; }
.cc em { font-style: normal; font-size: 10px; color: var(--muted); }
.drag { justify-content: space-between; }
.drag-key {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  background: linear-gradient(160deg, var(--face-1), var(--face-3));
  box-shadow: -3px -3px 8px rgba(var(--hi), calc(min(0.07 * var(--hi-k), 0.9))), 4px 5px 10px rgba(var(--sh), calc(0.5 * var(--sh-k))), inset 1px 1px 1px rgba(var(--hi), calc(min(0.2 * var(--hi-k), 0.95)));
}
.drag-key i { width: 16px; height: 9px; border-radius: 2px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--shape) 70%, transparent) 0 3px, transparent 3px 5px); }
.use-stage[data-step="4"] .drag-key { animation: nudge 1.6s var(--ease) 1s 1; }
@keyframes nudge { 0% { transform: none; } 40% { transform: translateY(4px) scale(0.97); } 100% { transform: none; } }

/* ---------------------------------------------------------------------------------------------------------
   The nine effects, as the plugin's Effects page lays them out: two rows of keys under their names, and Another
   room standing tall at the end of both. */
.flip {
  position: relative;
  margin-top: var(--section);
  padding-bottom: var(--section);
  color: var(--text);
  background:
    var(--knit-tile-flip, none) 0 0 / var(--knit-w, 120px) var(--knit-h, 120px),
    radial-gradient(90% 60% at 50% 0%, var(--ground-glow) 0%, transparent 70%),
    var(--ground);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.28), 0 1px 0 rgba(0, 0, 0, 0.28), inset 0 14px 22px -16px rgba(0, 0, 0, 0.5), inset 0 -14px 22px -16px rgba(0, 0, 0, 0.5);
}
/* Hemmed top and bottom with the bar's running stitch. */
.flip::before, .flip::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  height: 6px;
  background: var(--stitch-x, repeating-linear-gradient(90deg, var(--thread) 0 4px, transparent 4px 8px)) 0 0 / 7px 6px repeat-x;
  pointer-events: none;
}
.flip::before { top: 8px; }
.flip::after { bottom: 8px; }
/* Five equal columns a key's gap apart, as the plugin lays them: the five echoes across the top, then the four glows
   and Another room under them, on the same pitch. */
.fx-bank { --fx-gap: clamp(20px, 2.6vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) calc((100% - 4 * var(--fx-gap)) / 5); column-gap: var(--fx-gap); row-gap: clamp(48px, 5vw, 72px); }
.fx-group:first-child { grid-column: 1 / -1; }
.fx-group.room { grid-column: 2; grid-row: 2; }
.group-title { margin: 0 0 30px; font-size: 11px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--hue) 78%, var(--text)); }
.fx-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--fx-gap); }
.fx-group:first-child .fx-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.room .fx-list { grid-template-columns: minmax(0, 1fr); }
.fx { display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Each row's names sit level however their lines wrap: the bank's rows run down through every group, and Another room
   (its heading only for screen readers) shares the glows' rows. */
@media (min-width: 981px) {
  @supports (grid-template-rows: subgrid) {
    .fx-bank { grid-template-rows: repeat(8, auto); row-gap: 0; }
    .fx-group { display: grid; grid-template-rows: subgrid; }
    .fx-group:first-child { grid-row: 1 / 5; }
    .fx-group:nth-child(2), .fx-group.room { grid-row: 5 / 9; }
    .fx-group:nth-child(2) .group-title { margin-top: clamp(48px, 5vw, 72px); }
    .fx-list { grid-row: 2 / 5; grid-template-rows: subgrid; row-gap: 0; }
    .fx { display: grid; grid-row: 1 / 4; grid-template-rows: subgrid; align-items: start; justify-items: center; }
  }
}

.fx-key {
  display: grid;
  place-items: center;
  width: clamp(76px, 6.2vw, 96px);
  aspect-ratio: 1;
  border-radius: 30%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--face-1) 80%, rgb(var(--hi)) 20%) 0%, var(--face-2) 48%, var(--face-3) 100%);
  box-shadow:
    -12px -12px 26px rgba(var(--hi), calc(min(0.07 * var(--hi-k), 0.9))),
    14px 17px 32px rgba(var(--sh), calc(0.72 * var(--sh-k))),
    0 0 0 1px rgba(var(--sh), calc(0.3 * var(--sh-k))),
    inset 1px 1px 1px rgba(var(--hi), calc(min(0.2 * var(--hi-k), 0.95))),
    inset -1px -2px 3px rgba(var(--sh), calc(0.4 * var(--sh-k)));
  transition: box-shadow 0.5s var(--ease), background 0.5s var(--ease);
}
.fx-key svg { width: 52%; overflow: visible; fill: none; stroke: var(--hue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; transition: opacity 0.5s var(--ease), filter 0.5s var(--ease); }
.fx-key svg .dot { fill: var(--hue); stroke: none; }
.fx-key svg .dim { stroke-opacity: 0.4; }
/* On, as the plugin draws it: still raised, a glow of its colour inside the rim, the drawing lit. */
.fx.in .fx-key, .fx:hover .fx-key {
  background:
    radial-gradient(75% 75% at 50% 55%, color-mix(in srgb, var(--hue) 14%, transparent) 0%, transparent 70%),
    linear-gradient(145deg, color-mix(in srgb, var(--face-1) 88%, rgb(var(--hi)) 12%) 0%, var(--face-2) 50%, var(--face-3) 100%);
  box-shadow:
    -12px -12px 26px rgba(var(--hi), calc(min(0.07 * var(--hi-k), 0.9))),
    14px 17px 32px rgba(var(--sh), calc(0.72 * var(--sh-k))),
    0 0 0 1px rgba(var(--sh), calc(0.3 * var(--sh-k))),
    inset 0 0 0 1px color-mix(in srgb, var(--hue) 22%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--hue) 16%, transparent),
    inset 1px 1px 1px rgba(var(--hi), calc(min(0.2 * var(--hi-k), 0.95))),
    inset -1px -2px 3px rgba(var(--sh), calc(0.4 * var(--sh-k)));
}
.fx.in .fx-key svg, .fx:hover .fx-key svg {
  opacity: 1;
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--hue) 75%, transparent)) drop-shadow(0 0 9px color-mix(in srgb, var(--hue) 40%, transparent));
}
.fx-name { margin: 24px 0 0; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.fx-line { margin: 8px 0 0; max-width: 22ch; text-wrap: balance; font-size: 15px; line-height: 1.5; letter-spacing: -0.008em; color: color-mix(in srgb, var(--text) 45%, var(--muted)); }

/* Each drawing draws itself in, then moves the way its effect does. The draw-in and the motion are one list, so
   neither replaces the other: a part names its motion in --move and when it starts in --move-at, and holds the
   motion's first frame until then, so nothing jumps when it begins. */
.js .fx-key svg .fx-ink { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.fx.in .fx-key svg :is(.dot, stop) { animation: var(--move, none); }
.js .fx.in .fx-key svg .fx-ink { animation: ink 1.6s var(--ease-out) calc(0.3s + var(--d, 0) * 0.12s) forwards, var(--move, none); }
@keyframes ink { to { stroke-dashoffset: 0; } }
.fx-key svg * { transform-box: fill-box; transform-origin: center; }
.g-flutecho .w, .g-voicecho .w, .g-room .w { --move: ripple 2.8s ease-in-out var(--move-at, 2s) infinite backwards; }
.g-flutecho .w2, .g-voicecho .w2, .g-room .w2 { --move-at: 2.25s; }
.g-flutecho .w3, .g-voicecho .w3 { --move-at: 2.5s; }
@keyframes ripple { 0%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
/* Echoes in key is one line, as the plugin draws it. Its light is a gradient up the steps, full on each step and
   dimmer on the rises between, and it climbs them one after another without the line ever coming apart. */
.g-keyecho stop { stop-color: var(--hue); stop-opacity: var(--o, 1); --move: climb 3.2s ease-in-out var(--move-at, 2s) infinite backwards; }
.g-keyecho .r { --o: 0.4; }
.g-keyecho .r1 { --move-at: 2.2s; }
.g-keyecho .s2 { --o: 0.7; --move-at: 2.4s; }
.g-keyecho .r2 { --move-at: 2.6s; }
.g-keyecho .s3 { --o: 0.45; --move-at: 2.8s; }
@keyframes climb { 0%, 100% { stop-opacity: calc(0.3 * var(--o, 1)); } 25% { stop-opacity: var(--o, 1); } }
.g-dream .s { --move: step 3.2s ease-in-out var(--move-at, 2s) infinite backwards; }
.g-dream .s2 { --move-at: 2.4s; }
.g-dream .s3 { --move-at: 2.8s; }
@keyframes step { 0%, 100% { opacity: 0.3; transform: translateY(0); } 25% { opacity: 1; transform: translateY(-1.5px); } }
.g-canon .answer { --move: canon 4s ease-in-out 2s infinite backwards; }
@keyframes canon { 0%, 100% { opacity: 0.2; transform: translateX(-2px); } 50% { opacity: 1; transform: none; } }
.g-shimmer .spark { --move: twinkle 2.6s ease-in-out 2s infinite backwards; }
.g-shimmer .octave { --move: rise 2.6s ease-in-out 2s infinite backwards; }
@keyframes twinkle { 0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }
@keyframes rise { 0%, 100% { transform: translateY(1px); opacity: 0.4; } 50% { transform: translateY(-1.5px); opacity: 0.9; } }
.g-halo .ring { --move: halo 3.4s ease-in-out 2s infinite backwards; }
@keyframes halo { 0%, 100% { transform: scale(0.85); opacity: 0.5; } 50% { transform: scale(1.12); opacity: 1; } }
.g-starfall .dot { --move: star 3s ease-in-out var(--move-at, 2s) infinite backwards; }
.g-starfall .d2 { --move-at: 2.15s; }
.g-starfall .d3 { --move-at: 2.3s; }
.g-starfall .d4 { --move-at: 2.45s; }
.g-starfall .d5 { --move-at: 2.6s; }
@keyframes star { 0%, 100% { opacity: 0.3; transform: translateY(1px); } 30% { opacity: 1; transform: translateY(-2px); } }
.g-bloom .petal { --move: bloom 3.6s ease-in-out var(--move-at, 2s) infinite backwards; }
.g-bloom .p2 { --move-at: 2.3s; }
@keyframes bloom { 0%, 100% { transform: scaleX(0.82); opacity: 0.35; } 50% { transform: scaleX(1.08); opacity: 1; } }

/* ---------------------------------------------------------------------------------------------------------
   Craft: the plugin at its own size, and a loupe travelling over it to each detail while the page scrolls. The lens
   is a ring of the same rubber, stitched round and lit along its top, floating over the plate on its own shadow;
   inside it the plugin at two and a half times (a little less for a detail framed whole), under the glass's own
   reflection and a soft dark at its rim. */
.craft-run { height: 180vh; }
.craft-pin { position: sticky; top: var(--pin-top, 98px); display: grid; grid-template-columns: var(--cols); gap: var(--col-gap); align-items: center; }
.craft-list { list-style: none; margin: 0; padding: 0; }
.craft-list li { border-top: 1px solid color-mix(in srgb, var(--line-strong) 45%, transparent); }
.craft-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 45%, transparent); }
/* Each detail is a button on the same lamp, number and words columns as the steps in How it works: pressing it takes
   the loupe there. */
.craft-list button { appearance: none; display: grid; grid-template-columns: 28px 46px minmax(0, 1fr); align-items: baseline; width: 100%; margin: 0; padding: 15px 0; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* The lamp sits on the first line of the words: 22.5px is one line of them. */
.craft-list .step-lamp { align-self: start; height: 22.5px; padding: 0; border: 0; }
.craft-list .step-n { display: block; padding: 0; border: 0; transition: color 0.5s var(--ease); }
.craft-words { font-size: 15px; line-height: 1.5; letter-spacing: -0.008em; color: var(--muted); text-wrap: balance; transition: color 0.5s var(--ease); }
.craft-list b { font-weight: 500; }
.craft-list li.on .step-n, .craft-list li.on .craft-words { color: var(--text); }
.craft-list li:not(.on) button:hover .craft-words { color: color-mix(in srgb, var(--text) 78%, var(--muted)); transition-duration: 0.18s; }
/* The keyboard's ring is the one How it works draws: round the whole row, 10px past the lamp and the words, its top
   and foot on the row's two hairlines. */
.craft-list button { position: relative; }
.craft-list button::after { content: ""; position: absolute; inset: -1px -10px -1px; border-radius: 8px; pointer-events: none; }
.craft-list button:focus-visible { outline: none; }
.craft-list button:focus-visible::after { outline: 2px solid color-mix(in srgb, var(--text) 70%, transparent); outline-offset: -2px; }
.loupe-stage { position: relative; margin: 0; --lens: clamp(170px, 16vw, 236px); }
.loupe-plate { position: relative; container-type: inline-size; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(var(--sh), calc(0.3 * var(--sh-k))), 0 18px 34px -18px rgba(var(--sh), calc(0.7 * var(--sh-k))); }
.loupe-plate img { width: 100%; height: auto; }
/* The plugin's screen, lit as the hero's is: the breath field and the note, on the plate and again in the lens. */
.craft-field { position: absolute; pointer-events: none; }
.loupe {
  position: absolute;
  left: 0; top: 0;
  width: var(--lens);
  height: var(--lens);
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--face-1) 70%, rgb(var(--hi)) 30%) 0%, var(--face-2) 45%, var(--face-3) 100%);
  box-shadow:
    -6px -6px 14px rgba(var(--hi), calc(min(0.06 * var(--hi-k), 0.8))),
    0 18px 30px -6px rgba(var(--sh), calc(0.75 * var(--sh-k))),
    0 40px 60px -26px rgba(var(--sh), calc(0.6 * var(--sh-k))),
    0 0 0 1px rgba(var(--sh), calc(0.35 * var(--sh-k))),
    inset 1px 1.5px 1px rgba(var(--hi), calc(min(0.22 * var(--hi-k), 0.95))),
    inset -1px -2px 3px rgba(var(--sh), calc(0.4 * var(--sh-k)));
  transform: translate(calc(var(--px, 0px) - 50%), calc(var(--py, 0px) - 50%)) scale(var(--lift, 1));
  will-change: transform;
}
.loupe::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1.2px dashed var(--thread); pointer-events: none; filter: drop-shadow(0 1px 0 var(--thread-glow)); }
.loupe-lens { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--ground); box-shadow: inset 0 0 0 1px rgba(var(--sh), calc(0.5 * var(--sh-k))); }
.loupe-zoom { position: absolute; left: 0; top: 0; width: var(--zw, 1000px); container-type: inline-size; transform: translate(var(--zx, 0px), var(--zy, 0px)) scale(var(--zs, 1)); transform-origin: 0 0; filter: blur(var(--motion, 0px)); will-change: transform; }
.loupe-zoom img { width: 100%; max-width: none; height: auto; }
.loupe-lens::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 32% 18%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.22) 100%);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------------------------------------------------------
   Specs and availability, side by side; then the questions. */
/* The plate is taller than Specs' words, so the words keep to the band's top, level with the plate, as every other
   band's do. */
.specs-section .band-words { align-self: start; }
/* Availability is the plate's width, so the plate sits squarely on its column and the seam between the columns runs up
   to the plate's edge. */
.specs-section { --plate-w: clamp(300px, 30vw, 390px); --spec-line: calc(15.5px * 1.45); }
.specs-body { display: grid; grid-template-columns: minmax(0, 1fr) var(--plate-w); align-items: stretch; }
.spec-sheet { padding-right: var(--clear); }
.availability { padding-left: var(--clear); }
/* The seam between the two columns starts a stitch's gap under the seam across, as the Features pair's does, and
   stops a gap short of the module's own stitching. Side by side only; stacked, it runs across (see max-width: 980px). */
@media (min-width: 981px) {
  .specs-body > .seam-left::before { top: calc(3px - var(--clear)); bottom: calc(8px - var(--mod-pad)); background-repeat: no-repeat space; }
}
.spec-sheet .module-title, .availability .module-title { text-align: left; margin-bottom: 18px; }
.spec-list { margin: 0; }
.spec-list div { display: grid; grid-template-columns: minmax(110px, 0.32fr) minmax(0, 1fr); align-items: baseline; gap: 20px; padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--line-strong) 40%, transparent); }
.spec-list div:last-child { border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 40%, transparent); }
.spec-list dt { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.spec-list dd { margin: 0; font-size: 15.5px; line-height: var(--spec-line); letter-spacing: -0.008em; text-wrap: pretty; }
.availability { display: flex; flex-direction: column; }
/* The status (Out now) is a row of the sheet beside it: ruled the same and one row tall, its words on Formats' baseline across
   the seam (the mono sits a pixel higher in its line than the sheet's sans, so it takes a pixel more above). */
.status { display: flex; align-items: center; gap: 12px; margin: 0; padding: 15px 0 13px; font-size: 13px; line-height: var(--spec-line); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; border-top: 1px solid color-mix(in srgb, var(--line-strong) 40%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 40%, transparent); }
.availability .body { margin-top: 18px; }
/* The key follows its sentence; whatever height the column has to spare falls at its foot. */
.availability .key.wide { width: 100%; height: 52px; margin-top: 30px; }
/* The price and the trial, in Availability here and on the buy page. */
.buy-price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 2px; }
.buy-amount { font-family: var(--font-display); font-weight: var(--display-weight, 600); font-size: clamp(44px, 5vw, 60px); line-height: 1; letter-spacing: -0.02em; color: var(--text); font-synthesis: none; }
.buy-once { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.buy-trial {
  align-self: center; margin-top: 14px; font-size: 14px; color: var(--text);
  text-decoration: underline 1px color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px;
}
.buy-trial:hover { text-decoration-color: currentColor; }
/* Under the trial, the other system's installer, in one quiet line (trial.js says which is which). */
.trial-other { align-self: center; margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.trial-other a { color: inherit; text-decoration: underline 1px color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px; }
.trial-other a:hover { text-decoration-color: currentColor; }

/* The questions' own padding folded into the module's rhythm: the first sits the band's distance under the seam, the
   last the module's padding above its stitch (never closer than 12px clear of it, so a focused row stays inside the
   stitch on phones). */
.faq-list { --q-pad: 22px; margin-top: calc(var(--clear) - var(--q-pad)) !important; margin-bottom: max(calc(-1 * var(--q-pad)), calc(18px - var(--mod-pad))); }
.faq-list details { border-top: 1px solid color-mix(in srgb, var(--line-strong) 40%, transparent); }
.faq-list details:first-child { border-top: 0; }
.faq-list summary { position: relative; list-style: none; padding: var(--q-pad) 44px var(--q-pad) 0; font-size: clamp(16.5px, 1.25vw, 18.5px); font-weight: 500; letter-spacing: -0.012em; text-wrap: balance; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
/* The knob's edge is the content's edge, as the keys' are. */
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%;
  background:
    linear-gradient(var(--text), var(--text)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 10px no-repeat,
    linear-gradient(145deg, color-mix(in srgb, var(--face-1) 80%, rgb(var(--hi)) 20%), var(--face-2) 50%, var(--face-3));
  box-shadow: -3px -3px 7px rgba(var(--hi), calc(min(0.07 * var(--hi-k), 0.9))), 3px 4px 8px rgba(var(--sh), calc(0.5 * var(--sh-k))), 0 0 0 1px rgba(var(--sh), calc(0.22 * var(--sh-k)));
  transition: transform 0.4s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 56px 24px 0; font-size: 15.5px; line-height: 1.65; letter-spacing: -0.008em; color: color-mix(in srgb, var(--text) 62%, var(--muted)); max-width: 68ch; }
/* An answer opens at the knob's pace: its box eases from nothing to its own height while the words fade up. The 6px
   the answer tucks under its question is the question's own margin, so it eases with the box and never snaps at the
   end. (stitch.js keeps the module's stitches still as it grows.) */
.faq-list details[open] > summary { margin-bottom: -6px; }
@supports selector(::details-content) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list summary { transition: margin-bottom 0.45s var(--ease); }
  .faq-list details::details-content { height: 0; overflow: clip; opacity: 0; transition: height 0.45s var(--ease), opacity 0.3s var(--ease), content-visibility 0.45s allow-discrete; }
  .faq-list details[open]::details-content { height: auto; opacity: 1; }
}

.well {
  display: flex; align-items: center; gap: 8px;
  max-width: 520px; padding: 7px 7px 7px 20px; border-radius: 18px;
  background: var(--well);
  box-shadow: inset 0 2px 5px rgba(var(--sh), calc(0.5 * var(--sh-k))), inset 0 0 0 1px rgba(var(--sh), calc(0.12 * var(--sh-k))), 0 1px 0 rgba(var(--hi), calc(min(0.08 * var(--hi-k), 0.8)));
}
.well input {
  flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 17px; color: var(--text); caret-color: var(--text);
}
.well input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
/* Typing in it, the field takes the ring every other control on the page takes, round the well's own corners. */
.well:has(input:focus) { outline: 2px solid color-mix(in srgb, var(--text) 70%, transparent); outline-offset: 3px; }
@supports not selector(:has(*)) { .well:focus-within { outline: 2px solid color-mix(in srgb, var(--text) 70%, transparent); outline-offset: 3px; } }
/* The field says it too while the address is wrong: its ring in the clip red while you're in it, and the same ring,
   finer, once you've left it. The ring stays outside the well, so the Join key's own ring, inside it, never runs
   alongside, and the well keeps its own rim and lip. */
.well:has(input[aria-invalid="true"]:focus) { outline-color: color-mix(in srgb, var(--clip) 85%, transparent); }
.well:has(input[aria-invalid="true"]:not(:focus)) { outline: 1px solid color-mix(in srgb, var(--clip) 85%, transparent); outline-offset: 3px; }
/* The Join key sits down in the well, so its light and shadow are only as big as the gap around it. */
.well .key {
  box-shadow:
    -2px -2px 5px rgba(var(--hi), calc(min(0.03 * var(--hi-k), 0.45))),
    2px 3px 6px rgba(var(--sh), calc(0.45 * var(--sh-k))),
    0 0 0 1px rgba(var(--sh), calc(0.3 * var(--sh-k))),
    inset 1px 1px 1px rgba(var(--hi), calc(min(0.2 * var(--hi-k), 0.95))),
    inset -1px -2px 3px rgba(var(--sh), calc(0.4 * var(--sh-k)));
}
.well .key:hover {
  box-shadow:
    -3px -3px 7px rgba(var(--hi), calc(min(0.035 * var(--hi-k), 0.55))),
    3px 4px 8px rgba(var(--sh), calc(0.5 * var(--sh-k))),
    0 0 0 1px rgba(var(--sh), calc(0.3 * var(--sh-k))),
    inset 1px 1px 1px rgba(var(--hi), calc(min(0.24 * var(--hi-k), 1))),
    inset -1px -2px 3px rgba(var(--sh), calc(0.4 * var(--sh-k)));
}
.well .key:active, .well .key.pressing {
  box-shadow:
    -1px -1px 3px rgba(var(--hi), calc(min(0.02 * var(--hi-k), 0.3))),
    1px 1px 3px rgba(var(--sh), calc(0.4 * var(--sh-k))),
    0 0 0 1px rgba(var(--sh), calc(0.3 * var(--sh-k))),
    inset 1px 1px 1px rgba(var(--hi), calc(min(0.14 * var(--hi-k), 0.8))),
    inset -1px -2px 3px rgba(var(--sh), calc(0.4 * var(--sh-k)));
}
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join-status { min-height: 1.6em; margin: 18px 0 0; font-size: 15px; color: var(--muted); }

/* ---------------------------------------------------------------------------------------------------------
   The footer: a band of the plugin's hide in the other finish (dark on the cream page, cream on the dark), with a
   fine grain to it, piped and hemmed where it meets the page. The list sits first, beside the name's meaning and
   the links; under them the name itself, embroidered across the hide in satin thread that catches the light as you
   move, sewn in left to right the first time you reach it, with breath rising through the letters. */
.footer {
  position: relative;
  margin-top: var(--section);
  padding-bottom: 18px;
  color: var(--text);
  background:
    var(--grain),
    radial-gradient(120% 70% at 50% 0%, var(--ground-glow) 0%, transparent 60%),
    var(--bar);
  box-shadow:
    0 -1px 0 rgba(0, 0, 0, 0.35),
    0 -3px 0 rgba(255, 236, 214, 0.04),
    0 -4px 0 rgba(0, 0, 0, 0.18),
    0 -18px 34px -18px rgba(var(--sh), 0.5),
    inset 0 18px 26px -18px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  /* the band's width (100cqw), for the seam over the name to run as far as the hems do */
  container-type: inline-size;
}
/* The hem: the bar's running stitch, a hand's width under the top edge. */
.footer::before {
  content: "";
  position: absolute;
  left: 16px; right: 16px; top: 10px;
  height: 6px;
  background: var(--stitch-x, repeating-linear-gradient(90deg, var(--thread) 0 4px, transparent 4px 8px)) 0 0 / 7px 6px repeat-x;
  pointer-events: none;
}
/* And the same hem at the foot, so the band is hemmed alike top and bottom. */
.footer::after { left: 16px; right: 16px; bottom: 10px; }
/* While the small player waits at the foot of the window (78px tall, 18px up), the band runs on under it, so its last
   line ("Back to the top") can always be scrolled clear of it, 12px above: the 46px already under that line, and 62
   more. It's made the first time the player comes up and kept, so pausing at the very end never pulls the page up;
   it only ever grows below the window, so nothing on screen moves. */
:root:has(.mini-player.show) .footer, :root.mini-used .footer { padding-bottom: 80px; }
.foot-inner { position: relative; max-width: calc(var(--wide) + 2 * var(--edge)); margin: 0 auto; padding: clamp(80px, 9vw, 124px) var(--edge) 28px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }

/* Reached from a link to the list (#join, or /#join from another page): the footer's top edge comes to rest
   just under the bar, its hem showing, the form a full inset below. The page's script measures the bar as it is;
   this is the same landing without it (--bar-h, the phone's bar, else the bar's 70px, and .foot-inner's top
   padding). */
#join { scroll-margin-top: calc(var(--bar-h, 70px) + clamp(80px, 9vw, 124px)); }
.foot-join .heading { outline: none; }
.foot-label { display: block; max-width: 40ch; margin-top: 20px; font-size: 16.5px; line-height: 1.55; letter-spacing: -0.01em; color: color-mix(in srgb, var(--text) 62%, var(--muted)); }
.foot-join .well { max-width: 520px; margin: 30px 0 0; padding: 8px 8px 8px 22px; border-radius: 20px; }
.foot-join .well input { height: 52px; font-size: 17.5px; }
/* Its corners follow the well's, 8px in from them. */
.foot-join .key.ink { --r: 12px; height: 52px; padding: 0 26px; }
.foot-join .join-status { margin-top: 14px; text-wrap: pretty; }
/* The list's error in a true signal red (--clip), deep on the cream footer and bright on the dark, never the breath's
   coral. */
.join-status.error { color: var(--clip); }
.join.done .well { opacity: 0.5; pointer-events: none; }

.foot-side { display: flex; flex-direction: column; gap: clamp(40px, 4vw, 56px); padding-top: 10px; }
.meaning { margin: 0; text-wrap: balance; font-size: clamp(22px, 2vw, 30px); line-height: 1.35; letter-spacing: -0.018em; color: var(--muted); }
.meaning span { display: block; }
.meaning span:first-child { font-style: italic; color: var(--text); }
/* Two by two: Product and Made for, then Learn and Contact, so the instrument names and the address never squeeze. */
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; padding-top: 28px; border-top: 1px solid color-mix(in srgb, var(--line-strong) 55%, transparent); }
.foot-cols div { --row-gap: 11px; display: flex; flex-direction: column; gap: var(--row-gap); min-width: 0; }
/* Each link is as wide as its words, so its ring hugs them, and takes taps over its whole row, halfway into the gap
   either side and a little past its ends, through an empty layer. */
.foot-cols a { position: relative; align-self: flex-start; }
.foot-cols a::after { content: ""; position: absolute; inset: calc(var(--row-gap) / -2) -8px; }
/* Where it's tapped, the rows open out to a fingertip each, 44px, and the lists stand further apart to stay four;
   each list's name keeps its own distance to its first link either way. */
@media (max-width: 980px), (pointer: coarse) {
  .foot-cols { row-gap: 40px; }
  .foot-cols div { --row-gap: 21px; }
}
.foot-cols p { margin: 0 0 calc(15px - var(--row-gap)); font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
/* Side by side, the two columns share two rows: the list's head beside the name's meaning, their first lines level,
   then the well beside the links, with the links' rule on the well's top edge. The columns take the rows' own gap. */
@media (min-width: 981px) {
  .foot-top { grid-template-rows: auto auto; row-gap: 30px; }
  .foot-join, .foot-side { display: grid; grid-row: 1 / 3; grid-template-rows: subgrid; }
  .foot-side { gap: normal; padding-top: 0; }
  .foot-join .well { margin-top: 0; }
  /* the italic's tall letters on the eyebrow's capitals (those sit 5px into their line, these 0.28em into theirs) */
  .meaning { align-self: start; margin-top: calc(5px - 0.28em); }
  .foot-cols { align-self: start; }
}
/* Until the address fits its own column, the links go two by two, as they do on a phone. */
@media (min-width: 981px) and (max-width: 1180px) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.footer a { text-decoration: none; font-size: 14.5px; color: color-mix(in srgb, var(--text) 80%, var(--muted)); transition: color 0.3s; }
.footer a:hover { color: var(--text); }

/* The name, let through the hide: perforations punched through the footer's leather, full size in the body of each
   letter and graded to pinpoints at its edges, so the letters are drawn by the holes alone; warm light behind the
   hide breathes through them (home/perfmark.js finds the holes; the footer script draws the light). */
.foot-mark-wrap { position: relative; margin: clamp(56px, 7vw, 96px) calc(var(--edge) * -1) 0; padding: clamp(18px, 2vw, 28px) 0 clamp(8px, 1vw, 16px); }
/* The seam over the name is sewn from hem end to hem end, 16px in from the band's edges as the hems are, however much
   wider than the column the band is: thread runs the band's width, the hairlines the column's. */
.foot-mark-wrap::before {
  content: "";
  position: absolute;
  left: calc(16px - (100cqw - 100%) / 2); right: calc(16px - (100cqw - 100%) / 2); top: -3px;
  height: 6px;
  background: var(--stitch-x, repeating-linear-gradient(90deg, var(--thread) 0 4px, transparent 4px 8px)) 0 0 / 7px 6px repeat-x;
}
.foot-mark {
  position: relative;
  margin: 0;
  text-align: center;
  font-family: var(--font-logo);
  /* as large as the width allows, whatever the face: home.js measures the name and sets --fit */
  font-size: min(clamp(96px, 27.5vw, 500px), var(--fit, 500px));
  line-height: 0.84;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  user-select: none;
}
/* Without the script the name is simply printed in the light's colour. */
.foot-mark-text { display: inline-block; color: #d7a66c; }
.js .foot-mark-text { color: transparent; }
.foot-light, .foot-rims { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin-top: clamp(20px, 2vw, 30px);
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 55%, transparent);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
/* The legal pages, quiet in the same row: the row's own size and colour, each tap widened to 44px. */
.foot-legal .foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer .foot-links a { position: relative; font-size: 11.5px; letter-spacing: 0.03em; color: var(--muted); }
.footer .foot-links a:hover { color: var(--text); }
.foot-links a::after { content: ""; position: absolute; inset: -13px -8px; }
.footer .foot-up { position: relative; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: 0.03em; color: var(--muted); }
/* its taps over 44px, through an empty layer, so the row keeps its height */
.foot-up::after { content: ""; position: absolute; inset: -13px -8px; }
.foot-up svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.foot-up:hover svg { transform: translateY(-2px); }

/* ---------------------------------------------------------------------------------------------------------
   The finish changing: the new one opens from the sun or moon. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: unveil 0.9s var(--ease-out); }
@keyframes unveil { from { clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 32px)); } to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 90%) var(--vt-y, 32px)); } }

/* ---------------------------------------------------------------------------------------------------------
   Smaller windows. */
/* The nav gives up links from its end as the window narrows, so it never comes closer to the tab than on a wide
   screen. */
@media (max-width: 1300px) {
  .bar-nav a:nth-child(n + 5) { display: none; }
}
@media (max-width: 1180px) {
  .bar-nav a:nth-child(n + 3) { display: none; }
}
/* Below 1100 the bar's right side is too narrow for Out now, the theme key and Buy beside a centred tab. The
   hero says Out now just under it. */
@media (max-width: 1100px) {
  .bar-end .bar-soon { display: none; }
}
@media (max-width: 900px) {
  .bar-nav { display: none; }
  .bar { grid-template-columns: 1fr auto 1fr; }
}
/* Below 760 a centred tab leaves no room for the keys beside it, so the tab moves to the left, over the column's
   edge, and the bar's stitch runs from just past it to the column's other edge, under the end of Join, so the strip
   is finished alike at both ends. */
@media (max-width: 760px) {
  .bar { grid-template-columns: auto 1fr auto; }
  .bar-tab { grid-column: 1; justify-self: start; width: 140px; height: 90px; margin-bottom: -26px; }
  .bar-tab .wordmark { font-size: 26px; }
  .bar::before { display: none; }
  .bar::after { left: calc(var(--bar-pad) + 156px); right: var(--bar-pad); width: auto; }
  /* the shorter tab on the left draws up less, so it hangs as the centred one does, its stitch 12px under the bar's */
  .bar.scrolled .bar-tab { transform: scale(0.94); transform-origin: 0 0; }
}
/* The steps stop being held still where the window is narrow or short: the stage rides along at the top and each
   step keeps its own words. */
/* Not held: phones and tablets, and windows too short to hold a section still (there the steps take turns on
   their own while the stage is in view). */
@media (max-width: 980px), (max-height: 699px) {
  .use-run, .craft-run { display: none; }
  .use-pin, .craft-pin { position: static; }
}
/* Narrow: the steps one under another, the stage riding along just under the bar. */
@media (max-width: 980px) {
  .use-pin { display: flex; flex-direction: column-reverse; align-items: stretch; }
  /* With the module's narrower inset the rows' keyboard ring reaches only 4px past them, to stay 12px off its stitch. */
  .step-title > button::after { left: -78px; right: -4px; }
  .craft-list button::after { left: -4px; right: -4px; }
  /* The stage's margin under it, taken back by the steps, is the room it leaves itself at the end: it lets go of the
     top once the last step sits whole under it, and the two go on together (--release, set by home.js). */
  .use-stage { position: sticky; top: calc(var(--bar-foot, 64px) + 8px); z-index: 3; margin-bottom: var(--release, 0px); }
  /* The steps go from sight as they reach the stage's foot, fading out over the 30px under it (--cut, where that
     foot falls in their column, set by home.js), so nothing has to be painted over them and the module shows
     round the stage as it is. The column reaches 16px out each side so the lamps' glow and the keyboard's ring
     aren't cut at its edges. */
  .steps-col {
    margin: calc(-1 * var(--release, 0px)) -16px 0;
    padding: 0 16px;
    -webkit-mask: linear-gradient(transparent var(--cut, -100px), #000 calc(var(--cut, -100px) + 30px));
    mask: linear-gradient(transparent var(--cut, -100px), #000 calc(var(--cut, -100px) + 30px));
  }
  .use-steps { display: block; }
  .use-steps::after { display: none; }
  /* Each step as long as its words. The one that's on is the one filling most of the room under the stage (home.js),
     and the others' words stay readable. */
  .use-step { display: grid; grid-template-columns: 28px 46px minmax(0, 1fr); padding-bottom: 28px; align-content: start; }
  .use-step > :not(.step-body) { grid-row: 1 !important; }
  .step-body { grid-row: 2; grid-column: 3; padding-top: 4px; border-top: 0; opacity: 0.75; transform: none; pointer-events: auto; -webkit-user-select: text; user-select: text; }
  .use-step.on .step-body { opacity: 1; transition-delay: 0s; }
}
/* Where the bar's tab hangs in the middle (above 760), the stage rides tucked up under the bar, its own name tab
   behind the bar's: the bar's tab hangs into its well in its place, 24px over the screen as its own does, rather than
   a second AFFLATO hanging just under the first. */
@media (min-width: 761px) and (max-width: 980px) {
  .use-stage { top: calc(var(--bar-foot, 84px) - 46px); }
}
/* A short phone keeps only the plugin's screen in the stage riding along, so the steps have room to be read under
   it; where the window is only a strip (a phone on its side) the stage stays in its place and the steps follow. */
@media (max-width: 980px) and (max-height: 760px) {
  .use-stage .session { display: none; }
}
@media (max-width: 980px) and (max-height: 500px) {
  .use-stage { position: relative; top: auto; }
}
@media (max-width: 980px) {
  .hero-grid, .player, .feature, .feature.flipside, .feature-pair, .specs-grid, .foot-top { grid-template-columns: minmax(0, 1fr); }
  /* the list runs the full width, so the instrument fits beside its title again */
  .track { padding-block: 13px; row-gap: 4px; }
  .track-words { flex-direction: row; align-items: baseline; gap: 10px; }
  .track-words span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .feature.flipside .feature-copy { order: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: calc(2 * var(--facts-gap)); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-pair, .specs-body { grid-template-columns: minmax(0, 1fr); }
  .feature-pair .feature:first-child, .spec-sheet { padding-right: 0; }
  .feature-pair .feature + .feature, .availability { padding-left: 0; }
  .feature-pair .feature + .feature { padding-top: var(--clear); }
  .availability { margin-top: var(--clear); padding-top: var(--clear); }
  /* the seams between side-by-side cells run across instead */
  .seam-left::before { top: -3px; bottom: auto; left: calc(6px - var(--mod-pad)); right: calc(6px - var(--mod-pad)); width: auto; height: 6px; background: var(--stitch-x, linear-gradient(var(--thread), var(--thread)) 0 50% / 100% 1.2px no-repeat) 0 0 / 7px 6px repeat-x; }
  .fx-bank { grid-template-columns: minmax(0, 1fr); }
  .fx-group.room { grid-column: 1; grid-row: auto; }
  .fx-list, .fx-group:first-child .fx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .craft-pin { grid-template-columns: minmax(0, 1fr); }
  /* The lens keeps the share of the plate it has side by side (about a third of its width), so a tablet's is as large. */
  .craft-pin .loupe-stage { order: -1; --lens: clamp(130px, 34vw, 248px); }
}
@media (min-width: 701px) and (max-width: 980px) {
  /* The facts two by two, sewn both ways: a seam across between the rows, a facts gap each side of it, and the
     seam down the middle broken a stitch's gap round it. */
  .facts li:nth-child(2)::before { bottom: calc(3px - var(--facts-gap)); }
  .facts li:nth-child(3)::before { top: calc(-3px - var(--facts-gap)); bottom: auto; left: 0; right: -100%; width: auto; height: 6px; background: var(--stitch-x, linear-gradient(var(--thread), var(--thread)) 0 50% / 100% 1.2px no-repeat) 0 0 / 7px 6px repeat-x; }
}
@media (max-width: 700px) {
  :root { --section: 100px; --edge: 12px; --seam: 10px; --mod-pad: 24px; }
  /* A phone's bar keeps less of the screen: its two keys a size smaller, so the strip gives up 8px and they still
     sit 12px clear of its stitch, each taking taps over 44px. The tab shortens with it and still hangs 20px, and
     drawn up its stitch still runs 12px under the bar's. */
  :root { --bar-h: 62px; }
  .bar { height: var(--bar-h); }
  .bar-end .key { height: 32px; }
  .bar-end .key.round { width: 32px; }
  .bar-end .key::after { inset: -6px; }
  .bar-tab { height: 82px; }
  .bar-join { padding: 0 14px !important; letter-spacing: 0.12em !important; }
  .hero { padding-top: 40px; }
  .hero-mod { padding: 30px var(--mod-pad) 36px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-meta { flex-direction: column; align-items: center; gap: 8px; }
  .hero-meta .sep { display: none; }
  .eyebrow { letter-spacing: 0.16em; }
  .bf-glass, .talk-glass { height: 300px; }
  .screen-breath b, .screen-note { font-size: 22px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li { padding: 0 calc(var(--mod-pad) - 6px); }
  /* one under another, each seam across sewn stitch to stitch midway between two facts */
  .facts li + li::before { left: 0; right: 0; top: calc(-3px - var(--facts-gap)); bottom: auto; width: auto; height: 6px; background: var(--stitch-x, linear-gradient(var(--thread), var(--thread)) 0 50% / 100% 1.2px no-repeat) 0 0 / 7px 6px repeat-x; }
  .track-words span { display: none; }
  .deck-bar { flex-wrap: wrap; gap: 12px; }
  .deck-bar .seg { margin-left: 0; width: 100%; }
  .deck-bar .seg button { padding: 0 13px; }
  .deck-on { display: none; }
  /* The take's instrument may take two lines, balanced; it always has room for two, sitting on the title, so the
     title holds still as the takes change. */
  .deck-now { right: 22px; }
  .deck-now span { display: flex; align-items: flex-end; min-height: 2.6em; line-height: 1.3; text-wrap: balance; }
  .mini-player { left: 10px; right: 10px; translate: 0 calc(100% + 30px); }
  .mini-player.show { translate: 0 0; }
  .mini-open { display: none; }
  .spec-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .faq-list summary { padding-right: 40px; }
  .faq-list details p { padding-right: 0; }
  /* the speaker and the plate under the words, the band's width; on a tablet they stay beside them */
  .band { grid-template-columns: minmax(0, 1fr); }
  .perf, .rating-plate { width: 100%; }
  .perf { height: 112px; }
  .foot-inner { padding-left: 22px; padding-right: 22px; }
  .foot-mark-wrap { margin-left: -22px; margin-right: -22px; }
  .seg button { padding: 0 13px; font-size: 12px; }
  .mini-keys, .mini-fx { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 6px; }
  .mini-keys .mk:nth-child(n + 4), .mini-fx .mfx:nth-child(n + 4) { display: none; }
  .mfx b { font-size: 9px; letter-spacing: 0.1em; }
  .stage-screen.module { height: 186px; }
  .stage-screen .mini { inset: 16px 14px 16px; gap: 10px; }
  .stage-title { top: 16px; left: 14px; right: 14px; }
  .use-stage { padding: 54px 12px 12px; }
  .use-stage .session { margin-top: 12px; }
  .use-stage .transport { display: none; }
  .stage-tab { width: 120px; height: 40px; }
  .stage-tab .wordmark { font-size: 17px; }
  .session { --head: 100px; padding: 10px; }
  .mini-chords { grid-template-columns: repeat(2, 1fr); }
  .cc:nth-child(n + 3) { display: none; }
  .drag span:last-child { display: none; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .module::after { -webkit-mask-image: none; mask-image: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  /* an answer opens at once (the rule above doesn't reach ::details-content) */
  .faq-list details::details-content { transition: none; }
  /* the effects' drawings drawn and still, each part at its full strength */
  .fx-key svg * { --move: none !important; }
}

/* The price on a buy key: set apart from the words by a hairline, quieter than them. */
.key-price { display: inline-flex; align-items: center; margin-left: 12px; padding-left: 12px; border-left: 1px solid color-mix(in srgb, currentColor 28%, transparent); opacity: 0.78; }

/* The close: the page ends on the offer. Words on the left, the two keys on the right, the promises under the seam. */
.close .band { align-items: center; }
.close-actions { display: grid; gap: 12px; width: clamp(240px, 24vw, 300px); }
.close-actions .key.wide { width: 100%; height: 52px; }
.close-promises { list-style: none; margin: 0; padding: var(--clear) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 40%, transparent); }
.close-promises li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.close-promises li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--signal, currentColor); opacity: 0.8; }
@media (max-width: 980px) {
  .close .band { grid-template-columns: minmax(0, 1fr); }
  .close-actions { width: 100%; }
  .close-promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .close-promises { grid-template-columns: minmax(0, 1fr); } }

/* The trial's note: what happens after the click (a 280 MB installer, then the 14 days start on their own). */
.trial-note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.trial-note a { color: inherit; }
.buy-tax { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.hero-meta + .trial-note { max-width: 46ch; margin: 14px auto 0; text-align: center; }
