/* Quote reveal · Scroll Story Kit
   Static (no JS, reduced motion): a styled blockquote on a card, quote marks on its corner, attribution under it.
   Motion: the section pins for --sk-quote-len of scroll. The quote marks start huge and pale over the card and shrink
   into its corner; the quote sharpens out of a soft blur while its lines, spread apart, settle into place; then the
   attribution slides in. */
.sk-quote {
  --sk-quote-len: 280vh;
  --sk-quote-zoom: 7;   /* starting scale of the quote marks */
  --sk-quote-blur: 10px;/* starting blur of the quote */
}
.sk-quote-frame { max-width: 1000px; }
.sk-quote-kicker { text-align: left; }
.sk-quote-fig {
  position: relative; margin: 30px 0 0;
  padding: clamp(56px, 7vw, 84px) clamp(24px, 5vw, 64px) clamp(28px, 4.5vw, 56px);
  border-radius: var(--sk-radius); background: var(--sk-surface);
  box-shadow: var(--sk-shadow), 0 0 0 1px var(--sk-line);
}
.sk-quote-mark { position: absolute; top: -30px; left: clamp(20px, 5vw, 60px); width: clamp(68px, 8vw, 96px); height: auto; fill: var(--sk-accent); }
.sk-quote-text { position: relative; z-index: 1; margin: 0; font: 700 clamp(1.55rem, .95rem + 2.5vw, 3rem)/1.18 var(--sk-font-display); letter-spacing: -0.025em; color: var(--sk-ink); }
.sk-quote-text p { margin: 0; text-wrap: pretty; }
.sk-quote-by { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; margin-top: clamp(24px, 3.5vw, 40px); }
.sk-quote-av { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--sk-accent-2); color: var(--sk-surface); font: 800 1.3rem/1 var(--sk-font); box-shadow: 0 0 0 4px var(--sk-surface), 0 0 0 6px var(--sk-line); }
.sk-quote-who { display: grid; gap: 2px; line-height: 1.3; }
.sk-quote-who strong { font-size: 1.1rem; }
.sk-quote-who span { color: var(--sk-ink-2); font-size: var(--sk-size-small); }

:root.sk-on .sk-quote { height: var(--sk-quote-len); padding: 0; }
:root.sk-on .sk-quote-pin {
  /* a: marks, b: quote, c: attribution (each eased out) */
  --a: clamp(0, var(--sk-p) / .42, 1);
  --b: clamp(0, (var(--sk-p) - .08) / .46, 1);
  --c: clamp(0, (var(--sk-p) - .58) / .22, 1);
  --ea: calc(var(--a) * (2 - var(--a)));
  --eb: calc(var(--b) * (2 - var(--b)));
  --ec: calc(var(--c) * (2 - var(--c)));
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip;
  display: grid; align-items: center; padding: 0 var(--sk-gutter);
}
:root.sk-on .sk-quote-frame { width: 100%; }
:root.sk-on .sk-quote-mark {
  z-index: 0; transform-origin: 18% 22%;
  transform: scale(calc(1 + (var(--sk-quote-zoom) - 1) * (1 - var(--ea))));
  fill: color-mix(in oklab, var(--sk-accent) calc(24% + 76% * var(--ea)), var(--sk-surface));
}
:root.sk-on .sk-quote-text { filter: blur(calc((1 - var(--eb)) * var(--sk-quote-blur))); opacity: calc(.28 + .72 * var(--eb)); }
:root.sk-on .sk-quote-line { display: block; transform: translateY(calc((var(--i, 0) - 1) * (1 - var(--eb)) * .9em)); }
:root.sk-on .sk-quote-by { opacity: var(--ec); transform: translateX(calc((1 - var(--ec)) * -64px)); }
:root.sk-on .sk-quote-av { transform: scale(calc(.5 + .5 * var(--ec))) rotate(calc((1 - var(--ec)) * -40deg)); }

@media (max-width: 760px) {
  .sk-quote-fig { border-radius: var(--sk-radius-sm); }
  .sk-quote-mark { top: -24px; }
  .sk-quote { --sk-quote-zoom: 5; }
  /* narrow screens: the lines wrap, so they run on as one paragraph that settles up as a whole */
  :root.sk-on .sk-quote-line { display: inline; transform: none; }
  :root.sk-on .sk-quote-text p { transform: translateY(calc((1 - var(--eb)) * 1.2em)); }
}
