/* wslr · compact. Page styles on top of scrollcraft.css, shared by the card
   (index.html) and the case pages (work/*.html).
   Grammar: split stage, kept short. After one screen of hero the page is two
   grounds with a divider between them, and the divider is the chrome. Depth
   lives behind links: each piece of work opens a page of its own.
   Tokens are the wslr design system's; the one rule this version breaks is
   "no motion": scroll drives a few things. Still no shadows, no gradients, no
   photos, radii 0 to 4px, one orange mark. */

:root {
  /* wslr palette */
  --paper:       #FAF6EF;
  --paper-2:     #F2ECE3;
  --sunken:      #E6DFD3;
  --rule:        #D8D0C3;
  --rule-strong: #96918A;
  --ink:         #29211A;
  --ink-2:       #6A615A;
  --ink-inv:     #FCFAF6;
  --navy:        #1E3751;
  --navy-hover:  #16283B;
  --navy-press:  #0F1C29;
  --link:        #245F8C;
  --orange:      #E8663C;
  --orange-soft: #FBE4DB;
  --orange-ink:  #A8401E;
  --positive:    #487F4A;

  /* scrollcraft roles, mapped onto wslr */
  --sc-canvas: var(--paper);
  --sc-surface: var(--paper);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-2);
  --sc-accent: var(--navy);
  --sc-accent-ink: var(--ink-inv);
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text: "IBM Plex Sans", system-ui, sans-serif;
  --sc-font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --sc-r-sm: 2px; --sc-r-md: 4px; --sc-r-lg: 4px; --sc-r-pill: 4px;
  --sc-e1: none; --sc-e2: none; --sc-e3: none; --sc-edge: none;

  /* layout */
  --edge: 48px;          /* outer gutter */
  --gut: 48px;           /* copy to the centre line */
  --measure: 34rem;      /* content width per side */
  --page: calc(2 * (var(--measure) + var(--gut) + var(--edge)));
  --bar: 59px;           /* the header band */
  --foot: 71px;          /* the footer */
  --t-xl: 56px;          /* brand metric size */
  --t-lg: 48px;          /* brand display size: the hero and the close */
  --t-md: 28px;          /* section heads on the card */
}

/* ------------------------------------------------------------ base -- */
html { scroll-padding-top: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--navy); color: var(--ink-inv); }
a { color: var(--link); transition: color 120ms linear; }
/* Hover looks, here and below, only where a pointer can hover: on a touch
   screen they would stay on after a tap until something else is tapped. */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--navy); }
}
.num { font-family: var(--sc-font-mono); font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 80;
  background: var(--navy); color: var(--ink-inv); padding: 8px 12px; border-radius: 2px;
  font-weight: 500; font-size: 14px; text-decoration: none;
  transform: translateY(-200%); transition: transform 160ms var(--sc-ease-out);
}
.skip:focus-visible { transform: none; color: var(--ink-inv); }

.display {
  font-family: var(--sc-font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}
.display--xl { font-size: var(--t-xl); }
.display--lg { font-size: var(--t-lg); }
.display--md { font-size: var(--t-md); line-height: 1.15; letter-spacing: -0.01em; }
.caption, .meta {
  font-family: var(--sc-font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.fine { font-size: 14px; color: var(--ink-2); }
/* A compound or a code that must not break at its hyphen. */
.nw { white-space: nowrap; }
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--edge); }
/* Pieces that exist for one layout only. Phones get their own composition
   rather than a shrunken desktop one. */
.m-only { display: none; }
/* An arrow drawn as a line, since the text faces carry no right arrow. */
.arrow {
  display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -0.12em;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons: navy, 2px radius, darken on hover and press. No lift, no shadow. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 14px/1 var(--sc-font-text);
  padding: 0 16px; height: 32px;
  border-radius: 2px; text-decoration: none; white-space: nowrap;
  transition: background-color 120ms linear, color 120ms linear, transform 120ms var(--sc-ease-out);
}
.btn--md { height: 40px; padding: 0 20px; font-size: 16px; }
.btn--lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn--primary, .btn--primary:visited, .btn--primary:hover { background: var(--navy); color: var(--ink-inv); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--navy-hover); }
}
.btn--primary:active { background: var(--navy-press); transform: translateY(1px); }

/* ------------------------------------------------- the header band -- */
/* The original site's band: paper, a 1px rule, the logo and the section
   links. On the card's desktop layout it belongs to the first screen: it lies
   over the divider with the hero and scrolls away with it. On a phone it stays
   at the top of the screen with the one button, and the orange mark rides its
   bottom edge as the page's progress. On a case page it scrolls away too, so a
   pinned stage gets the whole screen, and it keeps the button. */
