/* 5-String Banjo Chords: the app's own "Walnut" look (Banjo Chords D3): dark walnut, calfskin
   cream, one copper accent, and patina green that only ever means the short 5th string. The
   colours are the app's tokens (play/styles/app.css), so the page, the live chord box and the
   screenshots agree.

   Loaded AFTER ../style.css on every page in this folder: it re-points the house variables, so
   privacy.html and support.html take the look with no markup changes, and adds the components
   only index.html uses. No web fonts from anywhere else: the accidentals font is the app's own
   file under play/styles/, the serif stack is the app's. The app is dark only, so this page is too. */

@font-face { font-family: "PT Accidentals"; src: url("play/styles/pt-accidentals.woff2") format("woff2"); unicode-range: U+266D-266F, U+1D12A-1D12B; font-display: swap; }

:root {
  --bg: #1a1310; --fg: #f6ecdc; --muted: #c5b4a0; --faint: #ab9a86; --rule: #4b392e;
  --surface: #271c17; --surface-2: #33261f; --deep: #120d0b;
  --accent: #ef8a3c; --accent-soft: rgba(239, 138, 60, .14); --accent-line: rgba(239, 138, 60, .45); --on-accent: #1c0f07;
  --fifth: #7fc7ae; --fifth-soft: rgba(127, 199, 174, .14);
  --wire: #8a7362; --string: #d4c4ae; --head: #f1e4cd;
  --serif: "PT Accidentals", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "PT Accidentals", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
/* the house sheet flips to its own dark palette here; keep Walnut instead */
@media (prefers-color-scheme: dark) {
  :root { --bg: #1a1310; --fg: #f6ecdc; --muted: #c5b4a0; --rule: #4b392e; }
}

body { background: var(--bg); color: var(--fg); font-family: var(--sans); }
main a { color: var(--fg); text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
main a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* privacy and support: the house page, set in the app's type */
main h1, main h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--fg); }
main h1 { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.05; }
main h2 { font-size: 1.375rem; margin-top: 2.5rem; border-bottom-color: var(--rule); }
main .sub { color: var(--accent); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8125rem; }
main .back { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.qa dt { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin-top: 1.5rem; }
.qa dd { margin: .35rem 0 0; color: var(--muted); line-height: 1.6; }
.fifth-word { color: var(--fifth); font-weight: 600; }

/* ------------------------------------------------------------------ the landing page */
.bj { --gut: clamp(1rem, 5vw, 3rem); overflow-x: hidden; }
.bj main { max-width: none; padding: 0; line-height: 1.55; }
.bj main h2 { border-bottom: 0; padding-bottom: 0; margin-top: 0; }

/* Five strings run down the page behind everything. The 5th, on the left, is short: it starts
   part way down, at its own peg, as it does on the neck. They shiver when they're played. */
.bj .strings {
  position: fixed; inset: 0 auto 0 50%; width: min(88vw, 34rem); transform: translateX(-50%);
  display: flex; justify-content: space-between; pointer-events: none; z-index: 0; opacity: .14;
}
.bj .strings i { position: relative; display: block; width: 1px; height: 100%; background: var(--string); }
.bj .strings i.s5 { margin-top: 26vh; height: calc(100% - 26vh); background: var(--fifth); }
.bj .strings i.s5::before { content: ""; position: absolute; top: -9px; left: -5px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--fifth); }
.bj .strings i.shiver { animation: shiver 1.4s cubic-bezier(.2, .7, .3, 1); }
@keyframes shiver {
  0% { transform: translateX(0); opacity: 1; } 6% { transform: translateX(3px); } 12% { transform: translateX(-3px); }
  18% { transform: translateX(2px); } 26% { transform: translateX(-2px); } 36% { transform: translateX(1px); }
  50% { transform: translateX(-.5px); } 100% { transform: translateX(0); }
}
.bj .top, .bj main, .bj footer { position: relative; z-index: 1; }
.bj .top { padding: 1.25rem var(--gut); font-size: 0.9375rem; }
.bj .top a { text-decoration: none; color: var(--muted); display: inline-flex; min-height: 40px; align-items: center; }
.bj .top a:hover { color: var(--fg); }

/* ---------------------------------------------------------------- the hero */
.bj .hero {
  max-width: 70rem; margin: 0 auto; padding: clamp(0.5rem, 4vw, 3rem) var(--gut) clamp(2rem, 6vw, 4rem);
  display: grid; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 58rem) { .bj .hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
/* on a phone the playable head comes straight after the name, before the copy and the buttons */
@media (max-width: 57.99rem) {
  .bj .hero { gap: 0; }
  .bj .hero > div { display: contents; }
  .bj .hero .stage { order: 1; margin: .5rem 0 1.75rem; }
  .bj .hero .lede, .bj .hero .actions, .bj .hero .small { order: 2; }
}
.bj .kicker { margin: 0 0 0.6rem; color: var(--accent); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.bj .kicker b { color: var(--fifth); font-weight: 600; }
.bj h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.5rem, 8.5vw, 4.6rem); line-height: 0.98; letter-spacing: -0.02em; margin: 0 0 1rem; }
.bj h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.bj h1 .five { color: var(--fifth); }
.bj .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.3; margin: 0 0 1rem; max-width: 30rem; }
.bj .lede { font-size: clamp(1.05rem, 2.2vw, 1.2rem); line-height: 1.55; color: var(--muted); margin: 0 0 1.75rem; max-width: 32rem; }

