/*
 * EN About page (views/pages/redesign/about.ejs).
 * Values from Paper "Site · About + Funders" → "About · desktop 1440" and
 * "About · mobile 390". Desktop rules first; the mobile board below 768px.
 * Shared pieces: components/terrain.css (hero), components/ask.css (final ask).
 */

/* ── Shared type on this page ────────────────────────────────────────── */
.ab-kicker {
  color: var(--emerald);
  font-size: clamp(12px, 11.26px + 0.19vw, 14px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: clamp(16px, 15.26px + 0.19vw, 18px);
  text-transform: uppercase;
}
.ab-kicker--deep { color: var(--deep-green); }
/* Section titles: 60 / 60 on desktop, 34 / 36 on mobile */
.ab-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 24.34px + 2.476vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: clamp(36px, 27.09px + 2.286vw, 60px);
}
.ab-body { color: var(--text-2); font-size: clamp(16px, 15.26px + 0.19vw, 18px); line-height: clamp(26px, 24.89px + 0.286vw, 29px); }

/* ── 1 · Hero ────────────────────────────────────────────────────────── */
.ab-hero { position: relative; overflow: clip; background: var(--ink); color: var(--paper); }
.ab-hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(14 27 22 / 0.94) 0%, rgb(14 27 22 / 0.82) 42%, rgb(14 27 22 / 0.35) 75%, rgb(14 27 22 / 0.15) 100%);
}
.ab-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 228px;     /* 28 + nav 56 + 72 + 72 (Paper) */
  padding-bottom: 160px;  /* 48 + 112 */
}
.ab-hero__inner > * { max-width: 760px; }
.ab-hero__title {
  font-family: var(--font-display);
  font-size: clamp(46px, 27.43px + 4.762vw, 96px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: clamp(46px, 28.91px + 4.381vw, 92px);
}
.ab-hero__quote { max-width: 600px; color: var(--quote-on-ink); font-size: clamp(18px, 16.51px + 0.381vw, 22px); line-height: clamp(28px, 26.14px + 0.476vw, 33px); }
.ab-hero__by { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 20px; }
.ab-hero__by strong { font-weight: 600; }
.ab-hero__role { color: var(--muted-on-ink); }
.ab-hero__rule { width: 32px; height: 2px; flex-shrink: 0; background: var(--emerald); }

/* ── 2 · Why Onepct exists ───────────────────────────────────────────── */
.ab-why { padding-top: 144px; padding-bottom: 120px; }
.ab-why__inner { display: flex; gap: 80px; }
.ab-why__title { width: 520px; flex-shrink: 0; }
.ab-why__story { flex: 1 1 0; display: flex; flex-direction: column; gap: 24px; padding-top: 8px; color: var(--text-2); font-size: 18px; line-height: 29px; }
.ab-why__lead { color: var(--ink); font-size: 21px; line-height: 33px; }

/* ── 3 · Why "one percent" ───────────────────────────────────────────── */
.ab-pct { padding-block: 128px; }
.ab-pct__inner { display: flex; align-items: center; gap: 96px; }
.ab-pct__copy { width: 500px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.bars {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 36px 28px;
  border-radius: var(--radius-tile);
  background: var(--white);
  box-shadow: 0 20px 50px rgb(14 27 22 / 0.08);
}
.bars__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.bars__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 26px; }
.bars__axis { color: var(--muted); font-size: 13px; line-height: 16px; }
.bars__plot { display: flex; align-items: flex-end; gap: 10px; height: 260px; border-bottom: 1px solid var(--line); }
.bars__bar {
  flex: 1 1 0;
  height: calc(var(--h) * 100%);
  border-radius: 10px 10px 0 0;
  background: color-mix(in srgb, var(--emerald) var(--p), var(--white));
  transform-origin: 50% 100%;
}
.bars__axis { display: flex; justify-content: space-between; }
/* Bars grow once, left to right, when the card comes into view; then a gentle
   wave runs through them on a loop while the card is on screen (about.js). */
@media (prefers-reduced-motion: no-preference) {
  .js [data-bars].is-armed .bars__bar { transform: scaleY(0); }
  .js [data-bars].is-grown .bars__bar {
    transform: none;
    transition: transform 700ms var(--ease-out);
    transition-delay: calc(var(--i) * 60ms + 150ms);
  }
  [data-bars].is-looping .bars__bar {
    animation: bars-breathe 4.8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 140ms);
  }
  [data-bars].is-paused .bars__bar { animation-play-state: paused; }
}
@keyframes bars-breathe {
  0%, 60%, 100% { transform: none; }
  30% { transform: scaleY(0.9); }
}

