/* Product manuals: one hand-written stylesheet, no build step. Reads the brand tokens
   (/brand/css/tokens.css). Hierarchy is a fill ladder (ground < card < key < accent),
   never an outline; links are coloured, never underlined. */

:root {
  --m-ground: #0E100F;
  --m-card: #171A19;
  --m-key: #222725;
  --m-key-2: #2C3330;
  --m-text: #ECE6D8;
  --m-soft: #B7B0A0;
  --m-mute: #8C877C;
  --m-accent: var(--blue, #69AFBF);
  --m-accent-ink: #0B0B0C;
  --m-radius: 10px;
  --m-top: 64px;
}
[data-brand="box-of-synths"] { --m-accent: #5FD08A; }

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--m-top) + 16px); }
html, body { margin: 0; padding: 0; background: var(--m-ground); color: var(--m-text); }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 2.4rem; letter-spacing: 0.01em; }
h2 { font-size: 1.55rem; margin-top: 2.4em; }
h3 { font-size: 1.2rem; margin-top: 1.8em; }
p { margin: 0 0 1em; }
a { color: var(--m-accent); text-decoration: none; }
a:hover { filter: brightness(1.2); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
kbd { font-family: var(--font-body); font-size: 0.8em; font-weight: 600; background: var(--m-key-2); border-radius: 5px; padding: 1px 7px; }
code { font-size: 0.9em; background: var(--m-key); border-radius: 5px; padding: 1px 5px; margin: 0 1px; }
:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--m-accent); color: var(--m-accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* top bar */
.m-top { position: sticky; top: 0; z-index: 30; height: var(--m-top); display: flex; align-items: center; gap: 24px; padding: 0 24px; background: var(--m-card); }
.m-brand { display: flex; align-items: center; gap: 12px; color: var(--m-text); flex: none; }
.m-brand img { width: 32px; height: 32px; display: block; }
.m-brand-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em; }
.m-search { position: relative; flex: 1; max-width: 620px; margin-left: auto; }
.m-search input { width: 100%; height: 42px; border: 0; border-radius: 21px; background: var(--m-key); color: var(--m-text); font: inherit; padding: 0 44px 0 18px; }
.m-search input::placeholder { color: var(--m-mute); }
.m-search input:focus { outline: 2px solid var(--m-accent); outline-offset: 0; }
.m-search kbd { position: absolute; right: 12px; top: 9px; pointer-events: none; }
.m-results { position: absolute; left: 0; right: 0; top: 50px; margin: 0; padding: 8px; list-style: none; background: var(--m-key); border-radius: var(--m-radius); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); max-height: min(70vh, 560px); overflow: auto; }
.m-results li { border-radius: 8px; }
.m-results a { display: block; padding: 9px 12px; color: var(--m-text); border-radius: 8px; }
.m-results li[aria-selected="true"] a, .m-results a:hover { background: var(--m-key-2); filter: none; }
.m-results .r-title { font-weight: 600; }
.m-results .r-kind { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--m-accent-ink); background: var(--m-accent); border-radius: 4px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.m-results .r-where { display: block; font-size: 0.82rem; color: var(--m-mute); }
.m-results .r-text { display: block; font-size: 0.9rem; color: var(--m-soft); }
.m-results mark { background: none; color: var(--m-accent); font-weight: 600; }
.m-results .r-none { padding: 10px 12px; color: var(--m-soft); }
.m-menu { display: none; background: var(--m-key); border-radius: 8px; padding: 8px 14px; font-weight: 600; }

/* shell */
.m-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); max-width: 1560px; margin: 0 auto; }
.m-nav { position: sticky; top: var(--m-top); align-self: start; height: calc(100vh - var(--m-top)); overflow: auto; padding: 24px 16px 48px 24px; }
.m-nav-title { font-family: var(--font-heading); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--m-mute); margin: 22px 0 6px 12px; }
.m-nav-link { display: block; padding: 6px 12px; border-radius: 8px; color: var(--m-soft); font-weight: 500; }
.m-nav-link:hover { background: var(--m-card); color: var(--m-text); filter: none; }
.m-nav-link.is-on { background: var(--m-accent); color: var(--m-accent-ink); font-weight: 600; }
.m-main { padding: 40px 40px 120px; min-width: 0; }
.m-article { max-width: 1180px; }
.m-article > h1, .m-article > .m-lede, .m-article > .m-crumb, .markdown > :not(.screen):not(.walk):not(table) { max-width: 760px; }
.m-crumb { font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
.m-lede { font-size: 1.2rem; color: var(--m-soft); }
.m-onpage { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 8px; }
.m-onpage span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--m-mute); margin-right: 6px; }
.m-onpage a { background: var(--m-card); color: var(--m-soft); border-radius: 16px; padding: 4px 14px; font-size: 0.92rem; font-weight: 500; }
.m-onpage a:hover { background: var(--m-key); color: var(--m-text); filter: none; }