.bj .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 0 0 1rem; }
.bj .btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0 1.4rem;
  border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
}
.bj .btn:hover { background: var(--fg); border-color: var(--fg); color: var(--on-accent); }
.bj .btn svg { width: 15px; height: 18px; fill: currentColor; }
.bj .soon {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: 0 1.2rem; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--muted); font-weight: 600; font-size: 0.9375rem;
}
.bj .soon svg { width: 15px; height: 18px; fill: currentColor; }
.bj .small { color: var(--faint); font-size: 0.875rem; margin: 0; }
.bj .small a { color: var(--muted); }

/* the stage: a banjo head, the app's own chord box on it, played by dragging across the strings */
.bj .stage {
  position: relative; border-radius: 30px; padding: 1.1rem 1rem 1rem;
  background: var(--surface); border: 1px solid var(--rule); overflow: hidden; isolation: isolate;
}
/* the head and its ring of brackets, behind the box */
.bj .stage::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 13.2rem; width: 30rem; height: 30rem; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle at 46% 42%, rgba(241, 228, 205, .1), rgba(241, 228, 205, .04) 55%, transparent 68%);
  -webkit-mask: radial-gradient(circle, #000 66%, transparent 67%); mask: radial-gradient(circle, #000 66%, transparent 67%);
}
.bj .stage::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 13.2rem; width: 21rem; height: 21rem; transform: translate(-50%, -50%);
  border-radius: 50%; border: 10px dotted rgba(217, 210, 196, .1);
}
.bj .ghost {
  position: absolute; z-index: -1; right: -0.06em; top: -0.2em; margin: 0;
  font: 400 clamp(10rem, 46vw, 15rem)/1 var(--serif); color: var(--accent); opacity: .08; letter-spacing: -0.04em;
  transition: opacity .25s; pointer-events: none; white-space: nowrap;
}
.bj .ghost.swap { opacity: 0; }
.bj .stage-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: 0 .25rem; }
.bj .stage-name { font: 400 clamp(1.9rem, 7vw, 2.4rem)/1 var(--serif); margin: 0; }
.bj .stage-name small { font: 600 .8125rem var(--sans); color: var(--faint); letter-spacing: .04em; margin-left: .45rem; }
.bj .stage-open { color: var(--accent); font-size: .875rem; text-decoration: none; white-space: nowrap; display: inline-flex; min-height: 40px; align-items: center; }

