/* Proofhouse site. Paper and ink, with forge heat in the art panels cooling to a quench blue.
   Display: Gambetta 300, tight. Text and UI: Schibsted Grotesk. Code: the system monospace. */

:root {
  --paper: #f4f4f1;
  --paper-2: #ebebe6;
  --card: #fffdfa;
  --ink: #15120f;
  --ink-2: #4a433c;
  --ink-3: #7a7067;
  --line: rgba(21, 18, 15, 0.12);
  --line-2: rgba(21, 18, 15, 0.07);
  --soot: #1a1512;
  --soot-2: #241d18;
  --ok: #2f6b4f;
  --ok-bg: #e2eee6;
  --bad: #b3361f;
  --bad-bg: #f8e0d8;
  --display: "Gambetta", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --r-panel: 22px;
  --r-card: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---------- type ---------- */
h1, h2 { font-family: var(--display); font-weight: 300; color: var(--ink); }
h1 { font-size: clamp(46px, 6.4vw, 88px); line-height: 1; letter-spacing: -0.03em; max-width: 11ch; }
h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -0.025em; max-width: 20ch; }
h2 .dim { color: var(--ink-3); }
h3 { font: 500 20px/1.3 var(--sans); letter-spacing: -0.015em; }
.lede { margin-top: 26px; max-width: 46ch; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head p { max-width: 54ch; color: var(--ink-2); }
.sec-head.light h2 { color: var(--paper); }
.sec-head.light p { color: rgba(244, 244, 241, 0.72); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 500 14.5px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: #2c2620; }
.btn:active { transform: translateY(1px); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.text-link { font-size: 14.5px; text-decoration: none; color: var(--ink-2); }
.text-link:hover { color: var(--ink); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 500; font-size: 15.5px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.arrow-link::after { content: ""; width: 14px; height: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M0 5h12M8.5 1.2 12.4 5 8.5 8.8' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M0 5h12M8.5 1.2 12.4 5 8.5 8.8' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform 0.15s; }
.arrow-link:hover { border-color: var(--ink); }
.arrow-link:hover::after { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(244, 244, 241, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-bottom-color: var(--line-2); }
.nav-in { display: flex; align-items: center; gap: 36px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 17px/1 var(--sans); letter-spacing: -0.025em; text-decoration: none; }
.mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--ink); }
.mark svg { width: 20px; height: 20px; fill: none; stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mark.sm { width: 18px; height: 18px; border-radius: 5px; }
.mark.sm svg { width: 14px; height: 14px; }
.links { display: flex; gap: 26px; }
.links a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.menu { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 10px; }
.menu span { display: block; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform 0.2s; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-nav { display: grid; padding: 8px var(--gut) 20px; border-top: 1px solid var(--line-2); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 0; font-size: 17px; text-decoration: none; border-bottom: 1px solid var(--line-2); }

/* ---------- art panels: forge heat, made of light ---------- */
.art { position: relative; overflow: hidden; border-radius: var(--r-panel); isolation: isolate; }
.art::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; filter: url(#grain); background: #000; opacity: 0.14; mix-blend-mode: overlay; }
.art::before { content: ""; position: absolute; inset: -20%; z-index: 1; pointer-events: none; opacity: 0.22; mix-blend-mode: soft-light;
  background: repeating-radial-gradient(circle at var(--rx, 78%) var(--ry, 110%), rgba(255, 255, 255, 0.9) 0 1.5px, transparent 1.5px 26px); }
.art-dusk { --rx: 10%; --ry: -10%; }
.art-amber { --rx: 100%; --ry: 0%; }
.art-rose { --rx: 0%; --ry: 100%; }
.art-quench { --rx: 90%; --ry: -5%; }
.art > .blob { position: absolute; z-index: 0; border-radius: 50%; filter: blur(48px); }
.art > :not(.blob) { position: relative; z-index: 2; }

.art-ember { background: radial-gradient(130% 100% at 80% 105%, #fff0d2 0%, #ffc779 18%, #f7893f 40%, #e2552a 62%, #a8341d 84%, #6e2214 100%); }
.art-ember .b1 { width: 60%; height: 65%; left: -14%; top: -18%; background: #ffd59a; opacity: 0.75; }
.art-ember .b2 { width: 45%; height: 55%; right: -12%; top: 6%; background: #ff7a3c; opacity: 0.7; }
.art-ember .b3 { width: 46%; height: 42%; left: 24%; bottom: -14%; background: #fff3dc; opacity: 0.7; }

.art-dusk { background: linear-gradient(160deg, #e9d9e6 0%, #d8b7cf 30%, #c7a0b8 52%, #e7b49a 78%, #f3d2b0 100%); }
.art-dusk .b1 { width: 50%; height: 70%; left: -10%; bottom: -30%; background: #f29b6d; opacity: 0.5; }
.art-dusk .b2 { width: 45%; height: 60%; right: -10%; top: -20%; background: #a98cc6; opacity: 0.55; }

.art-amber { background: linear-gradient(170deg, #f7e3b6 0%, #f3c77d 40%, #ee9f52 75%, #e4823e 100%); }
.art-amber .b1 { width: 60%; height: 55%; right: -15%; top: -15%; background: #fff2d2; opacity: 0.7; }
.art-amber .b2 { width: 50%; height: 50%; left: -10%; bottom: -20%; background: #e0602c; opacity: 0.45; }

.art-rose { background: linear-gradient(200deg, #f6d9cf 0%, #eeb39e 35%, #df8d77 65%, #c76d5e 100%); }
.art-rose .b1 { width: 55%; height: 60%; left: -12%; top: -20%; background: #fbe6d8; opacity: 0.75; }
.art-rose .b2 { width: 50%; height: 55%; right: -10%; bottom: -25%; background: #b4505a; opacity: 0.4; }

.art-quench { background: linear-gradient(165deg, #dfe8ea 0%, #b9cfd6 35%, #8fb0bd 65%, #c9b8a6 100%); }
.art-quench .b1 { width: 55%; height: 60%; right: -12%; top: -18%; background: #f4f1ea; opacity: 0.75; }
.art-quench .b2 { width: 50%; height: 55%; left: -12%; bottom: -25%; background: #5f8796; opacity: 0.5; }

/* ---------- cards floating in the art ---------- */
.card { background: rgba(255, 253, 250, 0.94); border-radius: var(--r-card); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 24px 60px -24px rgba(40, 12, 4, 0.45), 0 2px 6px rgba(40, 12, 4, 0.08); color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 6vw, 80px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fine { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.tick { width: 16px; height: 16px; flex: none; }
.tick circle { fill: var(--ink); }
.tick path { fill: none; stroke: var(--paper); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-art { min-height: 560px; display: grid; place-items: center; padding: 48px 40px 96px; }
.run-card { width: min(380px, 100%); padding: 18px 18px 16px; }
.rc-head { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.rc-head b { font-weight: 500; }
.rc-time { margin-left: auto; font: 400 12.5px var(--mono); color: var(--ink-3); }
.rc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.rc-dot.live { box-shadow: 0 0 0 0 rgba(179, 54, 31, 0.5); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 7px rgba(179, 54, 31, 0); } }
.rc-steps { display: grid; gap: 2px; padding: 10px 0; }
.rc-steps li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; line-height: 1.35; }
.rc-steps li i { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.8 8.2l2.1 2.1 4.3-4.4' fill='none' stroke='%232f6b4f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.rc-steps li.run i { background: none; border: 1.5px solid var(--ink-3); border-right-color: transparent; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rc-steps em { margin-left: auto; padding: 2px 7px; border-radius: 6px; background: var(--paper-2); font: 400 11.5px var(--mono); font-style: normal; color: var(--ink-2); }
.rc-foot { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-3); }
.rc-foot .bar { flex: 1; height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.rc-foot .bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.stamp-card { position: absolute; left: 26px; bottom: 26px; display: flex; align-items: center; gap: 14px; width: min(300px, 70%); padding: 14px 16px; }
.stamp-card p { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.stamp-card b { color: var(--ink); font-weight: 500; }
.stamp { flex: none; display: grid; place-items: center; width: 62px; height: 62px; border: 1.5px solid var(--ok); border-radius: 50%; color: var(--ok); font: 500 11px/1 var(--mono); letter-spacing: 0.04em; transform: rotate(-12deg); box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4px rgba(47, 107, 79, 0.6); }

/* ---------- logo strip ---------- */
.trust { padding: 8px 0 clamp(56px, 7vw, 96px); }
.trust-h { font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; margin-bottom: 26px; }
.wordmarks { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.wordmarks li { display: grid; place-items: center; height: 72px; font: 500 15px var(--sans); letter-spacing: -0.02em; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.wordmarks li:not(:nth-child(6n)) { border-right: 1px solid var(--line); }

/* ---------- product showcase ---------- */
.showcase { padding-bottom: clamp(72px, 9vw, 120px); }
.show-art { padding: clamp(28px, 5vw, 72px) clamp(16px, 5vw, 72px) 0; }
.app { display: grid; grid-template-columns: 200px minmax(0, 1fr); border-radius: 12px 12px 0 0; overflow: hidden; background: #fbf9f6; box-shadow: 0 30px 70px -30px rgba(50, 20, 40, 0.5); font-size: 13px; }
.app-side { display: grid; align-content: start; gap: 2px; padding: 16px 12px; background: #f3efe9; border-right: 1px solid var(--line-2); }
.app-brand { display: flex; align-items: center; gap: 8px; margin: 0 6px 14px; font-weight: 600; letter-spacing: -0.02em; }
.nav-i, .svc { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--ink-2); }
.nav-i em { margin-left: auto; font-style: normal; color: var(--ink-3); }
.nav-i.on { background: #e6e0d8; color: var(--ink); }
.side-h { margin: 14px 8px 4px; font-size: 12px; color: var(--ink-3); }
.svc i { width: 7px; height: 7px; border-radius: 50%; background: #3f9b5a; margin-left: auto; order: 2; }
.app-main { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.app-bar { display: flex; align-items: center; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line-2); }
.crumb { color: var(--ink-3); }
.crumb span { margin: 0 4px; }
.app-btn { margin-left: auto; padding: 5px 12px; border-radius: 7px; background: var(--ink); color: var(--paper); font-weight: 500; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 28px; padding: 30px 32px 40px; }
.doc h3 { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -0.025em; }
.doc-p { margin-top: 10px; color: var(--ink-2); font-size: 14px; }
.doc-h { margin: 24px 0 10px; font-weight: 600; font-size: 14px; }
.checks { display: grid; gap: 20px; }
.checks li { position: relative; padding-left: 16px; font-size: 14px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.effect { display: block; margin-top: 6px; font: 400 12px var(--mono); color: var(--ink-3); }
.doc-margin { display: grid; align-content: start; gap: 12px; padding-top: 86px; }
.note { padding: 2px 0 2px 12px; border-left: 2px solid var(--ok); font-size: 12.5px; line-height: 1.4; }
.note b { color: var(--ok); font-weight: 600; }
.note em { font-style: normal; color: var(--ink-3); }
.note span { display: block; margin-top: 2px; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.note.bad { border-color: var(--bad); }
.note.bad b { color: var(--bad); }
.note.tall { margin-bottom: 14px; }

/* ---------- how: stacked panels ---------- */
.how { padding: clamp(72px, 9vw, 120px) 0; background: var(--paper-2); }
.stack { display: grid; gap: 28px; }
.panel { position: sticky; top: 92px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; min-height: 420px; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-panel); overflow: hidden; color: var(--paper); box-shadow: 0 -18px 40px -28px rgba(20, 10, 5, 0.5); }
.panel:nth-child(2) { top: 104px; }
.panel:nth-child(3) { top: 116px; }
.panel:nth-child(4) { top: 128px; }
.panel h3 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3vw, 40px); line-height: 1.06; letter-spacing: -0.03em; margin: 14px 0 16px; }
.panel p { max-width: 44ch; color: rgba(244, 244, 241, 0.78); }
.step-n { font: 400 13px var(--mono); color: rgba(244, 244, 241, 0.6); }
.p-start { background: radial-gradient(90% 120% at 100% 100%, #5a2414 0%, #2a1610 50%, #17110d 100%); }
.p-explore { background: radial-gradient(90% 120% at 100% 0%, #8a3a1d 0%, #3a1c12 55%, #1d140f 100%); }
.p-prove { background: radial-gradient(100% 120% at 90% 100%, #c45a28 0%, #6b2a15 45%, #24160f 100%); }
.p-replay { background: radial-gradient(100% 120% at 100% 100%, #3f6170 0%, #22343a 50%, #141a1c 100%); }
.panel-vis { display: grid; }
.term, .feed, .rules, .pr-comment { padding: 20px 22px; border-radius: 12px; background: rgba(10, 8, 6, 0.55); border: 1px solid rgba(255, 255, 255, 0.09); backdrop-filter: blur(6px); font-size: 13.5px; }
.term p { font: 400 13px/1.9 var(--mono); color: rgba(244, 244, 241, 0.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term .pr { color: #f2a65a; margin-right: 6px; }
.mut { color: rgba(244, 244, 241, 0.5) !important; }
.okc { color: #6cc38a; margin-right: 4px; }
.feed { display: grid; gap: 0; }
.feed li { display: block; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: rgba(244, 244, 241, 0.92); }
.feed li:last-child { border: 0; }
.feed b { font-weight: 500; color: #fff; }
.feed span { display: block; margin-top: 3px; font: 400 12px var(--mono); color: rgba(244, 244, 241, 0.5); }
.feed li.bad span { color: #ff9b83; }
.rules li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: rgba(244, 244, 241, 0.92); }
.rules li:last-child { border: 0; }
.rules span { margin-left: auto; font-size: 12.5px; font-weight: 500; color: #8fd4a5; white-space: nowrap; }
.rules li.bad span { color: #ff9b83; }
.pr-comment p { margin: 0 0 8px; color: rgba(244, 244, 241, 0.92); max-width: none; }
.prc-h { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 12px !important; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 12.5px; color: rgba(244, 244, 241, 0.6) !important; }
.badge { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff; font: 500 12px var(--mono); }

/* ---------- feature splits ---------- */
.feature { padding: clamp(72px, 9vw, 120px) 0 0; }
.feature + .soot { margin-top: clamp(72px, 9vw, 120px); }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.split.rev .split-copy { order: 2; }
.split-copy h2 { margin-bottom: 22px; }
.split-copy p { max-width: 44ch; color: var(--ink-2); }
.split-copy p + p { margin-top: 14px; }
.split-art { min-height: 480px; display: grid; place-items: center; padding: clamp(24px, 4vw, 52px); }
.found { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 36ch; }
.found figcaption { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.found blockquote { font-family: var(--display); font-weight: 300; font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; }

.ledger { width: min(520px, 100%); padding: 6px 0; font-size: 13px; }
.ledger-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px 12px; border-bottom: 1px solid var(--line-2); }
.ledger-h b { font-weight: 500; font-size: 14px; }
.ledger-h span { color: var(--ink-3); font-size: 12.5px; }
.ledger li { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.ledger li:last-child { border: 0; }
.kind { font: 400 11.5px var(--mono); color: var(--ink-3); }
.what { font: 400 12.5px var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--ok-bg); color: var(--ok); }
.ledger li.bad .st { background: var(--bad-bg); color: var(--bad); }
.ledger li.bad .what { color: var(--bad); }

.editor { width: min(580px, 100%); overflow: hidden; background: #fbf9f6; }
.ed-tabs { display: flex; align-items: center; height: 40px; border-bottom: 1px solid var(--line-2); background: #f2eee8; font-size: 12.5px; }
.ed-tabs span { display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 14px; }
.ed-tabs span.on { background: #fbf9f6; font-family: var(--mono); border-right: 1px solid var(--line-2); }
.ed-tabs span:last-child { margin-left: auto; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.ok { background: #3f9b5a; }
.code { margin: 0; padding: 14px 0 16px; overflow: auto; font-size: 12.5px; line-height: 1.75; color: var(--ink); }
.code .ln { display: inline-block; width: 46px; padding-right: 14px; text-align: right; color: #b9aea3; user-select: none; }
.code .c { color: #8a7e72; }
.code .k { color: #8b3a62; }
.code .s { color: #2f6b4f; }
.code .f { color: #3c5f8c; }

.player { width: min(580px, 100%); padding: 14px; }
.pl-panes { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.pane { display: grid; gap: 6px; min-width: 0; }
.who { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.who i { width: 7px; height: 7px; border-radius: 50%; }
.p1 { background: #c8601f; }
.p2 { background: #3c6f8c; }
.screen { aspect-ratio: 4 / 3; border-radius: 8px; background: #f1ede7; border: 1px solid var(--line-2); padding: 12px; display: grid; align-content: start; gap: 8px; }
.s1 span { height: 9px; border-radius: 4px; background: #e1dad1; }
.s1 span:nth-child(1) { width: 40%; height: 12px; background: #cfc6bb; }
.s1 span.w { height: 44px; background: #e9e3dc; }
.s2 { background: #f6f3ef; }
.bubble { height: 26px; border-radius: 10px; width: 64%; }
.bubble.l { background: #e5ded5; }
.bubble.r { justify-self: end; background: #3c6f8c; width: 56%; }
.bubble.wide { width: 80%; height: 38px; }
.pl-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; font: 400 12px var(--mono); color: var(--ink-3); }
.play { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.play::after { content: ""; position: absolute; left: 10px; top: 8px; border-left: 8px solid var(--paper); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.track { position: relative; flex: 1; height: 4px; border-radius: 4px; background: #e6e0d8; }
.track .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 32%; border-radius: 4px; background: var(--ink); }
.track .tick { position: absolute; top: -4px; width: 2px; height: 12px; border-radius: 1px; background: #a99d91; }
.track .tick.bad { background: var(--bad); }
.spd { padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); }

/* ---------- soot band ---------- */
.soot { position: relative; padding: clamp(80px, 10vw, 136px) 0; background: var(--soot); color: var(--paper); overflow: hidden; isolation: isolate; }
.soot::before { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(200, 80, 30, 0.35), transparent); filter: blur(30px); }
.art-grain { position: absolute; inset: 0; z-index: -1; filter: url(#grain); background: #000; opacity: 0.35; mix-blend-mode: overlay; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(244, 244, 241, 0.14); }
.pillars > div { padding: 28px 28px 8px 0; }
.pillars > div + div { padding-left: 28px; border-left: 1px solid rgba(244, 244, 241, 0.14); }
.pillars h3 { color: var(--paper); font-size: 18px; margin-bottom: 12px; }
.pillars p { color: rgba(244, 244, 241, 0.66); font-size: 15px; }

/* ---------- services ---------- */
.services { padding: clamp(80px, 10vw, 128px) 0 0; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc-grid li { display: grid; gap: 4px; padding: 22px 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.15s; }
.svc-grid li:hover { background: var(--card); }
.svc-grid b { font-weight: 500; font-size: 16px; letter-spacing: -0.015em; }
.svc-grid span { font-size: 14px; color: var(--ink-3); }

/* ---------- open ---------- */
.open { padding: clamp(80px, 10vw, 128px) 0; }
.open-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.open-copy h2 { margin-bottom: 22px; }
.open-copy p { max-width: 46ch; color: var(--ink-2); }
.facts { position: relative; display: grid; background: var(--card); padding: 8px 28px; }
.facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.facts div:last-child { border: 0; }
.facts dt { font-size: 14px; color: var(--ink-3); }
.facts dd { font-size: 16px; }
/* Registration marks at the corners, as on a proofed sheet. */
.crop::before { content: ""; position: absolute; inset: -8px; pointer-events: none;
  --c: var(--ink);
  background:
    linear-gradient(var(--c), var(--c)) top left / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) top left / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) top right / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1px 14px no-repeat; }

/* ---------- final ---------- */
.final { padding-bottom: clamp(56px, 7vw, 96px); }
.final-art { display: grid; place-items: center; min-height: 560px; padding: 64px 24px; text-align: center; }
.final-in { display: grid; justify-items: center; gap: 18px; }
.final h2 { max-width: 15ch; color: #fff8ef; font-size: clamp(38px, 5vw, 68px); }
.final p { color: rgba(255, 248, 239, 0.85); font-size: 18px; }
.install { display: flex; align-items: center; gap: 4px; margin-top: 14px; padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(21, 12, 8, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px); max-width: 100%; }
.install code { font-size: 14px; color: #fff8ef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy { flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff8ef; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; transition: background 0.15s; }
.copy:hover { background: #fff; }
.final .ask { font-size: 15px; color: rgba(255, 248, 239, 0.75); }

/* ---------- footer ---------- */
.foot { background: var(--soot); color: rgba(244, 244, 241, 0.7); padding: 64px 0 28px; font-size: 14.5px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; padding-bottom: 56px; }
.foot .brand { color: var(--paper); }
.foot .mark { background: var(--paper); }
.foot .mark svg { stroke: var(--soot); }
.foot-brand p { margin-top: 18px; max-width: 38ch; }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.foot-cols h4 { margin-bottom: 14px; font: 500 13px var(--sans); color: rgba(244, 244, 241, 0.45); }
.foot-cols a { display: block; padding: 5px 0; text-decoration: none; }
.foot-cols a:hover, .foot-base a:hover { color: var(--paper); }
.foot-base { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(244, 244, 241, 0.12); font-size: 13px; }
.foot-base a { text-decoration: none; }

/* ---------- reveal (one quiet entrance per section) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .links { gap: 18px; }
  .doc { grid-template-columns: minmax(0, 1fr) 170px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillars > div:nth-child(n + 3) { border-top: 1px solid rgba(244, 244, 241, 0.14); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .links, .nav-cta { display: none; }
  .menu { display: block; }
  .hero-in, .split, .split.rev, .open-in, .foot-in { grid-template-columns: minmax(0, 1fr); }
  .split.rev .split-copy { order: 0; }
  .hero-art { min-height: 460px; }
  .wordmarks { grid-template-columns: repeat(3, 1fr); }
  .wordmarks li:not(:nth-child(6n)) { border-right: 0; }
  .wordmarks li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .panel { position: relative; top: auto !important; grid-template-columns: minmax(0, 1fr); min-height: 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .doc { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 28px; }
  .doc-margin { padding-top: 0; }
  .stamp-card { position: relative; left: auto; right: auto; bottom: auto; width: 100%; margin-top: 14px; }
  .hero-art { padding: 24px 16px; display: grid; align-content: center; }
  .pillars, .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .pillars > div, .pillars > div + div { padding: 24px 0 8px; border-left: 0; }
  .pillars > div + div { border-top: 1px solid rgba(244, 244, 241, 0.14); }
  .pl-panes { grid-template-columns: minmax(0, 1fr); }
  .pane:last-child { display: none; }
  .split-art { min-height: 0; padding: 28px 16px; }
  .ledger li { grid-template-columns: minmax(0, 1fr) auto; }
  .what { white-space: normal; overflow-wrap: anywhere; }
  .ledger .kind { display: none; }
  .facts { padding: 4px 18px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .install code { font-size: 12px; }
  .foot-base { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rc-dot.live, .rc-steps li.run i { animation: none; }
}

/* The closing panel: heat gathered behind the words so they read on any part of it. */
.final-art { background: radial-gradient(70% 60% at 50% 45%, #8c2f16 0%, #c4471f 38%, #ec7a3a 64%, #ffc27a 88%, #ffe6c2 100%); }
.final-art .blob { opacity: 0.35 !important; }
.final-in { width: 100%; min-width: 0; }
.final-in > * { max-width: 100%; }
.install code { min-width: 0; }
@media (max-width: 620px) { .final-art { min-height: 0; padding: 56px 18px; } }
.final-art { grid-template-columns: minmax(0, 1fr); }
.final h2 { max-width: min(15ch, 100%); }
.final-in { justify-items: center; }
.install { width: fit-content; max-width: 100%; }
.final-in { grid-template-columns: minmax(0, 1fr); }

/* How it works, in daylight: paper cards with the heat glowing in one corner, ink on cream. */
.panel { color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 -16px 40px -30px rgba(60, 25, 10, 0.35), 0 1px 0 rgba(255, 255, 255, 0.7) inset; }
.panel p { color: var(--ink-2); }
.step-n { color: var(--ink-3); }
.p-start { background: radial-gradient(60% 90% at 100% 100%, #f8c99a 0%, rgba(248, 201, 154, 0) 70%), #fbf7f1; }
.p-explore { background: radial-gradient(60% 90% at 100% 0%, #f6b48a 0%, rgba(246, 180, 138, 0) 70%), #fbf6ef; }
.p-prove { background: radial-gradient(65% 95% at 95% 100%, #f19a6b 0%, rgba(241, 154, 107, 0) 72%), #fbf5ee; }
.p-replay { background: radial-gradient(60% 90% at 100% 100%, #b9d0d8 0%, rgba(185, 208, 216, 0) 70%), #f7f6f2; }
.term, .feed, .rules, .pr-comment { background: rgba(255, 253, 250, 0.92); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -26px rgba(60, 25, 10, 0.4); backdrop-filter: none; }
.term p { color: var(--ink); }
.term .pr { color: #c8601f; }
.mut { color: var(--ink-3) !important; }
.okc { color: #3f9b5a; }
.feed li, .rules li { color: var(--ink); border-bottom-color: var(--line-2); }
.feed b { color: var(--ink); }
.feed span { color: var(--ink-3); }
.feed li.bad span, .rules li.bad span { color: var(--bad); }
.rules span { color: var(--ok); }
.pr-comment p { color: var(--ink); }
.prc-h { color: var(--ink-3) !important; border-bottom-color: var(--line-2); }
.badge { background: var(--paper-2); color: var(--ink); }

/* The mark: a rifled barrel seen down the bore, with the proof check struck inside. */
.logo { width: 26px; height: 26px; flex: none; color: var(--ink); }
.logo.sm { width: 18px; height: 18px; }
.foot .logo { color: var(--paper); }

/* Both recorded screens fill their column at one shared height, tops aligned
   (a 4:3 box sized from the stretched row overflowed the narrower column). */
.pane { align-content: start; }
.screen { width: 100%; aspect-ratio: auto; height: clamp(150px, 15vw, 210px); }

/* The product mockups share the page's text face, set a touch tighter.
   Code and data use the system monospace; the mockup's document title keeps the display face. */
:root { --ui: var(--sans); }
.card, .app, .feed, .rules, .pr-comment, .stamp-card { font-family: var(--ui); letter-spacing: -0.005em; }
.card b, .app b, .feed b { font-weight: 600; }

/* ---------- audit fixes ---------- */
/* Small grey text meets WCAG AA (4.5:1) on paper. */
:root { --ink-3: #6b6158; }
/* Anchors land below the sticky nav. */
section[id] { scroll-margin-top: 80px; }
/* Each check and its note share a row, so a note is always level with its check. */
.doc-title { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -0.025em; line-height: 1.15; }
.doc { display: block; }
.checks { gap: 14px; }
.checks li { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; align-items: start; padding-left: 0; }
.checks li::before { display: none; }
.ck { position: relative; padding-left: 16px; }
.ck::before { content: ""; position: absolute; left: 2px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.note { display: block; }
/* The install command wraps instead of being cut off. */
.term p { white-space: normal; overflow-wrap: break-word; }
@media (max-width: 620px) { .checks li { grid-template-columns: minmax(0, 1fr); gap: 8px; } .note { margin-left: 16px; } }

/* Impeccable audit, 2026-11-27 */
/* Small light text on soot passes AA (was 4.1:1). */
.foot-cols h4 { color: rgba(244, 244, 241, 0.62); }
/* The closing panel: the dark heat now covers the whole text block, down to the ask line. */
.final-art { background: radial-gradient(85% 92% at 50% 50%, #7a2812 0%, #8c2f16 42%, #b43f1c 62%, #e06a30 80%, #ffb36a 94%, #ffd9a8 100%); }
.final p, .final .ask { color: #fff8ef; }
/* Even heading lines and no lone last words. */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
/* Tablet: leave room under the run card for the CI stamp so it never covers the card's footer. */
@media (max-width: 980px) and (min-width: 621px) { .hero-art { padding: 40px 32px; align-content: center; gap: 14px; } .stamp-card { position: relative; left: auto; bottom: auto; width: min(380px, 100%); } }
/* Type steps at least 1.25x apart: labels 12, body 16, card headings 20. */
.foot-cols h4 { font-size: 12px; }
.pillars h3 { font-size: 20px; }
/* Safety columns: dividers only, no rule running into the text. */
.pillars { border-top: 0; }
/* Mockups sit flat on their panels: no second shadow or frame inside a card. */
.term, .feed, .rules, .pr-comment { box-shadow: none; border: 0; }
.app { box-shadow: none; }
/* No ripple stripes on the art panels; the grain alone carries the texture. */

/* ---------- How it works, rebuilt (2026-11-28) ----------
   Each step is a white sheet: the copy on the left, its own heat panel on the right with the
   mockup floating on it like the hero card. The sheets still stack as you scroll. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stack { gap: 24px; }
.panel { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; min-height: 460px;
  padding: 14px 14px 14px clamp(28px, 4vw, 56px); border: 0; background: #fbfbf9;
  box-shadow: 0 -14px 34px -22px rgba(30, 18, 10, 0.28), 0 1px 0 rgba(255, 255, 255, 0.8) inset; }
.p-start, .p-explore, .p-prove, .p-replay { background: #fbfbf9; }
.panel-copy { align-self: center; padding: 32px 0; }
.step-n { display: block; font: 300 clamp(64px, 7vw, 96px)/0.9 var(--display); letter-spacing: -0.04em; color: #c4471f; font-variant-numeric: lining-nums; }
.p-explore .step-n { color: #9a5f86; }
.p-prove .step-n { color: #c0661f; }
.p-replay .step-n { color: #3f6876; }
.panel h3 { margin: 18px 0 14px; }
.panel p { color: var(--ink-2); }
.panel-vis { display: grid; place-items: center; padding: clamp(28px, 4vw, 56px); border-radius: calc(var(--r-panel) - 8px); }
.panel-vis > .card { width: min(440px, 100%); padding: 20px 22px; border: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 24px 60px -24px rgba(40, 12, 4, 0.45), 0 2px 6px rgba(40, 12, 4, 0.08); }
.okc { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: #3f9b5a; vertical-align: middle; }
@media (max-width: 900px) {
  .panel { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 0; }
  .panel-copy { padding: 18px 14px 26px; }
  .step-n { font-size: 64px; }
  .panel-vis { padding: 18px; }
}
/* Open rows, not sheets: each step is copy beside its heat panel, like the hero. */
.stack { gap: clamp(56px, 7vw, 96px); }
.panel { position: static; min-height: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.p-start, .p-explore, .p-prove, .p-replay { background: none; }
.panel-vis { min-height: 440px; border-radius: var(--r-panel); }
.panel + .panel { padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-2); }
@media (max-width: 900px) { .panel { padding: 0; } .panel-copy { padding: 0 0 24px; } .panel-vis { min-height: 0; } }
