/* Storeyline Builder Lite launch page: layout and components.
   Uses ONLY variables from tokens.css for colour, type, radii and spacing
   (px literals left here are element geometry: icon boxes, bar heights, and
   the app components' own paddings, copied so the pictures match the app).
   Styled to Storeyline Brand Book v1.0. Mobile-first; desktop from 880px. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--c-paper); color: var(--c-ink);
  font-family: var(--font-ui); font-size: var(--fs-body); font-weight: var(--fw-regular); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: var(--bw-strong) solid var(--c-cobalt); outline-offset: 3px; }
.wrap { max-width: var(--w-reading); margin: 0 auto; padding: 0 var(--gutter); }
.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; }
.nobr { white-space: nowrap; }

/* Type roles (book p.09-10). Sentence case everywhere; uppercase only on chips and tags. */
h1, h2, h3, h4 { font-family: var(--font-ui); font-weight: var(--fw-medium); color: inherit; text-wrap: balance; }
h1 { font-size: var(--fs-display-l); line-height: var(--lh-tight); letter-spacing: var(--ls-display); margin-bottom: var(--s-5); text-wrap: pretty; }
h2 { font-size: var(--fs-display-m); line-height: var(--lh-snug); letter-spacing: var(--ls-display); margin-bottom: var(--s-5); }
h3 { font-size: var(--fs-title); line-height: var(--lh-snug); letter-spacing: var(--ls-title); margin-bottom: var(--s-2); }
p + p { margin-top: var(--s-4); }
.lede { font-size: var(--fs-body-l); }
.fine { font-size: var(--fs-body-s); color: var(--c-stone); margin-top: var(--s-4); }
.meta { font-family: var(--font-ui); font-size: var(--fs-meta); font-weight: var(--fw-regular); color: var(--c-stone); letter-spacing: 0; text-transform: none; }
.figure { font-family: var(--font-mono); font-size: var(--fs-meta); font-weight: var(--fw-medium); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.narrow { max-width: 24ch; }
.em-clay { color: var(--c-clay); } /* book p.10: clay = the builder's world, h1/h2 only */
.pull {
  font-size: var(--fs-title); font-weight: var(--fw-medium);
  line-height: 1.3; letter-spacing: var(--ls-title); text-wrap: balance;
  max-width: 28ch; margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: var(--bw) solid var(--c-line);
}
.text-link { color: var(--c-cobalt); font-weight: var(--fw-medium); text-underline-offset: 3px; }

/* Buttons (book p.11): primary = flat cobalt pill, dips 1px on press; ghost for secondary. */
.btn {
  display: inline-block; text-align: center; text-decoration: none; cursor: pointer;
  font-family: var(--font-ui); font-weight: var(--fw-medium); font-size: var(--fs-body); line-height: 1;
  color: var(--c-on-signal); background: var(--c-cobalt); border: var(--bw) solid var(--c-cobalt);
  border-radius: var(--r-pill); padding: var(--s-4) var(--s-6); white-space: nowrap;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { background: var(--c-cobalt-press); border-color: var(--c-cobalt-press); }
.btn:active { transform: translateY(var(--press-dip)); }
.btn--ghost { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { background: var(--c-surface); border-color: var(--c-stone); }
.btn--block { display: block; width: 100%; }
.btn--on-ink { background: var(--c-cobalt); border-color: var(--c-cobalt); color: var(--c-on-signal); }
.btn--on-ink:hover { background: var(--c-cobalt-press); border-color: var(--c-cobalt-press); }

/* ---------------------------------------------------------------------
   Product primitives, ported from the app (src/components/ui).
   --------------------------------------------------------------------- */

/* StatusChip, size sm: mono uppercase pill with a dot. Fixed colours:
   capture = clay, captured = green, exists = cobalt, all with white text
   (founder rule; the book's one knowing exception to AA). */
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2); flex: none; white-space: nowrap;
  padding: 5px 11px; border: var(--bw) solid transparent; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: var(--fw-medium); line-height: 1;
  text-transform: uppercase; letter-spacing: 1px;
  transition: background-color var(--dur-base) var(--ease);
}
.chip__dot { width: 6px; height: 6px; border-radius: var(--r-pill); background: currentColor; flex: none; }
.chip--capture { background: var(--c-clay); color: var(--c-on-signal); }
.chip--captured { background: var(--c-green); color: var(--c-on-signal); }
.chip--exists { background: var(--c-cobalt); color: var(--c-on-signal); }
.chip--scheduled { background: var(--c-paper); color: var(--c-stone); border-color: var(--c-stone); }

/* Tag: the week · day stamp on a post card. */
.tag {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: var(--s-1) var(--s-2); border: var(--bw) solid var(--c-line); border-radius: var(--r-chip);
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: var(--fw-medium); line-height: 1;
  text-transform: uppercase; letter-spacing: 1px; color: var(--c-stone);
}
.pi { display: block; flex: none; }

/* PostCard: the product's signature object. */
.pc { overflow: hidden; background: var(--c-surface); border: var(--bw) solid var(--c-line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.pc__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) 20px; border-bottom: var(--bw) solid var(--c-line); background: var(--c-paper); }
.pc__id { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.pc__plat { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-card-head); font-weight: var(--fw-semibold); line-height: 1.3; color: var(--c-ink); }
.pc__body { padding: 20px; }
.pc__copy { font-size: var(--fs-card-copy); line-height: 1.5; color: var(--c-ink); }
.pc__brief { margin-top: 18px; padding: 14px var(--s-4); border-left: 3px solid var(--c-cobalt); border-radius: 0 var(--r-input) var(--r-input) 0; background: var(--c-paper); }
.pc__brief-k { margin-bottom: var(--s-2); font-size: var(--fs-meta-s); line-height: 1.4; color: var(--c-cobalt); }
.pc__brief p + p, .pc__brief-k + p { margin-top: 0; }
.pc__brief p:last-child { font-size: var(--fs-brief); line-height: 1.625; color: var(--c-ink-80); }

/* CadenceCalendar event tile: a post on its date, or a capture on its
   shoot date. The surface is the stream: booked = cobalt wash, planned =
   dashed cobalt outline, capture = clay wash, posted = greyed. */
.ev { position: relative; display: block; width: 100%; margin-bottom: var(--s-1); padding: 6px; border: var(--bw) solid transparent; border-radius: var(--r-input); text-align: left; }
.ev--booked { background: var(--c-cobalt-12); }
.ev--planned { background: var(--c-surface); border-style: dashed; border-color: color-mix(in srgb, var(--c-cobalt) 40%, transparent); }
.ev--capture { background: var(--c-clay-12); }
.ev--posted { background: var(--c-paper-2); }
.ev__in { display: block; }
.ev--posted .ev__in { opacity: 0.55; filter: grayscale(1); }
.ev__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: var(--fs-meta-s); line-height: 1.4; color: var(--c-ink-80); }
.ev__proj { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev__topic { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; font-size: var(--fs-caption); line-height: 1.3; color: var(--c-ink); }
.ev__facts { display: flex; flex-direction: column; gap: 2px; margin-top: var(--s-1); }
.fact { display: flex; align-items: center; gap: var(--s-1); font-size: var(--fs-label); line-height: 1.2; color: var(--c-ink-80); white-space: nowrap; }
.fact__dot { width: 6px; height: 6px; border-radius: var(--r-pill); flex: none; transition: background-color var(--dur-base) var(--ease); }
.fact__dot--capture { background: var(--c-clay); }
.fact__dot--captured { background: var(--c-green); }
.fact__dot--exists { background: var(--c-cobalt); }
.fact__dot--scheduled { background: var(--c-stone); }
/* Ready to go: capture done and the post scheduled. */
.ev__seal { position: absolute; right: 6px; bottom: 6px; width: 16px; height: 16px; fill: var(--c-green); stroke: var(--c-on-signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Sections and surfaces */
.section { padding: var(--section-pad) 0; }
.band-alt { background: var(--c-surface); border-top: var(--bw) solid var(--c-line); border-bottom: var(--bw) solid var(--c-line); }
.band-ink { background: var(--c-dark-paper); color: var(--c-dark-text); }
.band-ink .fine { color: var(--c-dark-stone); }
.card { background: var(--c-surface); border: var(--bw) solid var(--c-line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.band-alt .card { background: var(--c-paper); box-shadow: none; }
/* Lit: a cobalt outline that marks the page's key pictures, the way the
   app lights the Generator's working storey (Yianni, 5 Nov 2026). */
.card--lit { border: var(--bw-strong) solid var(--c-cobalt); }
.split { display: grid; gap: var(--s-6); }
.split__copy > p { max-width: var(--measure); }
.split__visual { min-width: 0; }
.fig-note { font-size: var(--fs-meta); color: var(--c-stone); margin-top: var(--s-3); }

/* Header + logo (book p.05-06): clear space = 1x mark height on every side. */
.site-header { background: var(--c-paper); border-bottom: var(--bw) solid var(--c-line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--logo-mark-mobile); padding-bottom: var(--logo-mark-mobile); padding-left: max(var(--gutter), var(--logo-mark-mobile)); }
.site-header__cta { display: none; }
.logo { --m: var(--logo-mark-mobile); display: inline-flex; align-items: center; gap: calc(var(--m) * var(--logo-gap-ratio)); text-decoration: none; color: var(--c-ink-deep); }
.logo__mark { width: var(--m); height: var(--m); }
.logo--on-ink { color: var(--c-dark-text); }
.logo__word { font-family: var(--font-wordmark); font-weight: var(--fw-wordmark); font-size: calc(var(--m) * var(--logo-word-ratio)); letter-spacing: var(--logo-track-small); line-height: 1; }
.logo__word em { font-style: italic; margin-left: var(--logo-italic-pull); }

/* ---------------------------------------------------------------------
   Hero: a drawing sheet, and the post Storeyline drafted from it.
   --------------------------------------------------------------------- */
.hero { padding-top: var(--s-7); }
.hero h1 { text-wrap: balance; }
.hero__grid { display: grid; gap: var(--s-6); }
.cta-row { margin-top: var(--s-5); }
.cta-row .btn { display: block; width: 100%; }
.hero__secondary { display: block; width: 100%; margin-top: var(--s-3); }
.cta-row .hero__secondary { margin-top: var(--s-3); }

.sheet-stage { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); min-width: 0; }
.sheet { position: relative; overflow: hidden; background: var(--c-surface); box-shadow: var(--shadow-raised); }
.sheet .dwg, .sheet img { display: block; width: 100%; height: auto; }
.dwg .d-frame { fill: none; stroke: var(--c-drawing); stroke-width: 1.2; }
.dwg .d-thin { fill: none; stroke: var(--c-drawing-thin); stroke-width: 0.6; }
.dwg .d-grid { stroke-dasharray: 14 3 2 3; }
.dwg .d-dash { stroke-dasharray: 6 4; }
.dwg .d-hatch { fill: none; stroke: var(--c-drawing-thin); stroke-width: 0.5; }
.dwg .d-dot { fill: var(--c-drawing-thin); }
.dwg .d-ground { stroke: var(--c-drawing); stroke-width: 1.4; }
.dwg .d-cut { stroke: var(--c-drawing); stroke-width: 2; }
.dwg .d-reo { stroke: var(--c-drawing); stroke-width: 1; }
.dwg .d-tick { stroke: var(--c-drawing); stroke-width: 1; }
.dwg .d-paper { fill: var(--c-surface); }
.dwg .d-pipe, .dwg .d-bubble { fill: var(--c-surface); stroke: var(--c-drawing); stroke-width: 0.9; }
.dwg .d-redact { fill: var(--c-ink); }
.dwg .d-stamp { fill: none; stroke: var(--c-clay-text); stroke-width: 1; }
.dwg .d-pin { fill: var(--c-cobalt); }
/* The builder's mark-up: where the story is on the sheet. */
.dwg .d-mark { fill: none; stroke: var(--c-cobalt); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; }
.dwg .d-ripple { fill: none; stroke: var(--c-cobalt); stroke-width: 1; opacity: 0; }
.dwg .d-pin-g, .dwg .d-ripple { transform-box: fill-box; transform-origin: center; }
.dwg .d-t { fill: var(--c-drawing); font-family: var(--font-ui); font-size: 9px; }
.dwg .d-t--mono { font-family: var(--font-mono); font-size: 8px; }
.dwg .d-t--xs { font-size: 6.5px; }
.dwg .d-t--s { font-size: 9px; }
.dwg .d-t--m { font-size: 10px; }
.dwg .d-t--title { font-size: 10px; font-weight: var(--fw-semibold); }
.dwg .d-t--label { font-size: 6px; fill: var(--c-stone); }
.dwg .d-t--big { font-size: 13px; font-weight: var(--fw-semibold); }
.dwg .d-stamp-t { fill: var(--c-clay-text); font-size: 7.5px; font-weight: var(--fw-semibold); letter-spacing: 0.6px; }
.dwg .d-pin-t { fill: var(--c-on-signal); font-size: 11px; font-weight: var(--fw-semibold); }
/* The reading sweep (act one of the generation theatre), drawn on the sheet. */
.sheet__scan { position: absolute; left: 0; right: 0; top: 0; height: 18%; background: var(--c-cobalt-12); border-bottom: var(--bw) solid var(--c-cobalt); transform: translateY(-110%); pointer-events: none; }
.sheet-post .pc__copy { font-size: var(--fs-body); }
.sheet-src { display: flex; gap: var(--s-2); align-items: flex-start; margin: 0; font-family: var(--font-mono); font-size: var(--fs-meta-s); line-height: 1.5; color: var(--c-stone); }
.pc__pin { width: 18px; height: 18px; border-radius: var(--r-pill); background: var(--c-cobalt); color: var(--c-on-signal); font-family: var(--font-ui); font-size: 11px; font-weight: var(--fw-semibold); line-height: 18px; text-align: center; flex: none; }
.sheet-stage .fig-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-4); margin-top: 0; }
/* The hero repeats; this stops it (added by components.js when it moves). */
.sheet__pause, .gen__pause { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--c-cobalt); font-size: var(--fs-meta); font-weight: var(--fw-medium); cursor: pointer; transition: color var(--dur-fast) var(--ease); }
@media (pointer: coarse) { .sheet__pause, .gen__pause { min-height: 44px; } }
.sheet__pause:hover, .gen__pause:hover { color: var(--c-cobalt-press); }
.sheet__pause svg, .gen__pause svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }

