/* BL-202 alpha page: the instrument face, black edition, on the web.
   Tokens and parts from docs/sketches/009-te-redesign.html (DESIGN.md). Plates are anodised chassis on the
   stage; every control is a key cap in a well; readouts are dot matrix on glass, drawn in canvas. */

@font-face {
  font-family: "Instrument Sans";
  src: url("font/InstrumentSans-latin-wdth-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* metric stand-in while the face loads: a condensed local sans, scaled to Instrument Sans' width */
@font-face {
  font-family: "IS Fallback";
  src: local("Roboto Condensed"), local("Arial Narrow"), local("Roboto");
  size-adjust: 94%;
}

:root {
  --stage: #0c0c0d;
  --orange: #ff6a13; --orange-skirt: #b84a08;
  --red: #e5162e; --red-skirt: #930b1b;
  --t1: #f2c014; --t1-skirt: #a8830a;
  --t2: #a996f2; --t2-skirt: #6f5dbd;
  --oled: #060607;
  --t-press: 30ms; --t-release: 90ms;
  --e-press: cubic-bezier(.3, 0, .6, 1); --e-release: cubic-bezier(.2, .9, .3, 1.12);
  --chassis: #1e1f21; --chassis-hi: #2c2d30; --chassis-lo: #0e0f10;
  --ink: #e6e6e0; --ink-2: #b4b5b0; --ink-3: #8e8f8a;
  --eng-d: rgba(0, 0, 0, .65); --eng-l: rgba(255, 255, 255, .07);
  --cap: #34353a; --cap-skirt: #111214; --cap-ink: #efefe9; --cap-ink-2: #a9aaa5;
  --well: #121314; --paper: #26272a; --paper-ink: #ecece6; --paper-2: #a9aaa5; --paper-line: #3a3b3f;
  --stopped-cap: #2a2b2f; --led-off: rgba(0, 0, 0, .45);
  /* OLED palette (canvas reads its own copy) */
  --oled-bezel: #0b0b0c; --oled-ink: #f3f2ea; --oled-mid: #a3a49e; --oled-dim: #7a7b76; --oled-off: #2a2b29;
  --oled-red: #ff3046; --oled-orange: #ff7a1f; --legend-on-colour: #151515;
  /* web-only, derived */
  --e-sheet-in: cubic-bezier(.16, 1, .3, 1); --e-sheet-out: cubic-bezier(.5, 0, .75, 0);
  --t-sheet-in: 180ms; --t-sheet-out: 120ms; --t-rm: 60ms;
  --font: "Instrument Sans", "IS Fallback", "Arial Narrow", "Helvetica Neue", sans-serif;
  --gutter: 12px; --pad: 20px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --r-badge: 2px; --r-glass: 3px; --r-small: 4px; --r-ctl: 6px; --r-key: 7px; --r-panel: 8px; --r-well: 9px; --r-sheet: 10px; --r-plate-phone: 16px; --r-plate: 24px;
  --sh-plate: inset 0 1px 0 var(--chassis-hi), inset 0 -2px 0 var(--chassis-lo), 0 30px 60px rgba(0, 0, 0, .55), 0 4px 10px rgba(0, 0, 0, .4);
  --sh-cap: 0 4px 0 var(--cap-skirt), 0 6px 8px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .35);
  --sh-cap-down: 0 1px 0 var(--cap-skirt), 0 2px 3px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .2);
  --sh-well: inset 0 2px 3px rgba(0, 0, 0, .35), 0 1px 0 var(--eng-l);
  --sh-glass: inset 0 2px 4px rgba(0, 0, 0, .8), 0 1px 0 var(--eng-l), 0 -1px 0 var(--eng-d);
  --sh-sheet: 0 12px 26px rgba(0, 0, 0, .3), 0 2px 0 var(--chassis-lo);
  --plate-bg: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, .035), transparent 60%), var(--chassis);
  --stage-h: 0px;
  color-scheme: dark;
}

/* ---------- base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--stage); color: var(--ink); font-family: var(--font);
  scrollbar-color: var(--cap) var(--stage); -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  font-synthesis: none;
}
body { margin: 0; -webkit-font-smoothing: antialiased; font-size: clamp(1rem, .95rem + .25vw, 1.125rem); font-weight: 450; font-stretch: 92%; letter-spacing: .005em; line-height: 1.55; overflow-x: clip; }
::selection { background: var(--orange); color: #000; }
input, select, textarea { caret-color: var(--orange); }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { a:hover { text-decoration-thickness: 2px; } }
p, h1, h2, h3, h4, dl, dd, ul, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; text-transform: uppercase; text-wrap: balance; }
img, canvas, svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.pic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: butt; stroke-linejoin: miter; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.svh-probe { position: absolute; top: 0; left: 0; width: 1px; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }
.print { font-size: 12px; font-weight: 600; font-stretch: 82%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); line-height: 1.2; font-variant-numeric: tabular-nums; }
.tnum, dd, figcaption, .join-code, .invite-url { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: var(--pad); top: -100px; z-index: 50; padding: 12px 16px; background: var(--ink); color: var(--chassis); border-radius: var(--r-small); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* focus: an ink outline over an orange ring, on every interactive element */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--orange); border-radius: var(--r-small); }
:where(h1, h2, h3, h4)[tabindex="-1"]:focus-visible, .outcome:focus-visible, .remembered:focus-visible { box-shadow: none; outline-offset: 6px; }
[id] { scroll-margin-top: calc(var(--stage-h) + 16px); }
/* the phone stage stops being sticky after the story, so later anchors only need a margin */
#face, #specs, .join [id] { scroll-margin-top: 16px; }

