/* Barbed Wire Glove Games: site styles (redesign 2026-10).
   One system on every page: Archivo (condensed display), Hanken Grotesk (text), IBM Plex Mono (technical labels only),
   one accent, signal #FF6123 (the brand copper), with asphalt, graphite, paper and white.
   Three modes: magazine (cover and page openers on asphalt), product sheet (graphite with a faint grid, real screens
   with mono callouts) and Swiss (white or paper, flush left, big numerals, spec tables). */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hankengrotesk-var-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibmplexmono-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibmplexmono-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --asphalt: #0F1110;     /* cover and page openers */
  --ink: #131514;         /* text on light */
  --graphite: #1E2120;    /* product sheets */
  --logo-black: #0D0D0D;  /* footer, matches the official logo file */
  --paper: #F6F6F3;
  --white: #FFFFFF;
  --mute: #5E6360;        /* secondary text on light */
  --mute-d: #A6AAA5;      /* secondary text on dark */
  --rule: #D6D9D4;        /* rules on light */
  --rule-d: #3B3F3D;      /* rules on dark */
  --on-dark: #ECEBE6;
  --signal: #FF6123;      /* the one accent */
  --signal-ink: #B4400E;  /* the accent, darkened for small text on light */
  --display: "Archivo", "Arial Narrow", sans-serif;
  --text: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --m: clamp(16px, 5vw, 80px);
  --max: 1280px;
  --gap: 24px;
}

/* ---------- base ---------- */
/* The studio pages are designed light-and-asphalt and set every colour themselves, so they ask browsers not to
   recolour them: "only light" also stops Edge/Chrome auto dark mode, which kept SVG and logo artwork dark on a
   darkened ground (2026-10-26). The AI pages override this with a designed dark mode (ai.css). */
:root { color-scheme: only light; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--logo-black); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.55; font-kerning: normal; overflow-wrap: break-word; }
@media (min-width: 720px) { body { font-size: 17px; } }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--signal); color: var(--ink); }
.skip { position: absolute; left: 8px; top: 8px; z-index: 20; background: var(--on-dark); color: var(--ink); padding: 10px 14px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.vh, .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--m)); margin-inline: auto; padding-inline: var(--m); }
.nowrap { white-space: nowrap; }

/* The studio name in running text is artwork (img/wordmark-a.svg + wordmark-b.svg, the owner's Barbed Wires lettering).
   It sits on the baseline with its capitals about the height of the text's capitals. Light backgrounds only. */
img.wm { display: inline-block; width: 23.5em; max-width: 100%; height: auto; vertical-align: -.371em; margin: 0 .08em; }
img.wm-a { width: 10.37em; margin-right: .3em; }
img.wm-b { width: 12.55em; }