/* Problem: the builder's own programme (a document, not an app screen). */
.gantt { padding: var(--s-4); margin: 0; }
.gantt__head { display: flex; justify-content: space-between; gap: var(--s-3); padding-bottom: var(--s-2); border-bottom: var(--bw) solid var(--c-line); margin-bottom: var(--s-2); }
.gantt__head .figure { color: var(--c-stone); white-space: nowrap; }
.gantt__row { display: grid; grid-template-columns: 8.4em 1fr; align-items: center; gap: var(--s-2); min-height: 28px; border-bottom: var(--bw) solid var(--c-line); }
.gantt__label { font-size: var(--fs-meta); line-height: var(--lh-snug); }
.gantt__track { width: 100%; height: 14px; display: block; }
.gantt__tick { stroke: var(--c-line); stroke-width: 0.3; vector-effect: non-scaling-stroke; }
.gantt__bar { fill: var(--c-bar); transform-box: fill-box; transform-origin: 0 50%; }
.gantt__bar--mkt { fill: var(--c-gap); }
.gantt__row--mkt { border-top: var(--bw) solid var(--c-ink); border-bottom: 0; margin-top: var(--s-1); min-height: 36px; }
.gantt__row--mkt .gantt__label { font-weight: var(--fw-medium); }

/* ---------------------------------------------------------------------
   Turn: the Generator (GeneratorStoreys): one dark docket, three storeys.
   01 Sources (SourceTiles), 02 Levers (the levers row), 03 Campaign
   (GenerationProgress). Theme-constant dark; text uses on-docket tints.
   --------------------------------------------------------------------- */