.bj .strum {
  display: flex; justify-content: center; align-items: center; min-height: 16rem; margin: .25rem 0 0;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.bj .strum:active { cursor: grabbing; }
.bj .strum svg { width: min(62vw, 16.5rem); height: auto; overflow: visible; }
.bj .bx text { font-family: var(--sans); text-anchor: middle; dominant-baseline: middle; }
.bj .bx-fret { stroke: var(--wire); stroke-width: 1.2; }
.bj .bx-nut { stroke: var(--fg); stroke-width: 4; stroke-linecap: round; }
.bj .bx-capo { stroke: var(--accent); stroke-width: 5; }
.bj .bx-str { stroke: var(--string); stroke-width: 1; }
.bj .bx-fifth { stroke: var(--fifth); stroke-width: 1.3; }
.bj .bx-pip { fill: none; stroke: var(--fifth); stroke-width: 1.4; stroke-dasharray: 1.8 1.6; }
.bj .bx-pip.in-chord { stroke-dasharray: none; fill: var(--fifth); }
.bj .bx-open { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.bj .bx-mute { stroke: var(--faint); stroke-width: 1.4; }
.bj .bx-dot { fill: var(--fg); }
.bj .bx-dot.is-root { fill: var(--accent); }
.bj .bx-fn { fill: var(--bg); font-size: 10px; font-weight: 700; }
.bj .bx-fn.is-root { fill: var(--on-accent); }
.bj .bx-barre { fill: var(--fg); opacity: .55; }
.bj .bx-note { fill: var(--muted); font-size: 10px; }
.bj .bx-note.is-root { fill: var(--accent); font-weight: 700; }
.bj .bx-note5 { fill: var(--fifth); font-weight: 700; }
.bj .bx-note5.is-drone { font-weight: 400; opacity: .75; }
.bj .bx .bx-pos { fill: var(--accent); font-size: 12px; font-weight: 700; text-anchor: end; }
/* a new chord's fingers land one after another */
.bj .strum .enter .bx-dot, .bj .strum .enter .bx-fn, .bj .strum .enter .bx-open, .bj .strum .enter .bx-barre, .bj .strum .enter .bx-pip {
  transform-box: fill-box; transform-origin: center; animation: land .38s cubic-bezier(.3, 1.5, .5, 1) backwards;
}
.bj .strum .enter :nth-child(3n+1) { animation-delay: .03s; } .bj .strum .enter :nth-child(3n+2) { animation-delay: .08s; }
@keyframes land { from { transform: scale(.2); opacity: 0; } }
/* a plucked string shivers; the 5th string's ring pulses when it sounds */
.bj .bx-str.vib { animation: vib 1.3s cubic-bezier(.15, .7, .3, 1); stroke: var(--accent); }
.bj .bx-fifth.vib { stroke: var(--fifth); stroke-width: 2.2; }
@keyframes vib {
  0% { transform: translateX(0); } 5% { transform: translateX(1.6px); } 10% { transform: translateX(-1.6px); }
  16% { transform: translateX(1.1px); } 23% { transform: translateX(-1px); } 32% { transform: translateX(.6px); }
  45% { transform: translateX(-.3px); } 100% { transform: translateX(0); }
}
.bj .bx-pip.glow { animation: pipglow 1.2s ease-out; }
@keyframes pipglow { 0% { stroke-width: 4; } 100% { stroke-width: 1.4; } }

.bj .ring { min-height: 2.8em; margin: .2rem .25rem .6rem; color: var(--muted); font-size: .9375rem; text-align: center; }
.bj .ring b { color: var(--fg); font-weight: 600; }
.bj .ring .g5 { color: var(--fifth); font-weight: 700; }
.bj .hint { margin: 0 0 .6rem; text-align: center; font-size: .8125rem; color: var(--faint); letter-spacing: .04em; }
.bj .hint span { display: inline-block; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }

/* the rail: slide it and the centred chord comes up on the box */
.bj .rail {
  display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: .35rem calc(50% - 1.4rem); margin: 0 -1rem; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.bj .rail::-webkit-scrollbar { display: none; }
.bj .rail button {
  flex: 0 0 auto; scroll-snap-align: center; min-width: 4.6rem; min-height: 48px; padding: 0 .9rem;
  border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--muted);
  font: 400 1.35rem/1 var(--serif); cursor: pointer; transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.bj .rail button[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); transform: scale(1.06); }

.bj .controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .9rem; }
.bj .seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; gap: 2px; }
.bj .seg button {
  min-height: 40px; min-width: 40px; padding: 0 .7rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: 600 .8125rem var(--sans); letter-spacing: .02em; cursor: pointer;
}
.bj .seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--accent); }

