/* DWMM Holdings, direction B · Chapters (DWMM-1).
   A dark, cinematic company site. Each product gets a pinned chapter whose
   real screens rise through the frame at two depths, and the ground takes on
   that product's own icon colour as you cross into it.

   Every moving thing is a transform or opacity. Nothing animates layout.
   With Reduce Motion nothing moves at all, and every piece of content is in
   place from the start. Without script, every page reads the same, just still. */

@font-face { font-family: "Schibsted Grotesk"; src: url(/fonts/schibsted-grotesk-latin.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
/* Metric-matched fallback, so the swap to the web font barely moves a line. */
@font-face { font-family: "Grotesk Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 101%; ascent-override: 96%; descent-override: 26%; }

:root {
  --bg: #0D0E10; --bg-2: #15171A; --bg-3: #1D2024;
  --fg: #EDEDEA; --fg-2: #A2A6AD; --rule: rgba(237, 237, 234, .12); --rule-2: rgba(237, 237, 234, .22);
  /* The DWMM brass (Logos/Colors): the house accent. --gold is 9.0:1 on the
     ground and carries text; --gold-2 (6.1:1) is for rules and fills; --gold-rule
     for hairlines. A page that belongs to one product sets --acc to that
     product's colour; the brass stays on the house furniture around it. */
  --gold: #C2AE8C; --gold-2: #AA8B61; --gold-rule: rgba(194, 174, 140, .34);
  --acc: var(--gold); --on-acc: #0D0E10;
  --sans: "Schibsted Grotesk", "Grotesk Fallback", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px; --s7: 120px;
  --t-sm: 14px; --t-base: 17px; --t-lg: 19px; --t-xl: 21px; --t-2xl: 28px;
  --r-sm: 6px; --r-md: 12px; --r-pill: 999px;
  --gutter: clamp(16px, 3vw, 48px);
  --wrap: 1560px;
  --head: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--t-base)/1.6 var(--sans); overflow-x: clip; }
/* The tint the chapters give the page lives on a fixed layer, so changing it
   repaints one layer rather than the whole document. */
.ground { position: fixed; inset: 0; z-index: -1; background: var(--bg); transition: background-color .8s ease; pointer-events: none; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--on-acc); }
/* Eyebrows over page titles: the brass marks where a page starts. */
.k { color: var(--gold); }
.mono { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.dim { color: var(--fg-2); }
.wrap { padding-inline: var(--gutter); max-width: var(--wrap); margin-inline: auto; }
.narrow { max-width: 1120px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 10px 14px; z-index: 60; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { left: 8px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.hd { position: fixed; inset: 0 0 auto; z-index: 30; border-bottom: 1px solid transparent; transition: background-color .3s ease, border-color .3s ease; }
.hd.solid, .hd--solid { background: rgba(13, 14, 16, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
.hd .wrap { display: flex; align-items: center; min-height: var(--head); gap: var(--s4); }
.mark { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.mark i { width: 70px; height: 21px; background: var(--fg); transition: background-color .2s ease; -webkit-mask: url(/img/logo-mark.svg) center / contain no-repeat; mask: url(/img/logo-mark.svg) center / contain no-repeat; }
.nav { margin-left: auto; display: flex; gap: var(--s1); padding: 4px; border: 1px solid var(--rule); border-radius: var(--r-pill); background: rgba(13, 14, 16, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav a { text-decoration: none; font-size: var(--t-sm); font-weight: 500; padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: var(--r-pill); color: var(--fg-2); transition: color .2s ease, background-color .2s ease; }
.mark:hover i { background: var(--gold); }
.nav a:hover { color: var(--fg); background: var(--bg-3); }
.nav a[aria-current] { color: var(--gold); background: var(--bg-3); }
.menu-btn { display: none; margin-left: auto; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--rule-2); background: rgba(13, 14, 16, .72); color: var(--fg); font: 600 var(--t-sm)/1 var(--sans); cursor: pointer; gap: 10px; align-items: center; transition: border-color .2s ease, background-color .2s ease; }
.menu-btn:hover { border-color: var(--fg); }
.menu-btn:active { background: var(--bg-3); }
.menu-btn i { width: 16px; height: 10px; position: relative; display: block; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
.menu-btn i::before { top: 0; } .menu-btn i::after { bottom: 0; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-4px) rotate(-45deg); }

/* The phone menu: a full sheet under the header. */
.sheet { position: fixed; inset: var(--head) 0 0; z-index: 29; background: rgba(13, 14, 16, .97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); padding: var(--s5) var(--gutter); display: grid; align-content: start; gap: var(--s5); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .3s var(--ease), visibility 0s .3s; }
.sheet.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .3s var(--ease), visibility 0s; }
.sheet ul { list-style: none; margin: 0; padding: 0; display: grid; }
.sheet li a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; text-decoration: none; font-weight: 700; font-size: 32px; letter-spacing: -.03em; border-top: 1px solid var(--rule); }
.sheet li a[aria-current] { color: var(--acc); }
.sheet__prod { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.sheet__prod a { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 56px; border: 1px solid var(--rule); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; font-size: 15px; }
.sheet__prod img { width: 32px; height: 32px; border-radius: 8px; }
html.menu-open { overflow: hidden; }

/* ── Buttons and links ──────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: var(--r-pill); text-decoration: none; font: 600 15px/1.1 var(--sans); background: var(--acc); color: var(--on-acc); border: 1px solid var(--acc); cursor: pointer; transition: transform .25s var(--ease), background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px var(--acc); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--line, .btn--ghost, .btn--pad { background: transparent; color: var(--fg); border-color: var(--rule-2); }
.btn--line:hover, .btn--ghost:hover, .btn--pad:hover { border-color: var(--fg); box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 14px; height: 14px; flex: none; }
.tlink, .prose a, .doc__body a, .lnk { color: var(--fg); text-decoration: underline; text-decoration-color: var(--gold-rule); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .2s ease, color .2s ease; }
.tlink:hover, .prose a:hover, .doc__body a:hover, .lnk:hover { color: var(--gold); text-decoration-color: var(--gold); }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
a:hover > .arrow { transform: translateX(3px); }
a:hover > .arrow--out { transform: translate(2px, -2px); }
.arrow--out { color: var(--gold); vertical-align: -.02em; }
.arrow--out svg { width: .72em; height: .72em; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); border: 1px solid var(--rule); padding: 6px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.chip--acc { color: var(--acc); border-color: color-mix(in oklab, var(--acc) 45%, transparent); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Home hero ──────────────────────────────────────────────────────────── */
.hero { min-height: 100svh; display: grid; align-content: end; padding-block: 120px var(--s5); }
.hero__in { will-change: transform, opacity; }
.hero .k { margin-bottom: var(--s4); }
.hero h1 { font-weight: 700; font-size: clamp(44px, 7.6vw, 128px); line-height: .95; letter-spacing: -.045em; max-width: 13ch; }
.hero h1 .w { display: inline-block; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__foot { margin-top: var(--s6); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: end; border-top: 1px solid var(--gold-rule); padding-top: var(--s4); }
.hero__foot p { font-size: var(--t-lg); color: var(--fg-2); max-width: 44ch; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.toc a { display: grid; gap: 10px; text-decoration: none; padding: var(--s3); border: 1px solid var(--rule); border-radius: var(--r-sm); min-height: 44px; transition: border-color .25s ease, background-color .25s ease, transform .25s var(--ease); }
.toc a:hover { border-color: var(--c); background: var(--bg-2); transform: translateY(-2px); }
.toc a:active { transform: none; }
.toc img { width: 40px; height: 40px; border-radius: 10px; }
.toc b { font-weight: 600; font-size: 16px; }
.toc span { color: var(--fg-2); }

/* ── Chapters ───────────────────────────────────────────────────────────── */
.ch { position: relative; height: 240vh; }
.ch__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: center; padding-top: calc(var(--head) / 2); }
.ch__txt { padding-bottom: var(--s5); display: grid; gap: var(--s4); align-content: center; max-width: 540px; }
.ch__no { display: flex; align-items: center; gap: var(--s3); color: var(--acc); }
.ch__no::after { content: ""; flex: 1; height: 1px; background: var(--rule); max-width: 120px; }
.ch__name { display: flex; align-items: center; gap: var(--s3); }
.ch__name img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.ch h2 { font-weight: 700; font-size: clamp(36px, 4.6vw, 72px); line-height: .98; letter-spacing: -.04em; }
.ch h2.ch__say { font-size: clamp(28px, 3vw, 46px); line-height: 1.05; letter-spacing: -.03em; }
.ch h2 a { text-decoration: none; }
.ch h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--acc); }
.ch .lede { font-size: var(--t-xl); line-height: 1.45; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; }
.ticks li { padding: 12px 0; border-top: 1px solid var(--rule); color: var(--fg-2); font-size: 16px; display: grid; grid-template-columns: 28px minmax(0, 1fr); }
.ticks li::before { content: "—"; color: var(--acc); }
.ch__buy { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding-top: var(--s2); }
.ch__credit { font-size: 13px; line-height: 1.5; color: var(--fg-2); max-width: 46ch; }
.price { font-weight: 700; font-size: var(--t-2xl); letter-spacing: -.02em; }
.price small { font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--fg-2); text-transform: uppercase; margin-left: 6px; }

.ch__vis { position: relative; height: 78vh; }
.shot { position: absolute; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--rule); background: #000; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); will-change: transform; }
.shot picture { height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot--desk { left: 0; right: 6%; top: 8%; aspect-ratio: 16 / 10; }
.shot--desk.r4x3 { aspect-ratio: 1800 / 1360; right: 14%; }
.shot--desk.r7x5 { aspect-ratio: 2240 / 1600; right: 12%; }
.shot--desk.alone { top: 14%; right: 0; }
.shot--desk.back { right: 22%; top: 0; }
.shot--desk.front { left: 26%; right: 0; top: auto; bottom: 4%; }
.shot--wide { left: 10%; right: 0; bottom: 6%; top: auto; aspect-ratio: 2400 / 925; }
.shot--phone { width: 30%; aspect-ratio: 902 / 1960; right: 0; bottom: -4%; }
.shot--phone.back { right: 36%; bottom: auto; top: 0; width: 34%; }
.shot--phone.front { right: 2%; top: 14%; bottom: auto; width: 34%; }

/* Devices (DWMM-5): the capture sits under a drawn frame whose screen is a
   hole (chapters/README.md, "Device frames"). The insets are set inline from
   FRAMES in chapters/site.mjs. The box is the device's own shape, so the
   shadow follows it. */
.dev { overflow: visible; border: 0; background: none; }
.dev__screen { position: absolute; overflow: hidden; background: #000; }
.dev__screen img { object-fit: cover; object-position: top center; }
.dev img.dev__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; user-select: none; }
.dev--phone { aspect-ratio: 733 / 1500; border-radius: 17.6% / 8.6%; }
.dev--phone .dev__screen { border-radius: 15.47% / 7.11%; }
.dev--mac { aspect-ratio: 3426 / 2240; border-radius: 3% 3% 1.5% 1.5% / 4.5% 4.5% 2.5% 2.5%; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.dev--mac .dev__screen img { object-position: top left; }
/* A desktop app captured at its own window size: a window, not a computer. */
.dev--window { aspect-ratio: auto; height: auto; overflow: hidden; border: 1px solid #3A3D42; background: #1C1E21; border-radius: 12px; }
.dev--window .dev__screen { position: relative; border-radius: 0; }
.dev__bar { display: flex; gap: 8px; align-items: center; padding: 0 14px; height: 30px; background: #26282C; border-bottom: 1px solid #111214; }
.dev__bar i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.dev__bar i:nth-child(2) { background: #FEBC2E; }
.dev__bar i:nth-child(3) { background: #28C840; }

/* The chapter rail: one line per chapter that fills as you read it. */
/* Lined up with the page column, however wide the window is. */
.rail { position: fixed; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: 28px; z-index: 15; display: flex; gap: 20px; opacity: 0; pointer-events: none; transition: opacity .4s ease; padding: 6px 10px; margin-left: -10px; border-radius: var(--r-pill); background: rgba(13, 14, 16, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rail.show { opacity: 1; pointer-events: auto; }
.rail a { display: grid; grid-template-columns: 56px auto; gap: 10px; align-items: center; text-decoration: none; color: var(--fg-2); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; min-height: 32px; transition: color .2s ease; }
.rail a i { height: 2px; background: var(--rule-2); position: relative; overflow: hidden; }
.rail a i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.rail a:hover { color: var(--fg); }
.rail a.on { color: var(--gold); }

/* ── Sections after the chapters ────────────────────────────────────────── */
.sec { padding-block: var(--s7) 0; }
.sec--tight { padding-block: var(--s6) 0; }
.sec h2, .h2 { font-weight: 700; font-size: clamp(32px, 4vw, 60px); line-height: 1; letter-spacing: -.035em; max-width: 18ch; }
.sec__lead { margin-top: var(--s4); font-size: var(--t-lg); color: var(--fg-2); max-width: 60ch; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); margin-top: var(--s6); }
.list h3 { font-size: 13px; margin-bottom: var(--s3); }
.list ol, .list ul { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--rule); }
.list .row { padding: var(--s3) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--s3); align-items: baseline; text-decoration: none; }
a.row { transition: background-color .2s ease, padding .25s var(--ease); border-radius: var(--r-sm); }
a.row:hover { background: var(--bg-2); padding-inline: var(--s2); }
.list .row b { font-weight: 600; font-size: var(--t-lg); }
.list .row .d { grid-column: 1 / -1; color: var(--fg-2); font-size: 15px; }
.list .row code { font: 400 13px/1.4 var(--mono); color: var(--fg-2); grid-column: 1 / -1; overflow-wrap: anywhere; }

.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-top: var(--s7); }
.nums div { padding: var(--s4) var(--s4) 0 0; display: grid; gap: 6px; }
.nums b { font-weight: 700; font-size: clamp(40px, 5vw, 80px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }

.letter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5); }
.letter__body { display: grid; gap: var(--s4); font-size: clamp(20px, 1.9vw, 28px); line-height: 1.4; letter-spacing: -.01em; }
.letter__body p.dim { font-size: var(--t-base); letter-spacing: 0; line-height: 1.6; max-width: 60ch; }
.sig { display: flex; gap: var(--s3); align-items: center; margin-top: var(--s2); font-size: 15px; }
.sig a { display: inline-flex; align-items: center; min-height: 44px; }
.sig i { width: 40px; height: 1px; background: var(--gold-2); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.ft { margin-top: var(--s7); border-top: 1px solid var(--gold-rule); padding-block: var(--s6) var(--s4); }
.ft__cta { display: flex; justify-content: space-between; align-items: end; gap: var(--s4); flex-wrap: wrap; }
.ft__cta p { font-weight: 700; font-size: clamp(30px, 5vw, 76px); letter-spacing: -.04em; line-height: 1.05; }
.ft__cta a.mail { font-size: clamp(21px, 4.2vw, 64px); overflow-wrap: anywhere; text-decoration: none; color: var(--gold); background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .4s var(--ease); }
.ft__cta a.mail:hover { background-size: 100% 2px; }
.ft__cols { margin-top: var(--s6); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); border-top: 1px solid var(--rule); padding-top: var(--s4); }
.ft__cols h2 { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); margin-bottom: var(--s2); }
.ft__cols ul { list-style: none; margin: 0; padding: 0; }
.ft__cols a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; color: var(--fg); font-size: 15px; transition: color .2s ease; }
.ft__cols a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.ft__row { margin-top: var(--s6); display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; color: var(--fg-2); }
.ft__row a { color: var(--fg-2); text-decoration: none; min-height: 24px; display: inline-flex; align-items: center; transition: color .2s ease; }
.ft__row a:hover { color: var(--gold); }

/* ── Inner pages ────────────────────────────────────────────────────────── */
.page { padding-top: calc(var(--head) + var(--s6)); }
.phead { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-bottom: var(--s5); }
.phead h1 { font-weight: 700; font-size: clamp(40px, 6vw, 96px); line-height: .96; letter-spacing: -.045em; max-width: 16ch; }
.phead .lead { font-size: var(--t-xl); color: var(--fg-2); max-width: 58ch; line-height: 1.5; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--fg-2); }
.crumbs a { text-decoration: none; color: var(--fg-2); min-height: 24px; display: inline-flex; align-items: center; transition: color .2s ease; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { opacity: .5; }

/* Product sub-navigation, under the header on every product page. */
.pnav { position: sticky; top: var(--head); z-index: 12; background: rgba(13, 14, 16, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.pnav .wrap { display: flex; align-items: center; gap: var(--s3); min-height: 52px; }
.pnav__id { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; white-space: nowrap; min-height: 44px; }
.pnav__id { flex: none; }
.pnav__id img { width: 26px; height: 26px; border-radius: 7px; }
.pnav ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
.pnav ul::-webkit-scrollbar { display: none; }
.pnav ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: var(--t-sm); color: var(--fg-2); white-space: nowrap; border-radius: var(--r-sm); transition: color .2s ease, background-color .2s ease; }
.pnav ul a:hover { color: var(--fg); background: var(--bg-3); }
.pnav ul a[aria-current] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--acc); border-radius: 0; }
.pnav .btn { min-height: 40px; padding: 0 16px; font-size: var(--t-sm); }
.has-pnav .page { padding-top: calc(var(--head) + 52px + var(--s6)); }
.has-pnav .pnav + main .page, .has-pnav main > .pg-hero { padding-top: var(--s6); }

/* Product hero: the screens rise at two depths behind the name. */
.pg-hero { padding-top: var(--s6); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: center; min-height: calc(100svh - var(--head) - 52px); }
.pg-hero__txt { display: grid; gap: var(--s4); align-content: center; }
.pg-hero__id { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.pg-hero__id img { width: 72px; height: 72px; border-radius: 18px; }
.pg-hero h1 { font-weight: 700; font-size: clamp(44px, 6vw, 104px); line-height: .94; letter-spacing: -.045em; }
.pg-hero .lede { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; max-width: 30ch; }
.pg-hero .ch__vis { height: min(70vh, 720px); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--rule); }
.facts div { padding: var(--s4) var(--s4) var(--s4) 0; display: grid; gap: 6px; align-content: start; }
.facts b { font-weight: 700; font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -.03em; line-height: 1.05; }
.facts span { color: var(--fg-2); font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.card { display: grid; gap: var(--s2); align-content: start; padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--bg-2); text-decoration: none; transition: border-color .25s ease, transform .25s var(--ease), background-color .25s ease; }
a.card:hover { border-color: var(--c, var(--acc)); transform: translateY(-3px); background: var(--bg-3); }
a.card:active { transform: none; }
.card h3 { font-weight: 600; font-size: var(--t-lg); letter-spacing: -.01em; }
.card p { color: var(--fg-2); font-size: 15px; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.card__top img { width: 40px; height: 40px; border-radius: 10px; }
ul.cards { list-style: none; padding: 0; }
.cards--prod { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cards--prod > li { display: grid; min-width: 0; }
.card--prod h2 { font-size: var(--t-2xl); font-weight: 600; letter-spacing: -.03em; }
.card--prod .price { color: var(--fg); }
.card--prod { display: flex; flex-direction: column; min-width: 0; }
.card__go { margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--rule); color: var(--fg-2); font: 400 13px/1.4 var(--mono); display: flex; align-items: center; gap: 8px; min-width: 0; transition: color .2s ease; }
.card__host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.card--prod .price { margin-top: var(--s2); }
a.card:hover .card__go { color: var(--gold); }
.chip--out { color: var(--gold); border-color: var(--gold-rule); text-transform: none; letter-spacing: .02em; }
.two--fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5); }
.split > :first-child h2 { position: sticky; top: calc(var(--head) + 80px); }
.prose { display: grid; gap: var(--s3); max-width: 68ch; font-size: var(--t-lg); line-height: 1.6; }
.prose h2, .prose h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: var(--s4); }
.prose h2 { font-size: var(--t-2xl); } .prose h3 { font-size: var(--t-xl); }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s2); }
.prose code, code.inl { font: 400 .86em/1.4 var(--mono); background: var(--bg-3); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.prose pre { background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: var(--s3); overflow-x: auto; font: 400 14px/1.5 var(--mono); margin: 0; }
.prose pre code { background: none; padding: 0; }

/* Install lines with a copy button. */
.cmds { display: grid; gap: var(--s2); margin-top: var(--s3); }
.cmd { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s2) var(--s3); border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--bg-2); padding: 8px 8px 8px var(--s3); }
.cmd__where { grid-column: 1 / -1; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); padding-top: 6px; }
.cmd code { font: 400 14px/1.5 var(--mono); overflow-wrap: anywhere; }
.copy { min-height: 40px; min-width: 76px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--rule-2); background: transparent; color: var(--fg); font: 600 13px/1 var(--sans); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.copy:hover { border-color: var(--fg); }
.copy:active { background: var(--bg-3); }
.copy.done { border-color: var(--acc); color: var(--acc); }

