/* Round 4: five more from version 5, Picture and pattern. This file is what the five share: version 5's manner
   (photographs at full bleed with a Macro form over each, Black between, Stone Wash to read on), then the pieces
   round 4 adds, each after a drawing on today's site: the Strategy OS loop, animated, in three layouts (wide, as
   three panels, as three bands); the drift curve with the cord; the three causes' curves; and the cord over a
   picture. Who we work with, Plans, Field notes, Book a demo and the footer are version 5's, untouched. */

.r4 .section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

/* A Macro form over a photograph: the file as drawn, in Stone, bleeding off the picture's edge. */
.r4 .macro {
  position: absolute;
  color: var(--stone);
  --motif-size: contain;
  aspect-ratio: 1;
  pointer-events: none;
}
.r4 .mark {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.6em;
  background: var(--acid-green);
  vertical-align: -0.08em;
}

/* The hero: the photograph fills the screen under the header, the claim over it, what STRGY is on a black block. */
.r4 .hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
}
.r4 .hero-photo {
  position: absolute;
  inset: 0;
}
.r4 .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 92%;
}
.r4 .hero-photo .macro {
  right: -7vw;
  bottom: -9vw;
  width: min(62vw, 92vh);
}
.r4 .hero-photo .credit {
  position: absolute;
  right: var(--gutter);
  top: 0.75rem;
  margin: 0;
  color: var(--white);
}
.r4 .hero-in {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 2rem;
  padding-block: clamp(1.5rem, 4vw, 3rem) 0;
}
.r4 .hero-title {
  margin: 0.9rem 0 1rem -0.04em;
  font-weight: 300;
  font-size: clamp(3rem, 9.4vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  max-width: 9ch;
}
.r4 .hero-line {
  max-width: 18ch;
}
.r4 .hero-short {
  display: grid;
  gap: 1rem;
  width: min(100%, 35rem);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--black);
}
.r4 .hero-short .lead {
  font-size: 1.125rem;
}

