/* ---------------------------------------------------------------
   FOREMAN
   Direction: a drawing office. White drafting paper for reading,
   cyanotype blue where the drawing is, and the three colours a
   checker marks a drawing with: revision yellow for what is
   decided, redline coral for what is wrong, approval green for
   what passed. Each tool owns one of them.
   Two curves for the whole site: --in for entrances, --ui for
   everything you touch.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --sheet-2: #F4F6F9;
  --ink: #0A0A0A;
  --soft: #39414B;
  --muted: #5F6B78;
  --blue: #1B4DD1;
  --tint: #E4EAFB;
  --hair: #E3E7EC;
  --rule: #CBD3DC;

  /* The drawing. */
  --cyan: #164777;
  --cyan-2: #1C5287;
  --cyan-3: #0F365C;
  --line-w: #EAF2F8;
  --cyan-muted: #A9C6E3;

  /* The checker's three colours, and the darker inks that read on paper. */
  --yellow: #F2BE3C;
  --on-yellow: #10233A;
  --yellow-ink: #8A5A00;
  --coral: #EC6A55;
  --coral-ink: #C2412D;
  --green: #4FC48A;
  --green-ink: #1E7F52;

  /* The terminal the transcripts print to. */
  --term: #0F1722;
  --term-2: #172231;
  --term-muted: #9AA7B4;

  /* The footer panel is always the blueprint, in both themes. */
  --sheet: #0A2444;
  --sheetText: #EAF1FA;
  --amber: #FFB400;

  --letterFill: var(--yellow);
  --letterLine: rgba(16, 35, 58, .5);

  --display: "Barlow Condensed", "Arial Narrow", "Avenir Next Condensed", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 76rem;
  --gut: 2rem;
  --bar: 4rem;

  --in: cubic-bezier(.22, .61, .36, 1);
  --ui: cubic-bezier(.3, .7, .2, 1);
  color-scheme: light;
}

/* Deep drafting navy. Not black: the night version of the same sheet. */
:root[data-theme="dark"] {
  --paper: #0A2444;
  --sheet-2: #0D2A4E;
  --ink: #EAF1FA;
  --soft: #C9D8EA;
  --muted: #9DB5D2;
  --blue: #8DB3E8;
  --tint: #143A66;
  --hair: #1B3D6B;
  --rule: #2A5287;
  --sheet: #061A33;
  --coral-ink: #F08A78;
  --green-ink: #6DD6A0;
  --yellow-ink: #F2BE3C;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--paper);
  scrollbar-width: thin;
  scroll-padding-top: calc(var(--bar) + 1rem);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

::-webkit-scrollbar { width: 13px; height: 13px; }
::-webkit-scrollbar-track { background: var(--paper); border-left: 1px solid var(--hair); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 4px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }
::-webkit-scrollbar-corner { background: var(--paper); }

::selection { background: var(--yellow); color: var(--on-yellow); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ui), color .3s var(--ui);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
p a, li a, td a { text-decoration-color: color-mix(in srgb, var(--blue) 55%, transparent); transition: text-decoration-color .16s var(--ui), color .16s var(--ui); }
p a:hover, li a:hover, td a:hover { color: var(--blue); text-decoration-color: var(--blue); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}
.stage a:focus-visible, .stage button:focus-visible, section.blue a:focus-visible { outline-color: var(--yellow); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1rem; text-decoration: none;
  font-family: var(--mono); font-size: .8125rem;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7.4vw, 6.5rem); line-height: .88; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: .94; }
