/* An exhibition you can operate: bold colour, physical inputs, visible results. */
@font-face { font-family: "Anybody"; src: url("fonts/anybody.woff2") format("woff2"); font-weight: 400 900; font-stretch: 100% 150%; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-next.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-next-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: light dark;
  --green: #c1f17b;
  --orchid: #d7b8f3;
  --ink: #20271e;
  --muted: #50584c;
  --paper: #fafbf7;
  --paper-soft: #edf0e8;
  --line: #c3c9bc;
  --brand-ink: #20271e;
  --brand-muted: #435333;
  --orchid-ink: #30213d;
  --orchid-muted: #54415f;
  --display: "Anybody", "Arial Black", sans-serif;
  --text: "Atkinson Hyperlegible Next", -apple-system, sans-serif;
  --code: ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #eef3e7; --muted: #b7c0af; --paper: #20271e; --paper-soft: #30382d; --line: #535e4c; }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, output { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button, a, input, summary { touch-action: manipulation; }
button { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
::selection { color: var(--brand-ink); background: var(--orchid); }
p { margin: 0 0 1.15em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 750; font-stretch: 112%; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(2.4rem, 4.9vw, 4.75rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }
strong { font-weight: 700; }
code, pre, kbd { font-family: var(--code); }
code { font-size: 0.83em; overflow-wrap: anywhere; }
code.nowrap { white-space: nowrap; }
pre { font-size: 0.85rem; line-height: 1.8; }
kbd { font-size: 0.85em; white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 20; padding: 0.75rem 1rem; color: var(--brand-ink); background: #fff; transform: translateY(-200%); font-weight: 700; }
.skip-link:focus { transform: none; }
.site-header { color: var(--brand-ink); background: var(--green); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; max-width: 1600px; padding: 1.45rem var(--gutter); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font: 750 1.4rem/1 var(--display); letter-spacing: -0.035em; text-decoration: none; flex: none; }
.brand img { width: 36px; height: 36px; }
.nav-purpose { flex: 1; max-width: 22ch; margin-right: auto; font-size: 0.86rem; line-height: 1.2; }
.site-nav > a:not(.brand) { font-size: 0.94rem; font-weight: 700; text-decoration: none; padding-block: 0.45rem; }
.site-nav > a:not(.brand):hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.site-nav .nav-build { padding: 0.65rem 1rem !important; border: 1px solid currentColor; border-radius: 0; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 1.2rem; min-height: 3.15rem; padding: 0.8rem 1.3rem; border: 1px solid currentColor; border-radius: 0.25rem; background: transparent; color: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgb(32 39 30 / 0.17); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-primary { color: #f8fbee; background: var(--brand-ink); border-color: var(--brand-ink); }
.btn-primary:focus-visible { outline-color: var(--ink); }
.text-link { display: inline-flex; align-items: baseline; gap: 0.75rem; font-weight: 700; text-decoration: underline; text-underline-offset: 0.3em; }
.text-link span, .btn span, .nav-build span { transition: transform 180ms var(--ease); }
.text-link:hover span, .btn:hover span, .nav-build:hover span { transform: translate(2px, -2px); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* The first scene is the working demo, not an illustration of a demo. */
.playground { overflow: clip; color: var(--brand-ink); background: var(--green); }
.stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 3%; row-gap: 2rem; max-width: 1600px; margin-inline: auto; padding: clamp(2rem, 4.2vw, 4rem) var(--gutter) 1.6rem; }
.hero-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 1; }
.hero-copy h1 { font-size: clamp(3rem, 5.5vw, 5.6rem); font-stretch: 108%; }
.hero-copy .lede { margin: 1.5rem 0; max-width: 37ch; font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.4; }
.release-note { margin: 0.9rem 0 0; font-size: 0.86rem; color: var(--brand-muted); max-width: 49ch; }
.object-stage { grid-column: 2; grid-row: 1 / 3; position: relative; min-width: 0; min-height: 35rem; align-self: stretch; }
.mouse-object { position: absolute; top: -1.75rem; left: -5%; width: 97%; max-height: 36rem; overflow: visible; transform: rotate(-17deg); transform-origin: 50% 60%; }
.object-shadow { fill: #324124; opacity: 0.14; }
.mouse-button { fill: #e8d5fb; stroke: #c4a6e1; stroke-width: 1.5; }
.mouse-seam { fill: none; stroke: #a885c4; stroke-width: 2; }
.side-button { fill: #b28acc; stroke: #9167ad; stroke-width: 2; }
.button-arrow { stroke: #30213d; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; fill: none; pointer-events: none; }
.wheel-socket { fill: #a77dc6; }
.wheel-body { fill: #45324f; }
.wheel-ribs { stroke: #bd98d7; stroke-width: 2; pointer-events: none; }
.wheel-press { fill: #70577d; }
.mouse-signature { fill: none; stroke: #815f9b; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.part { cursor: pointer; transition: fill 200ms var(--ease), stroke 200ms var(--ease); }
.part:hover { fill: #f7ecff; }
.part.is-active { fill: #f2faac; stroke: #5b653a; stroke-width: 2.5; }
.action-result { position: absolute; right: -0.5rem; bottom: 1.8rem; width: min(90%, 21rem); z-index: 2; transform: rotate(4deg); background: #fafbf7; color: var(--brand-ink); padding: 1.3rem 1.5rem 0.95rem; box-shadow: 9px 16px 28px rgb(38 54 26 / 0.16); }
.action-result::before { content: ""; position: absolute; width: 1.25rem; height: 1.25rem; background: var(--green); right: 0; top: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.callout h3 { display: flex; align-items: baseline; gap: 0.5rem 1rem; justify-content: space-between; flex-wrap: wrap; font-size: 0.96rem; font-weight: 400; padding-bottom: 0.75rem; border-bottom: 1px solid #dce1d5; }
.callout .label { font-weight: 700; }
.maps { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.75rem; }
.maps li { display: grid; gap: 0.05rem; }
.maps .key { font-size: 0.78rem; color: #50584c; }
.maps .act { display: block; font: 700 clamp(1.4rem, 2.5vw, 2.4rem)/1.08 var(--display); letter-spacing: -0.03em; }
.maps .act small { display: block; font: 400 0.88rem/1.35 var(--text); margin-top: 0.45rem; letter-spacing: 0; }
.maps li + li .act { font-size: 1.05rem; line-height: 1.3; }
.maps .inh { display: block; margin-top: 0.4rem; color: #50584c; font: 400 0.78rem/1.4 var(--text); letter-spacing: 0; }
.result-note { font-size: 0.72rem; line-height: 1.35; color: #50584c; margin: 1rem 0 0; }
.demo-console { grid-column: 1; grid-row: 2; align-self: end; max-width: 34rem; display: grid; gap: 1rem; }
.control-caption { margin: 0 0 0.4rem; font-size: 0.88rem; font-weight: 700; }
.seg { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.seg button { min-height: 2.7rem; padding: 0.45rem 0.95rem; background: transparent; border: 1px solid #7f9f52; border-radius: 0.2rem; color: var(--brand-ink); cursor: pointer; font-size: 0.97rem; }
.seg button[aria-pressed="true"] { background: var(--brand-ink); color: var(--green); border-color: var(--brand-ink); }
.seg button:hover:not([aria-pressed="true"]) { background: #d2f79c; }
.parts { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.parts button { min-height: 2.7rem; padding: 0.3rem 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; cursor: pointer; color: var(--brand-ink); font-size: 0.92rem; }
.parts button:hover, .parts button[aria-pressed="true"] { border-bottom-color: currentColor; }
.parts button[aria-pressed="true"] { font-weight: 700; }
.demo-note { max-width: 47ch; margin: 0; font-size: 0.84rem; color: var(--brand-muted); }
.hero-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.8rem; margin: 0; padding-top: 1.4rem; border-top: 1px solid #97ba66; font-size: 0.83rem; color: var(--brand-muted); }
.hero-facts a { margin-left: auto; color: var(--brand-ink); font-weight: 700; }

/* Each control gets a different, full-sized scene. */
.scene { padding: clamp(4rem, 8vw, 8rem) var(--gutter); }
.scene-inner { max-width: 1400px; margin-inline: auto; }
.scene-copy > p { max-width: 39ch; margin-top: 1.4rem; }
.scene-copy > .text-link { margin-top: 0.25rem; font-size: 1rem; }
.scroll-scene { background: var(--orchid); color: var(--orchid-ink); }
.scroll-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(2rem, 6vw, 7rem); }
.controls { display: grid; gap: 1.2rem; margin: 2rem 0 1.5rem; max-width: 30rem; }
.control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0.45rem 1rem; }
.control label { font-size: 1rem; }
.control output { font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.control input[type="range"] { grid-column: 1 / -1; width: 100%; margin: 0; min-height: 2rem; accent-color: var(--orchid-ink); cursor: pointer; color-scheme: light; }
.control input:disabled { cursor: not-allowed; opacity: 0.45; }
.check { display: flex; align-items: center; gap: 0.7rem; width: fit-content; min-height: 2.75rem; font-size: 1rem; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--orchid-ink); color-scheme: light; flex: none; }
.note-small { margin: 0; font-size: 0.93rem; color: var(--muted); }
.scroll-scene .note-small { color: var(--orchid-muted); margin: 1.5rem 0; }
.scroll-play { padding-top: 2.5rem; min-width: 0; }
.wheel-demo { min-width: 0; }
.page-window { position: relative; height: 23rem; overflow: hidden; background: #fafbf7; color: #30213d; border-radius: 46% 46% 0 0 / 26% 26% 0 0; padding-top: 0; box-shadow: 12px 18px 0 #b18ccb; }
.page-window ol { list-style: none; padding: 0; margin: 0; transition: transform 450ms var(--ease); }
.page-window li { height: 4.6rem; display: flex; align-items: center; justify-content: center; font: 700 clamp(1.2rem, 2.6vw, 2.4rem)/1.15 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.page-window li:nth-child(4n + 1) { background: #e7f5d5; }
.page-window li:nth-child(4n + 2) { background: #f3edb2; }
.page-window li:nth-child(4n + 3) { background: #efdcff; }
.wheel-actions { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.wheel-buttons { display: flex; gap: 0.5rem; flex: none; }
.wheel-buttons button { display: grid; place-items: center; height: 3.1rem; width: 3.1rem; border: 1px solid var(--orchid-ink); border-radius: 50%; color: var(--orchid-ink); background: transparent; font-size: 1.6rem; cursor: pointer; }
.wheel-buttons button:hover { background: #ead5fa; }
.wheel-buttons button:active { background: var(--orchid-ink); color: var(--orchid); }
.readout { font-size: 0.86rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.plot-details { margin-top: 1.75rem; max-width: 37rem; }
summary { width: fit-content; cursor: pointer; font-size: 0.94rem; font-weight: 700; padding-block: 0.7rem; }
summary:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.plot-details p { margin-top: 1rem; font-size: 0.92rem; }
.plot { width: 100%; max-width: 28rem; height: auto; margin-top: 1rem; overflow: visible; }
.plot text { fill: currentColor; font: 11px var(--text); }
.plot .axis { fill: none; stroke: currentColor; stroke-width: 1; }
.plot .gridline { fill: none; stroke: currentColor; stroke-width: 0.6; opacity: 0.2; }
.plot .threshold { stroke: currentColor; stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.4; }
.plot .curve { stroke: currentColor; stroke-width: 3; fill: none; stroke-linejoin: round; }
.plot .ref { stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 5 5; fill: none; opacity: 0.6; }
.pointer-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.5rem clamp(2rem, 6vw, 7rem); }
.pointer-layout > .scene-copy { grid-column: 1; grid-row: 1; }
.pointer-play { grid-column: 2; grid-row: 1; align-self: end; min-width: 0; }
.pointer-field { position: relative; padding: 1.5rem 1rem 1.25rem; height: 19rem; background: var(--paper-soft); overflow: hidden; }
.hand-mark { font-size: 0.83rem; display: block; color: var(--muted); }
.hand-mark::after { display: block; content: ""; width: 2.5rem; height: 4px; margin-top: 0.6rem; background: currentColor; }
.pointer-runway { position: relative; height: 9rem; width: calc(100% - 6rem); --travel: 20%; --travel-scale: 0.2; margin-top: 0.8rem; }
.pointer-position { position: absolute; inset: 0; transform: translateX(var(--travel)); transition: transform 550ms var(--ease); }
.motion-pointer { width: 6rem; height: 7.2rem; overflow: visible; }
.motion-pointer path { fill: var(--orchid); stroke: var(--orchid-ink); stroke-width: 2; stroke-linejoin: round; }
.pointer-trace { position: absolute; top: 4rem; left: 0; width: 100%; height: 2px; background: var(--ink); opacity: 0.35; transform: scaleX(var(--travel-scale)); transform-origin: left; transition: transform 550ms var(--ease); }
.pointer-trace::before { content: ""; width: 0.7rem; height: 0.7rem; position: absolute; top: -0.3rem; left: 0; background: var(--ink); border-radius: 50%; }
.field-caption { font: 650 clamp(1.1rem, 1.8vw, 1.6rem)/1.2 var(--display); letter-spacing: -0.03em; }
.play-button { border: 0; background: none; padding: 0.7rem 0; min-height: 2.75rem; cursor: pointer; font-size: 1rem; margin-top: 0.65rem; }
.pointer-play .note-small { font-size: 0.8rem; }
.pointer-settings { grid-column: 1; grid-row: 2; }
.pointer-settings .controls { margin-top: 1rem; }
.pointer-settings input[type="range"], .pointer-settings input[type="checkbox"] { accent-color: var(--ink); color-scheme: light dark; }
.pointer-explanation { grid-column: 2; grid-row: 2; padding-top: 1.2rem; }
.pointer-explanation > p { max-width: 47ch; font-size: 1rem; }
.confirm { padding: 1.1rem 1.2rem; background: var(--green); color: var(--brand-ink); }
.confirm p { margin: 0 0 1rem; font-size: 1rem; }
.confirm .row { display: flex; gap: 0.6rem; }
.confirm .btn { flex: 1; min-height: 2.7rem; padding: 0.6rem; }
.meter { height: 3px; margin-top: 1rem; background: #93b962; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brand-ink); transform-origin: left; }
.meter span.run { animation: drain 5s linear forwards; }
.pointer-status { min-height: 1.6em; font-size: 0.95rem; margin: 0.7rem 0 0; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.features-scene { border-top: 1px solid var(--line); }
.features-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.features-layout h2 { font-size: clamp(2.3rem, 4.3vw, 4.4rem); }
.feature-list { margin: 0; }
.feature-list > div { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.feature-list > div:first-child { padding-top: 0; border: 0; }
.feature-list dt { font-weight: 700; font-size: 1.2rem; line-height: 1.25; margin-bottom: 0.5rem; }
.feature-list dt a { display: flex; justify-content: space-between; gap: 1rem; text-decoration: none; }
.feature-list dt a:hover { text-decoration: underline; }
.feature-list dd { margin: 0; color: var(--muted); font-size: 1rem; max-width: 54ch; }
.privacy-scene { background: var(--brand-ink); color: #edf5e3; }
@media (prefers-color-scheme: dark) { .privacy-scene { background: #131811; } }
.privacy-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.65fr); gap: clamp(3rem, 8vw, 10rem); align-items: start; }
.privacy-layout h2 { color: var(--green); margin-bottom: 1.7rem; }
.privacy-layout p { max-width: 53ch; }
.privacy-lede { font-size: 1.35rem; }
.privacy-layout .text-link { margin-top: 0.8rem; color: var(--green); }
.future { padding-top: 1rem; }
.future h3 { font-family: var(--display); font-weight: 650; color: var(--orchid); font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 0.8rem; }
.future > p { font-size: 0.93rem; }
.roadmap { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.roadmap li { padding: 0.55rem 0; font-size: 1rem; border-bottom: 1px solid #48583a; }
.source-scene { background: var(--green); color: var(--brand-ink); }
.source-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 7rem); }
.source-scene .note-small { color: var(--brand-muted); }
.build-instructions { min-width: 0; padding-top: 0.3rem; }
.build-instructions h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.build-instructions h3:not(:first-child) { margin-top: 2.2rem; }
.build-instructions p { font-size: 1rem; max-width: 57ch; }
.cmd { position: relative; background: var(--brand-ink); color: #edf5e3; margin: 1.5rem 0; }
.cmd pre { overflow-x: auto; padding: 1.2rem 1.25rem 3rem; margin: 0; }
.cmd pre code { font-size: 1em; }
.copy { position: absolute; bottom: 0.45rem; right: 0.6rem; background: none; color: var(--green); border: 0; border-bottom: 1px solid currentColor; font-size: 0.85rem; padding: 0.45rem 0.6rem; min-height: 2.5rem; cursor: pointer; }
.copy:hover { color: #fff; }
.source-details { margin-top: 1.6rem; border-top: 1px solid #97ba66; padding-top: 0.4rem; }
.source-details > p { margin-top: 0.8rem; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; padding: 2rem var(--gutter); background: var(--paper); color: var(--ink); }
.site-footer > p { font-size: 0.9rem; margin: 0 auto 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; font-size: 0.86rem; }
.site-footer nav a { min-height: 2.75rem; display: inline-flex; align-items: center; }

/* The same identity, turned down for reading. */
.guide { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 7vw, 6rem) var(--gutter); max-width: 1400px; margin-inline: auto; }
.toc { align-self: start; position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; }
.toc h2 { font: 700 1.05rem/1.3 var(--text); letter-spacing: 0; margin-bottom: 1rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc ol ol { padding-left: 1rem; }
.toc a { display: block; width: fit-content; font-size: 0.94rem; padding: 0.37rem 0; color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.toc ol ol a { font-size: 0.85rem; }
.doc { min-width: 0; max-width: 50rem; }
.doc-head h1 { font-size: clamp(2.8rem, 5vw, 5rem); margin-bottom: 1.5rem; }
.doc-head .lede { color: var(--muted); font-size: 1.25rem; max-width: 55ch; }
.doc section { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.doc section > h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); margin-bottom: 1.3rem; font-stretch: 100%; font-weight: 650; }
.doc h3 { margin: 2rem 0 0.8rem; }
.doc h3[id] { scroll-margin-top: 1.5rem; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 1.5rem; margin: 0 0 1.3rem; }
.doc li { margin-bottom: 0.5rem; }
.doc pre { padding: 1rem 1.2rem; background: var(--paper-soft); overflow-x: auto; margin: 1rem 0 1.4rem; }
.doc pre code { font-size: 1em; }
.doc :not(pre) > code { background: var(--paper-soft); padding: 0.13em 0.25em; }
.doc table { border-collapse: collapse; width: 100%; font-size: 1rem; margin: 0 0 1.5rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.8rem 0.8rem 0.8rem 0; border-bottom: 1px solid var(--line); }
.doc thead th { font-size: 0.88rem; color: var(--muted); }
.doc tbody th { width: 29%; font-size: 0.98rem; }
.callout-note { padding: 1.4rem; margin: 1.5rem 0; background: var(--paper-soft); }
.callout-note p:last-child { margin-bottom: 0; }
.callout-note pre { padding: 0.5rem 0 0; margin-bottom: 0; }
.ui { font-weight: 700; }
.lost { min-height: 65vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr); align-items: center; gap: 2rem; padding: clamp(4rem, 9vw, 8rem) var(--gutter); color: var(--brand-ink); background: var(--green); }
.lost h1 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 1.5rem; }
.lost .lede { max-width: 44ch; }
.lost .cta { margin-top: 2rem; }
.lost-arrow { width: 100%; max-width: 23rem; transform: rotate(12deg); fill: var(--orchid); stroke: var(--orchid-ink); stroke-width: 2; stroke-linejoin: round; justify-self: center; }

@media (min-width: 1200px) { .features-layout > .scene-copy { position: sticky; top: 3rem; } }
@media (max-width: 1050px) {
  .site-nav { gap: 0.7rem 1.3rem; }
  .nav-purpose { max-width: 19ch; font-size: 0.78rem; }
  .stage { column-gap: 1rem; }
  .hero-copy h1 { font-size: clamp(3rem, 5.6vw, 4.1rem); }
  .object-stage { min-height: 36rem; }
  .mouse-object { top: 1rem; left: -2%; width: 100%; }
  .action-result { right: 0; bottom: 1rem; width: min(95%, 20rem); }
  .parts { gap: 0.2rem 0.85rem; }
}
@media (max-width: 800px) {
  .site-nav { gap: 0.5rem 1rem; padding-block: 1rem; }
  .site-nav .brand { margin-right: auto; }
  .nav-purpose { flex-basis: 100%; max-width: none; order: 2; margin-top: 0.2rem; }
  .site-nav .nav-build { display: none; }
  .stage { grid-template-columns: minmax(0, 1fr); padding-top: 2rem; row-gap: 1.75rem; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-copy h1 { font-size: clamp(3rem, 9.5vw, 5.4rem); font-stretch: 108%; }
  .hero-copy .lede { max-width: 42ch; }
  .object-stage { grid-column: 1; grid-row: 2; min-height: 33rem; width: min(100%, 36rem); justify-self: center; }
  .mouse-object { width: 83%; left: 1%; top: -1rem; max-height: 31rem; }
  .action-result { right: 0.75rem; bottom: 0; width: min(78%, 21rem); }
  .maps .act { font-size: 2rem; }
  .demo-console { grid-column: 1; grid-row: 3; max-width: none; }
  .hero-facts { grid-row: 4; gap: 0.6rem 1.2rem; }
  .scroll-layout, .pointer-layout, .features-layout, .privacy-layout, .source-layout { grid-template-columns: minmax(0, 1fr); }
  .scene-copy > p { max-width: 52ch; }
  .controls { max-width: none; }
  .scroll-play { padding-top: 0; }
  .page-window { max-width: 36rem; margin-inline: auto; }
  .page-window li { font-size: clamp(1.45rem, 5vw, 2.4rem); }
  .pointer-layout { gap: 1.5rem; }
  .pointer-layout > .scene-copy { grid-column: 1; grid-row: 1; }
  .pointer-play { grid-column: 1; grid-row: 2; }
  .pointer-settings { grid-column: 1; grid-row: 3; }
  .pointer-explanation { grid-column: 1; grid-row: 4; padding-top: 0; }
  .pointer-field { height: 18rem; }
  .feature-list { margin-top: 1rem; }
  .future { padding-top: 0; }
  .guide { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
  .toc > ol { columns: 2; column-gap: 2rem; }
  .toc > ol > li { break-inside: avoid; }
  .doc-head h1 { max-width: 16ch; }
  .lost { grid-template-columns: minmax(0, 1fr); }
  .lost-arrow { max-width: 12rem; margin-top: 1rem; }
}
@media (max-width: 430px) {
  .brand { font-size: 1.2rem; }
  .brand img { width: 30px; height: 30px; }
  .site-nav > a:not(.brand) { font-size: 0.84rem; }
  .hero-copy h1 { font-size: clamp(2.35rem, 10.9vw, 3rem); font-stretch: 100%; }
  .hero-copy .lede { font-size: 1.1rem; }
  .cta { gap: 0.9rem 1rem; }
  .cta .btn { padding-inline: 1rem; font-size: 0.94rem; }
  .cta .text-link { font-size: 0.94rem; }
  .release-note { max-width: 31ch; }
  .object-stage { min-height: 30rem; margin-top: 0.5rem; }
  .mouse-object { width: 98%; left: -4%; top: -1rem; }
  .action-result { bottom: 0; right: 0.25rem; width: 84%; padding: 1rem 1.2rem 0.8rem; }
  .maps .act { font-size: 1.75rem; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; }
  .parts { gap: 0.15rem 1rem; }
  .hero-facts a { width: 100%; margin: 0.4rem 0 0; }
  .page-window { box-shadow: 7px 10px 0 #b18ccb; height: 20rem; }
  .page-window li { height: 4rem; font-size: 1.5rem; }
  .wheel-actions { gap: 0.8rem; }
  .readout { font-size: 0.8rem; }
  h2 { font-size: 2.4rem; }
  .features-layout h2 { font-size: 2.25rem; }
  .toc > ol { column-gap: 1.2rem; }
  .doc { font-size: 1.05rem; }
  .doc th, .doc td { padding-right: 0.6rem; overflow-wrap: anywhere; }
  .doc tbody th { width: 33%; font-size: 0.9rem; }
  .doc table { font-size: 0.95rem; }
  .callout-note { padding: 1rem; }
  .source-scene code.nowrap { white-space: normal; }
}
@media (prefers-reduced-motion: no-preference) {
  .mouse-object { animation: arrive 950ms var(--ease) both; }
  .pointer-runway.playing .pointer-position { animation: pointer-flight 900ms var(--ease) both; }
  .pointer-runway.playing .pointer-trace { animation: trace-flight 900ms var(--ease) both; }
}
@keyframes arrive { from { transform: translateY(1.5rem) rotate(-10deg); } to { transform: translateY(0) rotate(-17deg); } }
@keyframes pointer-flight { from { transform: translateX(0); } to { transform: translateX(var(--travel)); } }
@keyframes trace-flight { from { transform: scaleX(0); } to { transform: scaleX(var(--travel-scale)); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .part { fill: Canvas; stroke: CanvasText; }
  .part.is-active { fill: Highlight; stroke: HighlightText; forced-color-adjust: none; }
  .seg button[aria-pressed="true"], .parts button[aria-pressed="true"] { outline: 2px solid Highlight; }
  .motion-pointer path { fill: Highlight; stroke: CanvasText; }
  .action-result, .page-window, .pointer-field, .confirm, .cmd { border: 1px solid CanvasText; box-shadow: none; }
}
@media print {
  .site-header, .skip-link, .toc, .demo-console, .controls, .copy, .site-footer nav, .wheel-actions, .play-button { display: none !important; }
  body, .scene, .playground { background: white; color: black; }
  .guide { display: block; }
  .doc { max-width: none; }
  .doc section { break-inside: avoid; }
}