/* The raster logo is untouched; its ™ is text placed at the top right of the lettering, in the lettering's grey. */
.logo-wrap { position: relative; display: block; container-type: inline-size; }
.logo-wrap img { width: 100%; }
.logo-tm { position: absolute; left: 95.9%; top: 73.6%; font-family: var(--text); font-weight: 500; font-size: 4.2cqw; line-height: 1; color: #8E8E8E; pointer-events: none; }

/* ---------- shared pieces: running head, heading rows, spec tables, callouts, buttons ---------- */
.run { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: baseline; padding-top: 9px; border-top: 1.5px solid currentColor;
  font-size: 13px; font-weight: 600; line-height: 1.35; }
.run .stage { display: none; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.run .aside { text-align: right; font-weight: 500; }
@media (min-width: 900px) { .run { grid-template-columns: 1fr auto 1fr; } .run .stage { display: block; } }

.hrow { display: grid; gap: 14px; margin-top: clamp(28px, 4vw, 52px); }
.hrow h2 { font-family: var(--display); font-stretch: 90%; font-weight: 720; font-size: clamp(32px, 2.2vw + 22px, 56px); line-height: 1.02; letter-spacing: -.014em; max-width: 19ch; text-wrap: balance; }
.hrow .side { font-size: 15px; line-height: 1.45; max-width: 38ch; }
@media (min-width: 1024px) {
  .hrow { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .hrow h2 { grid-column: 1 / span 8; }
  .hrow .side { grid-column: 10 / span 3; padding-bottom: 6px; }
}
.sh { font-family: var(--display); font-stretch: 90%; font-weight: 720; font-size: clamp(32px, 2.2vw + 22px, 56px); line-height: 1.02; letter-spacing: -.014em; max-width: 19ch; text-wrap: balance; margin-bottom: 18px; }
.h3 { font-family: var(--display); font-stretch: 90%; font-weight: 650; font-size: 18px; line-height: 1.25; margin-bottom: 12px; }

.spec div { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 8px 0 9px; border-top: 1px solid; font-size: 15px; line-height: 1.4; }
.spec div:last-child { border-bottom: 1px solid; }
.spec dt { font-family: var(--mono); font-size: 12px; line-height: 1.5; padding-top: 1px; }
@media (min-width: 720px) { .spec div { grid-template-columns: 140px 1fr; } }

.co { font-family: var(--mono); font-size: 12.5px; line-height: 1.4; font-weight: 500; }
.co span { display: block; font-family: var(--text); font-size: 14px; font-weight: 400; line-height: 1.4; margin-top: 2px; }
.dotted .co { position: relative; padding-left: 20px; }
.dotted .co::before { content: ""; position: absolute; left: 0; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1.5px solid currentColor; border-radius: 4px;
  font-family: var(--text); font-weight: 650; font-size: 15px; line-height: 1.25; text-decoration: none; cursor: pointer; background: transparent; color: inherit; }
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--fill { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--fill:hover { background: #FF7A45; border-color: #FF7A45; }
/* chart.js writes a plain .btn (the main action) and a .btn--line into the walkthrough's done message */
.cs-done .btn:not(.btn--line) { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stores a { display: block; border-radius: 9px; }
.stores img { height: 46px; width: auto; }
.textlinks { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.light a.tl, .white a.tl, .white .prose a, .light .prose a { text-decoration-color: var(--signal); }

.phone { border-radius: 26px; border: 6px solid #070807; background: #070807; overflow: hidden;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .42), 0 2px 6px rgba(0, 0, 0, .35); }
.phone img { width: 100%; }
.light .phone, .white .phone { box-shadow: 0 14px 30px rgba(19, 21, 20, .2), 0 2px 5px rgba(19, 21, 20, .18); }
.ld { position: absolute; background: #8F938E; pointer-events: none; }
.ld::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.ld.h { height: 1px; } .ld.h::after { right: -4px; top: -4px; }
.ld.v { width: 1px; } .ld.v::after { left: -4px; bottom: -4px; }
.ld.v.up::after { top: -4px; bottom: auto; }

/* ---------- section modes ---------- */
.sec { padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 7vw, 96px); }
.dark { background-color: var(--graphite); color: var(--on-dark);
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 24px 24px; }
.dark .side, .dark .co span, .dark .note, .dark .soft { color: var(--mute-d); }
.dark .spec div { border-color: var(--rule-d); }
.dark .spec dt { color: var(--mute-d); }
.light { background: var(--paper); color: var(--ink); }
.white { background: var(--white); color: var(--ink); }
.light .side, .light .co span, .light .note, .light .soft, .white .side, .white .co span, .white .note, .white .soft { color: var(--mute); }
.light .spec div, .white .spec div { border-color: var(--rule); }
.light .spec dt, .white .spec dt { color: var(--mute); }
.light :focus-visible, .white :focus-visible { outline-color: var(--ink); }

/* ---------- site header (masthead) ---------- */
.site-head { position: relative; z-index: 3; background: var(--asphalt); color: var(--on-dark); padding: 18px 0 12px; }
.site-head--over { position: absolute; left: 0; right: 0; top: 0; background: transparent; padding-bottom: 0; }
.site-head--over .nav a { text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 12px rgba(0, 0, 0, .45); }   /* nav over bright cover art */
.site-head .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 12px; border-top: 1.5px solid rgba(236, 235, 230, .85); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-hand { width: 40px; height: 40px; border-radius: 6px; }
.brand-wm { height: 34px; width: auto; }
.brand-wm--wide { display: none; }
@media (min-width: 720px) { .brand-wm--wide { display: block; height: 15px; } .brand-wm--stack { display: none; } }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--on-dark); }
.nav a[aria-current="page"] { border-bottom-color: var(--signal); }
@media (max-width: 380px) { .nav { gap: 4px 18px; } }
@media (max-width: 359px) { .nav { gap: 4px 13px; font-size: 14px; } }

/* ---------- page openers (magazine mode, every page but home) ---------- */
.opener { position: relative; overflow: hidden; background: var(--asphalt); color: var(--on-dark); padding: 14px 0 clamp(40px, 5vw, 72px); }
.opener .wrap { position: relative; z-index: 2; }
.opener .run { border-top-color: rgba(236, 235, 230, .35); color: var(--mute-d); }
.opener .run > :first-child { color: var(--on-dark); }
.phed { font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(76px, 7.4vw + 40px, 168px);
  line-height: .86; letter-spacing: -.004em; margin: clamp(28px, 4vw, 56px) 0 0 -.03em; text-wrap: balance; }
.phed--long { font-size: clamp(60px, 5.4vw + 36px, 136px); max-width: 12ch; }
.phed em { font-style: normal; color: var(--signal); }
.opener .dek { margin-top: 22px; font-size: 18px; line-height: 1.42; color: #D9D8D3; max-width: 44ch; }
.opener .dek strong { color: var(--on-dark); font-weight: 650; }
.opener .body { margin-top: 14px; color: #C9CBC6; max-width: 52ch; }
.opener .body p + p { margin-top: 10px; }
.opener .body a, .opener .dek a { text-decoration-color: var(--signal); }
.opener .acts { margin-top: 26px; display: grid; gap: 14px; justify-items: start; }
.opener .soft { color: var(--mute-d); font-size: 14px; }
/* strict column summary under an opener */
.sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); margin-top: clamp(30px, 4vw, 48px); border-top: 1.5px solid var(--on-dark); }
.sum div { padding: 12px 12px 14px 0; border-bottom: 1px solid var(--rule-d); }
.sum dt { font-family: var(--mono); font-size: 12px; color: var(--mute-d); margin-bottom: 4px; }
.sum dd { font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: 21px; line-height: 1.1; }
@media (min-width: 900px) {
  .sum { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
  .sum div { border-bottom: 0; }
}

/* opener with a picture plate: text left, the real picture right; on phones the picture comes first */
.op-grid { display: grid; gap: 26px; }
.plate { margin-top: 22px; }
.plate img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 88% 50%; }
.plate figcaption { margin-top: 8px; font-size: 12px; color: #8E918C; }
@media (min-width: 1024px) {
  .op-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: stretch; }
  .op-grid .lede { grid-column: 1 / span 6; grid-row: 1; }
  .op-grid .plate { grid-column: 7 / span 6; grid-row: 1; display: flex; flex-direction: column; margin-top: clamp(28px, 4vw, 56px); }
  .op-grid .plate img { flex: 1; min-height: 0; aspect-ratio: auto; height: 100%; }
}

/* ---------- home: cover ---------- */
.cover { position: relative; overflow: hidden; background: var(--asphalt); color: var(--on-dark); }
.cover .art { position: absolute; left: 0; top: 0; width: 100%; height: 560px; object-fit: cover; object-position: 74% 40%; }
.cover .shade { position: absolute; left: 0; top: 0; width: 100%; height: 562px;
  background: linear-gradient(180deg, rgba(15,17,16,.72) 0%, rgba(15,17,16,.18) 22%, rgba(15,17,16,.1) 40%, rgba(15,17,16,.6) 66%, #0F1110 100%); }
.cover .inner { position: relative; z-index: 2; padding-top: 362px; padding-bottom: 26px; }
.hed { font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(88px, 10.6vw + 46px, 176px); font-size: min(clamp(88px, 10.6vw + 46px, 176px), 20vh);
  line-height: .86; letter-spacing: -.004em; margin-left: -.03em; }
.hed .ln { display: block; overflow: hidden; padding-bottom: .02em; }
.hed .ln > span { display: block; }
.hed em { font-style: normal; color: var(--signal); }
.dek { margin-top: 22px; font-size: 18px; line-height: 1.42; color: #D9D8D3; max-width: 40ch; }
.cover .cols { display: grid; gap: 0; margin-top: 34px; border-top: 1.5px solid var(--on-dark); }
.cover .cols a { display: block; padding: 14px 0 16px; border-bottom: 1px solid var(--rule-d); text-decoration: none; }
.cover .cols a:last-child { border-bottom: 0; }
.cover .cols h2 { font-family: var(--display); font-stretch: 75%; font-weight: 750; font-size: 27px; line-height: 1; text-transform: uppercase; margin-bottom: 8px; }
.cover .cols a:hover h2 { color: var(--signal); }
.cover .cols .now { font-size: 14.5px; line-height: 1.4; color: #A3A7A2; }
.cover .cols .then { font-size: 14.5px; line-height: 1.4; color: var(--on-dark); margin-top: 3px; }
.cover .credit { margin-top: 18px; font-size: 12px; color: #8E918C; }
.cover .credit span { display: block; }
@media (min-width: 900px) {
  .cover { min-height: max(760px, 100svh); display: flex; flex-direction: column; }
  .cover .art { height: 100%; object-position: 62% 50%; }
  .cover .shade { height: 100%;
    background:
      linear-gradient(90deg, rgba(15,17,16,.82) 0%, rgba(15,17,16,.62) 26%, rgba(15,17,16,.12) 46%, rgba(15,17,16,0) 56%),
      linear-gradient(180deg, rgba(15,17,16,.7) 0%, rgba(15,17,16,0) 16%, rgba(15,17,16,0) 52%, rgba(15,17,16,.78) 76%, #0F1110 96%); }
  .cover .inner { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 140px; padding-bottom: 30px; }
  .cover .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
  .cover .cols a { border-bottom: 0; padding-right: 12px; }
  .cover .credit { display: flex; justify-content: space-between; }
}
@media (min-width: 1200px) { .cover .art { object-position: 0% 50%; } }
@media (min-width: 1600px) { .cover .art { left: auto; right: 0; width: 88%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); } }

/* the one load moment: the cover headline lines rise once; nothing else on the site moves on its own */
@media (prefers-reduced-motion: no-preference) {
  .js .hed .ln > span { transform: translateY(104%); animation: rise .8s cubic-bezier(.2, .72, .16, 1) forwards; }
  .js .hed .ln:nth-child(2) > span { animation-delay: .09s; }
  .js .hed .ln:nth-child(3) > span { animation-delay: .18s; }
  .js .cover .art { transform: scale(1.045); animation: settle 1.6s cubic-bezier(.2, .7, .2, 1) forwards; }
  .js .cover .dek, .js .cover .cols, .js .cover .credit { opacity: 0; animation: show .7s ease .5s forwards; }
}
@keyframes rise { to { transform: none; } }
@keyframes settle { to { transform: none; } }
@keyframes show { to { opacity: 1; } }

/* ---------- product sheet pieces shared by home and product pages ---------- */
.lower { display: grid; gap: 32px; margin-top: clamp(36px, 5vw, 64px); }
.getit { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1024px) {
  .lower { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .lower > .specwrap { grid-column: 1 / span 7; }
  .lower > .getit { grid-column: 9 / span 4; }
}

/* Trigonix: live board with callouts and real screens (home) */
.tx-sheet { position: relative; display: grid; gap: 36px; margin-top: clamp(30px, 4vw, 56px); }
.tx-notes { display: grid; gap: 14px; order: 2; }
.tx-notes .co { position: relative; padding-left: 20px; }
.tx-notes .co::before { content: ""; position: absolute; left: 0; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.tx-notes .ld { display: none; }
.tx-live { order: 1; }
.tx-phones { order: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; max-width: 520px; }
.tx-phones figure { display: grid; gap: 12px; }
.tx-phones .co { order: 2; }
.tx-phones .pw { position: relative; }
.tx-phones .p-a .phone { transform: rotate(-2deg); }
.tx-phones .p-b .pw { margin-top: 22px; }
.tx-phones .p-b .phone { transform: rotate(2deg); }
@media (min-width: 720px) and (max-width: 1099px) {
  .tx-sheet { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 36px; row-gap: 28px; align-items: start; }
  .tx-live { grid-column: 1; grid-row: 1; }
  .tx-notes { grid-column: 1; grid-row: 2; }
  .tx-phones { grid-column: 2; grid-row: 1 / span 2; padding-top: 34px; }
}
@media (min-width: 1100px) {
  .tx-sheet { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; min-height: 600px; }
  .tx-notes { order: 0; grid-column: 1 / span 3; display: block; position: static; }
  .tx-notes .co { position: absolute; left: 0; width: calc((100% - 11 * var(--gap)) / 12 * 3 + 2 * var(--gap) - 18px); padding-left: 0; }
  .tx-notes .co::before { display: none; }
  .tx-notes .co:nth-child(1) { top: 110px; } .tx-notes .co:nth-child(2) { top: 220px; } .tx-notes .co:nth-child(3) { top: 330px; }
  .tx-notes .ld { display: block; }
  .tx-live { order: 0; grid-column: 4 / span 5; }
  .tx-phones { order: 0; grid-column: 9 / span 4; display: block; position: relative; height: 600px; max-width: none; }
  .tx-phones figure { display: flex; flex-direction: column; gap: 16px; position: absolute; width: 47%; }
  .tx-phones .co { order: 0; }
  .tx-phones .p-a { left: 0; top: 40px; z-index: 1; }
  .tx-phones .p-b { right: 0; top: 0; }
  .tx-phones .p-a .phone { transform: rotate(-3deg); }
  .tx-phones .p-b .pw { margin-top: 0; }
  .tx-phones .p-b .phone { transform: rotate(3deg); }
  .tx-phones .pw::before { content: ""; position: absolute; z-index: 2; left: var(--lx); top: -12px; width: 1px; height: calc(var(--ly) + 12px); background: #A6AAA5; }
  .tx-phones .pw::after { content: ""; position: absolute; z-index: 2; left: calc(var(--lx) - 4px); top: calc(var(--ly) - 4px); width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 2px var(--graphite); }
}

/* the playable board (js/trigonix.js draws it) */
.tx-board-wrap { container-type: inline-size; max-width: 460px; }
.tx-board { position: relative; width: 100%; }
.tx-board svg, .tx-board > img { display: block; width: 100%; height: auto; }
.tx-dot { --dot: calc(25.5cqw / var(--cols)); position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%);
  width: max(44px, var(--dot)); height: max(44px, var(--dot)); transform: translate(-50%, -50%); margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tx-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: var(--dot); height: var(--dot); margin: calc(var(--dot) / -2) 0 0 calc(var(--dot) / -2);
  border-radius: 50%; background: radial-gradient(circle at 36% 30%, #fff 0, #ececf1 28%, #c4c4cc 72%, #9d9da6 100%); box-shadow: 0 2px 4px rgba(0, 0, 0, .55); transition: transform .12s ease; }
.tx-dot:hover::before { transform: scale(1.08); }
.tx-dot:active::before { transform: scale(.92); }
.tx-dot:focus-visible { outline: none; }
.tx-dot:focus-visible::before { box-shadow: 0 0 0 3px var(--graphite), 0 0 0 6px var(--signal); }
.tx-board.is-locked .tx-dot { cursor: default; }
.tx-hint { fill: rgba(255, 255, 255, .34); stroke: none; opacity: 0; transition: opacity .15s; pointer-events: none; }
.tx-hint.is-on { opacity: 1; }
.tx-target-edge { fill: none; stroke: #0D0D0D; stroke-width: 7.5px; vector-effect: non-scaling-stroke; pointer-events: none; }
.tx-target { fill: none; stroke: #F3F2EE; stroke-width: 4px; vector-effect: non-scaling-stroke; pointer-events: none; }
.tx-done { fill: none; stroke: var(--signal); stroke-width: 4px; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .2s; pointer-events: none; }
.tx-done.is-on { opacity: 1; }
.tx-frame { fill: none; stroke: #C9C9CF; stroke-width: 5; transition: stroke .3s; }
.tx-board.is-solved .tx-frame { stroke: var(--signal); }
.tx-bar { display: grid; gap: 12px; margin-top: 16px; max-width: 460px; }
.tx-status { min-height: 2.9em; font-size: 15px; line-height: 1.45; color: var(--on-dark); }
.tx-status strong { font-weight: 650; }
.tx-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.tx-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; font: inherit; font-size: 14.5px; font-weight: 650;
  color: var(--on-dark); background: transparent; border: 1.5px solid #565B58; border-radius: 4px; cursor: pointer; }
.tx-btn:hover { border-color: var(--on-dark); }
.tx-btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s ease; }
.tx-btn[data-dir="ccw"] svg { transform: scaleX(-1); }
.tx-btn--next { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.tx-btn--next:hover { background: #FF7A45; border-color: #FF7A45; }
.tx-btn[hidden] { display: none; }
.tx-label { font-family: var(--mono); font-size: 12px; color: var(--mute-d); margin-bottom: 10px; }
.tx-label b { color: var(--signal); font-weight: 500; }

/* Chord Scribe on home: three real screens in the order you use them */
.cs-flow { display: grid; gap: 26px; margin-top: clamp(30px, 4vw, 56px); }
.cs-flow li { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 18px; align-items: center; }
.cs-flow .co { order: 2; max-width: 32ch; }
.cs-flow .co b { color: var(--signal-ink); font-weight: 500; margin-right: 6px; }
.cs-flow .phone { order: 1; width: 100%; border-width: 5px; border-radius: 20px; }
@media (min-width: 900px) {
  .cs-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .cs-flow li { grid-template-columns: 1fr; gap: 16px; align-items: start; justify-items: start; }
  .cs-flow .co { order: 0; }
  .cs-flow .phone { order: 0; width: min(296px, 100%); border-width: 6px; border-radius: 26px; }
  .cs-flow li:nth-child(2) { margin-top: 56px; }
  .cs-flow li:nth-child(3) { margin-top: 112px; }
}

/* PoolKit on home: the demo and the debugger window, then the measured benchmark */
.pk-sheet { display: grid; gap: 28px; margin-top: clamp(30px, 4vw, 56px); }
.pk-sheet .spec div { grid-template-columns: 104px 1fr; }
.pk-shots { position: relative; }
.pk-win { border: 1px solid #3F4341; border-radius: 6px; overflow: hidden; background: #111; box-shadow: 0 16px 34px rgba(0, 0, 0, .45); }
.pk-dbg { margin: -18px 0 0 6%; position: relative; z-index: 1; }
.pk-notes { display: grid; gap: 14px; margin-top: 22px; }
.pk-notes .co { position: relative; padding-left: 20px; }
.pk-notes .co::before { content: ""; position: absolute; left: 0; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.pk-shots .ld { display: none; z-index: 3; }
.pk-get { margin-top: 22px; }
@media (min-width: 1024px) {
  .pk-sheet { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .pk-shots { grid-column: 1 / span 8; padding-top: 70px; padding-bottom: 116px; }
  .pk-ld1 { left: 52%; top: 8px; height: 172px; }
  .pk-sheet > .specwrap { grid-column: 10 / span 3; }
  .pk-dbg { margin: -34px 0 0 9%; }
  .pk-notes { display: block; margin: 0; }
  .pk-notes .co { position: absolute; padding-left: 0; }
  .pk-notes .co::before { display: none; }
  .pk-notes .n1 { top: 0; left: calc(52% + 14px); width: 270px; }
  .pk-notes .n2 { bottom: 0; left: calc(9% + 91% * .415 - 8px); width: 220px; }
  .pk-notes .n3 { bottom: 0; right: 0; width: 200px; text-align: right; }
  .pk-shots .ld { display: block; }
}
.bench { margin-top: clamp(44px, 6vw, 80px); border-top: 1.5px solid var(--on-dark); padding-top: 12px; display: grid; gap: 22px; }
.bench h3 { font-family: var(--display); font-stretch: 90%; font-weight: 650; font-size: 18px; line-height: 1.25; }
.bench .times { --fs: clamp(50px, 6.2vw + 18px, 128px); display: flex; align-items: flex-start; gap: 0 clamp(12px, 1.6vw, 22px); }
.bench .tcell { display: grid; gap: 12px; min-width: 0; }
.bench .t { font-family: var(--display); font-stretch: 88%; font-weight: 800; font-size: var(--fs); line-height: .78; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.bench .t.before { color: #6C706D; }   /* dimmed, still 3:1+ for large text */
.bench .cap { font-family: var(--mono); font-size: 12px; line-height: 1.45; color: var(--mute-d); }
.bench .arrow { position: relative; flex: none; width: clamp(28px, 3.4vw, 58px); height: 5px; background: var(--signal); margin: calc(var(--fs) * .36) 14px 0 0; }
.bench .arrow::after { content: ""; position: absolute; right: -13px; top: -8.5px; border-left: 18px solid var(--signal); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.bench .chart { display: block; width: 100%; height: 176px; overflow: visible; }
.bench .chart text { font-family: var(--mono); font-size: 11px; fill: var(--mute-d); }
.bench .chart .lab { font-family: var(--text); font-size: 13px; font-weight: 650; fill: var(--on-dark); }
.bench .chart .val { font-family: var(--mono); font-size: 12px; font-weight: 500; fill: var(--on-dark); }
.bench .chart .hit { fill: transparent; cursor: default; }
.bench .chart .tick { pointer-events: none; }
.bench .chart .hit:hover + .tick, .bench .chart .tick.on { stroke: var(--on-dark); stroke-width: 3; }
.bench .tip { min-height: 1.4em; font-family: var(--mono); font-size: 12px; color: var(--on-dark); }
.bench .note { font-size: 13.5px; line-height: 1.45; max-width: 60ch; }
@media (min-width: 1024px) {
  .bench { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .bench h3 { grid-column: 1 / span 12; }
  .bench .left { grid-column: 1 / span 6; }
  .bench .right { grid-column: 7 / span 6; padding-top: 6px; }
}

/* studio band on home (Swiss) */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: clamp(28px, 4vw, 52px); }
.zero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: end; }
.zero .n, .bignum { font-family: var(--display); font-stretch: 88%; font-weight: 800; font-size: clamp(168px, 26vw + 40px, 470px); line-height: .74; letter-spacing: -.04em; margin-left: -.04em; }
.zero p { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--mute); max-width: 24ch; padding-bottom: 4px; }
.zero p b { display: block; font-family: var(--display); font-stretch: 90%; font-weight: 720; font-size: 22px; line-height: 1.1; color: var(--ink); margin-bottom: 6px; }
.about-band h2 { font-family: var(--display); font-stretch: 90%; font-weight: 720; font-size: clamp(30px, 1.6vw + 22px, 44px); line-height: 1.04; letter-spacing: -.012em; max-width: 17ch; margin-bottom: 18px; }
.about-band p { max-width: 54ch; }
.about-band p + p { margin-top: 12px; }
.about-band a { text-decoration-color: var(--signal); }
.mailto { font-weight: 650; }
.matrix { margin-top: clamp(40px, 5vw, 72px); }
.matrix table { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.matrix thead th:first-child { width: 36%; }
@media (min-width: 720px) { .matrix thead th:first-child { width: 24%; } }
.matrix th { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--mute); text-align: left; padding: 0 4px 8px 0; vertical-align: bottom; }
@media (min-width: 720px) { .matrix th { font-size: 11.5px; padding-right: 8px; } }
.matrix td, .matrix tbody th { border-top: 1px solid #CED2CD; padding: 12px 8px 12px 0; vertical-align: middle; }
.matrix tbody tr:last-child td, .matrix tbody tr:last-child th { border-bottom: 1.5px solid var(--ink); }
.matrix thead tr { border-bottom: 1.5px solid var(--ink); }
.matrix tbody th { font-family: var(--text); font-size: 16px; font-weight: 700; color: var(--ink); }
.matrix tbody th small { display: block; font-weight: 400; font-size: 13px; color: var(--mute); }
.matrix .yes a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; min-width: 44px; text-decoration: none; font-weight: 600; font-size: 14px; }
.matrix .yes a::before { content: ""; width: 15px; height: 15px; background: var(--signal); flex: none; }
.matrix .yes a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.matrix .no { color: #707571; font-family: var(--mono); }   /* 4.7:1 on white */
.matrix .yes .lbl { display: none; }
.matrix .kind, .matrix .price { display: none; }
@media (min-width: 720px) { .matrix .yes .lbl { display: inline; } .matrix .kind, .matrix .price { display: table-cell; } }
@media (min-width: 1024px) {
  .studio-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .zero { grid-column: 1 / span 6; }
  .about-band { grid-column: 8 / span 5; padding-bottom: 6px; }
}

/* ---------- games catalog ---------- */
.catalog > li { display: grid; gap: 24px; padding: 14px 0 clamp(36px, 5vw, 64px); border-top: 1.5px solid var(--ink); }
.catalog > li + li { margin-top: clamp(8px, 2vw, 24px); }
.catalog .name { font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(64px, 5.4vw + 36px, 136px); line-height: .86; letter-spacing: -.004em; margin: 14px 0 0 -.03em; }
.catalog .name a { text-decoration: none; }
.catalog .name a:hover { color: var(--signal-ink); }
.catalog .desc { margin-top: 16px; font-size: 18px; line-height: 1.45; max-width: 34ch; }
.catalog .facts { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start; }
.catalog .facts .phone { border-width: 4px; border-radius: 15px; }
.catalog .facts .spec div { grid-template-columns: 96px 1fr; }
@media (min-width: 900px) {
  .catalog > li { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: var(--gap); row-gap: 30px; }
  .catalog .facts { display: contents; }
  .catalog .main { grid-column: 1 / span 7; grid-row: 1; }
  .catalog .facts .spec { grid-column: 1 / span 6; grid-row: 2; }
  .catalog .facts .spec div { grid-template-columns: 140px 1fr; }
  .catalog .getit { grid-column: 1 / span 6; grid-row: 3; align-self: start; }
  .catalog .facts .phone { grid-column: 9 / span 4; grid-row: 1 / span 3; width: min(264px, 100%); justify-self: center; margin-top: 18px; border-width: 6px; border-radius: 26px; transform: rotate(2deg); }
  .catalog > li:nth-child(2) .facts .phone { transform: rotate(-2deg); }
}

/* ---------- Trigonix page ---------- */
.tp-sheet { display: grid; gap: 40px; margin-top: clamp(30px, 4vw, 56px); }
.tp-sheet .tx-live { order: 0; }
/* two real screens side by side, each with a mono callout above it */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; max-width: 520px; }
.pair figure { display: grid; gap: 12px; align-content: start; }
.pair .co { min-height: 3.2em; }
.pair .phone { transform: rotate(-2deg); }
.pair figure + figure { margin-top: 30px; }
.pair figure + figure .phone { transform: rotate(2deg); }
.slab-foot { margin-top: clamp(28px, 4vw, 44px); padding-top: 12px; border-top: 1px solid var(--rule-d); font-size: 15px; color: var(--mute-d); max-width: 70ch; }
.slab-foot a { color: var(--on-dark); text-decoration-color: var(--signal); }
@media (min-width: 1024px) {
  .tp-sheet { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .tp-sheet .tx-live { grid-column: 1 / span 6; }
  .tp-sheet .pair { grid-column: 8 / span 5; max-width: 470px; justify-self: end; width: 100%; padding-top: 6px; }
}
.shopfig { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: end; margin: 28px 0 22px; }
.shopfig img { border-radius: 6px; box-shadow: 0 10px 24px rgba(19, 21, 20, .18), 0 1px 3px rgba(19, 21, 20, .2); }
.modes-grid { display: grid; gap: 34px; margin-top: 24px; }
.modes-num { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: end; }
.modes-num p { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--mute); max-width: 26ch; padding-bottom: 4px; }
.modes-num p b { display: block; font-family: var(--display); font-stretch: 90%; font-weight: 720; font-size: 22px; line-height: 1.1; color: var(--ink); margin-bottom: 6px; }
.flist li { padding: 9px 0 10px 24px; border-top: 1px solid var(--rule); position: relative; }
.flist li:last-child { border-bottom: 1px solid var(--rule); }
.flist li::before { content: ""; position: absolute; left: 0; top: 17px; width: 9px; height: 9px; background: var(--signal); }
.modes-grid .h3 { margin-top: 30px; }
.modes-grid .h3:first-child { margin-top: 0; }
@media (min-width: 1024px) {
  .modes-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; margin-top: clamp(28px, 4vw, 52px); }
  .modes-num { grid-column: 1 / span 6; }
  .modes-grid .specwrap { grid-column: 8 / span 5; }
}

/* font licenses: full license text in collapsible blocks */
.licenses p { max-width: 62ch; }
.licenses details { max-width: 820px; border-top: 1px solid var(--rule); }
.licenses details:last-of-type { border-bottom: 1px solid var(--rule); }
.licenses summary { cursor: pointer; padding: 12px 0; font-weight: 650; min-height: 44px; }
.licenses pre { margin: 0 0 16px; padding: 0 0 4px; font: 12.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--mute); }

.lic-intro { margin-top: 18px; margin-bottom: 18px; }

/* pager between the game pages */
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 64px); padding: 10px 0 0; border-top: 1.5px solid currentColor; font-weight: 650; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: var(--signal); }
.pager-sec { padding: 1px 0 clamp(40px, 6vw, 72px); }
.pager-sec .pager { margin-top: clamp(28px, 4vw, 44px); }

/* ---------- Chord Scribe pages ---------- */
.cs-cover { display: grid; gap: 40px; }
.cs-trio { display: flex; align-items: flex-start; max-width: 560px; padding-top: 6px; }
.cs-trio .phone { position: relative; flex: 0 0 37%; min-width: 0; border-width: 5px; border-radius: 18px; }
.cs-trio .phone + .phone { margin-left: -5.5%; }
.cs-trio .phone:nth-child(1) { margin-top: 44px; transform: rotate(-3deg); z-index: 1; }
.cs-trio .phone:nth-child(2) { z-index: 3; }
.cs-trio .phone:nth-child(3) { margin-top: 44px; transform: rotate(3deg); z-index: 2; }
@media (min-width: 1024px) {
  .cs-cover { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
  .cs-cover .lede { grid-column: 1 / span 6; }
  .cs-cover .pair { grid-column: 8 / span 5; max-width: 470px; justify-self: end; width: 100%; }
  .cs-cover .cs-trio { grid-column: 7 / span 6; max-width: 600px; justify-self: end; width: 100%; }
  .cs-cover .phed { margin-top: clamp(28px, 4vw, 56px); }
}

/* the first-chart walkthrough section */
.fc-grid { display: grid; gap: 40px; margin-top: clamp(28px, 4vw, 52px); }
@media (min-width: 1024px) {
  .fc-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .fc-grid .copy { grid-column: 1 / span 5; }
  .fc-grid .cs-chart { grid-column: 7 / span 6; }
}
.copy p { max-width: 54ch; }
.copy p + p, .copy p + .lyrics, .copy .lyrics + p { margin-top: 14px; }
.lyrics { border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 14px 0 16px; margin-top: 16px; }
.lyrics p { font-family: var(--display); font-stretch: 80%; font-weight: 600; font-size: clamp(22px, 1vw + 17px, 28px); line-height: 1.2; }
.copy-row { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.copy-done { font-size: 14px; color: var(--mute); }
.steps { counter-reset: s; margin-top: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0 11px; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s); font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--signal-ink); padding-top: 3px; }
.copy .soft { margin-top: 18px; font-size: 15px; }

/* the Pro section */
.pro-grid { display: grid; gap: 40px; margin-top: clamp(28px, 4vw, 52px); }
.pro-grid .copy p + p { margin-top: 12px; }
.pro-grid .btns, .pro-grid .stores { margin-top: 22px; }
.pro-grid .textlinks { margin-top: 18px; }
.pro-grid .more { margin-top: 18px; }
@media (min-width: 1024px) {
  .pro-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .pro-grid .copy { grid-column: 1 / span 6; }
  .pro-grid .video { grid-column: 9 / span 4; }
}
.video { width: 100%; max-width: 300px; }
.video-lite { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 20px; border: 6px solid #070807; overflow: hidden; background: #070807; color: var(--on-dark); text-decoration: none;
  box-shadow: 0 14px 30px rgba(19, 21, 20, .2), 0 2px 5px rgba(19, 21, 20, .18); }
.video-lite img { width: 100%; height: 100%; object-fit: cover; }
.video-lite .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; background: var(--asphalt); color: var(--on-dark);
  padding: 12px 18px; border-radius: 4px; font-weight: 650; font-size: 15px; white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.video-lite .play svg { width: 14px; height: 14px; fill: var(--signal); }
.video-lite:hover .play { background: var(--signal); color: var(--ink); }
.video-lite:hover .play svg { fill: var(--ink); }
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cap { font-family: var(--mono); font-size: 12.5px; color: var(--mute); margin-top: 12px; }

/* Chord Scribe mini chart editor. Sizes, colors and shapes come from the app (ChordBar/src/styles.ts):
   navy chord bar #183153 (radius 18), chord tokens (radius 14, numeral 12/800 over name 20/800),
   sheet #fffdf8 with a centered title and "Key of", placed chords (2 px border, radius 12 with a nearly square
   bottom-left corner, numeral 13/800 over name 17/700, round "x"), monospace lyric words, dashed copper drop zone. */
.cs-chart { --cs-navy: #183153; --cs-page: #fffdf8; --cs-rule: #d9c9b0; --cs-keyc: #6b4f2b; --cs-ink: #111827;
  --cs-ui: Roboto, "Segoe UI", system-ui, sans-serif; --cs-mono: ui-monospace, "Roboto Mono", Menlo, Consolas, monospace;
  max-width: 560px; }
.cs-fallback { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px; }
.cs-fallback p + p { margin-top: 10px; }
.cs-app { position: relative; overflow: hidden; background: #f4efe6; border-radius: 22px; padding: 14px; border: 6px solid #070807; box-shadow: 0 18px 38px rgba(19, 21, 20, .22), 0 2px 6px rgba(19, 21, 20, .16); }
.cs-bar { display: flex; flex-wrap: wrap; gap: 8px; background: var(--cs-navy); border-radius: 18px; padding: 10px 12px; }
.cs-token {
  width: 64px; min-height: 44px; padding: 3px 6px; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 14px; border: 1px solid var(--c-border); background: var(--c-solid);
  font-family: var(--cs-ui); cursor: grab; touch-action: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.cs-num { font-size: 12px; line-height: 12px; font-weight: 800; letter-spacing: .5px; color: var(--c-accent); margin-bottom: 1px; }
.cs-sym { font-size: 20px; line-height: 22px; font-weight: 800; color: var(--c-text); }
.cs-token.is-selected { box-shadow: 0 0 0 3px #f0a23d; }
.cs-token:focus-visible { outline: 3px solid #fffaf0; outline-offset: 2px; }
.cs-sheet { background: var(--cs-page); border: 1px solid #e5ddd0; border-radius: 8px; margin-top: 12px; padding: 10px 14px 14px; }
.cs-head { text-align: center; border-bottom: 1px solid var(--cs-rule); padding-bottom: 8px; margin-bottom: 8px; }
.cs-title { font-family: var(--cs-ui); font-size: 22px; line-height: 1.2; font-weight: 800; color: var(--cs-navy); margin: 0; max-width: none; }
.cs-key { font-family: var(--cs-ui); font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--cs-keyc); margin: 2px 0 0; max-width: none; }
/* One lyric line: lineScrollContent (PLACED_CHORD_HEIGHT + 12 tall, clipped), lineTrack for chords, lyricArea at the bottom */
.cs-line { position: relative; height: 74px; overflow: hidden; margin-bottom: 2px; }
.cs-track { position: absolute; inset: 0; }
.cs-preview { position: absolute; top: 0; bottom: 0; background: rgba(194, 123, 43, .15); border: 2px dashed rgba(194, 123, 43, .35); border-radius: 8px; pointer-events: none; }
/* lyricArea: drawn over the chords (zIndex 2) and transparent to touches (pointerEvents none), as in the app; the
   words only take taps while a chord is picked for placing. */
.cs-words { position: absolute; left: 0; bottom: 0; height: 44px; display: flex; flex-wrap: nowrap; align-items: flex-end; white-space: nowrap; z-index: 3; pointer-events: none; }
.is-picking .cs-word { pointer-events: auto; }
.cs-word {
  height: 44px; margin: 0 12px 0 0; padding: 0; display: flex; align-items: flex-end;
  font-family: var(--cs-mono); font-size: 17px; line-height: 22px; color: var(--cs-ink);
  background: none; border: 0; border-radius: 6px; cursor: default; -webkit-tap-highlight-color: transparent;
}
.cs-word.joins-next { margin-right: 6px; }
.cs-word:last-child { margin-right: 0; }
.is-picking .cs-word { cursor: pointer; }
.is-picking .cs-word:hover, .is-picking .cs-word:focus-visible { background: rgba(194, 123, 43, .12); }
.cs-word:focus-visible { outline: 2px solid var(--cs-navy); outline-offset: 1px; }
/* PlacedChordBlock: shell, "x", resize grips, draggable body, label */
.cs-placed { position: absolute; top: 0; bottom: 0; border: 2px solid var(--c-border); background: var(--c-fill); border-radius: 12px 12px 12px 2px; z-index: 2; font-family: var(--cs-ui); }
.cs-placed:focus-visible { outline: 3px solid var(--cs-navy); outline-offset: 1px; }
.cs-body { position: absolute; inset: 0; z-index: 1; cursor: grab; touch-action: none; }
.is-dragging .cs-body { cursor: grabbing; }
.cs-plabel { position: absolute; top: 0; bottom: 28px; left: -120px; right: -120px; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; z-index: 1; }
.cs-pnum { font-size: 13px; line-height: 14px; font-weight: 800; letter-spacing: .5px; color: var(--c-text); white-space: nowrap; }
.cs-psym { font-size: 17px; line-height: 20px; font-weight: 700; color: var(--c-text); white-space: nowrap; }
.cs-grip { position: absolute; top: -8px; bottom: -8px; display: flex; align-items: center; justify-content: flex-start; z-index: 2; cursor: ew-resize; touch-action: none; }
.cs-grip-bar { display: block; width: 4px; height: 26px; border-radius: 999px; background: var(--c-accent); opacity: .7; }
.is-precise .cs-grip-bar { opacity: 1; }
.cs-x { position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: var(--c-border); color: #fffaf0; font: 700 11px/18px var(--cs-ui); text-align: center; z-index: 3; cursor: pointer; }
.cs-x[hidden] { display: none; }
/* DragOverlay: the chord following the finger and the trash band */
.cs-ghost { position: fixed; z-index: 60; pointer-events: none; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(255, 250, 240, .92); border: 1px solid #d9c9b0; font: 700 18px/1 Roboto, "Segoe UI", system-ui, sans-serif; color: #111827; }
.cs-ghost.is-active { border-color: #c27b2b; background: rgba(255, 243, 214, .96); }
.cs-ghost[hidden] { display: none; }
.cs-dock { min-height: 58px; margin: 10px 0 0; max-width: none; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 8px; font: 600 14px/1.35 var(--cs-ui); color: var(--cs-keyc); text-wrap: balance; }
.is-dragging .cs-dock { visibility: hidden; }
.cs-trash { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(185, 28, 28, .12); border-top: 2px solid rgba(185, 28, 28, .3); color: #b91c1c; font: 700 15px/1 Roboto, "Segoe UI", system-ui, sans-serif; pointer-events: none; }
.cs-trash svg { width: 24px; height: 24px; }
.cs-trash.is-active { background: rgba(185, 28, 28, .25); border-top-color: #b91c1c; }
.cs-trash[hidden] { display: none; }
.cs-confirm { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(24, 49, 83, .45); }
.cs-confirm[hidden] { display: none; }
.cs-confirm-card { background: #fffaf4; border-radius: 18px; padding: 20px 20px 16px; max-width: 300px; width: 100%; font-family: var(--cs-ui); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.cs-confirm-title { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--cs-navy); }
.cs-confirm-text { margin: 0 0 16px; font-size: 15px; color: #374151; }
.cs-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.cs-confirm-actions button { min-height: 44px; padding: 8px 16px; border-radius: 10px; font: 700 15px/1 var(--cs-ui); cursor: pointer; }
.cs-confirm-cancel { background: transparent; border: 1.5px solid #d9c9b0; color: var(--cs-navy); }
.cs-confirm-ok { background: #b91c1c; border: 1.5px solid #b91c1c; color: #fff; }
/* the walkthrough panel under the editor, in the site's system */
.cs-panel { margin-top: 18px; display: grid; gap: 14px; }
.cs-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; border-top: 1.5px solid var(--ink); }
.cs-steps li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; line-height: 1.3; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.cs-tick { position: relative; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px dashed #9EA29D; background: transparent; }
.cs-steps li.is-done .cs-tick { background: var(--signal); border: 1.5px solid var(--signal); }
.cs-steps li.is-done .cs-tick::after { content: ""; position: absolute; left: 4.5px; top: 1px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cs-steps li.is-done .cs-step-text { font-weight: 650; }
.cs-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cs-reset { min-height: 44px; padding: 8px 16px; font: inherit; font-size: 15px; font-weight: 650; color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: 4px; cursor: pointer; }
.cs-reset:hover { background: var(--signal); border-color: var(--signal); }
.cs-keysel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.cs-keysel select { min-height: 44px; min-width: 76px; padding: 6px 10px; font: inherit; font-family: var(--text); font-size: 15px; font-weight: 650; color: var(--ink); background: var(--white); border: 1.5px solid var(--ink); border-radius: 4px; }
.cs-status { min-height: 1.5em; font-size: 14.5px; color: var(--mute); max-width: 60ch; }
.cs-done { padding: 14px 0 0; border-top: 1.5px solid var(--signal); }
.cs-done-text { font-weight: 650; }
.cs-done .button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (max-width: 440px) {
  .cs-app { padding: 10px; border-radius: 18px; }
  .cs-sheet { padding: 8px 8px 12px; }
  .cs-word { font-size: 16px; }
  .cs-steps { grid-template-columns: 1fr; }
}

/* ---------- transposing guide ---------- */
.guide { display: grid; gap: 40px; margin-top: clamp(28px, 4vw, 52px); }
.prose h2 { font-family: var(--display); font-stretch: 90%; font-weight: 720; font-size: clamp(26px, 1.2vw + 20px, 36px); line-height: 1.08; letter-spacing: -.01em; margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 62ch; }
.prose p + p { margin-top: 1em; }
.prose ol { counter-reset: s; margin: 1em 0 1.2em; max-width: 62ch; }
.prose ol li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0 11px; border-top: 1px solid var(--rule); }
.prose ol li:last-child { border-bottom: 1px solid var(--rule); }
.prose ol li::before { content: counter(s); font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--signal-ink); padding-top: 3px; }
.prose .btns { margin-top: 26px; }
.keys { align-self: start; }
.keys-row { border-top: 1.5px solid var(--ink); padding: 10px 0 18px; }
.keys-row + .keys-row { margin-top: 8px; }
.keys-name { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--mute); margin-bottom: 12px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; }
.keys figcaption { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--mute); max-width: 40ch; }
@media (min-width: 1024px) {
  .guide { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .guide .prose { grid-column: 1 / span 7; }
  .guide .keys { grid-column: 9 / span 4; position: sticky; top: 24px; }
}
/* Static chord labels, drawn like Chord Scribe's placed chords in the app's colors */
.chip { display: inline-flex; flex-direction: column; align-items: center; min-width: 3.4em; padding: 6px 12px 8px;
  border: 2px solid var(--c-border); background: var(--c-fill); border-radius: 12px 12px 12px 2px;
  font-family: Roboto, "Segoe UI", system-ui, sans-serif; color: var(--c-text); font-weight: 700; font-size: 20px; line-height: 22px; }
.chip i { font-style: normal; font-weight: 800; font-size: 13px; line-height: 15px; letter-spacing: .5px; }
.pc-teal { --c-border: #318578; --c-fill: rgba(212, 240, 232, .45); --c-text: #124f46; }
.pc-rose { --c-border: #c4364e; --c-fill: rgba(248, 218, 228, .45); --c-text: #7a1a30; }
.pc-red { --c-border: #c45454; --c-fill: rgba(245, 218, 218, .45); --c-text: #7a2020; }
.pc-sky { --c-border: #2e7aad; --c-fill: rgba(212, 230, 248, .45); --c-text: #0e4568; }
.pc-violet { --c-border: #6e4abf; --c-fill: rgba(228, 218, 248, .45); --c-text: #412580; }
.pc-orange { --c-border: #c86a2e; --c-fill: rgba(248, 225, 212, .45); --c-text: #7a3812; }
.pc-yellow { --c-border: #b08b2e; --c-fill: rgba(248, 240, 205, .45); --c-text: #6b5014; }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 40px; margin-top: clamp(28px, 4vw, 52px); }
.about-copy p { max-width: 60ch; }
.about-copy p + p { margin-top: 1em; }
.about-copy .lead-p { font-size: 1.16em; line-height: 1.5; }
.about-copy a { text-decoration-color: var(--signal); }
.about-side { display: grid; gap: 26px; align-content: start; }
.about-logo { background: var(--logo-black); border-radius: 6px; padding: 8% 6% 4%; }
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .about-copy { grid-column: 1 / span 7; }
  .about-side { grid-column: 9 / span 4; position: sticky; top: 24px; }
}

/* ---------- contact and forms ---------- */
.contact-grid { display: grid; gap: 34px; margin-top: clamp(28px, 4vw, 52px); }
.contact-grid .copy p + p { margin-top: 12px; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .contact-grid .copy { grid-column: 1 / span 5; }
  .contact-grid .form { grid-column: 7 / span 6; }
}
.bigmail { display: inline-block; margin-top: 12px; font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: clamp(24px, 3.2vw + 10px, 56px); line-height: 1.05;
  text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: .14em; overflow-wrap: anywhere; }
.bigmail:hover { color: var(--signal); }
.bigmail--s { font-size: clamp(19px, 1.1vw + 13px, 27px); text-decoration-thickness: 2px; }
.opener .bigmail { margin-top: 18px; font-size: clamp(19px, 3.4vw + 8px, 60px); }
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 650; font-size: 15px; }
.form input, .form textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1.5px solid #8A8F8B; border-radius: 4px; padding: 11px 12px; width: 100%; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.form [aria-invalid="true"] { border-color: #B42318; }
.form-error { color: #9B1C1C; font-size: 14.5px; font-weight: 650; }
.form-note { font-size: 14px; color: var(--mute); }
.offers { display: grid; gap: 30px; margin-top: clamp(28px, 4vw, 52px); }
.offer { border-top: 1.5px solid var(--ink); padding-top: 12px; display: grid; gap: 14px; grid-template-rows: auto 1fr auto; }
.offer .co { color: var(--mute); }
.offer p:not(.co) { max-width: 46ch; }
.offers + .soft { margin-top: 26px; font-size: 15px; }
@media (min-width: 820px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); } }

/* ---------- legal pages: typography only ---------- */
.legal { max-width: 72ch; padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.legal h1 { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: clamp(44px, 3.4vw + 28px, 84px); line-height: .92; letter-spacing: -.01em; margin: 0 0 24px; text-wrap: balance; }
.legal h2 { font-family: var(--display); font-stretch: 90%; font-weight: 700; font-size: 20px; line-height: 1.25; margin: 2em 0 .55em; padding-top: 10px; border-top: 1px solid var(--rule); }
.legal p { margin: 0 0 1em; }
.legal ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .35em; }
.legal li::marker { color: var(--signal-ink); }
.legal a { text-decoration-color: var(--signal); }
.legal .back { margin-top: 40px; padding-top: 14px; border-top: 1.5px solid var(--ink); font-weight: 650; }

/* ---------- 404 ---------- */
.nf-grid { display: grid; gap: 22px; margin-top: clamp(28px, 4vw, 56px); }
.nf .bignum { color: var(--on-dark); font-size: clamp(150px, 22vw + 40px, 400px); }
.nf-h { font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(56px, 3vw + 40px, 96px); line-height: .88; }
.nf .dek { margin-top: 14px; }
@media (min-width: 900px) { .nf-grid { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(28px, 4vw, 56px); align-items: end; } .nf-grid > div { padding-bottom: 8px; } }
.biglinks { display: grid; margin-top: clamp(30px, 4vw, 48px); border-top: 1.5px solid var(--on-dark); }
.biglinks a { display: flex; align-items: center; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--rule-d); text-decoration: none;
  font-family: var(--display); font-stretch: 75%; font-weight: 750; font-size: 27px; text-transform: uppercase; }
.biglinks a:hover { color: var(--signal); }
@media (min-width: 900px) { .biglinks { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); } .biglinks a { border-bottom: 0; } }

/* ---------- footer ---------- */
.site-foot { background: var(--logo-black); color: #C9CCC7; padding: 44px 0 30px; font-size: 14.5px; border-top: 1px solid #262827; }
.site-foot .top { display: grid; gap: 30px; }
.site-foot .logo-wrap { width: 220px; }
.site-foot .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
.site-foot h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; color: #8E918C; margin-bottom: 10px; }
.site-foot li + li { margin-top: 6px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: var(--signal); color: var(--on-dark); }
.site-foot .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 14px; border-top: 1px solid #2E302F; font-size: 13px; color: #8E918C; }
@media (min-width: 1024px) {
  .site-foot .top { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .site-foot .home { grid-column: 1 / span 3; }
  .site-foot .cols { grid-column: 5 / span 8; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