.turn__intro { display: grid; gap: var(--s-5); }
.turn__intro h2 { margin-bottom: 0; }
.turn__copy > p { max-width: var(--measure); }
.docket { background: var(--c-docket); color: var(--c-on-docket); border-radius: var(--r-card); padding: var(--card-pad); }
.gen { margin-top: var(--s-7); padding: var(--s-4); }
.gen__head { display: grid; gap: var(--s-5); padding: 0 6px; }
.gen__lab { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: var(--fw-medium); letter-spacing: var(--ls-mono); text-transform: uppercase; color: color-mix(in srgb, var(--c-on-docket) 50%, transparent); }
.gen__h { min-height: 3.45em; margin-top: 10px; font-size: var(--fs-display-m); font-weight: var(--fw-medium); line-height: 1.15; letter-spacing: var(--ls-display); text-wrap: balance; color: var(--c-on-docket); }
.gen__h span { color: color-mix(in srgb, var(--c-on-docket) 45%, transparent); }
.gen__ledger { list-style: none; display: flex; flex-direction: column; gap: var(--s-1); min-height: calc(6 * 1.4em + 5 * var(--s-1)); margin: 0; padding: 0; font-size: var(--fs-meta-s); line-height: 1.4; color: color-mix(in srgb, var(--c-on-docket) 55%, transparent); }
.gen__bands { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); }
.gen__band { position: relative; padding: var(--s-4); border: var(--bw) solid color-mix(in srgb, var(--c-on-docket) 12%, transparent); border-radius: var(--r-card); background: color-mix(in srgb, var(--c-on-docket) 5%, transparent); }
.gen__band--line { border-color: var(--c-cobalt); box-shadow: inset 0 0 0 var(--bw) var(--c-cobalt); }
.gen__gut { margin: 0 0 var(--s-4); }
.gen__gut b { display: block; margin-top: 6px; font-size: var(--fs-body-s); font-weight: var(--fw-medium); letter-spacing: var(--ls-title); color: var(--c-on-docket); }
.gen__lab--line { margin-bottom: var(--s-5); color: var(--c-cobalt-soft); }
/* 01 · Sources */
.gen__search { position: relative; display: block; margin-bottom: var(--s-3); }
.gen__search svg { position: absolute; top: 50%; left: var(--s-3); width: 14px; height: 14px; transform: translateY(-50%); fill: none; stroke: color-mix(in srgb, var(--c-on-docket) 55%, transparent); stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.gen__search input { width: 100%; padding: var(--s-2) var(--s-3) var(--s-2) 36px; border: var(--bw) solid color-mix(in srgb, var(--c-on-docket) 15%, transparent); border-radius: var(--r-input); background: color-mix(in srgb, var(--c-on-docket) 4%, transparent); color: var(--c-on-docket); font: inherit; font-size: var(--fs-body); transition: border-color var(--dur-fast) var(--ease); }
.gen__search input::placeholder { color: color-mix(in srgb, var(--c-on-docket) 55%, transparent); }
.gen__search input:hover { border-color: color-mix(in srgb, var(--c-on-docket) 30%, transparent); }
.gen__search input:focus { outline: none; border-color: var(--c-cobalt-soft); }
.gen__search input::-webkit-search-cancel-button { display: none; }
.gen__files { display: flex; flex-direction: column; gap: 10px; }
.gen__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; padding: 10px var(--s-3); border: var(--bw) solid color-mix(in srgb, var(--c-on-docket) 15%, transparent); border-radius: var(--r-input); background: color-mix(in srgb, var(--c-on-docket) 5%, transparent); transition: border-color var(--dur-fast) var(--ease); }
.tile:hover { border-color: color-mix(in srgb, var(--c-on-docket) 35%, transparent); }
.tile__k { display: flex; justify-content: space-between; gap: var(--s-1); font-family: var(--font-mono); font-size: var(--fs-label); font-weight: var(--fw-medium); letter-spacing: var(--ls-mono); text-transform: uppercase; color: color-mix(in srgb, var(--c-on-docket) 45%, transparent); }
.tile__k span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__n { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; margin-top: 14px; font-size: var(--fs-caption); line-height: 1.6; color: color-mix(in srgb, var(--c-on-docket) 85%, transparent); }
.tile--prog { border-color: var(--c-cobalt); background: color-mix(in srgb, var(--c-cobalt) 20%, transparent); }
.tile--prog .tile__k { color: var(--c-cobalt-soft); }
.gen__band--src.is-reading .tile { border-color: color-mix(in srgb, var(--c-cobalt-soft) 60%, transparent); background: none; }
.gen__band--src.is-reading .tile::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--c-cobalt-soft) 12%, transparent); pointer-events: none; }
.gen__more { display: grid; place-items: center; min-height: 64px; padding: 10px var(--s-3); border: var(--bw) dashed color-mix(in srgb, var(--c-on-docket) 25%, transparent); border-radius: var(--r-input); background: none; color: color-mix(in srgb, var(--c-on-docket) 50%, transparent); font: inherit; font-size: var(--fs-caption); cursor: pointer; transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.gen__more:hover { border-color: color-mix(in srgb, var(--c-on-docket) 45%, transparent); color: var(--c-on-docket); }
.gen__none { padding: 10px 0; font-size: var(--fs-caption); color: color-mix(in srgb, var(--c-on-docket) 55%, transparent); }
.gen__add { display: flex; align-items: center; justify-content: center; gap: var(--s-2); padding: var(--s-3) 0; border: 2px dashed color-mix(in srgb, var(--c-on-docket) 25%, transparent); border-radius: var(--r-input); font-size: var(--fs-caption); color: color-mix(in srgb, var(--c-on-docket) 55%, transparent); }
.gen__add span { font-size: var(--fs-title); line-height: 1; }
/* 02 · Levers — the line */
.gen__levers { display: grid; gap: var(--s-5); }
.gen__key { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: var(--fw-medium); letter-spacing: var(--ls-mono); text-transform: uppercase; color: color-mix(in srgb, var(--c-on-docket) 50%, transparent); }
.gen__pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: var(--s-2); }
.gen__pill { display: inline-flex; align-items: center; padding: var(--s-1) 10px; border: var(--bw) solid color-mix(in srgb, var(--c-on-docket) 20%, transparent); border-radius: var(--r-pill); font-size: var(--fs-caption); line-height: 1.45; color: color-mix(in srgb, var(--c-on-docket) 85%, transparent); }
.gen__pill.is-on { border-color: var(--c-on-docket); background: var(--c-on-docket); color: var(--c-docket); font-weight: var(--fw-medium); }
.gen__pill--pair { border-style: dashed; border-color: color-mix(in srgb, var(--c-on-docket) 15%, transparent); color: color-mix(in srgb, var(--c-on-docket) 35%, transparent); }
.gen__dot { width: 6px; height: 6px; margin-right: 6px; border-radius: var(--r-pill); }
.gen__dot--li { background: var(--c-platform-linkedin); }
.gen__dot--ig { background: var(--c-platform-instagram); }
.gen__dot--tt { background: var(--c-on-docket); }
.gen__pill.is-on .gen__dot--tt { background: var(--c-docket); }
.gen__pace { max-width: 46ch; margin-top: var(--s-2); font-size: var(--fs-body-s); line-height: 1.6; color: color-mix(in srgb, var(--c-on-docket) 85%, transparent); }
.gen__cad { display: flex; align-items: flex-end; gap: 1px; height: 24px; margin-top: var(--s-3); }
.gen__cad span { flex: 1; min-width: 1px; height: var(--h); border-radius: var(--r-xs); background: var(--c-cobalt); transform-origin: bottom; }
.gen__cad .is-empty { background: color-mix(in srgb, var(--c-on-docket) 15%, transparent); }
.gen__note { margin-top: 6px; font-size: var(--fs-meta-s); color: color-mix(in srgb, var(--c-on-docket) 55%, transparent); }
/* 03 · Campaign */
.gen__phases { display: flex; flex-direction: column; gap: var(--s-3); }
.gen__ph { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-3); min-width: 0; }
.gen__ph i { grid-column: 1 / -1; display: block; width: var(--w); height: 6px; margin-left: var(--x); border-radius: var(--r-pill); background: var(--c-cobalt); transform-origin: left; }
.gen__ph p { margin-top: var(--s-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-meta-s); color: var(--c-on-docket); }
.gen__ph p + p { color: color-mix(in srgb, var(--c-on-docket) 55%, transparent); }
.gen__fact { min-height: calc(2 * var(--lh-body) * 1em); margin-top: var(--s-4); font-size: var(--fs-meta); color: var(--c-on-docket); }
.gen__ctl { display: flex; justify-content: flex-end; margin-top: var(--s-6); }
.gen__ctl + .gen { margin-top: var(--s-2); }
@media (min-width: 640px) {
  .gen { padding: var(--card-pad); }
  .gen__h { min-height: 2.3em; }
  .gen__fact { min-height: calc(var(--lh-body) * 1em); }
  .gen__band { padding: 20px; }
  .gen__files { flex-direction: row; align-items: stretch; }
  .gen__tiles { display: flex; flex: 1; flex-wrap: wrap; }
  .tile, .gen__more { width: 128px; }
  .gen__more { min-height: 0; }
  .gen__add { flex: none; flex-direction: column; gap: 6px; width: 64px; padding: 0; }
  .gen__phases { flex-direction: row; gap: 6px; }
  .gen__ph { display: block; flex-basis: 0; }
  .gen__ph i { width: auto; margin-left: 0; }
  .gen__ph p + p { margin-top: 0; white-space: normal; }
  .gen__levers { grid-template-columns: auto minmax(0, 1fr); gap: 28px; }
  .gen__search input { font-size: var(--fs-body-s); }
}
@media (min-width: 1024px) {
  .gen__head { grid-template-columns: minmax(0, 1fr) 390px; align-items: start; gap: 40px; }
  .gen__band { padding: 20px var(--s-5); }
  .gen__band--src { margin-left: 23%; }
  .gen__band--out { margin-right: 23%; }
  .gen__gut { position: absolute; top: 20px; width: 29%; margin: 0; }
  .gen__band--src .gen__gut { left: -30.2%; padding-left: 6px; }
  .gen__gut--r { right: -30.2%; padding-left: var(--s-5); }
}

/* Turn: the agency's pour edit beside the post Storeyline drafts. The
   Storeyline one is lit and carries the mark, so the two can't be confused. */
.versus { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
.versus__side { border-radius: var(--r-card); padding: var(--card-pad); display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.versus__side--agency { background: var(--c-paper-2); }
.versus__side--sl { background: var(--c-surface); box-shadow: var(--shadow-card); }
.versus__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-5); }
.versus__mark { width: 24px; height: 24px; flex: none; }
.versus__k { font-size: var(--fs-meta); font-weight: var(--fw-medium); color: var(--c-stone); }
.versus__side--sl .versus__k { color: var(--c-ink); }
.versus__side--agency .versus__k, .versus__side--agency .versus__reel { color: var(--c-stone-sunken); }
.versus__reel { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); font-family: var(--font-mono); font-size: var(--fs-meta-s); color: var(--c-stone); }
.versus__note { margin-top: auto; padding-top: var(--s-2); border-top: var(--bw) solid var(--c-line); font-size: var(--fs-meta-s); color: var(--c-stone); }
.versus__quote { font-size: var(--fs-title); line-height: 1.35; }
.versus__side--agency .versus__quote { color: var(--c-ink-80); }
.versus__side--agency .versus__note { color: var(--c-stone-sunken); }
.versus__src { margin-top: auto; padding-top: var(--s-2); border-top: var(--bw) solid var(--c-line); font-family: var(--font-mono); font-size: var(--fs-meta-s); color: var(--c-stone); }