/* Work index: one bar, search first, the facets as selects. */
.wf { margin-top: var(--s5); position: sticky; top: var(--head); z-index: 10; padding-block: var(--s3) 0; background: linear-gradient(var(--bg) 0 calc(100% - 1px), transparent); }
.wf__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s2); align-items: stretch; }
.wf__q, .wf__pick { display: flex; align-items: center; gap: var(--s2); min-height: 48px; border: 1px solid var(--rule-2); border-radius: var(--r-sm); background: var(--bg-2); transition: border-color .2s ease, background-color .2s ease; }
.wf__q { padding: 0 var(--s2) 0 var(--s3); cursor: text; }
.wf__q:hover, .wf__pick:hover { border-color: color-mix(in oklab, var(--fg) 40%, transparent); }
.wf__q:focus-within, .wf__pick:focus-within { border-color: var(--gold); outline: 2px solid var(--gold-rule); outline-offset: 0; }
.wf__q svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.wf__q input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fg); font: 400 16px/1 var(--sans); min-height: 46px; padding: 0; }
.wf__q input:focus { outline: none; }
.wf__q input::placeholder { color: var(--fg-2); opacity: 1; }
.wf__q input::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.6); cursor: pointer; }
.wf__key { font: 500 12px/1 var(--mono); color: var(--fg-2); border: 1px solid var(--rule-2); border-radius: 4px; padding: 4px 7px; }
.wf__q:focus-within .wf__key { display: none; }
.wf__pick { position: relative; padding: 0 36px 0 var(--s3); cursor: pointer; }
.wf__pick::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.6px solid var(--fg-2); border-bottom: 1.6px solid var(--fg-2); transform: rotate(45deg); pointer-events: none; transition: border-color .2s ease; }
.wf__lbl { color: var(--fg-2); font-size: 11px; }
.wf__pick select { appearance: none; -webkit-appearance: none; background: none; border: 0; color: var(--fg); font: 500 15px/1 var(--sans); min-height: 46px; padding: 0; cursor: pointer; min-width: 0; }
.wf__pick select:focus { outline: none; }
.wf__pick select option { background: var(--bg-2); color: var(--fg); }
.wf__pick.is-set { border-color: var(--gold-rule); background: color-mix(in oklab, var(--gold) 9%, var(--bg-2)); }
.wf__pick.is-set .wf__lbl, .wf__pick.is-set select { color: var(--gold); }
.wf__pick.is-set::after { border-color: var(--gold); }
.wf__state { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 44px; padding-block: var(--s1); border-bottom: 1px solid var(--rule); }
.wf__state p { color: var(--fg-2); overflow-wrap: anywhere; }
.wf__clear { flex: none; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--gold-rule); background: transparent; color: var(--gold); font: 600 13px/1 var(--sans); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.wf__clear:hover { border-color: var(--gold); background: color-mix(in oklab, var(--gold) 10%, transparent); }
.wf__clear:active { background: color-mix(in oklab, var(--gold) 18%, transparent); }
.wf__clear[hidden] { display: none; }
.wf__clear-inline { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; min-height: 24px; }
.wlist { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.wlist li { border-top: 1px solid var(--rule); }
.wlist li:first-child { border-top: 0; }
.wlist li[hidden] { display: none; }
.wrow { display: grid; grid-template-columns: 44px minmax(0, 3fr) minmax(0, 5fr) minmax(0, 2fr) 9.5rem; gap: var(--s3); align-items: center; padding: var(--s3) var(--s2); text-decoration: none; border-radius: var(--r-sm); transition: background-color .2s ease; }
.wrow:hover { background: var(--bg-2); }
.wrow img { width: 40px; height: 40px; border-radius: 10px; }
.wrow b { font-weight: 600; font-size: var(--t-lg); }
.wrow .d { color: var(--fg-2); font-size: 15px; }
.wrow .dom { color: var(--fg-2); font-size: var(--t-sm); }
.wrow > .chip { justify-self: end; }
.empty { padding: var(--s5) 0; color: var(--fg-2); }

/* Project dossier */
.langbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; margin-top: var(--s3); }
.langbar i { display: block; height: 100%; }
.langkey { list-style: none; margin: var(--s3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: var(--t-sm); color: var(--fg-2); }
.langkey li { display: inline-flex; align-items: center; gap: 8px; }
.langkey i { width: 8px; height: 8px; border-radius: 2px; }
.stack { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: var(--s3) 0 0; padding: 0; }
.stack li { font: 400 13px/1 var(--mono); padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--r-sm); color: var(--fg-2); }

