/* davidpaterni.com: a case study page. The layout is the one these pages have always had
 * (centered hero, split headings, cards, panels, bands); every surface, color, face,
 * radius, rule and component is Wolf-Rayet's. Loaded after site.css. */
.cs { --cs-gap: var(--wr-space-group); --cs-sec: calc(var(--wr-space-page) * 2); --cs-edge: var(--wr-border-standard) solid var(--wr-border-subtle); }
.cs-sec { padding-block: var(--cs-sec); scroll-margin-block-start: 56px; }
.cs-sec--flush { padding-block-start: var(--wr-space-page); }
.cs-hero { padding-block-end: var(--wr-space-page); }
.cs-band { background: var(--wr-surface-raised); }
.cs-wrap { max-inline-size: 71.25rem; margin-inline: auto; padding-inline: var(--wr-space-stack); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wr-space-page); }
.cs-center { text-align: center; justify-items: center; }
.cs-narrow { inline-size: 100%; max-inline-size: 46rem; margin-inline: auto; display: grid; gap: var(--wr-space-stack); }

/* ── type ── */
.cs-tag { display: inline-block; padding: var(--wr-space-inline) var(--wr-space-stack); border-radius: var(--wr-radius-chip); background: var(--wr-accent-subtle); color: var(--wr-text-accent); font-family: var(--wr-family-mono); font-weight: var(--wr-font-weight-bold); font-size: var(--wr-font-small); line-height: var(--wr-line-small); }
.cs-title { font-family: var(--wr-family-display); font-weight: var(--wr-font-weight-bold); font-size: clamp(38px, 5vw, 64px); line-height: 1.08; letter-spacing: -.03em; }
.cs-h2 { font-family: var(--wr-family-display); font-weight: var(--wr-font-weight-bold); font-size: clamp(28px, 3.2vw, 38px); line-height: 1.16; letter-spacing: -.02em; }
.cs-h3 { font-family: var(--wr-family-display); font-weight: var(--wr-font-weight-bold); font-size: 24px; line-height: 30px; letter-spacing: -.01em; }
.cs-lead { font-size: var(--wr-text-lead); line-height: 1.65; }
.cs-intro-p { font-size: var(--wr-text-lead); line-height: 1.65; font-weight: var(--wr-font-weight-medium); }
.cs-small { font-size: var(--wr-font); line-height: var(--wr-line-reading); }
.cs-src { font-size: var(--wr-font); line-height: var(--wr-line); }
.cs-kicker { display: flex; gap: var(--wr-space-inline); align-items: flex-start; font-family: var(--wr-family-mono); font-weight: var(--wr-font-weight-bold); font-size: var(--wr-font-small); line-height: var(--wr-line-small); color: var(--wr-text-accent); }
.cs-kicker svg { margin-block-start: -.1em; }
.cs svg.cs-ico { inline-size: 1.125rem; block-size: 1.125rem; flex: none; }
.cs :where(p, li, dd, td, th, blockquote, figcaption) a:not(.wr-button) { color: var(--wr-text-primary); font-weight: var(--wr-font-weight-medium); text-decoration-line: underline; text-decoration-color: var(--wr-emitter-marked); text-decoration-thickness: var(--wr-border-standard); text-underline-offset: .2em; }
.cs :where(p, li, dd, td, th, blockquote, figcaption) a:not(.wr-button):hover { text-decoration-thickness: var(--wr-border-heavy); }

/* ── hero ── */
.cs-intro { display: grid; gap: var(--wr-space-group); max-inline-size: 52rem; inline-size: 100%; margin-inline: auto; }
.cs-intro > .cs-lead { max-inline-size: 45rem; }
.cs-intro > .cs-grid { inline-size: 100%; text-align: start; justify-items: stretch; }
.cs-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--wr-space-stack-tight); }
.cs .wr-button.cs-big { block-size: auto; min-block-size: 2.75rem; max-inline-size: 100%; white-space: normal; text-align: center; padding-block: var(--wr-space-inline); padding-inline: var(--wr-space-group); font-size: var(--wr-font-reading); }
.cs-wide { display: grid; gap: var(--wr-space-stack); }
/* a demo in a grid of cards spans the whole row */
.cs-grid > .cs-wide { grid-column: 1 / -1; }
.cs-caption { display: flex; justify-content: center; gap: var(--wr-space-inline); text-align: center; font-weight: var(--wr-font-weight-medium); font-size: var(--wr-font); line-height: var(--wr-line-reading); }

