/* Turing landing in the house layout (Plank and Keyrate are the references): sticky nav with the name in the middle,
   a hero of loose command keycaps over her real screen tilted onto the desk, a silver band of halftone art and
   ruled cells, then plain sections and an engraved footer. One accent, silver; no gradients. */
:root {
  color-scheme: dark;
  --bg: #000; --bg2: #0e0e0e; --fg: #f2f2f2; --muted: #9a9a9a; --line: #262626;
  --accent: #d3d6db; --on-accent: #111; --ember: #c4c8cf; --ember-ink: #d3d6db; --btn: #d3d6db;
  --card-bg: #0d0d0d; --tk-k: #f0f1f3; --tk-s: #b8bdc6; --tk-n: #9097a3; --tk-c: #a0a0a0;
  --band: #2a2c31; --band-sub: #d9dce1; --band-art: #a9aeb6; --band-line: rgba(255, 255, 255, .22);
  --ring: color-mix(in srgb, var(--accent) 45%, transparent);
  --r-sm: 6px; --r-md: 10px; --r-pill: 999px; --r-sq: 4px;
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 40px; --s-5: 64px; --s-6: 96px;
  --wrapw: 1120px;
  --font: "Samantha Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff; --bg2: #f4f5f6; --fg: #151515; --muted: #5f6368; --line: #e3e5e8;
  --accent: #3a3d44; --on-accent: #fff; --ember: #6b7079; --ember-ink: #3a3d44; --btn: #2a2c31;
  --card-bg: #fafafa; --tk-k: #1c1d20; --tk-s: #4a4f58; --tk-n: #6b7079; --tk-c: #6b6b6b;
  --band: #5b5f67; --band-sub: #eceef0; --band-art: #c4c8cf;
}
@font-face { font-family: "Samantha Sans"; src: url(fonts/SamanthaSans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Samantha Sans"; src: url(fonts/SamanthaSans-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Samantha Sans"; src: url(fonts/SamanthaSans-Semibold.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ember-ink); }
::selection { background: var(--ember); color: var(--on-accent); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 600; text-decoration: none; }
.skip:focus { left: 8px; }
.inner { max-width: var(--wrapw); margin: 0 auto; padding: 0 var(--s-3); }
.center { text-align: center; }
.label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s-2); }
.label a { text-decoration: none; }
h2 { font-size: clamp(40px, 6vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -.035em; }
h3 { font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.body { color: var(--muted); max-width: 560px; margin: var(--s-3) auto 0; }
.wrap.roll { animation: roll 1.1s ease-in-out; }
@keyframes roll { to { transform: rotate(360deg); } }
section.lit { animation: lit 1.6s ease-out; }
@keyframes lit { 0%, 60% { outline: 3px solid var(--fg); outline-offset: 8px; } 100% { outline: 3px solid transparent; outline-offset: 8px; } }

/* buttons: square-ish, one solid silver, one ghost */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: var(--r-sq); border: 1px solid transparent;
       font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.btn-solid { background: var(--btn); color: var(--on-accent); }
.btn-solid:hover { background: color-mix(in srgb, var(--btn) 84%, var(--fg)); color: var(--on-accent); }
.btn-ghost { background: var(--bg2); color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); }
.btn[hidden] { display: none; }
.btn:focus-visible, .nav a:focus-visible, .theme-btn:focus-visible, .foot-cols a:focus-visible, .hero-sound:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* nav: links left, name in the middle, GitHub, theme and Download right */
.nav { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-3); height: 60px; padding: 0 var(--s-3);
       background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.nav-links { display: flex; gap: var(--s-3); font-size: 15px; font-weight: 500; }
.nav-links a, .nav-get { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav-links a:hover, .nav-get:hover { color: var(--fg); }
.nav-brand { grid-column: 2; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; text-decoration: none; color: var(--fg); }
.nav-brand img { width: 28px; height: 28px; border-radius: 50%; }
.nav-end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: var(--s-2); font-size: 15px; font-weight: 500; }
.nav-end .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.theme-btn:hover { border-color: var(--muted); }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }
@media (min-width: 900px) { body::after { content: ""; position: fixed; inset: 0; border-inline: 4px solid var(--btn); pointer-events: none; z-index: 50; } }

/* hero: label, the giant line, two buttons, the live readout; keycaps drift around it and her real screen lies
   tilted on the desk below, flattening as you scroll (hero.js) */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center;
        padding: clamp(64px, 11vh, 128px) 0 0; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 0 var(--s-3); will-change: transform, opacity; }