/* Gallery */
.gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s5); }
.gal figure { grid-column: span 6; display: grid; gap: var(--s2); }
.gal figure.p { grid-column: span 3; }
.gal figure.w { grid-column: span 12; }
.gal .frame { border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; background: #000; }
.gal figure.p .dev { position: relative; width: 100%; box-shadow: none; }
.gal figcaption { font-size: var(--t-sm); color: var(--fg-2); }
.gal figcaption b { color: var(--fg); font-weight: 600; }
.note { border: 1px solid var(--rule); border-radius: var(--r-md); padding: var(--s4); background: var(--bg-2); color: var(--fg-2); font-size: 15px; max-width: 80ch; }
.ph { display: grid; place-items: center; min-height: 240px; border: 1px dashed var(--rule-2); border-radius: var(--r-md); color: var(--fg-2); font: 500 13px/1.4 var(--mono); background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 10px, var(--bg) 10px, var(--bg) 20px); text-align: center; padding: var(--s4); }

/* Downloads */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.dl__card { display: grid; gap: var(--s3); align-content: start; padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--bg-2); }
.dl__card h2 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -.02em; }
.dl__card dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px var(--s3); font-size: var(--t-sm); }
.dl__card dt { color: var(--fg-2); }
.dl__card dd { margin: 0; overflow-wrap: anywhere; }
.dl__card dd code { font: 400 12px/1.4 var(--mono); color: var(--fg-2); }
.dl__card .acts { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

/* ── Content carried over from the product sites ─────────────────────────
   Legal documents, support, pricing, key pages and project docs keep their
   words and their structure exactly; only the look is Chapters. */
.x { padding-top: calc(var(--head) + 52px); }
.x--plain { padding-top: var(--head); }
.x .wrap { max-width: var(--wrap); }
.x { overflow-wrap: break-word; }
.x .doc__body > section, .x .doc-section, .prose, .x .section__head { min-width: 0; }
.x .pagehead { padding-block: var(--s6) var(--s5); }
.x .pagehead h1, .x .doc-head h1 { font-weight: 700; font-size: clamp(40px, 6vw, 88px); line-height: .96; letter-spacing: -.045em; max-width: 18ch; margin-top: var(--s3); }
.x .lead, .x .doc-head__lead { font-size: var(--t-xl); color: var(--fg-2); max-width: 60ch; margin-top: var(--s3); line-height: 1.5; }
.x .crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.x .crumb a { text-decoration: none; color: var(--fg-2); transition: color .2s ease; min-height: 24px; display: inline-flex; align-items: center; }
.x .crumb a:hover { color: var(--fg); }
.x .kicker, .x .silk { display: block; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.x .silk--dim { color: var(--fg-2); }
.x .stamp { display: inline-flex; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); border: 1px solid var(--rule); padding: 6px 9px; border-radius: var(--r-pill); }
.x .doc-head__meta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.x .section { padding-block: var(--s6) 0; }
.x .section--tight { padding-block: var(--s4) 0; }
.x .section__head { display: grid; gap: var(--s2); margin-bottom: var(--s4); max-width: 70ch; }
.x .section__head h2, .x .section > .wrap > h2, .x .cta h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.02; letter-spacing: -.035em; }
.x h3 { font-weight: 600; font-size: var(--t-xl); letter-spacing: -.01em; line-height: 1.25; }
.x p { line-height: 1.65; }
.x .paper, .x .statement { color: var(--fg); }
.x .statement { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; letter-spacing: -.015em; max-width: 36ch; }
.x .serif { font-family: var(--sans); font-style: normal; }
.x ul, .x ol { padding-left: 1.2em; }
.x li { margin-block: 6px; }
.x code { font: 400 .88em/1.4 var(--mono); background: var(--bg-3); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.x pre { background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: var(--s3); overflow-x: auto; font: 400 14px/1.5 var(--mono); }
.x pre code { background: none; padding: 0; }
.x table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.x th, .x td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.x th { color: var(--fg-2); font-weight: 500; }
.x img { border-radius: var(--r-sm); }
.x figure { margin: 0; }
.x hr { border: 0; border-top: 1px solid var(--rule); margin-block: var(--s5); }
/* Decorations that belong to the old product-site design. */
.x .hw-tb, .x .ph-prompt, .x .ph-dial, .x .ph-paper, .x .tlink__arrow + .tlink__arrow { display: none !important; }

/* Legal and other documents: index on the left, text on the right. */
.x .doc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--s6); padding-top: var(--s4); align-items: start; }
.x .doc__index, .x .project-nav { position: sticky; top: calc(var(--head) + 52px + var(--s4)); display: grid; gap: 2px; max-height: calc(100vh - 180px); overflow-y: auto; border-left: 1px solid var(--rule); padding-left: var(--s3); }
.x .doc__index h2 { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); margin-bottom: var(--s2); }
.x .doc__index a, .x .project-nav a { text-decoration: none; color: var(--fg-2); font-size: var(--t-sm); line-height: 1.35; padding: 6px 0; min-height: 32px; display: flex; align-items: center; transition: color .2s ease; }
.x .doc__index a:hover, .x .project-nav a:hover, .x .doc__index a.on { color: var(--fg); }
.x .doc__index a.on { box-shadow: -17px 0 0 -15px var(--acc); }
.x .doc__body, .x .doc-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); max-width: 72ch; font-size: var(--t-base); }
.x .doc__body > section, .x .doc-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); scroll-margin-top: calc(var(--head) + 72px); }
.x .doc__body h2, .x .doc-section h2 { font-weight: 700; font-size: var(--t-2xl); letter-spacing: -.025em; line-height: 1.15; padding-top: var(--s4); border-top: 1px solid var(--rule); }
.x .doc__body > section:first-child h2 { border-top: 0; padding-top: 0; }
.x .doc__body h3 { font-size: var(--t-lg); margin-top: var(--s2); }
.x .doc__note { color: var(--fg-2); font-size: 15px; border-left: 2px solid var(--rule-2); padding-left: var(--s3); }
.x .doc-head { padding-block: var(--s6) var(--s5); display: grid; gap: var(--s2); }
.x .doc-body { padding-bottom: var(--s5); }
.x .shell { padding-inline: var(--gutter); max-width: var(--wrap); margin-inline: auto; }
.x .shell:has(> .project-nav) { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--s6); align-items: start; }
.x .shell:has(> .project-nav) > .doc-head { grid-column: 1 / -1; }