/* How it works */
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s-6); margin-top: var(--s-6); }
.step { counter-increment: step; position: relative; min-width: 0; padding-left: var(--s-7); }
.step::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: var(--r-pill); border: var(--bw) solid var(--c-stone); font-family: var(--font-mono); font-weight: var(--fw-medium); display: flex; align-items: center; justify-content: center; font-size: var(--fs-meta); background: var(--c-surface); z-index: 1; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 32px; bottom: calc(-1 * var(--s-6)); border-left: var(--bw) solid var(--c-line); }
.step h3 { font-size: var(--fs-body-l); letter-spacing: var(--ls-title); }
.step p { max-width: var(--measure); }
.step__thumb { background: var(--c-surface); border: var(--bw) solid var(--c-line); border-radius: var(--r-card); padding: var(--s-3); margin-bottom: var(--s-4); min-height: 120px; display: flex; flex-direction: column; justify-content: center; justify-content: safe center; gap: var(--s-2); overflow: hidden; }
.step__thumb--co { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: var(--s-2); }
.co-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); font-size: var(--fs-meta); border-bottom: var(--bw) solid var(--c-line); padding-bottom: var(--s-2); }
.co-row:last-child { border-bottom: 0; padding-bottom: 0; }
.co-sw { display: inline-flex; gap: var(--s-1); }
.co-sw i { width: 14px; height: 14px; border-radius: var(--r-chip); background: var(--c-ink); }
.co-sw i:nth-child(2) { background: var(--c-stone); }
.co-sw i:nth-child(3) { background: var(--c-line); }
.mtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mtile { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; padding: 6px var(--s-2); border: var(--bw) solid var(--c-line); border-radius: var(--r-input); background: var(--c-paper); }
.mtile__k { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 1px; color: var(--c-stone); white-space: nowrap; }
/* Two lines, as SourceTiles clamps them. */
.mtile__n { font-size: var(--fs-caption); line-height: 1.3; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.step__thumb--ag { justify-content: flex-start; gap: 0; }
.step__thumb--ag .ag__date { margin-bottom: 6px; }
.step__thumb--chips { flex-direction: row; flex-wrap: wrap; align-items: center; align-content: center; justify-content: flex-start; }
.mock-caption { font-size: var(--fs-body-s); line-height: 1.4; border: var(--bw) solid var(--c-line); border-radius: var(--r-input); padding: var(--s-2) var(--s-3); }
.mock-caret { border-right: var(--bw-strong) solid var(--c-cobalt); padding-right: 2px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
/* The post page's status pill (PostDetail STATUS_PILL): Scheduled is filled stone, white text and dot, a chevron. */
.mock-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border-radius: var(--r-pill); background: var(--c-stone); color: var(--c-surface); font-size: var(--fs-meta); font-weight: var(--fw-medium); line-height: 1; }
.mock-pill__dot { width: 6px; height: 6px; flex: none; border-radius: var(--r-pill); background: currentColor; }
.mock-pill svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* What you get: three short cards over the calendar, each marked with the
   app's own piece (platform icons, the capture chip, a post's week moving). */
.get__cards { list-style: none; display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.get__card { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; padding: var(--s-5); border: var(--bw) solid var(--c-line); border-radius: var(--r-card); background: var(--c-paper); }
.get__mark { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-height: 22px; margin-bottom: var(--s-2); }
.get__arrow { flex: none; fill: none; stroke: var(--c-stone); stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
.get__card h3 { margin: 0; font-size: var(--fs-body-l); letter-spacing: var(--ls-title); }
.get__card p { color: var(--c-ink-80); }

/* ---------------------------------------------------------------------
   CadenceCalendar: toolbar, month grid (desktop), phone agenda (mobile).
   --------------------------------------------------------------------- */
.cal { margin: 0; padding: 0; overflow: hidden; }
.band-alt .cal.card { background: var(--c-surface); box-shadow: var(--shadow-card); }
.cal__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-2); border-bottom: var(--bw) solid var(--c-line); }
.cal__streams, .cal__nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.cal__toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: var(--s-1) var(--s-3); border: var(--bw) solid var(--c-line); border-radius: var(--r-input); background: var(--c-surface); color: var(--c-stone); font-size: var(--fs-meta); line-height: 1.45; cursor: pointer; transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.cal__toggle i { width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--c-cobalt); flex: none; }
.cal__toggle--captures i { background: var(--c-clay); }
.cal__toggle[aria-pressed="true"] { border-color: transparent; color: var(--c-ink); }
.cal__toggle--posts[aria-pressed="true"] { background: var(--c-cobalt-12); }
.cal__toggle--captures[aria-pressed="true"] { background: var(--c-clay-12); }
button.cal__toggle--posts[aria-pressed="true"]:hover { border-color: var(--c-cobalt); }
button.cal__toggle--captures[aria-pressed="true"]:hover { border-color: var(--c-clay); }
button.cal__toggle[aria-pressed="false"]:hover { border-color: var(--c-stone); }
.cal__seg { display: none; overflow: hidden; border: var(--bw) solid var(--c-line); border-radius: var(--r-input); }
.cal__seg button { padding: var(--s-1) var(--s-2); border: 0; font-size: var(--fs-meta); color: var(--c-stone); background: var(--c-surface); cursor: pointer; transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
.cal__seg button + button { border-left: var(--bw) solid var(--c-line); }
.cal__seg button:hover { color: var(--c-ink); }
.cal__seg [aria-pressed="true"] { background: var(--c-cobalt-12); color: var(--c-cobalt); cursor: default; }
.cal--week .cal__day { min-height: 300px; }
.cal__navbtn { min-height: 44px; min-width: 44px; padding: var(--s-1) var(--s-3); border: var(--bw) solid var(--c-line); border-radius: var(--r-input); background: var(--c-surface); color: var(--c-ink); font-size: var(--fs-meta); cursor: pointer; transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.cal__navbtn:hover:not(:disabled) { border-color: var(--c-stone); }
.cal__navbtn:disabled { opacity: 0.45; cursor: not-allowed; }
.cal__month { min-width: 11em; text-align: center; font-size: var(--fs-meta); color: var(--c-ink); white-space: nowrap; }
.cal__grid { display: none; }
.cal__dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: var(--bw) solid var(--c-line); }
.cal__dow span { padding: var(--s-2); font-size: var(--fs-meta); color: var(--c-stone); }
.cal__wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__day { min-width: 0; min-height: 112px; padding: 6px; border-right: var(--bw) solid var(--c-line); border-bottom: var(--bw) solid var(--c-line); background: var(--c-surface); }
.cal__day:last-child { border-right: 0; }
.cal__wk:last-child .cal__day { border-bottom: 0; }
.cal__day.is-dim { background: var(--c-paper-2); }
.cal__day.is-dim .cal__num { color: var(--c-stone-sunken); }
.cal__num { display: flex; align-items: center; gap: var(--s-1); margin-bottom: var(--s-1); font-family: var(--font-mono); font-size: var(--fs-caption); line-height: 1.2; color: var(--c-stone); }
.cal__today { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; border-radius: var(--r-pill); background: var(--c-cobalt); color: var(--c-on-signal); font-weight: var(--fw-medium); }
.ag__day { padding: 10px; border-bottom: var(--bw) solid var(--c-line); }
.ag__day:last-child { border-bottom: 0; }
.ag__date { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-family: var(--font-mono); font-size: var(--fs-caption); line-height: 1.2; color: var(--c-stone); }
.ag__now { color: var(--c-cobalt); }
.ag__none { font-size: var(--fs-meta-s); color: var(--c-stone); }
.ag__empty { padding: var(--s-3) 10px; font-size: var(--fs-body-s); color: var(--c-stone); }
.cal__note { margin: 0; padding: var(--s-3); border-top: var(--bw) solid var(--c-line); }
.cal__note span { display: block; max-width: 72ch; text-wrap: pretty; }

/* Briefs: the post card with its capture brief, and the phone */
.briefs__visual { display: grid; gap: var(--s-6); justify-items: center; }
.brief { width: 100%; max-width: 440px; }
/* A phone at a real phone's proportions (about 19.5:9 screen, 2.06:1 body),
   with its status bar and home bar. The list runs on past the bottom edge,
   as a real screen's would. */
.phone { width: 300px; max-width: 100%; }
.phone__screen { position: relative; overflow: hidden; aspect-ratio: 9 / 18.6; border: 8px solid var(--c-ink-deep); border-radius: 46px; background: var(--c-surface); padding-top: 44px; }
.phone__notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: var(--r-pill); background: var(--c-ink-deep); }
.phone__status { position: absolute; top: 9px; left: 0; right: 0; height: 24px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 30px; font-size: var(--fs-meta-s); font-weight: var(--fw-semibold); line-height: 1; color: var(--c-ink); }
.phone__sys { display: inline-flex; align-items: center; gap: 5px; }
.phone__sys svg { display: block; fill: currentColor; }
/* The home bar sits on its own strip, so the list fades out above it. */
.phone__screen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: linear-gradient(to bottom, transparent, var(--c-surface) 50%); z-index: 1; }
.phone__home { position: absolute; left: 50%; bottom: 7px; z-index: 2; width: 100px; height: 4px; border-radius: var(--r-pill); background: var(--c-ink); transform: translateX(-50%); }
.cal__bar--phone { padding: var(--s-2) 10px; }
.cal__bar--phone .cal__toggle { min-height: 32px; cursor: default; }
.cal__bar--phone .cal__nav { flex-wrap: nowrap; gap: var(--s-1); }
.cal__bar--phone .cal__navbtn { min-height: 28px; min-width: 0; padding: 2px var(--s-2); cursor: default; }
.cal__bar--phone .cal__navbtn.is-off { opacity: 0.45; }
.cal__bar--phone .cal__month { min-width: 0; flex: 1; }