/* The drift, as two pictures: the road that bends away, and the line that holds. */
.r4 .drift {
  padding-bottom: 0;
}
.r4 .drift .statement {
  max-width: 14ch;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.r4 .pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.r4 .panel {
  display: grid;
  grid-template-rows: auto 1fr;
}
.r4 .panel-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.r4 .panel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.r4 .panel-photo .macro {
  right: -8%;
  bottom: -14%;
  width: 72%;
}
.r4 .panel--with .panel-photo .macro {
  right: 6%;
  bottom: auto;
  top: 12%;
  width: 46%;
}
.r4 .panel figcaption {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
}
.r4 .panel--with figcaption {
  background: var(--stone-wash);
  color: var(--black);
  --muted: var(--grey);
}
.r4 .losses {
  counter-reset: loss;
  margin-top: 0.5rem;
}
.r4 .losses li {
  counter-increment: loss;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  padding: 0.7rem 0;
  border-top: 1px solid currentColor;
  font-size: var(--lead-size);
  line-height: 1.3;
}
.r4 .losses li::before {
  content: counter(loss);
  font-weight: 700;
}
.r4 ul.losses li::before {
  content: '';
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.3em;
  background: var(--acid-green);
  border: 1.5px solid var(--black);
}

/* The causes: three columns, each a large numeral, the cause, what happens and what STRGY does. */
.r4 .causes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem var(--gap);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.r4 .causes li {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.r4 .causes .number {
  font-size: clamp(4.5rem, 9vw, 9rem);
}
.r4 .causes .does {
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-weight: 700;
}

/* How it works opens on a photograph with a Macro form, then reads on Black. */
.r4 .break {
  position: relative;
  height: clamp(14rem, 34vw, 26rem);
  overflow: hidden;
}
.r4 .break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.r4 .break .macro {
  right: 4%;
  top: -18%;
  height: 136%;
}
.r4 .break .credit {
  position: absolute;
  right: var(--gutter);
  bottom: 0.75rem;
  margin: 0;
  color: var(--white);
}
.r4 .verbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem var(--gap);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.r4 .verbs li {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.r4 .verbs h3 {
  margin-bottom: 1rem;
  font-weight: 300;
  font-size: clamp(2.25rem, 4.4vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.r4 .steps-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1rem var(--gap);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.r4 .steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem var(--gap);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.r4 .steps li {
  padding: 1.25rem;
  background: var(--grey);
}
.r4 .step-n {
  display: grid;
  place-items: center start;
  width: 2.5rem;
  height: 2.5rem;
  padding-left: 0.8rem;
  margin-bottom: 1.5rem;
  background: var(--acid-green);
  color: var(--black);
  font-weight: 700;
}
.r4 .steps h4 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* Who we work with: three photographs, each with its sector; then the customer's words. */
.r4 .who-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem var(--gap);
  align-items: end;
}
.r4 .who-head .lead {
  margin: 0;
}
.r4 .sectors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem var(--gap);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.r4 .sectors .photo {
  aspect-ratio: 1;
}
.r4 .sectors .heading {
  margin: 1rem 0 0.5rem;
}
.r4 .proof {
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}
.r4 .proof blockquote {
  margin: 1.25rem 0 1rem;
  max-width: 22ch;
  font-size: var(--headline-size);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

/* The shared pieces. */
.r4 .qa-list,
.r4 .notes {
  margin-top: clamp(2rem, 5vw, 4rem);
}
.r4 .qa-more {
  margin-top: 1.5rem;
}
.r4 #plans .plan-aside {
  background: var(--blue-wash);
}

@media (max-width: 899px) {
  .r4 .pair,
  .r4 .causes,
  .r4 .verbs,
  .r4 .steps,
  .r4 .steps-head,
  .r4 .who-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .r4 .causes .number {
    font-size: 4.5rem;
  }
  /* On a phone the sectors are one row to swipe, each photograph most of the screen wide. */
  .r4 .sectors {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .r4 .sectors li {
    scroll-snap-align: start;
  }
  .r4 .hero-photo .macro {
    width: 96vw;
    right: -22vw;
    bottom: auto;
    top: 18%;
  }
  .r4 .hero-short {
    margin-inline: calc(-1 * var(--gutter));
    width: auto;
    padding-inline: var(--gutter);
  }
}

/* ---------------------------------------------------------------------------------------------------------
   How it works: today's Strategy OS loop, animated, so Remembers, Reasons and Acts read as one system. Memory's
   four ledgers fill; one line runs from the North Star through a pillar and a goal to an initiative; the
   initiative becomes an approved workflow that runs to its result; the result goes back to memory as the newest
   decision. It plays once when a third of it is on screen and holds its last frame; Play again runs it once
   more. The words never move, and everything it shows is on the page before it plays: with no script, and with
   reduced motion, it stands whole. (viz.js sets data-ready, then data-play, then data-done.)
   --------------------------------------------------------------------------------------------------------- */
.viz {
  --t: 1000ms;
  margin-top: clamp(2rem, 5vw, 4rem);
}
/* A part that comes on at its turn: --at counts in seconds of the loop. */
.viz[data-ready] .lit {
  opacity: 0;
}
.viz[data-play] .lit {
  animation: viz-on 200ms var(--ease) both;
  animation-delay: calc(var(--at, 0) * var(--t));
}
@keyframes viz-on {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* A line that draws at its turn (pathLength 1). */
.viz .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.viz[data-ready] .draw {
  stroke-dashoffset: 1;
}
.viz[data-play] .draw {
  animation: viz-draw calc(var(--for, 0.5) * var(--t)) var(--ease) both;
  animation-delay: calc(var(--at, 0) * var(--t));
}
@keyframes viz-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* The loop, wide: one drawing across the three parts, as on today's site. */
.loop-art svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.loop-art .ledger {
  fill: var(--stone);
}
.loop-art .ledger-text,
.loop-art .box-text {
  fill: var(--black);
}
.loop-art text {
  fill: var(--text);
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.loop-art .sq {
  fill: var(--black);
}
.loop-art .acid {
  fill: var(--acid-green);
  stroke: var(--black);
  stroke-width: 1.5;
}
.loop-art .line {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
}
.loop-art .line--quiet {
  stroke: var(--muted);
  stroke-width: 1.5;
}
.loop-art .node {
  fill: var(--text);
}
.loop-art .node--quiet {
  fill: var(--muted);
}
.loop-art .box {
  fill: var(--stone);
}
.loop-art .tick {
  fill: none;
  stroke: var(--black);
  stroke-width: 2;
}

/* The three parts under the drawing: each verb with its sentence, and a mark that fills as its part plays. */
.viz-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem var(--gap);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.viz-parts > li {
  position: relative;
}
.viz-parts h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-weight: 300;
  font-size: clamp(2.25rem, 4.4vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.viz-mark {
  position: relative;
  flex: none;
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid var(--text);
}
.viz-mark .lit {
  position: absolute;
  inset: 0;
  background: var(--acid-green);
}
/* Each part's own small drawing, in rows: where the wide drawing does not fit (a phone), and in the panels and
   the bands. */
.part-art {
  display: none;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.part-row {
  display: grid;
  grid-template-columns: 7.75rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}
.part-cells {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  height: 1.75rem;
}
.part-cells i {
  position: relative;
  display: block;
  border: 1.5px solid var(--text);
}
.part-cells i.wide {
  grid-column: 1 / -1;
}
.part-cells .lit {
  position: absolute;
  inset: -1.5px;
  background: var(--text);
}
.part-cells .lit.acid {
  background: var(--acid-green);
  border: 1.5px solid var(--black);
}
/* The newest decision: one small block at the end of memory's first ledger. */
.part-cells .lit.newest {
  left: auto;
  width: 1.75rem;
}
.viz-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}
.viz-foot .viz-mark {
  width: 0.85rem;
  height: 0.85rem;
}
.viz-replay {
  min-height: 2.75rem;
  margin-top: 0.5rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.viz:not([data-done]) .viz-replay,
html:not(.js) .viz-replay {
  visibility: hidden;
}
/* The way back as a bar (panels and bands), and the bands' marker: off in the wide loop, which draws its own. */
.viz-back,
.stack-fill,
.stack-track,
.stack-run {
  display: none;
}

/* As three panels: the same loop, a panel a part, with the way back drawn under them. */
.viz--relay .loop-art {
  display: none;
}
.viz--relay .part-art {
  display: grid;
  align-content: end;
  min-height: 9.5rem;
}
.viz--relay .viz-parts {
  gap: var(--gap);
  margin-top: 0;
}
.viz--relay .viz-parts > li {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--grey);
  color: var(--white);
  --text: var(--white);
}
.viz--relay .viz-back {
  display: block;
  height: 0.5rem;
  margin-top: var(--gap);
  background: var(--text);
  transform-origin: 100% 50%;
}
.viz[data-ready] .viz-back {
  transform: scaleX(0);
}
.viz[data-play] .viz-back {
  animation: viz-back 600ms var(--ease) both;
  animation-delay: calc(3 * var(--t));
}
@keyframes viz-back {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* As three bands across the page, read from the top: a marker goes down through them and back up to memory, and
   each band's Acid Green block fills as it arrives. */
.viz--stack .viz-body {
  position: relative;
}
.viz--stack .loop-art {
  display: none;
}
.viz--stack .viz-parts {
  position: relative;
  display: block;
  margin-top: 0;
}
.viz--stack .viz-parts > li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 0.75rem clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  min-height: clamp(10rem, 17vw, 14rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) calc(var(--gutter) + clamp(4rem, 8vw, 8rem)) clamp(1.5rem, 3vw, 2.5rem) calc(var(--gutter) + clamp(1.25rem, 2.5vw, 2.5rem));
}
.viz--stack .viz-parts h3 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: clamp(2.25rem, 4.6vw, 4.75rem);
}
.viz--stack .viz-parts h3 .viz-mark {
  display: none;
}
.viz--stack .viz-parts p {
  grid-column: 2;
  grid-row: 1;
  font-size: var(--lead-size);
  line-height: 1.4;
}
.viz--stack .part-art {
  display: grid;
  grid-column: 3;
  grid-row: 1;
  margin: 0;
}
.viz--stack .stack-fill {
  display: block;
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(0.75rem, 1.5vw, 1.5rem);
  background: var(--acid-green);
  transform-origin: 50% 0;
}
.viz[data-ready] .stack-fill {
  transform: scaleY(0);
}
.viz[data-play] .stack-fill {
  animation: stack-fill 400ms var(--ease) both;
  animation-delay: calc(var(--at, 0) * var(--t));
}
@keyframes stack-fill {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
.viz--stack .stack-track {
  display: block;
  position: absolute;
  z-index: 1;
  top: 16.666%;
  bottom: 16.666%;
  right: calc(var(--gutter) + clamp(1.5rem, 3.5vw, 3.5rem));
  width: 3px;
  background: var(--grey);
}
.viz--stack .stack-run {
  display: block;
  position: absolute;
  z-index: 2;
  top: 16.666%;
  right: calc(var(--gutter) + clamp(1.5rem, 3.5vw, 3.5rem) - 0.75rem);
  width: calc(1.5rem + 3px);
  height: calc(1.5rem + 3px);
  margin-top: -0.8rem;
  background: var(--acid-green);
  border: 1.5px solid var(--black);
}
.viz[data-play] .stack-run {
  animation: stack-run calc(3.6 * var(--t)) var(--ease) both;
}
@keyframes stack-run {
  0% {
    top: 16.666%;
  }
  28% {
    top: 50%;
  }
  33% {
    top: 50%;
  }
  56% {
    top: 83.333%;
  }
  66% {
    top: 83.333%;
  }
  100% {
    top: 16.666%;
  }
}
.viz--stack .viz-foot,
.viz--stack .viz-replay {
  margin-left: var(--gutter);
}

/* ---------------------------------------------------------------------------------------------------------
   Why STRGY: today's drift curve with the cord. The top rule is the plan, the curve the work, the Blue Wash
   between them the gap, and the four numbered marks what the drift costs. No amounts are shown. Pulled, the
   curve folds back to the plan (--k from cord.js), and the marks ride it. The curve is whole from the start.
   --------------------------------------------------------------------------------------------------------- */
.curve-fig {
  --fig-h: clamp(14rem, 30vw, 24rem);
  --end: 86;
  --cord-x: 22%;
  --cord-len: calc(var(--fig-h) * 0.424 + 0.9rem);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.curve-axis {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
}
.curve {
  position: relative;
  height: var(--fig-h);
  border-top: 3px solid var(--text);
}
.curve svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.curve-g {
  transform-origin: 0 0;
  transform: scaleY(calc(1 - 0.94 * var(--k, 0)));
}
.curve-gap {
  fill: var(--blue-wash);
}
.curve-work {
  fill: none;
  stroke: var(--text);
  stroke-width: 3;
}
.curve-mark {
  position: absolute;
  left: calc(var(--x) * 100%);
  top: calc(var(--shape) * var(--end) * (1 - 0.94 * var(--k, 0)) * 1%);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  background: var(--text);
  color: var(--ground);
  font-weight: 700;
  font-size: 0.875rem;
  clip-path: circle(50%);
}
.curve-what {
  position: absolute;
  left: calc(var(--x) * 100% + 1.5rem);
  top: calc(var(--shape) * var(--end) * 1%);
  margin-top: -2.4rem;
  max-width: 13rem;
  color: var(--black);
  font-size: 0.9375rem;
  line-height: 1.25;
  opacity: calc(1 - var(--k, 0));
}
/* The words inside the gap stand on Blue Wash, so they are black in both themes; they fade as the gap folds away. */
.curve-late {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  color: var(--black);
  opacity: calc(1 - var(--k, 0));
}
.curve-fig .cord-pull {
  top: 0;
}
.curve-fig .cord-label {
  left: auto;
  right: calc(50% + 1.1rem);
}
.curve-fig .cord-status {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  max-width: 28ch;
}
/* On a phone the marks keep their numbers and the words read as a list under the drawing. */
.curve-list {
  display: none;
  counter-reset: loss;
  margin-top: 1rem;
}
.curve-list li {
  counter-increment: loss;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  padding: 0.65rem 0;
  border-top: 1px solid var(--rule);
}
.curve-list li::before {
  content: counter(loss);
  font-weight: 700;
}
.cord[data-state='pulled'] .curve-list li {
  text-decoration: line-through;
  color: var(--muted);
}

/* Why execution drifts: today's three small curves, one a cause. The rule is the plan, the curve the work, the
   Blue Wash the gap. */
.cause-curve {
  position: relative;
  height: clamp(5rem, 8vw, 7rem);
  border-top: 2px solid var(--text);
}
.cause-curve svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cause-curve .gap {
  fill: var(--blue-wash);
}
.cause-curve .work {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.5;
}
.cause-curve .dot {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}
.cause-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.4rem;
}

/* ---------------------------------------------------------------------------------------------------------
   Why STRGY, with the cord over one picture across the page. Before the cord is pulled it is the road that
   bends away; pulled, the line that holds fades in over it.
   --------------------------------------------------------------------------------------------------------- */
.swap {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.swap-pic {
  position: absolute;
  inset: 0;
}
.swap-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swap-pic--fix {
  opacity: var(--k, 0);
}
.swap-pic .macro {
  right: -4%;
  bottom: -30%;
  width: 46%;
}
.swap-pic--fix .macro {
  right: 8%;
  bottom: auto;
  top: 14%;
  width: 24%;
}
.swap-tag {
  position: absolute;
  left: var(--gutter);
  bottom: 1.25rem;
  padding: 0.35rem 0.6rem;
  background: var(--black);
  color: var(--white);
}
.swap-tag--drift {
  opacity: calc(1 - var(--k, 0));
}
.swap-tag--fix {
  opacity: var(--k, 0);
}
.swap-fig {
  --cord-x: 18%;
  --cord-len: clamp(6rem, 16vw, 14rem);
}
.swap-fig .cord-string {
  width: 3px;
  margin-left: -1.5px;
  background: var(--white);
  bottom: calc(2rem - var(--drag));
}
.swap-fig .cord-knob {
  width: 1.5rem;
  height: 2.25rem;
  margin-left: -0.75rem;
  background: var(--acid-green);
}
.swap-fig .cord-label {
  left: calc(50% + 1.25rem);
  padding: 0.3rem 0.6rem;
  background: var(--black);
  color: var(--white);
}

/* The four consequences under a cord, and what the drawing says. Pulled, the losses are struck through where
   they stand. */
.r4 .events {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem var(--gap);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.r4 .events li {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: var(--lead-size);
  line-height: 1.3;
}
.r4 .events .number {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}
.r4 .cord[data-state='pulled'] .events li {
  text-decoration: line-through;
  color: var(--muted);
}
.r4 .cord-status {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 26ch;
}

/* The wide loop says where the result goes inside its drawing. */
@media (min-width: 1024px) {
  .viz--loop .viz-foot {
    display: none;
  }
}
/* Under 1024 px the wide loop's words would be too small to read: it gives way to each part's own rows. */
@media (max-width: 1023px) {
  .viz--loop .loop-art {
    display: none;
  }
  .viz--loop .part-art {
    display: grid;
  }
}
@media (max-width: 899px) {
  .viz-parts {
    grid-template-columns: minmax(0, 1fr);
  }
  .viz--stack .viz-parts > li {
    grid-template-columns: minmax(0, 1fr);
    padding-right: calc(var(--gutter) + 3.25rem);
  }
  .viz--stack .viz-parts h3,
  .viz--stack .viz-parts p,
  .viz--stack .part-art {
    grid-column: 1;
    grid-row: auto;
  }
  .viz--stack .stack-track {
    right: calc(var(--gutter) + 0.75rem);
  }
  .viz--stack .stack-run {
    right: var(--gutter);
  }
  .curve-what {
    display: none;
  }
  .curve-list {
    display: block;
  }
  .curve-fig {
    --fig-h: 13rem;
  }
  .curve-fig .cord-label {
    left: calc(50% + 1.1rem);
    right: auto;
    bottom: auto;
    top: calc(100% + 0.4rem);
    transform: translateX(-70%);
  }
  .swap {
    aspect-ratio: 4 / 3;
  }
  .swap-pic .macro {
    width: 70%;
    bottom: -20%;
  }
  .swap-pic--fix .macro {
    width: 40%;
  }
  .r4 .events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .viz .lit,
  .viz .draw,
  .viz .viz-back,
  .viz .stack-fill,
  .viz .stack-run {
    animation: none;
  }
}

/* The last mark's words stand to its left, clear of the drawing's edge. */
/* As on today's site, the last loss reads under the curve, on the section's own ground. */
.curve-what--left {
  left: auto;
  right: calc((1 - var(--x)) * 100% + 1.5rem);
  margin-top: 1rem;
  color: var(--text);
}

/* The three steps' cards are Grey with white type on any ground. */
.r4 .steps li {
  color: var(--white);
}
/* A drift section that ends in words, not in pictures, keeps its foot. */
.r4 .drift--foot {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
/* The causes with today's curves: the curve, its labels, then the cause. */
.r4 .causes--curves li {
  gap: 0.75rem;
  border-top: 0;
  padding-top: 0;
}
.r4 .causes--curves .heading {
  margin-top: 0.75rem;
}
/* The causes as rows: cause, what happens, what STRGY does. */
.r4 .spec {
  margin-top: clamp(2rem, 5vw, 4rem);
}
.r4 .spec-head,
.r4 .spec-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 4fr);
  gap: 0.5rem var(--gap);
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
}
.r4 .spec-row {
  padding: 1.25rem 0 1.75rem;
  font-size: var(--lead-size);
  line-height: 1.4;
}
.r4 .spec-row .does {
  font-weight: 700;
}
@media (max-width: 899px) {
  .r4 .spec-head {
    display: none;
  }
  .r4 .spec-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }
}

/* A credit set on its picture, in white. */
.swap-pic .credit,
.strip-pic .credit {
  position: absolute;
  right: var(--gutter);
  bottom: 0.75rem;
  margin: 0;
  color: var(--white);
}
.strip-pic .credit {
  left: 0.75rem;
  right: auto;
}