/* ---------- key caps: a cap in a well, with a skirt, travel and an LED ---------- */
.key {
  position: relative; display: inline-flex; vertical-align: top; padding: 2px 2px 6px; border: 0; border-radius: var(--r-well);
  background: var(--well); box-shadow: var(--sh-well); color: var(--cap-ink); font: inherit; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.key .cap {
  position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--r-key); background: var(--cap); box-shadow: var(--sh-cap);
  transition: transform var(--t-release) var(--e-release), box-shadow var(--t-release) ease-out;
}
.key .lg { font-size: 14px; font-weight: 700; font-stretch: 82%; letter-spacing: .08em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.key.down .cap, .key.kdown .cap, .key[aria-busy="true"] .cap {
  transform: translateY(3px); box-shadow: var(--sh-cap-down);
  transition: transform var(--t-press) var(--e-press), box-shadow var(--t-press) var(--e-press);
}
@media (hover: hover) { .key:hover .cap { box-shadow: 0 4px 0 var(--cap-skirt), 0 6px 8px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .45); } .key.down:hover .cap { box-shadow: var(--sh-cap-down); } }
.key:focus-visible { border-radius: var(--r-well); box-shadow: var(--sh-well), 0 0 0 5px var(--orange); }
.key:disabled { cursor: default; }
.key:disabled .lg { opacity: .55; }
.key[aria-pressed="true"] .cap { background: var(--ink); color: var(--chassis); }
.led { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--led-off); box-shadow: inset 0 .5px 0 rgba(0, 0, 0, .25); }
.led.on { background: var(--orange); box-shadow: inset 0 -.5px 0 rgba(0, 0, 0, .2), 0 0 3px var(--orange); }

/* ---------- plates, screws, engraving ---------- */
.plate { position: relative; background: var(--plate-bg); border-radius: var(--r-plate-phone); box-shadow: var(--sh-plate); }
.screw { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--chassis-lo); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .45), 0 1px 0 var(--eng-l); }
.screw::before, .screw::after { content: ""; position: absolute; left: 3.3px; top: 1.4px; width: 1.4px; height: 5.2px; background: var(--chassis-hi); opacity: .6; transform: rotate(var(--rot, 30deg)); }
.screw::after { transform: rotate(calc(var(--rot, 30deg) + 90deg)); }
.plate > .s1 { left: 6px; top: 6px; --rot: 22deg; }
.plate > .s2 { right: 6px; top: 6px; --rot: 71deg; }
.plate > .s3 { left: 6px; bottom: 6px; --rot: -14deg; }
.plate > .s4 { right: 6px; bottom: 6px; --rot: 48deg; }
.hairline { height: 0; border-top: 1px solid var(--eng-d); border-bottom: 1px solid var(--eng-l); }

/* ---------- the stage (phone first) ---------- */
.stage { padding: 0 var(--gutter) 10px; background: var(--stage); }
html.js .stage { position: sticky; top: 0; z-index: 10; margin-bottom: calc(var(--c, 0) * var(--stage-shrink, 0px)); }
html.js .stage::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; background: linear-gradient(var(--stage), rgba(12, 12, 13, 0)); pointer-events: none; }
.stage-head { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 2px; }
.brand { display: flex; flex-direction: column; gap: 3px; margin-right: auto; }
.wordmark { font-weight: 700; font-stretch: 75%; letter-spacing: -.01em; font-size: 24px; line-height: 1; }
.brand .print { font-size: 12px; }
.stage-head .key .cap { min-height: 40px; padding: 0 14px; }
.stage-head .key-motion .cap { padding: 0 12px; gap: 6px; }
.key-motion .pic { width: 14px; height: 14px; }
.stage-plate { padding: 12px 12px 6px; }
.stage-art { position: relative; height: calc(100px - 16px * var(--c, 0) + 6px + 20px * (1 - var(--c, 0)) + var(--kk) * 1.476 + 4px); }
.stage-foot { display: flex; align-items: center; height: 36px; margin-top: 6px; padding: 8px 2px 0; border-top: 1px solid var(--eng-d); box-shadow: inset 0 1px 0 var(--eng-l); }
.stage-foot .print { color: var(--ink-3); }
.stage { --k: min(28vw, 128px); --kk: calc(var(--k) - (var(--k) - 84px) * var(--c, 0)); }