/* ── 4 · Track record (dark) ─────────────────────────────────────────── */
.ab-record { background: var(--ink); color: var(--paper); padding-block: 136px; }
.ab-record__inner { display: flex; flex-direction: column; gap: 56px; }
.ab-record__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 80px; }
.ab-record__titles { width: 640px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.ab-record__stats { display: flex; gap: 56px; }
.ab-record__stats > div { display: flex; flex-direction: column; gap: 6px; }
.ab-record__num { color: var(--emerald); font-family: var(--font-display); font-size: 72px; font-weight: 800; letter-spacing: -0.03em; line-height: 72px; }
.ab-record__label { color: var(--text-on-ink); font-size: 15px; line-height: 20px; }
.ab-cards { display: flex; gap: 16px; }
.ab-card { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--ink-line); border-radius: var(--radius-card); background: var(--ink-2); overflow: clip; }
.ab-card__img { width: 100%; height: 220px; object-fit: cover; background: var(--deep-green); }
.ab-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
.ab-card__tag { padding: 5px 11px; border-radius: var(--radius-pill); background: var(--emerald); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; line-height: 14px; }
.ab-card__name { font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 30px; }
.ab-card__meta { color: var(--faint-on-ink); font-size: 13px; line-height: 16px; }
.ab-record__source { color: var(--muted-on-ink); font-size: 14px; line-height: 20px; }

/* ── 5 · How we work ─────────────────────────────────────────────────── */
.ab-how { padding-top: 144px; padding-bottom: 128px; }
.ab-how__inner { display: flex; flex-direction: column; gap: 64px; }
.ab-how__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ab-how__chip { padding: 7px 14px; border: 1px dashed var(--line-dashed); border-radius: var(--radius-pill); color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; line-height: 16px; text-transform: uppercase; }
.ab-principles { display: flex; gap: 40px; }
.ab-principle { flex: 1 1 0; display: flex; flex-direction: column; gap: 16px; padding-top: 28px; border-top: 2px solid var(--ink); }
.ab-principle__num { color: var(--deep-green); font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 20px; }
.ab-principle__title { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.015em; line-height: 34px; }
.ab-principle__text { color: var(--text-2); font-size: 17px; line-height: 27px; }