/* What we hear: three things builders tell us, boxed and set as quotes in
   the page's own punctuation (as in the comparison further down). The
   opening mark hangs in the margin, in cobalt (Yianni: "one inverted comma
   at the start in blue"). What a shoot costs leads: across the page, then
   beside the other two once there's room. */
.hear { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.hear li { display: flex; flex-direction: column; padding: var(--s-5); background: var(--c-paper); border: var(--bw) solid var(--c-line); border-radius: var(--r-card); }
.hear p { font-size: var(--fs-body-l); line-height: 1.4; max-width: var(--measure); text-wrap: pretty; }
.hear p::before { content: "\201C"; content: "\201C" / ""; margin-left: -0.4em; font-weight: var(--fw-medium); color: var(--c-cobalt); } /* -0.4em: the mark's width in Geist medium */
.hear p::after { content: "\201D"; content: "\201D" / ""; }
.hear__lead p { font-size: var(--fs-title); line-height: 1.3; letter-spacing: var(--ls-title); }

/* Offer: one line, since the page above is the list */
.waitlist__lite { font-size: var(--fs-body-l); line-height: 1.4; }

/* Founding 50 waitlist */
.waitlist__grid { display: grid; gap: var(--s-6); }
.waitlist__head .lede, .waitlist__copy > p { max-width: var(--measure); }
.waitlist__label { margin: var(--s-6) 0 var(--s-3); }
.waitlist__card { padding: var(--card-pad); border-radius: var(--r-large); align-self: start; }
.waitlist-form { display: flex; flex-direction: column; gap: var(--s-2); }
.waitlist-form h3 { font-size: var(--fs-title); font-weight: var(--fw-medium); }
.waitlist-form .meta { margin-bottom: var(--s-3); }
.waitlist-form label { font-size: var(--fs-body-s); font-weight: var(--fw-medium); margin-top: var(--s-2); }
.waitlist-form .req { color: var(--c-stone); font-weight: var(--fw-regular); }
.waitlist-form input { font: inherit; font-size: var(--fs-body); color: var(--c-ink); background: var(--c-surface); border: var(--bw) solid var(--c-line); border-radius: var(--r-input); padding: var(--s-3); width: 100%; transition: border-color var(--dur-fast) var(--ease); }
.waitlist-form input:hover { border-color: var(--c-stone); }
.waitlist-form input:focus { outline: 2px solid var(--c-cobalt); outline-offset: 1px; border-color: var(--c-cobalt); }
.waitlist-form input[aria-invalid="true"] { border-color: var(--c-red-text); }
.waitlist-form input[aria-invalid="true"]:focus { outline-color: var(--c-red-text); }
.waitlist-form .btn { margin-top: var(--s-4); }
.waitlist-form .btn:disabled { opacity: 0.6; cursor: progress; }
.wl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-status { font-size: var(--fs-body-s); min-height: 1.5em; }
.wl-status.is-ok { color: var(--c-ink); font-weight: var(--fw-medium); }
.wl-status.is-err { color: var(--c-red-text); }
.bigger { margin-top: 0; }
#waitlist { scroll-margin-top: var(--s-4); }

/* FAQ */
.faq__group { margin-top: var(--s-6); }
.faq__label { font-size: var(--fs-meta); margin-bottom: var(--s-2); }
.faq details { border-top: var(--bw) solid var(--c-line); }
.faq details:last-child { border-bottom: var(--bw) solid var(--c-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; min-height: 52px; padding: var(--s-3) 0; font-weight: var(--fw-medium); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: var(--fs-title); font-weight: var(--fw-regular); line-height: 1; color: var(--c-cobalt); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 var(--s-4); max-width: var(--measure); }

.site-footer { border-top: var(--bw) solid var(--c-dark-line); padding-bottom: calc(var(--s-8) + var(--s-4)); /* room for sticky bar on mobile */ }
.site-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding-top: var(--logo-mark-mobile); padding-bottom: var(--logo-mark-mobile); padding-left: max(var(--gutter), var(--logo-mark-mobile)); color: var(--c-dark-stone); }
.site-footer__domain { font-weight: var(--fw-regular); color: var(--c-dark-stone); }
/* Tagline (approved by Mark, 27 Oct): Geist, sentence case, dark-surface text.
   Kept clear of the mark by the logo's clear space (1x mark height). */
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--logo-mark-mobile); }
.site-footer__tagline { font-size: var(--fs-body-s); font-weight: var(--fw-medium); color: var(--c-dark-text); }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: var(--c-surface); border-top: var(--bw) solid var(--c-line); box-shadow: var(--shadow-raised);
  transform: translateY(110%); visibility: hidden;
  /* Hidden as well as off screen, so Tab can't reach the link while it's away;
     visibility switches after the slide out and before the slide in. */
  transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur); }
.sticky-cta.is-visible { transform: none; visibility: visible; transition: transform var(--dur) var(--ease), visibility 0s; }
@media (prefers-reduced-motion: reduce) { .sticky-cta, .sticky-cta.is-visible { transition: none; } }