/* portrait module: OLED with track 1 over track 2, then the two loop keys */
.pbezel { padding: 5px; border-radius: var(--r-well); background: var(--oled-bezel); box-shadow: var(--sh-glass); }
.pbezel .oled { width: 100%; height: calc(90px - 16px * var(--c, 0)); border-radius: var(--r-glass); background: var(--oled); }
.deck { display: flex; justify-content: space-evenly; margin-top: 6px; }
.mod { display: flex; flex-direction: column; align-items: center; }
.mod.t1, .loopkey.t1 { --tc: var(--t1); --tcs: var(--t1-skirt); }
.mod.t2, .loopkey.t2 { --tc: var(--t2); --tcs: var(--t2-skirt); }
.modlab { display: flex; align-items: center; gap: 8px; height: calc(20px * (1 - var(--c, 0))); opacity: calc(1 - var(--c, 0)); overflow: hidden; }
.modlab .tile { width: 18px; height: 18px; border-radius: var(--r-small); background: var(--tc); color: var(--legend-on-colour); font-weight: 700; font-stretch: 75%; font-size: 14px; line-height: 1; display: flex; align-items: flex-end; padding: 0 0 1px 3px; }
.ringbox { position: relative; display: block; width: calc(var(--kk) * 1.476); height: calc(var(--kk) * 1.476); }
.ringbox .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ringbox .loopwell { position: absolute; left: 50%; top: 50%; width: calc(var(--kk) * 1.095); height: calc(var(--kk) * 1.095); margin: calc(var(--kk) * -.5475) 0 0 calc(var(--kk) * -.5475); border-radius: 50%; background: var(--well); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .4), 0 1px 0 var(--eng-l); }
.ringbox .loopkey { position: absolute; left: 50%; top: 50%; width: var(--kk); height: calc(var(--kk) + 6px); margin: calc(var(--kk) * -.5 - 4px) 0 0 calc(var(--kk) * -.5); --word: calc(var(--kk) * .15); --pk: calc(var(--kk) * .12); }

/* the round loop key, shared by the phone module, the full face and the JOIN key */
.loopkey { border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.loopkey .cap {
  position: absolute; inset: 0 0 6px 0; border-radius: 50%; background: var(--cap); color: var(--cap-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%; overflow: hidden;
  box-shadow: 0 6px 0 var(--cap-skirt), 0 9px 14px rgba(0, 0, 0, .24), inset 0 2px 0 rgba(255, 255, 255, .35);
  transition: transform var(--t-release) var(--e-release), box-shadow var(--t-release) ease-out;
}
.loopkey .cap::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .08); }
.loopkey .word { position: relative; font-size: var(--word, 25px); font-weight: 700; font-stretch: 78%; letter-spacing: .02em; line-height: 1; }
.loopkey .pic { position: relative; width: var(--pk, 20px); height: var(--pk, 20px); }
.loopkey.down .cap, .loopkey.kdown .cap, .arm.down .loopkey .cap, .arm.kdown .loopkey .cap {
  transform: translateY(5px); box-shadow: 0 1px 0 var(--cap-skirt), 0 2px 4px rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 255, 255, .2);
  transition: transform var(--t-press) var(--e-press), box-shadow var(--t-press) var(--e-press);
}
.loopkey[data-s="EMPTY"] .word { color: var(--cap-ink-2); }
.loopkey[data-s="ARMED"] .cap { box-shadow: 0 6px 0 var(--cap-skirt), 0 9px 14px rgba(0, 0, 0, .24), inset 0 0 0 var(--arm-w, 2px) var(--cap-ink); transition: none; }
.loopkey[data-s="REC"] .cap { background: var(--red); color: #fff; box-shadow: 0 6px 0 var(--red-skirt), 0 9px 14px rgba(0, 0, 0, .24); transition: none; }
.loopkey[data-s="REC"].down .cap { box-shadow: 0 1px 0 var(--red-skirt); }
.loopkey[data-s="PLAY"] .cap { background: var(--tc); color: var(--legend-on-colour); box-shadow: 0 6px 0 var(--tcs), 0 9px 14px rgba(0, 0, 0, .24), inset 0 2px 0 rgba(255, 255, 255, .3); transition: none; }
.loopkey[data-s="PLAY"].down .cap { box-shadow: 0 1px 0 var(--tcs); }

/* ---------- hero ---------- */
.hero { padding: 20px var(--pad) 40px; }
h1 { font-size: clamp(2.875rem, 1.6rem + 5vw, 6rem); font-stretch: 75%; letter-spacing: -.01em; line-height: .9; margin-bottom: 16px; }
.lede { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 500; font-stretch: 90%; letter-spacing: 0; line-height: 1.35; max-width: 34ch; }
.lede-more { color: var(--ink-2); }
.keyrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.key-cta .cap { min-height: 46px; padding: 0 20px; }

/* ---------- story steps ---------- */
.steps { padding: 0 var(--pad); }
.step { padding: 8px 0 48px; }
html.js .step { position: relative; min-height: 110vh; min-height: 110svh; padding: 0; }
html.js .step[data-step="1"], html.js .step[data-step="3"] { min-height: 150vh; min-height: 150svh; }
/* the copy rides under the plate; the step in focus is in ink, the rest recede to ink-3 (never below 5:1) */
html.js .step-copy { position: sticky; top: calc(var(--stage-h) + 16px); z-index: 1; padding-bottom: 16px; background: var(--stage); }
html.js .step-copy h2 { color: color-mix(in srgb, var(--ink) calc(var(--w, 1) * 100%), var(--ink-3)); }
html.js .step-copy p { color: color-mix(in srgb, var(--ink-2) calc(var(--w, 1) * 100%), var(--ink-3)); }
html.js .step .shot { display: none; }
html:not(.js) .js-only { display: none; }
.state { margin-top: 14px; color: var(--ink); }
html.js .step-copy .state { color: color-mix(in srgb, var(--ink) calc(var(--w, 1) * 100%), var(--ink-3)); }
.rec .state::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--red); vertical-align: 1px; }

