/* About: the intro in big type, lighting up word by word, then the
   manifesto over three rows of client names drifting in outline, its two
   lines rising into place one after the other (js/about.js). */

.ab {
  --line: color-mix(in srgb, var(--ink) 12%, transparent); --dim: color-mix(in srgb, var(--ink) 58%, transparent);
  position: relative; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--font);
  scroll-margin-top: 0;
}

/* the stage is as tall as the rows of names, with the manifesto centred on
   top of them, so the rows never reach up into the hero */
/* spaced like the other blocks (--section-gap); js/about.js times the two
   reveals so the intro finishes before the manifesto starts rising */
.ab-stage { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center stretch; isolation: isolate; margin-top: var(--section-gap); }
.ab-stage > * { grid-area: 1 / 1; }
.ab-manifesto, .ab-big {
  position: relative; z-index: 1; box-sizing: border-box; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; text-align: center; color: var(--ink);
  font: 900 clamp(34px, 6.2vw, 92px)/.98 var(--font); font-variation-settings: "wdth" 112; letter-spacing: -.03em; text-transform: uppercase;
}
/* the manifesto stays in Archivo, wide and heavy, whatever the main font */
.ab-manifesto { font-family: Archivo, sans-serif; }
.ab-manifesto em, .ab-big em { font-style: italic; font-weight: 300; font-variation-settings: "wdth" 100; color: var(--accent); text-transform: none; letter-spacing: -.02em; }
.ab-big .w { opacity: .14; transition: opacity .35s; }
.ab-big .w.on { opacity: 1; }
/* manifesto lines rise from behind their own bottom edge; js/about.js sets
   --q (0 → 1) on each line as the statement scrolls in */
.ab-manifesto .ln { display: block; overflow: hidden; padding: 0 .1em .12em; margin-bottom: -.12em; }
.ab-manifesto .in { display: inline-block; transform: translateY(calc((1 - var(--q, 1)) * 70%)); opacity: var(--q, 1); will-change: transform, opacity; }

/* three rows of client names in faint outline, drifting in alternating
   directions (each row holds the list twice so the loop is seamless).
   Always Archivo, whatever the main font: its wide cut suits the outline */
.ab-bgm { z-index: 0; width: 100%; pointer-events: none; }
.ab-bgm-row { overflow: hidden; white-space: nowrap; margin: -.6vw 0; }
.ab-bgm-track { display: inline-flex; animation: ab-bgm 70s linear infinite; will-change: transform; }
.ab-bgm-row.rev .ab-bgm-track { animation-direction: reverse; animation-duration: 85s; }
.ab-bgm span { display: inline-flex; align-items: center; gap: .32em; padding-right: .32em; font: 900 9vw/1 Archivo, sans-serif; font-variation-settings: "wdth" 115;
  letter-spacing: -.03em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--ink) 10%, transparent); }
/* separator: an outline circle, centred on the letters and evenly spaced between names */
.ab-bgm span::after { content: ""; flex: none; width: .16em; height: .16em; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--accent) 22%, transparent); }
@keyframes ab-bgm { to { transform: translateX(-50%); } }

/* the intro, first under the hero: large but in sentence case at a lighter
   weight, so it reads easily and the all-caps manifesto stays the headline */
.ab-intro { margin-top: var(--section-gap); max-width: 1040px; font-size: clamp(24px, 3.2vw, 46px); line-height: 1.2; font-weight: 500;
  font-variation-settings: "wdth" 100; letter-spacing: -.015em; text-transform: none; }

/* reveal on scroll */
.ab-rv { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.ab-rv.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  /* phones: everything a size up, the client rows most of all */
  .ab-bgm span { font-size: 22vw; }
  .ab-bgm-row { margin: 7vw 0; }   /* breathing room so the outlined names read */
  .ab-manifesto { font-size: 11.5vw; }
  .ab-intro { font-size: 7.4vw; line-height: 1.22; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-rv, .ab-rv.in { opacity: 1; transition: none; }
  .ab-rv { transform: none; }
  .ab-bgm-track { animation: none; }
  .ab-big .w { opacity: 1; }
  .ab-manifesto .in { transform: none; opacity: 1; }
}