.hero h1 { font-size: clamp(52px, 8.4vw, 120px); line-height: .98; font-weight: 700; letter-spacing: -.045em; max-width: 11em; }
.hero .sub { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--muted); max-width: 580px; margin-top: var(--s-3); min-height: 3em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: var(--s-4); }
.readout { margin: var(--s-3) 0 0; display: flex; align-items: center; justify-content: center; gap: 12px; max-width: min(92vw, 640px); min-height: 30px;
           font: 15px/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
.readout .cmd { flex: none; padding: 4px 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.readout .said { overflow: hidden; text-overflow: ellipsis; }
.readout .said::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.18em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ground { position: relative; z-index: 1; width: 100%; display: flex; justify-content: center; margin-top: clamp(40px, 7vh, 72px); padding: 0 var(--s-2); perspective: 1600px; }
.screen { width: min(1080px, 100%); transform-origin: 50% 0; transform: rotateX(var(--tilt, 24deg)) scale(var(--grow, .94)); will-change: transform;
          border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); overflow: hidden;
          box-shadow: 0 14px 0 -6px var(--line), 0 50px 90px -40px rgba(0, 0, 0, .55); }
.screen-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); font: 600 12px/1 var(--font); color: var(--muted); }
.screen-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.screen-bar b { margin-left: 8px; font-weight: 600; }
.screen-bar .hero-sound { margin-left: auto; }
.screen video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; background: #000; }
.hero-sound { min-height: 26px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: 500 12px/1 var(--font); cursor: pointer; }
.hero-sound:hover { border-color: var(--fg); }

.sky { position: absolute; inset: 0 0 30% 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky .layer { position: absolute; inset: 0; will-change: transform; }
.tok { position: absolute; display: grid; place-items: center; height: var(--s); min-width: var(--s); padding: 0 calc(var(--s) * .3);
       border-radius: calc(var(--s) * .24); background: var(--bg2); border: 1px solid var(--line); box-shadow: 0 calc(var(--s) * .07) 0 var(--line);
       font: 600 calc(var(--s) * .38)/1 var(--mono); color: var(--muted); white-space: nowrap; user-select: none; animation: drift ease-in-out infinite alternate; }
.tok.hot { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 calc(var(--s) * .07) 0 color-mix(in srgb, var(--accent) 45%, transparent); }
.sky .far .tok { filter: blur(.8px); }
@keyframes drift { from { transform: translateY(-10px) rotate(var(--r)); } to { transform: translateY(10px) rotate(calc(var(--r) + 6deg)); } }

/* the live demo, on the band over a halftone painting */
.try { padding: var(--s-6) 0 0; }
.try h2 { margin-bottom: var(--s-2); }
.try .try-line { color: var(--muted); max-width: 600px; margin: 0 auto; min-height: 3.2em; }
.stage { position: relative; overflow: hidden; margin: var(--s-4) clamp(0px, 3vw, 44px) 0; padding: clamp(20px, 6vw, 88px) clamp(12px, 7vw, 120px); background: var(--band); }
.art { position: relative; overflow: hidden; background: var(--band); }
.art::before { content: ""; position: absolute; inset: 0; background: var(--band-art); -webkit-mask: var(--img) center / cover no-repeat; mask: var(--img) center / cover no-repeat; }
.stage-art { position: absolute; inset: 0; }
.try-media { position: relative; max-width: 980px; margin: 0 auto; text-align: left; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--bg); box-shadow: 0 24px 64px rgba(0, 0, 0, .3); display: flex; flex-direction: column; }
.demo-hint { margin-top: var(--s-1); font-size: 13px; color: var(--muted); text-align: center; }