/* the loop boundary: an engraved rule at the exact scroll offset where track 2 flips from ARMED to REC,
   with the count-in marked on the approach. story.js places it; the probe line under the copy crosses it. */
.boundary { display: none; }
html.js .boundary.is-placed { display: block; position: absolute; left: 0; right: 0; top: calc(var(--b-top) - 3 * var(--beat)); height: calc(3 * var(--beat)); pointer-events: none; }
.boundary .beat { position: absolute; left: 0; height: 0; }
.boundary .beat:nth-child(1) { top: 0; }
.boundary .beat:nth-child(2) { top: var(--beat); }
.boundary .beat:nth-child(3) { top: calc(2 * var(--beat)); }
.boundary .beat::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 1px; background: var(--ink-3); transition: width var(--t-release) var(--e-release); }
.boundary .beat .print { position: absolute; left: 24px; top: 0; transform: translateY(-50%); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.boundary .beat.on::before { width: 18px; background: var(--ink); }
.boundary .beat.on .print { color: var(--ink); }
.boundary .rule { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-top: 1px solid var(--ink-3); box-shadow: 0 1px 0 var(--eng-d); }
.boundary .rule::before { content: ""; position: absolute; left: 0; top: -7px; width: 3px; height: 13px; background: var(--orange); }
.boundary .rule .print { position: absolute; left: 14px; bottom: 7px; color: var(--ink-2); white-space: nowrap; }
.boundary.crossed .rule { border-top-color: var(--ink); }
.boundary.crossed .rule .print { color: var(--ink); }
h2 { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.5rem); font-stretch: 78%; line-height: .95; margin-bottom: 14px; }
.step p, .face-section > p, .join-copy > p { max-width: 62ch; color: var(--ink-2); }
.step p + p { margin-top: 12px; }
.shot { margin-top: 18px; }
.shot-link { position: relative; display: block; min-height: 48px; border-radius: var(--r-small); background: var(--oled); box-shadow: var(--sh-glass); padding: 3px; text-decoration: none; }
.shot-link .crop { width: 100%; height: auto; border-radius: var(--r-badge); }
.shot .shot-tag { position: static; display: block; padding: 6px 2px 3px; background: none; }
.shot-tag { position: absolute; left: 8px; bottom: 8px; padding: 2px 5px; border-radius: var(--r-badge); background: rgba(6, 6, 7, .85); color: var(--ink-2); font-size: 12px; font-weight: 600; font-stretch: 82%; letter-spacing: .1em; text-transform: uppercase; line-height: 1.1; }
.jump { margin-top: 14px; font-size: 15px; }
.jump a { display: inline-block; padding: 12px 0; }

/* ---------- hold it sideways ---------- */
.face-section { padding: 64px var(--pad) 32px; }
.full-face { margin: 24px calc(-1 * var(--pad)) 0; }
.full-face .shot-link { border-radius: 0; padding: 0; background: none; box-shadow: none; }
.full-face .shot-tag { position: static; display: inline-block; margin: 8px var(--pad) 0; padding: 0; background: none; }
.shot-link:focus-visible { box-shadow: var(--sh-glass), 0 0 0 5px var(--orange); }
.full-face img { width: 100%; height: auto; }
.full-face figcaption { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); padding: 0 var(--pad); }
.turn { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--ink-2); }
.parts, .spec { margin-top: 28px; }
.parts > div, .spec > div, .needs > div { display: grid; grid-template-columns: minmax(84px, 30%) 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--eng-d); box-shadow: inset 0 1px 0 var(--eng-l); }
.parts dt, .spec dt, .needs dt { font-size: 12px; font-weight: 600; font-stretch: 82%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding-top: .3em; }
.parts dd, .spec dd, .needs dd { color: var(--ink); }
.needs-block h3 { font-size: clamp(1rem, .95rem + .2vw, 1.125rem); font-stretch: 82%; letter-spacing: .08em; margin-bottom: 8px; }

/* ---------- specification ---------- */
.specs { padding: 64px var(--pad) 32px; content-visibility: auto; contain-intrinsic-size: auto 900px; }
.spec-plate { margin: 20px calc(var(--gutter) - var(--pad)) 0; padding: 12px 20px 16px; }
.spec { margin-top: 0; }
.spec > div:first-child { border-top: 0; box-shadow: none; }
.badge { display: table; margin: 0 0 6px; padding: 2px 5px; border: 1px solid var(--ink-2); border-radius: var(--r-badge); font-size: 12px; font-weight: 600; font-stretch: 82%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); line-height: 1.1; vertical-align: 1px; }
.target-note { margin-top: 16px; color: var(--ink-2); max-width: 62ch; }