/* prose */
.markdown ul, .markdown ol { padding-left: 1.3em; margin: 0 0 1em; }
.markdown li { margin-bottom: 0.35em; }
.markdown strong { color: #fff; }
.markdown blockquote { margin: 0 0 1em; padding: 14px 18px; background: var(--m-card); border-radius: var(--m-radius); color: var(--m-soft); }
.markdown blockquote p:last-child { margin: 0; }
.markdown table { border-collapse: separate; border-spacing: 0 4px; width: 100%; margin: 0 0 1.4em; font-size: 0.95rem; }
.markdown th { text-align: left; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--m-mute); padding: 4px 14px; }
.markdown td { background: var(--m-card); padding: 10px 14px; vertical-align: top; }
.markdown tr td:first-child { border-radius: 8px 0 0 8px; font-weight: 600; }
.markdown tr td:last-child { border-radius: 0 8px 8px 0; }
.markdown h2 .anchor, .markdown h3 .anchor { margin-left: 8px; color: var(--m-key-2); font-weight: 400; }
.markdown h2:hover .anchor, .markdown h3:hover .anchor { color: var(--m-accent); }

/* home */
.m-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 32px; }
.m-toc-group { background: var(--m-card); border-radius: var(--m-radius); padding: 22px 24px; }
.m-toc-group h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--m-accent); }
.m-toc-group ul { list-style: none; margin: 0; padding: 0; }
.m-toc-group li { margin-bottom: 12px; }
.m-toc-group a { display: block; font-weight: 600; color: var(--m-text); }
.m-toc-group a:hover { color: var(--m-accent); filter: none; }
.m-toc-group span { display: block; font-size: 0.9rem; color: var(--m-mute); line-height: 1.4; }
.linklist { list-style: none; padding: 0; }

/* pager */
.m-pager { display: flex; gap: 16px; margin-top: 64px; max-width: 760px; }
.m-pager a { flex: 1; background: var(--m-card); border-radius: var(--m-radius); padding: 14px 18px; color: var(--m-text); font-weight: 600; }
.m-pager a:hover { background: var(--m-key); filter: none; }
.m-pager span { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--m-accent); }
.m-pager-next { text-align: right; margin-left: auto; }