/* the band: ENIAC over the head, numbers, three feature rows with her real screenshots, ruled cells */
.band { margin: var(--s-6) clamp(0px, 3vw, 44px) 0; background: var(--band); color: #fff; overflow: hidden; }
.band .label { color: var(--band-sub); }
.band-art { aspect-ratio: 16 / 9; max-height: 70vh; width: 100%; }
.band-copy { text-align: center; padding: var(--s-5) var(--s-3) var(--s-5); }
.band-copy h2 { font-size: clamp(48px, 8vw, 124px); line-height: .95; }
.band-copy p:last-child { margin: var(--s-3) auto 0; max-width: 500px; color: var(--band-sub); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--band-line); }
.fact { padding: var(--s-4) var(--s-3); border-right: 1px solid var(--band-line); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-size: clamp(34px, 3.4vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: var(--s-1); color: var(--band-sub); font-size: 15px; line-height: 22px; }
.frows { border-top: 1px solid var(--band-line); }
.frow { display: grid; grid-template-columns: 1fr 1fr; align-items: center; border-bottom: 1px solid var(--band-line); }
.frow figure { margin: 0; padding: clamp(16px, 3vw, 40px); }
.chatcard { background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); font-size: 15px; }
.chatcard .you { margin-left: auto; width: fit-content; max-width: 85%; background: var(--bg2); border-radius: 16px; padding: 8px 14px; }
.chatcard pre { margin: 16px 0 8px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font: 14px/1.6 var(--mono); white-space: pre-wrap; }
.chatcard .lang { display: block; font: 12px var(--font); color: color-mix(in srgb, currentColor 62%, transparent); margin-bottom: 8px; }
.chatcard b { color: var(--tk-k); font-weight: 600; }
.chatcard .by { font-size: 12px; color: color-mix(in srgb, currentColor 62%, transparent); }
.frow img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.frow:nth-child(even) figure { order: 2; }
.frow > div { padding: var(--s-4) clamp(24px, 6vw, 88px); max-width: 560px; }
.frow h3 { font-size: clamp(30px, 3vw, 46px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.frow p:last-child { margin-top: var(--s-2); color: var(--band-sub); }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); }
.cell { padding: var(--s-4) var(--s-4) var(--s-5); border-right: 1px solid var(--band-line); }
.cell:last-child { border-right: 0; }
.cell .label { margin-bottom: var(--s-3); }
.cell p:last-child { margin-top: 12px; color: var(--band-sub); font-size: 15px; line-height: 22px; }

/* plain sections */
.sec { padding: var(--s-6) 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin-top: var(--s-5); text-align: left; }
.step { border-top: 2px solid var(--accent); padding-top: 12px; }
.step b { display: block; font-size: 17px; }
.step > span { display: block; margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--muted); }
.plats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-5); text-align: left; }
.plat { display: flex; flex-direction: column; gap: 10px; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-sq); background: var(--bg2); min-width: 0; }
.plat b { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.plat p { color: var(--muted); font-size: 15px; line-height: 22px; }
.plat pre { margin: auto 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sq); background: var(--bg); font: 12.5px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.plat .btn { align-self: flex-start; margin-top: auto; }
.faq { max-width: 720px; margin: var(--s-4) auto 0; text-align: left; border-top: 1px solid var(--line); }
details.more { border-bottom: 1px solid var(--line); }
details.more > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); min-height: 60px; font-size: 18px; font-weight: 600; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 400; transition: transform .2s; }
details.more[open] > summary::after { transform: rotate(45deg); }
details.more p { color: var(--muted); padding: 0 0 var(--s-3); max-width: 62ch; }