/* ── grids and cards ── */
.cs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--cs-gap, var(--wr-space-group)); }
.cs-col { display: grid; min-inline-size: 0; }
.cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wr-space-stack-tight); }
@media (min-width: 42rem) { .cs-grid--2, .cs-grid--3, .cs-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .cs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cs-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 23rem) { .cs-facts { grid-template-columns: minmax(0, 1fr); } }
.cs-card { display: grid; gap: var(--wr-space-stack-tight); align-content: start; padding: var(--wr-space-group); border: var(--cs-edge, var(--wr-border-standard) solid var(--wr-border-subtle)); border-radius: var(--wr-radius-surface); background: var(--wr-surface-page); }
.cs-card--sunk { background: var(--wr-surface-raised); gap: var(--wr-space-inline); }
.cs-facts .cs-card { padding: var(--wr-space-stack); }
.cs-stat { display: block; font-family: var(--wr-family-display); font-weight: var(--wr-font-weight-bold); font-size: clamp(38px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.02em; color: var(--wr-text-accent); font-variant-numeric: tabular-nums; }
.cs-who-card { display: flex; flex-direction: row; gap: var(--wr-space-stack-tight); align-items: flex-start; }
.cs-ini { flex: none; display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; border-radius: 50%; background: var(--wr-accent-subtle); color: var(--wr-text-accent); font-family: var(--wr-family-mono); font-weight: var(--wr-font-weight-bold); font-size: var(--wr-font-small); }
.cs-notebox { padding: var(--wr-space-stack) var(--wr-space-group); border: var(--wr-border-standard) dashed var(--wr-border-strong); border-radius: var(--wr-radius-surface); }

/* ── split heading: the section's name on the left, its text on the right ── */
.cs-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wr-space-group); align-items: start; }
.cs-split-head { display: grid; gap: var(--wr-space-inline); align-content: start; }
.cs-split-body { display: grid; gap: var(--wr-space-group); align-content: start; }
@media (min-width: 52rem) {
  .cs-split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cs-split-head { grid-column: 1 / span 4; }
  .cs-split-body { grid-column: 6 / -1; }
}
.cs-headline { display: grid; gap: var(--wr-space-stack); max-inline-size: 46rem; margin-inline: auto; }

/* ── prototypes in their frames ── */
.cs-stage, .cs-spec { border: var(--cs-edge); border-radius: var(--wr-radius-surface); overflow: hidden; background: var(--wr-surface-raised); }
.cs-stage iframe, .cs-spec iframe { display: block; inline-size: 100%; border: 0; }
.cs-stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wr-space-inline); padding: var(--wr-space-inline) var(--wr-space-stack); border-block-end: var(--cs-edge); background: var(--wr-surface-page); }
.cs-who { display: inline-flex; gap: var(--wr-space-inline); align-items: center; font-family: var(--wr-family-mono); font-weight: var(--wr-font-weight-bold); font-size: var(--wr-font-small); line-height: var(--wr-line-small); }
@media (max-width: 42rem) { .cs-who--wide { display: none; } }
.cs-panel[hidden] { display: none; }

