/* ---------------------------------------------------------------------------
   The front page's own sections
   ---------------------------------------------------------------------------
   `styles.css` holds what both pages share — the tokens, the header, the
   buttons, the footer, the band of marks. This holds the sections that exist
   only on the front page, and it is a separate file for one reason: the page
   was redesigned wholesale and its old sections were not, so keeping the new
   ones apart is what lets the dead rules in `styles.css` be found and removed
   deliberately rather than guessed at.

   Every colour here is a token. The design was drawn light, but this site has
   a switch in its header and a reader who has chosen dark must not meet one
   white rectangle in the middle of it.
   --------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
   Shared shapes
   --------------------------------------------------------------------------- */

.slab {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-panel);
}

/* The dotted field the diagrams sit on — the product's own canvas, quietened.
   It is a texture rather than a grid: noticed once, then not again. */
.field {
  background-color: var(--bg-raised);
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
  background-size: 22px 22px;
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}


/*
 * A diagram is as wide as it is, and narrowing it past a point stops it being
 * readable rather than making it fit. Below that point it scrolls inside its
 * own panel, so the page itself never does.
 */
.scroller {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */

.opening {
  padding: 92px 0 0;
  text-align: center;
}

.opening-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.opening h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.opening p {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text-soft);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.opening-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------------------------------------------------------------------------
   The line that names what this replaces
   --------------------------------------------------------------------------- */

.claim {
  padding: 64px 0 0;
}

.claim p {
  margin: 0 auto;
  max-width: 30ch;
  text-align: center;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------------
   What Mosaic sits between
   --------------------------------------------------------------------------- */

.core {
  padding: 72px 0 0;
}

.core-panel {
  padding: 36px;
}

.core-row {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 1060px;
}

.core-sources {
  flex: none;
  width: 262px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.core-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* Its own box so the narrow layout can re-flow the tiles into a grid without
   the label being dragged in among them. */
.core-tiles {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.core-group-name {
  /* Fixed, not inherited: the bracket beside this column is drawn to a group
     height of exactly 239px, and 19 of those are this line. */
  height: 19px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 19px;
  /* Clipped to one line rather than allowed to wrap: this height is
     load-bearing and a second line pushes the tiles out of register with the
     rails drawn beside them. */
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.tile {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-panel);
  font-size: 14px;
  font-weight: 500;
}

.tile svg {
  flex: none;
}

.core-bracket {
  flex: none;
}

.core-bracket .rail {
  stroke: var(--line-strong);
  stroke-width: 1.5;
  fill: none;
}

/* What the wires carry, drawn as something moving along them. The rails never
   move, so the diagram is complete when it is still and merely alive when it
   is not. */
.core-bracket .wire {
  stroke: var(--accent-brand);
  stroke-width: 1.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 0.06 0.94;
  animation: wire-flow 2.6s linear infinite;
}

.core-bracket .wire.is-out {
  animation-name: wire-flow-back;
  animation-delay: 0.5s;
}

@keyframes wire-flow {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes wire-flow-back {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 1; }
}

.core-hub {
  flex: none;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--text);
  border-radius: 14px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-card);
}

.core-hub-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.core-hub dl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-soft);
}

.core-hub hr {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line-soft);
}

.core-hub p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft);
}

.core-out {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.core-verdicts {
  display: flex;
  gap: 12px;
}

.tally {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-panel);
  font-size: 14px;
  font-weight: 500;
}

.tally::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.tally.is-bad::before {
  background: var(--err);
}

/*
 * The point of the whole drawing.
 *
 * Orange means one thing on this site — this is the part that matters — and
 * this is the only place in the diagram that wears it.
 */
.why {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 28px;
  border: 1.5px solid var(--accent-brand);
  border-radius: 14px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-card);
}

.why-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.why h3 {
  margin: 0;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.28;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.why ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
}

.why li b {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--ok);
}

.why li.is-bad b { color: var(--err); }
.why li.is-never { color: var(--text-dim); }
.why li.is-never b { color: var(--text-dim); }

.core-note {
  margin: 20px auto 0;
  max-width: 74ch;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------------
   Sales, inventory, orders
   --------------------------------------------------------------------------- */

.trio {
  padding: 88px 0 0;
}

.trio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.trio-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-card);
}

.trio-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trio-card h3 + span {
  margin-top: -13px;
  font-size: 14px;
  color: var(--text-dim);
}

/* A recessed tray, so the figures read as an illustration rather than as a
   spreadsheet pasted into a card. */
.tray {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-raised);
}

.tray-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 7px;
  background: var(--bg-panel);
  font-size: 14px;
  color: var(--text-soft);
}

.tray-row b {
  font-family: var(--mono);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.tray-row.is-off b {
  color: var(--err);
}

/* Pinned to the foot, so three cards of different lengths line their
   conclusions up with each other. */
.takeaway {
  margin-top: auto;
  align-self: flex-start;
  padding: 6px 11px;
  border: 1px solid var(--err-line);
  border-radius: 999px;
  background: var(--err-wash);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--err);
}