/* Lists of documents, FAQs, price lists. */
.x .docindex { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s3); }
.x .docindex li { margin: 0; }
.x .docindex a { display: grid; gap: var(--s2); height: 100%; padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--bg-2); text-decoration: none; transition: border-color .25s ease, transform .25s var(--ease); }
.x .docindex a:hover { border-color: var(--acc); transform: translateY(-3px); }
.x .faq { display: grid; gap: 0; border-bottom: 1px solid var(--rule); }
.x .faq details { border-top: 1px solid var(--rule); }
.x .faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s3) 0; font-weight: 600; font-size: var(--t-lg); transition: color .2s ease; }
.x .faq summary::-webkit-details-marker { display: none; }
.x .faq summary::after { content: "+"; font: 400 24px/1 var(--mono); color: var(--acc); transition: transform .25s var(--ease); }
.x .faq details[open] summary::after { transform: rotate(45deg); }
.x .faq summary:hover { color: var(--acc); }
.x .faq details > :not(summary) { color: var(--fg-2); padding-bottom: var(--s3); max-width: 72ch; }
.x .faq dt { font-weight: 600; font-size: var(--t-lg); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.x .faq dd { margin: var(--s2) 0 var(--s4); color: var(--fg-2); max-width: 72ch; }
.x .pricelist, .x .features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s3); }
.x .pricelist li, .x .features li { margin: 0; padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--bg-2); display: grid; gap: var(--s2); align-content: start; }
.x .pricelist--not li { background: transparent; border-style: dashed; }
.x .pricehead { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: baseline; margin-block: var(--s4); }
.x .pricehead b, .x .pricetag b { font-weight: 700; font-size: clamp(40px, 5vw, 72px); letter-spacing: -.04em; line-height: 1; }
.x .pricetag { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: baseline; }
.x .notice { border: 1px solid color-mix(in oklab, var(--acc) 40%, transparent); background: color-mix(in oklab, var(--acc) 7%, var(--bg)); border-radius: var(--r-md); padding: var(--s4); margin-block: var(--s4); max-width: 80ch; }
.x .ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s4); }
.x .ledger__col { border-top: 1px solid var(--rule); padding-top: var(--s3); }
.x .ledger__head { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.x .gates { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.x .gate { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); padding: var(--s3); border: 1px solid var(--rule); border-radius: var(--r-sm); margin: 0; }
.x .gate__state { font: 500 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.x .gate--done .gate__state { color: var(--acc); }
.x .cta { margin-top: var(--s6); padding: var(--s5); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--bg-2); display: grid; gap: var(--s3); }
.x .cta__actions, .x .hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-top: var(--s2); }
.x .tlink { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.x .chips { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; }
.x .chips li { margin: 0; font: 400 13px/1 var(--mono); padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--r-sm); color: var(--fg-2); }
/* Install lines from the product sites. */
.x .install { display: grid; gap: var(--s2); }
.x .install__row { display: grid; gap: 6px; padding: var(--s3); border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--bg-2); }
.x .install__where { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.x .install__cmd { font: 400 14px/1.5 var(--mono); overflow-wrap: anywhere; }
.x .install__note, .x .install__ask { color: var(--fg-2); font-size: 15px; }
/* Roadmap tracks. */
.x .track { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr); gap: var(--s4); border-top: 1px solid var(--rule); padding-block: var(--s4); }
.x .track__when { font: 500 12px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.x .track__items { margin: var(--s2) 0 0; }
/* Download pages and changelogs. */
.x .changelog { display: grid; gap: var(--s3); }
.x .changelog__date { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.x .changelog__entry { border-top: 1px solid var(--rule); padding-top: var(--s3); }
.x .dlcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s3); }
.x .dlcard { display: grid; gap: var(--s3); align-content: start; padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--bg-2); }
.x .dlcard__status { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.x .dlcard__facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px var(--s3); font-size: var(--t-sm); margin: 0; }
.x .dlcard__facts dd { margin: 0; overflow-wrap: anywhere; }
.x .dlcard__details summary { cursor: pointer; color: var(--fg-2); min-height: 32px; }
/* Key pages: resend, my servers, activate, thanks. */
.x .keypage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s5); align-items: start; }
.x .keycard, .x .keyform, .x .keyaside { padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--bg-2); display: grid; gap: var(--s3); }
.x .keyaside { background: transparent; }
.x .keycard__label, .x .keycard__state { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.x .keybox { font: 500 18px/1.4 var(--mono); padding: var(--s3); border: 1px dashed var(--rule-2); border-radius: var(--r-sm); overflow-wrap: anywhere; }
.x .keysteps { display: grid; gap: var(--s2); }
.x .keyform__row { display: grid; gap: var(--s2); }
.x label { font-weight: 600; font-size: 15px; }
.x input[type="email"], .x input[type="text"], .x input:not([type]), .x textarea, .x select { width: 100%; min-height: 48px; padding: 0 var(--s3); border-radius: var(--r-sm); border: 1px solid var(--rule-2); background: var(--bg); color: var(--fg); font: 400 16px/1.4 var(--sans); transition: border-color .2s ease; }
.x textarea { padding: var(--s2) var(--s3); min-height: 120px; }
.x input:focus-visible, .x textarea:focus-visible { border-color: var(--fg); outline-offset: 1px; }
.x .formnote { font-size: var(--t-sm); color: var(--fg-2); }
.x .formnote--error:not(.is-shown) { display: none; }
.x .formnote--error { color: #FF8C7A; }
.x .seatline, .x .devices { color: var(--fg-2); font-size: 15px; }
/* Sentito's How it works: its frames, phones and screen tours. */
.x .sc-intro__promise { font-weight: 700; font-size: clamp(26px, 3vw, 44px); line-height: 1.1; letter-spacing: -.03em; max-width: 28ch; margin-top: var(--s2); }
.x .sc-intro__state { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.x .sc-intro__state span { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); border: 1px solid var(--rule); padding: 7px 10px; border-radius: var(--r-pill); }
.x .sc-proof__grid, .x .sc-steps__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s3); margin: var(--s4) 0 0; padding: 0; list-style: none; }
.x .sc-proof__grid div, .x .sc-steps__list li { border-top: 1px solid var(--rule); padding-top: var(--s3); margin: 0; display: grid; gap: var(--s2); align-content: start; }
.x .sc-proof__grid dt { font-weight: 700; font-size: var(--t-lg); }
.x .sc-proof__grid dd { margin: 0; color: var(--fg-2); }
.x .sc-steps__n { font: 500 12px/1 var(--mono); color: var(--acc); }
.x .sc-steps__list p { color: var(--fg-2); }
.x .sc-mobile__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: start; }
.x .sc-mobile__copy { display: grid; gap: var(--s3); }
.x .sc-mobile__copy h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.02; letter-spacing: -.035em; }
.x .sc-mobile__facts { color: var(--fg-2); }
.x .sc-mobile__phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.x .scp, .x .sct { display: grid; gap: var(--s2); align-content: start; }
.x .scp__screen { border: 5px solid #26292E; border-radius: 26px; overflow: hidden; background: #000; }
.x .sct__screen { border: 6px solid #26292E; border-radius: 22px; overflow: hidden; background: #000; }
.x .scp__screen img, .x .sct__screen img, .x .scw__screen img { border-radius: 0; width: 100%; }
.x .scp figcaption, .x .sct figcaption { font-size: var(--t-sm); color: var(--fg-2); }
.x .scp figcaption strong, .x .sct figcaption strong { color: var(--fg); }
.x .scw { border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; background: #000; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.x .scw__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-3); font: 500 11px/1 var(--mono); color: var(--fg-2); }
.x .scw__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-2); }
.x .scw__bar span { margin-left: 8px; }
.x .sc-tour { display: grid; gap: var(--s3); }
.x .sc-tour__tabs { display: flex; flex-wrap: wrap; gap: var(--s2); }
.x .sc-tour__tabs input { position: absolute; opacity: 0; pointer-events: none; }
.x .sc-tour__tabs label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 500; color: var(--fg-2); cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.x .sc-tour__tabs label:hover { color: var(--fg); border-color: var(--rule-2); }
.x .sc-tour__tabs input:checked + label { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.x .sc-tour__tabs input:focus-visible + label { outline: 2px solid var(--acc); outline-offset: 2px; }
.x .sc-tour__panel, .x .sc-tour__caps p { display: none; }
.x .sc-tour__caps { color: var(--fg-2); min-height: 3.2em; }
.x .sc-tour:has(.sc-tour__tabs input:nth-of-type(1):checked) .sc-tour__panel:nth-child(1), .x .sc-tour:has(.sc-tour__tabs input:nth-of-type(1):checked) .sc-tour__caps p:nth-child(1) { display: block; }
.x .sc-tour:has(.sc-tour__tabs input:nth-of-type(2):checked) .sc-tour__panel:nth-child(2), .x .sc-tour:has(.sc-tour__tabs input:nth-of-type(2):checked) .sc-tour__caps p:nth-child(2) { display: block; }
.x .sc-tour:has(.sc-tour__tabs input:nth-of-type(3):checked) .sc-tour__panel:nth-child(3), .x .sc-tour:has(.sc-tour__tabs input:nth-of-type(3):checked) .sc-tour__caps p:nth-child(3) { display: block; }
.x .sc-tour:has(.sc-tour__tabs input:nth-of-type(4):checked) .sc-tour__panel:nth-child(4), .x .sc-tour:has(.sc-tour__tabs input:nth-of-type(4):checked) .sc-tour__caps p:nth-child(4) { display: block; }
.x .sc-tour:has(.sc-tour__tabs input:nth-of-type(5):checked) .sc-tour__panel:nth-child(5), .x .sc-tour:has(.sc-tour__tabs input:nth-of-type(5):checked) .sc-tour__caps p:nth-child(5) { display: block; }
.x .sc-tour:has(.sc-tour__tabs input:nth-of-type(6):checked) .sc-tour__panel:nth-child(6), .x .sc-tour:has(.sc-tour__tabs input:nth-of-type(6):checked) .sc-tour__caps p:nth-child(6) { display: block; }
.x .sc-tour:has(.sc-tour__tabs input:nth-of-type(7):checked) .sc-tour__panel:nth-child(7), .x .sc-tour:has(.sc-tour__tabs input:nth-of-type(7):checked) .sc-tour__caps p:nth-child(7) { display: block; }
.x .sc-tour:has(.sc-tour__tabs input:nth-of-type(8):checked) .sc-tour__panel:nth-child(8), .x .sc-tour:has(.sc-tour__tabs input:nth-of-type(8):checked) .sc-tour__caps p:nth-child(8) { display: block; }
.x .sc-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s3); counter-reset: job; }
.x .sc-flow li { margin: 0; border-top: 1px solid var(--rule); padding-top: var(--s3); display: grid; gap: var(--s2); align-content: start; }
.x .sc-flow p { color: var(--fg-2); }
.x .sc-jobs { display: flex; flex-wrap: wrap; gap: var(--s2); }
.x .sc-jobs code { color: var(--acc); }
.x .sc-how__note { margin-top: var(--s5); color: var(--fg-2); font-size: var(--t-sm); max-width: 110ch; }
.x .pricetag div { display: grid; gap: 2px; }
.x .pricetag dt { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.x .pricetag dd { margin: 0; font-weight: 700; font-size: var(--t-xl); }
@media (max-width: 960px) { .x .sc-mobile__grid { grid-template-columns: minmax(0, 1fr); } }

/* Bottega pages carried over. Its drawn dashboard demo is decoration from the
   old design and is left out; every word around it stays. */
.x > section, .x > article, .x .bottega-products { padding-inline: var(--gutter); max-width: var(--wrap); margin-inline: auto; }
.x .bottega-page-hero, .x .bottega-product-hero { padding-block: var(--s6) var(--s5); display: grid; gap: var(--s3); position: relative; }
.x .bottega-page-hero h1, .x .bottega-product-hero h1 { font-weight: 700; font-size: clamp(40px, 6vw, 96px); line-height: .96; letter-spacing: -.045em; max-width: 16ch; }
.x .bottega-page-hero h1 em, .x .bottega-product-hero h1 em, .x h2 em { font-style: normal; color: var(--fg-2); }
.x .bottega-page-hero > p:last-child, .x .bottega-product-hero > p:last-child { font-size: var(--t-xl); color: var(--fg-2); max-width: 58ch; }
.x .bottega-kicker, .x .bottega-track__when { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.x .bottega-back { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; transition: color .2s ease; }
.x .bottega-back:hover { color: var(--fg); }
.x .bottega-product-hero__index { position: absolute; right: var(--gutter); top: var(--s5); font-weight: 800; font-size: clamp(80px, 14vw, 220px); line-height: 1; color: var(--acc); opacity: .14; }
.x .bottega-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s3); }
.x .bottega-product-card { display: grid; gap: var(--s2); align-content: start; padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--bg-2); position: relative; transition: border-color .25s ease, transform .25s var(--ease); }
.x .bottega-product-card:hover { border-color: var(--acc); transform: translateY(-3px); }
.x .bottega-product-card__top { display: flex; justify-content: space-between; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.x .bottega-product-card h3 { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -.03em; }
.x .bottega-product-card__statement { color: var(--fg-2); }
.x .bottega-product-card h3 { display: flex; align-items: center; gap: 12px; }
.x .bottega-product-card h3 > span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: color-mix(in oklab, var(--acc) 18%, var(--bg-3)); color: var(--acc); font: 600 16px/1 var(--mono); }
.x .bottega-product-card a { color: var(--fg); font-weight: 600; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.x .bottega-product-card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.x .bottega-product-card a:focus-visible { outline: none; }
.x .bottega-product-card:has(a:focus-visible) { outline: 2px solid var(--acc); outline-offset: 3px; }
.x .bottega-product-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); padding-block: var(--s5); border-top: 1px solid var(--rule); }
.x .bottega-product-detail h2, .x .bottega-product-cta h2, .x .bottega-closing h2 { font-weight: 700; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; margin-top: var(--s2); }
.x .bottega-product-detail ul { list-style: none; padding: 0; margin: 0; }
.x .bottega-product-detail li { display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: var(--s3) 0; border-top: 1px solid var(--rule); margin: 0; font-size: var(--t-lg); }
.x .bottega-product-detail li span { font: 500 12px/1.9 var(--mono); color: var(--acc); }
.x .bottega-product-cta, .x .bottega-closing { margin-top: var(--s6); padding: var(--s5); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--bg-2); display: grid; gap: var(--s2); justify-items: start; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-inline: auto; }
.x .bottega-product-cta > p:first-child { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.x .bottega-button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: 15px; background: var(--acc); color: var(--on-acc); transition: transform .25s var(--ease); }
.x .bottega-button:hover { transform: translateY(-2px); }
.x .bottega-button--dark { background: transparent; color: var(--fg); border: 1px solid var(--rule-2); }
.x .bottega-text-link { color: var(--fg); text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
.x .bottega-text-link:hover { text-decoration-color: var(--acc); }
.x .bottega-legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); max-width: 80ch; padding-block: var(--s4); }
.x .bottega-legal > section { display: grid; gap: var(--s3); border-top: 1px solid var(--rule); padding-top: var(--s4); }
.x .bottega-legal h2 { font-weight: 700; font-size: var(--t-2xl); letter-spacing: -.025em; line-height: 1.15; }
.x .bottega-track { color: var(--fg-2); }
.x .bottega-stage-wrap, .x .demo, .x [class^="d-"] { display: none !important; }
@media (max-width: 960px) { .x .bottega-product-detail { grid-template-columns: minmax(0, 1fr); } }