/* ---------- privacy policy (privacy.html): one plain column, no script ---------- */
.policy { max-width: 46rem; margin: 0 auto; padding: 16px 20px 48px; }
.policy .print a { display: inline-block; padding: 14px 0; }
.policy h1 { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.5rem); font-stretch: 78%; line-height: .95; margin: 12px 0 16px; }
.policy h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-stretch: 82%; letter-spacing: .04em; line-height: 1.1; margin: 44px 0 12px; scroll-margin-top: 16px; }
.policy section { scroll-margin-top: 16px; }
.policy h3 { font-size: 12px; font-stretch: 82%; letter-spacing: .12em; color: var(--ink); margin: 28px 0 8px; }
.policy p, .policy li { max-width: 62ch; color: var(--ink-2); }
.policy p + p, .policy p + ul, .policy ul + p, .policy li + li { margin-top: 10px; }
.policy ul { padding-left: 1.1em; }
.policy code { font: inherit; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.events > div { padding: 10px 0; border-top: 1px solid var(--eng-d); box-shadow: inset 0 1px 0 var(--eng-l); }
.events dd { color: var(--ink-2); }
.policy .back { margin-top: 40px; }
@media (min-width: 600px) {
  .events > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; }
}

/* ---------- join ---------- */
.join { padding: 64px var(--pad) 48px; scroll-margin-top: 8px; }
.join-copy > p { margin-bottom: 20px; }
.needs-block { margin-top: 8px; }
.needs { margin-top: 6px; }
.join-deck { margin-top: 32px; }
.join-plate { display: flex; flex-direction: column; align-items: center; margin: 0 calc(var(--gutter) - var(--pad)); padding: 24px 0 0; }
.arm { --k: min(56vw, 232px); --word: calc(var(--k) * .15); display: block; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.arm .ringbox { --kk: var(--k); }
.arm:focus-visible { border-radius: 50%; outline-offset: -8px; }
.loopkey[data-s="ARMED"] .cap { --arm-w: 6px; }
.loopkey[data-s="IN"] .word { color: var(--ink); }
.join-plate .slot { display: block; width: 72%; height: 0; margin: 14px 0 18px; border-top: 2px solid var(--eng-d); border-bottom: 1px solid var(--eng-l); }
.join-body {
  margin: -10px calc(var(--gutter) - var(--pad)) 0; padding: 24px 20px; border-radius: var(--r-sheet); background: var(--paper); color: var(--paper-ink); box-shadow: var(--sh-sheet);
  clip-path: inset(0 0 0 0 round var(--r-sheet)); transition: clip-path var(--t-sheet-in) var(--e-sheet-in);
  position: relative; z-index: 1;
}
@starting-style { .join-body { clip-path: inset(0 0 100% 0 round var(--r-sheet)); } }
html:not(.js) .join-body { margin-top: 24px; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--paper-line); }
.sheet-head h3 { font-size: clamp(1rem, .95rem + .2vw, 1.125rem); font-stretch: 82%; letter-spacing: .08em; }
.sheet-head .print { color: var(--paper-2); }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > label:not(.opt), .field > legend { display: block; margin-bottom: 8px; padding: 0; font-size: 12px; font-weight: 600; font-stretch: 82%; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-ink); }
.field input[type="email"], .field input[type="text"], .field select {
  display: block; width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: var(--r-ctl); background: #1f2023; color: var(--paper-ink);
  font: inherit; font-size: 16px; outline: 1px solid rgba(236, 236, 230, .6); outline-offset: -1px; appearance: none;
}
.field input::placeholder { color: var(--paper-2); opacity: 1; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; box-shadow: 0 0 0 5px var(--orange); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { outline: 2px solid var(--ink); outline-offset: -2px; }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 44px; }
.select-wrap option { background: var(--paper); color: var(--paper-ink); }
.chev { position: absolute; right: 14px; top: 16px; transform: rotate(90deg); pointer-events: none; color: var(--paper-ink); }
.help { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--paper-2); }
.detected { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; color: var(--paper-2); }
.detected-badge { overflow-wrap: anywhere; padding: 3px 7px; border-radius: var(--r-badge); background: var(--ink); color: var(--chassis); font-weight: 600; }
.link-button { min-height: 48px; padding: 0 4px; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
@media (hover: hover) { .link-button:hover { text-decoration-thickness: 2px; } }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; margin-top: 8px; padding: 8px 14px; border-radius: var(--r-ctl); outline: 1px solid rgba(236, 236, 230, .4); outline-offset: -1px; font-size: 16px; line-height: 1.3; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opt .sq { flex: none; width: 8px; height: 8px; outline: 1px solid currentColor; }
.opt:has(:checked) { background: var(--paper-ink); color: var(--paper); outline-color: var(--paper-ink); }
.opt:has(:checked) .sq { background: currentColor; }
.opt:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--orange); }
fieldset:has([aria-invalid="true"]) .opt { outline: 2px solid var(--ink); outline-offset: -2px; }
.field-error, .notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; padding: 8px 12px; border-radius: var(--r-small); background: var(--ink); color: var(--chassis); font-size: 14px; font-weight: 600; line-height: 1.4; }
.field-error[hidden] { display: none; }
.notice .pic { margin-top: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; visibility: hidden; } /* hidden from autofill too */
.key-send { display: flex; width: 100%; margin-top: 8px; }
.key-send .cap { min-height: 50px; }
.key-send .lg { font-size: clamp(1rem, .95rem + .2vw, 1.125rem); }
.key-send[aria-busy="true"] .led.on { animation: blink 1s steps(1) infinite; }
.key[aria-disabled="true"] { cursor: progress; }
.send-status { margin: 10px 0 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--paper-ink); }
.send-status[hidden] { display: none; }
@keyframes blink { 50% { background: var(--led-off); box-shadow: none; } }
.privacy { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--paper-line); font-size: 15px; line-height: 1.5; color: var(--paper-2); }
.privacy h4 { font-size: 12px; font-stretch: 82%; letter-spacing: .12em; color: var(--paper-ink); margin-bottom: 8px; }
.privacy p + p { margin-top: 8px; }
.privacy p + h4 { margin-top: 18px; }
.outcome, .remembered { margin-top: 24px; padding: 14px; border-radius: var(--r-panel); background: var(--plate-bg); box-shadow: var(--sh-plate); }
.outcome[hidden], .remembered[hidden] { display: none; }
.outcome > * + *, .remembered > * + * { margin-top: 14px; }
.outcome h3, .remembered h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-stretch: 78%; }
.outcome p, .remembered p { max-width: 62ch; }
.pending-address { overflow-wrap: anywhere; }
.pending-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pending-actions .key { flex: 1 1 14rem; min-width: 0; }
.pending-actions .key .cap { width: 100%; }
.pending-actions .key .lg { white-space: normal; line-height: 1.3; }
.pending-actions [hidden] { display: none; }
.pending-actions [aria-disabled="true"] .lg { opacity: .55; }
.pending-cooldown { font-variant-numeric: tabular-nums; }
.bezel { padding: 5px; border-radius: var(--r-well); background: var(--oled-bezel); box-shadow: var(--sh-glass); }
.readout { width: 100%; height: 64px; border-radius: var(--r-glass); background: var(--oled); }
.readout.two { height: 84px; }
.small { font-size: 15px; color: var(--ink-2); }
.invite > * + * { margin-top: 12px; }
.invite-url { overflow-wrap: anywhere; font-size: 15px; }
.code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.join-code { display: inline-block; padding: 6px 12px; border-radius: var(--r-badge); background: var(--ink); color: var(--chassis); font-size: 24px; font-weight: 700; letter-spacing: .12em; user-select: all; }

