/* Proof wall: aggregate figure, platform ledger, verbatim review lanes.
   Replaces the old single-quote .review section. The marquee only runs when
   partials/proof.js adds .is-marquee (JS on, motion allowed); otherwise the
   cards render as a static wrapped grid. Motion is transform-only. */

.proof-wall {
  --pw-text: var(--cream);
  --pw-muted: rgba(242, 238, 228, .7);
  --pw-faint: rgba(242, 238, 228, .14);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .4fr);
  grid-template-areas:
    "head portrait"
    "ledger ledger"
    "wall wall"
    "note note";
  column-gap: clamp(40px, 7vw, 120px);
  padding: clamp(84px, 10vw, 150px) var(--page-x) clamp(56px, 6vw, 88px);
  color: var(--pw-text);
  background: var(--forest);
  overflow: hidden;
  isolation: isolate;
}

.proof-wall::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 88% 0%, rgba(196, 93, 61, .16), transparent 70%),
    linear-gradient(180deg, transparent 55%, rgba(14, 36, 31, .55));
}

/* Head: the number is the headline */

.pw-head {
  grid-area: head;
  align-self: end;
}

.pw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(22px, 3vw, 40px);
  color: var(--pw-muted);
  font: 400 11px/1.4 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pw-eyebrow::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--clay);
}

.pw-title {
  margin: 0;
}

.pw-figure {
  display: block;
  margin-left: -.04em;
  font-size: clamp(96px, 27vw, 272px);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.055em;
  line-height: .8;
}

.pw-figure-label {
  display: block;
  margin-top: clamp(20px, 2vw, 30px);
  color: var(--pw-muted);
  font: 500 clamp(15px, 1.25vw, 18px)/1.4 var(--sans);
  letter-spacing: 0;
}

.pw-lede {
  max-width: 30ch;
  margin: clamp(26px, 3vw, 40px) 0 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing: -.02em;
  line-height: 1.12;
}

/* Ledger */

.pw-ledger {
  grid-area: ledger;
  margin-top: clamp(48px, 5.5vw, 80px);
}

.pw-ledger-caption {
  margin: 0 0 14px;
  color: var(--pw-muted);
  font: 400 11px/1.4 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pw-ledger-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--pw-faint);
}

.pw-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(120px, 1.5fr) 180px 150px;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  padding: 20px 0;
  border-top: 1px solid var(--pw-faint);
}

.pw-platform {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.pw-platform small {
  display: block;
  margin-top: 4px;
  color: var(--pw-muted);
  font: 400 11px/1.4 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pw-bar {
  position: relative;
  display: block;
  height: 2px;
  background: var(--pw-faint);
}

.pw-bar i {
  position: absolute;
  inset: 0;
  background: var(--clay);
  transform: scaleX(var(--fill, 1));
  transform-origin: left center;
  transition: transform 1.3s var(--ease) .25s;
}

.js .pw-ledger[data-reveal]:not(.is-visible) .pw-bar i {
  transform: scaleX(0);
}

.pw-row:nth-child(2) .pw-bar i { transition-delay: .38s; }
.pw-row:nth-child(3) .pw-bar i { transition-delay: .51s; }

.pw-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.pw-score strong {
  font: 400 clamp(30px, 2.6vw, 40px)/1 var(--serif);
  letter-spacing: -.03em;
}

.pw-score span {
  color: var(--pw-muted);
  font: 400 11px/1.4 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pw-link {
  justify-self: end;
  font: 400 11px/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(242, 238, 228, .38);
  transition: text-decoration-color .25s ease, color .25s ease;
}

.pw-link:hover {
  color: var(--white);
  text-decoration-color: var(--clay);
}

.proof-wall :focus-visible {
  outline-color: var(--cream);
  outline-offset: 4px;
}

/* Portrait */

.pw-portrait {
  grid-area: portrait;
  align-self: end;
  margin: 0;
  background: var(--forest-dark);
  box-shadow: var(--shadow-deep);
}

.pw-portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(.82) contrast(1.02);
}

.pw-portrait figcaption {
  padding: 13px 16px;
  color: var(--pw-muted);
  font: 400 11px/1.5 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  border-top: 1px solid var(--pw-faint);
}

/* Review lanes */

.pw-wall {
  grid-area: wall;
  display: grid;
  gap: 18px;
  margin-top: clamp(64px, 7vw, 110px);
}

.pw-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pw-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(22px, 2vw, 30px);
  background: rgba(14, 36, 31, .5);
  border: 1px solid var(--pw-faint);
}

.pw-card blockquote {
  margin: 0;
}

.pw-card blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(21px, 1.7vw, 25px);
  letter-spacing: -.012em;
  line-height: 1.22;
  text-wrap: pretty;
}

