/* AP Lab Audio — site styles. Dark "Orbital panel" look. Fonts are self-hosted (SIL OFL). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Audiowide"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/audiowide-latin.woff2") format("woff2"); }

/* Smooth fade between pages (Chrome / Edge / Safari; others just load normally) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: ease; }
.site-head { view-transition-name: site-head; }

:root {
  --bg: #0e0e0f;
  --surface: #161617;
  --surface-2: #1b1b1d;
  --border: #262628;
  --border-2: #333336;
  --well: #0b0c0e;
  --frame: #5e5e5e;
  --ring: #8e8e8e;
  --text: #ececec;
  --body: #c9c9cc;
  --muted: #8f8f94;
  --amber: #e8a33a;
  --amber-hi: #f1b85f;
  --mute: #94f036;
  --freeze: #36e8f0;
  --snap: #ae36f0;
  --radius: 12px;
  --max: 1100px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 16px/1.7 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* ===== Brand theme (default): clean graphite, Inter headings, amber accent from the logo ===== */
body.theme-brand { background: radial-gradient(1200px 600px at 75% -10%, rgba(232,163,58,.08), transparent 60%), var(--bg); }
.theme-brand::before { content: ""; position: fixed; inset: 0; z-index: -1; background: url("img/stars.svg") repeat; background-size: 1600px 1000px; opacity: .45; pointer-events: none; }
a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(232,163,58,.6); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--amber-hi); text-decoration-color: var(--amber-hi); }
img { max-width: 100%; display: block; }
strong { color: var(--text); font-weight: 600; }
h1, h2 { font-family: "Audiowide", "Inter", sans-serif; font-weight: 400; color: var(--text); line-height: 1.15; letter-spacing: .01em; }
h1 { font-size: clamp(32px, 5vw, 54px); margin: 0 0 16px; }
h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 64px 0 18px; }
h3 { font-size: 17px; font-weight: 600; color: var(--text); margin: 28px 0 8px; letter-spacing: 0; }
p, li { color: var(--body); }
li + li { margin-top: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---- Header / nav ---- */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(14,14,15,.82); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 68px; flex-wrap: wrap; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px 26px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--amber); transform: scaleX(0); transition: transform .2s ease; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after, .nav a:hover::after { transform: scaleX(1); }
.nav a.donate { display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: 999px; background: var(--amber); border: 1px solid var(--amber); color: #111; font-weight: 600; font-size: 14px; transition: background .15s, border-color .15s; }
.nav a.donate::after { display: none; }
.nav a.donate:hover { background: var(--amber-hi); border-color: var(--amber-hi); color: #111; }
@media (max-width: 720px) { .site-head { position: static; } .site-head .wrap { padding-top: 12px; padding-bottom: 12px; } .nav { gap: 2px 18px; } }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 88px 0 56px; }
.hero .orbits { position: absolute; top: -18%; right: -8%; width: 820px; max-width: 120vw; opacity: .85; pointer-events: none; }
.hero .wrap { position: relative; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin: 0 0 16px; }
.lead { font-size: 19px; line-height: 1.65; max-width: 640px; color: #d8d8db; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--ring); color: var(--text); background: rgba(255,255,255,.04); }
.btn.primary { border-color: var(--amber); background: var(--amber); color: #111; font-weight: 600; }
.btn.primary:hover { background: var(--amber-hi); border-color: var(--amber-hi); color: #111; }

/* ---- Cards ---- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 20px; transition: border-color .2s; }
.card:hover { border-color: var(--border-2); }
.card h3 { margin-top: 0; }
.card p { margin: 0 0 12px; font-size: 15px; }
.card .tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card a.more { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--amber); }
.card a.more:hover { color: var(--amber-hi); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; vertical-align: 2px; }

/* ---- Feature band (binaural) ---- */
.band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: linear-gradient(135deg, rgba(54,232,240,.07), rgba(174,54,240,.06)); border: 1px solid var(--border); border-radius: 16px; padding: 36px; margin-top: 64px; }
.band h2 { margin-top: 0; }
.band ol { margin: 0; padding-left: 22px; }
.band .how { background: var(--well); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.band .how p { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--freeze); }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; padding: 24px; } }

/* ---- Panel showcase ---- */
.panels { display: flex; gap: 14px; align-items: flex-end; justify-content: center; flex-wrap: wrap; padding: 24px 0 8px; }
.panels figure { margin: 0; text-align: center; }
.panels img { height: 440px; width: auto; border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 0 1px #000; }
.panels figcaption { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
@media (max-width: 720px) { .panels img { height: 300px; } }
@media (max-width: 420px) { .panels img { height: 230px; } }

/* ---- Manual layout ---- */
.doc { display: grid; grid-template-columns: 210px 1fr; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
.doc article { min-width: 0; max-width: 780px; }
.doc aside { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.doc aside ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--border-2); }
.doc aside li + li { margin-top: 0; }
.doc aside li a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; text-decoration: none; color: var(--muted); border-left: 1px solid transparent; }
.doc aside li a:hover { color: var(--text); }
.doc aside li a[aria-current="page"] { color: var(--text); border-left-color: var(--amber); }
.doc aside .sub { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.doc .panel-side { float: right; margin: 4px 0 24px 32px; }
.doc .panel-side img { height: 460px; width: auto; border-radius: 4px; box-shadow: 0 14px 36px rgba(0,0,0,.55); }
.doc h2:first-of-type { margin-top: 36px; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 16px; padding-top: 28px; }
  .doc aside { position: static; }
  .doc aside ul { display: flex; flex-wrap: wrap; gap: 4px 18px; border: 0; }
  .doc aside li a { padding: 4px 0; border: 0; }
  .doc aside li a[aria-current="page"] { color: var(--amber); }
  .doc .panel-side { float: none; margin: 0 0 24px; display: flex; justify-content: center; }
  .doc .panel-side img { height: 360px; }
}

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; margin: 14px 0 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 11px 16px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface-2); }
td:first-child { white-space: nowrap; font-weight: 600; color: var(--text); }