/* ── Motion states (only with script and without Reduce Motion) ────────── */
.js .in-step { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .9s var(--ease); }
.js .on-step .in-step { opacity: 1; transform: none; }
.js .on-step .in-step:nth-child(2) { transition-delay: .06s; }
.js .on-step .in-step:nth-child(3) { transition-delay: .12s; }
.js .on-step .in-step:nth-child(4) { transition-delay: .18s; }
.js .on-step .in-step:nth-child(5) { transition-delay: .24s; }
.js .on-step .in-step:nth-child(6) { transition-delay: .30s; }
.js .hero h1 .w { opacity: 0; transform: translateY(.4em); transition: opacity .8s ease, transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms + .1s); }
.js.ready .hero h1 .w { opacity: 1; transform: none; }
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* Chapter → product page: the icon and name carry across the navigation. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
  ::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
}

/* ── 404: the missing chapter ───────────────────────────────────────────── */
/* The reel flicks through the four chapters once (under five seconds), the
   ground taking each product's colour on its own layer, then lands on the
   chapter that was never written. Opacity and transform only. */
.lost__tint { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.lost__tint i { position: absolute; inset: 0; background: color-mix(in oklab, var(--bg) 86%, var(--c)); opacity: 0; transition: opacity .5s ease; animation: lost-tint 1s ease backwards; animation-delay: calc(.3s + var(--n) * .9s); }
@keyframes lost-tint { 0% { opacity: 0; } 30%, 70% { opacity: 1; } 100% { opacity: 0; } }
.lost { min-height: 100svh; display: grid; align-content: end; gap: var(--s6); padding-bottom: var(--s5); }
.lost__head { display: grid; gap: var(--s4); justify-items: start; }
.lost__k { display: flex; align-items: center; gap: var(--s3); color: var(--fg-2); }
.lost__k::after { content: ""; width: 120px; height: 1px; background: repeating-linear-gradient(90deg, var(--rule-2) 0 6px, transparent 6px 10px); }
.lost__path { font-weight: 700; font-size: clamp(44px, 7.6vw, 128px); line-height: .95; letter-spacing: -.045em; max-width: 100%; overflow-wrap: anywhere; min-height: .95em; }
.lost__path.long { font-size: clamp(36px, 6vw, 104px); line-height: 1; letter-spacing: -.04em; }
.lost__typed .s { color: var(--fg-2); }
.lost__typed::after { content: ""; display: inline-block; width: .09em; height: .78em; margin-left: .06em; background: var(--fg); vertical-align: -.04em; animation: lost-blink 1s steps(1) 4; }
@keyframes lost-blink { 50% { opacity: 0; } }
.lost h1 { font-weight: 700; font-size: clamp(28px, 3vw, 46px); line-height: 1.05; letter-spacing: -.03em; }
.lost .lead { font-size: var(--t-xl); color: var(--fg-2); max-width: 46ch; line-height: 1.5; }
.lost__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); padding-top: var(--s2); }
.lost__acts .tlink { display: inline-flex; align-items: center; min-height: 44px; }