/* the picking hand: pick a pattern, press play, and the roll writes itself out as tab */
.bj .hand { margin-top: 1rem; border-top: 1px solid var(--rule); padding-top: .9rem; }
.bj .hand-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; justify-content: space-between; }
.bj .play {
  min-height: 44px; padding: 0 1.1rem 0 .9rem; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent);
  color: var(--on-accent); font: 700 .9375rem var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: .5rem;
}
.bj .play i { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.bj .play[aria-pressed="true"] { background: transparent; color: var(--accent); }
.bj .play[aria-pressed="true"] i { width: 10px; height: 10px; border: 0; background: currentColor; border-radius: 2px; }
.bj .tab { position: relative; margin: .8rem -.25rem 0; height: 7.6rem; border-radius: 14px; background: var(--deep); overflow: hidden; }
.bj .tab canvas { display: block; width: 100%; height: 100%; }
.bj .tab-cap { margin: .55rem .25rem 0; color: var(--faint); font-size: .8125rem; line-height: 1.45; }
.bj .tab-cap b { color: var(--muted); font-weight: 600; }
.bj .draft { display: inline-block; border: 1px dashed var(--faint); border-radius: 6px; padding: 0 .35rem; margin-right: .3rem; font: 700 .6875rem var(--sans); letter-spacing: .08em; color: var(--muted); }

/* ---------------------------------------------------------------- sections */
.bj .sec { max-width: 70rem; margin: 0 auto; padding: 0 var(--gut) clamp(2.5rem, 7vw, 4.5rem); }
.bj .sec-h { font: 600 clamp(1.6rem, 4.5vw, 2.25rem)/1.1 var(--serif); margin: 0 0 .6rem; }
.bj .sec-h em { color: var(--accent); }
.bj .sec-h .g5 { color: var(--fifth); font-style: italic; font-weight: 400; }
.bj .sec-p { color: var(--muted); margin: 0 0 1.25rem; max-width: 38rem; }
.bj .panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 1rem; }
.bj .panel-head { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.bj .legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--faint); font-size: .8125rem; }
.bj .legend span { display: inline-flex; align-items: center; gap: .4rem; }
.bj .legend i { width: 11px; height: 11px; border-radius: 50%; border: 1.6px solid var(--fifth); }
.bj .legend i.in { background: var(--fifth); }
.bj .legend i.rub { border-style: dashed; border-color: var(--accent); }