/* ── the four parts: text beside the working screen, side alternating ── */
.cs-part { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wr-space-page); align-items: center; }
.cs-part-text { display: grid; gap: var(--wr-space-stack); align-content: center; }
@media (min-width: 62rem) {
  .cs-part { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-part--flip > .cs-part-text { order: 2; }
  .cs-part--flip > .cs-part-media { order: 1; }
}
.cs-num { display: grid; place-items: center; inline-size: 2.5rem; block-size: 2.5rem; border-radius: 50%; background: var(--wr-accent-bold); color: var(--wr-text-on-bold); font-family: var(--wr-family-mono); font-weight: var(--wr-font-weight-bold); }
.cs-list { margin: 0; padding-inline-start: 1.25em; display: grid; gap: var(--wr-space-inline); }
.cs-quote { margin: 0; padding: var(--wr-space-stack) var(--wr-space-group); border-inline-start: var(--wr-border-heavy) solid var(--wr-accent-bold); border-radius: 0 var(--wr-radius-surface) var(--wr-radius-surface) 0; background: var(--wr-surface-raised); font-weight: var(--wr-font-weight-medium); font-size: var(--wr-text-lead); line-height: 1.65; }
.cs-eyebrow-center { text-align: center; }

/* ── tables, in a panel: the system's rows in one block, rules between, no column lines ── */
.cs-box { padding: clamp(var(--wr-space-stack-tight), 3vw, var(--wr-space-page)); border: var(--cs-edge); border-radius: var(--wr-radius-surface); background: var(--wr-surface-raised); display: grid; gap: var(--wr-space-group); }
.cs-box-intro { display: grid; gap: var(--wr-space-inline); max-inline-size: 46rem; }
.cs-table { inline-size: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: var(--wr-font-reading); line-height: var(--wr-line-reading); }
.cs-table th, .cs-table td { padding: var(--wr-space-stack); vertical-align: top; text-align: start; }
.cs-table thead th, .cs-table thead td { vertical-align: bottom; font-family: var(--wr-family-mono); font-weight: var(--wr-font-weight-bold); font-size: var(--wr-font-small); line-height: var(--wr-line-small); }
.cs-table tbody th, .cs-table tbody td { background: var(--wr-surface-page); border-block-end: var(--cs-edge); }
.cs-table tbody th { font-weight: var(--wr-font-weight-bold); }
.cs-table tbody:first-of-type tr:first-child > :first-child { border-start-start-radius: var(--wr-radius-surface); }
.cs-table tbody:first-of-type tr:first-child > :last-child { border-start-end-radius: var(--wr-radius-surface); }
.cs-table tbody:last-of-type tr:last-child > :first-child { border-end-start-radius: var(--wr-radius-surface); border-block-end: 0; }
.cs-table tbody:last-of-type tr:last-child > :last-child { border-end-end-radius: var(--wr-radius-surface); border-block-end: 0; }
.cs-table tbody:last-of-type tr:last-child > * { border-block-end: 0; }
.cs-matrix tbody th { inline-size: 21%; }
.cs-matrix .cs-chosen { background: var(--wr-accent-subtle); }
.cs-matrix thead .cs-chosen { border-radius: var(--wr-radius-surface) var(--wr-radius-surface) 0 0; }
.cs-badge { display: table; margin-block-end: var(--wr-space-inline); padding: var(--wr-space-inline-tight) var(--wr-space-inline); border-radius: var(--wr-radius-chip); background: var(--wr-accent-bold); color: var(--wr-text-on-bold); }
.cs-note { display: block; margin-block-start: var(--wr-space-inline); font-size: var(--wr-font); line-height: var(--wr-line); }
.cs-bills thead th:first-child { inline-size: 24%; }
.cs-bills .cs-numcol { inline-size: 9rem; text-align: end; font-family: var(--wr-family-mono); font-variant-numeric: tabular-nums; font-size: var(--wr-font); }
.cs-bills thead .cs-numcol { font-size: var(--wr-font-small); }
.cs-measures .cs-target { font-family: var(--wr-family-display); font-weight: var(--wr-font-weight-bold); font-size: 20px; line-height: 26px; color: var(--wr-text-accent); }
.cs-measures .cs-group th { background: var(--wr-accent-subtle); font-family: var(--wr-family-mono); font-size: var(--wr-font-small); }
/* a status word: the system's mark and shape, in the system's status color */
.cs-status { --wr-status-indicator-size: var(--wr-status-indicator-level-2-size); --wr-status-indicator-weight: var(--wr-status-indicator-level-2-weight); --wr-status-indicator-label-size: var(--wr-font-reading); font-weight: var(--wr-font-weight-bold); }
.cs-status .wr-status-indicator__label { color: var(--cs-ink); font-weight: var(--wr-font-weight-bold); }
.cs-status--good { --cs-ink: var(--wr-status-positive); --wr-status-indicator-mark: var(--wr-status-positive-bold); --wr-status-indicator-ground: var(--wr-status-positive-bold); }
.cs-status--bad { --cs-ink: var(--wr-status-critical); --wr-status-indicator-mark: var(--wr-status-critical-bold); --wr-status-indicator-ground: var(--wr-status-critical-bold); }
.cs-status--warn { --cs-ink: var(--wr-status-caution); --wr-status-indicator-mark: var(--wr-status-caution-bold); --wr-status-indicator-ground: var(--wr-status-caution-bold); }
.cs-status--next { --cs-ink: var(--wr-text-accent); --wr-status-indicator-mark: var(--wr-accent-bold); --wr-status-indicator-ground: transparent; }
/* below a tablet each row is a card and each cell says which column it is */
@media (max-width: 61.99rem) {
  .cs-table, .cs-table tbody, .cs-table tr, .cs-table tbody th, .cs-table td { display: block; inline-size: auto; }
  .cs-table thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cs-table tbody tr { margin-block-start: var(--wr-space-stack-tight); border: var(--cs-edge); border-radius: var(--wr-radius-surface); overflow: hidden; background: var(--wr-surface-page); }
  .cs-table tbody tr > * { border: 0; border-radius: 0; padding-block: var(--wr-space-inline); }
  .cs-table tbody th { padding-block-start: var(--wr-space-stack); inline-size: auto; }
  .cs-table td[data-label]::before { content: attr(data-label); display: block; margin-block-end: var(--wr-space-inline-tight); font-family: var(--wr-family-mono); font-weight: var(--wr-font-weight-bold); font-size: var(--wr-font-small); line-height: var(--wr-line-small); }
  .cs-table td:last-child { padding-block-end: var(--wr-space-stack); }
  .cs-bills .cs-numcol { text-align: start; inline-size: auto; }
  .cs-matrix .cs-chosen { background: var(--wr-accent-subtle); }
}

/* ── more work ── */
.cs-more-action { display: flex; justify-content: center; }
.cs-stack { display: grid; gap: var(--wr-space-page); }
.cs-card .cs-src, p > .cs-src { display: block; margin-block-start: var(--wr-space-inline); }

/* ── the shared skeleton: the same slots, in the same order, on every project page ──
 * The work, Decisions, Outcome, More detail. Each slot opens with its plain label. */
.cs-slot { display: flex; align-items: center; gap: var(--wr-space-stack); margin: 0 0 var(--wr-space-page); font-family: var(--wr-family-mono); font-weight: var(--wr-font-weight-bold); font-size: var(--wr-font); line-height: var(--wr-line); }
.cs-slot::after { content: ""; flex: 1; border-block-start: var(--wr-border-standard) solid var(--wr-border-strong); }
/* framing short enough that the work shows on the first screen */
.cs-hero { padding-block-start: var(--wr-space-page); }
.cs-hero .cs-stack { gap: var(--wr-space-section); }
.cs-hero .cs-intro { gap: var(--wr-space-stack); }
.cs-hero .cs-title { font-size: clamp(34px, 3.6vw, 48px); }
.cs-facts-after { margin-block-start: var(--wr-space-section); }
/* The work on the first screen. Desktop: the framing on the left, the working app on the
 * right, both from the top. Narrower: the title, left aligned, with the header line under it as
 * plain small text, then the work, then the rest of the framing. */
.cs-hero .cs-stack { grid-template-columns: minmax(0, 1fr); }
.cs-hero .cs-facts-after { margin: 0; }
@media (min-width: 62rem) {
  .cs-hero .cs-stack { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; column-gap: var(--wr-space-page); }
  .cs-hero .cs-intro { text-align: start; justify-items: start; }
  .cs-hero .cs-intro .cs-actions { justify-content: flex-start; }
  .cs-hero .cs-intro > .cs-lead { max-inline-size: none; }
  .cs-hero .cs-facts-after { grid-column: 1 / -1; }
  .cs-hero .cs-caption { justify-content: flex-start; text-align: start; }
}
@media (max-width: 61.99rem) {
  .cs-hero { padding-block-start: var(--wr-space-section); }
  .cs-hero .cs-intro { display: contents; text-align: start; }
  .cs-hero .cs-stack > * , .cs-hero .cs-intro > * { order: 4; }
  .cs-hero .cs-intro > .cs-tag, .cs-hero .cs-intro > .cs-title { order: 1; }
  .cs-hero .cs-intro > .cs-meta { order: 2; margin-block-start: calc(0px - var(--wr-space-inline)); }
  .cs-hero .cs-wide { order: 3; }
  .cs-hero .cs-stack { justify-items: stretch; text-align: start; gap: var(--wr-space-stack); }
  .cs-hero .cs-intro .cs-actions { justify-content: flex-start; }
}
/* The header line: type, subject and role, before the title. */
.cs-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--wr-space-inline); }
.cs-meta li { padding: var(--wr-space-inline-tight) var(--wr-space-inline); border-radius: var(--wr-radius-chip); background: var(--wr-accent-subtle); color: var(--wr-text-accent); font-family: var(--wr-family-mono); font-weight: var(--wr-font-weight-bold); font-size: var(--wr-font-small); line-height: var(--wr-line-small); }
.cs-meta li:first-child { background: var(--wr-accent-bold); color: var(--wr-text-on-bold); }
/* a decision beside its screen: what was chosen, what else, why, what it cost */
/* A label and its answer, one pair after another (What I chose, What else I considered, Why...):
   each pair opens with a rule, the label in the short-label style, the answer at reading size. */