.bar {
  position: relative; z-index: 70;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.bar__in {
  max-width: var(--page); height: calc(var(--bar) - 1px);
  margin: 0 auto; padding: 0 var(--edge);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-block; line-height: 0; }
.brand img { height: 26px; width: auto; }
.bar__nav { margin-left: auto; display: flex; gap: 24px; }
.bar__nav a, .bar__nav a:visited {
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color 120ms linear, border-color 120ms linear;
}
@media (hover: hover) and (pointer: fine) {
  .bar__nav a:hover { color: var(--ink); border-bottom-color: var(--orange); }
}
/* Hidden by opacity alone, on a layer of its own. Safari stops repainting a
   box once it is both transparent and visibility: hidden, so a button that
   was faded out and then hidden could leave its ground standing in the header
   (seen on an iPhone). compact.js takes the hidden button out of reach. */
.bar__cta { transition: opacity 160ms linear, background-color 120ms linear; will-change: opacity; }
.bar.is-plain .bar__cta { opacity: 0; pointer-events: none; }
/* On the card's desktop layout the divider carries the button and the mark. */
.home .bar__cta, .bar__mark { display: none; }

/* ------------------------------------------------ the divider (chrome) -- */
/* Below the first screen the page is two grounds, and the line between them
   is the chrome: a label for each side, the section index as ruler ticks, the
   orange mark as the page's progress, and the one button, quietly, on its
   foot. The hero and the footer lie over it. */
.divider {
  position: fixed; top: 0; bottom: 0; left: 50%; width: 0;
  z-index: 60; pointer-events: none;
}
.divider__line {
  position: absolute; top: 0; bottom: 0; left: -0.5px; width: 1px;
  background: var(--rule-strong);
}
/* The side labels run down the divider, one on each ground, inside the gutter
   between the line and the copy. Set across the top instead, they are wider
   than that gutter and cover whatever scrolls under them. */
.divider__labels { position: absolute; top: 24px; left: 0; }
.sides { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 160ms linear; }
.sides.is-on { opacity: 1; }
.sides span {
  position: absolute; top: 0;
  writing-mode: vertical-rl;
  font: 500 12px/1 var(--sc-font-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap;
  padding: 8px 4px;
}
.sides span:empty { display: none; }
.sides span:first-child { right: 12px; background: var(--sunken); }
.sides span:last-child { left: 12px; background: var(--paper); }

.ticks { position: absolute; top: 0; left: 0; pointer-events: auto; transition: opacity 160ms linear; }
.ticks a {
  position: absolute; top: 0; left: -12px; width: 24px; height: 24px;
  display: block; color: var(--ink);
}
.ticks a::before {
  content: ""; position: absolute; left: 7px; top: 11.5px; width: 10px; height: 1px;
  background: var(--ink-2);
  transition: background-color 120ms linear, transform 120ms var(--sc-ease-out);
}
.ticks a.is-active::before { background: var(--navy); transform: scaleX(1.6); }
.ticks a span {
  position: absolute; left: 28px; top: 2px;
  font: 500 12px/1 var(--sc-font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; padding: 4px 8px;
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 2px;
  color: var(--ink);
  opacity: 0; transform: translateX(-4px); pointer-events: none;
  transition: opacity 140ms linear, transform 140ms var(--sc-ease-out);
}
.ticks a:focus-visible { outline-offset: -2px; }
/* Finding one tick shows the whole index: every section's name appears, the
   one under the pointer (or in focus) in navy. */
.ticks:focus-within a span { opacity: 1; transform: none; }
.ticks a:focus-visible span { background: var(--navy); border-color: var(--navy); color: var(--ink-inv); }
@media (hover: hover) and (pointer: fine) {
  .ticks a:hover::before { background: var(--navy); transform: scaleX(1.6); }
  .ticks:hover a span { opacity: 1; transform: none; }
  .ticks a:hover span { background: var(--navy); border-color: var(--navy); color: var(--ink-inv); }
}
.divider__mark {
  position: absolute; top: 0; left: -1.5px; width: 3px; height: 24px;
  background: var(--orange);
  will-change: transform;
  transition: opacity 160ms linear;
}
/* The one button, kept within reach between the hero's and the address at the
   end: a quiet outlined one standing on the foot of the divider, inside the
   gutter. It steps aside while the hero's is on screen and in the close
   (compact.js). */
.divider__cta, .divider__cta:visited {
  position: absolute; left: 0; bottom: 24px; transform: translateX(-50%);
  padding: 0 8px; font-size: 12px; pointer-events: auto;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule-strong);
  transition: opacity 160ms linear, background-color 120ms linear, border-color 120ms linear;
}
@media (hover: hover) and (pointer: fine) {
  .divider__cta:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink-2); }
}
.divider__cta:active { background: var(--sunken); }
/* As in the header: opacity alone, never visibility (see .bar__cta). No layer
   of its own here: it is set half its width to the left, and a layer moved by
   half a pixel would soften its label. */
.divider__cta.is-hidden { opacity: 0; pointer-events: none; }

/* ------------------------------------------------------ the split -- */
/* Two sides, two grounds: the "now" side sunken on the left, the answer on
   paper on the right, a 1px line between. The grounds belong to each section;
   on the card the fixed divider lies on the same line. */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split--ground { position: relative; isolation: isolate; }
.split--ground::before, .split--ground::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
}
.split--ground::before { left: 0; width: 50%; background: var(--sunken); }
.split--ground::after { left: calc(50% - 0.5px); width: 1px; background: var(--rule-strong); }
.col { min-width: 0; }
.col .in { width: 100%; max-width: calc(var(--measure) + var(--gut) + var(--edge)); }
.col--l .in { margin-left: auto; padding: 0 var(--gut) 0 var(--edge); }
.col--r .in { margin-right: auto; padding: 0 var(--edge) 0 var(--gut); }

/* ============================================================ CARD == */

/* ------------------------------------------------ 0 · the hero -- */
/* One ground, one screen. Who, what, the one button, and four facts on the
   letters of the mark, over a far layer of pixel charts. The way down stands
   at its foot, and a rule closes it. On desktop it lies above the divider, so
   the split is revealed from under it as it scrolls away, like a cover sheet
   being lifted off. */
.intro {
  position: relative; z-index: 70;
  min-height: calc(100vh - var(--bar)); min-height: calc(100svh - var(--bar));
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule-strong);
}
.intro__in, .intro__next { position: relative; z-index: 1; }
/* The far layer: small pixel charts behind the whole screen, copy included,
   drawn by compact.js on a canvas. Three colours, all close to the ground
   (#F2ECE3) so the layer sits a long way back: the cells in the sunken beige,
   a pale tint of the mark's orange for the one accent in each chart, and the
   thin axis lines a step darker. The cells and the accent are as dark as they
   can be while the grey copy on top of them still clears 4.5:1 (4.57 and 4.53);
   going stronger means going more saturated, not darker. */
