/* BY47 V17: the graphite board. Loaded on every page after site.css (which stays the base for forms, cards,
   accordions, prices). Black, white, red #D9202C (hover #EE2F3B), greys and silver only; the board is neutral
   grey-white. Red is a signal only. ROUGH for headings and big lines, Montserrat for small text, the HUD and the store.
   No blur, no backdrop-filter, no stretched text. Particles: particles.css + particles.js (ENGINE.md). */

/* ---------- Fonts (woff2 first; self-hosted, OFL) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/montserrat-500.woff2") format("woff2"), url("/assets/fonts/montserrat-500.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/montserrat-700.woff2") format("woff2"), url("/assets/fonts/montserrat-700.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/montserrat-900.woff2") format("woff2"), url("/assets/fonts/montserrat-900.woff") format("woff"); }
@font-face { font-family: "BY47 Rough"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/by47rough-500.woff2") format("woff2"), url("/assets/fonts/by47rough-500.woff") format("woff"); }
@font-face { font-family: "BY47 Rough"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/by47rough-700.woff2") format("woff2"), url("/assets/fonts/by47rough-700.woff") format("woff"); }
@font-face { font-family: "BY47 Rough"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/by47rough-900.woff2") format("woff2"), url("/assets/fonts/by47rough-900.woff") format("woff"); }

/* ---------- Tokens ---------- */
:root {
  --pe-paper: #ECECEC; --pe-ink: #111111; --pe-graphite: #5C5C5C;
  --pe-dark: #0A0A0A; --pe-dark-ink: #E8E8E8; --pe-dark-graphite: #808080; --pe-red: #D9202C;
  --bg: var(--pe-paper);
  --sheet: #F6F6F6;                 /* a card lying on the board */
  --paper: rgba(17, 17, 17, .045);  /* a tinted band on the board (the particles still show through) */
  --paper-2: rgba(17, 17, 17, .08);
  --ink: #111111; --ink-2: #2A2A2A; --muted: #5E5E5E; --faint: #8A8A8A; --graphite: #5C5C5C;
  --line: rgba(17, 17, 17, .12); --line-2: rgba(17, 17, 17, .24);
  --red: #D9202C; --red-hi: #EE2F3B; --red-text: #B81B26;   /* small red words: a deeper red for contrast on the board */
  --rough: "BY47 Rough", "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --hud: 700 10.5px/1.75 var(--font);
  --settle: cubic-bezier(.2, .7, .2, 1);
  --sh-1: 0 1px 0 rgba(17, 17, 17, .05), 0 10px 22px -16px rgba(17, 17, 17, .28);
  --sh-2: 0 1px 0 rgba(17, 17, 17, .05), 0 18px 34px -22px rgba(17, 17, 17, .4);
  --wide: 1440px;
}
/* a dark stage: every component below follows these tokens */
[data-theme="dark"], .ft, .pm--dark {
  --ink: #E8E8E8; --ink-2: #C9C9C9; --muted: #A2A2A2; --faint: #7A7A7A; --graphite: #808080;
  --line: rgba(232, 232, 232, .14); --line-2: rgba(232, 232, 232, .3); --red-text: #EE2F3B;
  --sheet: #151515; --paper: rgba(232, 232, 232, .05); --paper-2: rgba(232, 232, 232, .09);
  color: var(--ink);
}
body { background: var(--pe-paper); color: var(--ink); transition: background-color .35s; }
html[data-pe-theme="dark"] body { background: var(--pe-dark); }
::selection { background: var(--red); color: #fff; }
.red { color: var(--red); }
.nw { white-space: nowrap; }
.rough { font-family: var(--rough); }

/* service pages without the engine: the board's cells in CSS (no motion) */
body.is-cells { background: var(--pe-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='45.03'%3E%3Cpath d='M0 7.5L4.33 0h8.67L17.33 7.5 13 15H4.33zM13 15l4.33 7.5h8.67M17.33 7.5H26M13 30l4.33-7.5M4.33 15L0 22.5l4.33 7.5H13l4.33 7.5L13 45.03H4.33L0 37.5' fill='none' stroke='%23888' stroke-opacity='.2' stroke-width='.6'/%3E%3C/svg%3E") 0 0 / 26px 45.03px; }

/* ---------- Type on the board ---------- */
.h1, .h2 { font-family: var(--rough); font-weight: 900; letter-spacing: -.012em; color: var(--ink); }
.h1 { line-height: .94; }
.h2 { line-height: 1; }
.eyebrow { font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.eyebrow::before { width: 7px; height: 7px; transform: none; border-radius: 50%; }
.lede { color: var(--ink-2); }
.link { color: var(--ink); }
.link-arrow { color: var(--ink); }
kbd, code { background: var(--paper); border-color: var(--line); }

/* ---------- Buttons ---------- */
.btn { min-height: 48px; padding: 0 22px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pe-paper); background: var(--ink); box-shadow: none; }
.btn:hover { background: var(--ink-2); transform: none; }
.btn:active { transform: scale(.98); }
.btn--red { color: #fff; background: var(--red); box-shadow: none; }
.btn--red:hover { background: var(--red-hi); }
.btn--ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { color: var(--pe-paper); background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
[data-theme="dark"] .btn--ghost:hover, .ft .btn--ghost:hover { color: var(--pe-dark); }
[data-theme="dark"] .btn:not(.btn--red):not(.btn--ghost) { color: var(--pe-dark); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 13px; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 11.5px; }
.btn em { color: inherit; opacity: .7; }
.btn--off, .btn--off:hover { background: var(--paper); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Header: BY47 · Plugins · Account · Sign in ---------- */
.hd { position: sticky; top: 0; z-index: 60; background: var(--pe-paper); border-bottom: 1px solid var(--line); color: var(--pe-ink); transition: background-color .35s, border-color .35s; }
html[data-pe-theme="dark"] .hd { background: var(--pe-dark); color: var(--pe-dark-ink); border-bottom-color: rgba(232, 232, 232, .12); }
.is-board .hd { position: fixed; left: 0; right: 0; background: transparent !important; border-bottom-color: transparent !important; }
.hd__bar { width: min(100% - 2 * var(--gutter), var(--wide)); gap: 4px; }
.hd__brand { color: inherit; height: 44px; padding-right: 14px; }
.hd__brand svg { height: 16px; }
.hd__nav { gap: 0; }
.hd__nav a, .hd__plug { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 12px; border-radius: 0; background: none; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: inherit; opacity: .78; transition: opacity .18s; }
.hd__nav a:hover, .hd__nav a[aria-current="page"], .hd__plug[aria-expanded="true"] { background: none; color: inherit; opacity: 1; }
.hd__nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--settle); }
.hd__nav a:hover::after, .hd__nav a[aria-current="page"]::after, .hd__plug[aria-expanded="true"]::after { transform: scaleX(1); }
.hd__plug::before { content: ""; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--red); }
.hd__acct a { position: relative; height: 36px; padding: 0 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: inherit; box-shadow: inset 0 0 0 1.25px currentColor; }
.hd__acct a::after { content: ""; position: absolute; inset: -4px; }   /* a 44 px target around the chip */
.hd__acct a:hover { color: inherit; background: transparent; box-shadow: inset 0 0 0 1.25px var(--red); }
.hd [data-pe-theme="light"] { color: var(--pe-ink); }
.hd [data-pe-theme="dark"] { color: var(--pe-dark-ink); }
@media (max-width: 600px) {
  .hd__nav a, .hd__plug { padding: 0 9px; letter-spacing: .12em; }
  .hd__plug::before { margin-right: 6px; }
  .hd__acct a { padding: 0 11px; letter-spacing: .1em; }
}
@media (max-width: 380px) { .hd__brand svg { height: 13px; } .hd__plug::before { display: none; } }

/* ---------- The Plugins menu: an instant overlay, no motion ---------- */
.pm { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; background: var(--pe-paper); color: var(--pe-ink); --ink: #111111; --ink-2: #2A2A2A; --muted: #5E5E5E; --line: rgba(17, 17, 17, .12); --line-2: rgba(17, 17, 17, .24); }
html[data-pe-theme="dark"] .pm { background: var(--pe-dark); color: var(--pe-dark-ink); --ink: #E8E8E8; --ink-2: #C9C9C9; --muted: #A2A2A2; --line: rgba(232, 232, 232, .14); --line-2: rgba(232, 232, 232, .3); --red-text: #EE2F3B; }
html.pm-open { overflow: hidden; }
.pm__bar { flex: none; width: min(100% - 2 * var(--gutter), var(--wide)); margin: 0 auto; height: var(--head-h); display: flex; align-items: center; justify-content: space-between; }
.pm__title { font: var(--hud); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pm__title b { color: var(--ink); }
.pm__close { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.pm__close svg { width: 18px; height: 18px; }
.pm__close:hover svg { color: var(--red); }
.pm__list { width: min(100% - 2 * var(--gutter), var(--wide)); margin: auto; padding: 12px 0 calc(28px + env(safe-area-inset-bottom)); list-style: none; }
.pm__row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 4fr) minmax(170px, 1.4fr) 24px; grid-template-areas: "tag name side go" "tag line side go"; align-items: center; gap: 2px 32px; padding: clamp(18px, 2.6vh, 30px) 0; border-top: 1px solid var(--line); color: var(--ink); }
.pm__list li:last-child .pm__row { border-bottom: 1px solid var(--line); }
.pm__tag { grid-area: tag; font: var(--hud); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); align-self: start; padding-top: .9em; }
.pm__tag b { color: var(--red-text); font-weight: 700; }
.pm__name { grid-area: name; font-family: var(--rough); font-weight: 900; font-size: clamp(36px, 5.2vw, 76px); line-height: .92; letter-spacing: -.01em; transition: transform .2s var(--settle); }

.pm__line { grid-area: line; margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.pm__side { grid-area: side; display: grid; gap: 10px; justify-items: start; }
.pm__go { grid-area: go; width: 22px; height: 22px; color: var(--ink); transition: transform .2s var(--settle), color .2s; }
.pm__row:hover .pm__name, .pm__row:focus-visible .pm__name { transform: translateX(8px); }
.pm__row:hover .pm__go, .pm__row:focus-visible .pm__go { color: var(--red); transform: translateX(4px); }
.pm__row:focus-visible { outline-offset: -2px; }
.pm__note { width: min(100% - 2 * var(--gutter), var(--wide)); margin: 0 auto; padding-bottom: 24px; font: var(--hud); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .pm__row { grid-template-columns: minmax(0, 1fr) 22px; grid-template-areas: "tag go" "name go" "line go" "side go"; gap: 4px 12px; padding: 18px 0; }
  .pm__tag { padding-top: 0; }
  .pm__name { font-size: clamp(34px, 11vw, 50px); }
  .pm__side { margin-top: 10px; grid-auto-flow: column; align-items: center; gap: 12px; }
}

/* prices and statuses (the store writes the numbers) */
.price__now { font-family: var(--rough); font-weight: 900; letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.price__name { color: var(--red-text); }
.price__then { color: var(--muted); }
.pstat { gap: 4px; }
.pstat__big { font-family: var(--rough); font-weight: 900; letter-spacing: 0; color: var(--ink); }
.pstat__small { color: var(--red-text); font-size: 10.5px; letter-spacing: .14em; }
.pm .price--sm, .sc .price--sm { min-height: 0; }
.pm .price__now, .pm .pstat__big { font-size: 26px; }
.os { height: 28px; color: var(--muted); box-shadow: inset 0 0 0 1.25px var(--line); font-size: 11.5px; letter-spacing: .02em; }
.os--on { color: var(--ink); box-shadow: inset 0 0 0 1.25px var(--line-2); }
.os-row { display: flex; flex-wrap: wrap; gap: 6px; }
.platform { color: var(--ink); box-shadow: inset 0 0 0 1.25px var(--line-2); font-size: 12px; }
.platform--soon { color: var(--muted); box-shadow: inset 0 0 0 1.25px var(--line); }
.platform em { color: var(--red-text); }
.soon { color: var(--red-text); box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- HUD (home and plugin pages): scene, particles, year, field ---------- */
.hud { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 0 var(--gutter) calc(14px + env(safe-area-inset-bottom)); pointer-events: none; font: var(--hud); letter-spacing: .14em; text-transform: uppercase; font-variant-numeric: tabular-nums; transition: opacity .3s; }
.hud p { color: #5E5E5E; transition: color .3s; }
.hud p[data-pe-theme="dark"], html[data-pe-theme="dark"] .hud p:not([data-pe-theme]) { color: #9A9A9A; }
.hud p[data-pe-theme="light"] { color: #5E5E5E; }
.hud__r { text-align: right; }
.hud i { font-style: normal; color: var(--red); }
.hud b { font-weight: 700; color: inherit; }
.hud.is-away, html.pm-open .hud { opacity: 0; }
html:not(.pe-on) .hud__n { visibility: hidden; }
html.pe-off .hud__n { display: none; }
@media (hover: none), (pointer: coarse) { .hud__f { display: none; } }
@media (max-width: 760px) { .hud { font-size: 9.5px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); } .page-plugin .hud { display: none; } }
.page-plugin .hud { justify-content: flex-end; } .page-plugin .hud__l { display: none; }   /* plugin pages: the text column is on the left, the HUD keeps to the right */

/* the magnet's hint (only where the engine runs) */
.hint { margin-top: 26px; font: var(--hud); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hint__t { display: none; }
@media (hover: none), (pointer: coarse) { .hint__m { display: none; } .hint__t { display: inline; } }
html:not(.pe-on) .hint { visibility: hidden; }

/* ---------- Home: one long scroll of scenes (sticky panels over the fixed canvas) ---------- */
.is-board main { display: block; }
.sc { position: relative; height: 200vh; }
.sc--hero { height: 180vh; }
.sc--end { height: 150vh; }
.sc__panel { position: sticky; top: 0; height: 100vh; height: 100svh; width: min(100% - 2 * var(--gutter), var(--wide)); margin: 0 auto; display: flex; align-items: center; }
.sc__panel--r { justify-content: flex-end; }
.sc__panel--c { justify-content: center; align-items: flex-end; padding-bottom: 15vh; text-align: center; }
.sc__copy { width: min(520px, 42%); }
.sc__panel--c .sc__copy { width: min(960px, 100%); }
.sc--hero .sc__copy { width: min(640px, 46%); }
.sc__tag { font: var(--hud); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sc__tag b { color: var(--red-text); font-weight: 700; }
.sc__h1 { margin-top: 0; font-family: var(--rough); font-weight: 900; font-size: clamp(46px, 5.9vw, 96px); line-height: .9; letter-spacing: -.012em; color: var(--ink); }
.sc__name { margin-top: 14px; font-family: var(--rough); font-weight: 900; font-size: clamp(46px, 6.4vw, 104px); line-height: .88; letter-spacing: -.01em; color: var(--ink); }
.sc__name .by, .pm__name .by, .ph__h1 .by, .get__name .by { color: var(--muted); }
.sc__sub, .sc__line { margin-top: 20px; font-family: var(--rough); font-weight: 700; font-size: clamp(19px, 1.65vw, 26px); line-height: 1.2; color: var(--ink-2); max-width: 22em; }
.sc__sub { font-weight: 500; }
.sc__meta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 28px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.sc__meta .price, .sc__meta .pstat { min-height: 0; }
.sc__meta .price__now, .sc__meta .pstat__big { font-size: 30px; }
.sc__status { font: var(--hud); letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); }
.sc__go { margin-top: 22px; }
.sc__go .btn svg { width: 15px; height: 15px; }
.sc__cta { margin-top: 30px; }
.sc__years { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.pe-on):not(.pe-off) .sc__years { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; font-family: var(--rough); font-weight: 900; font-size: clamp(64px, 13vw, 220px); line-height: .9; color: var(--ink); }
.sc__between { font-family: var(--rough); font-weight: 700; font-size: clamp(30px, 3.6vw, 58px); line-height: 1.02; color: var(--ink); }
.sc__axis { margin-top: 16px; font: var(--hud); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sc__axis b { color: var(--red); font-weight: 700; }
.sc__made { font-family: var(--rough); font-weight: 900; font-size: clamp(48px, 6.4vw, 104px); line-height: .9; color: var(--ink); }
.sc__terms { margin-top: 20px; font: var(--hud); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* phones, and tablets held upright (the same query as MQ in particles.js: the shape sits above the words) */
@media (max-width: 1023px) and (orientation: portrait) {
  .sc { height: 190vh; }
  .sc--hero { height: 170vh; }
  .sc--end { height: 140vh; }
  .sc__panel, .sc__panel--r { justify-content: flex-start; align-items: flex-end; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .sc__panel--c { justify-content: center; padding-bottom: calc(18vh + env(safe-area-inset-bottom)); }
  .sc__copy, .sc--hero .sc__copy { width: 100%; }
  .sc__h1 { font-size: clamp(42px, 12.4vw, 60px); }
  .sc__name { font-size: clamp(42px, 13vw, 64px); margin-top: 10px; }
  .sc__sub, .sc__line { margin-top: 12px; font-size: 18px; }
  .sc__meta { margin-top: 16px; padding-top: 12px; gap: 10px 20px; }
  .sc__meta .price__now, .sc__meta .pstat__big { font-size: 26px; }
  .sc__go { margin-top: 14px; }
  .sc__cta { margin-top: 20px; }
  .hint { margin-top: 16px; }
}
@media (max-width: 760px) and (max-height: 700px) { .sc__name, .sc__h1 { font-size: 40px; } .sc__line { font-size: 16px; } .sc__meta { margin-top: 10px; } }

/* ---------- Plugin pages: the hero with its particle symbol (a flow scene), then short blocks ---------- */
.ph { position: relative; padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 56px); }
.ph__grid { width: min(100% - 2 * var(--gutter), var(--wide)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 clamp(24px, 4vw, 72px); align-items: center; }
.ph__text { min-width: 0; }
.ph__fig { min-height: min(78vh, 760px); }
.ph__eyebrow { font: var(--hud); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ph__eyebrow b { color: var(--red-text); font-weight: 700; }
.ph__h1 { margin-top: 14px; font-family: var(--rough); font-weight: 900; font-size: clamp(56px, 7.6vw, 124px); line-height: .86; letter-spacing: -.012em; color: var(--ink); }
.ph__h1 .by { display: block; }
.ph__line { margin-top: 20px; font-family: var(--rough); font-weight: 700; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.18; color: var(--ink-2); max-width: 20em; }
.ph__buy { display: grid; gap: 16px; justify-items: start; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.ph__buy .price--lg { min-height: 0; }
.ph__status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 26px; }
.ph__status .plug__price { font-family: var(--rough); font-size: 30px; }
.ph__works { font: var(--hud); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ph__lines { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.ph__lines li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.ph__lines li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.ph .btn-row { margin-top: 26px; }
.ph__os { margin-top: 18px; }
.ls__go { margin-top: 22px; }
@media (max-width: 999px) {
  .ph__grid { grid-template-columns: minmax(0, 1fr); }
  .ph__fig { order: -1; min-height: 0; height: clamp(300px, 54vh, 520px); }
}
@media (max-width: 760px) { .ph { padding-top: 4px; } .ph__fig { height: clamp(220px, 38vh, 360px); } .ph__h1 { font-size: clamp(52px, 15vw, 72px); } }

/* sticky line scenes on /dna/ and /azoth/ (the shape changes, one line each) */
.ls { position: relative; height: 170vh; }
.ls__panel { position: sticky; top: 0; height: 100vh; height: 100svh; width: min(100% - 2 * var(--gutter), var(--wide)); margin: 0 auto; display: flex; align-items: center; }
.ls__copy { width: min(500px, 42%); }
.ls__no { font: var(--hud); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ls__no b { color: var(--red-text); font-weight: 700; }
.ls__h { margin-top: 14px; font-family: var(--rough); font-weight: 900; font-size: clamp(34px, 3.8vw, 60px); line-height: .98; color: var(--ink); }
.ls__p { margin-top: 16px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); max-width: 28em; }
@media (max-width: 1023px) and (orientation: portrait) {
  .ls { height: 150vh; }
  .ls__panel { align-items: flex-end; padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .ls__copy { width: 100%; }
  .ls__h { font-size: clamp(30px, 9vw, 42px); }
}

/* "Before you buy" next to every Buy (the law): a compact sheet */
.byb { position: relative; max-width: 460px; padding: 16px 18px 14px; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; color: var(--ink-2); }
.byb__title { font: var(--hud); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.byb__title::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--red); vertical-align: middle; }
.byb__list { display: grid; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.45; }
.byb__list b { color: var(--ink); }
.byb__links { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.byb__links a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.byb__glyphs { display: none; }

/* blocks after the hero: specs, FAQ, buy */
.blk { position: relative; padding: clamp(56px, 8vw, 120px) 0 0; }
.blk__wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin: 0 auto; }
.blk__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: clamp(20px, 2.6vw, 36px); }
.blk__no { font: var(--hud); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.blk__no b { color: var(--red-text); font-weight: 700; }
.blk__h { font-family: var(--rough); font-weight: 900; font-size: clamp(34px, 4vw, 64px); line-height: .95; color: var(--ink); }
.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line-2); }
.spec > div { display: grid; gap: 4px; padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.spec dt { font: var(--hud); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.spec dd small { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--muted); }
.spec .vst-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.spec .vst-slot { margin: 0; }
.spec .vst-logo { width: 72px; height: 28px; }
@media (max-width: 999px) { .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .spec { grid-template-columns: minmax(0, 1fr); } }
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line-2); }
.qa > div { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.qa p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.qa a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.qa__more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; font-size: 15px; color: var(--muted); }
@media (max-width: 760px) { .qa { grid-template-columns: minmax(0, 1fr); } }
.get { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 80px); align-items: start; padding: clamp(24px, 3vw, 40px); background: var(--sheet); border: 1px solid var(--line); border-radius: 22px; }
.get__name { font-family: var(--rough); font-weight: 900; font-size: clamp(40px, 4.6vw, 72px); line-height: .9; color: var(--ink); }

.get .price--lg { margin-top: 18px; min-height: 0; }
.get .btn-row { margin-top: 18px; }
.get__specs { margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.get__owned { margin-top: 14px; font-weight: 700; color: var(--ink); }
.get .byb { background: transparent; max-width: none; }
@media (max-width: 860px) { .get { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer: Plugins (DENIM, DNA, AZOTH), Help, Legal, the VST line ---------- */
.ft { margin-top: clamp(64px, 8vw, 120px); background: var(--pe-dark); color: var(--muted); position: relative; z-index: 1; }
.ft__grid, .ft__base { width: min(100% - 2 * var(--gutter), var(--wide)); }
.ft__brand { color: var(--pe-dark-ink); }
.ft__brand svg { height: 20px; }
.ft__made { margin-top: 14px; font-family: var(--rough); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--pe-dark-ink); }
.ft__col h2 { font: var(--hud); letter-spacing: .16em; text-transform: uppercase; color: #8A8A8A; }
.ft__col a { position: relative; display: flex; align-items: center; min-height: 36px; padding: 0; font-size: 14.5px; color: var(--pe-dark-ink); }
.ft__col a:hover { color: var(--red-hi); }
.ft__col a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--red); }
.ft__base { border-top-color: rgba(232, 232, 232, .12); color: #8A8A8A; }
.ft__base p:first-child { color: var(--pe-dark-ink); }
.is-board .ft { margin-top: 0; }

/* ---------- Inner pages (support, account, legal, attack, coda, 404) on the board ---------- */
.card, .panel, .acc, .mycard, .acct-gate__box, .pcard__link { background: var(--sheet); border-color: var(--line); box-shadow: var(--sh-1); }
.facts { background: var(--line); border-color: var(--line); }
.facts > div { background: var(--sheet); }
.section--paper { background: var(--paper); }
.steps > li { background: var(--paper); }
.steps > li::before { background: var(--sheet); color: var(--red-text); }
.callout { background: var(--paper); }
.action-card .card__icon { background: var(--paper); }
.action-card--main .card__icon, .acct-gate__icon { background: var(--ink); color: var(--pe-paper); }
.acc__icon { background: var(--paper); }
.acc__icon::before, .acc__icon::after { background: var(--ink); }
.page-hero .h1, .plug__h1, .lost__code { font-family: var(--rough); font-weight: 900; letter-spacing: -.01em; }
.page-hero .h1 { font-size: clamp(44px, 5.6vw, 88px); }
.plug__h1 .red { color: var(--muted); }
.mycard__name, .card__title, .acct-gate__text .h2 { font-family: var(--rough); font-weight: 900; letter-spacing: 0; }
.mycard__name .red { color: var(--muted); }
.mycard__img { background: var(--paper); }
.toc a.is-active { color: var(--ink); }
.lost__code span span { color: var(--red); }
.lost { min-height: calc(100svh - var(--head-h) - 80px); }
html.pe-on .lost, html.pe-off .lost { align-items: end; padding-bottom: 10vh; min-height: calc(100svh - var(--head-h)); }
html.pe-on .lost__code > [aria-hidden], html.pe-off .lost__code > [aria-hidden] { display: none; }
.lost__line { margin-top: 18px; font-family: var(--rough); font-weight: 700; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.15; color: var(--ink); }

/* ---------- V17 polish (2026-10-19) ---------- */
/* the header turns solid where the end of the home page runs under it (v17.js: the footer is in view) */
.is-board .hd.hd--solid { background: var(--pe-paper) !important; border-bottom-color: rgba(17, 17, 17, .12) !important; }
html[data-pe-theme="dark"] .is-board .hd.hd--solid { background: var(--pe-dark) !important; border-bottom-color: rgba(232, 232, 232, .12) !important; }
/* keyboard focus inside a faded panel shows it at once (particles.js also brings its scene into view) */
[data-pe-panel]:focus-within { --pe-o: 1 !important; opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
[data-pe-panel]:focus-within [data-pe-split] { --pe-o: 1 !important; }
/* small red words: AA contrast on the board (#B81B26) and on the dark stage (#EE2F3B) */
.hud i { color: #B81B26; }
html[data-pe-theme="dark"] .hud p:not([data-pe-theme]) i, .hud p[data-pe-theme="dark"] i { color: #EE2F3B; }
.prose .doc-sec--key > h2 { color: var(--red-text) !important; }
.prose .doc-sec--key > h2::before { background: var(--red-text); }
/* footer links and mark: 44 px targets */
.ft__col a { min-height: 44px; }
.ft__brand { display: inline-flex; align-items: center; min-height: 44px; }
.home .ft__made { display: none; }   /* the end scene says it already */
/* the first screen before the particles arrive (slow network): the board's cells at once, a faint BY47 where the mark will be */
html:not(.pe-on) body.is-board, html:not(.pe-on) body.page-plugin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='45.03'%3E%3Cpath d='M0 7.5L4.33 0h8.67L17.33 7.5 13 15H4.33zM13 15l4.33 7.5h8.67M17.33 7.5H26M13 30l4.33-7.5M4.33 15L0 22.5l4.33 7.5H13l4.33 7.5L13 45.03H4.33L0 37.5' fill='none' stroke='%23888' stroke-opacity='.2' stroke-width='.6'/%3E%3C/svg%3E"); background-size: 26px 45.03px; }
/* the home page's first line: what this is */
.sc__tag--hero { margin-bottom: 18px; }
@media (max-width: 760px) { .sc__tag--hero { margin-bottom: 12px; font-size: 10px; } }
/* /denim/ at phone width: the eyebrow keeps to one line (the Windows chip says it below) */
@media (max-width: 420px) { .ph__win { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pm__name, .pm__go, .hd__nav a::after { transition: none !important; }
}
@media print {
  .hud, .pm, .hint, .pe-cv, .pe-backdrop { display: none !important; }
  .sc, .ls { height: auto !important; }
  .sc__panel, .ls__panel { position: static; height: auto; padding: 24px 0; }
}