.lost__reel ol { list-style: none; margin: 0; padding: var(--s4) 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); border-top: 1px solid var(--rule); }
.lost__reel li { display: grid; }
.lost__reel a, .lost__gap { display: grid; gap: 10px; align-content: start; text-decoration: none; padding-block: var(--s2); border-radius: var(--r-sm); min-height: 44px; transition: transform .25s var(--ease); }
.lost__bar { height: 2px; background: var(--rule-2); position: relative; overflow: hidden; margin-bottom: var(--s2); }
.lost__bar::after { content: ""; position: absolute; inset: 0; background: var(--c); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); animation: lost-fill .7s var(--ease) both; animation-delay: calc(.35s + var(--n) * .9s); }
@keyframes lost-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lost__no, .lost__tag { color: var(--fg-2); }
.lost__id { display: flex; align-items: center; gap: 12px; }
.lost__id img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.lost__id b { font-weight: 600; font-size: 17px; line-height: 1.2; }
.lost__reel a:hover { transform: translateY(-3px); }
.lost__reel a:active { transform: none; }
.lost__reel a:hover .lost__no, .lost__reel a:focus-visible .lost__no { color: var(--c); }
.lost__reel a:focus-visible { outline-color: var(--c); outline-offset: 6px; }
/* Pointing at a chapter gives the ground its colour; the flick gives way. */
.is-lost:has(.lost__reel a:is(:hover, :focus-visible)) .lost__tint i { animation: none; }
.is-lost:has(.lost__reel a[data-k="fileporter"]:is(:hover, :focus-visible)) .lost__tint i:nth-child(1),
.is-lost:has(.lost__reel a[data-k="sentito"]:is(:hover, :focus-visible)) .lost__tint i:nth-child(2),
.is-lost:has(.lost__reel a[data-k="hmh"]:is(:hover, :focus-visible)) .lost__tint i:nth-child(3),
.is-lost:has(.lost__reel a[data-k="ll"]:is(:hover, :focus-visible)) .lost__tint i:nth-child(4) { opacity: 1; }