.cs-dl { margin: 0; display: grid; gap: 0; }
.cs-dl dt { padding-block-start: var(--wr-space-stack); border-block-start: var(--wr-border-standard) solid var(--wr-border-subtle); }
.cs-dl dt:first-of-type { padding-block-start: 0; border-block-start: 0; }
.cs-dl dd { margin: var(--wr-space-inline-tight) 0 var(--wr-space-stack); font-size: var(--wr-font-reading); line-height: var(--wr-line-reading); color: var(--wr-text-primary); }
.cs-dl dd:last-child { margin-block-end: 0; }
#decisions .cs-part { padding-block: var(--wr-space-page); border-block-start: var(--wr-border-standard) solid var(--wr-border-subtle); }
/* Narrower: the header line is plain small text under the title, its parts set apart by dots. */
@media (max-width: 61.99rem) {
  .cs-meta { display: block; font-family: var(--wr-family-mono); font-size: var(--wr-font-small); line-height: var(--wr-line); }
  .cs-meta li { display: inline; padding: 0; background: none; color: var(--wr-text-secondary); font-weight: var(--wr-font-weight-medium); }
  .cs-meta li:first-child { background: none; color: var(--wr-text-secondary); }
  .cs-meta li + li::before { content: " \00b7  "; white-space: pre; }
}
.cs-split > .cs-headline { margin: 0; text-align: start; justify-items: start; }
@media (min-width: 52rem) { .cs-split > .cs-headline { grid-column: 1 / span 4; } }
.cs-hero .cs-intro .cs-actions .wr-button { flex: 0 0 auto; }
/* the rest of the framing, under the work */
.cs-about { display: grid; gap: var(--wr-space-stack); max-inline-size: 46rem; }
@media (min-width: 62rem) { .cs-hero .cs-about { grid-column: 1 / -1; } }
.cs-strip { display: block; margin-block-end: var(--wr-space-stack); }
.cs-caption { display: block; }
.cs-caption > svg { display: inline-block; vertical-align: -.2em; margin-inline-end: var(--wr-space-inline); }
/* a two-part hero whose sides start at the top: the framing beside the work */
.cs-part--top { align-items: start; }
/* a written document: a rail of what is on the page, beside the document */
.cs-doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wr-space-page); align-items: start; }
@media (min-width: 62rem) { .cs-doc { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); } }
@media (max-width: 61.99rem) { .cs-doc-rail .ppl-rail, .cs-doc-rail > * { position: static; } }