/* ---------- colophon ---------- */
.foot { margin: 0 var(--pad); padding: 28px 0 40px; border-top: 1px solid var(--eng-d); box-shadow: inset 0 1px 0 var(--eng-l); font-size: 15px; line-height: 1.5; color: var(--ink-2); content-visibility: auto; contain-intrinsic-size: auto 320px; }
.foot p { max-width: 62ch; }
.foot p + p { margin-top: 10px; }
.colour-bar { display: flex; flex-wrap: wrap; gap: 14px 20px; margin: 0 0 22px; padding: 0; list-style: none; }
.colour-bar li { display: flex; flex-direction: column; gap: 6px; }
.chip { display: block; width: 28px; height: 14px; border-radius: var(--r-badge); }
.c-ink { background: var(--ink); } .c-t1 { background: var(--t1); } .c-t2 { background: var(--t2); } .c-red { background: var(--red); } .c-mark { background: var(--orange); width: 8px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 18px; }
.foot-row a { display: inline-block; padding: 14px 0; color: var(--ink-2); }

/* ---------- viewer ---------- */
.viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--stage); color: var(--ink); overflow: auto; }
.viewer::backdrop { background: var(--stage); }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer img { width: 100%; height: auto; max-height: 100vh; max-height: 100dvh; object-fit: contain; }
.viewer-close { position: fixed; top: 12px; right: 12px; }