/* footer: brand and link columns, the engraved plate, one fine line */
footer { border-top: 1px solid var(--line); padding: var(--s-5) 0 var(--s-3); overflow: hidden; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); }
.foot-brand { display: grid; gap: 8px; align-content: start; }
.foot-brand img { width: 44px; height: 44px; border-radius: 50%; }
.foot-brand b { font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.foot-brand p { color: var(--muted); font-size: 15px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.foot-cols div { display: grid; gap: 4px; align-content: start; }
.foot-cols .label { margin-bottom: 4px; }
.foot-cols a { display: flex; align-items: center; min-height: 40px; color: var(--fg); text-decoration: none; font-size: 15px; }
.foot-cols a:hover { color: var(--accent); }
.foot-scene { display: block; width: 100%; height: clamp(180px, 24vw, 300px); margin-top: var(--s-4); --scene-paper: var(--bg); --scene-ink: var(--accent); }
.legal { margin-top: var(--s-2); text-align: center; font-size: 13px; color: var(--muted); }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* the stand-in Mac and the chat (demo.js draws into these) */
#demo-full { display: block; margin: 0 0 8px auto; min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 3px; }
#demo-full:hover { color: var(--fg); }
html.noscroll { overflow: hidden; }
.card.full { position: fixed; inset: 0; z-index: 60; max-width: none; margin: 0; border-radius: 0; overflow: auto; background: var(--bg); padding: 16px max(16px, calc((100vw - 760px) / 2)); }
.card.full .desk-space { height: min(56vh, 600px); }
.card.full canvas { max-height: 52vh; }
#chat-status { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
#chat-transcript { flex: 1; overflow-y: auto; min-height: 96px; max-height: 340px; margin-bottom: 12px; font-size: 15px; line-height: 1.5; padding-right: 8px; }
.composer { display: flex; gap: 8px; }
#chat-input { flex: 1; min-width: 0; min-height: 46px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 16px; background: var(--bg); color: var(--fg); }
#chat-input:focus { outline: 2px solid var(--ember); outline-offset: 1px; }
#chat-send { min-height: 46px; padding: 0 22px; border: 0; border-radius: var(--r-pill); background: var(--btn); color: var(--on-accent); font-size: 15px; font-weight: 600; cursor: pointer; }
#chat-send:hover { background: color-mix(in srgb, var(--btn) 84%, var(--fg)); }
#chat-send:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
canvas { display: block; }
.chat-tool-call { font-variant-numeric: tabular-nums; font-weight: 500; font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
.chat-message { margin: 8px 0; }
.chat-message-content { color: var(--fg); }
.chat-logo { margin: 8px 0; text-align: center; }
.chat-logo svg { width: 160px; height: 160px; }
.chat-user { padding: 8px 12px; background: var(--line); border-radius: 6px; }
.chat-source { font-size: 12px; color: var(--muted); margin-top: 4px; }
.chat-code { position: relative; margin: 8px 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.chat-code pre { margin: 0; padding: 12px 64px 12px 12px; font: 13px/1.5 var(--mono); white-space: pre; overflow-x: auto; }
.chat-copy { position: absolute; top: 6px; right: 6px; min-height: 28px; padding: 0 10px; font-size: 12px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.chat-copy:hover, .chat-copy:focus-visible { color: var(--fg); }
.tk-k { color: var(--tk-k); } .tk-s { color: var(--tk-s); } .tk-n { color: var(--tk-n); } .tk-c { color: var(--tk-c); }
.desk { --desk: #151515; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 12px; background: var(--desk); }
:root[data-theme="light"] .desk { --desk: #eceef0; }
.desk-bar { display: flex; gap: 12px; align-items: center; font-size: 12px; padding: 5px 10px; border-bottom: 1px solid var(--line); color: var(--fg); white-space: nowrap; overflow: hidden; }
.desk-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.desk-vol-track { width: 44px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
#desk-vol-fill { display: block; height: 100%; width: 50%; background: var(--fg); transition: width .2s; }
.desk-space { position: relative; height: 260px; overflow: hidden; display: flex; flex-direction: column; }
.desk-space canvas { flex: 0 1 auto; width: auto; height: auto; max-width: 100%; max-height: 420px; margin: 0 auto; display: none; }
.desk-space.painting { height: auto; min-height: 260px; padding-bottom: 10px; }
.desk-space.painting canvas { display: block; }
.desk-paint-info { display: none; font-size: 12px; color: var(--muted); text-align: center; padding: 4px 0; order: -1; }
.desk-space.painting .desk-paint-info { display: block; }
.desk-space.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: flash .35s ease-out forwards; pointer-events: none; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.desk-file { position: absolute; right: 10px; bottom: 8px; font-size: 12px; color: var(--muted); }
.win { position: absolute; width: min(290px, 76%); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); font-size: 12px; animation: pop .16s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.win-dots { display: flex; gap: 4px; }
.win-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.win-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-body { padding: 8px 10px; min-height: 52px; max-height: 118px; overflow: auto; }
.win.browser { width: min(440px, 94%); }
.win.browser .win-body { max-height: none; padding: 6px 8px; }
.win-frame { display: block; width: 100%; height: 210px; border: 0; border-radius: 6px; background: #fff; margin-bottom: 4px; }
.win-note { color: var(--muted); margin: 4px 0 6px; }
.win-body svg { display: block; width: 72px; height: 72px; margin: 0 auto; }
.win-row { padding: 2px 0; white-space: pre-line; }
.win-empty { color: var(--muted); }
.win-url { border: 1px solid var(--line); border-radius: 10px; padding: 2px 8px; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.paint-pick { flex: 0 0 56px; width: 56px; height: 56px; padding: 0; border: 2px solid var(--line); border-radius: var(--r-sm); background: none; cursor: pointer; overflow: hidden; }
.paint-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.paint-pick[aria-pressed=true] { border-color: var(--ember); }
.paint-btn { display: block; width: 100%; margin: 0 0 8px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--card-bg); color: var(--fg); font-size: 13px; cursor: pointer; text-align: center; }
.paint-btn:hover { border-color: var(--ember); }

@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--band-line); }
  .frow { grid-template-columns: 1fr; }
  .frow:nth-child(even) figure { order: 0; }
  .frow > div { padding: 0 var(--s-3) var(--s-4); }
  .cells { grid-template-columns: 1fr; }
  .cell { border-right: 0; border-bottom: 1px solid var(--band-line); padding: var(--s-3); }
  .cell:last-child { border-bottom: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { grid-template-columns: auto 1fr; padding: 0 var(--s-2); }
  .nav-links, .nav-get { display: none; }
  .nav-brand { grid-column: 1; }
  .nav-end { grid-column: 2; }
  .inner { padding: 0 var(--s-2); }
  .hero { padding-top: var(--s-5); }
  .hero .cta .btn { flex: 1 1 auto; }
  .readout { font-size: 13px; }
  .ground { padding: 0 8px; }
  .screen { border-radius: 10px; }
  .screen-bar b { display: none; }
  .stage { padding: 16px 8px; }
  .card { padding: 12px; }
  .desk-space { height: 220px; }
  .foot-cols { gap: var(--s-4); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tok, .readout .said::after, .win, .wrap.roll { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .screen { transform: none; }
}

/* page effects (demo.js FX): filters go on .wrap; scanlines, grain, dots and a vignette sit in one overlay */
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.fx-layer { position: fixed; inset: 0; z-index: 55; pointer-events: none; }
.fx-layer > i { position: absolute; inset: 0; display: none; }
.fx-scan > .s { display: block; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='3'%3E%3Crect width='4' height='1' fill='black' fill-opacity='.5'/%3E%3C/svg%3E"); }
.fx-dots > .d { display: block; mix-blend-mode: multiply; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Ccircle cx='3' cy='3' r='1.7' fill='black' fill-opacity='.55'/%3E%3C/svg%3E"); }
.fx-grain > .g { display: block; inset: -50%; opacity: .5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .5 0 0 0 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: fx-grain .5s steps(4) infinite; }
.fx-vig > .v { display: block; box-shadow: inset 0 0 22vmax rgba(0, 0, 0, .85); }
.fx-glitch > .s { display: block; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='7'%3E%3Crect width='4' height='2' fill='white' fill-opacity='.06'/%3E%3C/svg%3E"); }
.fx-flicker { animation: fx-flicker .12s steps(2) infinite; }
.wrap.fx-wobble { animation: fx-wobble 2.6s steps(1) infinite; }
@keyframes fx-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-7%, 4%); } 50% { transform: translate(5%, -6%); } 75% { transform: translate(-3%, -2%); } }
@keyframes fx-flicker { 50% { opacity: .9; } }
@keyframes fx-wobble { 0%, 18%, 22%, 63%, 67%, 100% { transform: none; } 20% { transform: translate(-6px, 1px) skewX(-1.5deg); } 65% { transform: translate(5px, -1px) skewX(1deg); } }
@media (prefers-reduced-motion: reduce) { .fx-grain > .g, .fx-flicker, .wrap.fx-wobble { animation: none; } }

/* ordered dither that works in every engine: a 4x4 Bayer tile (values .25 to .75) hard-light blended inside .wrap, then
   .wrap goes grayscale and very high contrast, so each pixel lands on black or white by its own threshold */
.wrap.fx-dither { position: relative; }
.fx-bayer { position: absolute; inset: 0; z-index: 70; pointer-events: none; mix-blend-mode: hard-light; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect x='0' y='0' width='2' height='2' fill='%23444444'/%3E%3Crect x='2' y='0' width='2' height='2' fill='%23838383'/%3E%3Crect x='4' y='0' width='2' height='2' fill='%23545454'/%3E%3Crect x='6' y='0' width='2' height='2' fill='%23939393'/%3E%3Crect x='0' y='2' width='2' height='2' fill='%23a3a3a3'/%3E%3Crect x='2' y='2' width='2' height='2' fill='%23646464'/%3E%3Crect x='4' y='2' width='2' height='2' fill='%23b3b3b3'/%3E%3Crect x='6' y='2' width='2' height='2' fill='%23747474'/%3E%3Crect x='0' y='4' width='2' height='2' fill='%235c5c5c'/%3E%3Crect x='2' y='4' width='2' height='2' fill='%239b9b9b'/%3E%3Crect x='4' y='4' width='2' height='2' fill='%234c4c4c'/%3E%3Crect x='6' y='4' width='2' height='2' fill='%238b8b8b'/%3E%3Crect x='0' y='6' width='2' height='2' fill='%23bbbbbb'/%3E%3Crect x='2' y='6' width='2' height='2' fill='%237c7c7c'/%3E%3Crect x='4' y='6' width='2' height='2' fill='%23ababab'/%3E%3Crect x='6' y='6' width='2' height='2' fill='%236c6c6c'/%3E%3C/svg%3E"); }