/* ---------- Desktop ---------- */
@media (min-width: 880px) {
  .site-footer { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .wrap { padding: 0 var(--gutter-desktop); }
  .section { padding: var(--section-pad-desktop) 0; }
  h2 { font-size: var(--fs-display-l); line-height: var(--lh-tight); }
  .pull { font-size: var(--fs-display-m); }
  .logo { --m: var(--logo-mark); }
  .site-header__in, .site-footer__in { padding: var(--logo-mark) var(--gutter-desktop); }
  .site-header__cta { display: inline-block; padding: var(--s-3) var(--s-5); font-size: var(--fs-body-s); }
  .hero .cta-row .btn--ghost { margin-top: 0; }
  .hero { padding-top: var(--s-8); }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
  .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
  .cta-row .btn { display: inline-block; width: auto; }
  .hero__secondary, .cta-row .hero__secondary { display: inline-block; width: auto; margin-top: 0; }
  /* The post card tucks over the foot of the sheet, clear of its title block. */
  .sheet-stage { grid-template-columns: minmax(0, 1fr) min(400px, 78%); row-gap: 0; column-gap: var(--s-4); }
  .sheet { grid-column: 1 / -1; }
  .sheet-post { grid-column: 2; grid-row: 2; margin-top: var(--s-3); margin-right: calc(-1 * var(--s-5)); position: relative; z-index: 1; box-shadow: var(--shadow-raised); }
  .sheet-src { grid-column: 2; grid-row: 3; margin: var(--s-3) calc(-1 * var(--s-5)) 0 0; }
  .sheet-stage .fig-note { grid-column: 1 / -1; grid-row: 4; margin-top: var(--s-3); }
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
  .split--rev .split__copy { order: 2; }
  .turn__intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-8); align-items: start; }
  .split--wide-visual { grid-template-columns: 0.85fr 1.15fr; gap: var(--s-7); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
  .step:nth-child(3)::after { display: none; }
  .step { padding-left: 0; padding-top: var(--s-7); }
  .step:not(:last-child)::after { left: 32px; top: 15.5px; right: calc(-1 * var(--s-5)); bottom: auto; border-left: 0; border-top: var(--bw) solid var(--c-line); }
  .step p { font-size: var(--fs-body-s); }
  .step__thumb { height: 168px; }
  .versus { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .get__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
  .cal__toggle, .cal__navbtn { min-height: 0; min-width: 0; padding: var(--s-1) var(--s-2); }
  .cal__seg { display: flex; }
  .cal__grid { display: block; overflow-x: auto; }
  .cal__grid > * { min-width: 830px; }
  .cal .ag { display: none; }
  /* Briefs: copy above the card and phone until there's room for all three. */
  .briefs .split--wide-visual { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .briefs__visual { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; justify-items: stretch; gap: var(--s-5); }
  .brief { max-width: none; }
  .hear { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
  .hear li { padding: var(--s-6); }
  .hear p { font-size: var(--fs-title); line-height: 1.35; letter-spacing: var(--ls-title); }
  .hear__lead { grid-column: 1 / -1; }
  .hear__lead p { font-size: var(--fs-display-m); line-height: 1.3; letter-spacing: var(--ls-display); text-wrap: balance; }
  .waitlist__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; column-gap: var(--s-8); row-gap: 0; }
  .waitlist__head { grid-column: 1; grid-row: 1; }
  .waitlist__copy { grid-column: 1; grid-row: 2; margin-top: var(--s-4); }
  .waitlist__card { grid-column: 2; grid-row: 1 / span 3; padding: var(--s-6); }
  .bigger { grid-column: 1; grid-row: 3; margin-top: var(--s-5); }
  .faq__wrap { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: var(--s-6); }
  .faq__wrap h2 { grid-column: 1 / -1; }
  .faq summary, .faq details p { font-size: var(--fs-body-s); }
  .site-footer__brand { flex-direction: row; align-items: center; gap: var(--logo-mark); }
}
/* Room for the full hero size and the five steps in one row (an iPad in
   landscape and small laptops get 46px and a 3 + 2 row below this). */
@media (min-width: 1180px) {
  h1 { font-size: var(--fs-display-xl); }
  /* Room for the lead to stand beside the other two */
  .hear { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hear__lead { grid-column: 1; grid-row: span 2; justify-content: center; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); }
  .step:nth-child(3)::after { display: block; }
}
@media (min-width: 1200px) {
  .briefs .split--wide-visual { grid-template-columns: 0.72fr 1.28fr; gap: var(--s-7); }
  .brief { margin-top: var(--s-8); }
}

/* ---------------------------------------------------------------------
   Motion. The app's own moves, nothing generic:
   - Hero (CSS keyframes, replayed by JS about every ten seconds): the
     reading sweep passes down the sheet, the builder's mark-up circles
     the footing, the pin lands, and the post card is laid like a course,
     its rule landing cobalt. The loop stops off screen, when the tab is
     hidden, or when the Pause button is pressed.
   - Scenes (JS arms them, plays each once in view): the programme draws
     left to right; the docket reads each file; the calendar's posts are
     laid week by week (the first-run unveil); today's capture ticks over;
     the finale draws the mark and counts the totals.
   Everything is visible by default. Reduced motion: still, finished.
   --------------------------------------------------------------------- */
@keyframes course-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes course-line { from { border-bottom-color: transparent; } 30% { border-bottom-color: var(--c-cobalt); } to { border-bottom-color: var(--c-line); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes ripple { from { opacity: 0.6; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }
@keyframes sweep { 0% { transform: translateY(-110%); opacity: 1; } 88% { transform: translateY(560%); opacity: 1; } 100% { transform: translateY(560%); opacity: 0; } }
@keyframes tile-pulse { 50% { opacity: 0.5; } }
@keyframes seal-in { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero */
  .sheet__scan { animation: sweep 1100ms linear 120ms both; }
  .dwg .d-mark { animation: draw 700ms var(--ease) 900ms both; }
  .dwg .d-pin-g { animation: pop 360ms var(--ease-arrive) 1350ms both; }
  .dwg .d-ripple { animation: ripple 900ms var(--ease) 1430ms forwards; }
  .sheet-post { animation: course-in 560ms var(--ease-arrive) 1550ms both, course-line 900ms var(--ease) 1730ms both; }
  .sheet-src { animation: fade-up 400ms var(--ease) 2050ms both; }
  .sheet-stage .fig-note { animation: fade-in 400ms var(--ease) 2200ms both; }
  .sheet-stage.is-armed:not(.is-on), .sheet-stage.is-armed:not(.is-on) * { animation-play-state: paused; }

  /* Programme */
  .gantt.is-armed .gantt__bar { transform: scaleX(0); }
  .gantt.is-on .gantt__bar { transform: none; transition: transform 700ms var(--ease) var(--d, 0ms); }

  /* Generator: lines and headlines rise in; the tiles pulse while it reads
     (staggered, as in the app); bars draw as the plan and posts land. */
  .gen__ledger .is-new, .gen__h.is-new { animation: fade-up 400ms var(--ease) backwards; }
  .gen__band--src.is-reading .tile::after { animation: tile-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) calc(var(--i, 0) * 140ms) infinite; }
  .gen__cad span { transition: transform 500ms var(--ease) var(--d, 0ms); }
  .gen__ph i { transition: transform 700ms var(--ease) var(--d, 0ms); }
  .gen__ph p, .gen__note { transition: opacity 400ms var(--ease); }
  .gen.is-armed:not(.is-done) .gen__cad span:not(.is-up) { transform: scaleY(0); }
  .gen.is-armed:not(.is-done) .gen__note { opacity: 0; }
  .gen.is-armed:not(.is-planned) .gen__ph i { transform: scaleX(0); }
  .gen.is-armed:not(.is-planned) .gen__ph p { opacity: 0; }
  /* Between runs: the finished campaign steps back, all at once. Settled
     (off screen, or paused), it holds still. */
  .gen__h, .gen__ledger, .gen__fact { transition: opacity 300ms var(--ease); }
  .gen.is-out .gen__h, .gen.is-out .gen__ledger, .gen.is-out .gen__fact { opacity: 0; transition-timing-function: var(--ease-exit); }
  .gen.is-out .gen__cad span, .gen.is-out .gen__ph i, .gen.is-out .gen__ph p, .gen.is-out .gen__note { transition-duration: 400ms; transition-delay: 0ms; transition-timing-function: var(--ease-exit); }
  .gen.is-still .gen__cad span, .gen.is-still .gen__ph i, .gen.is-still .gen__ph p, .gen.is-still .gen__note,
  .gen.is-still .gen__h, .gen.is-still .gen__ledger, .gen.is-still .gen__fact { transition: none; }

  /* Calendar: the first-run unveil */
  .cal.is-armed .ev { opacity: 0; }
  .cal.is-on .ev { animation: course-in 560ms var(--ease-arrive) var(--d, 0ms) both; }
  .cal.is-on .cal__wk .cal__day { animation: course-line 900ms var(--ease) calc(var(--d, 0ms) + 180ms) both; }
  .cal.is-on .cal__wk:last-child .cal__day { animation: none; }
  .cal.is-on .ag__day { animation: course-line 900ms var(--ease) calc(var(--d, 0ms) + 180ms) both; }

  /* Today's capture ticks over */
  .phone.is-on .ev__seal { animation: seal-in 360ms var(--ease-arrive) both; }

  /* Finale */
}
.wl-done { display: flex; flex-direction: column; gap: var(--s-3); outline: none; }
.wl-done h3 { margin: var(--s-2) 0 0; font-size: var(--fs-title); }
@media (prefers-reduced-motion: no-preference) { .wl-done { animation: course-in 560ms var(--ease-arrive) both; } }

/* ---------------------------------------------------------------------
   Who's worked with us: the three clients' marks, still and in grey, each
   name under its mark, in a white strip above the real posts (Yianni, 25 Nov).
   --------------------------------------------------------------------- */
.logos { padding: var(--s-7) 0; }
.logos__k { margin: 0; text-align: center; font-size: var(--fs-body); font-weight: var(--fw-medium); color: var(--c-stone); }
.logos__set { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-5) var(--s-8); margin: var(--s-5) 0 0; padding: 0; list-style: none; }
.logos__item { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--c-stone); }
.logos__item img { width: 72px; height: 72px; border-radius: var(--r-input); object-fit: contain; filter: grayscale(1); opacity: 0.8; }
@media (min-width: 880px) { .logos__set { gap: var(--s-5) var(--s-9); } .logos__item { font-size: var(--fs-body-l); } .logos__item img { width: 88px; height: 88px; } }

/* The off-white sections (everything between the white bands, below the
   hero) are a soft blue, the calendar's post-chip tint. Only the problem
   section carries the drafting grid, so the grid stays the hero's idea and
   comes back once, not on every band: minor squares every 24px, a stronger
   line every fifth, from the same text edge as the hero's grid. The lines
   are cobalt-soft, thinned with opacity; flat colours through a mask, no
   gradient (Yianni, 25 Nov). */
.section:not(.band-alt):not(.band-ink):not(.hero) {
  --sec-grid-x: max(var(--gutter), (100vw - var(--w-reading)) / 2 + var(--gutter));
  position: relative; isolation: isolate; background: var(--c-cobalt-tint);
}
.problem::before,
.problem::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--c-cobalt-soft);
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
  -webkit-mask-position: var(--sec-grid-x) 0; mask-position: var(--sec-grid-x) 0;
}
.problem::before {
  opacity: 0.18;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M.5 0V23.5H24' fill='none' stroke='black'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M.5 0V23.5H24' fill='none' stroke='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 24px 24px; mask-size: 24px 24px;
}
.problem::after {
  opacity: 0.4;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M.5 0V119.5H120' fill='none' stroke='black'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M.5 0V119.5H120' fill='none' stroke='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 120px 120px; mask-size: 120px 120px;
}

/* The shot the brief asked for, on the post card. It waits as an empty
   frame ("Not shot yet") until the card ticks over to Captured, then fades in. */
.pc__shot { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-paper-2); border-bottom: var(--bw) solid var(--c-line); }
.pc__shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity calc(var(--dur-base) * 3) var(--ease-arrive); }
.pc__shot.is-waiting img { opacity: 0; }
.pc__shot-wait { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-meta); color: var(--c-stone); }
.pc__shot:not(.is-waiting) .pc__shot-wait { display: none; }

/* ---------------------------------------------------------------------
   Real posts (25 Nov 2026): live LinkedIn posts from builders using
   Storeyline, in a row that snaps card by card. Three to a row on a laptop,
   one and a bit on a phone so the next card shows.
   --------------------------------------------------------------------- */
