/* Kind words: a pinned deck of client notes. Left column stays put, the cards pile up on the right.
   Built on the site's own tokens (--ink, --teal*, --mint, --cream, --hand, --display, --body, --stack-top). */
.kind { padding: clamp(48px, 7vw, 120px) 0 clamp(40px, 6vw, 100px); }
.kind-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5.5vw, 96px);
  align-items: start;
}

/* ---- left: the heading stays pinned while the cards pile up ---- */
.kind-side {
  position: sticky; top: calc(var(--stack-top) + 8px);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(16px, 1.8vw, 26px);
  padding-top: 4px;
}
.kind-side .eyebrow { margin: 0; }
.kind-side h2 { font-size: clamp(42px, 6.2vw, 104px); line-height: 1.02; padding-right: 0.08em; text-wrap: balance; }
.kind-lede { margin: 0; max-width: 30ch; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.5; color: var(--muted); }
.kind-meter { display: flex; align-items: center; gap: 14px; }
.kind-count { display: inline-flex; align-items: baseline; gap: 8px; font: 600 13px/1 var(--body); letter-spacing: 0.14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.kind-count b { font: 600 clamp(34px, 3.4vw, 54px)/1 var(--display); letter-spacing: -0.05em; color: var(--ink); }
.kind-ticks { display: flex; gap: 6px; }
.kind-ticks i { width: 34px; height: 4px; border-radius: 4px; background: var(--line); transition: background 0.4s var(--ease), width 0.5s var(--ease); }
.kind-ticks i.on { background: var(--teal-strong); width: 54px; }
.kind-note { margin-top: 4px; }
.kind-side .btn { margin-top: 6px; }

/* ---- right: the pile ---- */
.kind-stack { margin: 0; padding: 0 0 clamp(60px, 16vh, 160px); min-width: 0; }
.kind-card {
  --tilt: -1.2deg;
  position: sticky;
  top: calc(var(--stack-top) + var(--i) * 40px);
  min-height: clamp(380px, 54vh, 520px);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(22px, 3vw, 44px);
  padding: clamp(26px, 3.4vw, 56px);
  isolation: isolate; overflow: hidden;
  rotate: var(--tilt);
  scale: calc(1 - var(--p, 0) * 0.055);
  transform-origin: 50% 0;
  box-shadow: 0 34px 60px -34px rgba(22, 48, 45, 0.6), 0 2px 0 rgba(22, 48, 45, 0.06);
  margin-bottom: clamp(70px, 24vh, 240px);
  will-change: scale;
}
.kind-card:last-child { margin-bottom: 0; }
.kind-card::after { /* dims a card as the next one slides over it */
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: #0b1a18; opacity: calc(var(--p, 0) * 0.5); border-radius: inherit;
}
.kind-card.ink {
  --tilt: -1.2deg;
  color: var(--cream); border-radius: 48px 48px 48px 14px;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(88, 158, 152, 0.42), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(88, 158, 152, 0.2), transparent 70%),
    var(--ink);
}
.kind-card.mint {
  --tilt: 1.1deg;
  color: var(--ink); border-radius: 48px 14px 48px 48px;
  background:
    radial-gradient(60% 70% at 0% 0%, rgba(252, 250, 244, 0.7), transparent 70%),
    radial-gradient(55% 60% at 100% 100%, rgba(88, 158, 152, 0.34), transparent 72%),
    var(--mint);
}
/* a loose organic blob behind the text, echoing the stat blobs above */
.kind-card::before {
  content: ""; position: absolute; z-index: -1; right: -14%; bottom: -26%;
  width: 62%; aspect-ratio: 1.1;
  border-radius: 58% 42% 55% 45% / 52% 60% 40% 48%;
  background: var(--teal); opacity: 0.2;
  rotate: -12deg;
}
.kind-card.mint::before { background: var(--teal-strong); opacity: 0.22; border-radius: 44% 56% 48% 52% / 60% 44% 56% 40%; right: auto; left: -16%; rotate: 14deg; }

.kind-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.kind-mark {
  display: block; height: 0.5em;
  font: 700 clamp(120px, 12vw, 190px)/1 var(--hand);
  color: var(--teal-soft); user-select: none;
}
.kind-card.mint .kind-mark { color: var(--teal-strong); }
.kind-spark { flex: none; width: clamp(34px, 3.6vw, 52px); color: var(--teal-soft); rotate: 12deg; }
.kind-card.mint .kind-spark { color: var(--ink); }
.kind-spark path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.kind-card blockquote { margin: 0; }
.kind-card blockquote p {
  margin: 0; max-width: 28ch;
  font: 600 clamp(24px, 2.7vw, 44px)/1.16 var(--display);
  letter-spacing: -0.035em; text-wrap: pretty;
}
.kind-card.long blockquote p { max-width: 32ch; font-size: clamp(21px, 2.25vw, 36px); line-height: 1.22; }
.kind-card blockquote em { font-family: var(--hand); font-style: normal; font-weight: 700; font-size: 1.18em; line-height: 0.8; color: var(--teal-soft); }
.kind-card.mint blockquote em { color: var(--teal-deep); }

.kind-by { display: flex; align-items: center; gap: 16px; padding-top: clamp(16px, 1.8vw, 26px); border-top: 1px solid rgba(252, 250, 244, 0.22); }
.kind-card.mint .kind-by { border-top-color: rgba(22, 48, 45, 0.22); }
.kind-avatar {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal); color: var(--cream); font: 700 22px/1 var(--display); letter-spacing: -0.02em;
  box-shadow: 0 0 0 4px rgba(252, 250, 244, 0.14);
}
.kind-card.mint .kind-avatar { background: var(--ink); box-shadow: 0 0 0 4px rgba(22, 48, 45, 0.12); }
.kind-who { min-width: 0; display: grid; gap: 3px; }
.kind-who b { font: 600 clamp(18px, 1.6vw, 24px)/1.15 var(--display); letter-spacing: -0.02em; }
.kind-who small { font: 600 11px/1.4 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-soft); }
.kind-card.mint .kind-who small { color: var(--teal-deep); }
.kind-who a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.kind-who a:hover, .kind-who a:focus-visible { border-bottom-width: 2px; }
.kind-who a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.kind-by .heart { margin-left: auto; font-size: 26px; line-height: 1; }

@media (max-width: 900px) {
  .kind-wrap { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .kind-side { position: static; }
  .kind-side .btn { display: none; }
  .kind-meter { display: none; }
  .kind-card { top: calc(var(--stack-top) - 8px + var(--i) * 26px); min-height: 0; }
  .kind-card { margin-bottom: clamp(40px, 14vh, 110px); }
  .kind-card:last-child { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .kind-card { scale: none; }
  .kind-card::after { opacity: calc(var(--p, 0) * 0.35); }
  .kind-ticks i { transition: none; }
}

/* the long BAKI note: smaller lines so the whole card fits on one screen while it is pinned */
.kind-card.longest { gap: clamp(16px, 2vw, 28px); }
.kind-card.longest .kind-mark { font-size: clamp(90px, 8vw, 130px); }
.kind-card.longest blockquote p { max-width: 46ch; font-size: clamp(17px, 1.45vw, 23px); line-height: 1.34; letter-spacing: -0.015em; }
/* Arabic page: the column order flips, the quotes themselves stay in English, left to right */
html[dir="rtl"] .kind-card blockquote p { text-align: left; }
html[dir="rtl"] .kind-by .heart { margin-left: 0; margin-right: auto; }
