/* Home page: dark, responsive. Colors, borders and radii match css/builder.css, so moving on to the
   builder feels like the same site. No color-scheme is declared here: the demo frames hold overlay.html,
   which declares none either, and a frame only stays transparent when both agree. */
:root {
  --bg: #0d0e12;
  --panel: #15171d;
  --field: #0f1116;
  --border: #272b36;
  --border-strong: #3a3f4d;
  --text: #e9eaf0;
  --body: #c9ccd6;
  --muted: #9ba1b0;
  --accent: #9147ff;
  --accent-hi: #a970ff;
  --focus: #c3a1ff;
  --warn: #f3bd4f;
  --check-a: #12141a;
  --check-b: #1a1d25;
  --sky: #141a3a;
  --ridge: #1d2656;
  --ground: #092b25;
  --radius: 12px;
  --radius-sm: 8px;
  --font-ui: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;
  --gutter: clamp(16px, 5.5vw, 80px);
  --wrap: 1280px;
  --pad: clamp(56px, 6vw, 80px);
  --frame: rgba(255, 255, 255, .35);
  --shadow: drop-shadow(0 0 1px rgba(0, 0, 0, .9)) drop-shadow(1px 2px 2px rgba(0, 0, 0, .75));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-hi); }
a:hover { color: var(--focus); }
code { font-family: var(--mono); font-size: .9em; color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[id] { scroll-margin-top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 10;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--pad); padding-bottom: var(--pad); border-top: 1px solid var(--border); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }

/* ---------- type ---------- */
.eyebrow { font: 13px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1, h2, .big {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; color: #fff;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 5.2vw, 72px); line-height: .98; }
h2 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.03; }
h2.minor { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.08; letter-spacing: -.025em; }
.big { font-size: min(24vw, clamp(92px, 11vw, 150px)); line-height: .92; letter-spacing: -.04em; }
.copy { font-size: clamp(17px, 1.3vw, 18px); line-height: 1.6; color: var(--body); text-wrap: pretty; }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--text); text-wrap: pretty; max-width: 520px; }
.note { font: 13px/1.55 var(--mono); color: var(--muted); text-wrap: pretty; }
.tag { font: 12px/16px var(--mono); color: var(--text); }

/* The prompt that opens a section, set like the overlay's reply header. */
.ask { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.4; color: var(--muted); }
.ask svg { flex: none; width: 1em; height: 1em; }
.ask b { font-weight: 800; }
.ask + h2 { margin-top: 18px; }
h2 + .copy { margin-top: 22px; }
.copy + .copy { margin-top: 14px; }