/* ── 6 · Lisbon + In the press ───────────────────────────────────────── */
.ab-where { padding-bottom: 144px; }
.ab-where__inner { display: flex; gap: 20px; }
.ab-lisbon {
  position: relative;
  flex: 1.5 1 0;
  min-width: 0;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 44px;
  border-radius: var(--radius-tile);
  background: var(--ink);
  color: var(--paper);
  overflow: clip;
}
.ab-lisbon__art { position: absolute; top: -10px; left: 330px; width: 440px; height: 440px; max-width: none; opacity: 0.85; pointer-events: none; }
/* The live Europe pings (graphics/europe-pings.js) sit exactly over the still, at its opacity. */
.ab-lisbon.gfx-live > .gfx-canvas { opacity: 0.85; }
.ab-lisbon__title, .ab-lisbon__text { position: relative; width: 360px; max-width: 100%; }
.ab-lisbon__title { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -0.025em; line-height: 46px; }
.ab-lisbon__text { color: var(--nav-link); font-size: 18px; line-height: 28px; }
/* Press card (one <li> per article; a second sits beside the first). */
.ab-press {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  background: var(--white);
}
.ab-press__label { color: var(--deep-green); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; line-height: 16px; text-transform: uppercase; }
.ab-press__list { flex-grow: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.ab-press__item { display: flex; flex-direction: column; gap: 12px; }
.ab-press__source { font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 22px; }
.ab-press__title { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 33px; }
.ab-press__meta { color: var(--muted); font-size: 14px; line-height: 20px; }
.ab-press__item > p:last-child { margin-top: auto; padding-top: 8px; }
.ab-press__link { color: var(--deep-green); font-size: 16px; line-height: 20px; }

/* ── Tablet: stack the wide two-column sections before they crush ────── */
@media (min-width: 768px) and (max-width: 1199px) {
  .ab-why__inner, .ab-pct__inner, .ab-record__head { flex-direction: column; align-items: stretch; gap: 48px; }
  .ab-why__title, .ab-pct__copy, .ab-record__titles { width: auto; }
  .ab-cards, .ab-principles { flex-wrap: wrap; }
  .ab-card, .ab-principle { flex-basis: 260px; }
  .ab-where__inner { flex-direction: column; }
}

/* ══ Mobile board (390) ═══════════════════════════════════════════════ */
@media (max-width: 767px) {
  .ab-hero__scrim { background: linear-gradient(180deg, rgb(14 27 22 / 0.35) 0%, rgb(14 27 22 / 0.70) 30%, rgb(14 27 22 / 0.88) 60%, rgb(14 27 22 / 0.90) 100%); }
  .ab-hero__inner { gap: 28px; padding-top: 232px; padding-bottom: 72px; }
  .ab-hero__inner .ab-kicker { margin-bottom: -10px; } /* 18 px to the title */
  .ab-hero__title { letter-spacing: -0.03em; }
  .ab-hero__by { gap: 12px; font-size: 14px; line-height: 18px; }
  .ab-hero__rule { width: 24px; }

  .ab-title { letter-spacing: -0.025em; }

  .ab-why { padding-top: 72px; padding-bottom: 64px; }
  .ab-why__inner { flex-direction: column; gap: 20px; }
  .ab-why__title { width: auto; }
  .ab-why__story { gap: 20px; padding-top: 0; font-size: 16px; line-height: 26px; }
  .ab-why__lead { font-size: 18px; line-height: 28px; }

  .ab-pct { padding-block: 64px; }
  .ab-pct__inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .ab-pct__copy { width: auto; gap: 20px; }
  .bars { gap: 14px; padding: 22px; border-radius: 22px; box-shadow: 0 14px 36px rgb(14 27 22 / 0.08); }
  .bars__title { font-size: 16px; line-height: 20px; }
  .bars__note, .bars__axis { font-size: 12px; line-height: 16px; }
  .bars__plot { gap: 5px; height: 150px; }
  .bars__bar { border-radius: 6px 6px 0 0; }

  .ab-record { padding-block: 64px; }
  .ab-record__inner { gap: 24px; }
  .ab-record__head { flex-direction: column; align-items: stretch; gap: 24px; }
  .ab-record__titles { width: auto; gap: 24px; }
  .ab-record__stats { gap: 28px; }
  .ab-record__stats > div { flex: 1 1 0; gap: 4px; }
  .ab-record__num { font-size: 48px; line-height: 50px; }
  .ab-record__label { font-size: 14px; line-height: 19px; }
  .ab-cards { flex-direction: column; gap: 10px; }
  .ab-card { flex-direction: row; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; }
  .ab-card__img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; }
  .ab-card__body { gap: 4px; padding: 0; }
  .ab-card__tag { padding: 0; background: none; color: var(--emerald); font-size: 10px; line-height: 12px; }
  .ab-card__name { font-size: 17px; line-height: 22px; }
  .ab-record__source { font-size: 13px; line-height: 19px; }

  .ab-how { padding-top: 72px; padding-bottom: 56px; }
  .ab-how__inner { gap: 28px; }
  .ab-how__head { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
  .ab-how__chip { padding: 6px 12px; font-size: 11px; line-height: 14px; }
  .ab-principles { flex-direction: column; gap: 28px; }
  .ab-principle { gap: 10px; padding-top: 18px; }
  .ab-principle__num { font-size: 13px; line-height: 16px; }
  .ab-principle__title { font-size: 24px; line-height: 28px; }
  .ab-principle__text { font-size: 16px; line-height: 25px; }

  .ab-where { padding-bottom: 72px; }
  .ab-where__inner { flex-direction: column; gap: 12px; }
  .ab-lisbon { min-height: 360px; gap: 12px; padding: 24px; border-radius: var(--radius-card); }
  .ab-lisbon__art { top: -30px; left: 60px; width: 320px; height: 320px; opacity: 0.8; }
  .ab-lisbon__title { width: auto; font-size: 28px; letter-spacing: -0.02em; line-height: 30px; }
  .ab-lisbon__text { width: auto; font-size: 15px; line-height: 23px; }
  .ab-press { gap: 18px; padding: 24px; border-radius: var(--radius-card); }
  .ab-press__label { font-size: 12px; }
  .ab-press__source { font-size: 16px; line-height: 20px; }
  .ab-press__title { font-size: 22px; letter-spacing: -0.015em; line-height: 27px; }
  .ab-press__meta { font-size: 13px; line-height: 18px; }
  .ab-press__link { font-size: 15px; }
}