/* the clickable picture */
.screen { margin: 28px 0 40px; padding: 0; background: var(--m-card); border-radius: 14px; overflow: hidden; }
.screen-bar { display: flex; align-items: center; gap: 16px; padding: 12px 18px; }
.screen-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.03em; color: var(--m-accent); }
.screen-hint { color: var(--m-mute); font-size: 0.92rem; flex: 1; }
.screen-wide { background: var(--m-key); border-radius: 8px; padding: 6px 14px; font-weight: 600; font-size: 0.9rem; }
.screen-wide:hover { background: var(--m-key-2); }
.screen-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: #08090A; }
.screen.has-pick .screen-body { grid-template-columns: minmax(0, 1fr) 320px; }
.screen-stage { position: relative; line-height: 0; align-self: start; }
.screen-stage img { display: block; width: 100%; height: auto; }
.hot { position: absolute; background: transparent; border-radius: 6px; padding: 0; transition: background 0.12s, box-shadow 0.12s; }
.hot:hover, .hot:focus-visible { background: color-mix(in srgb, var(--m-accent) 20%, transparent); box-shadow: 0 0 0 2px var(--m-accent); outline: 0; }
.hot.is-on { background: color-mix(in srgb, var(--m-accent) 14%, transparent); box-shadow: 0 0 0 3px var(--m-accent), 0 0 0 9999px rgba(0, 0, 0, 0.45); z-index: 2; }
.hot-n, .part-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--m-accent); color: var(--m-accent-ink); font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; line-height: 1; }
.hot-n { position: absolute; left: -8px; top: -8px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 0.66rem; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.7); opacity: 0.92; }
.screen.no-numbers .hot:not(.is-on):not(:hover) .hot-n { opacity: 0; }
.screen-stage { overflow: hidden; }
.screen-detail { background: var(--m-key); padding: 20px; display: flex; flex-direction: column; gap: 16px; line-height: 1.5; font-size: 0.98rem; }
.screen-detail[hidden] { display: none; }
.screen-detail-body { flex: 1; }
.screen-detail-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.screen-detail-nav button, .walk-nav button { background: var(--m-key-2); border-radius: 8px; padding: 7px 14px; font-weight: 600; font-size: 0.9rem; }
.screen-detail-nav button:hover, .walk-nav button:hover { background: var(--m-accent); color: var(--m-accent-ink); }
.screen-detail-count, .walk-count { color: var(--m-mute); font-size: 0.85rem; }
.screen-intro { padding: 16px 18px 0; color: var(--m-soft); max-width: 800px; }
.parts { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
.part { margin: 0; scroll-margin-top: calc(var(--m-top) + 16px); }
.part-card { height: 100%; background: var(--m-key); border-radius: var(--m-radius); padding: 14px 16px; font-size: 0.95rem; line-height: 1.5; cursor: pointer; transition: background 0.12s; }
.part-card:hover { background: var(--m-key-2); }
.part.is-on .part-card { box-shadow: inset 4px 0 0 var(--m-accent); background: var(--m-key-2); }
.part-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; }
.part-label { flex: 1; }
.part-kind { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--m-mute); background: var(--m-ground); border-radius: 4px; padding: 2px 7px; }
.part-does p:last-child, .part-note p:last-child, .part-facts dd p:last-child { margin-bottom: 0; }
.part-does ul, .part-facts ul { padding-left: 1.2em; margin: 0 0 0.6em; }
.part-facts { margin: 10px 0 0; display: grid; gap: 6px; }
.part-facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--m-accent); }
.part-facts dd { margin: 0; color: var(--m-soft); }
.part-note { margin-top: 10px; padding: 8px 12px; background: var(--m-ground); border-radius: 8px; color: var(--m-soft); font-size: 0.9rem; }
.screen-detail .part-card { background: none; padding: 0; cursor: default; }
.screen.is-wide { position: fixed; inset: 0; z-index: 40; margin: 0; border-radius: 0; overflow: auto; }