/* ---------- buttons and links ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap;
}
.cta:hover { background: #7d37f0; color: #fff; }
.cta svg { flex: none; width: 16px; height: 16px; }
.cta.small { min-height: 44px; padding: 0 14px; border-radius: var(--radius-sm); font-size: 14px; }
.plain { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- nav ---------- */
.nav { border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; }
.brand:hover { color: #fff; }
.mark { flex: none; width: 14px; height: 14px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a:not(.cta), .foot nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none;
}
.nav nav a:not(.cta):hover, .foot nav a:hover { color: var(--text); }
.nav nav .cta { margin-left: 0; }
.nav nav a.sec { display: none; }

/* ---------- checkerboard, scene, source frame ---------- */
.checker {
  background-color: var(--check-a);
  background-image: repeating-conic-gradient(var(--check-b) 0% 25%, var(--check-a) 0% 50%);
  background-size: 48px 48px;
}
.scene { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: var(--sky); }
.scene i { position: absolute; display: block; }
.scene .ridge { left: 0; top: 0; right: 0; bottom: 0; background: var(--ridge); clip-path: polygon(0 58%, 10% 47%, 21% 55%, 35% 37%, 47% 51%, 59% 40%, 73% 54%, 87% 43%, 100% 50%, 100% 100%, 0 100%); }
.scene .ground { left: 0; right: 0; bottom: 0; height: 96px; background: var(--ground); }
.bit { position: absolute; width: 24px; height: 24px; background: var(--sky); }

.source { position: relative; outline: 1px dashed var(--frame); }
.source > .grip { position: absolute; width: 8px; height: 8px; background: #fff; }
.grip.a { left: -4px; top: -4px; }
.grip.b { left: calc(50% - 4px); top: -4px; }
.grip.c { right: -4px; top: -4px; }
.grip.d { left: -4px; top: calc(50% - 4px); }
.grip.e { right: -4px; top: calc(50% - 4px); }
.grip.f { left: -4px; bottom: -4px; }
.grip.g { left: calc(50% - 4px); bottom: -4px; }
.grip.h { right: -4px; bottom: -4px; }
.demo { display: block; border: 0; background: transparent; }
/* stops and starts a live demo (js/home.js); plain, so it does not compete with the one call to action */
.toggle {
  min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--text); font: 600 14px/1 var(--font-ui); white-space: nowrap; cursor: pointer;
}
.toggle:hover { border-color: var(--focus); }

/* ---------- static chat lines (values from css/overlay.css) ---------- */
.chat { font-family: var(--font-ui); font-weight: 600; color: #fff; line-height: 1.35; }
.ln { padding: .15em 0; overflow-wrap: anywhere; filter: var(--shadow); }
.ln b { font-weight: 800; }
.ln .sys { display: block; font-size: .85em; color: #e2d6ff; }
.ln .re { display: flex; align-items: center; gap: .3em; font-size: .75em; opacity: .7; white-space: nowrap; overflow: hidden; }
.ln .re svg { flex: none; width: 1em; height: 1em; }
.ln .re > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ln.me i { font-style: italic; }
.ln.hl { background-color: rgba(145, 70, 255, .35); border-radius: .3em; padding-left: .3em; padding-right: .3em; }
.ln.gone { display: inline-block; padding: .15em .4em; outline: 1px dashed rgba(255, 255, 255, .45); opacity: .55; }
.ln.boxed { display: inline-block; padding: .2em .4em; border-radius: .4em; background: rgba(0, 0, 0, .6); }
.s18 { font-size: 18px; }
.s22 { font-size: clamp(20px, 1.6vw, 22px); }
.s24 { font-size: 24px; }
.s32 { font-size: 32px; }
/* name colors: the big ones are for names at 19 px bold and up */
.u-streamer { color: #9146ff; }
.u-mod { color: #00ff7f; }
.u-lurker { color: #ff7f50; }
.u-viewer { color: #ff69b4; }
.u-raider { color: #daa520; }
.u-shiny { color: #f3bd4f; }
.ask .u-streamer { color: var(--accent-hi); }
.ask .u-painted { color: #57bee6; }
.paint-a, .paint-b { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.paint-a { background-image: linear-gradient(90deg, #57bee6, #c3a1ff 50%, #ff75e6); }
.paint-b { background-image: repeating-linear-gradient(115deg, #f3bd4f 0 14px, #ff7f50 14px 28px, #f3e9c6 28px 42px); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-copy { padding: 40px var(--gutter) 36px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-copy h1 { margin-top: 20px; }
.hero-copy .lede { margin-top: 22px; }
.hero-copy .cta { margin-top: 30px; align-self: stretch; }
.hero-copy .note { margin-top: 14px; }
.stage { position: relative; height: 624px; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stage .scene { clip-path: polygon(0 168px, 72px 168px, 72px 192px, 144px 192px, 144px 216px, 216px 216px, 216px 240px, 288px 240px, 288px 264px, 100% 264px, 100% 100%, 0 100%); }
.stage .scene .extra { display: none; }
.stage .bit.p1 { left: 24px; top: 120px; }
.stage .bit.p2 { left: 96px; top: 144px; }
.stage .bit.p3 { left: 240px; top: 192px; }
.stage .bit.p4 { left: 336px; top: 216px; }
.stage .bit.d { display: none; }
.stage .tag { position: absolute; left: 16px; top: 14px; white-space: nowrap; }
.stage .source { position: absolute; left: 16px; top: 40px; width: min(450px, calc(100% - 32px)); height: 560px; }
.stage .demo { width: 100%; height: 100%; }
.stage .where { display: none; }
.hero-foot { padding: 12px var(--gutter) 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.wide { display: none; }

/* ---------- proof ---------- */
.proof .big { margin-top: 14px; }
.facts { border-bottom: 1px solid var(--border); }
.facts > div { padding: 20px 0 22px; border-top: 1px solid var(--border); }
.facts h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.1vw, 28px); line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.facts p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ---------- ruled rows ---------- */
.rows { border-bottom: 1px solid var(--border); }
.rows > * { padding: 14px 0; border-top: 1px solid var(--border); font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.copy + .rows, .grid7 + .note { margin-top: 28px; }

/* ---------- emotes: which provider does what ---------- */
.table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.table th, .table td { padding: 14px 8px; border-top: 1px solid var(--border); text-align: center; vertical-align: middle; }
.table thead th { border-top: 0; padding: 20px 2px 16px; background: var(--panel); font: 500 13px/1.3 var(--mono); color: var(--text); }
.table thead th:first-child { width: 38%; }
.table tbody th { padding-left: 18px; text-align: left; font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--text); }
.table td { font-size: 13px; line-height: 1.3; color: var(--muted); }
.logo { display: block; width: 44px; height: 44px; margin: 0 auto 10px; object-fit: contain; }
.logo.inv { filter: invert(1); }
.table .logo { width: 40px; height: 40px; }
.yes { display: block; width: 20px; height: 20px; margin: 0 auto; color: #45d49a; }

/* ---------- badges and paints ---------- */
.names { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 18px 72px; }
.names .ln { padding: 0; font-weight: 800; font-size: clamp(60px, 7.2vw, 104px); line-height: 1.15; letter-spacing: -.02em; }
.grid7 { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--border); }
.grid7 li { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 0; border-top: 1px solid var(--border); }
.grid7 .logo { flex: none; width: 40px; height: 40px; margin: 0; }
.grid7 b { flex-grow: 1; font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--text); }
.grid7 code { font-size: 12px; line-height: 1.4; }

/* ---------- chat events ---------- */
.matrix { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.matrix > div { border-top: 1px solid var(--border); }
.matrix > div:first-child { border-top: 0; }
.matrix dt { padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--border); font: 12px/1.55 var(--mono); color: var(--muted); }
.matrix dd { padding: 10px 14px; }
.matrix .after { margin-top: 6px; font: 400 13px/1.5 var(--mono); color: var(--text); }

/* ---------- layouts ---------- */
.layouts { padding-bottom: 0; }
.minis { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.mini { position: relative; width: min(320px, 44vw); aspect-ratio: 16 / 9; border: 1px solid var(--border-strong); border-radius: 4px; }
.mini i { position: absolute; display: block; border: 1px dashed rgba(255, 255, 255, .6); background: rgba(145, 71, 255, .18); }
.mini .col { right: 3%; bottom: 5%; width: 23.44%; height: 64.8%; }
.mini .row { left: -1px; right: -1px; bottom: 5%; height: 9.26%; }
.minis figure { margin: 0; }
.minis figcaption { margin-top: 10px; font: 13px/1.5 var(--mono); color: var(--text); }
.minis figcaption span { display: block; color: var(--muted); }
.minis + .note { margin-top: 16px; }
.ticker-head { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.ticker { position: relative; max-width: 1920px; margin: 10px auto 0; height: 100px; overflow: hidden; background: var(--sky); border-top: 1px dashed var(--frame); border-bottom: 1px dashed var(--frame); }
.ticker .demo { position: absolute; right: 0; top: -1px; width: 1920px; height: 100px; }

/* ---------- look ---------- */
.look { border-top: 0; }
.ladder { position: relative; margin-top: 26px; }
.ladder > .tag { position: absolute; left: 0; top: -26px; }
.ladder .source > div { padding: 12px 16px 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ladder .source > div:first-of-type { border-top: 0; }
.ladder .tag span { color: var(--muted); }
.url { margin-top: 28px; padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--field); }
.url > div { padding: 10px 0; border-top: 1px solid var(--border); }
.url > div:first-child { border-top: 0; }
.url dt { font: 14px/1.4 var(--mono); color: var(--text); }
.url dt b { font-weight: 400; color: var(--accent-hi); }
.url dt i { font-style: normal; color: var(--warn); }
.url dd { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* ---------- security ---------- */
.security { padding-top: 0; }
.band { padding: 48px var(--gutter) 28px; }
.band .source { display: inline-block; max-width: 100%; padding: 10px 14px; }
.band .tag { position: absolute; left: 0; top: -24px; }
.band .chat { font-size: clamp(20px, 2.3vw, 32px); }
.security .split { padding-top: clamp(48px, 5vw, 72px); }
.security .note { margin-top: 20px; }
.guards { border-bottom: 1px solid var(--border); }
.guards > div { padding: 14px 0 16px; border-top: 1px solid var(--border); }
.guards dt { font-weight: 700; font-size: 16px; line-height: 1.45; color: var(--text); }
.guards dd { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

/* ---------- connects / limits ---------- */
.about .copy { font-size: 16px; margin-top: 14px; }
.about .plain { margin-top: 8px; font-size: 15px; }
.about .rows { margin-top: 18px; }
.about .rows span { display: block; font: 12px/1.9 var(--mono); color: var(--muted); }
.about .rows p { font-size: 15px; line-height: 1.55; color: var(--body); }

/* ---------- setup ---------- */
.obs { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); display: grid; gap: 12px; }
.obs .f { display: grid; gap: 6px; }
.obs .wh { display: flex; gap: 16px; }
.obs .l { font-size: 13px; line-height: 1.4; color: var(--muted); }
.obs .v { min-height: 36px; padding: 8px 12px; display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--field); font: 12px/1.5 var(--mono); color: var(--text); overflow-wrap: anywhere; }
.obs .wh .v { width: 96px; }
.obs .boxes { margin-top: 8px; padding-left: 6px; display: grid; gap: 16px; }
.obs .boxes li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; color: var(--text); text-wrap: pretty; }
.obs .boxes li::before { content: ""; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--muted); border-radius: 4px; box-shadow: 0 0 0 4px var(--panel), 0 0 0 6px var(--accent-hi); }
.obs .hint { font: 12px/1.5 var(--mono); color: var(--accent-hi); }
.obs + .note { margin-top: 12px; }
.steps { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--border); counter-reset: step; }
.steps li { position: relative; padding: 20px 0 20px 68px; border-top: 1px solid var(--border); counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 18px;
  font: 800 64px/.9 var(--font-display); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px #626a7e;
}
.steps h3 { font-weight: 700; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.3; color: #fff; text-wrap: balance; }
.steps p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ---------- closing ---------- */
.closing { position: relative; overflow: hidden; border-top: 1px solid var(--border); }
.closing .scene { clip-path: polygon(100% 120px, 312px 120px, 312px 144px, 240px 144px, 240px 168px, 168px 168px, 168px 192px, 96px 192px, 96px 216px, 0 216px, 0 100%, 100% 100%); }
.closing .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; }
.closing .source { padding: 8px 12px; align-self: flex-start; max-width: 100%; }
.closing .tag { position: absolute; left: 0; top: -24px; }
.closing .chat { font-size: clamp(30px, 3.4vw, 48px); }
.closing h2 { margin-top: 40px; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.05; }
.closing .cta { margin-top: 28px; }
.closing .note { margin-top: 16px; color: var(--text); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); }
.foot .wrap { padding-top: 28px; padding-bottom: 36px; display: grid; gap: 8px; }
.foot .brand { font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; }
.foot nav a { padding: 0 14px 0 0; }
.foot .note { font-size: 12px; max-width: 70ch; }

/* ---------- from tablet up ---------- */
@media (min-width: 720px) {
  .nav .wrap { min-height: 72px; gap: 16px; }
  .brand { gap: 12px; font-size: 17px; }
  .foot .brand { font-size: 15px; }
  .cta.small { padding: 0 18px; }
  .nav nav .cta { margin-left: 12px; }
  .hero-copy .cta { align-self: flex-start; }
  .closing .wrap { align-items: center; text-align: center; }
  .closing .source { align-self: center; padding: 14px 28px; }
  .closing .chat { white-space: nowrap; }
  .closing h2 { max-width: 760px; }
  .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); }
  .facts > div { padding: 28px 28px 30px; border-top: 0; }
  .facts > div:nth-child(odd) { border-right: 1px solid var(--border); }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .grid7 { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); }
  .grid7 li { display: block; min-height: 0; padding: 22px 18px 24px; border-top: 0; border-right: 1px solid var(--border); }
  .grid7 li:nth-child(4n), .grid7 li:last-child { border-right: 0; }
  .grid7 li:nth-child(n+5) { border-top: 1px solid var(--border); }
  .table .logo, .grid7 .logo { width: 44px; height: 44px; }
  .grid7 b { display: block; margin-top: 14px; font-size: 17px; }
  .grid7 code { display: block; margin-top: 6px; overflow-wrap: anywhere; }
  .matrix > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
  .matrix dt { padding: 18px 20px; border-bottom: 0; border-right: 1px solid var(--border); font-size: 13px; }
  .matrix dd { padding: 12px 20px; }
  .ladder .source > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; padding: 14px 24px; }
  .ladder .tag span { display: block; }
  .url { padding: 12px 20px; }
  .url > div { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: baseline; padding: 9px 0; }
  .url dd { margin-top: 0; }
  .guards > div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; padding: 15px 0; }
  .guards dd { margin-top: 0; }
  .about .rows > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .obs { padding: 24px; }
  .band { padding-top: 56px; padding-bottom: 40px; }
  .band .source { padding: 16px 24px; }
  .foot .wrap { grid-template-columns: auto 1fr; align-items: center; column-gap: 40px; padding-top: 32px; }
  .foot .note { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  .nav nav a.sec { display: flex; }
}

/* ---------- desktop ---------- */
@media (min-width: 1200px) {
  .split { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 80px; }
  .split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split.lead { grid-template-columns: minmax(0, 600px) minmax(0, 1fr); }
  .split.lead > :last-child { padding-top: 44px; }
  .split.offset > :last-child { padding-top: 44px; }
  .wide { display: inline; }

  .hero {
    grid-template-columns: minmax(0, 540px) minmax(0, 1fr); column-gap: 40px; align-items: center;
    padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  }
  .hero-copy { padding: 0; }
  .hero-copy h1 { margin-top: 24px; }
  .hero-copy .lede { margin-top: 28px; }
  .hero-copy .cta { margin-top: 36px; }
  .stage { height: 768px; margin-top: 40px; border: 0; border-radius: var(--radius) 0 0 var(--radius); box-shadow: 0 0 0 1px var(--border); }
  .stage .scene { clip-path: polygon(144px 0, 144px 96px, 168px 96px, 168px 192px, 192px 192px, 192px 288px, 216px 288px, 216px 384px, 240px 384px, 240px 480px, 264px 480px, 264px 576px, 288px 576px, 288px 672px, 312px 672px, 312px 768px, 100% 768px, 100% 0); }
  .stage .scene .ground { height: 120px; }
  .stage .bit.p { display: none; }
  .stage .bit.d { display: block; }
  .stage .bit.d1 { left: 96px; top: 24px; }
  .stage .bit.d2 { left: 120px; top: 72px; }
  .stage .bit.d3 { left: 144px; top: 144px; }
  .stage .bit.d4 { left: 144px; top: 240px; }
  .stage .bit.d5 { left: 168px; top: 336px; }
  .stage .bit.d6 { left: 216px; top: 456px; background: var(--ridge); }
  .stage .bit.d7 { left: 216px; top: 600px; background: var(--ridge); }
  .stage .bit.d8 { left: 264px; top: 696px; background: var(--ground); }
  .stage .tag { left: 72px; top: 18px; }
  .stage .source { left: 72px; top: 44px; width: 450px; height: 700px; }
  .stage .where { position: absolute; bottom: 5px; font: 12px/16px var(--mono); }
  .stage .where.l { display: block; left: 16px; color: var(--muted); }
  .stage .where.r { left: 560px; color: var(--text); }
  .hero-foot { grid-column: 2; padding: 12px var(--gutter) 28px 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .hero-foot .note { text-align: right; }

  /* the drawn scene beside the frame */
  .scene .moon { left: 634px; top: -36px; width: 112px; height: 112px; border-radius: 50%; background: #f3e9c6; }
  .scene .hp { left: 566px; top: 116px; width: 156px; height: 12px; border: 1.5px solid var(--text); border-radius: 3px; background: linear-gradient(90deg, #ff6b7a 70%, transparent 70%); }
  .scene .coin { top: 140px; width: 14px; height: 14px; border-radius: 50%; background: var(--warn); }
  .scene .coin.c1 { left: 566px; }
  .scene .coin.c2 { left: 588px; }
  .scene .coin.c3 { left: 610px; }
  .scene .ledge { left: 560px; top: 452px; width: 176px; height: 14px; border-radius: 3px; background: #2f3b86; }
  .scene .hero-block { left: 626px; top: 412px; width: 40px; height: 40px; border-radius: 9px; background: #ffb454; }
  .scene .eye { top: 425px; width: 6px; height: 6px; background: var(--sky); }
  .scene .eye.e1 { left: 636px; }
  .scene .eye.e2 { left: 650px; }
  .scene .cam { left: 548px; top: 616px; width: 196px; height: 110px; border: 2px solid var(--border-strong); border-radius: 8px; background: #1b1e26; overflow: hidden; }
  .scene .cam::before { content: ""; position: absolute; left: 76px; top: 26px; width: 40px; height: 40px; border-radius: 50%; background: var(--border-strong); }
  .scene .cam::after { content: ""; position: absolute; left: 50px; top: 74px; width: 92px; height: 60px; border-radius: 30px 30px 0 0; background: var(--border-strong); }

  .proof .wrap { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 60px; align-items: center; }
  .proof .big { margin-top: 20px; }
  .names { margin-top: 48px; }
  .grid7 { margin-top: 48px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .grid7 li, .grid7 li:nth-child(4n) { border-right: 1px solid var(--border); border-top: 0; padding: 24px 20px 26px; }
  .grid7 li:last-child { border-right: 0; }
  .grid7 li:nth-child(n+5) { border-top: 0; }
  .ticker-head { margin-top: 64px; }
  .url { margin-top: 28px; }
  .band { padding-top: 60px; padding-bottom: 44px; }
  .setup .split { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
  .setup .copy { font-size: 16px; margin-top: 24px; }
  .steps { margin-top: 48px; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 0; }
  .steps li { padding: 0; border: 0; }
  .steps li::before { position: static; display: block; font-size: 88px; line-height: 1; margin-bottom: 12px; }
  .obs .wh { align-items: center; }
  .closing .scene { left: auto; width: 456px; clip-path: polygon(120px 0, 120px 96px, 96px 96px, 96px 192px, 72px 192px, 72px 288px, 48px 288px, 48px 384px, 24px 384px, 24px 480px, 0 480px, 0 100%, 100% 100%, 100% 0); }
  .closing .wrap { padding-top: 96px; padding-bottom: 88px; }
  .closing h2 { margin-top: 48px; }
  .foot .wrap { grid-template-columns: auto 1fr auto; }
  .foot .note { grid-column: auto; text-align: right; }
}

/* the drawn scene objects and the "your scene" label reach 746 px into the stage; it is that wide from here */
@media (min-width: 1440px) {
  .stage .scene .extra, .stage .where.r { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* A Windows contrast theme: the demos' overlay keeps the colors OBS draws (css/overlay.css), so the drawn scene behind
   them keeps its own too, as the builder's stage does; on the theme's canvas color the white chat text would vanish. */
@media (forced-colors: active) {
  .stage,
  .ticker { forced-color-adjust: none; }
}