.pixbg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pixbg canvas { display: block; --pix: #E6DFD3; --pix-accent: #F7D9C8; --pix-axis: #DED7CB; will-change: transform; }
.intro__in {
  width: 100%; max-width: var(--page);
  margin: 0 auto; padding: 48px var(--edge);
  flex: 1; display: flex; align-items: center; gap: 72px;
}
.intro__copy { flex: 0 1 36rem; min-width: 0; }
/* The original introduction: a label, the headline in three lines, the lede.
   The headline is set at the display size, not the metric size: at 56px its
   longest line does not fit half the page. */
.label {
  margin-bottom: 12px;
  font: 500 12px/1.4 var(--sc-font-text); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2);
}
.intro h1 { font-size: var(--t-lg); }
.lede { margin-top: 24px; max-width: 34rem; font-size: 18px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.lede strong { font-weight: 500; color: var(--ink); }
.ctas { margin-top: 32px; }

/* w, s, l, r down the side, each the first letter of a fact: the large
   letter is the word's initial and the line carries on from it. The letters
   are the logo's own outlines, in the logo's own ink; each stands on the
   baseline of its line. The facts are written out once by the mark's cursor: a bar on the
   baseline, the proportions of the one that closes the wordmark. */
.acro { flex: 1 1 0; min-width: 0; border-top: 1px solid var(--rule-strong); }
.acro li {
  display: flex; align-items: baseline; gap: 3px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.acro li:last-child { border-bottom-color: var(--rule-strong); }
.acro__l { flex: none; line-height: 0; }
.acro__l svg { display: block; height: 44px; width: auto; overflow: visible; fill: #16181C; }
/* Kerning and ligatures off, so a line set letter by letter while it is being
   written is exactly as wide as the line left standing afterwards. */
.acro__t, .typed {
  font-kerning: none; font-variant-ligatures: none;
}
.acro__t { font-size: 18px; line-height: 1.4; color: var(--ink-2); }
.acro__t b { font-weight: 500; color: var(--ink); }
/* The large letter is the word's first letter. The same letter in the text
   is there to be read out and copied, not seen. */
.acro__i { font-size: 0; }
.c { opacity: 0; }
.c.is-on { opacity: 1; }
.cur { position: relative; }
.cur::after {
  content: ""; position: absolute; left: 0.1em; bottom: 0.275em;
  width: 0.5em; height: 0.15em; background: var(--orange);
}

/* The foot of the first screen: the way down. */
.intro__next {
  display: flex; flex-direction: column; align-items: center; align-self: center;
  margin-bottom: 24px; padding: 8px 16px;
  color: var(--ink); text-decoration: none;
}
.intro__next:visited, .intro__next:hover { color: var(--ink); }
.intro__next-label { font-size: 16px; font-weight: 500; line-height: 1.3; }
.intro__arrow {
  display: block; margin-top: 4px; line-height: 1; color: var(--navy);
  transition: transform 160ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .intro__next:hover .intro__next-label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
  .intro__next:hover .intro__arrow { transform: translateY(3px); }
}

/* ------------------------------------------------ 1 · what I do -- */
/* The page splits. Three rows across the two grounds: a problem in the
   visitor's words, and beside it what I build. Nothing to tick. */
.split--head .in { padding-top: clamp(80px, 13vh, 128px); padding-bottom: 32px; }
.pair-row { border-top: 1px solid var(--rule-strong); }
.pair-row .in { padding-top: 28px; padding-bottom: 36px; }
.problem {
  font: 600 var(--t-md)/1.2 var(--sc-font-display);
  letter-spacing: -0.01em; max-width: 21ch; text-wrap: balance;
}
.svc { display: flex; align-items: center; gap: 12px; font: 600 18px/1.3 var(--sc-font-display); }
.svc + p { margin-top: 8px; color: var(--ink-2); max-width: 44ch; }
.px { display: inline-block; flex: none; line-height: 0; }
.px svg { display: block; }
/* On desktop the two halves of a row come in one after the other and the
   row's grounds stay put; on a phone the row is one card and comes in whole.
   The worked example is uncovered by the sweep on desktop (see .work__stage)
   and comes in like any card on a phone. */
@media (min-width: 861px) {
  .pair-row[data-sc-in], .card--lead[data-sc-in] { opacity: 1; transform: none; }
}

/* ----------------------------------------------- 2 · background -- */
/* Finance on the left, BI on the right. */
.about .split { border-top: 1px solid var(--rule-strong); }
.about .col .in { padding-top: clamp(80px, 13vh, 128px); padding-bottom: 96px; }
.about .display--lg { max-width: 12ch; }
.about__p { margin-top: 24px; color: var(--ink-2); max-width: 50ch; text-wrap: pretty; }
.about__ps { margin-top: 24px; }
.about__ps .about__p { margin-top: 0; }
.about__ps .about__p + .about__p { margin-top: 12px; }
/* On desktop the two columns share their rows: headline, text and list each
   start on the same line on both grounds, whatever the line counts. */
@media (min-width: 861px) {
  .about .split { grid-template-rows: auto auto auto; }
  .about .col, .about .col .in {
    display: grid; grid-template-columns: minmax(0, 1fr);
    grid-row: span 3; grid-template-rows: subgrid;
  }
  .about .display--lg { max-width: none; }
}
.facts { margin-top: 32px; border-top: 1px solid var(--rule-strong); }
.facts li {
  display: grid; grid-template-columns: 16px 1fr auto; gap: 12px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px;
}
.facts .num { color: var(--ink-2); font-size: 12px; }

/* ---------------------------------------------- 3 · selected work -- */
/* The split resolves here. The heading and the client work stand on the
   right, the work ruled like a ledger; the darker ground on the left carries a
   short note (see .say). As the visitor scrolls on, that ground and the
   divider sweep off to the left edge together, the note with them (compact.js
   sets --t from 0 to 1 and clips the example's column to the right of the
   divider), the worked example is uncovered on paper behind them, and
   the heading travels left ahead of the divider to stand over it. The
   heading's place in the layout is that end state; compact.js holds it over
   the right column until the sweep moves it. On desktop the section is held in place
   until that is done: compact.js makes it as tall as its stage plus the
   scroll the sweep takes, and the stage sticks where its foot meets the foot
   of the screen (--stick, 0 when it fits the screen, negative when it is
   taller). Each piece is a preview; the whole case is one click away. The
   client work is first in the markup and stands in the right column. */
.work { border-top: 1px solid var(--rule-strong); }
.work__stage { position: relative; isolation: isolate; }
.work__stage::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 50%;
  background: var(--sunken);
  transform: translate3d(calc(var(--t, 0) * -100%), 0, 0);
  will-change: transform;
}
.work__stage { padding: clamp(80px, 13vh, 128px) 0 96px; }
/* Clipped at the page's edge: where the two gutters differ (narrow desktops)
   the heading's box, held over the right column, would reach past it. */
.work__head { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-top: -8px; padding-top: 8px; }
.work__head h2 {
  grid-column: 1; width: 100%; max-width: calc(var(--measure) + var(--gut) + var(--edge));
  margin: 0 0 32px auto; padding: 0 var(--gut) 0 var(--edge);
  will-change: transform;
}
/* Without the hold (no script, reduced motion) the note stands above the
   example in the left column. Held, the two share one cell: the note on the
   darker ground, the example clipped behind it until the sweep. */
.split--work { row-gap: 32px; }
.split--work .say { grid-column: 1; grid-row: 1; }
.split--work .col--l { grid-column: 1; grid-row: 2; will-change: clip-path; }
.split--work .col--r { grid-column: 2; grid-row: 1 / span 2; }
.work.is-pinned .work__stage {
  position: sticky; top: var(--stick, 0px);
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; min-height: 100svh; padding: 56px 0 64px;
}
/* compact.js moves the note left with the ground, by its own width (which is
   the ground's). At rest it carries no transform, so its rule stays sharp. */
.work.is-pinned .split--work .col--l, .work.is-pinned .split--work .col--r { grid-row: 1; }

/* The note on the darker ground: what I usually find, set like the cases
   beside it (a rule, a label, a title), and under it a dictionary entry on a
   paper slip. One word, three senses, one per department. As it stands, two
   senses are struck and the one the departments agreed on is marked. With the
   script the entry starts open (.is-open, all three standing) and is settled
   as the visitor scrolls on, just before the ground carries it off. */
.say { min-width: 0; align-self: start; }
.say__in {
  width: 100%; max-width: calc(var(--measure) + var(--gut) + var(--edge));
  margin-left: auto; padding: 0 var(--gut) 0 var(--edge);
}
.say__in > .meta { padding-top: 25px; }
.say__lead {
  margin-top: 8px; max-width: 20ch;
  font: 600 var(--t-md)/1.2 var(--sc-font-display); letter-spacing: -0.01em; text-wrap: balance;
}
.entry {
  margin-top: 24px; padding: 20px 24px 8px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px;
}
.entry__word { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; }
.entry__word dfn { font: 700 var(--t-md)/1.1 var(--sc-font-display); letter-spacing: -0.02em; font-style: normal; }
.entry__pos { font: 400 14px/1 var(--sc-font-mono); color: var(--ink-2); }
.entry__senses li {
  display: grid; grid-template-columns: 1ch 11ch 1fr; column-gap: 12px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--rule);
  transition: color 300ms linear;
}
.entry__n, .entry__who { font: 500 12px/1.4 var(--sc-font-mono); letter-spacing: 0.06em; color: var(--ink-2); }
.entry__who { text-transform: uppercase; }
.entry__def {
  text-decoration: line-through transparent; text-decoration-thickness: 1px;
  transition: text-decoration-color 300ms linear;
}
.entry__ok { margin-left: 12px; transition: opacity 300ms linear 250ms; }
.entry__senses li.is-out { color: var(--ink-2); }
.entry__senses li.is-out .entry__def { text-decoration-color: var(--ink-2); }
.entry__senses li.is-out + li + li.is-out, .entry__senses li.is-out + li + li.is-out .entry__def { transition-delay: 200ms; }
.say.is-open .entry__senses li.is-out { color: var(--ink); }
.say.is-open .entry__senses li.is-out .entry__def { text-decoration-color: transparent; }
.say.is-open .entry__ok { opacity: 0; transition-delay: 0ms; }
.say__foot { margin-top: 16px; max-width: 44ch; color: var(--ink-2); }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 24px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px;
  transition: border-color 120ms linear;
}
.card h3 {
  margin-top: 8px; max-width: 20ch;
  font: 600 var(--t-md)/1.2 var(--sc-font-display); letter-spacing: -0.01em; text-wrap: balance;
}
/* The title is the link, and it covers the card. */
.card__link, .card__link:visited { color: var(--ink); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: -1px; border-radius: 4px; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.card__txt { margin-top: 12px; color: var(--ink-2); max-width: 44ch; }
.card__fig {
  margin-top: 24px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 16px;
  font: 700 var(--t-lg)/1.05 var(--sc-font-display); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.card__fig .was { color: var(--ink-2); }
.card__fig .arrow { width: 28px; height: 28px; color: var(--ink-2); align-self: center; }
.card__cap { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.card__more {
  display: flex; align-items: center; gap: 8px;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule);
  font-size: 14px; font-weight: 500; color: var(--navy);
}
.card__more .arrow { transition: transform 160ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--rule-strong); }
  .card:hover .card__link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
  .card:hover .card__more .arrow { transform: translateX(3px); }
}
.card:active { border-color: var(--ink-2); }
/* The client cases on the right are ruled, not boxed: a line, the case, and
   the next line. On a phone they are cards like the example. */