.cs-part-text .cs-actions { justify-content: flex-start; }
@media (max-width: 61.99rem) {
  .cs-part--top { gap: var(--wr-space-stack); }
  .cs-part--top > .cs-part-text { display: contents; }
  .cs-part--top > .cs-part-text > *, .cs-part--top > .cs-part-media { order: 4; }
  .cs-part--top > .cs-part-text > h1 { order: 1; }
  .cs-part--top > .cs-part-text > .cs-meta { order: 2; margin-block-start: calc(0px - var(--wr-space-inline)); }
  .cs-part--top > .cs-part-media { order: 3; }
}

/* A phone prototype in its own frame, straight on the page: no box behind it. site.js scales it
 * so the whole device fits the window. */
.cs-device { position: relative; inline-size: 100%; overflow: hidden; }
.cs-device iframe { display: block; border: 0; background: transparent; transform-origin: 0 0; }
/* The first screen: the framing and the work, together in one window. */
@media (min-width: 62rem) {
  .cs-hero { min-block-size: calc(100svh - 56px); display: grid; align-items: center; padding-block: var(--wr-space-section); }
  .cs-hero .cs-stack { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}
.cs-hero .cs-caption { text-align: start; }
/* A link in a caption: a 44px tap area on touch screens, through padding taken back by the margin. */
@media (pointer: coarse) { .cs-caption a { display: inline-block; padding-block: max(0px, calc((44px - 1lh) / 2)); margin-block: min(0px, calc((1lh - 44px) / 2)); } }
/* a web app keeps an edge, since it paints its own ground; it is sized to the window */
.cs-app { border: var(--wr-border-standard) solid var(--wr-border-subtle); border-radius: var(--wr-radius-surface); overflow: hidden; }
.cs-app iframe { display: block; inline-size: 100%; block-size: clamp(520px, calc(100svh - 56px - 2 * var(--wr-space-section)), 820px); border: 0; }

/* A web app in the hero: the hero takes the app's height, not the window's, and the text sits at the top. */
@media (min-width: 62rem) {
  .cs-hero:has(.cs-app) { min-block-size: 0; padding-block: var(--wr-space-page); }
}
.cs-hero .cs-app iframe { block-size: clamp(480px, 68svh, 680px); }
/* A specimen draws its own ground and cards, so its frame adds no border of its own. */
.cs-spec { border: 0; background: transparent; }
/* the rail's column runs the length of the document, so the rail can stay in view below the bar */
.cs-doc > .cs-doc-rail { align-self: stretch; }
/* a document's closing links: space above, and they share the column's full width */
.cs-doc-main .cs-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wr-space-stack-tight); margin-block-start: var(--wr-space-page); }
@media (min-width: 42rem) { .cs-doc-main .cs-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-doc-main .cs-actions .wr-button { inline-size: 100%; justify-content: center; }
/* A status mark beside a full sentence (comparison tables): the system's mark carries the meaning, the sentence stays in reading ink. */
.cs-status--text { align-items: baseline; font-weight: normal; }
.cs-status--text .wr-status-indicator__label { color: var(--wr-text-primary); font-weight: normal; }
.cs-table thead .cs-ico { margin-inline-end: var(--wr-space-inline-tight); vertical-align: text-bottom; }
.cs-table thead .cs-note { font-weight: normal; }

/* A walk-through for an app the page cannot run (a native app, another site): its real screens in
   order, one at a time, crossfading on a loop, in light and dark. .cs-seq--phone draws a phone body
   around screen-only images; .cs-seq--desk is a desktop window with an edge and no drawn browser bar.
   With reduced motion it holds the first screen. site.js runs it. */
.cs-seq { position: relative; display: grid; margin-inline: auto; overflow: hidden; }
.cs-seq > figure { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity var(--wr-motion-level-3-max-duration) var(--wr-easing-enter); }
.cs-seq > figure.is-on { opacity: 1; }
.cs-seq img { display: block; inline-size: 100%; block-size: auto; }
/* A picture only picks which file loads: the screen hidden at this width loads a blank pixel. */
.cs-seq picture { display: contents; }
.cs-seq .cs-seq-dark { display: none; }
:root[data-mode="dark"] .cs-seq .cs-seq-light { display: none; }
:root[data-mode="dark"] .cs-seq .cs-seq-dark { display: block; }
/* The iPhone 18 Pro, as every phone on the site, in proportion: 12 of 426 bezel, 79 point outer and
   67 point screen corners, a 95 by 37 island 14 points below the screen top. */
.cs-seq--phone { inline-size: min(100%, 340px); aspect-ratio: 426 / 898; border-radius: 18.54% / 8.8%;
  background: linear-gradient(150deg, #2b2d31, #0a0b0d); box-shadow: inset 0 0 0 1px #3a3d44; }
/* the screen sits 12 points in on every side: insets are measured against the phone itself */
.cs-seq--phone > figure { position: absolute; inset: 1.336% 2.817%; }
.cs-seq--phone img { inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: 16.67% / 7.67%; }
.cs-seq--phone::after { content: ""; position: absolute; z-index: 1; inset-block-start: 2.895%; inset-inline-start: 50%;
  inline-size: 22.3%; aspect-ratio: 95 / 37; translate: -50% 0; border-radius: 99px; background: #000; }
.cs-seq--desk { inline-size: 100%; border: var(--wr-border-standard) solid var(--wr-border-subtle); border-radius: var(--wr-radius-surface); }
/* A web app's hero on a phone: its own phone screens in place of the desktop window, which is
   too small to read at that width. The button below opens the app itself. */
.cs-seq--narrow { display: none; }
@media (max-width: 41.99rem) {
  .cs-wide:has(> .cs-seq--narrow) > .cs-browser { display: none; }
  .cs-wide > .cs-seq--narrow { display: grid; }
}
@media (prefers-reduced-motion: reduce) { .cs-seq > figure { transition: none; } }

/* ── spacing between stacked text, one scale on every project page: title and its line 8,
 * paragraph and paragraph 16, a part and what follows it 16 or 24 ── */
.cs :is(.st-step-h, .st-ver, .gr-ver, .ov-ver, .rc-ver) + p { margin-block-start: var(--wr-space-inline-tight); }
.cs :is(.rc-feature, .qr-c, .cf-panel-body, .cf-spine-card) > :is(h3, .cs-kicker) + * { margin-block-start: var(--wr-space-inline); }
.cs :is(.qr-theme-card, .cs-notebox, .wr-prose, .ro-frame__body) > p + p { margin-block-start: var(--wr-space-stack); }
.cs .cf-panel + .cs-small, .cs .sw-devices + .cs-caption, .cs .cf-panel ~ .cs-actions + .cs-small, .cs .cs-actions + .cs-small { margin-block-start: var(--wr-space-stack); }
.cs .cs-headline > .wk-grid { margin-block-start: var(--wr-space-group); }
.cs .cs-meta + h1 { margin-block-start: var(--wr-space-stack); }
.cs .ro-lede + .ro-card { margin-block-start: var(--wr-space-group); }
.cs :is(.ro-slot__cap--title + .ro-chartbox, .ro-chartbox + .ro-slot__foot) { margin-block-start: var(--wr-space-stack-tight); }
.cs :is(.ixd-card, .ixd-card--sunk) > .ixd-kicker + *, .cs .ixd-card--sunk > .cs-grid + p, .cs .ixd-stage > .cs-actions + .ixd-status { margin-block-start: var(--wr-space-stack); }
.cs .ixd-card--sunk > div > p + p.cs-small { margin-block-start: var(--wr-space-inline); }
.cs ol.rules > li + li { margin-block-start: var(--wr-space-inline); }
/* the two pages whose main is not .cs */
main.wr-main .wr-prose > p + p { margin-block-start: var(--wr-space-stack); }
main.wr-main .wr-meta + h1, main.wr-main .cs-meta + h1 { margin-block-start: var(--wr-space-stack); }
main.wr-main .cs-headline > .wk-grid, main .kl-wrap > .cs-headline > .wk-grid { margin-block-start: var(--wr-space-group); }
main .ro-wrap > .ro-lede + .ro-card { margin-block-start: var(--wr-space-group); }
main .ro-slot > .ro-slot__cap--title + .ro-chartbox, main .ro-slot > .ro-chartbox + .ro-slot__foot { margin-block-start: var(--wr-space-stack-tight); }
main .ro-frame__body > .ro-specimen__why + .ro-specimen__why { margin-block-start: var(--wr-space-stack); }
/* single touching pairs */
.cs .cf-proof-lbl + .cs-small, .cs .fos-panel > p, .cs .ixd-stage > * + .ixd-status, .cs .ixd-card--sunk p + p.cs-small, .cs .mhx-stage + .mhx-legend { margin-block-start: var(--wr-space-stack-tight); }

/* a hero shows the work on the page itself: no frame around it */
.cs .cs-hero .slot { border: 0; background: transparent; }
.cs .cs-hero .cs-seq--desk { border: 0; border-radius: 0; }
.cs .ixd-card > * + :is(.cs-actions, p.cs-small), .cs .ixd-card--sunk > * + p.cs-small, .cs .ixd-card--sunk > .cs-actions + * { margin-block-start: var(--wr-space-stack); }
.cs .ixd-card--sunk > div > p + .ixd-status, .cs .ixd-card--sunk > div > p.cs-small + .mtn-vp { margin-block-start: var(--wr-space-stack-tight); }
.cs .cs-hero .fos-panel > p { margin-block-start: var(--wr-space-stack); }
html body .cs-headline + .wk-grid { margin-block-start: var(--wr-space-group); }
.cs .cs-hero .fos-panel + p { margin-block-start: var(--wr-space-stack); }
.cs .ixd-card--sunk p + .ixd-status, .cs .ixd-card--sunk p.cs-small + .mtn-vp { margin-block-start: var(--wr-space-stack-tight); }

/* A web app in a browser window: the bar with its address, then the app. The phone body's
 * counterpart for apps that run in a browser. Colors are the system's; the dots are marks only. */
.cs-browser { border: var(--wr-border-standard) solid var(--wr-border-subtle); border-radius: var(--wr-radius-surface); overflow: hidden; background: var(--wr-surface-page); }
.cs-browser-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--wr-space-stack); padding: var(--wr-space-inline) var(--wr-space-stack); border-block-end: var(--wr-border-standard) solid var(--wr-border-subtle); background: var(--wr-surface-inset); }
.cs-browser-dots { display: flex; gap: var(--wr-space-inline-tight); }
.cs-browser-dots span { inline-size: .625rem; block-size: .625rem; border-radius: 50%; background: var(--wr-border-strong); }
.cs-browser-url { display: flex; align-items: center; justify-content: center; gap: var(--wr-space-inline-tight); min-inline-size: 0; padding: var(--wr-space-inline-tight) var(--wr-space-stack); border-radius: var(--wr-radius-chip); background: var(--wr-surface-page); font-family: var(--wr-family-mono); font-size: var(--wr-font-small); line-height: var(--wr-line-small); color: var(--wr-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-browser-url > span { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
.cs-browser-url svg { flex: none; inline-size: .875rem; block-size: .875rem; }
.cs-browser-end { inline-size: 2.125rem; }
.cs-browser > .cs-app { border: 0; border-radius: 0; }
@media (max-width: 41.99rem) { .cs-browser-url { justify-content: flex-start; } .cs-browser-end { display: none; } .cs-browser-bar { grid-template-columns: auto minmax(0, 1fr); } }

/* Inside a demo: controls start at the left edge, and every block is one stack apart. */
.cs :is(.ixd-card, .ixd-card--sunk, .ixd-stage) .cs-actions { justify-content: flex-start; align-items: center; }
.cs :is(.ixd-card, .ixd-card--sunk, .ixd-stage) > :not(.ixd-recap-row) + :not(.ixd-recap-row) { margin-block-start: var(--wr-space-stack); }
.cs :is(.ixd-card, .ixd-card--sunk, .ixd-stage) > :not(.ixd-recap-row) { margin-block-end: 0; }
.cs-browser > .slot { border: 0; border-radius: 0; }
.cs-browser > .cs-seq--desk { border: 0; border-radius: 0; }