.real { border-top: var(--bw) solid var(--c-line); }
.real__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.real__sub { margin-top: var(--s-3); max-width: 52ch; color: var(--c-ink-80); }
.real__ctl { display: flex; align-items: center; gap: var(--s-3); }
.real__nav { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: var(--bw) solid var(--c-line); border-radius: var(--r-pill); background: var(--c-surface); color: var(--c-ink); cursor: pointer; }
.real__nav:hover { border-color: var(--c-stone); }
.real__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
@media (pointer: coarse) { .real__nav { width: 44px; height: 44px; } }
.real__track {
  /* relative: keeps each card's hidden screen-reader text inside the row,
     or it widens the page on phones */
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: var(--s-4);
  margin: var(--s-6) calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) var(--s-2); list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.real__track::-webkit-scrollbar { display: none; }
.real__card { scroll-snap-align: start; min-width: 0; }
.real__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: var(--bw) solid var(--c-line); border-radius: var(--r-card); background: var(--c-surface); box-shadow: var(--shadow-card); color: inherit; text-decoration: none; }
.real__link:hover { border-color: var(--c-stone); }
.real__img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--c-paper-2); }
.real__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.real__img .tag { position: absolute; top: var(--s-3); left: var(--s-3); }
.real__by { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-4) var(--s-4) 0; font-size: var(--fs-body-s); font-weight: var(--fw-semibold); color: var(--c-ink); }
.real__by > img { width: 24px; height: 24px; border-radius: var(--r-chip); object-fit: contain; }
.real__by .pi { margin-left: auto; }
.real__copy { display: block; padding: var(--s-2) var(--s-4) var(--s-5); font-size: var(--fs-card-copy); line-height: 1.5; color: var(--c-ink); }
@media (min-width: 768px) { .real__track { grid-auto-columns: calc((100% - 2 * var(--s-4) - 2 * var(--gutter)) / 2.3); } }
@media (min-width: 880px) {
  .real__track { margin: var(--s-7) 0 0; padding: 0 0 var(--s-2); scroll-padding: 0; grid-auto-columns: calc((100% - 2 * var(--s-5)) / 3); gap: var(--s-5); }
}
/* Wide enough for all four: one still row, no copies, no controls. */
@media (min-width: 1180px) {
  .real__track { grid-auto-columns: calc((100% - 3 * var(--s-5)) / 4); overflow: visible; }
  .real__card[aria-hidden="true"], .real__ctl { display: none; }
}

/* The white bands get a soft dotted paper (Yianni, 25 Nov: plain white
   read too flat): a hairline-grey dot every 24px, on the same 24px rhythm
   and text edge as the drafting grid next door. Flat colour through a
   mask, no gradient. */
.band-alt { --dot-x: max(var(--gutter), (100vw - var(--w-reading)) / 2 + var(--gutter)); position: relative; isolation: isolate; }
.band-alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--c-line);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='.75' cy='.75' r='.75' fill='black'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='.75' cy='.75' r='.75' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 24px 24px; mask-size: 24px 24px;
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
  -webkit-mask-position: var(--dot-x) 0; mask-position: var(--dot-x) 0;
}
@media (min-width: 880px) { .band-alt { --dot-x: max(var(--gutter-desktop), (100vw - var(--w-reading)) / 2 + var(--gutter-desktop)); } }
/* The grid lines up with the hero's: the desktop gutter from 880px. */
@media (min-width: 880px) { .section:not(.band-alt):not(.band-ink):not(.hero) { --sec-grid-x: max(var(--gutter-desktop), (100vw - var(--w-reading)) / 2 + var(--gutter-desktop)); } }
/* FAQ group labels on the blue: stone is 4.1:1 there, so they take ink-80. */
.faq__label { color: var(--c-ink-80); }
/* Every client mark sits on the same dark tile (Trescon's file is a bare mark). */
.logos__item img { background: var(--c-ink); }
.logos__item img[src*="trescon"] { padding: var(--s-3); box-sizing: border-box; }

/* How it works: the numbers light up one after another when the steps come
   into view, and each connecting line lights on the way to the next, so the
   eye follows 1 to 5 across (Yianni, 25 Nov). Plays once; without motion the
   steps stay as they are. */
.steps.is-armed:not(.is-turns) .step::before { transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease); }
.steps.is-armed:not(.is-turns) .step::after { transition: border-color 300ms var(--ease); }
.steps.is-armed:not(.is-turns) .step:nth-child(1)::before { transition-delay: 0ms; }
.steps.is-armed:not(.is-turns) .step:nth-child(1)::after { transition-delay: 300ms; }
.steps.is-armed:not(.is-turns) .step:nth-child(2)::before { transition-delay: 600ms; }
.steps.is-armed:not(.is-turns) .step:nth-child(2)::after { transition-delay: 900ms; }
.steps.is-armed:not(.is-turns) .step:nth-child(3)::before { transition-delay: 1200ms; }
.steps.is-armed:not(.is-turns) .step:nth-child(3)::after { transition-delay: 1500ms; }
.steps.is-armed:not(.is-turns) .step:nth-child(4)::before { transition-delay: 1800ms; }
.steps.is-armed:not(.is-turns) .step:nth-child(4)::after { transition-delay: 2100ms; }
.steps.is-armed:not(.is-turns) .step:nth-child(5)::before { transition-delay: 2400ms; }
.steps.is-armed:not(.is-turns) .step:nth-child(5)::after { transition-delay: 2700ms; }
.steps.is-on:not(.is-turns) .step::before { background: var(--c-cobalt); border-color: var(--c-cobalt); color: var(--c-on-signal); }
.steps.is-on:not(.is-turns) .step:not(:last-child)::after { border-color: var(--c-cobalt); border-width: var(--bw-strong); }

/* =====================================================================
   PUBLISHED PICKS (25 Nov 2026). Yianni chose these from the review
   switchers: the dark cover (look B), the drafting grid on the hero, the
   blue sections dressed dark like the hero ("dark"), and Adam's demo at
   the top ("top"). They stay keyed to the attributes on <html> in
   index.html (data-look, data-ideas, data-demo), set statically there, so
   the rules read exactly as they were reviewed. The switchers are gone.
   ===================================================================== */
[data-look] .hear li { background: var(--c-cobalt-tint); border-color: var(--c-cobalt-tint); }
[data-look] .gantt__bar:not(.gantt__bar--mkt) { fill: var(--c-cobalt); }
[data-look] .gantt__row--mkt { border-top: var(--bw-strong) solid var(--c-clay); }
[data-look] .gantt__row--mkt .gantt__label { color: var(--c-clay-text); }
[data-look="b"] .site-header { background: var(--c-dark-paper); border-bottom-color: var(--c-dark-line); }
[data-look="b"] .site-header .logo { color: var(--c-dark-text); }
[data-look="b"] .hero { background: var(--c-dark-paper); color: var(--c-dark-text); }
[data-look="b"] .hero .sheet { color: var(--c-ink); }
[data-look="b"] .hero .h1__hit { color: var(--c-clay); }
[data-look="b"] .hero .sheet-src,
[data-look="b"] .hero .fig-note { color: var(--c-dark-stone); }
[data-look="b"] .hero .btn--ghost { background: transparent; color: var(--c-dark-text); border-color: var(--c-dark-stone); }
[data-look="b"] .hero .btn--ghost:hover { border-color: var(--c-dark-text); }
[data-look="b"] .hero .sheet__pause { color: var(--c-dark-cobalt); }
[data-look="b"] .hero .sheet__pause:hover { color: var(--c-dark-text); }
[data-look="b"] .site-header :focus-visible,
[data-look="b"] .hero :focus-visible { outline-color: var(--c-dark-cobalt); }

/* ---- 1 · Drawing board ----------------------------------------------
   The grid is a flat line colour drawn through an SVG mask, so its colour
   stays a token in every look and nothing is a gradient. Minor squares
   every 24px (paper-2), a stronger line every fifth (the hairline). The
   lines start at the text's left edge (--grid-x), so the headline sits on
   a line the way lettering sits on a sheet's border, not on wallpaper. */
[data-ideas~="grid"] { --grid-x: max(var(--gutter), (100vw - var(--w-reading)) / 2 + var(--gutter)); }
[data-ideas~="grid"] .hero { position: relative; isolation: isolate; }
[data-ideas~="grid"] .hero::before,
[data-ideas~="grid"] .hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
  -webkit-mask-position: var(--grid-x) 0; mask-position: var(--grid-x) 0;
}
[data-ideas~="grid"] .hero::before {
  background: var(--c-paper-2);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M.5 0V23.5H24' fill='none' stroke='black'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M.5 0V23.5H24' fill='none' stroke='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 24px 24px; mask-size: 24px 24px;
}
[data-ideas~="grid"] .hero::after {
  background: var(--c-line);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M.5 0V119.5H120' fill='none' stroke='black'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M.5 0V119.5H120' fill='none' stroke='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 120px 120px; mask-size: 120px 120px;
}
/* On a coloured cover, the lines are the cover's own darker step. */
[data-ideas~="grid"][data-look="a"] .hero::before { background: var(--c-cobalt-press); }
[data-ideas~="grid"][data-look="a"] .hero::after { background: var(--c-cobalt-press); }
[data-ideas~="grid"][data-look="b"] .hero::before { background: var(--c-dark-card); }
[data-ideas~="grid"][data-look="b"] .hero::after { background: var(--c-dark-line); }

/* The mat (desktop only; on a phone it would shrink an already small
   drawing): the drawing and its post sit in a sunken tray, the way Supademo
   seats its product. Paper-2, not a blue, so no chip colour is borrowed;
   small text in the darker stone that passes on paper-2 (4.68:1). Look C
   already sets them on a cobalt board, so it keeps that. */