/* The chapter that isn't there: a dashed line, and the reel stops on it. */
.lost__gap { --c: var(--fg); --n: 4; animation: lost-land .5s ease both; animation-delay: 3.9s; }
@keyframes lost-land { from { opacity: .45; } to { opacity: 1; } }
.lost__gap .lost__bar { background: repeating-linear-gradient(90deg, var(--fg-2) 0 6px, transparent 6px 11px); }
.lost__gap .lost__bar::after { width: 28%; background: var(--fg); transform: translateX(-110%); animation: lost-scan 1.1s var(--ease) 3.9s both; }
@keyframes lost-scan { from { transform: translateX(-110%); } to { transform: translateX(380%); } }
.lost__gap .lost__no { color: var(--fg); }
.lost__q { width: 32px; height: 32px; border-radius: 8px; border: 1px dashed var(--fg-2); display: grid; place-items: center; font: 500 15px/1 var(--mono); color: var(--fg); flex: none; }

@media (max-width: 960px) {
  .lost__reel ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s4); }
  .lost__gap { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .lost { gap: var(--s5); }
  .lost__head { gap: var(--s3); }
  .lost__k::after { display: none; }
  .lost__acts .btn { flex: 1 1 auto; }
}
@media (hover: none) { .lost__reel a:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lost__tint i, .lost__gap, .lost__typed::after { animation: none !important; }
  .lost__bar::after { animation: none !important; transform: scaleX(1); }
  .lost__gap .lost__bar::after { display: none; }
}