.cases { display: grid; gap: 32px; }
.card--plain {
  padding: 24px 0 0;
  background: none; border: 0; border-top: 1px solid var(--rule-strong); border-radius: 0;
}
.card--plain .card__link::after { inset: 0; border-radius: 0; }
.card--plain:has(.card__link:focus-visible) { outline-offset: 8px; }
.card--plain .card__more { margin-top: 16px; padding-top: 0; border-top: 0; }

/* The pixel figure: three bars for the same thing at three lengths, the cells
   past the agreed length in the slip's tint, and one bar under the rule.
   compact.js fits whole cells into the box it is given (--cols, --cell); it
   never scales them. On a case's cover it builds in once on load. In the
   showcase card it ties out in three steps (see .tot--mini). */
.tot { display: grid; gap: 16px; }
.tot__lbl {
  display: block; margin-bottom: 8px;
  font: 500 12px/1 var(--sc-font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2);
}
.tot__bar {
  display: grid; gap: 2px;
  grid-template-columns: repeat(var(--cols, 20), 1fr);
  grid-template-rows: repeat(2, var(--cell, 24px));
}
.tot__bar > i { display: block; background: var(--navy); }
.tot__bar > i.is-d { background: var(--orange-soft); border: 1px solid #E9B5A2; }
.tot__bar > i.is-o { background: var(--orange); }
.tot__row--one { padding-top: 16px; border-top: 1px solid var(--rule-strong); }
.tot__row--one .tot__lbl { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .tot.is-waiting .tot__bar > i { opacity: 0; }
  .tot.is-build .tot__bar > i { animation: px-in 420ms var(--sc-ease-out) both; }
  .tot.is-build .tot__bar > i.is-d { animation: px-in 420ms var(--sc-ease-out) both, px-diff 320ms linear both; }
}
@keyframes px-in { from { opacity: 0; transform: translateX(-8px); } }
@keyframes px-diff { from { background: var(--navy); border-color: var(--navy); } }

/* The showcase's figure ties out once, when the card has been uncovered
   (compact.js): the two reports that were wrong are corrected one after the
   other, their surplus turning from the bar's navy to the slip's tint; the
   spread counts down; and the one bar is drawn cell by cell along --i. The
   tinted cells stay: they are what was corrected, and the line under the
   figure says so. Without the script, or under reduced motion, it stands as
   drawn. */
.mini { margin-top: 24px; }
.tot--mini { gap: 12px; }
.tot--mini .tot__lbl { margin-bottom: 6px; }
.tot--mini .tot__row--one { padding-top: 12px; }
.tot--mini.is-live .tot__bar > i.is-d {
  background: var(--navy); border-color: var(--navy);
  transition: background-color 500ms linear, border-color 500ms linear;
}
.tot--mini.is-live .is-adj .tot__bar > i.is-d { background: var(--orange-soft); border-color: #E9B5A2; }
.tot--mini.is-live .tot__row--one .tot__bar > i { opacity: 0; transition: opacity 200ms linear calc(var(--i) * 600ms); }
.tot--mini.is-live .tot__row--one.is-in .tot__bar > i { opacity: 1; }
.mini__key {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 12px; line-height: 1.3; color: var(--ink-2);
  transition: opacity 300ms linear;
}
.mini__key i { flex: none; width: 12px; height: 12px; background: var(--orange-soft); border: 1px solid #E9B5A2; }
.mini__key.is-wait { opacity: 0; }
.mini__spread {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule-strong);
}
.mini__lbl { font-size: 14px; color: var(--ink-2); }
.mini__val { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.mini__val s { font-size: 14px; color: var(--ink-2); text-decoration-thickness: 1px; }
.mini__val s, .mini__val .ok { transition: opacity 300ms linear; }
.mini__spread.is-wait s, .mini__spread.is-wait .ok { opacity: 0; }
.mini__now {
  font-family: var(--sc-font-display); font-weight: 700; font-size: var(--t-md);
  line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
/* The positive token is 4.42:1 on paper; one step darker clears 4.5:1 as text. */
.ok { font-weight: 500; font-size: 14px; color: #3F7442; white-space: nowrap; }

/* ------------------------------------------------ 4 · the close -- */
/* The last screen, on the one ground the page resolved to in "Selected work":
   the question on the left, the answer on the right. The address stands on
   the heading's first line and is written out once by the mark's cursor as it
   comes into view. It is the link; there is no second button. */
.close .split {
  border-top: 1px solid var(--rule-strong);
  min-height: calc(100vh - var(--foot)); min-height: calc(100svh - var(--foot));
  align-content: center;
}
.close .col .in { padding-top: 72px; padding-bottom: 72px; }
.close .display--lg { max-width: 12ch; }
.close__mail { font: 700 var(--t-lg)/1.08 var(--sc-font-display); letter-spacing: -0.02em; }
.close__mail a, .close__mail a:visited { color: var(--navy); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .close__mail a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
}
.contact-list { margin-top: 32px; display: grid; gap: 8px; font-size: 16px; }
.contact-list li { display: flex; align-items: center; gap: 8px; }
.contact-list .muted { color: var(--ink-2); }
.contact-list svg {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
/* Across the whole page, over the divider. */
.foot { position: relative; z-index: 61; background: var(--paper); border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-2); }
.foot__in {
  max-width: var(--page); margin: 0 auto; padding: 24px var(--edge);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
}
.foot img { height: 22px; width: auto; }
.foot__legal { margin-left: auto; display: flex; gap: 16px; }
.foot__legal a, .foot__legal a:visited { color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .foot__legal a:hover { color: var(--navy); }
}

/* =========================================================== CASES == */

/* ------------------------------------------------ the cover -- */
.cover { background: var(--paper-2); border-bottom: 1px solid var(--rule-strong); }
.cover__in {
  width: 100%; max-width: var(--page);
  margin: 0 auto; padding: 72px var(--edge);
  display: flex; align-items: center; gap: 96px;
}
.cover__copy { flex: 0 1 34rem; min-width: 0; }
.cover .meta { margin-bottom: 12px; }
.cover h1 { max-width: 20ch; }
.cover__art { flex: 1 1 0; min-width: 0; pointer-events: none; }

/* ---------------------------------- three reports: the split opens -- */
.story .split { min-height: 100vh; min-height: 100svh; }
/* The grounds run a pixel into the stage below, so no seam shows between them. */
.story .split--ground::before, .story .split--ground::after { bottom: -1px; }
.story .in { padding-bottom: 48px; }
/* Both halves of the headline start on the same line across the centre. */
.story .display { margin-top: clamp(64px, 14vh, 144px); }
.story__copy { margin-top: 16px; max-width: 30rem; font-size: 18px; line-height: 1.5; color: var(--ink-2); }

.sheets {
  position: relative;
  margin-top: 48px;
  height: clamp(260px, 38vh, 350px);
}
.sheet-slot { position: absolute; width: 66%; will-change: transform; }
/* Stepped to the left as they come forward, so every sheet's figures stay
   uncovered on its right. */
.sheet-slot--far  { left: 34%; top: 0;   z-index: 1; }
.sheet-slot--mid  { left: 17%; top: 20%; z-index: 2; }
.sheet-slot--near { left: 0;   top: 40%; z-index: 3; }
.sheet-tilt { will-change: transform; }
.sheet {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px 16px 8px;
  font-size: 12px; line-height: 1.4;
}
.sheet--far  { transform: scale(0.94); transform-origin: 100% 0; color: var(--ink-2); }
.sheet--mid  { transform: rotate(-2.5deg); }
.sheet--near { transform: rotate(1.8deg); border-color: var(--rule-strong); }
.sheet__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--rule-strong); }
.sheet__name { font: 600 14px/1.2 var(--sc-font-display); color: var(--ink); }
.sheet__via { font-family: var(--sc-font-mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.sheet__row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.sheet__row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__row--total { border-bottom: 0; border-top: 1px solid var(--rule-strong); margin-top: -1px; font-weight: 500; color: var(--ink); }
.sheets + .caption { margin-top: 16px; }
/* The model's sheet holds definitions, not a result: the reconciled total is
   worked out in the tie-out, one screen down. */
.sheet--model { margin-top: 48px; max-width: 22rem; }
.sheet--model .sheet__row span:first-child { color: var(--ink-2); }
.sheet--model .sheet__row:last-child { border-bottom: 0; }

/* -------------------------------------- three reports: the tie-out -- */
.tie .split--stage { height: 100%; align-content: center; padding: 64px 0 72px; }
.tie .display--lg { min-height: 2.16em; }
.sources { margin-top: 32px; display: grid; gap: 12px; }
.src {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px 16px;
}
.src__head { display: flex; align-items: baseline; gap: 12px; }
.src__name { font-weight: 500; }
.src__via { font: 12px/1 var(--sc-font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.src__total { margin-left: auto; font-size: 18px; font-weight: 500; white-space: nowrap; }
.src__was { margin-right: 12px; font-size: 14px; font-weight: 400; color: var(--ink-2); text-decoration-thickness: 1px; }
.js [data-was] { opacity: 0; }
.src__item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule);
}
.src__why { font-size: 14px; line-height: 1.4; color: var(--ink-2); }

/* The slip: a reconciling item, the thing that travels. Neutral until the
   page finds it, then tinted with the brand orange (emphasis, not status). */
.slip {
  display: inline-flex; align-items: baseline; gap: 8px; flex: none;
  padding: 4px 8px; border-radius: 2px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-size: 12px; line-height: 1.3; color: var(--ink-2); white-space: nowrap;
  transition: background-color 160ms linear, border-color 160ms linear, color 160ms linear;
  will-change: transform;
  position: relative; z-index: 2;
}
.slip b { font-size: 14px; font-weight: 500; color: var(--ink); }
/* The ledger's own line in the bridge: nothing to adjust, so it stays neutral
   and stands there from the start. */
.slip--ref { will-change: auto; }
.src.is-found .slip, .slip--docked {
  background: var(--orange-soft); border-color: #E9B5A2; color: var(--orange-ink);
}
.src.is-found .slip b, .slip--docked b { color: var(--orange-ink); }
.src.is-found .src__why { color: var(--ink); }

.bridge { width: 100%; margin-top: 32px; border-collapse: collapse; font-size: 14px; }
.bridge th, .bridge td { padding: 8px 8px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.bridge th:first-child, .bridge td:first-child { padding-left: 0; }
.bridge th:last-child, .bridge td:last-child { padding-right: 0; }
.bridge thead th {
  font: 500 12px/1.2 var(--sc-font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); border-bottom-color: var(--rule-strong); padding-top: 0;
}
.bridge tbody th { font-weight: 500; }
.bridge .n { text-align: right; }
.bridge td.adj { height: 45px; }
.dock { display: inline-block; }
/* The spread is the table's total line: the figure stays flush right under the
   Model column the whole way down, and the verdict lands under it. */
.spread {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-top: -1px; padding-top: 16px; border-top: 1px solid var(--rule-strong);
}
.spread__label { font-size: 14px; color: var(--ink-2); padding-top: 4px; }
.spread__value { display: grid; justify-items: end; gap: 4px; }
.spread__value .num {
  font-family: var(--sc-font-display); font-weight: 700; font-size: var(--t-xl);
  line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.spread__value .ok { font-size: 16px; line-height: 1.3; }
.tie__def { margin-top: 16px; font-size: 14px; color: var(--ink-2); max-width: 30rem; }
.tie .caption { margin-top: 12px; }

/* Animated initial states exist only once the page script has taken over, so
   without JavaScript the bridge simply shows its reconciled result. */
.js .slip--docked { opacity: 0; }
.js .bridge [data-fill="out"],
.js [data-ties],
.js [data-tie-def] { opacity: 0; }

/* --------------------------------------- client cases: before, after -- */
.ba .in { display: flex; flex-direction: column; height: 100%; padding-top: 48px; padding-bottom: 72px; }
.part-lbl {
  margin-bottom: 12px;
  font: 500 12px/1.2 var(--sc-font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2);
}
.ba p { max-width: 50ch; }
.ba .was-p { font-size: 18px; line-height: 1.5; }
.ba .solve { font-size: 18px; line-height: 1.5; }
.ba .solve + .solve { margin-top: 12px; }
.kpi { margin-top: auto; padding-top: 48px; }
/* Two figures for one case stand side by side as a band where the column has
   the room, and stack where it does not. Both sides share the same tracks, so
   before and after stay level. */
.kpis {
  margin-top: auto; padding-top: 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 24px;
}
.kpis .kpi { margin-top: 0; padding-top: 0; }
.kpi__label { border-top: 1px solid var(--rule-strong); padding-top: 16px; font-size: 14px; color: var(--ink-2); }
.kpi__value {
  margin-top: 4px;
  font: 700 var(--t-xl)/1.05 var(--sc-font-display); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.kpi__value.num { font-family: var(--sc-font-display); }
.kpi__foot { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
/* The after side opens once, out of the centre line, when the case comes on
   screen (compact.js); the engine counts the figure up as it is uncovered. */
.js .wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1100ms var(--sc-ease-out) 250ms; will-change: clip-path; }
.js .wipe.is-open { clip-path: inset(0 0 0 0); }
.season { margin-top: 32px; }
.season__chart { display: grid; }
.season__chart > div { background: var(--navy); }
.season figcaption { margin-top: 12px; font-size: 12px; color: var(--ink-2); max-width: 36ch; }
.season__months { display: grid; margin-top: 4px; font: 12px/1 var(--sc-font-mono); color: var(--ink-2); text-align: center; }

/* ------------------------------------------- the foot of a case -- */
/* One ground again: the button, and the way to the other cases. */
.more { background: var(--paper-2); border-top: 1px solid var(--rule-strong); padding: 72px 0 96px; }
.more__in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px calc(2 * var(--gut)); align-items: start; }
.more .ctas { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
/* The address beside the button, set like the links in the contact list. */
.more__mail { font-size: 16px; }
.more__nav .meta { padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
.more__nav li { border-bottom: 1px solid var(--rule); }
.more__nav a, .more__nav a:visited {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 500;
}
.more__nav a span { font-size: 14px; font-weight: 400; color: var(--ink-2); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .more__nav a:hover { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
}

/* ------------------------------------------------ shorter desktops -- */
@media (min-width: 861px) and (max-height: 760px) {
  :root { --t-xl: 48px; }
  .sources { margin-top: 24px; gap: 8px; }
  .src { padding: 8px 12px; }
  .bridge { margin-top: 24px; }
  .bridge td.adj { height: 40px; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  :root { --edge: 32px; --t-xl: 48px; }
  /* A narrower copy column, so what stands beside it keeps a sensible size */
  .intro__in, .cover__in { gap: 64px; }
  .intro__copy, .cover__copy { flex-basis: 26rem; }
  .tie .display--lg, .story .display--xl { font-size: var(--t-md); }
  .services .display--lg, .about .display--lg, .work__head h2 { font-size: var(--t-md); }
  .problem, .card h3, .say__lead { font-size: 18px; }
  .card__fig { font-size: var(--t-md); }
  .card__fig .arrow { width: 18px; height: 18px; }
  .entry { padding: 16px 16px 4px; }
  .entry__senses li { grid-template-columns: 1ch 1fr; }
  .entry__def { grid-column: 2; }
  .entry__ok { display: block; margin: 2px 0 0; }
}

/* Short desktops: the held work section is set tighter so its stage fits the
   screen and nothing is cut off while it holds. */
@media (min-width: 861px) and (max-height: 820px) {
  .work.is-pinned .work__stage { padding: 24px 0 32px; }
  .work__head h2 { margin-bottom: 20px; font-size: var(--t-md); }
  .card { padding: 16px 20px; }
  .card--plain { padding: 16px 0 0; }
  .cases { gap: 24px; }
  .card h3 { font-size: 18px; }
  .card__txt { margin-top: 8px; font-size: 14px; }
  .card__fig { margin-top: 16px; font-size: var(--t-md); }
  .card__fig .arrow { width: 18px; height: 18px; }
  .card__more { margin-top: 12px; padding-top: 12px; }
  .card--plain .card__more { margin-top: 12px; }
  .mini { margin-top: 16px; }
  .tot--mini { gap: 8px; }
  .tot--mini .tot__lbl { margin-bottom: 4px; }
  .tot--mini .tot__row--one { padding-top: 8px; }
  .mini__key { margin-top: 8px; }
  .mini__spread { margin-top: 12px; padding-top: 8px; }
  .say__in > .meta { padding-top: 16px; }
  .say__lead { font-size: 18px; }
  .entry { margin-top: 16px; padding: 12px 20px 4px; }
  .entry__word { padding-bottom: 8px; }
  .entry__word dfn { font-size: 18px; }
  .entry__senses li { padding: 8px 0; font-size: 14px; }
  .say__foot { margin-top: 12px; font-size: 14px; }
}

/* ======================================================= phones == */
/* Not a shrunken desktop. One column, and the two grounds kept where they
   carry meaning: every pair (problem and answer, before and after) is one
   card whose top sits on the "now" ground and whose bottom sits on paper. */
@media (max-width: 860px) {
  :root { --edge: 16px; --gut: 16px; --bar: 52px; --t-xl: 28px; --t-lg: 28px; }

  .d-only { display: none !important; }
  .m-only { display: block; }
  .split { grid-template-columns: 1fr; }
  .split--ground::before, .split--ground::after { display: none; }
  .col .in { max-width: none; margin: 0; padding: 0 16px; }

  /* Header: logo and the one button, at the top of the screen, with the
     orange mark riding its bottom edge as the page's progress. The section
     links and the divider stay on desktop. */
  .bar { position: sticky; top: 0; z-index: 60; }
  .case .bar { position: relative; }
  /* No safe-area padding: the pages leave viewport-fit at its default, so on
     an iPhone held sideways Safari keeps the whole page clear of the notch. */
  .bar__in { justify-content: space-between; }
  .brand img { height: 22px; }
  .home .bar__nav { display: none; }
  .bar__cta { padding: 0 12px; }
  .home .bar__cta { display: inline-flex; }
  .home .bar__mark {
    display: block; position: absolute; left: 0; bottom: -2px; width: 24px; height: 3px;
    background: var(--orange); will-change: transform;
  }
  .divider { display: none; }

  /* 0 · hero: who, what and why before the first scroll, then the four facts */
  .intro { z-index: auto; }
  .intro__in {
    flex: 0 0 auto; margin: auto 0;
    flex-direction: column; align-items: stretch; gap: 32px;
    padding: 24px 16px 32px;
  }
  .intro__next { margin-bottom: 16px; }
  .intro__copy, .acro { flex: none; }
  .acro li { padding: 12px 0; }
  .acro__l svg { height: 32px; }
  .acro__t { font-size: 16px; }
  .lede { margin-top: 16px; font-size: 16px; }
  .ctas { margin-top: 24px; }

  /* 1 and 2 · every pair is one card: its top on the "now" ground, its
     bottom on paper */
  .services, .about { padding: 48px 0 0; }
  .split--head .in { padding-top: 0; padding-bottom: 24px; }
  .pairs { display: grid; gap: 12px; padding: 0 16px; }
  .pair-row, .about .split, .story .split, .ba .split {
    border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
  }
  .pair-row .col--l, .about .col--l, .story .col--l, .ba .col--l { background: var(--sunken); }
  .pair-row .col--r, .about .col--r, .story .col--r, .ba .col--r { background: var(--paper); border-top: 1px solid var(--rule); }
  .pair-row .in { padding: 16px 16px 20px; }
  .pair-row .in[data-sc-in] { opacity: 1; transform: none; transition: none; }
  .problem { font-size: 18px; max-width: none; }

  .about .split { margin: 0 16px; }
  .about .col .in { padding: 24px 16px; }
  .about .display--lg { max-width: none; }
  .about__p, .about__ps { margin-top: 16px; }
  .facts { margin-top: 24px; }
  /* Two-line rows: the icon and the date stand on the first line. */
  .facts li { align-items: start; }
  .facts .px { margin-top: 3px; }
  .facts .num { line-height: 22px; }
  /* The spread's label never shares a line with the number that counts. */
  .mini__spread { flex-direction: column; align-items: stretch; gap: 4px; }
  .mini__val { justify-content: flex-end; }
  /* Only the quiet cells stay behind the copy on a phone. */
  .pixbg canvas { --pix-axis: transparent; --pix-accent: #E6DFD3; }
  .foot__legal { gap: 24px; }
  .foot__legal a { display: inline-block; font-size: 14px; padding: 8px 0; }

  /* 3 · selected work: one band, boxed cards in reading order, the worked
     example last */
  .work { margin-top: 48px; padding: 48px 0; background: var(--paper-2); }
  .work__stage::before { display: none; }
  .work__stage { padding: 0; }
  .work__head { display: block; }
  .work__head h2 { max-width: none; margin: 0 0 24px; padding: 0 16px; }
  .split--work { row-gap: 12px; }
  .split--work .col--l, .split--work .col--r { grid-column: auto; grid-row: auto; }
  /* No note on a phone: the three cases stand one under the other. The note
     and the uncovering are the desktop's. */
  .say { display: none; }
  .cases { gap: 12px; }
  .card, .card--plain { padding: 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; }
  .card--plain .card__link::after { inset: -1px; border-radius: 4px; }
  .card--plain:has(.card__link:focus-visible) { outline-offset: 2px; }
  .card h3 { font-size: 18px; max-width: none; }
  .card__fig { margin-top: 16px; font-size: 28px; }
  .card__fig .arrow { width: 18px; height: 18px; }
  .card__more, .card--plain .card__more { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); }

  /* 4 · close: paper, the statement over the address */
  .close { padding: 48px 0 56px; border-top: 1px solid var(--rule-strong); }
  .close .split { min-height: 0; border-top: 0; row-gap: 24px; }
  .close .col .in { padding-top: 0; padding-bottom: 0; }
  .close .display--lg { max-width: none; }
  .contact-list { margin-top: 24px; }
  .foot__in { padding: 24px 16px 32px; }
  .foot__legal { margin-left: 0; width: 100%; }

  /* cases · the cover */
  .cover__in { flex-direction: column; align-items: stretch; gap: 32px; padding: 32px 16px 40px; }
  .cover__copy, .cover__art { flex: none; }
  .cover h1 { max-width: none; }

  /* three reports · the story is one card: the problem with its three totals
     on the "now" ground, the answer with its one definition on paper */
  .story { padding: 32px 0 48px; }
  .story .split { min-height: 0; margin: 0 16px; }
  .story .in { padding: 24px 16px; }
  .story .display { margin-top: 0; }
  .story__copy { margin-top: 12px; font-size: 16px; }
  .totals, .defn { margin-top: 24px; border-top: 1px solid var(--rule-strong); }
  .totals__lbl { padding: 16px 0 8px; font-size: 14px; color: var(--ink-2); }
  .totals__row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 8px 0; border-top: 1px solid var(--rule);
  }
  .totals__cap { margin-top: 12px; }
  .defn { padding-top: 16px; }
  .defn__one { font: 700 28px/1.1 var(--sc-font-display); letter-spacing: -0.02em; text-wrap: balance; }
  .defn__foot { margin-top: 4px; font-size: 14px; color: var(--ink-2); }

  /* three reports · tie-out: sources on the "now" ground above, the bridge
     below. The reasons travel inside the slips, so the sentences can go. */
  .tie .split--stage {
    height: 100%;
    padding: 0;
    align-content: start;
    grid-template-rows: auto 1fr;
  }
  .tie .col--l { background: var(--sunken); }
  .tie .col--r { background: var(--paper); border-top: 1px solid var(--rule-strong); }
  .tie .col .in { padding: 16px; }
  .tie .display--lg { min-height: 0; font-size: 18px; }
  .sources { margin-top: 12px; gap: 8px; }
  .src {
    display: grid; grid-template-columns: 1fr auto;
    column-gap: 12px; row-gap: 8px; align-items: center;
    padding: 8px 12px;
  }
  .src__head, .src__item { display: contents; }
  .src__name { grid-column: 1; grid-row: 1; font-size: 14px; }
  .src__via { grid-column: 1; grid-row: 2; }
  .src__total { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; font-size: 14px; }
  .src__was { margin-right: 8px; font-size: 12px; }
  .src__why { display: none; }
  .slip { grid-column: 2; grid-row: 2; justify-self: end; }
  .slip b { font-size: 12px; }
  .bridge { margin-top: 12px; }
  .bridge tr > :nth-child(2) { display: none; }
  .bridge th, .bridge td { padding: 8px 4px; }
  .bridge td.adj { height: 40px; }
  .spread { padding-top: 12px; }
  .spread__value .num { font-size: 48px; }
  .spread__value .ok { font-size: 14px; }
  .tie__def { margin-top: 8px; }
  .tie .caption { margin-top: 8px; }

  /* client cases · before and after are one card */
  .ba { padding: 32px 0 48px; }
  .ba .split { margin: 0 16px; }
  .ba .in { height: auto; padding: 16px 16px 24px; }
  .ba .was-p, .ba .solve { font-size: 16px; }
  /* The after side sits under the before side here, so it fades in whole. */
  .js .wipe { clip-path: none; opacity: 0.2; transition: opacity 400ms linear; }
  .js .wipe.is-open { clip-path: none; opacity: 1; }
  .kpi, .kpis { margin-top: 24px; padding-top: 0; }
  .kpis { gap: 16px; }
  .kpis .kpi { margin-top: 0; }
  .kpi__value { font-size: 48px; }

  .more { padding: 48px 0 56px; }
  .more__in { grid-template-columns: 1fr; gap: 40px; }
}

/* Tablets in portrait get the phone layout, at a larger scale. */
@media (min-width: 600px) and (max-width: 860px) {
  :root { --t-xl: 48px; --t-lg: 48px; }
  .lede { font-size: 18px; }
  .wrap, .bar__in, .foot__in, .intro__in, .cover__in, .col .in, .work__head h2 { padding-left: 32px; padding-right: 32px; }
  .pairs { padding: 0 32px; }
  .story .split, .ba .split, .about .split { margin: 0 32px; }
  .pair-row .in, .story .in, .ba .in, .tie .col .in, .about .col .in { padding-left: 16px; padding-right: 16px; }
  .card__fig { font-size: 48px; }
  .card__fig .arrow { width: 28px; height: 28px; }
}
/* Short phones: the tie-out has to fit one screen, and so do the hero and the
   way down at its foot. */
@media (max-width: 860px) and (max-height: 700px) {
  :root { --bar: 48px; }
  .intro__in { gap: 24px; padding: 16px; }
  .acro li { padding: 8px 0; }
  .intro__next { margin-bottom: 8px; }
  .tie .col .in { padding: 12px 16px; }
  .sources { margin-top: 8px; gap: 4px; }
  .src { row-gap: 4px; }
  .bridge { margin-top: 8px; }
  .bridge td.adj { height: 32px; }
  .spread { padding-top: 8px; }
  .spread__value .num { font-size: 28px; }
  .tie__def { display: none; }
}

/* Narrow phones (360px is the commonest Android width): the hero's label is
   set a little tighter, so its last word does not drop to a second line. */
@media (max-width: 374px) {
  .label { letter-spacing: 0.03em; }
}

/* ------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .skip, .btn, .slip, .card, .card__more .arrow, .bar__cta, .sides, .ticks, .ticks a::before, .ticks a span, .divider__mark, .divider__cta, .entry__senses li, .entry__def, .entry__ok { transition: none; }
  /* Nothing travels: the after side fades in instead of wiping open. */
  .js .wipe { clip-path: none; opacity: 0.2; transition: opacity 400ms linear; }
  .js .wipe.is-open { clip-path: none; opacity: 1; }
  .sheet-tilt, .slip { transform: none !important; }
  /* Nothing sweeps: the darker ground fades instead. */
  .work__stage::before { transform: none; opacity: calc(1 - var(--t, 0)); }
}