/* the 5th string over every common chord */
.bj .drone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.6rem, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.bj .drone-grid button {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem .3rem .6rem;
  border-radius: 16px; border: 1px solid var(--rule); background: var(--bg); color: var(--fg); cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.bj .drone-grid button:hover { border-color: var(--wire); }
.bj .drone-grid button.ringing { border-color: var(--fifth); transform: scale(1.04); }
.bj .drone-grid .nm { font: 400 1.35rem/1.1 var(--serif); }
.bj .drone-grid svg { width: 4.4rem; height: auto; pointer-events: none; }
.bj .drone-grid .bx-mini .bx-fn, .bj .drone-grid .bx-mini .bx-note { display: none; }
.bj .verdict { font: 600 .6875rem/1.25 var(--sans); letter-spacing: .03em; text-align: center; padding: .15rem .45rem; border-radius: 999px; }
.bj .verdict.in { color: var(--fifth); background: var(--fifth-soft); }
.bj .verdict.col { color: var(--muted); border: 1px solid var(--rule); }
.bj .verdict.rub { color: var(--accent); border: 1px dashed var(--accent-line); }

/* capo and spike: a slider and the neck it moves */
.bj .capo-ui { display: grid; gap: 1rem 2rem; grid-template-columns: minmax(0, 1fr); }
.bj .capo-ui .neck { grid-column: 1 / -1; }
@media (min-width: 52rem) { .bj .capo-ui { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } .bj .capo-side { display: contents; } .bj .capo-ctl { grid-column: 1; } .bj .capo-txt { grid-column: 2; } }
.bj .neck svg { display: block; width: 100%; height: auto; }
.bj .neck-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bj .neck-scroll svg { min-width: 600px; }
.bj .nk-fret { stroke: var(--wire); stroke-width: 1.5; }
.bj .nk-nut { stroke: var(--fg); stroke-width: 6; stroke-linecap: round; }
.bj .nk-str { stroke: var(--string); stroke-width: 1.1; }
.bj .nk-str.s5 { stroke: var(--fifth); stroke-width: 1.4; }
.bj .nk-pip { fill: var(--bg); stroke: var(--fifth); stroke-width: 2; }
.bj .nk-inlay { fill: var(--rule); }
.bj .nk-num { fill: var(--faint); font: 600 13px var(--sans); text-anchor: middle; }
.bj .nk-name { fill: var(--muted); font: 600 14px var(--sans); text-anchor: end; dominant-baseline: middle; }
.bj .nk-name.s5 { fill: var(--fifth); }
.bj .nk-capo { fill: var(--accent); transition: transform .45s cubic-bezier(.5, 0, .2, 1); }
.bj .nk-spike { transition: transform .45s cubic-bezier(.5, 0, .2, 1), opacity .3s; }
.bj .nk-spike path { fill: var(--fifth); }
.bj .nk-spike.off { opacity: 0; }
.bj .nk-dot { transition: transform .45s cubic-bezier(.5, 0, .2, 1), opacity .3s; }
.bj .nk-dot circle { fill: var(--fg); }
.bj .nk-dot.root circle { fill: var(--accent); }
.bj .nk-dot.open circle { fill: var(--surface); stroke: var(--muted); stroke-width: 2; }
.bj .nk-dot.five circle { fill: var(--surface); stroke: var(--fifth); stroke-width: 2.5; }
.bj .nk-dot.five.in circle { fill: var(--fifth); }
.bj .nk-dot text { fill: var(--bg); font: 700 12px var(--sans); text-anchor: middle; dominant-baseline: central; }
.bj .nk-dot.open text { fill: var(--fg); }
.bj .nk-dot.five text { fill: var(--fifth); }
.bj .nk-dot.five.in text { fill: var(--bg); }
.bj .capo-side h3 { font: 400 clamp(1.6rem, 4vw, 2rem)/1.15 var(--serif); margin: 0 0 .5rem; }
.bj .capo-side h3 b { color: var(--accent); font-weight: 400; }
.bj .capo-side p { color: var(--muted); margin: 0 0 .9rem; }
.bj .capo-side p .g5 { color: var(--fifth); font-weight: 600; }
.bj input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 44px; }
.bj .ticks { display: flex; justify-content: space-between; color: var(--faint); font: 600 .75rem var(--sans); margin: -.35rem 2px .9rem; }