/* ---- Callouts ---- */
.note { border: 1px solid var(--border); border-left: 3px solid var(--ring); border-radius: 10px; padding: 16px 20px; background: var(--surface); margin: 20px 0; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.note.amber { border-left-color: var(--amber); }
.note.binaural { border-left-color: var(--freeze); }
.note.warn { border-left-color: #e5484d; }
.note .label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; color: var(--freeze); }
.note.warn .label { color: #ff7b7f; }
.note.amber .label { color: var(--amber); }
.c-mute { color: var(--mute); } .c-freeze { color: var(--freeze); } .c-snap { color: var(--snap); } .c-amber { color: var(--amber); }
.menu-path { font-weight: 600; color: var(--text); white-space: nowrap; }

/* ---- Roadmap ---- */
.road { display: grid; gap: 16px; margin-top: 32px; }
.stage { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--ring); border-radius: var(--radius); padding: 22px 24px; }
.stage h3 { margin-top: 6px; font-size: 19px; }
.stage .status { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.stage.now { border-left-color: var(--mute); } .stage.now .status { color: var(--mute); }
.stage.next { border-left-color: var(--freeze); } .stage.next .status { color: var(--freeze); }
.stage.later { border-left-color: var(--snap); } .stage.later .status { color: var(--snap); }
.stage ul { margin: 0; padding-left: 20px; }

/* ---- Footer ---- */
.site-foot { border-top: 1px solid var(--border); margin-top: 72px; padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ===== Orbital theme: starfield, orbit lines, Audiowide headings (pages with body.theme-orbital) ===== */
.theme-orbital::before { content: ""; position: fixed; inset: 0; z-index: -1; background: url("img/stars.svg") repeat; background-size: 1600px 1000px; opacity: .45; pointer-events: none; }
.theme-orbital h1, .theme-orbital h2 { font-family: "Audiowide", "Inter", sans-serif; font-weight: 400; letter-spacing: .01em; line-height: 1.15; }
.theme-orbital .kicker { color: var(--freeze); }

/* ---- Product-family sub-bar ---- */
.subbar { border-bottom: 1px solid var(--border); background: rgba(11,12,14,.9); }
.subbar .wrap { display: flex; align-items: center; gap: 8px 28px; min-height: 46px; flex-wrap: wrap; }
.subbar .family { font-family: "Audiowide", "Inter", sans-serif; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.subbar nav { display: flex; gap: 4px 22px; flex-wrap: wrap; font-size: 14px; }
.subbar nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.subbar nav a:hover, .subbar nav a[aria-current="page"] { color: var(--freeze); }

/* ---- Brand home ---- */
.brand-hero { padding: 104px 0 48px; }
.brand-hero h1 { font-size: clamp(34px, 5.4vw, 60px); }
.section-title { font-size: 13px !important; font-family: "Inter", sans-serif !important; font-weight: 600 !important; line-height: 1.4 !important; letter-spacing: .16em !important; text-transform: uppercase; color: var(--muted) !important; margin: 56px 0 16px !important; }
.products { display: grid; gap: 18px; grid-template-columns: 2fr 1fr; }
@media (max-width: 800px) { .products { grid-template-columns: 1fr; } }
.product { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
a.product:hover { border-color: var(--border-2); transform: translateY(-2px); color: inherit; }
.product-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.product-body h3 { font-size: 26px; margin: 6px 0 10px; }
.product-body p { margin: 0 0 16px; }
.product .tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.product .more { color: var(--amber); font-weight: 500; font-size: 15px; text-decoration: none; }
.product-orbital .product-art { flex: 0 0 42%; background: #0b0b0d url("img/stars.svg") center / 900px; display: flex; align-items: center; justify-content: center; padding: 22px; border-right: 1px solid var(--border); }
.product-orbital .product-art img { height: 300px; width: auto; border-radius: 3px; box-shadow: 0 14px 34px rgba(0,0,0,.6); }
.product-body h3 { font-family: "Audiowide", "Inter", sans-serif; font-weight: 400; letter-spacing: .02em; }
.product-orbital .tag { color: var(--freeze); }
.product-empty { border-style: dashed; background: transparent; }
@media (max-width: 600px) { .product { flex-direction: column; } .product-orbital .product-art { border-right: 0; border-bottom: 1px solid var(--border); } .product-orbital .product-art img { height: 240px; } }
.stage.goal { border-left-color: var(--amber); } .stage.goal .status { color: var(--amber); }

/* Brand hero orbit-line art (amber, quieter than Orbital's) */
.brand-hero { position: relative; overflow: hidden; }
.brand-hero .wrap { position: relative; }
.brand-hero .orbits { position: absolute; top: 50%; right: 2%; width: min(560px, 46vw); transform: translateY(-50%); opacity: .6; pointer-events: none; }
@media (max-width: 800px) { .brand-hero .orbits { display: none; } }
.products { grid-template-columns: 1fr 1fr; }
.product-art { flex: 0 0 42%; display: flex; align-items: center; justify-content: center; padding: 22px; border-right: 1px solid var(--border); }
.product-hotkey .product-art { background: radial-gradient(circle at 50% 40%, rgba(232,163,58,.10), transparent 70%), #101012; }
.product-hotkey .product-art img { height: 300px; width: auto; border-radius: 3px; box-shadow: 0 14px 34px rgba(0,0,0,.6); }
.product-hotkey .tag { color: var(--amber); }
.product-empty { grid-column: 1 / -1; }
@media (max-width: 600px) { .product-hotkey .product-art { border-right: 0; border-bottom: 1px solid var(--border); } .product-hotkey .product-art img { height: 240px; } }

/* ===== Utility theme (Hotkey): keycap grid, amber, no stars ===== */
.theme-utility { background: var(--bg); }
.theme-utility::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 80%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); }
.theme-utility .subbar nav a:hover, .theme-utility .subbar nav a[aria-current="page"] { color: var(--amber); }
.hk-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 72px 0 24px; }
.hk-hero img { height: 520px; width: auto; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
@media (max-width: 860px) { .hk-hero { grid-template-columns: 1fr; padding-top: 40px; } .hk-hero img { height: 400px; } }
kbd { display: inline-block; min-width: 1.7em; text-align: center; font: 600 13px/1 "Inter", sans-serif; color: var(--text); padding: 4px 7px; border-radius: 6px; background: linear-gradient(180deg, #2a2a2d, #1d1d20); border: 1px solid #3a3a3e; border-bottom-width: 2px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 0; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--amber); color: #111; font-weight: 700; font-size: 13px; margin-bottom: 10px; }

/* ===== Orbital panels (rendered from the real panel + part art) ===== */
.orb-rack { display: flex; gap: calc(1.2 * var(--k)); align-items: flex-start; justify-content: center; --k: 3.4px; }
.orb-panel { position: relative; flex: none; border-radius: 2px; box-shadow: 0 18px 46px rgba(0,0,0,.6), 0 0 0 1px #000; user-select: none; -webkit-user-select: none; touch-action: none; }
.orb-panel > * { position: absolute; }
.orb-panel .orb-bg { left: 0; top: 0; width: 100%; height: 100%; }
.orb-panel img { display: block; }
.w-knob img { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-knob { filter: drop-shadow(calc(.25 * var(--k)) calc(.45 * var(--k)) calc(.6 * var(--k)) rgba(0,0,0,.55)); }
.w-knob .w-top { transition: none; }
.w-knob.grab { cursor: ns-resize; }
.w-jack, .w-screw { filter: drop-shadow(calc(.2 * var(--k)) calc(.35 * var(--k)) calc(.4 * var(--k)) rgba(0,0,0,.5)); }
.w-button img { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-button .w-down { opacity: 0; }
.w-button .w-blight { position: absolute; left: 22%; top: 22%; width: 56%; height: 56%; border-radius: 50%; mix-blend-mode: screen; box-shadow: 0 0 calc(1.6 * var(--k)) currentColor; transition: opacity .12s; }
.interactive .w-button { cursor: pointer; }
.w-led { border-radius: 50%; background: radial-gradient(circle at 38% 35%, rgba(255,255,255,.18), transparent 45%), #121315; box-shadow: inset 0 0 0 calc(.12 * var(--k)) rgba(0,0,0,.8); }
.w-led.on { background: radial-gradient(circle at 38% 35%, rgba(255,255,255,.75), transparent 45%), var(--c); opacity: calc(.35 + .65 * var(--v)); box-shadow: 0 0 calc(1.4 * var(--k)) var(--c); }
.w-screen { background: #08090a; border-radius: calc(.4 * var(--k)); display: grid; place-items: center; font: 700 calc(3.6 * var(--k))/1 ui-monospace, Consolas, monospace; text-shadow: 0 0 calc(.8 * var(--k)) currentColor; }
.w-vis { border-radius: 50%; pointer-events: none; }
.w-cvarc { pointer-events: none; opacity: 0; transition: opacity .2s; }
.w-cvarc.on { opacity: 1; }
.w-cvarc svg { width: 100%; height: 100%; overflow: visible; }
.w-cvarc path { fill: none; stroke: #ff140a; stroke-linecap: round; }
.w-cvarc .trk { stroke-opacity: .14; stroke-width: 2.3; }
.w-cvarc .val { stroke-opacity: .9; stroke-width: 3.8; filter: drop-shadow(0 0 2px rgba(255,20,10,.6)); }
.w-cvarc .tick { stroke: #fff; stroke-opacity: .55; stroke-width: 1.9; }
.w-plug { border-radius: 50%; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; background: radial-gradient(circle, #111 0 28%, #36e8f0 30% 62%, #1d7f86 64% 100%); box-shadow: 0 0 calc(1.2 * var(--k)) rgba(54,232,240,.6); pointer-events: none; }
.w-plug.on { opacity: 1; transform: none; }
.w-plug.on::after { content: ""; position: absolute; left: 50%; top: 50%; width: calc(1.6 * var(--k)); height: calc(30 * var(--k)); margin-left: calc(-.8 * var(--k)); background: linear-gradient(#36e8f0, rgba(54,232,240,0)); border-radius: 99px; transform-origin: top center; transform: rotate(20deg); opacity: .8; }

/* ---- Orbital landing: hero rack, pillars, try-it ---- */
.orb-hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.hero-rack { --k: 3.15px; }
@media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr; } .hero-rack { justify-content: flex-start; } }
@media (max-width: 560px) { .hero-rack { --k: 2.2px; } }
@media (max-width: 380px) { .hero-rack { --k: 1.95px; } }
.pillars { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 24px; }
.pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.pillar .num { font-family: "Audiowide", sans-serif; color: var(--freeze); font-size: 14px; letter-spacing: .1em; }
.pillar h3 { font-family: "Audiowide", sans-serif; font-weight: 400; font-size: 20px; margin: 6px 0 8px; }
.pillar p { margin: 0; font-size: 15px; }
.play-wrap { margin-top: 72px; padding: 32px; border: 1px solid var(--border); border-radius: 18px; background: radial-gradient(800px 400px at 20% 0%, rgba(255,20,10,.06), transparent 70%), rgba(14,14,16,.85); }
.play-head h2 { margin-top: 0; }
.play { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 20px; }
.play-rack { --k: 5.6px; justify-content: flex-start; }
@media (max-width: 1000px) { .play { grid-template-columns: 1fr; } .play-rack { --k: 5px; justify-content: center; } }
@media (max-width: 520px) { .play-wrap { padding: 18px 12px; } .play-rack { --k: calc((100vw - 58px) / 81.28); } }
.play-side { display: flex; flex-direction: column; gap: 18px; }
.play-side .btn { align-self: flex-start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.ctl-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.seg { display: inline-flex; border: 1px solid var(--border-2); border-radius: 999px; padding: 3px; background: var(--well); }
.seg button, .chips button { font: 500 14px/1 "Inter", sans-serif; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background .15s, color .15s; }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--border-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--border-2); background: var(--well); }
.chips button.on { color: #071214; background: var(--freeze); border-color: var(--freeze); }
.how-list { margin: 0; padding-left: 18px; font-size: 15px; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }

/* ---- Modules page ---- */
.modgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.modcard { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.modcard:hover { border-color: var(--border-2); transform: translateY(-2px); color: inherit; }
.modcard.static:hover { border-color: var(--border); transform: none; } /* not a link: no lift on hover */
.modart { flex: none; height: 150px; display: flex; align-items: center; }
.modart img { height: 150px; width: auto; border-radius: 2px; box-shadow: 0 8px 20px rgba(0,0,0,.5); }
.modbody h3 { margin: 4px 0 6px; font-family: "Audiowide", sans-serif; font-weight: 400; font-size: 17px; }
.modbody p { margin: 0; font-size: 14px; }
.modbody .tag { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.modcard.orb .tag { color: var(--freeze); } .modcard.util .tag { color: var(--amber); }

/* ---- Hotkey ---- */
.hk-features { margin-top: 40px; }
.hk-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(180deg, #2a2a2d, #1d1d20); border: 1px solid #3a3a3e; border-bottom-width: 3px; color: var(--amber); font-weight: 700; margin-bottom: 12px; }
.steps li::before { display: grid; margin-bottom: 14px; }
.steps .combo { font-weight: 600; color: var(--text); margin-bottom: 8px; }
.steps li p { margin: 0; font-size: 15px; }
.sketch-note { margin: 16px 0 0; max-width: 820px; }

/* ---- Hotkey: try-it demo (a pretend rack played from the keyboard) */
.hkdemo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; margin: 20px 0 8px; padding: 20px; border-radius: 16px; background: #121214; border: 1px solid #2a2a2e; outline: none; }
.hkdemo.active { border-color: rgba(255,176,32,.55); box-shadow: 0 0 0 3px rgba(255,176,32,.12); }
.hk-start { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; border: 0; border-radius: 16px; background: rgba(10,10,12,.72); color: var(--text); font: 600 16px/1.4 "Inter", sans-serif; cursor: pointer; backdrop-filter: blur(2px); }
.hkdemo.active .hk-start { display: none; }
.hk-rack { display: flex; gap: 6px; overflow-x: auto; padding: 6px 2px 10px; align-items: stretch; }
.hk-mod { position: relative; flex: 0 0 auto; width: 132px; min-height: 330px; padding: 12px 10px; border-radius: 4px; background: linear-gradient(180deg, #2b2c30, #222327); border: 1px solid #3a3b40; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: box-shadow .15s, border-color .15s; user-select: none; }
.hk-mod.selected { border-color: #ffb020; box-shadow: 0 0 0 2px #ffb020, 0 0 22px rgba(255,176,32,.35); }
.hk-title { font: 700 12px/1 "Inter", sans-serif; letter-spacing: .14em; color: #d8d8dc; text-align: center; margin-bottom: 14px; }
.hk-unit { width: 92px; background: linear-gradient(180deg, #e9e9ec, #d4d4d8); border-color: #bdbdc2; }
.hk-unit .hk-title { color: #222; }
.hk-screen { display: flex; flex-direction: column; gap: 4px; padding: 8px 6px; border-radius: 4px; background: #101b14; color: #7dffa8; font: 600 10px/1.2 ui-monospace, monospace; text-align: center; box-shadow: inset 0 1px 3px rgba(0,0,0,.6); }
.hk-sel { color: #ffb020; font-size: 11px; min-height: 1.2em; }
.hk-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 14px 4px; }
.hk-slot { display: grid; place-items: center; height: 24px; border-radius: 4px; border: 1px solid #a9a9ae; background: #c9c9cd; color: #555; font: 700 11px/1 "Inter", sans-serif; cursor: pointer; padding: 0; }
.hk-slot.used { background: #ffe1a3; color: #6a4300; }
.hk-slot.sel { background: #ffb020; color: #2a1800; box-shadow: 0 0 10px rgba(255,176,32,.8); }
.hk-lock { margin: 10px auto 0; width: 44px; padding: 5px 0; border-radius: 4px; background: #c4c4c8; border: 1px solid #a9a9ae; color: #444; font: 700 9px/1 "Inter", sans-serif; text-align: center; letter-spacing: .1em; }
.hk-slotbadge { position: absolute; top: -9px; right: -7px; display: none; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #ffb020; color: #1f1400; font: 800 12px/1 "Inter", sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.hk-slotbadge.on { display: grid; }
.hk-knobs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 8px; }
.hk-knob, .hk-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.hk-knob label, .hk-btn label { font: 600 9px/1 "Inter", sans-serif; letter-spacing: .08em; color: #a9a9b0; }
.hk-cap { position: relative; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #4a4b50, #1d1e21 70%); box-shadow: 0 3px 6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12); transition: transform .06s linear; }
.hk-cap i { position: absolute; left: 50%; top: 4px; width: 3px; height: 13px; margin-left: -1.5px; border-radius: 2px; background: #f2f2f2; }
.hk-knob.held .hk-cap, .hk-knob.live .hk-cap { box-shadow: 0 0 0 2px #ffb020, 0 0 14px rgba(255,176,32,.6); }
.hk-val { position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%); padding: 2px 6px; border-radius: 4px; background: #ffb020; color: #1f1400; font: 700 10px/1.2 "Inter", sans-serif; opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; }
.hk-knob.live .hk-val { opacity: 1; }
.hk-badge { position: absolute; top: -4px; left: 50%; margin-left: 14px; display: none; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 4px; background: #ffb020; color: #1f1400; font: 800 10px/1 "Inter", sans-serif; }
.hk-mod.selected .hk-badge { display: grid; }
.hk-buttons { display: flex; justify-content: center; gap: 18px; margin-top: 18px; }
.hk-btncap { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #55565b, #2a2b2f 70%); border: 2px solid #17181a; box-shadow: 0 2px 4px rgba(0,0,0,.6); transition: transform .05s, background .1s; }
.hk-btn.on .hk-btncap { background: radial-gradient(circle at 40% 35%, #ffe1a3, #ffb020 70%); box-shadow: 0 0 12px rgba(255,176,32,.7); }
.hk-btn.down .hk-btncap { transform: scale(.88); }
.hk-btn .hk-badge { margin-left: 8px; top: -6px; }
.hk-jacks { position: absolute; left: 10px; right: 10px; bottom: 12px; display: flex; justify-content: space-around; }
.hk-jack { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #0b0b0c 35%, #8d8e93 38%, #5e5f63 60%, #2f3034 64%); }
.hk-guide { font-size: 14px; }
.hk-guide h3 { margin: 0 0 10px; font-size: 15px; }
.hk-guide ol { margin: 0 0 14px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.hk-guide li { position: relative; padding-left: 30px; color: var(--muted); }
.hk-guide li::before { content: attr(data-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #44454a; font: 700 11px/1 "Inter", sans-serif; color: var(--muted); }
.hk-guide li.done { color: var(--text); }
.hk-guide li.done::before { content: "\2713"; background: #ffb020; border-color: #ffb020; color: #1f1400; }
.hk-status { min-height: 64px; padding: 10px 12px; border-radius: 10px; background: #1b1b1e; border: 1px solid #2c2c30; color: var(--text); line-height: 1.5; }
.hk-reset { margin-top: 12px; }
@media (max-width: 860px) { .hkdemo { grid-template-columns: 1fr; } }

/* ---- Orbital page: hook line + closing call to action */
.hook { text-align: center; max-width: 820px; margin: 72px auto 8px; }
.hook h2 { margin: 0 0 12px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.2; }
.hook p { margin: 0; font-size: 18px; letter-spacing: .04em; color: var(--freeze); }
.cta-band { text-align: center; margin: 64px 0 8px; padding: 44px 24px; border-radius: 16px; border: 1px solid var(--border); background: radial-gradient(ellipse at 50% 0%, rgba(174,54,240,.12), transparent 70%), var(--surface); }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(24px, 3.2vw, 36px); }
.cta-band p { margin: 0 0 22px; color: var(--muted); }
.cta-band .btns { justify-content: center; }

/* slot strip (replaces the stand-in panel: the real Hotkey panel looks different) */
.hk-main { min-width: 0; }
.hk-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: #1b1b1e; border: 1px solid #2c2c30; }
.hk-bar-label { font: 600 12px/1 "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hk-bar .hk-slots { display: flex; gap: 6px; margin: 0; flex-wrap: wrap; }
.hk-bar .hk-slot { width: 30px; height: 30px; background: linear-gradient(180deg, #2a2a2d, #1d1d20); border: 1px solid #3a3a3e; border-bottom-width: 2px; color: var(--muted); border-radius: 6px; }
.hk-bar .hk-slot.used { background: #3a2c10; border-color: #8a6416; color: #ffd27a; }
.hk-bar .hk-slot.sel { background: #ffb020; border-color: #ffb020; color: #1f1400; }
.hk-bar .hk-screen { flex-direction: row; gap: 10px; margin-left: auto; padding: 6px 10px; }

/* ===== Phone fixes (2026-11-21). Phone/tablet widths only: desktop is unchanged. ===== */
/* Home: the later ".products { 1fr 1fr }" rule overrode the stacking rule above, squeezing both cards side by side. */
@media (max-width: 800px) { .products { grid-template-columns: 1fr; } }
/* Manuals: ".doc" padding wiped out the ".wrap" side gutter, so text touched the screen edge. */
@media (max-width: 900px) { .doc { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 600px) { .doc { padding-left: 16px; padding-right: 16px; } }
/* Tables: let them fit the screen instead of being cut off on the right. */
@media (max-width: 600px) {
  table { min-width: 0; font-size: 14px; }
  th, td { padding: 10px 12px; }
  td:first-child { white-space: normal; }
}
/* Hotkey keyboard demo needs a real keyboard: on touch-only devices show a note instead. */
.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .kb-only { display: none !important; }
  .touch-only { display: block; }
}

/* ---- Phone layout (added 2026-11-21) ---- */
@media (max-width: 800px) {
  .products { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .product-art { flex: none; }
  .product-orbital .product-art, .product-hotkey .product-art { border-right: 0; border-bottom: 1px solid var(--border); }
  .table-wrap { overflow: visible; }
  .table-wrap table { min-width: 0; font-size: 15px; }
  .table-wrap thead { display: none; }
  .table-wrap tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { display: block; padding: 0; border: 0; }
  .table-wrap td:first-child { white-space: normal; margin-bottom: 4px; }
  .table-wrap td + td { color: var(--muted); }
  .table-wrap table.t3 td[data-label]:not(:first-child) { margin-top: 6px; color: var(--text); }
  .table-wrap table.t3 td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); opacity: .8; margin-bottom: 1px; }
  .hkdemo { padding: 14px 10px; }
  .hk-rack { gap: 4px; }
  .hk-mod { width: calc((100vw - 74px) / 3); min-height: 280px; padding: 10px 6px; }
  .hk-cap { width: 34px; height: 34px; }
  .hk-start { padding: 0 24px; text-align: center; }
}
@media (max-width: 720px) {
  .site-head .wrap { position: relative; }
  .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 0 12px; font-size: 13px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; }
  .nav a.donate { position: absolute; top: 12px; right: 16px; height: 32px; padding: 0 14px; font-size: 13px; }
}