/* ---------------------------------------------------------------------------
   What it replaces, as an equation
   --------------------------------------------------------------------------- */

.equation {
  padding: 96px 0 0;
}

.equation-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  margin-top: 48px;
}

.equation-parts {
  flex: none;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.part {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-panel);
}

.part code {
  display: flex;
  flex-direction: column;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-raised);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--text-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.part code b {
  font-weight: 400;
  color: var(--accent);
}

/* The one line in the equation that is not a language — five fields and a
   space, set larger and tracked out so it reads as the expression it is. */
.part code .cron {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text);
}

.part-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.part-name .tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
}

.plus,
.equals {
  color: var(--line-strong);
  line-height: 1;
  text-align: center;
}

.plus { font-size: 19px; }
.equals { flex: none; width: 40px; font-size: 40px; }

.pains {
  flex: none;
  width: 570px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 34px 36px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-card);
}

.pains > .label {
  color: var(--accent);
}

.pain {
  display: flex;
  gap: 14px;
}

.pain::before {
  content: '';
  flex: none;
  width: 3px;
  border-radius: 2px;
  background: var(--line);
}

.pain div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pain b {
  font-size: 16px;
  font-weight: 600;
}

.pain span {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ---------------------------------------------------------------------------
   Anyone can tell you two numbers differ
   --------------------------------------------------------------------------- */

.ladder {
  padding: 100px 0 0;
}

/* ---------------------------------------------------------------------------
   The runbook, as the product draws it
   --------------------------------------------------------------------------- */

.runbook {
  margin-top: 20px;
  padding: 30px 32px;
}

.runbook-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.runbook-head strong {
  font-size: 17px;
  font-weight: 600;
}

.runbook-head span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

.track {
  position: relative;
  width: 1112px;
  height: 440px;
  margin: 0 auto;
}

/* The wire layer, and only it — a descendant selector here would also catch
   the glyph inside every step box and pin all six to the canvas origin. */
.track > svg {
  position: absolute;
  left: 0;
  top: 0;
}

.track .rail { stroke: var(--text-dim); stroke-width: 1.5; fill: none; opacity: 0.55; }
.track .rail.is-taken { stroke: var(--accent); }
.track .rail.is-skipped { stroke: var(--line-strong); stroke-dasharray: 4 4; }

.step {
  position: absolute;
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-box {
  position: relative;
  width: 112px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-panel);
}

.step.is-passed .step-box { border-color: var(--ok-line); box-shadow: 0 0 0 4px var(--ok-wash); }
.step.is-failed .step-box { border-color: var(--err-line); box-shadow: 0 0 0 4px var(--err-wash); }
.step.is-answered .step-box { border-color: var(--accent-brand); box-shadow: 0 0 0 4px var(--accent-wash); }
.step.is-skipped .step-box { border-style: dashed; opacity: 0.75; }

.step-num {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg-panel);
  font-family: var(--mono);
  font-size: 10.5px;
}

.step-name {
  margin-top: 11px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.step.is-skipped .step-name { opacity: 0.7; }

.step-sub {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.35;
  text-align: center;
  color: var(--text-dim);
}

.step-chip {
  margin-top: 9px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-panel);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.step.is-answered .step-chip { border-color: var(--accent-brand); }
.step.is-passed .step-chip { border-color: var(--ok-line); }

/* A step that failed says what it expected, in the words the run itself used. */
.step-fail {
  margin-top: 9px;
  width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--err-line);
  border-radius: 7px;
  background: var(--err-wash);
  font-size: 11.5px;
  line-height: 1.4;
  text-align: center;
  color: var(--err);
}

/* A branch that was not taken is left in place and labelled. The drawing has to
   show what the runbook did not ask as well as what it did. */
.step-missed {
  margin-top: 9px;
  padding: 4px 10px;
  /* Dashed and unfilled, like the branch it labels. Solid `--bg-raised` was the
     same colour as the field it sits on and read as nothing at all. */
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  background: var(--bg-panel);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.lane-label {
  position: absolute;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-panel);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.lane-label.is-taken {
  border-color: var(--accent-brand);
  color: var(--accent);
}

.runbook > p {
  margin: 18px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ---------------------------------------------------------------------------
   Evidence, not guesses
   --------------------------------------------------------------------------- */

.evidence {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 20px;
  padding: 26px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-raised);
}

.evidence-lede {
  flex: none;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evidence-lede strong { font-size: 17px; font-weight: 600; }
.evidence-lede span { font-size: 14.5px; line-height: 1.55; color: var(--text-soft); }

.evidence-grid {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.evidence-grid > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-panel);
  font-size: 13.5px;
  line-height: 1.45;
}

.evidence-grid > div b {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--ok);
}

.evidence-grid > div.is-never {
  border-style: dashed;
  color: var(--text-dim);
}

.evidence-grid > div.is-never b { color: var(--text-dim); }

