/* Landing page only. The legal/delivery/download pages keep /styles.css.
   The page is a board of tiles on 8px gaps, like the instrument's own pad
   grid: charcoal ground, brushed-aluminium and root-pad tiles, one green. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ground: #121214;
  --tile: #1c1d21;
  --tile-2: #27282d;
  --tile-3: #5d5e64;
  --alu: #c6c4be;          /* the brushed panel strip */
  --pad: #e7e6e2;          /* the light root pads */
  --ink: #f1f1ef;
  --ink-soft: #b4b5ba;
  --ink-dark: #121214;
  --accent: #3fa76f;       /* the active-tab green */
  --accent-ink: #0b0c0d;

  --gap: 8px;
  --margin: 10px;
  --pad-in: 24px;
  --radius: 6px;

  --s1: 15px;
  --s2: 18px;
  --s3: clamp(22px, 2.1vw, 30px);
  --s4: clamp(40px, 5.6vw, 96px);
  --s5: clamp(88px, 13vw, 210px);

  --face: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--face);
  font-size: var(--s2);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, figure { margin: 0; }
p { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
s { text-decoration-thickness: 2px; }
kbd { font-family: inherit; }

h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 0.98; text-wrap: balance; }
h2 { font-size: var(--s4); }
h3 { font-size: var(--s3); line-height: 1.15; letter-spacing: -0.015em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.tile {
  position: relative;
  background: var(--tile);
  border-radius: var(--radius);
  overflow: hidden;
}

.board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding: 0 var(--margin);
}

main > section + section,
main > section + div,
main > div + section { margin-top: var(--gap); }

.photo-tile img { width: 100%; height: 100%; object-fit: cover; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius);
  font-size: var(--s2);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button-dark { background: var(--ink-dark); color: var(--ink); }
