/* ======================================================================
   Press logos — the "Work featured in" strip under the homepage stats.
   Inline single-colour SVGs (src/img/press/mono/) painted with currentColor.
   Each logo gets its own height so the marks read at the same visual weight:
   heavy sans marks run short, long thin serif mastheads run taller.
   ====================================================================== */
/* The strip is the last row of the outlined stats block, spanning every column. */
.proof-stats .stat--press {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
}
.proof-stats .stat--press .eyebrow { margin: 0; }
.proof-stats .stat--press .press-logos { align-self: stretch; }

.press-logos {
  --press-h: 1.375rem;
  --press-gap: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  color: var(--gray-600, #726d64);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.press-logos__track {
  display: flex;
  width: -moz-max-content;
  width: max-content;
  animation: press-logos-scroll 48s linear infinite;
}
.press-logos:hover .press-logos__track { animation-play-state: paused; }
.press-logos__set {
  display: flex;
  align-items: center;
  gap: var(--press-gap);
  margin: 0;
  padding: 0.5rem var(--press-gap) 0.5rem 0;
  list-style: none;
}
.press-logos__set li { display: flex; align-items: center; margin: 0; padding: 0; }
.press-logos__set li::before { content: none; }
.press-logo { display: block; line-height: 0; }
.press-logo svg {
  display: block;
  width: auto;
  height: calc(var(--press-h) * var(--k, 1));
  fill: currentColor;
}

/* Optical sizes, as a multiple of the base height. */
.press-logo--axios { --k: 0.86; }
.press-logo--bloomberg { --k: 1.05; }
.press-logo--cbs { --k: 0.92; }
.press-logo--cnn { --k: 1.1; }
.press-logo--forbes { --k: 1.05; }
.press-logo--fortune { --k: 0.8; }
.press-logo--nyt { --k: 1.1; }
.press-logo--politico { --k: 0.8; }
.press-logo--wapo { --k: 1.2; }

@keyframes press-logos-scroll { to { transform: translateX(-50%); } }

@media (max-width: 600px) {
  .press-logos { --press-h: 1.125rem; }
}

/* No motion: one static, wrapping row; the looping copy is not needed. */
@media (prefers-reduced-motion: reduce) {
  .press-logos { -webkit-mask-image: none; mask-image: none; }
  .press-logos__track { width: auto; animation: none; }
  .press-logos__set { flex-wrap: wrap; row-gap: 1.75rem; padding-right: 0; }
  .press-logos__set[aria-hidden="true"] { display: none; }
}

/* ======================================================================
   Stats block — one outlined container, hairlines between the cells.
   The outline and its rounded corners belong to the grid; the cells carry
   no fill, radius or border of their own. Each cell draws a 1px line on its
   right and bottom edge as a shadow, and the grid clips the ones that land
   on the outer edge, so the lines stay correct at any column count.
   ====================================================================== */
.proof-stats {
  --stat-line: var(--gray-300, #d4d1c5);
  --stat-pad: clamp(1.75rem, 3vw, 2.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--stat-line);
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
}
.proof-stats .stat {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: var(--stat-pad);
  color: inherit;
  box-shadow: 1px 0 0 var(--stat-line), 0 1px 0 var(--stat-line);
}
.proof-stats .stat:not(.stat--press) .n,
.proof-stats .stat.stat--wide .n {
  color: var(--gray-900, #221f1a);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 500;
  letter-spacing: var(--track-display, -0.018em);
  line-height: 1.05;
}
.proof-stats .stat:not(.stat--press) .l {
  margin-top: 1.25rem;
  max-width: 34ch;
  color: var(--gray-700, #635f56);
  font-size: 0.95rem;
  line-height: 1.55;
}
.proof-stats .stat .l__lead {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--gray-900, #221f1a);
  font-weight: 500;
}

/* The sixth cell is a link to the contact page; the whole cell is the target.
   One line and one button. The hover tint starts 1px in from the top and left
   so it does not paint over the hairlines the neighbouring cells draw there. */
.proof-stats a.stat--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(var(--gray-100, #f0eee5), var(--gray-100, #f0eee5)) 1px 1px / 0 0 no-repeat;
}
.proof-stats a.stat--cta:hover { background-size: calc(100% - 1px) calc(100% - 1px); }
.proof-stats a.stat--cta:focus-visible { outline: 2px solid var(--gray-900, #221f1a); outline-offset: -3px; }
.ps-ask {
  display: block;
  max-width: 16ch;
  min-height: 2.3em;
  color: var(--gray-900, #221f1a);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: var(--track-heading, -0.012em);
  line-height: 1.15;
}
/* The caret shows only while the line is being typed by the script. */
.ps-ask[data-ask-live] .ps-ask__text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 0.08em;
  vertical-align: -0.1em;
  background: currentColor;
  animation: ps-caret 1s steps(1) infinite;
}
@keyframes ps-caret { 50% { opacity: 0; } }
.ps-cta {
  padding: 0.7rem 1.15rem;
  border-radius: 100px;
  background: var(--gray-900, #221f1a);
  color: var(--gray-50, #f7f5f0);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.2s ease-out;
}
.proof-stats a.stat--cta:hover .ps-cta { background: var(--gray-800, #3b3830); }

@media (max-width: 900px) {
  .proof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
}
@media (max-width: 600px) {
  .proof-stats { grid-template-columns: minmax(0, 1fr); border-radius: 16px; }
}

/* ======================================================================
   Stat figures — a small piece of UI under the text of two cells, stepped
   once by the Actful player (data-af-play on .proof-stats). Every rule
   that hides something is scoped to [data-af-playing], so without the
   player or under reduced motion the figures show finished. Figures sit
   at the bottom of the cell, so numbers line up along the top of a row.
   ====================================================================== */
.proof-stats .stat:not(.stat--press) { display: flex; flex-direction: column; }
.ps-fig {
  --ps-ink: var(--gray-900, #221f1a);
  --ps-soft: var(--gray-200, #e7e5da);
  --ps-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 2rem;
  color: var(--gray-700, #635f56);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}
.ps-fig i { display: block; font-style: normal; }

/* People: one face per person, landing one at a time, in colour. */
.ps-people i {
  flex: none;
  width: 2rem;
  height: 2rem;
  margin-right: -0.6rem;
  border-radius: 50%;
  background: var(--gray-300, #d4d1c5);
  box-shadow: 0 0 0 2px var(--gray-50, #f7f5f0);
  overflow: hidden;
  transition: transform 0.35s var(--ps-ease), opacity 0.2s linear;
}
.ps-people img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
[data-af-playing] .ps-people i:not([data-on]) { opacity: 0; transform: translateY(0.4rem) scale(0.6); }

/* No project managers: you, then the people doing the work. The PM chip
   shows for one step and drops out. */
.ps-direct { gap: 0.4rem; max-width: 19rem; }
.ps-chip {
  flex: none;
  padding: 0.45rem 0.7rem;
  border-radius: 100px;
  background: var(--ps-soft);
  color: var(--gray-800, #3b3830);
  transition: opacity 0.3s linear, transform 0.35s var(--ps-ease);
}
.ps-chip--ink { background: var(--ps-ink); color: var(--gray-50, #f7f5f0); }
.ps-direct__line {
  position: relative;
  flex: 1;
  min-width: 1.5rem;
  height: 1px;
  background: linear-gradient(var(--ps-ink), var(--ps-ink)) left / 100% 100% no-repeat;
  transition: background-size 0.45s var(--ps-ease);
}
.ps-chip--ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  display: none;
  transform: translate(-50%, -50%);
  background: var(--gray-50, #f7f5f0);
  border: 1px dashed var(--gray-500, #8f8b81);
  color: var(--gray-700, #635f56);
  text-decoration: line-through;
}
[data-af-playing] .ps-chip--ghost[data-on] { display: block; }
[data-af-playing] .ps-direct > .ps-chip:not([data-on]) { opacity: 0; transform: translateY(0.3rem); }
[data-af-playing] .ps-direct__line:not([data-on]) { background-size: 0 100%; }