/* ---------------------------------------------------------------------------
   Where Mosaic sits in the stack
   --------------------------------------------------------------------------- */

.category {
  padding: 100px 0 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.category-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-panel);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dim);
}

.category-grid > div b { font-weight: 600; }

.category-grid > div.is-mosaic {
  border: 1.5px solid var(--accent-brand);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.category-grid > div.is-mosaic b { color: var(--accent); }

/* ---------------------------------------------------------------------------
   Packs
   --------------------------------------------------------------------------- */

.packs {
  padding: 100px 0 0;
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: start;
}

.packs-lede {
  display: flex;
  flex-direction: column;
  /* The site's eyebrow is a pill and an inline-block, which a stretching flex
     column would widen into a bar the width of the paragraph under it. */
  align-items: flex-start;
  gap: 18px;
}

.packs-lede h2 { margin: 0; }

.packs-lede p {
  margin: 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-soft);
  text-wrap: pretty;
}

.repurposed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
  padding: 24px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg-panel);
}

.repurposed-map {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 15px;
}

.repurposed-map .to { color: var(--accent); }

.repurposed-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-soft);
}

.repurposed-values span {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.repurposed p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
}

.pack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-panel);
}

.pack + .pack { margin-top: 14px; }

.pack strong { font-size: 17px; font-weight: 600; }
.pack span { font-size: 14.5px; line-height: 1.55; color: var(--text-soft); }

.pack.is-soon {
  margin-top: 14px;
  border-style: dashed;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ---------------------------------------------------------------------------
   The same question, everywhere
   --------------------------------------------------------------------------- */

.verticals {
  padding: 100px 0 0;
}

.verticals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.verticals-grid > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-panel);
}

.verticals-grid strong { font-size: 16px; font-weight: 600; }

.verticals-grid .pair {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-soft);
}

/* ---------------------------------------------------------------------------
   The screenshot
   ---------------------------------------------------------------------------
   The capture is of the product's dark theme. Rather than let it fight a light
   page, it is shown on its own dark chrome in both themes — so it reads as a
   screen somebody is looking at, which is what it is, instead of as a panel
   that forgot which theme the page is in.
   --------------------------------------------------------------------------- */

.shot {
  display: flex;
  align-items: center;
  gap: 44px;
  margin-top: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-panel);
}

.shot-lede {
  flex: none;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shot-lede strong { font-size: 17px; font-weight: 600; }
.shot-lede span { font-size: 14.5px; line-height: 1.6; color: var(--text-soft); }

.shot-frame {
  flex-grow: 1;
  min-width: 0;
  padding: 10px;
  border: 1px solid #2c2c30;
  border-radius: 14px;
  background: #19191b;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ---------------------------------------------------------------------------
   Close
   --------------------------------------------------------------------------- */

.close {
  margin-top: 112px;
  padding: 92px 0 100px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.close-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.close h2 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.close p {
  margin: 0;
  max-width: 56ch;
  font-size: 18px;
  color: var(--text-soft);
  text-wrap: pretty;
}

.close-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------------------------------------------------------------------------
   Narrow
   ---------------------------------------------------------------------------
   The two diagrams keep their geometry and scroll inside their own panel; the
   grids collapse. A drawing squeezed to 380px is not a smaller drawing, it is
   an unreadable one, and the page must never be the thing that scrolls
   sideways.
   --------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .equation-row { flex-direction: column; gap: 20px; }
  .equation-parts,
  .pains { width: min(100%, 560px); }
  .equals { transform: rotate(90deg); }
}

@media (max-width: 940px) {
  .opening { padding-top: 64px; }
  .trio-grid,
  .verticals-grid,
  .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packs-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .evidence,
  .shot { flex-direction: column; gap: 20px; }
  .evidence-lede,
  .shot-lede { width: auto; }
  .core-panel,
  .runbook { padding: 22px; }
}

/*
 * The hub diagram, stacked.
 *
 * Scrolling sideways is a fair way to read a canvas, but not a fair way to
 * reach the point of a section: left as a scroller, a phone shows eight source
 * tiles and hides the answer they lead to. Below this width the three columns
 * become three rows in the order they are read, and the brackets — which only
 * ever said "left connects to right" — are dropped rather than redrawn.
 */
@media (max-width: 820px) {
  .core-panel { overflow-x: visible; }

  .core-row {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    gap: 22px;
  }

  .core-sources,
  .core-hub { width: auto; }

  .core-group { display: block; }

  .core-group-name { margin-bottom: 9px; }

  .core-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .core-bracket { display: none; }

  .core-hub { align-self: stretch; }
}

@media (max-width: 640px) {
  .trio-grid,
  .verticals-grid,
  .category-grid,
  .evidence-grid { grid-template-columns: minmax(0, 1fr); }
  .claim { padding-top: 48px; }
  .core,
  .trio,
  .equation,
  .ladder,
  .category,
  .packs,
  .verticals { padding-top: 72px; }
  .close { margin-top: 72px; padding: 64px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .core-bracket .wire { display: none; }
}