/* ---------------------------------------------------------------- features */
.bj .features {
  max-width: 70rem; margin: 0 auto; padding: 0 var(--gut) clamp(2.5rem, 7vw, 5rem);
  display: grid; gap: 0 clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.bj .feature { border-top: 1px solid var(--rule); padding: 1.5rem 0 .5rem; }
.bj .feature h2 { font: 600 1.45rem/1.2 var(--serif); margin: 0 0 .6rem; }
.bj .feature h2 a { text-decoration: none; }
.bj .feature p { margin: 0 0 1rem; line-height: 1.6; color: var(--muted); }
.bj .feature p strong { color: var(--fg); font-weight: 600; }
.bj .tunings { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.bj .tunings li { border: 1px solid var(--rule); border-radius: 999px; padding: .2rem .65rem; font: 600 .8125rem var(--sans); color: var(--fg); }
.bj .tunings li small { color: var(--faint); font-weight: 400; margin-left: .3rem; }

/* ---------------------------------------------------------------- screens */
.bj .screens {
  display: flex; gap: 1rem; margin: 0; padding: 0 0 .5rem; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.bj .screens li { flex: 0 0 auto; width: min(62vw, 14rem); scroll-snap-align: start; }
.bj .screens img {
  display: block; width: 100%; height: auto; border-radius: 1.4rem; border: 1px solid var(--rule);
  background: var(--surface); box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}
@media (min-width: 60rem) { .bj .screens li:nth-child(even) { margin-top: 2.5rem; } }
.bj .note { color: var(--faint); font-size: .875rem; margin: .75rem 0 0; }

/* ---------------------------------------------------------------- charts teaser + facts */
.bj .charts > a {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; text-decoration: none;
  border: 1px solid var(--accent); border-radius: 22px; padding: 1.25rem 1.4rem; background: var(--accent-soft);
}
.bj .charts > a strong { font: 600 1.35rem/1.2 var(--serif); display: block; }
.bj .charts > a span { color: var(--muted); }
.bj .charts .go { color: var(--accent); font-weight: 700; white-space: nowrap; }
.bj .chart-sheets-t { margin: 1.5rem 0 .75rem; font: 600 .8125rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bj .chart-sheets-t span { margin-left: .4rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.bj .chart-sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 8.5rem)); gap: 1.1rem .9rem; }
.bj .chart-sheets a { display: block; color: var(--fg); font: 400 1.05rem/1.25 var(--serif); text-align: center; text-decoration: none; }
.bj .chart-sheets img { display: block; width: 100%; height: auto; margin-bottom: .5rem; background: #fff; border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 16px rgba(0, 0, 0, .35); }
.bj .chart-sheets a:hover { color: var(--accent); }
.bj .chart-sheets a:hover img { box-shadow: 0 0 0 2px var(--accent), 0 6px 16px rgba(0, 0, 0, .35); }
.bj .chart-links { margin-top: 1rem; display: grid; gap: .25rem; }
.bj .chart-links p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .35rem; color: var(--muted); }
.bj .chart-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .55rem; border-radius: 999px;
  color: var(--fg); font: 400 1.05rem var(--serif); text-decoration: none; }
.bj .chart-links a:hover { color: var(--accent); background: var(--surface); }
.bj .chart-links a.t { font: 600 .8125rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-left: 0; }
.bj .chart-links a.pdf { font: 600 .875rem var(--sans); color: var(--accent); }

.bj .facts {
  max-width: 70rem; margin: 0 auto; padding: 1.5rem var(--gut) 3rem;
  display: flex; gap: 1.5rem; align-items: flex-start; border-top: 1px solid var(--rule);
}
.bj .facts .icon { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.bj .facts p { margin: 0 0 .5rem; line-height: 1.55; }
.bj .facts .links { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.bj .facts .links a { display: inline-flex; min-height: 36px; align-items: center; }
.bj footer { max-width: 70rem; margin: 0 auto; padding: 0 var(--gut) 3rem; color: var(--faint); font-size: .875rem; }
.bj footer a { color: var(--muted); }

/* fade-up as sections arrive (page.js adds .rise-on and .seen; without script everything simply shows) */
.bj.rise-on .rise { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.bj.rise-on .rise.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .bj *, .bj *::before, .bj *::after { animation: none !important; transition: none !important; }
  .bj.rise-on .rise { opacity: 1; transform: none; }
}