@media (min-width: 880px) {
  [data-ideas~="grid"] { --grid-x: max(var(--gutter-desktop), (100vw - var(--w-reading)) / 2 + var(--gutter-desktop)); }
  [data-ideas~="grid"]:not([data-look="c"]) .sheet-stage {
    padding: var(--s-4); background: var(--c-paper-2);
    border: var(--bw) solid var(--c-line); border-radius: var(--r-large);
  }
  [data-ideas~="grid"]:not([data-look="c"]) .sheet-stage .sheet-src,
  [data-ideas~="grid"]:not([data-look="c"]) .sheet-stage .fig-note { color: var(--c-stone-sunken); }
  /* On the blue cover (A) the mat is the deeper blue; on the dark cover (B)
     it is the docket's card. Text keeps each look's colour there. */
  [data-ideas~="grid"][data-look="a"] .sheet-stage { background: var(--c-cobalt-press); border-color: var(--c-cobalt-press); }
  [data-ideas~="grid"][data-look="a"] .sheet-stage .sheet-src,
  [data-ideas~="grid"][data-look="a"] .sheet-stage .fig-note { color: var(--c-surface); }
  [data-ideas~="grid"][data-look="b"] .sheet-stage { background: var(--c-dark-card); border-color: var(--c-dark-line); }
  [data-ideas~="grid"][data-look="b"] .sheet-stage .sheet-src,
  [data-ideas~="grid"][data-look="b"] .sheet-stage .fig-note { color: var(--c-dark-text); }
  /* Tablet: the post drops under the sheet, in a step, so it stays inside the mat */
  [data-ideas~="grid"]:not([data-look="c"]) .sheet-post,
  [data-ideas~="grid"]:not([data-look="c"]) .sheet-src { grid-column: 1 / -1; margin-right: 0; margin-left: var(--s-5); }
}
@media (min-width: 1180px) {
  [data-ideas~="grid"]:not([data-look="c"]) .sheet-stage { padding: var(--s-6); }
  [data-ideas~="grid"]:not([data-look="c"]) .sheet-post,
  [data-ideas~="grid"]:not([data-look="c"]) .sheet-src { grid-column: 2; margin-left: 0; margin-right: calc(-1 * var(--s-5)); }
}

/* ---- 4 · Adam's demo: where it sits (7 Nov 2026) ----------------------
   ideas.js makes the player only when <html data-demo> is set, so none of
   this shows on storeyline.ai. The Supademo player draws its own browser
   frame; ours is the rounded tray and the raised shadow the sheet uses. */
.demo { margin: 0; }
.demo-frame {
  /* The player is a 16:9 recording under a 40px title bar of its own;
     content-box puts that bar on top of the 16:9, so nothing letterboxes. */
  position: relative; box-sizing: content-box; aspect-ratio: 16 / 9; padding-top: 40px; overflow: hidden;
  background: var(--c-paper-2); border-radius: var(--r-large); box-shadow: var(--shadow-raised);
}
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Until a demo passes its checks, each spot holds this placeholder. */
.demo-ph {
  position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: var(--s-5);
  color: var(--c-stone); font-size: var(--fs-body-s); text-align: center;
}

/* Top: the headline, then the demo across the full width. */
/* Only once demo.js is running (it sets data-demo-ready in <head>): if it
   fails to load, the hero keeps its drawing. */
[data-demo="top"][data-demo-ready] .hero .sheet-stage { display: none; }
[data-demo="top"] .hero h1 { max-width: 20ch; }
[data-demo="top"] .hero .lede { max-width: 52ch; }
.demo--top { margin-top: var(--s-2); }
@media (min-width: 880px) {
  /* Centred over the demo, the way Supademo frames its own player. */
  [data-demo="top"] .hero { padding-top: var(--s-7); }
  [data-demo="top"] .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  [data-demo="top"] .hero__copy { text-align: center; }
  [data-demo="top"] .hero h1, [data-demo="top"] .hero .lede { margin-left: auto; margin-right: auto; }
  [data-demo="top"] .hero .cta-row { justify-content: center; }
}

/* Middle: its own section after How it works. */

/* Pop-up: the hero's second button opens it full screen. */
.hero__secondary .demo-play { width: 12px; height: 12px; margin-left: var(--s-2); vertical-align: -1px; fill: currentColor; }
.demo-dlg {
  width: min(var(--w-reading), 100vw - 2 * var(--s-4)); max-width: none; max-height: none;
  margin: auto; padding: var(--s-7) 0 0; border: 0; background: none; overflow: visible;
}
.demo-dlg::backdrop { background: color-mix(in srgb, var(--c-ink-deep) 82%, transparent); }
.demo-dlg__x {
  position: absolute; top: 0; right: 0; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: var(--c-surface); color: var(--c-ink); cursor: pointer;
}
.demo-dlg__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; }
.demo-dlg__x:hover { background: var(--c-paper-2); }

/* ---- 5 · Dark: the blue sections like the hero (25 Nov 2026) ----------
   Yianni asked to see the gridded blue sections dressed like the dark hero
   (look B): ink-deep, cool off-white text, the hero's dark grid lines.
   Cards, the phone and the post cards stay light. */
[data-ideas~="dark"] .section:not(.band-alt):not(.band-ink):not(.hero) { background: var(--c-dark-paper); color: var(--c-dark-text); }
[data-ideas~="dark"] .section:not(.band-alt):not(.band-ink):not(.hero)::before { background: var(--c-dark-card); opacity: 1; }
[data-ideas~="dark"] .section:not(.band-alt):not(.band-ink):not(.hero)::after { background: var(--c-dark-line); opacity: 1; }
/* Two dark sections in a row (real posts into the problem): a hairline so
   they read as two sections, not one long one. */
[data-ideas~="dark"] .section:not(.band-alt):not(.band-ink):not(.hero) + .section:not(.band-alt):not(.band-ink):not(.hero) { border-top: var(--bw) solid var(--c-dark-line); }
[data-ideas~="dark"] .section:not(.band-alt):not(.band-ink):not(.hero) :focus-visible { outline-color: var(--c-dark-cobalt); }
[data-ideas~="dark"] .section:not(.band-alt):not(.band-ink):not(.hero) :is(.card, .step__thumb, .pc, .real__link) { color: var(--c-ink); }
[data-ideas~="dark"] .section:not(.band-alt):not(.band-ink):not(.hero) :is(.real__sub, .faq__label, .fine) { color: var(--c-dark-stone); }
/* Steps idea: on wide screens the steps are white cards, so their text stays ink. */
[data-ideas~="dark"] .section:not(.band-alt):not(.band-ink):not(.hero) .steps.is-turns .step { color: var(--c-ink); }
[data-ideas~="dark"] .section:not(.band-alt):not(.band-ink):not(.hero) .sheet__pause { color: var(--c-dark-cobalt); }
[data-ideas~="dark"] .section:not(.band-alt):not(.band-ink):not(.hero) .sheet__pause:hover { color: var(--c-dark-text); }
/* The step numbers: dark discs with light numbers, as on the docket. */
[data-ideas~="dark"] .section:not(.band-alt):not(.band-ink):not(.hero) .step::before { background: var(--c-dark-paper); border-color: var(--c-dark-stone); color: var(--c-dark-text); }
[data-ideas~="dark"] .section:not(.band-alt):not(.band-ink):not(.hero) .step:not(:last-child)::after { border-color: var(--c-dark-line); }

/* Phones: the demo as a poster that opens it full screen (25 Nov 2026). */
.demo-poster {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden; cursor: pointer;
  border: 0; border-radius: var(--r-large); background: var(--c-paper-2); box-shadow: var(--shadow-raised);
}
.demo-poster img { display: block; width: 100%; height: auto; }
.demo-poster__btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--s-7); padding: 0 var(--s-5);
  border-radius: var(--r-pill); background: var(--c-cobalt); color: var(--c-surface);
  font-size: var(--fs-body); font-weight: var(--fw-medium); white-space: nowrap; box-shadow: var(--shadow-raised);
}
.demo-poster__btn svg { width: 14px; height: 14px; fill: currentColor; }
.demo-poster:focus-visible { outline: 2px solid var(--c-dark-cobalt); outline-offset: 3px; }
@media (max-width: 767px) {
  /* Full screen on a phone: the player gets the whole screen under the close button. */
  .demo-dlg { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: calc(var(--s-7) + var(--s-3)) 0 0; }
  .demo-dlg .demo-frame { aspect-ratio: auto; height: 100%; padding-top: 0; border-radius: 0; box-sizing: border-box; }
  .demo-dlg__x { top: var(--s-2); right: var(--s-2); }
  .demo-dlg::backdrop { background: var(--c-ink-deep); }
}
/* Dark: the lit step numbers keep their cobalt over the dark discs. */
[data-ideas~="dark"] .section:not(.band-alt):not(.band-ink):not(.hero) .steps.is-on:not(.is-turns) .step::before { background: var(--c-cobalt); border-color: var(--c-cobalt); color: var(--c-on-signal); }
[data-ideas~="dark"] .section:not(.band-alt):not(.band-ink):not(.hero) .steps.is-on:not(.is-turns) .step:not(:last-child)::after { border-color: var(--c-cobalt); border-width: var(--bw-strong); }