/* ---------- the full face (wide screens): 960 x 432 face units, scaled as one object ---------- */
.face { position: absolute; left: 0; top: 0; width: 960px; height: 432px; transform-origin: 0 0; transform: scale(var(--fs, 1)); border-radius: var(--r-plate); background: var(--plate-bg); box-shadow: var(--sh-plate); color: var(--ink); font-stretch: 82%; line-height: 1; }
.face > * { position: absolute; }
.face .screw { width: 10px; height: 10px; }
.face .screw::before, .face .screw::after { left: 4.2px; top: 1.8px; width: 1.6px; height: 6.4px; }
.face .hair { height: 0; border-top: 1px solid var(--eng-d); border-bottom: 1px solid var(--eng-l); }
.face .vhair { width: 0; border-left: 1px solid var(--eng-d); border-right: 1px solid var(--eng-l); }
.fprint { font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.fwordmark { font-weight: 700; font-size: 22px; letter-spacing: -.01em; font-stretch: 75%; }
.fwell { border-radius: 9px; background: var(--well); box-shadow: var(--sh-well); }
.fkey { border-radius: 7px; }
.fkey .cap { position: absolute; inset: 0 0 4px 0; border-radius: 7px; background: var(--cap); color: var(--cap-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: var(--sh-cap); transition: transform var(--t-release) var(--e-release), box-shadow var(--t-release) ease-out; }
.fkey.down .cap { transform: translateY(3px); box-shadow: var(--sh-cap-down); transition: transform var(--t-press) var(--e-press), box-shadow var(--t-press) var(--e-press); }
.fkey .lg { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fkey .lg.s { font-size: 9px; font-weight: 600; opacity: .8; }
.fkey .led { top: 5px; right: 5px; }
.fkey .led.tl { right: auto; left: 5px; }
.fkey .led.t1.on { background: var(--t1); box-shadow: 0 0 3px var(--t1); }
.fkey .led.t2.on { background: var(--t2); box-shadow: 0 0 3px var(--t2); }
.fedition { display: grid; place-items: center; color: var(--ink-3); }
.fedition .pic { width: 14px; height: 14px; }
.fkey.ico .pic { width: 20px; height: 20px; }
.fkey.all .cap { gap: 5px; }
.fkey.all .pic { width: 26px; height: 26px; color: var(--orange); }
.fkey.tap .cap { flex-direction: row; gap: 9px; }
.fkey.tap .pic { width: 20px; height: 20px; }
.fkey.rst .cap { gap: 3px; }
.stopkey .cap { flex-direction: row; gap: 9px; }
.stopkey .pic { width: 18px; height: 18px; }
.stopkey .stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.fbezel { border-radius: 9px; background: var(--oled-bezel); box-shadow: var(--sh-glass); }
.fbezel canvas { position: absolute; border-radius: 3px; background: var(--oled); }
.face .ring { pointer-events: none; }
.face .loopwell { border-radius: 50%; background: var(--well); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .4), 0 1px 0 var(--eng-l); }
.face .loopkey { --word: 25px; --pk: 20px; }
.face .tile { border-radius: 4px; background: var(--tc); color: var(--legend-on-colour); font-weight: 700; font-size: 30px; font-stretch: 75%; display: flex; align-items: flex-end; padding: 0 0 4px 6px; }
.fader .fprint { position: absolute; }
.fader .slot { position: absolute; width: 6px; border-radius: 3px; background: #0d0d0e; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .9), 0 1px 0 var(--eng-l); }
.fader .seg { position: absolute; height: 1px; background: var(--ink-3); opacity: .55; }
.fader .seg.maj { height: 2px; opacity: .9; background: var(--ink-2); }
.fader .tl { position: absolute; font-size: 9px; font-weight: 600; color: var(--ink-2); }
.fader .tl.z { color: var(--ink); font-weight: 700; }
.fader .zero { position: absolute; height: 2px; background: var(--orange); }
.fader .fcap { position: absolute; width: 36px; height: 24px; border-radius: 4px; background: var(--tc); color: #141414; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; letter-spacing: .02em; font-stretch: 80%; box-shadow: 0 3px 0 var(--tcs), 0 5px 7px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
/* callouts: engraved leaders onto the face's parts, shown while "Hold it sideways" is read */
.callouts { inset: 0; pointer-events: none; opacity: 0; transition: opacity 120ms ease-out; }
.callouts-on .callouts { opacity: 1; }
.callouts > * { position: absolute; }
.cdot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); box-shadow: 0 0 0 1px var(--chassis-lo); }
.cline { background: var(--ink-3); }
.clabel { display: flex; flex-direction: column; gap: 4px; white-space: nowrap; font-size: 13.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.clabel b { font-size: 15px; font-weight: 700; color: var(--ink); }
.clabel.r { align-items: flex-end; }

/* ---------- tablet: the phone story with a roomier module ---------- */
@media (min-width: 600px) and (max-width: 1279.98px) {
  :root { --gutter: 24px; --pad: 32px; }
  .stage { --k: min(20vw, 160px); }
  .deck { justify-content: center; gap: 15%; }
  .full-face { margin: 24px 0 0; }
}

/* ---------- desktop: the score on the left, the whole instrument on the right ---------- */
@media (min-width: 1280px) {
  :root { --pad: 0px; --gutter: 0px; }
  body { font-size: 18px; }
  .print { font-size: 13px; }
  .score, .specs, .join, .foot { display: grid; grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); column-gap: 56px; max-width: 1680px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
  .foot { display: block; margin: 0 auto; }
  .story-run { display: contents; }
  .story-run > :not(.stage), .face-section { grid-column: 1; }
  html.js .stage::after { display: none; }
  html.js .stage, .stage {
    grid-column: 2; grid-row: 1 / span 3; align-self: start; position: sticky; top: 0; height: 100vh; height: 100svh; margin: 0; padding: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: radial-gradient(60% 50% at 50% 45%, rgba(255, 255, 255, .03), transparent 70%);
  }
  .stage-head { position: absolute; top: 24px; left: -456px; right: 0; height: auto; gap: 12px; }
  .stage-plate { width: min(100%, 1100px); padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .stage-plate > .screw { display: none; }
  .stage-art { height: auto; aspect-ratio: 960 / 432; }
  .stage-foot { justify-content: flex-end; border: 0; box-shadow: none; margin-top: 18px; height: auto; }
  .hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0; }
  .steps { padding: 0; }
  html.js .step, html.js .step[data-step="1"], html.js .step[data-step="3"] { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
  html.js .step-copy { position: static; z-index: auto; background: none; padding: 64px 0; }
  html.js .step[data-step="3"] { align-items: flex-start; }
  html.js .step[data-step="3"] .step-copy { padding-top: calc(var(--b-top, 0px) + 72px); }
  .face-section { padding: 25vh 0 96px; padding: 25svh 0 96px; }
  .full-face { margin: 24px 0 0; }
  .full-face .shot-tag { margin-left: 0; }
  .turn { display: none; }
  .specs { padding-top: 128px; padding-bottom: 64px; align-items: start; grid-template-rows: auto 1fr; }
  .specs h2 { grid-column: 1; }
  .spec-plate { grid-column: 2; grid-row: 1 / span 2; max-width: 880px; margin: 0; padding: 18px 32px 22px; border-radius: var(--r-plate); }
  .target-note { grid-column: 1; grid-row: 2; }
  .join { padding-top: 128px; padding-bottom: 96px; align-items: start; }
  .join-plate { margin: 0; border-radius: var(--r-plate); }
  .join-deck { grid-column: 2; margin: 0; max-width: 880px; }
  .join-body { margin: -10px 0 0; }
  .join-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .sheet-head, .privacy { grid-column: 1 / -1; }
  .join-form > .field:has(#email) { grid-column: 1; grid-row: 2; }
  .join-form > .field:has(#android_version) { grid-column: 1; grid-row: 3; }
  .join-form > .field:has(#phone_model) { grid-column: 1; grid-row: 4; }
  .join-form > fieldset.field { grid-column: 2; grid-row: 2 / span 2; }
  .join-form > .field:has(#over_18) { grid-column: 2; grid-row: 4; }
  .key-send { grid-column: 2; grid-row: 5; align-self: end; margin: 0 0 20px; }
  .send-status { grid-column: 2; grid-row: 6; margin: -10px 0 20px; }
  .privacy { grid-row: 7; }
  .arm { --k: 232px; }
  .join-body { padding: 32px; }
  .foot { padding: 36px 48px 56px; border-top: 0; box-shadow: none; }
  .foot::before { content: ""; display: block; height: 0; margin-bottom: 28px; border-top: 1px solid var(--eng-d); border-bottom: 1px solid var(--eng-l); }
}
@media (min-width: 1440px) {
  .score, .specs, .join { padding-left: 64px; padding-right: 64px; }
}
@media (max-width: 1279.98px) { .callouts { display: none; } }

/* ---------- short phones ---------- */
@media (max-height: 700px) and (max-width: 1279.98px) {
  .stage { --k: min(24vw, 108px); --kk: calc(var(--k) - (var(--k) - 76px) * var(--c, 0)); }
  .pbezel .oled { height: 66px; }
  .stage-art { height: calc(76px + 6px + 20px * (1 - var(--c, 0)) + var(--kk) * 1.476 + 4px); }
  .lede-more { display: none; }
  html.js .step-copy { position: static; }
  html.js .step, html.js .step[data-step="1"], html.js .step[data-step="3"] { min-height: 0; padding: 24px 0 64px; }
}

/* ---------- a phone held sideways: the stage takes a sticky right-hand column, the story reads on the left ---------- */
@media (max-width: 1279.98px) and (min-width: 640px) and (max-height: 520px) and (orientation: landscape) {
  html.js .story-run { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 46%); column-gap: 24px; padding-right: env(safe-area-inset-right); }
  html.js .story-run > .stage {
    grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: 0; margin: 0;
    height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center;
  }
  html.js .story-run > .hero, html.js .story-run > .steps { grid-column: 1; min-width: 0; }
  html.js .stage::after { display: none; }
  html.js .stage-head { height: 52px; }
  html.js .stage-foot { height: 28px; margin-top: 2px; padding-top: 4px; }
}

/* ---------- reduced motion and PAUSE MOTION: states swap, nothing travels or pulses ---------- */
html[data-motion="paused"] .key .cap, html[data-motion="paused"] .loopkey .cap, html[data-motion="paused"] .fkey .cap { transition: box-shadow var(--t-rm) linear; }
html[data-motion="paused"] .key.down .cap, html[data-motion="paused"] .key.kdown .cap, html[data-motion="paused"] .loopkey.down .cap, html[data-motion="paused"] .arm.down .loopkey .cap, html[data-motion="paused"] .fkey.down .cap { transform: none; }
html[data-motion="paused"] .join-body { clip-path: none; transition: opacity 120ms linear; }
@starting-style { html[data-motion="paused"] .join-body { opacity: 0; clip-path: none; } }
html[data-motion="paused"] .key-send[aria-busy="true"] .led.on { animation: none; }
html[data-motion="paused"] .callouts, html[data-motion="paused"] .boundary .beat::before { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .key .cap, .loopkey .cap, .fkey .cap { transition: box-shadow var(--t-rm) linear; }
  .key.down .cap, .key.kdown .cap, .loopkey.down .cap, .arm.down .loopkey .cap, .fkey.down .cap { transform: none; }
  .join-body { clip-path: none; transition: opacity 120ms linear; }
  .key-send[aria-busy="true"] .led.on { animation: none; }
  .callouts, .boundary .beat::before { transition: none; }
  html { scroll-behavior: auto; }
}
.date { white-space: nowrap; }