.button-dark:hover { background: #26272c; }
.button-accent { background: var(--accent); color: var(--accent-ink); }
.button-accent:hover { background: #4cb87d; }

/* ---------- Hero: name band, link row, rails ---------- */

.hero {
  height: 100svh;
  min-height: 740px;
  max-height: 1100px;
  padding-top: var(--margin);
  grid-template-rows: clamp(110px, 11vw, 170px) 64px minmax(0, 1fr);
  padding-bottom: 0;
}

.name-band {
  grid-column: 1 / -1;
  background: var(--alu);
  color: var(--ink-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.name-band .name-mark {
  font-size: clamp(64px, 9vw, 150px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-0.04em);
}

.hero-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.link-tile {
  display: flex;
  align-items: flex-start;
  padding: 18px 20px;
  font-size: var(--s2);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--t-hover) var(--ease-out);
}
.link-tile:hover { background: var(--tile-2); }

.hero-centre {
  grid-column: 1 / 11;
  position: relative;
  min-height: 0;
}
.studio-photo { height: 100%; }
.studio-photo img { object-position: 50% 40%; }
.statement-tile {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(74%, 720px);
  padding: var(--pad-in) var(--pad-in) calc(var(--pad-in) + 4px);
  background: var(--ground);
  border-radius: 0 var(--radius) 0 var(--radius);
}
.statement-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: var(--s1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.statement-tile p {
  font-size: var(--s3);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 30ch;
  text-wrap: pretty;
}

.hero-rail {
  grid-column: 11 / 13;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr);
  gap: var(--gap);
  min-height: 0;
}
.rail-tile {
  padding: 14px 16px;
  font-size: var(--s2);
  line-height: 1.2;
}
.rail-figure {
  display: inline;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}
.rail-1 { background: var(--pad); color: var(--ink-dark); }
.rail-2 { background: var(--alu); color: var(--ink-dark); }
.rail-3 { background: var(--tile-3); color: var(--ink); }
.rail-4 { background: var(--tile-2); color: var(--ink); }
.rail-action {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.rail-action:hover { background: #4cb87d; }
.rail-action:active { transform: scale(0.98); }
.action-label { font-size: var(--s3); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.action-price { font-size: var(--s3); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.action-price s { font-weight: 400; }

/* ---------- Film: the demo video ---------- */

.film { margin-top: 120px !important; padding: 0 var(--margin); }
.film-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  padding: 0 var(--pad-in) 40px;
}
.film-head h2 { grid-column: 1 / 8; }
.film-head p { grid-column: 8 / 13; max-width: 40ch; }

.film-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0f0e;
}
.film-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0d0f0e;
}
.film-frame.tall { max-width: 520px; margin: 0 auto; }
.film-frame.tall video { aspect-ratio: 9 / 16; }
/* Same query home.js uses to pick the vertical cut. Sizing the frame from
   the first paint keeps #play where the browser jumped to on ad links
   (stillsynth.com/...#play); growing it later pushed the pads ~450px down. */
@media (max-width: 640px) and (orientation: portrait) {
  .film-frame { max-width: 520px; margin: 0 auto; }
  .film-frame video { aspect-ratio: 9 / 16; }
}

/* Until the first play the poster is greyed out, so the one bright thing
   in the frame is the play button - in colour the poster is the app's own
   UI, and a green button read as one more pad in it. */
.film-frame video { transition: filter 400ms var(--ease-out); }
.film-frame.idle video { filter: grayscale(1) brightness(0.32); }
.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: clamp(16px, 2.4vw, 32px);
  border: 0;
  background: rgba(13, 15, 14, 0.25);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.film-play-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(88px, 9vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  padding-left: 6px; /* optical centre of the triangle */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  transition: transform var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out);
}
.film-play-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: film-ping 2.4s var(--ease-out) infinite;
}
@keyframes film-ping { 0% { opacity: 0.6; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.45); } }
.film-play-label {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: var(--s3);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}
.film-play-time { font-size: var(--s1); font-weight: 500; letter-spacing: 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.film-play:hover .film-play-disc { transform: scale(1.06); background: #4cb87d; }
.film-play:active .film-play-disc { transform: scale(0.96); }
.film-play:focus-visible { outline: none; }
.film-play:focus-visible .film-play-disc { outline: 3px solid var(--ink); outline-offset: 6px; }

/* ---------- Play: the live pads ---------- */

/* Fast repeated taps are playing, not double-tap zoom or text selection:
   the whole instrument (pads, switches, readout and the gaps between them)
   ignores both. Pinch-zoom still works. */
.play,
.drums .pattern-picker {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.play .pads,
.play .switches,
.play .readout,
.play .pad,
.play .switch {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.play {
  margin-top: 120px !important;
  grid-template-rows: auto auto auto auto;
}
.play-head {
  grid-column: 1 / 6;
  padding: var(--pad-in);
  display: grid;
  align-content: start;
  gap: 20px;
}
.play-head p { max-width: 42ch; }
.play-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--s1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.play-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: live-blink 1.6s ease-in-out infinite; }
@keyframes live-blink { 50% { opacity: 0.25; } }
.play.idle #soundHint {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--s2);
  font-weight: 700;
  align-self: flex-start;
  animation: hint-blink 1.4s ease-in-out infinite;
}
@keyframes hint-blink { 50% { opacity: 0.35; } }

/* Until the first chord the root pads blink together, solid green with a
   small press, so the board reads as something to press, not a
   screenshot of one. A pale tint was lost against the light pads. */
.root > * { position: relative; z-index: 1; }
.root::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}
.play.idle .root { animation: pad-tap 1.4s var(--ease-out) infinite; }
.play.idle .root::after { animation: pad-blink 1.4s linear infinite; }
@keyframes pad-blink { 0%, 8%, 46%, 100% { opacity: 0; } 14%, 38% { opacity: 1; } }
@keyframes pad-tap { 0%, 8%, 46%, 100% { transform: none; } 16% { transform: scale(0.965); } }

.readout {
  grid-column: 6 / 13;
  grid-row: 1 / 3;
  background: #0a0a0b;
  padding: var(--pad-in) calc(var(--pad-in) + 8px);
  display: grid;
  grid-template-rows: 1fr auto auto auto auto auto;
  gap: 8px;
  min-height: 300px;
}
.readout-status { align-self: start; display: flex; justify-content: space-between; gap: 16px; font-size: var(--s1); color: var(--ink-soft); }
.readout-name {
  font-size: var(--s4);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  transition: color var(--t-hover) var(--ease-out);
}
.readout.hit .readout-name { color: var(--accent); }
.readout-notes { font-size: var(--s3); font-weight: 500; letter-spacing: 0.01em; }
.readout-degree { font-size: var(--s1); color: var(--ink-soft); }

/* The voicing on a keyboard: chord tones in green, Rich's doublings pale
   green, the bass note amber, so each layer reads at a glance. */
.readout-keys {
  position: relative;
  height: 64px;
  margin-top: 12px;
}
.kb-key { position: absolute; top: 0; transition: background-color 120ms linear; }
.kb-white { height: 100%; background: var(--pad); border-radius: 0 0 3px 3px; box-shadow: inset -1px 0 0 #9c9b97; /* taste-skill-ignore: key edges of the keyboard fragment */ }
.kb-black { height: 60%; background: #2a2b30; border-radius: 0 0 3px 3px; z-index: 1; }
.kb-key.is-chord { background: var(--accent); }
.kb-key.is-rich { background: #a6dcbd; }
.kb-key.is-bass { background: #e0a641; }
.readout-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--s1); font-variant-numeric: tabular-nums; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-item::before { content: ""; width: 12px; height: 12px; border-radius: 2px; background: var(--accent); }
.legend-rich::before { background: #a6dcbd; }
.legend-bass::before { background: #e0a641; }

.switches {
  grid-column: 1 / 6;
  padding: 16px var(--pad-in) var(--pad-in);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: end;
}
.switch-group { display: flex; gap: 6px; }
.switch {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--tile-2);
  font-size: var(--s1);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.switch:hover { background: #33343a; }
.switch:active { transform: scale(0.96); }
.switch[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.pads {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--gap);
}
.shape-pads { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.root-pads { grid-template-columns: repeat(8, minmax(0, 1fr)); }

.pad {
  position: relative;
  border: 0;
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-weight: 700;
  font-size: var(--s3);
  letter-spacing: -0.01em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out);
}
.pad kbd { font-size: var(--s1); font-weight: 500; opacity: 0.75; }
.pad:active, .pad.down { transform: scale(0.965); }
.shape { height: 120px; background: var(--tile-2); color: var(--ink); }
.shape:hover { background: #33343a; }
.shape[aria-pressed="true"] { background: var(--alu); color: var(--ink-dark); }
.root { height: 168px; background: var(--pad); color: var(--ink-dark); }
.root:hover { background: #f6f4ee; }
.root.lit { background: var(--accent); color: var(--accent-ink); }

/* ---------- The panel, labelled ---------- */

.panel { margin-top: 120px !important; padding: 0 var(--margin); }
.panel-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  padding: 0 var(--pad-in) 40px;
}
.panel-head h2 { grid-column: 1 / 8; }
.panel-head p { grid-column: 8 / 13; max-width: 40ch; }

.panel-shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #2b2c30;
}
.panel-shot img { width: 100%; height: auto; }
.callouts { margin: 0; }
.callout {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink);
  font-size: var(--s1);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.callout::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.panel-more {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}
.more { display: flex; flex-direction: column; }
.more-img { position: relative; height: 200px; overflow: hidden; background: #2b2c30; }
.more-img img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  width: calc(100% * 100 / var(--w));
  height: auto;
  transform: translate(calc(var(--x) * -1), calc(var(--y) * -1));
}
.more figcaption { padding: 18px 20px 22px; font-size: var(--s1); line-height: 1.4; }
.more figcaption strong { display: block; font-size: var(--s2); font-weight: 600; margin-bottom: 2px; }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 160px 0 24px;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 0.5em;
  font-size: var(--s5);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  animation: marquee 48s linear infinite;
}
.marquee-track span:nth-child(even) { color: var(--alu); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- What it does: the departure board ---------- */

.modes { padding: 120px var(--margin) 0; }
.section-title { padding: 0 var(--pad-in) 40px; }
.rows { display: grid; gap: 4px; }
.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  column-gap: var(--gap);
  min-height: 72px;
  padding: 0 var(--pad-in);
  border: 0;
  border-radius: var(--radius);
  background: var(--tile);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--t-hover) var(--ease-out);
}
.row:hover { background: var(--tile-2); }
.row-name {
  grid-column: 1 / 6;
  font-size: var(--s3);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.row-fact { font-size: var(--s2); font-variant-numeric: tabular-nums; }
.row-fact:nth-of-type(2) { grid-column: 6 / 8; }
.row-fact:nth-of-type(3) { grid-column: 8 / 10; }
.row-fact:nth-of-type(4) { grid-column: 10 / 12; }
.row-tab {
  grid-column: 12 / 13;
  justify-self: end;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: var(--alu);
  color: var(--ink-dark);
  font-size: var(--s1);
  font-weight: 600;
}
.row-detail { display: none; }
.row[aria-expanded="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  min-height: 216px;
  align-items: start;
  padding-top: 22px;
  padding-bottom: 24px;
  grid-template-rows: auto 1fr;
}
.row[aria-expanded="true"] .row-name { font-size: var(--s4); letter-spacing: -0.035em; line-height: 0.98; grid-row: 1 / 3; align-self: end; }
.row[aria-expanded="true"] .row-tab { background: var(--ink-dark); color: var(--ink); }
.row[aria-expanded="true"] .row-detail {
  display: block;
  grid-column: 6 / 12;
  grid-row: 2;
  align-self: end;
  font-size: var(--s2);
  max-width: 52ch;
  padding-top: 24px;
}

/* ---------- The action tile row ---------- */

.cta-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding: 0 var(--margin);
  margin-top: 120px !important;
  height: 380px;
  overflow: clip;
}
.cta-flank { height: 100%; }
.cta-photo { grid-column: 1 / 3; margin-left: -48px; border-radius: 0 var(--radius) var(--radius) 0; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 70%; }
.cta-plain { grid-column: 11 / 13; margin-right: -48px; background: var(--alu); border-radius: var(--radius) 0 0 var(--radius); }
.cta-tile {
  grid-column: 3 / 11;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 40px 48px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 20px;
}
.cta-tile p { max-width: 46ch; }

/* ---------- The four tabs ---------- */

.tabs { margin-top: 120px !important; }
.tabs-screen {
  grid-column: 1 / 10;
  background: #2b2c30;
  align-self: start;
}
.tabs-screen img { width: 100%; height: auto; }
.tabs-side {
  grid-column: 10 / 13;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--gap);
}
.tabs-head { padding: var(--pad-in); background: var(--alu); color: var(--ink-dark); }
.tabs-list { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.tab {
  border: 0;
  padding: 16px 20px;
  text-align: left;
  font-size: var(--s1);
  line-height: 1.35;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background-color var(--t-hover) var(--ease-out);
}
.tab strong { font-size: var(--s3); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.tab:hover { background: var(--tile-2); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- Drums: bars standing on the edge ---------- */

.drums {
  margin-top: 120px !important;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  background: var(--tile);
}
.drums-head {
  padding: 64px calc(var(--margin) + var(--pad-in)) 40px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 24px;
  align-items: end;
}
.drums-head h2 { grid-column: 1 / 7; }
.drums-note { grid-column: 7 / 13; max-width: 48ch; }
.pattern-picker { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--tile-2);
  font-size: var(--s1);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.chip:hover { background: #33343a; }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--alu); color: var(--ink-dark); }

.bars {
  margin-top: auto;
  height: 52vh;
  min-height: 300px;
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: var(--gap);
  padding: 0 var(--margin);
  align-items: end;
}
.bar {
  position: relative;
  height: var(--h);
  background: var(--tile-3);
  border-radius: var(--radius) var(--radius) 0 0;
  transition: height 420ms var(--ease-expo), background-color 90ms linear;
}
.bar.beat { background: #74757b; }
.bar.now { background: var(--accent); }
.bar-label {
  position: absolute;
  left: 2px;
  background: var(--tile);  /* the section ground it sits on, above the bar */
  bottom: calc(100% + 8px);
  font-size: var(--s1);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Price: the offer as one sentence ---------- */

.price {
  margin-top: 0 !important;
  background: var(--alu);
  color: var(--ink-dark);
  min-height: 80svh;
  padding: 120px calc(var(--margin) + var(--pad-in)) 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
}
.price-sentence { font-size: clamp(56px, 9vw, 150px); letter-spacing: -0.045em; line-height: 0.95; max-width: 13ch; }
.price-break { display: none; }
.price-block {
  display: inline-block;
  background: var(--accent);
  padding: 0 0.15em;
  border-radius: var(--radius);
}
.price-foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
}
.price-foot p { grid-column: 1 / 8; max-width: 58ch; font-size: var(--s2); }
.price-foot .button { grid-column: 10 / 13; justify-self: end; }

/* ---------- iOS ---------- */

.ios { margin-top: var(--gap); padding-top: var(--gap); }
.ios-photo { grid-column: 1 / 9; height: clamp(320px, 38vw, 560px); }
.ios-photo img { object-position: 50% 45%; }
.ios-copy {
  grid-column: 9 / 13;
  padding: var(--pad-in);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.ios-copy p { max-width: 36ch; }

/* ---------- FAQ: two columns of question tiles ---------- */

.faq {
  margin-top: 120px !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  padding: 0 var(--margin);
}
.faq-head {
  display: flex;
  align-items: flex-end;
  padding: var(--pad-in);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
}
.faq-band {
  padding: 28px var(--pad-in) 32px;
  border-radius: var(--radius);
  background: var(--tile);
}
.faq-band h3 { margin-bottom: 12px; }
.faq-band p { max-width: 58ch; }

/* ---------- Specs ---------- */

.specs { margin-top: 120px !important; grid-auto-rows: minmax(150px, auto); }
.specs-head { grid-column: 1 / 4; grid-row: span 2; padding: var(--pad-in); background: var(--alu); color: var(--ink-dark); }
.spec { grid-column: span 3; margin: 0; padding: var(--pad-in); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.spec dt { color: var(--ink-soft); }
.spec dd { margin: 0; font-size: var(--s3); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- Footer of tiles ---------- */

.footer {
  padding-top: var(--gap);
  padding-bottom: var(--margin);
  grid-template-rows: 220px 320px;
}
.footer .tile { padding: var(--pad-in); }
.foot-statement { grid-column: 1 / 5; display: flex; flex-direction: column; justify-content: space-between; }
.foot-statement p { font-size: var(--s3); line-height: 1.2; font-weight: 500; max-width: 18ch; }
.foot-statement small { font-size: var(--s1); color: var(--ink-soft); }
.foot-nav { grid-column: 5 / 9; display: grid; align-content: start; gap: 6px; }
.foot-nav a { text-decoration: none; width: fit-content; }
.foot-nav a:hover { text-decoration: underline; }
.foot-mail { grid-column: 9 / 13; display: flex; flex-direction: column; justify-content: space-between; }
.foot-mail span { color: var(--ink-soft); }
.foot-mail a { font-size: var(--s3); font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.foot-mark {
  grid-column: 1 / 9;
  background: var(--pad);
  color: var(--ink-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--s5);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}
.foot-action {
  grid-column: 9 / 13;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: var(--s3);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: background-color var(--t-hover) var(--ease-out);
}
.foot-action svg { align-self: flex-end; transition: transform var(--t-hover) var(--ease-out); }
.foot-action:hover { background: #4cb87d; }
.foot-action:hover svg { transform: translate(4px, -4px); }

/* ---------- Lost-key dialog ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 8, 9, 0.72);
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative;
  width: min(480px, 100%);
  padding: 32px;
  border-radius: var(--radius);
  background: var(--tile);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); /* taste-skill-ignore: open dialog */
}
.modal h3 { margin-bottom: 12px; }
.modal-note { margin-bottom: 20px; }
.modal form { display: grid; gap: 10px; }
.modal input {
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--tile-2);
  color: var(--ink);
  font: inherit;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}
.modal-close:hover { background: var(--tile-2); }
.modal-result { margin-top: 16px; }

/* ---------- Motion ---------- */

.drift { animation: drift 24s var(--ease-soft) infinite alternate; }
@keyframes drift { from { transform: scale(1.07) translate(-1%, 0); } to { transform: scale(1) translate(0, 0); } }

.js .reveal > *,
.js .reveal.faq-band > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-reveal) var(--ease-expo), transform var(--t-reveal) var(--ease-expo);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.in > *,
.js .reveal.faq-band.in > * { opacity: 1; transform: none; }

.js .hero > *, .js .hero-rail > * {
  animation: rise 900ms var(--ease-expo) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drift, .marquee-track { animation: none; }
  .js .reveal > *, .js .reveal.faq-band > * { transform: none; transition: opacity 200ms linear; transition-delay: 0ms; }
  .js .hero > *, .js .hero-rail > * { animation: none; }
  .bar { transition: none; }
  .film-play-disc::after, .play-live-dot, .play.idle .root, .play.idle .root::after, .play.idle #soundHint { animation: none; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
  .hero { grid-template-rows: clamp(100px, 14vw, 140px) 56px minmax(0, 1fr); height: auto; min-height: 0; max-height: none; }
  .name-band .name-mark { font-size: 11vw; }
  .hero-centre { grid-column: 1 / -1; grid-row: 3; height: 62vw; }
  .hero-rail { grid-column: 1 / -1; grid-row: 4; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(96px, auto) minmax(96px, auto); }
  .rail-action { grid-column: 1 / -1; }

  .play-head, .switches { grid-column: 1 / -1; }
  .readout { grid-column: 1 / -1; grid-row: auto; min-height: 220px; }

  .film-head h2, .film-head p { grid-column: 1 / -1; }
  .film-head p { margin-top: 20px; }
  .panel-head h2, .panel-head p { grid-column: 1 / -1; }
  .panel-head p { margin-top: 20px; }
  .callout { font-size: 13px; padding: 4px 8px; }
  .panel-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .row-fact:nth-of-type(4) { display: none; }
  .row-fact:nth-of-type(2) { grid-column: 6 / 9; }
  .row-fact:nth-of-type(3) { grid-column: 9 / 12; }
  .row[aria-expanded="true"] .row-detail { grid-column: 1 / 12; grid-row: 2; }
  .row[aria-expanded="true"] .row-name { grid-row: 1; }

  .tabs-screen { grid-column: 1 / -1; }
  .tabs-side { grid-column: 1 / -1; grid-template-rows: auto auto; }
  .tabs-list { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; }
  .tab { min-height: 140px; }

  .drums-head h2, .drums-note { grid-column: 1 / -1; }
  .price { min-height: 0; justify-content: flex-start; }
  .price-foot p { grid-column: 1 / -1; }
  .price-foot .button { grid-column: 1 / -1; justify-self: start; margin-top: 32px; }
  .ios-photo { grid-column: 1 / -1; }
  .ios-copy { grid-column: 1 / -1; }

  .specs-head { grid-column: 1 / -1; grid-row: auto; }
  .spec { grid-column: span 6; }
  .footer { grid-template-rows: auto; }
  .foot-mark { grid-column: 1 / -1; height: 200px; font-size: 15vw; }
  .foot-action { grid-column: 1 / -1; min-height: 180px; }
  .foot-statement { grid-column: 1 / 7; min-height: 200px; gap: 24px; }
  .foot-nav { grid-column: 7 / 13; }
  .foot-mail { grid-column: 1 / -1; gap: 24px; }
  .foot-mail a { font-size: var(--s2); }
}

/* ---------- Phone ---------- */

@media (max-width: 640px) {
  :root { --gap: 6px; --margin: 8px; --pad-in: 20px; --s2: 17px; }
  .board, .cta-row, .price-foot, .drums-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-rows: 88px auto auto auto auto; }
  .name-band .name-mark { font-size: 16vw; }
  .hero-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-tile { min-height: 56px; }
  .hero-centre { grid-column: 1 / -1; grid-row: 3; height: auto; display: grid; gap: var(--gap); }
  .studio-photo { aspect-ratio: 4 / 3; height: auto; }
  .statement-tile { position: static; width: auto; border-radius: var(--radius); background: var(--tile); }
  .statement-tile p { font-size: 6vw; }
  .hero-rail { grid-column: 1 / -1; grid-row: 4; }
  .hero-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(88px, auto)); }

  .play-head, .switches, .readout { grid-column: 1 / -1; }
  .readout-status { flex-direction: column; gap: 2px; }
  .switch-group { flex-wrap: wrap; }
  .shape-pads { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .root-pads { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .root { grid-column: span 3; }
  .shape { height: 84px; }
  .root { height: 104px; }
  .pad { padding: 12px; font-size: 22px; }
  .pad kbd { display: none; }

  .film { margin-top: 80px !important; }
  .film-head { padding-bottom: 28px; }
  .film-frame.tall { max-width: none; }
  .panel { margin-top: 80px !important; }
  .callouts { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; background: var(--tile); }
  .callout { position: static; white-space: normal; font-size: var(--s1); padding: 6px 10px; }
  .more-img { height: 150px; }

  .marquee-track { font-size: 30vw; }

  .modes { padding-top: 80px; }
  .section-title { padding-bottom: 24px; }
  .row { grid-template-columns: 1fr auto; min-height: 64px; padding: 0 16px; }
  .row-name { grid-column: 1; font-size: 20px; }
  .row-fact { display: none; }
  .row-tab { grid-column: 2; }
  .row[aria-expanded="true"] { min-height: 200px; }
  .row[aria-expanded="true"] .row-name { font-size: 9vw; }
  .row[aria-expanded="true"] .row-detail { grid-column: 1 / -1; font-size: 16px; }

  .cta-row { height: auto; margin-top: 80px !important; }
  .cta-tile { grid-column: 1 / -1; grid-row: 1; padding: 28px 24px; min-height: 300px; }
  .cta-tile .button { width: 100%; }
  .cta-photo, .cta-plain { grid-row: 2; height: 120px; margin: 0; border-radius: var(--radius); }
  .cta-photo { grid-column: 1; }
  .cta-plain { grid-column: 2; }

  .tabs { margin-top: 80px !important; }
  .tabs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { min-height: 112px; }

  .drums { margin-top: 80px !important; min-height: 0; }
  .drums-head { padding: 48px calc(var(--margin) + var(--pad-in)) 32px; }
  .bars { height: 46vh; min-height: 240px; gap: 3px; }
  .bar-label { font-size: 13px; }

  .price { padding-top: 80px; min-height: 70svh; }
  .price-sentence { font-size: 11vw; }
  .price-foot .button { width: 100%; }

  .ios-photo { height: 64vw; }
  .faq { margin-top: 80px !important; }
  .faq { grid-template-columns: 1fr; }
  .faq-band { padding: 24px 20px 28px; }

  .specs { margin-top: 80px !important; grid-auto-rows: minmax(120px, auto); }
  .spec { grid-column: span 1; }
  .footer .tile { padding: 20px; }
  .foot-mark { height: 140px; font-size: 19vw; }
  .foot-statement, .foot-nav { grid-column: span 1; min-height: 180px; }
  .foot-mail { grid-column: 1 / -1; min-height: 140px; }
  .foot-mail a { font-size: var(--s3); }
}