.pw-cite {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--pw-faint);
}

.pw-cite strong {
  font-size: 13px;
  font-weight: 700;
}

.pw-cite span {
  color: var(--pw-muted);
  font: 400 11px/1.4 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Marquee mode (JS on, motion allowed). Each card carries its own right margin so a
   repeating unit is an exact multiple of the card pitch and the loop seam is invisible.
   proof.js repeats the cards until one unit is at least a lane wide, then sets
   --pw-shift (that unit, in px) and --pw-duration (unit / 17px per second). */

.pw-wall.is-marquee {
  margin-inline: calc(var(--page-x) * -1);
}

.is-marquee .pw-lane {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.is-marquee .pw-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: pw-drift var(--pw-duration, 90s) linear infinite;
}

.is-marquee .pw-lane--reverse .pw-track {
  animation-direction: reverse;
}

.is-marquee .pw-card {
  width: clamp(270px, 26vw, 380px);
  margin-right: 18px;
}

.is-marquee:hover .pw-track,
.is-marquee:focus-within .pw-track,
.is-marquee.is-paused .pw-track,
.is-marquee.is-offscreen .pw-track {
  animation-play-state: paused;
}

@keyframes pw-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(var(--pw-shift, 50%) * -1), 0, 0); }
}

/* Note */

.pw-note {
  grid-area: note;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px 40px;
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: 18px;
  border-top: 1px solid var(--pw-faint);
}

.pw-note p {
  max-width: 900px;
  margin: 0;
  color: var(--pw-muted);
  font: 400 11px/1.7 var(--mono);
  letter-spacing: .03em;
}

.pw-toggle {
  flex: none;
  padding: 10px 14px;
  font: 400 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(242, 238, 228, .32);
  border-radius: 0;
  transition: background-color .25s ease, border-color .25s ease;
}

.pw-toggle:hover {
  background: rgba(242, 238, 228, .08);
  border-color: var(--cream);
}

.pw-toggle[hidden] {
  display: none;
}

/* Responsive */

@media (max-width: 1180px) {
  .pw-row {
    grid-template-columns: minmax(150px, 1fr) minmax(80px, 1fr) 170px;
  }

  .pw-link {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: -6px;
  }
}

@media (max-width: 860px) {
  .proof-wall {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "ledger"
      "portrait"
      "wall"
      "note";
  }

  .pw-portrait {
    justify-self: end;
    width: min(62%, 360px);
    margin-top: 56px;
  }
}

@media (max-width: 560px) {
  .pw-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
  }

  .pw-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .pw-link {
    grid-row: 3;
    margin-top: 0;
  }

  .pw-note {
    flex-direction: column;
  }

  .pw-portrait {
    justify-self: start;
    width: min(100%, 380px);
  }
}

/* Light edition. The licensed-footprint section directly above is forest, so
   the proof wall runs on cream-deep to keep the page's dark/light rhythm and
   let the review cards read as paper notes pinned to the wall. */
.proof-wall {
  --pw-text: var(--ink);
  --pw-muted: var(--muted);
  --pw-faint: rgba(29, 36, 33, .14);
  background: var(--cream-deep);
}

.proof-wall::before {
  background:
    radial-gradient(ellipse 60% 50% at 88% 0%, rgba(196, 93, 61, .1), transparent 70%),
    linear-gradient(180deg, transparent 60%, rgba(248, 245, 238, .6));
}

.pw-link {
  text-decoration-color: rgba(29, 36, 33, .32);
}

.pw-link:hover {
  color: var(--forest);
}

.proof-wall :focus-visible {
  outline-color: var(--forest);
}

.pw-card {
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(29, 36, 33, .04), 0 12px 32px rgba(8, 26, 21, .06);
}

.pw-toggle {
  color: var(--ink);
  border-color: rgba(29, 36, 33, .3);
}

.pw-toggle:hover {
  background: rgba(29, 36, 33, .05);
  border-color: var(--ink);
}