/* walkthrough */
.walk { margin: 28px 0 40px; background: var(--m-card); border-radius: 14px; overflow: hidden; scroll-margin-top: calc(var(--m-top) + 16px); }
.walk-bar { display: flex; align-items: baseline; gap: 14px; padding: 14px 18px; }
.walk-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--m-accent); color: var(--m-accent-ink); border-radius: 4px; padding: 2px 8px; }
.walk-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; }
.walk-intro { padding: 0 18px; color: var(--m-soft); max-width: 800px; }
.walk-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.walk.is-live .walk-body { grid-template-columns: minmax(0, 1fr) 340px; background: #08090A; }
.walk-stage { position: relative; line-height: 0; overflow: hidden; align-self: start; }
.walk-stage[hidden] { display: none; }
.walk-stage img { display: block; width: 100%; height: auto; }
.walk-spot { position: absolute; border-radius: 8px; box-shadow: 0 0 0 3px var(--m-accent), 0 0 0 9999px rgba(0, 0, 0, 0.4); transition: all 0.35s var(--ease, ease); pointer-events: none; }
.walk-steps { list-style: none; margin: 0; padding: 14px 18px 18px; display: grid; gap: 8px; }
.walk-step { background: var(--m-key); border-radius: var(--m-radius); padding: 14px 16px; font-size: 0.98rem; line-height: 1.5; }
.walk-step h4 { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.walk-step p:last-child { margin: 0; }
.walk.is-live .walk-steps { padding: 0; background: var(--m-key); }
.walk.is-live .walk-step { display: none; border-radius: 0; padding: 20px; }
.walk.is-live .walk-step.is-on { display: block; }
.walk-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; }
.walk-nav[hidden] { display: none; }
.walk-nav .is-primary { background: var(--m-accent); color: var(--m-accent-ink); }
.walk-nav button:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 1180px) {
  .screen.has-pick .screen-body, .walk.is-live .walk-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .m-shell { grid-template-columns: minmax(0, 1fr); }
  .m-nav { display: none; position: fixed; inset: var(--m-top) 0 0 0; height: auto; background: var(--m-ground); z-index: 25; }
  .m-nav.is-open { display: block; }
  .m-menu { display: block; }
  .m-brand-name { display: none; }
  .m-main { padding: 24px 16px 96px; }
  .m-top { padding: 0 16px; gap: 12px; }
  .m-search kbd, .screen-hint { display: none; }
  .m-results { position: fixed; left: 8px; right: 8px; top: calc(var(--m-top) - 4px); }
  h1 { font-size: 1.9rem; }
  .parts { grid-template-columns: minmax(0, 1fr); padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* a screen that shows one region of its picture */
.screen-stage.is-cropped img, .walk-stage.is-cropped img { position: absolute; max-width: none; height: auto; }

/* ---- colour, icons and pictures (22 Nov): each section has a colour of its own (--sec), every page and
   control kind an icon, and the home page shows the app itself. Fills and tints, never outlines. ---- */
body { --sec: var(--m-accent); }
.ico { flex: none; vertical-align: -3px; }
.m-main { --m-accent: var(--sec); }

.m-search-ico { position: absolute; left: 14px; top: 11px; color: var(--m-mute); pointer-events: none; }
.m-search input { padding-left: 42px; }

/* contents */
.m-nav-home { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--m-text); font-weight: 600; background: var(--m-card); }
.m-nav-home:hover { background: var(--m-key); filter: none; }
.m-nav-home.is-on { background: var(--m-accent); color: var(--m-accent-ink); }
.m-nav-group { --sec: var(--m-accent); margin-top: 20px; }
.m-nav-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px 12px; color: var(--sec); }
.m-nav-link { display: flex; align-items: flex-start; gap: 10px; padding: 6px 12px; line-height: 1.35; }
.m-nav-link .ico { margin-top: 3px; color: var(--m-mute); }
.m-nav-link:hover .ico { color: var(--sec); }
.m-nav-link.is-on { background: color-mix(in srgb, var(--sec) 20%, var(--m-card)); color: #fff; box-shadow: inset 4px 0 0 var(--sec); }
.m-nav-link.is-on .ico { color: var(--sec); }

/* page head */
.m-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; max-width: 900px; }
.m-head h1 { margin: 0; }
.m-head-ico { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; color: var(--sec); background: color-mix(in srgb, var(--sec) 18%, var(--m-card)); }
.m-crumb { display: flex; gap: 10px; align-items: center; margin: 0 0 4px; font-size: 0.85rem; }
.m-crumb a { color: var(--m-mute); }
.m-crumb span { color: var(--m-accent-ink); background: var(--sec); border-radius: 5px; padding: 1px 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem; }
.m-onpage a:hover { background: color-mix(in srgb, var(--sec) 22%, var(--m-card)); }