/* ── Wide and short windows ─────────────────────────────────────────── */
/* 21:9 and larger: a wider column and bigger display type, so the page doesn't
   sit as a small island. The screens keep their overlap: the stage's height
   follows the column, not only the window. */
@media (min-width: 2200px) {
  :root { --wrap: 2200px; }
  .hero h1 { font-size: 168px; max-width: 13ch; }
  .ch h2 { font-size: 88px; }
  .ch h2.ch__say { font-size: 56px; }
  .ch__txt { max-width: 640px; }
  .ch__vis { height: min(78vh, 980px); }
}
/* Too short to pin: a 2560×1080 monitor at 150% scaling under the browser
   toolbars is about 640px tall, and the chapter text doesn't fit it. The
   chapters read as ordinary sections instead, so nothing is cut off. */
@media (min-width: 961px) and (max-height: 720px) {
  .ch { height: auto; padding-block: var(--s6); }
  .ch__stick { position: static; height: auto; overflow: visible; padding-top: 0; }
  .ch__vis { height: min(68vh, 460px); }
  .rail { display: none; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .wrow { grid-template-columns: 44px minmax(0, 3fr) minmax(0, 5fr) 9.5rem; }
  .wrow .dom { display: none; }
  .ft__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pnav .btn { display: none; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { min-height: 92svh; }
  .hero__foot { grid-template-columns: minmax(0, 1fr); }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch { height: auto; padding-block: var(--s6); border-top: 1px solid var(--rule); }
  .ch__stick { position: static; height: auto; overflow: visible; grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .ch__vis, .pg-hero .ch__vis { height: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); order: 2; }
  .shot { position: relative; inset: auto !important; width: 100% !important; transform: none !important; }
  .shot--phone { width: 62% !important; max-width: 300px; justify-self: center; }
  .ch__vis.phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch__vis.phones { max-width: 560px; }
  .ch__vis.phones .shot--phone { width: 100% !important; max-width: none; }
  .rail { display: none; }
  .two, .letter, .split, .pg-hero { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .split > :first-child h2 { position: static; }
  .pg-hero { min-height: 0; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nums div:nth-child(n+3) { margin-top: var(--s4); }
  .x .doc, .x .keypage, .x .shell:has(> .project-nav) { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .x .doc__index, .x .project-nav { position: static; max-height: none; }
  .x .track { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .gal figure { grid-column: span 12; }
  .gal figure.p { grid-column: span 6; }
  .pnav .btn { display: none; }
}
@media (max-width: 760px) {
  .wf { position: static; background: none; }
  .wf__bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wf__q { grid-column: 1 / -1; }
  .wf__key { display: none; }
  .wf__pick { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding-block: 6px; }
  .wf__pick select { min-height: 24px; width: 100%; }
}
@media (hover: none) { .wf__key { display: none; } }
@media (max-width: 640px) {
  :root { --s6: 48px; --s7: 88px; }
  .wrow { grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: 4px; }
  .wrow .d { grid-column: 2 / -1; grid-row: 2; }
  .ft__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pnav__id span { display: none; }
  .x .cta { padding: var(--s4); }
  .cmd { grid-template-columns: minmax(0, 1fr); }
  .copy { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (hover: none) {
  .btn:hover, .toc a:hover, a.card:hover, .x .docindex a:hover { transform: none; }
}