h3 { font-size: 1.5rem; line-height: 1.02; letter-spacing: 0; }
p { margin: 0 0 1rem; max-width: 64ch; text-wrap: pretty; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--soft); max-width: 46ch; }
.small { font-size: .9375rem; color: var(--muted); }
code, pre, kbd { font-family: var(--mono); }
p code, li code, td code { font-size: .875em; background: var(--sheet-2); border: 1px solid var(--hair); padding: .05em .35em; border-radius: 3px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; line-height: 1;
  padding: .95rem 1.25rem;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  transition: background-color .16s var(--ui), border-color .16s var(--ui), color .16s var(--ui), transform .16s var(--ui), box-shadow .16s var(--ui);
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.small { padding: .7rem .95rem; font-size: .75rem; }
.btn.go { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.btn.go:hover { background: #FFD25E; border-color: #FFD25E; color: var(--on-yellow); box-shadow: 0 6px 0 -2px rgba(0,0,0,.25); }

.star {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); padding: .95rem .5rem;
  transition: color .16s var(--ui);
}
.star:hover { color: var(--ink); }
.star span[aria-hidden] { color: var(--amber); font-size: 1rem; line-height: 1; transition: transform .3s var(--ui); }
.star:hover span[aria-hidden] { transform: rotate(72deg); }
.star .count::before { content: "\00B7  "; }

/* ---------- header: clear at the top, drafting vellum once you scroll ---------- */

.bar {
  position: sticky; top: 0; z-index: 30;
  height: var(--bar);
  color: var(--ink);
  transition: background-color .24s var(--ui), box-shadow .24s var(--ui), color .24s var(--ui);
}
html[data-scrolled] .bar,
html[data-menu] .bar {
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--hair);
}
.bar .wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 28px; height: 28px; display: block; image-rendering: pixelated; transition: transform .3s var(--ui); }
.brand:hover img { transform: rotate(-8deg) translateY(-1px); }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { position: relative; text-decoration: none; font-size: .9375rem; opacity: .82; padding: .4rem 0; transition: opacity .16s var(--ui); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .24s var(--ui); }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.tools { justify-self: end; display: flex; align-items: center; gap: .5rem; }
.iconbtn {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem;
  background: transparent; color: inherit; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 0;
  cursor: pointer; transition: border-color .16s var(--ui), background-color .16s var(--ui);
}
.iconbtn:hover { border-color: currentColor; }
.iconbtn svg { width: 1.05rem; height: 1.05rem; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
.menubtn { display: none; }

/* On the home page the bar sits on the drawing until the page moves. */
html:not([data-scrolled]):not([data-menu]) body[data-page="index"] .bar { color: #fff; }
html:not([data-scrolled]):not([data-menu]) body[data-page="index"] .bar .btn { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }

.sheetmenu {
  position: fixed; inset: var(--bar) 0 auto 0; z-index: 29;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--hair);
  padding: 1rem var(--gut) 1.75rem;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .32s var(--ui), visibility 0s linear .32s;
}
html[data-menu] .sheetmenu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .32s var(--ui); }
.sheetmenu a.big { display: block; text-decoration: none; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 2.25rem; line-height: 1.15; border-bottom: 1px solid var(--hair); padding: .35rem 0; }
.sheetmenu a.big:hover { color: var(--blue); }
.sheetmenu .btn { margin-top: 1.25rem; }

/* ---------- the stage: the home page's drawing ---------- */