/* prose with some life in it */
.markdown h2 { display: flex; align-items: center; gap: 12px; }
.markdown h2::before { content: ""; flex: none; width: 6px; height: 1.1em; border-radius: 3px; background: var(--sec); }
.markdown h3 { color: color-mix(in srgb, var(--sec) 55%, #fff); }
.markdown th { color: var(--sec); }
.markdown tr td:first-child { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--sec) 60%, transparent); }
.markdown blockquote { background: color-mix(in srgb, var(--sec) 12%, var(--m-card)); box-shadow: inset 4px 0 0 var(--sec); color: var(--m-text); }
.markdown ul li::marker { color: var(--sec); }
.markdown ol li::marker { color: var(--sec); font-weight: 700; }
.markdown kbd, kbd { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.55); }
.markdown code { color: color-mix(in srgb, var(--sec) 45%, #fff); }
.m-pager a { box-shadow: inset 0 3px 0 var(--sec); }

/* clickable pictures and walkthroughs */
.screen, .walk { box-shadow: inset 0 3px 0 var(--sec); }
.screen-title { display: flex; align-items: center; gap: 8px; }
.walk-kicker { display: inline-flex; align-items: center; gap: 6px; }
.part-kind { display: inline-flex; align-items: center; gap: 5px; color: var(--k, var(--m-soft)); background: color-mix(in srgb, var(--k, #888) 16%, var(--m-ground)); }
.part-kind[data-kind="dial"], .part-kind[data-kind="slider"] { --k: #5FD08A; }
.part-kind[data-kind="key"] { --k: #69AFBF; }
.part-kind[data-kind="switch"], .part-kind[data-kind="choice"], .part-kind[data-kind="menu"], .part-kind[data-kind="tabs"] { --k: #F2A20C; }
.part-kind[data-kind="text-box"] { --k: #B58CFF; }
.part-kind[data-kind="status"], .part-kind[data-kind="display"] { --k: #F27BA5; }
.part-kind[data-kind="link"] { --k: #5FB4C4; }
.part-facts dt { color: var(--sec); }

/* home */
.m-home { max-width: 1280px; }
.m-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; margin-bottom: 56px; }
.m-hero h1 { font-size: 3rem; }
.m-hero .markdown > * { max-width: none; }
.m-ways { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.m-ways li { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: center; background: var(--m-card); border-radius: 12px; padding: 10px 14px; }
.m-ways li > span:last-child { grid-column: 2; color: var(--m-soft); font-size: 0.94rem; }
.m-ways b { grid-column: 2; }
.m-ways-ico { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; }
.m-ways li:nth-child(1) .m-ways-ico { color: #5FD08A; background: rgba(95, 208, 138, 0.16); }
.m-ways li:nth-child(2) .m-ways-ico { color: #F2A20C; background: rgba(242, 162, 12, 0.16); }
.m-ways li:nth-child(3) .m-ways-ico { color: #B58CFF; background: rgba(181, 140, 255, 0.16); }
.m-hero-shot { position: relative; display: block; perspective: 1600px; padding: 30px 10px 44px; }
.m-hero-shot img { display: block; width: 100%; height: auto; border-radius: 10px; transform: rotateX(14deg) rotateY(-12deg) rotateZ(3deg); box-shadow: 0 0 0 2px rgba(95, 208, 138, 0.55), 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 120px rgba(95, 208, 138, 0.18); transition: transform 0.5s var(--ease, ease); }
.m-hero-shot:hover { filter: none; }
.m-hero-shot:hover img { transform: rotateX(4deg) rotateY(-4deg) rotateZ(1deg); }
.m-hero-shot span { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; background: var(--m-accent); color: var(--m-accent-ink); font-weight: 700; font-size: 0.9rem; border-radius: 20px; padding: 6px 16px; }

.m-sec { --sec: var(--m-accent); margin-bottom: 44px; }
.m-sec-head { position: relative; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--sec) 22%, var(--m-card)), var(--m-card) 70%); box-shadow: inset 0 3px 0 var(--sec); overflow: hidden; }
.m-sec-head h2 { margin: 0; font-size: 1.6rem; color: var(--sec); }
.m-sec-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--sec); background: color-mix(in srgb, var(--sec) 20%, var(--m-ground)); }
.m-sec-n { position: absolute; right: 18px; top: -18px; font-family: var(--font-heading); font-weight: 700; font-size: 6rem; line-height: 1; color: color-mix(in srgb, var(--sec) 22%, transparent); }
.m-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.m-card { display: flex; flex-direction: column; background: var(--m-card); border-radius: 14px; overflow: hidden; color: var(--m-text); transition: transform 0.15s, background 0.15s, box-shadow 0.15s; }
.m-card:hover { filter: none; transform: translateY(-3px); background: var(--m-key); box-shadow: 0 0 0 2px var(--sec), 0 14px 30px rgba(0, 0, 0, 0.5); }
.m-card-shot { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #08090A; overflow: hidden; }
.m-card-shot.is-plain { color: var(--sec); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--sec) 32%, #08090A), #08090A 75%); }
.m-card-frame { position: relative; display: block; width: 100%; overflow: hidden; }
.m-card-frame img { display: block; width: 100%; height: auto; }
.m-card-frame img.is-cropped { position: absolute; max-width: none; }
.m-card-title { display: flex; align-items: center; gap: 9px; padding: 13px 16px 4px; font-weight: 700; font-size: 1.04rem; line-height: 1.3; }
.m-card-title .ico { color: var(--sec); }
.m-card-sum { padding: 0 16px 16px; color: var(--m-mute); font-size: 0.9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1100px) { .m-hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .m-head-ico { width: 48px; height: 48px; border-radius: 12px; } .m-hero h1 { font-size: 2.2rem; } .m-sec-n { font-size: 4.5rem; } }

/* number badges always in front and never cut off at the picture's edge */
.screen-body { padding: 14px; }
.screen-stage { overflow: visible; clip-path: inset(-13px); }
.hot-n { z-index: 3; }
.hot.is-on .hot-n, .hot:hover .hot-n { z-index: 4; transform: scale(1.15); }
.screen.is-wide .screen-body { padding: 18px; }

/* drawings a reader can play with */
.demo { margin: 28px 0 36px; padding: 0 0 18px; background: var(--m-card); border-radius: 14px; overflow: hidden; box-shadow: inset 0 3px 0 var(--sec); max-width: 900px; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 20px 12px; }
.demo-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--sec); color: var(--m-accent-ink); border-radius: 5px; padding: 3px 9px; }
.demo-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; color: var(--sec); }
.demo-hint { color: var(--m-mute); font-size: 0.92rem; }
.demo-stage { padding: 6px 20px 0; }
.demo-stage svg { display: block; max-width: 720px; margin: 0 auto; user-select: none; -webkit-user-select: none; }
.demo-note { margin: 14px 20px 0; padding: 12px 16px; background: var(--m-key); border-radius: 10px; color: var(--m-soft); font-size: 0.95rem; line-height: 1.5; }
.demo:not(.is-live) .demo-stage { display: none; }
.demo-tools { display: grid; gap: 10px; max-width: 720px; margin: 12px auto 0; }
.demo-slider, .demo-choice { display: grid; grid-template-columns: 110px minmax(0, 1fr) 84px; align-items: center; gap: 14px; }
.demo-choice { grid-template-columns: 110px minmax(0, 1fr); }
.demo-slider-name { font-weight: 600; font-size: 0.92rem; color: var(--m-soft); }
.demo-slider output { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; color: var(--sec); }
.demo-slider input[type="range"] { width: 100%; accent-color: var(--sec); cursor: pointer; }
.demo-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-seg button, .demo-play { background: var(--m-key); border-radius: 8px; padding: 6px 14px; font-weight: 600; font-size: 0.9rem; color: var(--m-soft); }
.demo-seg button:hover, .demo-play:hover { background: var(--m-key-2); color: var(--m-text); }
.demo-seg button.is-on, .demo-play { background: var(--sec); color: var(--m-accent-ink); }
.demo-play { justify-self: start; padding: 8px 22px; }

/* the map of a sound's path */
.flow { max-width: 1180px; }
.flow-row { display: flex; align-items: stretch; gap: 6px; padding: 6px 20px 0; }
.flow-row.is-movers { gap: 12px; }
.flow-box { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px 14px; border-radius: 12px; background: var(--m-key); color: var(--m-text); transition: transform 0.15s, background 0.15s, box-shadow 0.15s; }
.flow-box:hover { filter: none; transform: translateY(-3px); background: var(--m-key-2); box-shadow: 0 0 0 2px var(--c); }
.flow-box b { font-size: 1.02rem; color: var(--c); }
.flow-box > span:last-child { color: var(--m-soft); font-size: 0.88rem; line-height: 1.4; }
.flow-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 18%, var(--m-ground)); }
.flow-n { position: absolute; right: 12px; top: 6px; font-family: var(--font-heading); font-weight: 700; font-size: 2.4rem; line-height: 1; color: color-mix(in srgb, var(--c) 28%, transparent); }
.flow-arrow { flex: none; align-self: center; color: var(--m-mute); }
.flow-row .flow-box:nth-of-type(1) { --c: #FF7A6B; }
.flow-row .flow-box:nth-of-type(2) { --c: #F2A20C; }
.flow-row .flow-box:nth-of-type(3) { --c: #5FD08A; }
.flow-row .flow-box:nth-of-type(4) { --c: #F2A20C; }
.flow-row .flow-box:nth-of-type(5) { --c: #5FB4C4; }
.flow-row.is-movers .flow-box:nth-of-type(1) { --c: #B58CFF; }
.flow-row.is-movers .flow-box:nth-of-type(2) { --c: #5FD08A; }
.flow-row.is-movers .flow-box:nth-of-type(3) { --c: #F27BA5; }
.flow-row.is-movers .flow-box { flex-direction: row; align-items: center; flex-wrap: wrap; }
.flow-row.is-movers .flow-box > span:last-child { flex-basis: 100%; }
.flow-label { display: flex; align-items: center; gap: 8px; margin: 18px 20px 8px; color: var(--m-mute); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* the moving model on the home page */
.m-hero-shot.is-video { perspective: none; padding: 0 0 44px; }
.m-hero-shot video { display: block; width: 100%; height: auto; border-radius: 14px; }

@media (max-width: 900px) {
  .flow-row { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .demo-slider { grid-template-columns: 84px minmax(0, 1fr) 70px; }
  .demo-choice { grid-template-columns: minmax(0, 1fr); }
}
.m-hero-shot.is-video { overflow: hidden; border-radius: 16px; padding: 0; margin-bottom: 0; background: #0e1011; aspect-ratio: 16 / 11; display: grid; place-items: center; }
.m-hero-shot.is-video video { transform: scale(1.5); border-radius: 0; }
.m-hero-shot.is-video span { bottom: 16px; }