.stage {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--bar));
  padding: calc(var(--bar) + clamp(2rem, 5vw, 4rem)) 0 clamp(3rem, 6vw, 5rem);
  background:
    linear-gradient(rgba(234,242,248,.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(234,242,248,.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(234,242,248,.13) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(234,242,248,.13) 1px, transparent 1px) 0 0 / 120px 120px,
    var(--cyan);
  color: #fff;
}
.stage-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
.pitch h1 { margin: 0 0 1.5rem; max-width: 11ch; font-size: clamp(3rem, 6vw, 5.6rem); }
.pitch .lede { color: var(--line-w); opacity: .9; }
.pitch .cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2rem; }
.pitch .btn.line { color: #fff; border-color: rgba(255,255,255,.7); }
.pitch .btn.line:hover { background: #fff; color: var(--cyan); border-color: #fff; }
.pitch .star { color: var(--cyan-muted); }
.pitch .star:hover { color: #fff; }
.pitch .works { margin-top: 1.75rem; font-size: .9375rem; color: var(--cyan-muted); max-width: 44ch; }

/* The headline, drawn: on hover the letterforms become cutouts onto a
   revision-yellow sheet, in a soft circle that follows the cursor. */
@property --reveal { syntax: "<length>"; inherits: false; initial-value: 0px; }
.drawn { position: relative; }
.drawn-base { display: block; }
.drawn-grid {
  position: absolute; inset: 0; display: block; pointer-events: none; color: transparent;
  background-image:
    linear-gradient(var(--letterLine) 1px, transparent 1px),
    linear-gradient(90deg, var(--letterLine) 1px, transparent 1px),
    linear-gradient(var(--letterFill), var(--letterFill));
  background-size: 13px 13px, 13px 13px, 100% 100%;
  background-position: var(--mx, 50%) var(--my, 50%), var(--mx, 50%) var(--my, 50%), 0 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  --reveal: 0px;
  -webkit-mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 0, #000 var(--reveal), transparent calc(var(--reveal) + 46px));
  mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 0, #000 var(--reveal), transparent calc(var(--reveal) + 46px));
  opacity: 0;
  transition: --reveal .5s var(--in), opacity .22s var(--ui);
}
@media (hover: hover) and (pointer: fine) { .drawn:hover .drawn-grid { opacity: 1; --reveal: 170px; } }

/* ---------- sections ---------- */

section { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--hair); }
section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
section.blue {
  border-top: 0; color: #fff;
  background:
    linear-gradient(rgba(234,242,248,.06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(234,242,248,.06) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--cyan);
}
section.blue .head p { color: var(--line-w); opacity: .88; }
section.blue .head p a { color: #fff; }
section.paper2 { background: var(--sheet-2); }
.head { display: grid; gap: 1rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); max-width: 48rem; }
.head p { margin: 0; color: var(--soft); }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split > * { min-width: 0; }
.split .head { position: sticky; top: calc(var(--bar) + 2rem); margin-bottom: 0; }

/* ---------- transcripts: real output, printed to a terminal ---------- */

.tabs { display: flex; gap: .35rem; }
.tab {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: .7rem; text-align: left;
  background: var(--sheet-2); border: 1px solid var(--hair); border-bottom: 0; cursor: pointer;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: .55rem .8rem .5rem .55rem; flex: 1; min-width: 0;
  transition: color .16s var(--ui), background-color .16s var(--ui);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: #fff; background: var(--term); border-color: var(--term); }
.tab b { display: block; font-size: .8125rem; }
.tab span { display: block; text-transform: none; letter-spacing: 0; font-size: .75rem; line-height: 1.3; }
.panel { background: var(--term); color: #E6EDF4; border: 1px solid var(--term); }
.panel[hidden] { display: none; }
.panel .what { padding: .9rem 1.25rem; margin: 0; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--term-muted); font-size: .875rem; max-width: none; }
/* minmax(0, 1fr), or a wide decision sheet stretches the grid past the phone. */
.chat { margin: 0; padding: 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.chat .you, .chat .fm, .chat .gap { max-width: none; }
.chat .you, .chat .fm { margin: 0; font-family: var(--mono); font-size: .8125rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat .you { color: var(--term-muted); }
.chat .you::before { content: "\276F  "; color: var(--green); }
.chat .fm { color: #E6EDF4; border-left: 2px solid var(--yellow); padding-left: 1rem; }
.chat .fm b { font-weight: 700; color: var(--yellow); }
.chat .fm a { color: #8DB3E8; }
.chat pre.sheetout { margin: .5rem 0; overflow-x: auto; white-space: pre; font-size: .78rem; line-height: 1.6; background: var(--term-2); border: 1px solid rgba(255,255,255,.08); padding: .75rem .9rem; color: #E6EDF4; }
.chat .gap { font-family: var(--mono); font-size: .75rem; color: var(--term-muted); border-top: 1px dashed rgba(255,255,255,.14); padding-top: .9rem; margin: 0; }
.chat table.mini { display: block; overflow-x: auto; min-width: 0; width: 100%; margin: .5rem 0; font-family: var(--mono); font-size: .75rem; line-height: 1.5; white-space: normal; border-collapse: collapse; }
.chat table.mini th, .chat table.mini td { padding: .45rem .6rem; border: 1px solid rgba(255,255,255,.12); min-width: 9rem; text-align: left; vertical-align: top; }
.chat table.mini thead th { color: var(--yellow); background: var(--term-2); font-weight: 700; }
.source { margin: .9rem 0 0; font-size: .875rem; color: var(--muted); max-width: none; }

pre.print {
  margin: 0; overflow-x: auto;
  font-family: var(--mono); font-size: .8125rem; line-height: 1.7;
  background: var(--term); color: #E6EDF4; border: 1px solid var(--term); padding: 1.25rem 1.35rem;
}

/* ---------- comparison ---------- */

.tag { display: inline-block; font: 700 .6875rem var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: .2rem .45rem; margin-right: .35rem; }
.tag.no { color: #fff; background: var(--coral-ink); }
.tag.ok { color: #fff; background: var(--green-ink); }

.scroller { overflow-x: auto; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .9875rem; }
th, td { text-align: left; padding: .85rem .9rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
thead th { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-bottom-color: var(--rule); }
tbody th { font-weight: 600; width: 20%; }
td.was { color: var(--coral-ink); }
tbody tr { transition: background-color .16s var(--ui); }
tbody tr:hover { background: var(--sheet-2); }

/* ---------- the eight steps, each beside the real thing it produced ---------- */

.steps-wrap > * { min-width: 0; }
.steps-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 3rem minmax(9rem, 13rem) 1fr; gap: 1rem 1.5rem;
  align-items: baseline; padding: 1.05rem .5rem 1.05rem 0; border-bottom: 1px solid var(--hair);
  transition: background-color .16s var(--ui);
}
.row:hover, .row:focus-within { background: linear-gradient(90deg, color-mix(in srgb, var(--yellow) 18%, transparent), transparent 80%); }
.row .n { font-family: var(--mono); font-size: .8125rem; color: var(--blue); padding-left: .5rem; }
.row .t { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.row .g { margin: 0; color: var(--soft); max-width: 60ch; }
.steps-wrap .row { grid-template-columns: 2.75rem 1fr; gap: .35rem .5rem; padding-block: .9rem; }
.steps-wrap .row .t { font-size: 1.3rem; }
.steps-wrap .row .g { grid-column: 2; font-size: .9375rem; }
/* ---------- toolbelt ---------- */

.belt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.tool {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem; gap: .6rem 1.25rem; align-content: start;
  padding: 1.6rem 1.6rem 1.4rem; text-decoration: none; color: #fff;
  background: var(--cyan-2); border: 1px solid rgba(234,242,248,.22); border-top: 4px solid var(--tool);
  transition: background-color .2s var(--ui), transform .2s var(--ui), border-color .2s var(--ui);
}
.tool:hover { background: #22609C; transform: translateY(-3px); border-color: rgba(234,242,248,.4); border-top-color: var(--tool); }
.tool .copy-col { display: grid; gap: .6rem; align-content: start; min-width: 0; }
.tool h3 { display: flex; align-items: baseline; gap: .6rem; font-size: 1.75rem; }
.tool h3 .go { font-family: var(--mono); font-size: .875rem; color: var(--tool); transition: transform .24s var(--ui); }
.tool:hover h3 .go { transform: translateX(4px); }
.tool .cmd { font-family: var(--mono); font-size: .8125rem; color: var(--tool); overflow-wrap: anywhere; }
.tool p { margin: 0; color: var(--line-w); opacity: .9; }
.tool pre {
  grid-column: 1 / -1; margin: .4rem 0 0; font-family: var(--mono); font-size: .75rem; line-height: 1.6; color: #E6EDF4;
  white-space: pre-wrap; overflow-wrap: anywhere; background: var(--term); padding: .75rem .9rem; border-left: 2px solid var(--tool);
}

/* ---------- inventory ---------- */

.box { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); background: var(--paper); }
.cell { padding: 1.5rem 1.4rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cell .n { font-family: var(--display); font-weight: 700; font-size: 3.5rem; line-height: .85; color: var(--blue); display: block; margin-bottom: .6rem; }
.cell:nth-child(2) .n { color: var(--coral-ink); }
.cell:nth-child(3) .n { color: var(--green-ink); }
.cell:nth-child(4) .n { color: var(--yellow-ink); }
.cell h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.cell p { font-size: .9375rem; color: var(--soft); margin: 0; }

/* ---------- install ---------- */

.install { display: grid; gap: 2rem; max-width: 52rem; }
.install > div { min-width: 0; }
.install h3 { margin-bottom: .65rem; }
.copyrow { display: flex; gap: .5rem; align-items: stretch; }
.copyrow pre {
  flex: 1; min-width: 0; margin: 0; overflow-x: auto;
  background: var(--term); color: #E6EDF4; border: 1px solid var(--term);
  padding: .85rem 1rem; font-size: .875rem; line-height: 1.75;
}
.copy {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  background: transparent; color: var(--muted); border: 1px solid var(--rule);
  padding: 0 .9rem; cursor: pointer; white-space: nowrap; min-width: 5.5rem;
  transition: color .16s var(--ui), border-color .16s var(--ui), background-color .16s var(--ui);
}
.copy:hover { color: var(--ink); border-color: var(--ink); }
.copy[data-done] { color: var(--on-yellow); background: var(--yellow); border-color: var(--yellow); }

/* ---------- inner pages ---------- */

.pagehead { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem); }
.pagehead.has-art { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.crumbs { font-family: var(--mono); font-size: .8125rem; color: var(--muted); margin: 0 0 1.25rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.pagehead h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); max-width: 14ch; margin-bottom: 1.5rem; }
.pagehead .copyrow { max-width: 40rem; margin-top: 2rem; }
.pagehead[data-tool] .crumbs b { color: var(--ink); box-shadow: inset 0 -.45em 0 color-mix(in srgb, var(--tool) 45%, transparent); font-weight: 400; }
.asks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.25rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9375rem; }
.asks li::before { content: "\201C"; }
.asks li::after { content: "\201D"; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--rule); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--hair); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .8125rem; color: var(--blue); padding-top: .2rem; }
.steps li p { margin: 0; color: var(--soft); }
.steps li strong { color: var(--ink); }

.prose { max-width: 44rem; }
.prose p, .prose li { color: var(--soft); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose strong { color: var(--ink); }


.others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.others a { display: grid; grid-template-columns: 4.5rem 1fr; gap: .3rem 1rem; align-items: center; padding: 1.1rem 1.2rem; text-decoration: none; border: 1px solid var(--hair); border-top: 3px solid var(--tool, var(--blue)); background: var(--paper); transition: background-color .2s var(--ui), transform .2s var(--ui); }
.others a:hover { background: var(--sheet-2); transform: translateY(-2px); }
.others .t { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.others .d { font-size: .9375rem; color: var(--soft); }

figure.shot { margin: 2rem 0 0; }
figure.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
figure.shot figcaption { margin-top: .75rem; font-family: var(--mono); font-size: .75rem; color: var(--muted); }

/* Changelog */
.versions { margin: 0 0 3rem; padding: 0; list-style: none; columns: 2; column-gap: 2rem; font-family: var(--mono); font-size: .875rem; }
.versions li { padding: .3rem 0; border-bottom: 1px solid var(--hair); break-inside: avoid; }
.versions a { text-decoration: none; }
.versions a:hover { color: var(--blue); }
.log { max-width: 46rem; }
.log h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin: 3.5rem 0 1.25rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.log h2:first-child { margin-top: 0; }
.log h2 a { text-decoration: none; }
.log h2 a:hover { color: var(--blue); }
.log p, .log li { color: var(--soft); }
.log .kind { font-family: var(--mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: 1.5rem 0 .5rem; }
.log ul { padding-left: 1.2rem; }
.log li { margin-bottom: .6rem; }

/* ---------- footer: the blueprint sheet ---------- */

footer { padding: 2.5rem 0 2rem; }
.sheetfoot { position: relative; overflow: hidden; isolation: isolate; background: var(--sheet); color: var(--sheetText); border-radius: 14px; padding: 2.5rem 2rem 0; }
.sheetfoot::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(127,168,220,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(127,168,220,.16) 1px, transparent 1px);
  background-size: 26px 26px;
}
.sheetfoot > * { position: relative; z-index: 1; }
.foothead { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; justify-content: space-between; align-items: flex-start; }
.foothead p { font-size: .9375rem; color: rgba(234,241,250,.78); max-width: 44ch; margin: 0; }
.foothead a { color: var(--sheetText); text-decoration: none; border-bottom: 1px solid rgba(127,168,220,.6); transition: color .16s var(--ui), border-color .16s var(--ui); }
.foothead a:hover { border-color: var(--amber); color: var(--amber); }
.stamp { display: inline-block; border: 1px solid rgba(127,168,220,.7); padding: .35rem .6rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(234,241,250,.88); margin-bottom: .875rem; }
.links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.links a { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 1px solid rgba(127,168,220,.45); padding: .55rem .75rem; color: var(--sheetText); transition: border-color .16s var(--ui), color .16s var(--ui); }
.links a:hover { border-color: var(--amber); color: var(--amber); }
.wordrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.wordmark { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(3.5rem, 15.5vw, 11rem); line-height: .78; letter-spacing: -.01em; color: var(--sheetText); margin: 0 0 -.09em; user-select: none; }
.foreman { position: relative; flex: none; padding: 0; border: 0; background: none; cursor: pointer; width: clamp(7rem, 20vw, 13rem); margin-bottom: -2px; }
.foreman img { width: 100%; height: auto; display: block; image-rendering: pixelated; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); transition: transform .24s var(--ui); }
.foreman:hover img { transform: translateY(-3px); }
.foreman:active img { transform: translateY(1px); }
.inked { position: absolute; z-index: 2; pointer-events: none; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.4rem, 3.4vw, 2.4rem); line-height: 1; color: var(--amber); border: 3px solid var(--amber); border-radius: 6px; padding: .3rem .6rem; mix-blend-mode: screen; opacity: .9; }
.footrule { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between; border-top: 1px solid rgba(127,168,220,.35); margin-top: 1rem; padding: .85rem 0 1.25rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(234,241,250,.66); }

/* ---------- entrances ----------
   The pitch arrives once, on load. The board plays its own sequence from
   site.js. The resting state is the finished page in both cases. */

@media (prefers-reduced-motion: no-preference) {
  html.play .enter { animation: rise .8s var(--in) both; animation-delay: var(--d, 0ms); }
  .inked { animation: ink .42s var(--ui) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes ink { from { opacity: 0; transform: scale(1.6) rotate(var(--r, -8deg)); } to { transform: scale(1) rotate(var(--r, -8deg)); } }

/* ---------- responsive ---------- */

@media (max-width: 68rem) {
  .stage-grid { grid-template-columns: 1fr; }
  .pitch h1 { max-width: 13ch; }
}
@media (max-width: 60rem) {
  .split .head { position: static; margin-bottom: 1.75rem; }
  .box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .steps-wrap { grid-template-columns: minmax(0, 1fr); }
  .viewer { position: static; }
}
@media (max-width: 52rem) {
  .bar .wrap { grid-template-columns: 1fr auto; }
  .nav, .tools .btn { display: none; }
  .menubtn { display: inline-grid; }
  .belt, .others { grid-template-columns: 1fr; }
  .row { grid-template-columns: 2.5rem 1fr; }
  .row .g { grid-column: 2; }
  .versions { columns: 1; }
  .pagehead.has-art { grid-template-columns: 1fr; }
  .tabs { flex-direction: column; gap: 0; }
  .tab { border-bottom: 1px solid var(--hair); }
}
@media (max-width: 34rem) {
  :root { --gut: 1.25rem; }
  body { font-size: 1rem; }
  .lede { font-size: 1.0625rem; }
  .copyrow { flex-direction: column; align-items: stretch; }
  .copy { padding: .6rem .9rem; align-self: flex-start; }
  .box { grid-template-columns: 1fr; }
  .tool { grid-template-columns: 1fr; padding: 1.4rem 1.25rem 1.25rem; }
  footer { padding: 1.75rem 0 1.5rem; }
  .sheetfoot { padding: 1.75rem 1.25rem 0; border-radius: 10px; }
  .wordrow { margin-top: 1.75rem; gap: .5rem; }
  .wordmark { font-size: 3.75rem; }
  .foreman { width: 6rem; }
  .links a { padding: .5rem .6rem; }
}
@media (max-width: 24rem) {
  .wordmark { font-size: 3.1rem; }
  .foreman { width: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}



/* ---------- the band: every inner page opens on the drawing ---------- */

.band {
  margin-top: calc(-1 * var(--bar)); padding-top: var(--bar); color: #fff;
  background:
    linear-gradient(rgba(234,242,248,.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(234,242,248,.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(234,242,248,.12) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(234,242,248,.12) 1px, transparent 1px) 0 0 / 120px 120px,
    var(--cyan);
  border-bottom: 4px solid var(--tool, var(--yellow));
}
.band + section { border-top: 0; }
html:not([data-scrolled]):not([data-menu]) body:has(.band) .bar { color: #fff; }
html:not([data-scrolled]):not([data-menu]) body:has(.band) .bar .btn { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.band .crumbs { color: var(--cyan-muted); }
.band .crumbs a:hover { color: #fff; }
.band .lede { color: var(--line-w); opacity: .9; }
.band .asks { color: var(--cyan-muted); }
.band .copy { color: var(--line-w); border-color: rgba(234,242,248,.45); }
.band .copy:hover { color: #fff; border-color: #fff; }
.band .copyrow pre { border-color: rgba(234,242,248,.25); }
.band .btn.line { color: #fff; border-color: rgba(255,255,255,.7); }
.band .btn.line:hover { background: #fff; color: var(--cyan); }
.band[data-tool="board"] { --tool: #7FB2E5; }
.band a:focus-visible, .band button:focus-visible { outline-color: var(--yellow); }
.pagehead[data-tool] .crumbs b { color: #fff; }

/* Commands read in light ink on the blue; the tool's colour marks the edge. */
.tool .cmd { color: var(--line-w); border-left: 3px solid var(--tool); padding-left: .55rem; }
/* The tags keep their dark inks in both themes, so white stays readable on them. */
.tag.no { background: #C2412D; }
.tag.ok { background: #1E7F52; }

/* ---------- windows: real output, framed plainly ---------- */

.window { margin: 0; background: var(--term); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; overflow: hidden; box-shadow: 0 28px 60px -28px rgba(3, 18, 36, .75); color: #E6EDF4; min-width: 0; }
.window .chrome { display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem; background: #0A1019; border-bottom: 1px solid rgba(255,255,255,.08); font: .6875rem/1.3 var(--mono); letter-spacing: .02em; color: var(--term-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window .chrome::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); }
.window pre { margin: 0; padding: 1rem 1.1rem 1.1rem; font: .75rem/1.65 var(--mono); white-space: pre; overflow-x: auto; color: #E6EDF4; }
.window.card pre { font-size: .6875rem; line-height: 1.35; }
.window.browser { background: #fff; }
.window.browser .chrome { background: #ECEFF3; color: #39414B; border-bottom-color: #D7DCE2; }
.window.browser .chrome::before { background: var(--green-ink); width: .5rem; height: .6rem; border-radius: 2px; }
.window.browser .url { background: #fff; border: 1px solid #D7DCE2; border-radius: 999px; padding: .15rem .7rem; }
.window.browser img { display: block; width: 100%; height: auto; }
.window.tall img { aspect-ratio: 1200 / 900; object-fit: cover; object-position: top; }
.pagehead .window { justify-self: stretch; max-width: 34rem; width: 100%; }
.pagehead.has-art { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.pagehead .window { max-width: 38rem; }
@media (max-width: 52rem) {
  .pagehead.has-art { grid-template-columns: minmax(0, 1fr); }
}
/* Output too wide for a column, a Survey sheet or a launch checklist, sits under the heading at full width rather than being cut. */
.pagehead.has-art.stack { grid-template-columns: minmax(0, 1fr); }
.pagehead.stack .window { max-width: none; }
.window.tall img { aspect-ratio: 4 / 5; }
.window.card-img { background: #0E1116; max-width: 26rem; }
.window.card-img .chrome { background: #0A1019; color: var(--term-muted); border-bottom-color: rgba(255,255,255,.08); }
.window.card-img .url { background: transparent; border: 0; padding: 0; }

/* ---------- the showcase: a real session, and the page it built ---------- */

.showcase { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.showcase .session { width: 78%; }
.showcase .session-body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .8rem; max-height: 23rem; overflow: hidden; }
.showcase .session-body .you, .showcase .session-body .fm { margin: 0; font: .75rem/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.showcase .session-body .you { color: var(--term-muted); }
.showcase .session-body .you::before { content: "\276F  "; color: var(--green); }
.showcase .session-body .fm { border-left: 2px solid var(--yellow); padding-left: .85rem; color: #E6EDF4; }
.showcase .session-body .fm b { color: var(--yellow); }
.showcase .session-body .gap { margin: 0; font: italic .75rem/1.5 var(--mono); color: var(--term-muted); }
.showcase .site { width: 72%; justify-self: end; margin-top: -16%; position: relative; z-index: 2; }
.showcase .site img { aspect-ratio: 1280 / 800; object-fit: cover; object-position: top; }
.showcase .fig { margin: 1rem 0 0; font: .75rem/1.5 var(--mono); color: var(--cyan-muted); max-width: none; }
@media (max-width: 52rem) {
  .showcase .session { width: 100%; }
  .showcase .site { width: 88%; margin-top: -8%; }
  .showcase .session-body { max-height: 17rem; }
}

/* ---------- the comparison: two real pages from one brief ---------- */

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.pair figure { margin: 0; }
.pair .window { box-shadow: 0 18px 40px -24px rgba(10, 20, 40, .45); }
.pair .window img { aspect-ratio: 1280 / 800; object-fit: cover; object-position: top; }
.pair .notes { margin: .9rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .9375rem; color: var(--soft); }
.pair .notes li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .4rem; }
.pair .notes li::before { font: 700 .875rem var(--mono); }
.pair .no li::before { content: "\2715"; color: var(--coral-ink); }
.pair .ok li::before { content: "\2713"; color: var(--green-ink); }
.pair .label { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; font-size: .9375rem; color: var(--soft); }
@media (max-width: 60rem) { .pair { grid-template-columns: 1fr; } }

/* ---------- the step viewer: each step's real artifact ---------- */

.viewer { position: sticky; top: calc(var(--bar) + 2rem); }
.viewer .window { max-height: 34rem; }
.viewer .window img { max-height: 30rem; object-fit: cover; object-position: top; }
.viewer .window pre { max-height: 30rem; overflow: auto; }
.viewer .cap { margin: .75rem 0 0; font: .75rem/1.5 var(--mono); color: var(--muted); max-width: none; }
.rows .row[role="tab"] { cursor: pointer; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; color: inherit; }
.rows .row[aria-selected="true"] { background: linear-gradient(90deg, color-mix(in srgb, var(--yellow) 26%, transparent), transparent 85%); }
.rows .row[aria-selected="true"] .n { color: var(--ink); font-weight: 700; }

/* Keyboard users can enter and scroll the recorded output and wide tables. */
pre:focus-visible, table:focus-visible, .scroller:focus-visible, .print:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.window pre:focus-visible, .band pre:focus-visible { outline-color: var(--yellow); }
